@marcoappio/marco-config 2.0.290 → 2.0.292

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.
Files changed (30) hide show
  1. package/dist/clients/account.d.ts +12 -23
  2. package/dist/clients/account.d.ts.map +1 -1
  3. package/dist/clients/account.js +15 -23
  4. package/dist/clients/draft.d.ts +32 -18
  5. package/dist/clients/draft.d.ts.map +1 -1
  6. package/dist/clients/draft.js +23 -9
  7. package/dist/clients/index.d.ts +44 -41
  8. package/dist/clients/index.d.ts.map +1 -1
  9. package/dist/sdk/endpoints/index.d.ts +48 -43
  10. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  11. package/dist/sdk/endpoints/private/index.d.ts +48 -43
  12. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  13. package/dist/sdk/endpoints/private/sync/index.d.ts +48 -43
  14. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +2 -2
  16. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +3 -1
  17. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +5 -3
  19. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  20. package/dist/sdk/endpoints/private/sync/push/account.d.ts +10 -23
  21. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  22. package/dist/sdk/endpoints/private/sync/push/account.js +6 -12
  23. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +33 -17
  24. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  25. package/dist/sdk/endpoints/private/sync/push/draft.js +21 -9
  26. package/dist/sdk/endpoints/private/sync/push/index.d.ts +43 -40
  27. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  28. package/dist/sdk/index.d.ts +48 -43
  29. package/dist/sdk/index.d.ts.map +1 -1
  30. package/package.json +1 -1
@@ -33,9 +33,9 @@ export declare const sync: {
33
33
  readonly value: import("valibot").ObjectSchema<{
34
34
  readonly aliases: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
35
35
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
36
37
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
37
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
38
- readonly isPrimary: import("valibot").BooleanSchema<undefined>;
38
+ readonly primary: import("valibot").BooleanSchema<undefined>;
39
39
  }, undefined>, undefined>;
40
40
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
41
41
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -146,9 +146,11 @@ export declare const sync: {
146
146
  readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
147
147
  }, undefined>;
148
148
  readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
149
+ readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
149
150
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
150
151
  readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
151
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
152
+ readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
153
+ readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
152
154
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
153
155
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
154
156
  }, undefined>;
@@ -297,14 +299,16 @@ export declare const sync: {
297
299
  }, undefined>;
298
300
  readonly clientID: import("valibot").StringSchema<undefined>;
299
301
  readonly id: import("valibot").NumberSchema<undefined>;
300
- readonly name: import("valibot").LiteralSchema<"add", undefined>;
302
+ readonly name: import("valibot").LiteralSchema<"createAccount", undefined>;
301
303
  }, undefined> | import("valibot").ObjectSchema<{
302
304
  readonly args: import("valibot").ObjectSchema<{
303
- readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
304
- readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
305
- readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
306
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
307
- readonly isPrimary: import("valibot").BooleanSchema<undefined>;
305
+ readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
306
+ readonly alias: import("valibot").ObjectSchema<{
307
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
308
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
309
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
310
+ readonly primary: import("valibot").BooleanSchema<undefined>;
311
+ }, undefined>;
308
312
  }, undefined>;
309
313
  readonly clientID: import("valibot").StringSchema<undefined>;
310
314
  readonly id: import("valibot").NumberSchema<undefined>;
@@ -315,7 +319,7 @@ export declare const sync: {
315
319
  }, undefined>;
316
320
  readonly clientID: import("valibot").StringSchema<undefined>;
317
321
  readonly id: import("valibot").NumberSchema<undefined>;
318
- readonly name: import("valibot").LiteralSchema<"delete", undefined>;
322
+ readonly name: import("valibot").LiteralSchema<"deleteAccount", undefined>;
319
323
  }, undefined> | import("valibot").ObjectSchema<{
320
324
  readonly args: import("valibot").ObjectSchema<{
321
325
  readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -326,7 +330,7 @@ export declare const sync: {
326
330
  }, undefined> | import("valibot").ObjectSchema<{
327
331
  readonly args: import("valibot").ObjectSchema<{
328
332
  readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
329
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
333
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
330
334
  }, undefined>;
331
335
  readonly clientID: import("valibot").StringSchema<undefined>;
332
336
  readonly id: import("valibot").NumberSchema<undefined>;
@@ -338,21 +342,6 @@ export declare const sync: {
338
342
  readonly clientID: import("valibot").StringSchema<undefined>;
339
343
  readonly id: import("valibot").NumberSchema<undefined>;
340
344
  readonly name: import("valibot").LiteralSchema<"setAliasPrimary", undefined>;
341
- }, undefined> | import("valibot").ObjectSchema<{
342
- readonly args: import("valibot").ObjectSchema<{
343
- readonly connectionConfig: import("valibot").ObjectSchema<{
344
- readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
345
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
346
- readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
347
- readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
348
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
349
- readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
350
- }, undefined>;
351
- readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
352
- }, undefined>;
353
- readonly clientID: import("valibot").StringSchema<undefined>;
354
- readonly id: import("valibot").NumberSchema<undefined>;
355
- readonly name: import("valibot").LiteralSchema<"setConnectionConfig", undefined>;
356
345
  }, undefined> | import("valibot").ObjectSchema<{
357
346
  readonly args: import("valibot").ObjectSchema<{
358
347
  readonly connectionConfig: import("valibot").ObjectSchema<{
@@ -439,6 +428,29 @@ export declare const sync: {
439
428
  draft: import("../../../..").EndpointConfig<"/v1/pv/sync/push/draft", import("valibot").ObjectSchema<{
440
429
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
441
430
  readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
431
+ readonly args: import("valibot").ObjectSchema<{
432
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
433
+ }, undefined>;
434
+ readonly clientID: import("valibot").StringSchema<undefined>;
435
+ readonly id: import("valibot").NumberSchema<undefined>;
436
+ readonly name: import("valibot").LiteralSchema<"cancelDraftSend", undefined>;
437
+ }, undefined> | import("valibot").ObjectSchema<{
438
+ readonly args: import("valibot").ObjectSchema<{
439
+ readonly attachment: import("valibot").ObjectSchema<{
440
+ readonly failed: import("valibot").BooleanSchema<undefined>;
441
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
442
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
443
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
444
+ readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
445
+ readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
446
+ readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
447
+ }, undefined>;
448
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
449
+ }, undefined>;
450
+ readonly clientID: import("valibot").StringSchema<undefined>;
451
+ readonly id: import("valibot").NumberSchema<undefined>;
452
+ readonly name: import("valibot").LiteralSchema<"createAttachment", undefined>;
453
+ }, undefined> | import("valibot").ObjectSchema<{
442
454
  readonly args: import("valibot").ObjectSchema<{
443
455
  readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
444
456
  readonly failed: import("valibot").BooleanSchema<undefined>;
@@ -457,46 +469,39 @@ export declare const sync: {
457
469
  readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
458
470
  }, undefined>;
459
471
  readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
472
+ readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
460
473
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
461
474
  readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
462
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
475
+ readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
476
+ readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
463
477
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
464
478
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
465
479
  }, undefined>;
466
480
  readonly clientID: import("valibot").StringSchema<undefined>;
467
481
  readonly id: import("valibot").NumberSchema<undefined>;
468
- readonly name: import("valibot").LiteralSchema<"create", undefined>;
482
+ readonly name: import("valibot").LiteralSchema<"createDraft", undefined>;
469
483
  }, undefined> | import("valibot").ObjectSchema<{
470
484
  readonly args: import("valibot").ObjectSchema<{
471
- readonly attachment: import("valibot").ObjectSchema<{
472
- readonly failed: import("valibot").BooleanSchema<undefined>;
473
- readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
474
- readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
475
- readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
476
- readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
477
- readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
478
- readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
479
- }, undefined>;
485
+ readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
480
486
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
481
487
  }, undefined>;
482
488
  readonly clientID: import("valibot").StringSchema<undefined>;
483
489
  readonly id: import("valibot").NumberSchema<undefined>;
484
- readonly name: import("valibot").LiteralSchema<"createAttachment", undefined>;
490
+ readonly name: import("valibot").LiteralSchema<"deleteAttachment", undefined>;
485
491
  }, undefined> | import("valibot").ObjectSchema<{
486
492
  readonly args: import("valibot").ObjectSchema<{
487
493
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
488
494
  }, undefined>;
489
495
  readonly clientID: import("valibot").StringSchema<undefined>;
490
496
  readonly id: import("valibot").NumberSchema<undefined>;
491
- readonly name: import("valibot").LiteralSchema<"delete", undefined>;
497
+ readonly name: import("valibot").LiteralSchema<"deleteDraft", undefined>;
492
498
  }, undefined> | import("valibot").ObjectSchema<{
493
499
  readonly args: import("valibot").ObjectSchema<{
494
- readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
495
500
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
496
501
  }, undefined>;
497
502
  readonly clientID: import("valibot").StringSchema<undefined>;
498
503
  readonly id: import("valibot").NumberSchema<undefined>;
499
- readonly name: import("valibot").LiteralSchema<"deleteAttachment", undefined>;
504
+ readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
500
505
  }, undefined> | import("valibot").ObjectSchema<{
501
506
  readonly args: import("valibot").ObjectSchema<{
502
507
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -577,12 +582,12 @@ export declare const sync: {
577
582
  }, undefined> | import("valibot").ObjectSchema<{
578
583
  readonly args: import("valibot").ObjectSchema<{
579
584
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
580
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
585
+ readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
581
586
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
582
587
  }, undefined>;
583
588
  readonly clientID: import("valibot").StringSchema<undefined>;
584
589
  readonly id: import("valibot").NumberSchema<undefined>;
585
- readonly name: import("valibot").LiteralSchema<"setStatus", undefined>;
590
+ readonly name: import("valibot").LiteralSchema<"setScheduledFor", undefined>;
586
591
  }, undefined> | import("valibot").ObjectSchema<{
587
592
  readonly args: import("valibot").ObjectSchema<{
588
593
  readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -32,9 +32,9 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
32
32
  readonly value: v.ObjectSchema<{
33
33
  readonly aliases: v.ArraySchema<v.ObjectSchema<{
34
34
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly hidden: v.BooleanSchema<undefined>;
35
36
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
36
- readonly isHidden: v.BooleanSchema<undefined>;
37
- readonly isPrimary: v.BooleanSchema<undefined>;
37
+ readonly primary: v.BooleanSchema<undefined>;
38
38
  }, undefined>, undefined>;
39
39
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
40
40
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -47,9 +47,11 @@ export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1
47
47
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
48
48
  }, undefined>;
49
49
  readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
50
+ readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
50
51
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
51
52
  readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
52
- readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
53
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
54
+ readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
53
55
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
54
56
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
55
57
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBxB,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBxB,CAAA"}
@@ -32,9 +32,9 @@ export declare const pull: {
32
32
  readonly value: import("valibot").ObjectSchema<{
33
33
  readonly aliases: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
34
34
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
35
36
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
36
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
37
- readonly isPrimary: import("valibot").BooleanSchema<undefined>;
37
+ readonly primary: import("valibot").BooleanSchema<undefined>;
38
38
  }, undefined>, undefined>;
39
39
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
40
40
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -145,9 +145,11 @@ export declare const pull: {
145
145
  readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
146
146
  }, undefined>;
147
147
  readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
148
+ readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
148
149
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
149
150
  readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
150
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
151
+ readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
152
+ readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
151
153
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
152
154
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
153
155
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
@@ -9,14 +9,16 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
9
9
  }, undefined>;
10
10
  readonly clientID: v.StringSchema<undefined>;
11
11
  readonly id: v.NumberSchema<undefined>;
12
- readonly name: v.LiteralSchema<"add", undefined>;
12
+ readonly name: v.LiteralSchema<"createAccount", undefined>;
13
13
  }, undefined> | v.ObjectSchema<{
14
14
  readonly args: v.ObjectSchema<{
15
- readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
16
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
17
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
18
- readonly isHidden: v.BooleanSchema<undefined>;
19
- readonly isPrimary: v.BooleanSchema<undefined>;
15
+ readonly accountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
16
+ readonly alias: v.ObjectSchema<{
17
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
18
+ readonly hidden: v.BooleanSchema<undefined>;
19
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
20
+ readonly primary: v.BooleanSchema<undefined>;
21
+ }, undefined>;
20
22
  }, undefined>;
21
23
  readonly clientID: v.StringSchema<undefined>;
22
24
  readonly id: v.NumberSchema<undefined>;
@@ -27,7 +29,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
27
29
  }, undefined>;
28
30
  readonly clientID: v.StringSchema<undefined>;
29
31
  readonly id: v.NumberSchema<undefined>;
30
- readonly name: v.LiteralSchema<"delete", undefined>;
32
+ readonly name: v.LiteralSchema<"deleteAccount", undefined>;
31
33
  }, undefined> | v.ObjectSchema<{
32
34
  readonly args: v.ObjectSchema<{
33
35
  readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -38,7 +40,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
38
40
  }, undefined> | v.ObjectSchema<{
39
41
  readonly args: v.ObjectSchema<{
40
42
  readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
41
- readonly isHidden: v.BooleanSchema<undefined>;
43
+ readonly hidden: v.BooleanSchema<undefined>;
42
44
  }, undefined>;
43
45
  readonly clientID: v.StringSchema<undefined>;
44
46
  readonly id: v.NumberSchema<undefined>;
@@ -50,21 +52,6 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
50
52
  readonly clientID: v.StringSchema<undefined>;
51
53
  readonly id: v.NumberSchema<undefined>;
52
54
  readonly name: v.LiteralSchema<"setAliasPrimary", undefined>;
53
- }, undefined> | v.ObjectSchema<{
54
- readonly args: v.ObjectSchema<{
55
- readonly connectionConfig: v.ObjectSchema<{
56
- readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
57
- readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
- readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
59
- readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
60
- readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
- readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
62
- }, undefined>;
63
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
64
- }, undefined>;
65
- readonly clientID: v.StringSchema<undefined>;
66
- readonly id: v.NumberSchema<undefined>;
67
- readonly name: v.LiteralSchema<"setConnectionConfig", undefined>;
68
55
  }, undefined> | v.ObjectSchema<{
69
56
  readonly args: v.ObjectSchema<{
70
57
  readonly connectionConfig: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA6E1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuE1B,CAAA"}
@@ -6,11 +6,11 @@ export const syncPushAccount = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
8
8
  mutations: v.array(v.union(Object.values({
9
- add: v.object({
10
- args: account.mutators.add.delta,
9
+ createAccount: v.object({
10
+ args: account.mutators.createAccount.delta,
11
11
  clientID: v.string(),
12
12
  id: v.number(),
13
- name: v.literal('add'),
13
+ name: v.literal('createAccount'),
14
14
  }),
15
15
  createAlias: v.object({
16
16
  args: account.mutators.createAlias.delta,
@@ -18,11 +18,11 @@ export const syncPushAccount = createEndpoint({
18
18
  id: v.number(),
19
19
  name: v.literal('createAlias'),
20
20
  }),
21
- delete: v.object({
22
- args: account.mutators.delete.delta,
21
+ deleteAccount: v.object({
22
+ args: account.mutators.deleteAccount.delta,
23
23
  clientID: v.string(),
24
24
  id: v.number(),
25
- name: v.literal('delete'),
25
+ name: v.literal('deleteAccount'),
26
26
  }),
27
27
  deleteAlias: v.object({
28
28
  args: account.mutators.deleteAlias.delta,
@@ -42,12 +42,6 @@ export const syncPushAccount = createEndpoint({
42
42
  id: v.number(),
43
43
  name: v.literal('setAliasPrimary'),
44
44
  }),
45
- setConnectionConfig: v.object({
46
- args: account.mutators.setConnectionConfig.delta,
47
- clientID: v.string(),
48
- id: v.number(),
49
- name: v.literal('setConnectionConfig'),
50
- }),
51
45
  setConnectionConfigImapRaw: v.object({
52
46
  args: account.mutators.setConnectionConfigImapRaw.delta,
53
47
  clientID: v.string(),
@@ -2,6 +2,29 @@ import * as v from 'valibot';
2
2
  export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/draft", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
+ readonly args: v.ObjectSchema<{
6
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
7
+ }, undefined>;
8
+ readonly clientID: v.StringSchema<undefined>;
9
+ readonly id: v.NumberSchema<undefined>;
10
+ readonly name: v.LiteralSchema<"cancelDraftSend", undefined>;
11
+ }, undefined> | v.ObjectSchema<{
12
+ readonly args: v.ObjectSchema<{
13
+ readonly attachment: v.ObjectSchema<{
14
+ readonly failed: v.BooleanSchema<undefined>;
15
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
17
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
18
+ readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
19
+ readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
20
+ readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
21
+ }, undefined>;
22
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
23
+ }, undefined>;
24
+ readonly clientID: v.StringSchema<undefined>;
25
+ readonly id: v.NumberSchema<undefined>;
26
+ readonly name: v.LiteralSchema<"createAttachment", undefined>;
27
+ }, undefined> | v.ObjectSchema<{
5
28
  readonly args: v.ObjectSchema<{
6
29
  readonly attachments: v.ArraySchema<v.ObjectSchema<{
7
30
  readonly failed: v.BooleanSchema<undefined>;
@@ -20,46 +43,39 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
20
43
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
21
44
  }, undefined>;
22
45
  readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
46
+ readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
23
47
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
24
48
  readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
25
- readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
49
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
50
+ readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
26
51
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
27
52
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
28
53
  }, undefined>;
29
54
  readonly clientID: v.StringSchema<undefined>;
30
55
  readonly id: v.NumberSchema<undefined>;
31
- readonly name: v.LiteralSchema<"create", undefined>;
56
+ readonly name: v.LiteralSchema<"createDraft", undefined>;
32
57
  }, undefined> | v.ObjectSchema<{
33
58
  readonly args: v.ObjectSchema<{
34
- readonly attachment: v.ObjectSchema<{
35
- readonly failed: v.BooleanSchema<undefined>;
36
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
38
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
39
- readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
40
- readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
41
- readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
42
- }, undefined>;
59
+ readonly attachmentId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
43
60
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
44
61
  }, undefined>;
45
62
  readonly clientID: v.StringSchema<undefined>;
46
63
  readonly id: v.NumberSchema<undefined>;
47
- readonly name: v.LiteralSchema<"createAttachment", undefined>;
64
+ readonly name: v.LiteralSchema<"deleteAttachment", undefined>;
48
65
  }, undefined> | v.ObjectSchema<{
49
66
  readonly args: v.ObjectSchema<{
50
67
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
51
68
  }, undefined>;
52
69
  readonly clientID: v.StringSchema<undefined>;
53
70
  readonly id: v.NumberSchema<undefined>;
54
- readonly name: v.LiteralSchema<"delete", undefined>;
71
+ readonly name: v.LiteralSchema<"deleteDraft", undefined>;
55
72
  }, undefined> | v.ObjectSchema<{
56
73
  readonly args: v.ObjectSchema<{
57
- readonly attachmentId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
58
74
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
59
75
  }, undefined>;
60
76
  readonly clientID: v.StringSchema<undefined>;
61
77
  readonly id: v.NumberSchema<undefined>;
62
- readonly name: v.LiteralSchema<"deleteAttachment", undefined>;
78
+ readonly name: v.LiteralSchema<"sendDraft", undefined>;
63
79
  }, undefined> | v.ObjectSchema<{
64
80
  readonly args: v.ObjectSchema<{
65
81
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -140,12 +156,12 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
140
156
  }, undefined> | v.ObjectSchema<{
141
157
  readonly args: v.ObjectSchema<{
142
158
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
143
- readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
159
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
144
160
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
145
161
  }, undefined>;
146
162
  readonly clientID: v.StringSchema<undefined>;
147
163
  readonly id: v.NumberSchema<undefined>;
148
- readonly name: v.LiteralSchema<"setStatus", undefined>;
164
+ readonly name: v.LiteralSchema<"setScheduledFor", undefined>;
149
165
  }, undefined> | v.ObjectSchema<{
150
166
  readonly args: v.ObjectSchema<{
151
167
  readonly attachmentId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuExB,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAmFxB,CAAA"}
@@ -6,11 +6,11 @@ export const syncPushDraft = createEndpoint({
6
6
  body: v.object({
7
7
  clientGroupID: v.string(),
8
8
  mutations: v.array(v.union(Object.values({
9
- create: v.object({
10
- args: draft.mutators.create.delta,
9
+ cancelDraftSend: v.object({
10
+ args: draft.mutators.cancelDraftSend.delta,
11
11
  clientID: v.string(),
12
12
  id: v.number(),
13
- name: v.literal('create'),
13
+ name: v.literal('cancelDraftSend'),
14
14
  }),
15
15
  createAttachment: v.object({
16
16
  args: draft.mutators.createAttachment.delta,
@@ -18,11 +18,11 @@ export const syncPushDraft = createEndpoint({
18
18
  id: v.number(),
19
19
  name: v.literal('createAttachment'),
20
20
  }),
21
- delete: v.object({
22
- args: draft.mutators.delete.delta,
21
+ createDraft: v.object({
22
+ args: draft.mutators.createDraft.delta,
23
23
  clientID: v.string(),
24
24
  id: v.number(),
25
- name: v.literal('delete'),
25
+ name: v.literal('createDraft'),
26
26
  }),
27
27
  deleteAttachment: v.object({
28
28
  args: draft.mutators.deleteAttachment.delta,
@@ -30,6 +30,18 @@ export const syncPushDraft = createEndpoint({
30
30
  id: v.number(),
31
31
  name: v.literal('deleteAttachment'),
32
32
  }),
33
+ deleteDraft: v.object({
34
+ args: draft.mutators.deleteDraft.delta,
35
+ clientID: v.string(),
36
+ id: v.number(),
37
+ name: v.literal('deleteDraft'),
38
+ }),
39
+ sendDraft: v.object({
40
+ args: draft.mutators.sendDraft.delta,
41
+ clientID: v.string(),
42
+ id: v.number(),
43
+ name: v.literal('sendDraft'),
44
+ }),
33
45
  setContent: v.object({
34
46
  args: draft.mutators.setContent.delta,
35
47
  clientID: v.string(),
@@ -48,11 +60,11 @@ export const syncPushDraft = createEndpoint({
48
60
  id: v.number(),
49
61
  name: v.literal('setEnvelope'),
50
62
  }),
51
- setStatus: v.object({
52
- args: draft.mutators.setStatus.delta,
63
+ setScheduledFor: v.object({
64
+ args: draft.mutators.setScheduledFor.delta,
53
65
  clientID: v.string(),
54
66
  id: v.number(),
55
- name: v.literal('setStatus'),
67
+ name: v.literal('setScheduledFor'),
56
68
  }),
57
69
  uploadAttachmentChunk: v.object({
58
70
  args: draft.mutators.uploadAttachmentChunk.delta,