@marcoappio/marco-config 2.0.542 → 2.0.543
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/index.d.ts +284 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +5 -4
- package/dist/schemas/mutators/mutatorSchemas.d.ts +2 -2
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +96 -93
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { marcoConstants } from './constants';
|
|
2
2
|
export { MARCO_ENV, MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
3
|
-
export { type Account, type AccountAlias, type AccountLabel, type Contact, type Draft, type DraftAttachment, type DraftBody, marcoSchemas,
|
|
3
|
+
export { type Account, type AccountAlias, type AccountLabel, type Contact, type Draft, type DraftAttachment, type DraftBody, marcoSchemas, type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserPushNotificationToken, type UserView, } from './schemas';
|
|
4
4
|
export { marcoSDK } from './sdk';
|
|
5
5
|
export * from './types';
|
|
6
6
|
export { accountUtils, labelUtils, stringPatch, threadsUtils } from './utils';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,GACd,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { marcoConstants } from './constants';
|
|
2
2
|
export { MARCO_ENV, marcoPublicConfig } from './marcoPublicConfig';
|
|
3
|
-
export { marcoSchemas,
|
|
3
|
+
export { marcoSchemas, } from './schemas';
|
|
4
4
|
export { marcoSDK } from './sdk';
|
|
5
5
|
export * from './types';
|
|
6
6
|
export { accountUtils, labelUtils, stringPatch, threadsUtils } from './utils';
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { mutatorSchemas } from '../schemas/mutators';
|
|
2
1
|
export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
|
|
3
|
-
export { mutatorSchemas };
|
|
2
|
+
export { mutatorSchemas } from './mutators';
|
|
4
3
|
export declare const marcoSchemas: {
|
|
5
4
|
app: {
|
|
6
5
|
platform: () => import("valibot").PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
|
|
@@ -298,6 +297,289 @@ export declare const marcoSchemas: {
|
|
|
298
297
|
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
299
298
|
}, undefined>;
|
|
300
299
|
};
|
|
300
|
+
mutators: {
|
|
301
|
+
account: {
|
|
302
|
+
createAccount: import("valibot").ObjectSchema<{
|
|
303
|
+
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
304
|
+
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
305
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
306
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
307
|
+
}, undefined>;
|
|
308
|
+
createAlias: import("valibot").ObjectSchema<{
|
|
309
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
310
|
+
readonly alias: import("valibot").ObjectSchema<{
|
|
311
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
312
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
313
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
314
|
+
}, undefined>;
|
|
315
|
+
}, undefined>;
|
|
316
|
+
deleteAccount: import("valibot").ObjectSchema<{
|
|
317
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
318
|
+
}, undefined>;
|
|
319
|
+
deleteAlias: import("valibot").ObjectSchema<{
|
|
320
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
321
|
+
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
322
|
+
}, undefined>;
|
|
323
|
+
setAliasName: import("valibot").ObjectSchema<{
|
|
324
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
325
|
+
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
326
|
+
readonly displayName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
327
|
+
}, undefined>;
|
|
328
|
+
setAliasPrimary: import("valibot").ObjectSchema<{
|
|
329
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
330
|
+
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
331
|
+
}, undefined>;
|
|
332
|
+
setConnectionConfigImapRaw: import("valibot").ObjectSchema<{
|
|
333
|
+
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
334
|
+
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
335
|
+
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
336
|
+
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
337
|
+
readonly imapSocketType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"STARTTLS", undefined>, import("valibot").LiteralSchema<"SSL", undefined>], undefined>;
|
|
338
|
+
readonly imapUser: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
339
|
+
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
340
|
+
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
341
|
+
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
342
|
+
readonly smtpSocketType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"STARTTLS", undefined>, import("valibot").LiteralSchema<"SSL", undefined>], undefined>;
|
|
343
|
+
readonly smtpUser: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
344
|
+
}, undefined>;
|
|
345
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
346
|
+
}, undefined>;
|
|
347
|
+
setConnectionConfigOauth: import("valibot").ObjectSchema<{
|
|
348
|
+
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
349
|
+
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
350
|
+
readonly provider: import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
351
|
+
readonly user: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
352
|
+
}, undefined>;
|
|
353
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
354
|
+
}, undefined>;
|
|
355
|
+
setSettings: import("valibot").ObjectSchema<{
|
|
356
|
+
readonly color: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
357
|
+
readonly displayName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
358
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
359
|
+
}, undefined>;
|
|
360
|
+
};
|
|
361
|
+
draft: {
|
|
362
|
+
cancelSend: import("valibot").ObjectSchema<{
|
|
363
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
364
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
365
|
+
}, undefined>;
|
|
366
|
+
createAttachment: import("valibot").ObjectSchema<{
|
|
367
|
+
readonly attachment: import("valibot").ObjectSchema<{
|
|
368
|
+
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
369
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
370
|
+
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
371
|
+
readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
372
|
+
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
373
|
+
}, undefined>;
|
|
374
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
375
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
376
|
+
}, undefined>;
|
|
377
|
+
createDraft: import("valibot").ObjectSchema<{
|
|
378
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
379
|
+
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
380
|
+
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
381
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
382
|
+
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
383
|
+
readonly status: import("valibot").PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
384
|
+
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
385
|
+
}, undefined>, undefined>;
|
|
386
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
387
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
388
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
389
|
+
readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
390
|
+
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
391
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
392
|
+
}, undefined>;
|
|
393
|
+
readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
394
|
+
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
395
|
+
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
396
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
397
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
398
|
+
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
399
|
+
readonly status: import("valibot").PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_IN_PROGRESS", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
|
|
400
|
+
readonly type: import("valibot").PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
401
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
402
|
+
}, undefined>;
|
|
403
|
+
deleteAttachment: import("valibot").ObjectSchema<{
|
|
404
|
+
readonly attachmentId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
405
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
406
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
407
|
+
}, undefined>;
|
|
408
|
+
deleteDraft: import("valibot").ObjectSchema<{
|
|
409
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
410
|
+
}, undefined>;
|
|
411
|
+
scheduleSend: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
412
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
413
|
+
readonly kind: import("valibot").LiteralSchema<"IMMEDIATE", undefined>;
|
|
414
|
+
readonly undoMs: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
415
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
416
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
417
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
418
|
+
readonly kind: import("valibot").LiteralSchema<"SCHEDULED", undefined>;
|
|
419
|
+
readonly scheduledFor: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
420
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
421
|
+
}, undefined>], undefined>;
|
|
422
|
+
setContent: import("valibot").ObjectSchema<{
|
|
423
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
424
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
425
|
+
readonly index: import("valibot").NumberSchema<undefined>;
|
|
426
|
+
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"INSERTION", undefined>, import("valibot").LiteralSchema<"DELETION", undefined>], undefined>;
|
|
427
|
+
readonly value: import("valibot").StringSchema<undefined>;
|
|
428
|
+
}, undefined>, undefined>;
|
|
429
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
430
|
+
}, undefined>;
|
|
431
|
+
setEnvelope: import("valibot").ObjectSchema<{
|
|
432
|
+
readonly envelope: Omit<import("valibot").ObjectSchema<{
|
|
433
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
434
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
435
|
+
readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
436
|
+
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
437
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
438
|
+
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
439
|
+
readonly entries: Omit<{
|
|
440
|
+
readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
441
|
+
readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
442
|
+
readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
|
|
443
|
+
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
444
|
+
readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
445
|
+
}, "content">;
|
|
446
|
+
readonly '~standard': import("valibot").StandardProps<{
|
|
447
|
+
bcc: string[];
|
|
448
|
+
cc: string[];
|
|
449
|
+
to: string[];
|
|
450
|
+
subject: string | null;
|
|
451
|
+
}, {
|
|
452
|
+
bcc: string[];
|
|
453
|
+
cc: string[];
|
|
454
|
+
to: string[];
|
|
455
|
+
subject: string | null;
|
|
456
|
+
}>;
|
|
457
|
+
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
458
|
+
bcc: string[];
|
|
459
|
+
cc: string[];
|
|
460
|
+
to: string[];
|
|
461
|
+
subject: string | null;
|
|
462
|
+
}, import("valibot").ObjectIssue | import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").RfcEmailIssue<string> | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue>;
|
|
463
|
+
readonly '~types'?: {
|
|
464
|
+
readonly input: {
|
|
465
|
+
bcc: string[];
|
|
466
|
+
cc: string[];
|
|
467
|
+
to: string[];
|
|
468
|
+
subject: string | null;
|
|
469
|
+
};
|
|
470
|
+
readonly output: {
|
|
471
|
+
bcc: string[];
|
|
472
|
+
cc: string[];
|
|
473
|
+
to: string[];
|
|
474
|
+
subject: string | null;
|
|
475
|
+
};
|
|
476
|
+
readonly issue: import("valibot").ObjectIssue | import("valibot").StringIssue | import("valibot").ArrayIssue | import("valibot").RfcEmailIssue<string> | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue;
|
|
477
|
+
} | undefined;
|
|
478
|
+
};
|
|
479
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
480
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
481
|
+
}, undefined>;
|
|
482
|
+
setFrom: import("valibot").ObjectSchema<{
|
|
483
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
484
|
+
readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
485
|
+
readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
486
|
+
readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
487
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
488
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
489
|
+
}, undefined>;
|
|
490
|
+
};
|
|
491
|
+
thread: {
|
|
492
|
+
addLabel: import("valibot").ObjectSchema<{
|
|
493
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
494
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
495
|
+
}, undefined>, undefined>;
|
|
496
|
+
readonly labelPath: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
497
|
+
}, undefined>;
|
|
498
|
+
delete: import("valibot").ObjectSchema<{
|
|
499
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
500
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
501
|
+
}, undefined>, undefined>;
|
|
502
|
+
}, undefined>;
|
|
503
|
+
removeLabel: import("valibot").ObjectSchema<{
|
|
504
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
505
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
506
|
+
}, undefined>, undefined>;
|
|
507
|
+
readonly labelPath: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
508
|
+
}, undefined>;
|
|
509
|
+
setArchive: import("valibot").ObjectSchema<{
|
|
510
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
511
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
512
|
+
}, undefined>, undefined>;
|
|
513
|
+
}, undefined>;
|
|
514
|
+
setFlagged: import("valibot").ObjectSchema<{
|
|
515
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
516
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
517
|
+
}, undefined>, undefined>;
|
|
518
|
+
readonly flagged: import("valibot").BooleanSchema<undefined>;
|
|
519
|
+
}, undefined>;
|
|
520
|
+
setInbox: import("valibot").ObjectSchema<{
|
|
521
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
522
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
523
|
+
}, undefined>, undefined>;
|
|
524
|
+
}, undefined>;
|
|
525
|
+
setSeen: import("valibot").ObjectSchema<{
|
|
526
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
527
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
528
|
+
}, undefined>, undefined>;
|
|
529
|
+
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
530
|
+
}, undefined>;
|
|
531
|
+
setSpam: import("valibot").ObjectSchema<{
|
|
532
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
533
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
534
|
+
}, undefined>, undefined>;
|
|
535
|
+
}, undefined>;
|
|
536
|
+
setTrash: import("valibot").ObjectSchema<{
|
|
537
|
+
readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
|
|
538
|
+
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
539
|
+
}, undefined>, undefined>;
|
|
540
|
+
}, undefined>;
|
|
541
|
+
};
|
|
542
|
+
user: {
|
|
543
|
+
createView: import("valibot").ObjectSchema<{
|
|
544
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
545
|
+
readonly view: import("valibot").ObjectSchema<{
|
|
546
|
+
readonly aliasEmails: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>, import("valibot").MinLengthAction<string[], 2, undefined>, import("valibot").MaxLengthAction<string[], number, undefined>]>;
|
|
547
|
+
readonly icon: import("valibot").PicklistSchema<readonly [import("..").CustomViewIcon.AIRPLANE, import("..").CustomViewIcon.BELL, import("..").CustomViewIcon.BRIEFCASE, import("..").CustomViewIcon.CLOCK, import("..").CustomViewIcon.CREDIT_CARD, import("..").CustomViewIcon.HEART, import("..").CustomViewIcon.HOME, import("..").CustomViewIcon.KEY, import("..").CustomViewIcon.MOON, import("..").CustomViewIcon.PERSON, import("..").CustomViewIcon.SHOPPING_CART, import("..").CustomViewIcon.STAR], undefined>;
|
|
548
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
549
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
550
|
+
}, undefined>;
|
|
551
|
+
}, undefined>;
|
|
552
|
+
deleteSettingsPushNotificationToken: import("valibot").ObjectSchema<{
|
|
553
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
554
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
555
|
+
}, undefined>;
|
|
556
|
+
deleteView: import("valibot").ObjectSchema<{
|
|
557
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
558
|
+
readonly viewId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
559
|
+
}, undefined>;
|
|
560
|
+
setSettingsName: import("valibot").ObjectSchema<{
|
|
561
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
562
|
+
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
563
|
+
}, undefined>;
|
|
564
|
+
setSettingsPushNotificationToken: import("valibot").ObjectSchema<{
|
|
565
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
566
|
+
readonly pushNotificationToken: import("valibot").ObjectSchema<{
|
|
567
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
568
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
569
|
+
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
570
|
+
}, undefined>;
|
|
571
|
+
}, undefined>;
|
|
572
|
+
updateView: import("valibot").ObjectSchema<{
|
|
573
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
574
|
+
readonly view: import("valibot").ObjectSchema<{
|
|
575
|
+
readonly aliasEmails: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>, import("valibot").MinLengthAction<string[], 2, undefined>, import("valibot").MaxLengthAction<string[], number, undefined>]>;
|
|
576
|
+
readonly icon: import("valibot").PicklistSchema<readonly [import("..").CustomViewIcon.AIRPLANE, import("..").CustomViewIcon.BELL, import("..").CustomViewIcon.BRIEFCASE, import("..").CustomViewIcon.CLOCK, import("..").CustomViewIcon.CREDIT_CARD, import("..").CustomViewIcon.HEART, import("..").CustomViewIcon.HOME, import("..").CustomViewIcon.KEY, import("..").CustomViewIcon.MOON, import("..").CustomViewIcon.PERSON, import("..").CustomViewIcon.SHOPPING_CART, import("..").CustomViewIcon.STAR], undefined>;
|
|
577
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
578
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
579
|
+
}, undefined>;
|
|
580
|
+
}, undefined>;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
301
583
|
number: {
|
|
302
584
|
fromString: () => import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").TransformAction<string, number>, import("valibot").NumberSchema<undefined>, import("valibot").FiniteAction<number, undefined>]>;
|
|
303
585
|
minMax: (min: number, max: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA+BA,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { boolean } from '../schemas/boolean';
|
|
2
|
-
import { mutatorSchemas } from '../schemas/mutators';
|
|
3
|
-
import { string } from '../schemas/string';
|
|
4
1
|
import { app } from './app';
|
|
5
2
|
import { auth } from './auth';
|
|
3
|
+
import { boolean } from './boolean';
|
|
6
4
|
import { drafts } from './drafts';
|
|
7
5
|
import { emailAccount } from './emailAccount';
|
|
8
6
|
import { labels } from './labels';
|
|
9
7
|
import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userPushNotificationTokenSchema, userSchema, userViewSchema, } from './models';
|
|
8
|
+
import { mutatorSchemas } from './mutators';
|
|
10
9
|
import { number } from './number';
|
|
11
10
|
import { oauth } from './oauth';
|
|
12
11
|
import { pushNotifications } from './pushNotifications';
|
|
12
|
+
import { string } from './string';
|
|
13
13
|
import { websocket } from './websocket';
|
|
14
|
-
export { mutatorSchemas };
|
|
14
|
+
export { mutatorSchemas } from './mutators';
|
|
15
15
|
export const marcoSchemas = {
|
|
16
16
|
app,
|
|
17
17
|
auth,
|
|
@@ -37,6 +37,7 @@ export const marcoSchemas = {
|
|
|
37
37
|
userSchema,
|
|
38
38
|
userViewSchema,
|
|
39
39
|
},
|
|
40
|
+
mutators: mutatorSchemas,
|
|
40
41
|
number,
|
|
41
42
|
oauth,
|
|
42
43
|
pushNotifications,
|
|
@@ -161,7 +161,7 @@ export declare const mutatorSchemas: {
|
|
|
161
161
|
cc: string[];
|
|
162
162
|
to: string[];
|
|
163
163
|
subject: string | null;
|
|
164
|
-
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.
|
|
164
|
+
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue>;
|
|
165
165
|
readonly '~types'?: {
|
|
166
166
|
readonly input: {
|
|
167
167
|
bcc: string[];
|
|
@@ -175,7 +175,7 @@ export declare const mutatorSchemas: {
|
|
|
175
175
|
to: string[];
|
|
176
176
|
subject: string | null;
|
|
177
177
|
};
|
|
178
|
-
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.
|
|
178
|
+
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue;
|
|
179
179
|
} | undefined;
|
|
180
180
|
};
|
|
181
181
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/mutators/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0F5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJ1B,CAAA"}
|
|
@@ -1,170 +1,173 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { marcoConstants } from '../../constants';
|
|
3
|
-
import { marcoSchemas } from '../../schemas';
|
|
4
|
-
import { socketTypeSchema } from '../../schemas/emailAccount';
|
|
5
3
|
import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES, USER_SETTINGS_CUSTOM_VIEW_ICONS, } from '../../types';
|
|
4
|
+
import { drafts } from '../drafts';
|
|
5
|
+
import { socketTypeSchema } from '../emailAccount';
|
|
6
|
+
import { number } from '../number';
|
|
7
|
+
import { oauth } from '../oauth';
|
|
8
|
+
import { string } from '../string';
|
|
6
9
|
const accountAliasSchema = v.object({
|
|
7
|
-
emailAddress:
|
|
8
|
-
id:
|
|
9
|
-
name:
|
|
10
|
+
emailAddress: string.email(),
|
|
11
|
+
id: string.required(),
|
|
12
|
+
name: string.nullable(),
|
|
10
13
|
});
|
|
11
|
-
const accountsSchema = v.record(
|
|
12
|
-
threadIds: v.array(
|
|
14
|
+
const accountsSchema = v.record(string.required(), v.object({
|
|
15
|
+
threadIds: v.array(string.required()),
|
|
13
16
|
}));
|
|
14
17
|
const baseThreadSchema = v.object({
|
|
15
18
|
accounts: accountsSchema,
|
|
16
19
|
});
|
|
17
20
|
const threadChangeLabelSchema = v.object({
|
|
18
21
|
accounts: accountsSchema,
|
|
19
|
-
labelPath:
|
|
22
|
+
labelPath: string.required(),
|
|
20
23
|
});
|
|
21
24
|
const draftBodySchema = v.object({
|
|
22
|
-
bcc: v.array(
|
|
23
|
-
cc: v.array(
|
|
25
|
+
bcc: v.array(string.email()),
|
|
26
|
+
cc: v.array(string.email()),
|
|
24
27
|
content: v.pipe(v.string(), v.maxLength(384000)),
|
|
25
|
-
subject:
|
|
26
|
-
to: v.array(
|
|
28
|
+
subject: string.nullable(),
|
|
29
|
+
to: v.array(string.email()),
|
|
27
30
|
});
|
|
28
31
|
const draftAttachmentSchema = v.object({
|
|
29
|
-
fileName:
|
|
30
|
-
id:
|
|
31
|
-
mimeType:
|
|
32
|
+
fileName: string.required(),
|
|
33
|
+
id: string.required(),
|
|
34
|
+
mimeType: string.required(),
|
|
32
35
|
status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
|
|
33
|
-
totalSize:
|
|
36
|
+
totalSize: number.positiveInteger(),
|
|
34
37
|
});
|
|
35
38
|
const userPushNotificationTokenSchema = v.object({
|
|
36
|
-
createdAt:
|
|
37
|
-
id:
|
|
38
|
-
token:
|
|
39
|
+
createdAt: number.positiveInteger(),
|
|
40
|
+
id: string.required(),
|
|
41
|
+
token: string.required(),
|
|
39
42
|
});
|
|
40
43
|
const connectionConfigOauthSchema = v.object({
|
|
41
|
-
code:
|
|
42
|
-
provider:
|
|
43
|
-
user:
|
|
44
|
+
code: string.required(),
|
|
45
|
+
provider: oauth.provider(),
|
|
46
|
+
user: string.required(),
|
|
44
47
|
});
|
|
45
48
|
const connectionConfigImapRawSchema = v.object({
|
|
46
|
-
imapHost:
|
|
47
|
-
imapPassword:
|
|
48
|
-
imapPort:
|
|
49
|
+
imapHost: string.required(),
|
|
50
|
+
imapPassword: string.required(),
|
|
51
|
+
imapPort: number.minMax(1, 65535),
|
|
49
52
|
imapSocketType: socketTypeSchema,
|
|
50
|
-
imapUser:
|
|
51
|
-
smtpHost:
|
|
52
|
-
smtpPassword:
|
|
53
|
-
smtpPort:
|
|
53
|
+
imapUser: string.required(),
|
|
54
|
+
smtpHost: string.required(),
|
|
55
|
+
smtpPassword: string.required(),
|
|
56
|
+
smtpPort: number.minMax(1, 65535),
|
|
54
57
|
smtpSocketType: socketTypeSchema,
|
|
55
|
-
smtpUser:
|
|
58
|
+
smtpUser: string.required(),
|
|
56
59
|
});
|
|
57
60
|
const userViewSchema = v.object({
|
|
58
|
-
aliasEmails: v.pipe(v.array(
|
|
61
|
+
aliasEmails: v.pipe(v.array(string.email()), v.minLength(2), v.maxLength(marcoConstants.user.views.maxAliasEmailsPerView)),
|
|
59
62
|
icon: v.picklist(USER_SETTINGS_CUSTOM_VIEW_ICONS),
|
|
60
|
-
id:
|
|
61
|
-
name:
|
|
63
|
+
id: string.required(),
|
|
64
|
+
name: string.required(),
|
|
62
65
|
});
|
|
63
66
|
export const mutatorSchemas = {
|
|
64
67
|
account: {
|
|
65
68
|
createAccount: v.object({
|
|
66
|
-
aliasId:
|
|
67
|
-
color:
|
|
68
|
-
emailAddress:
|
|
69
|
-
id:
|
|
69
|
+
aliasId: string.required(),
|
|
70
|
+
color: string.required(),
|
|
71
|
+
emailAddress: string.email(),
|
|
72
|
+
id: string.required(),
|
|
70
73
|
}),
|
|
71
74
|
createAlias: v.object({
|
|
72
|
-
accountId:
|
|
75
|
+
accountId: string.required(),
|
|
73
76
|
alias: accountAliasSchema,
|
|
74
77
|
}),
|
|
75
78
|
deleteAccount: v.object({
|
|
76
|
-
id:
|
|
79
|
+
id: string.required(),
|
|
77
80
|
}),
|
|
78
81
|
deleteAlias: v.object({
|
|
79
|
-
accountId:
|
|
80
|
-
aliasId:
|
|
82
|
+
accountId: string.required(),
|
|
83
|
+
aliasId: string.required(),
|
|
81
84
|
}),
|
|
82
85
|
setAliasName: v.object({
|
|
83
|
-
accountId:
|
|
84
|
-
aliasId:
|
|
85
|
-
displayName:
|
|
86
|
+
accountId: string.required(),
|
|
87
|
+
aliasId: string.required(),
|
|
88
|
+
displayName: string.nullable(),
|
|
86
89
|
}),
|
|
87
90
|
setAliasPrimary: v.object({
|
|
88
|
-
accountId:
|
|
89
|
-
aliasId:
|
|
91
|
+
accountId: string.required(),
|
|
92
|
+
aliasId: string.required(),
|
|
90
93
|
}),
|
|
91
94
|
setConnectionConfigImapRaw: v.object({
|
|
92
95
|
connectionConfig: connectionConfigImapRawSchema,
|
|
93
|
-
id:
|
|
96
|
+
id: string.required(),
|
|
94
97
|
}),
|
|
95
98
|
setConnectionConfigOauth: v.object({
|
|
96
99
|
connectionConfig: connectionConfigOauthSchema,
|
|
97
|
-
id:
|
|
100
|
+
id: string.required(),
|
|
98
101
|
}),
|
|
99
102
|
setSettings: v.object({
|
|
100
|
-
color: v.optional(
|
|
101
|
-
displayName: v.optional(
|
|
102
|
-
id:
|
|
103
|
+
color: v.optional(string.nullable()),
|
|
104
|
+
displayName: v.optional(string.nullable()),
|
|
105
|
+
id: string.required(),
|
|
103
106
|
}),
|
|
104
107
|
},
|
|
105
108
|
draft: {
|
|
106
109
|
cancelSend: v.object({
|
|
107
|
-
id:
|
|
108
|
-
updatedAt:
|
|
110
|
+
id: string.required(),
|
|
111
|
+
updatedAt: number.positiveInteger(),
|
|
109
112
|
}),
|
|
110
113
|
createAttachment: v.object({
|
|
111
114
|
attachment: draftAttachmentSchema,
|
|
112
|
-
id:
|
|
113
|
-
updatedAt:
|
|
115
|
+
id: string.required(),
|
|
116
|
+
updatedAt: number.positiveInteger(),
|
|
114
117
|
}),
|
|
115
118
|
createDraft: v.object({
|
|
116
|
-
accountId:
|
|
119
|
+
accountId: string.required(),
|
|
117
120
|
attachments: v.array(draftAttachmentSchema),
|
|
118
121
|
body: draftBodySchema,
|
|
119
|
-
error:
|
|
120
|
-
from:
|
|
121
|
-
fromName:
|
|
122
|
-
id:
|
|
123
|
-
referencedMessageId:
|
|
124
|
-
scheduledFor: v.nullable(
|
|
122
|
+
error: string.nullable(),
|
|
123
|
+
from: string.email(),
|
|
124
|
+
fromName: string.nullable(),
|
|
125
|
+
id: string.required(),
|
|
126
|
+
referencedMessageId: string.nullable(),
|
|
127
|
+
scheduledFor: v.nullable(number.positiveInteger()),
|
|
125
128
|
status: v.picklist(DRAFT_STATUSES),
|
|
126
129
|
type: v.picklist(DRAFT_TYPES),
|
|
127
|
-
updatedAt:
|
|
130
|
+
updatedAt: number.positiveInteger(),
|
|
128
131
|
}),
|
|
129
132
|
deleteAttachment: v.object({
|
|
130
|
-
attachmentId:
|
|
131
|
-
id:
|
|
132
|
-
updatedAt:
|
|
133
|
+
attachmentId: string.required(),
|
|
134
|
+
id: string.required(),
|
|
135
|
+
updatedAt: number.positiveInteger(),
|
|
133
136
|
}),
|
|
134
137
|
deleteDraft: v.object({
|
|
135
|
-
id:
|
|
138
|
+
id: string.required(),
|
|
136
139
|
}),
|
|
137
140
|
scheduleSend: v.union([
|
|
138
141
|
v.object({
|
|
139
|
-
id:
|
|
142
|
+
id: string.required(),
|
|
140
143
|
kind: v.literal('IMMEDIATE'),
|
|
141
|
-
undoMs:
|
|
142
|
-
updatedAt:
|
|
144
|
+
undoMs: number.positiveInteger(),
|
|
145
|
+
updatedAt: number.positiveInteger(),
|
|
143
146
|
}),
|
|
144
147
|
v.object({
|
|
145
|
-
id:
|
|
148
|
+
id: string.required(),
|
|
146
149
|
kind: v.literal('SCHEDULED'),
|
|
147
|
-
scheduledFor:
|
|
148
|
-
updatedAt:
|
|
150
|
+
scheduledFor: number.positiveInteger(),
|
|
151
|
+
updatedAt: number.positiveInteger(),
|
|
149
152
|
}),
|
|
150
153
|
]),
|
|
151
154
|
setContent: v.object({
|
|
152
|
-
id:
|
|
153
|
-
patch:
|
|
154
|
-
updatedAt:
|
|
155
|
+
id: string.required(),
|
|
156
|
+
patch: drafts.contentPatch.patch(),
|
|
157
|
+
updatedAt: number.positiveInteger(),
|
|
155
158
|
}),
|
|
156
159
|
setEnvelope: v.object({
|
|
157
160
|
envelope: v.omit(draftBodySchema, ['content']),
|
|
158
|
-
id:
|
|
159
|
-
updatedAt:
|
|
161
|
+
id: string.required(),
|
|
162
|
+
updatedAt: number.positiveInteger(),
|
|
160
163
|
}),
|
|
161
164
|
setFrom: v.object({
|
|
162
|
-
accountId:
|
|
163
|
-
aliasId:
|
|
164
|
-
from:
|
|
165
|
-
fromName:
|
|
166
|
-
id:
|
|
167
|
-
updatedAt:
|
|
165
|
+
accountId: string.required(),
|
|
166
|
+
aliasId: string.required(),
|
|
167
|
+
from: string.email(),
|
|
168
|
+
fromName: string.nullable(),
|
|
169
|
+
id: string.required(),
|
|
170
|
+
updatedAt: number.positiveInteger(),
|
|
168
171
|
}),
|
|
169
172
|
},
|
|
170
173
|
thread: {
|
|
@@ -186,27 +189,27 @@ export const mutatorSchemas = {
|
|
|
186
189
|
},
|
|
187
190
|
user: {
|
|
188
191
|
createView: v.object({
|
|
189
|
-
id:
|
|
192
|
+
id: string.required(),
|
|
190
193
|
view: userViewSchema,
|
|
191
194
|
}),
|
|
192
195
|
deleteSettingsPushNotificationToken: v.object({
|
|
193
|
-
id:
|
|
194
|
-
token:
|
|
196
|
+
id: string.required(),
|
|
197
|
+
token: string.required(),
|
|
195
198
|
}),
|
|
196
199
|
deleteView: v.object({
|
|
197
|
-
id:
|
|
198
|
-
viewId:
|
|
200
|
+
id: string.required(),
|
|
201
|
+
viewId: string.required(),
|
|
199
202
|
}),
|
|
200
203
|
setSettingsName: v.object({
|
|
201
|
-
id:
|
|
202
|
-
name:
|
|
204
|
+
id: string.required(),
|
|
205
|
+
name: string.nullable(),
|
|
203
206
|
}),
|
|
204
207
|
setSettingsPushNotificationToken: v.object({
|
|
205
|
-
id:
|
|
208
|
+
id: string.required(),
|
|
206
209
|
pushNotificationToken: userPushNotificationTokenSchema,
|
|
207
210
|
}),
|
|
208
211
|
updateView: v.object({
|
|
209
|
-
id:
|
|
212
|
+
id: string.required(),
|
|
210
213
|
view: userViewSchema,
|
|
211
214
|
}),
|
|
212
215
|
},
|
|
@@ -30,7 +30,7 @@ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
30
30
|
cc: string[];
|
|
31
31
|
to: string[];
|
|
32
32
|
subject: string | null;
|
|
33
|
-
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.
|
|
33
|
+
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue>;
|
|
34
34
|
readonly '~types'?: {
|
|
35
35
|
readonly input: {
|
|
36
36
|
bcc: string[];
|
|
@@ -44,7 +44,7 @@ export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/p
|
|
|
44
44
|
to: string[];
|
|
45
45
|
subject: string | null;
|
|
46
46
|
};
|
|
47
|
-
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.
|
|
47
|
+
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue;
|
|
48
48
|
} | undefined;
|
|
49
49
|
};
|
|
50
50
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|