@marcoappio/marco-config 2.0.289 → 2.0.291
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/clients/account.d.ts +7 -19
- package/dist/clients/account.d.ts.map +1 -1
- package/dist/clients/account.js +7 -12
- package/dist/clients/draft.d.ts +32 -18
- package/dist/clients/draft.d.ts.map +1 -1
- package/dist/clients/draft.js +23 -9
- package/dist/clients/index.d.ts +39 -37
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.d.ts +43 -39
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +43 -39
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +43 -39
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +3 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +5 -3
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +5 -19
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +6 -12
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +33 -17
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +21 -9
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +38 -36
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +43 -39
- package/dist/sdk/index.d.ts.map +1 -1
- 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
|
|
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
|
|
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,14 @@ 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<"
|
|
302
|
+
readonly name: import("valibot").LiteralSchema<"createAccount", undefined>;
|
|
301
303
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
302
304
|
readonly args: import("valibot").ObjectSchema<{
|
|
303
305
|
readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
304
306
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
307
|
+
readonly hidden: import("valibot").BooleanSchema<undefined>;
|
|
305
308
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
306
|
-
readonly
|
|
307
|
-
readonly isPrimary: import("valibot").BooleanSchema<undefined>;
|
|
309
|
+
readonly primary: import("valibot").BooleanSchema<undefined>;
|
|
308
310
|
}, undefined>;
|
|
309
311
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
310
312
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -315,7 +317,7 @@ export declare const sync: {
|
|
|
315
317
|
}, undefined>;
|
|
316
318
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
317
319
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
318
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
320
|
+
readonly name: import("valibot").LiteralSchema<"deleteAccount", undefined>;
|
|
319
321
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
320
322
|
readonly args: import("valibot").ObjectSchema<{
|
|
321
323
|
readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
@@ -326,6 +328,7 @@ export declare const sync: {
|
|
|
326
328
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
327
329
|
readonly args: import("valibot").ObjectSchema<{
|
|
328
330
|
readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
331
|
+
readonly hidden: import("valibot").BooleanSchema<undefined>;
|
|
329
332
|
}, undefined>;
|
|
330
333
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
331
334
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -337,21 +340,6 @@ export declare const sync: {
|
|
|
337
340
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
338
341
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
339
342
|
readonly name: import("valibot").LiteralSchema<"setAliasPrimary", undefined>;
|
|
340
|
-
}, undefined> | import("valibot").ObjectSchema<{
|
|
341
|
-
readonly args: import("valibot").ObjectSchema<{
|
|
342
|
-
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
343
|
-
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
344
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
345
|
-
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>;
|
|
346
|
-
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
347
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
348
|
-
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>;
|
|
349
|
-
}, undefined>;
|
|
350
|
-
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
351
|
-
}, undefined>;
|
|
352
|
-
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
353
|
-
readonly id: import("valibot").NumberSchema<undefined>;
|
|
354
|
-
readonly name: import("valibot").LiteralSchema<"setConnectionConfig", undefined>;
|
|
355
343
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
356
344
|
readonly args: import("valibot").ObjectSchema<{
|
|
357
345
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
@@ -438,6 +426,29 @@ export declare const sync: {
|
|
|
438
426
|
draft: import("../../../..").EndpointConfig<"/v1/pv/sync/push/draft", import("valibot").ObjectSchema<{
|
|
439
427
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
440
428
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
|
|
429
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
430
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
431
|
+
}, undefined>;
|
|
432
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
433
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
434
|
+
readonly name: import("valibot").LiteralSchema<"cancelDraftSend", undefined>;
|
|
435
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
436
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
437
|
+
readonly attachment: import("valibot").ObjectSchema<{
|
|
438
|
+
readonly failed: import("valibot").BooleanSchema<undefined>;
|
|
439
|
+
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
440
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
441
|
+
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
442
|
+
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
443
|
+
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
444
|
+
readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
445
|
+
}, undefined>;
|
|
446
|
+
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
447
|
+
}, undefined>;
|
|
448
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
449
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
450
|
+
readonly name: import("valibot").LiteralSchema<"createAttachment", undefined>;
|
|
451
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
441
452
|
readonly args: import("valibot").ObjectSchema<{
|
|
442
453
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
443
454
|
readonly failed: import("valibot").BooleanSchema<undefined>;
|
|
@@ -456,46 +467,39 @@ export declare const sync: {
|
|
|
456
467
|
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>;
|
|
457
468
|
}, undefined>;
|
|
458
469
|
readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
470
|
+
readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
459
471
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
460
472
|
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>;
|
|
461
|
-
readonly
|
|
473
|
+
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>;
|
|
474
|
+
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>;
|
|
462
475
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
463
476
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
464
477
|
}, undefined>;
|
|
465
478
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
466
479
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
467
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
480
|
+
readonly name: import("valibot").LiteralSchema<"createDraft", undefined>;
|
|
468
481
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
469
482
|
readonly args: import("valibot").ObjectSchema<{
|
|
470
|
-
readonly
|
|
471
|
-
readonly failed: import("valibot").BooleanSchema<undefined>;
|
|
472
|
-
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
473
|
-
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
474
|
-
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
475
|
-
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
476
|
-
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
477
|
-
readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
478
|
-
}, undefined>;
|
|
483
|
+
readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
479
484
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
480
485
|
}, undefined>;
|
|
481
486
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
482
487
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
483
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
488
|
+
readonly name: import("valibot").LiteralSchema<"deleteAttachment", undefined>;
|
|
484
489
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
485
490
|
readonly args: import("valibot").ObjectSchema<{
|
|
486
491
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
487
492
|
}, undefined>;
|
|
488
493
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
489
494
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
490
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
495
|
+
readonly name: import("valibot").LiteralSchema<"deleteDraft", undefined>;
|
|
491
496
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
492
497
|
readonly args: import("valibot").ObjectSchema<{
|
|
493
|
-
readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
494
498
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
495
499
|
}, undefined>;
|
|
496
500
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
497
501
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
498
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
502
|
+
readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
|
|
499
503
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
500
504
|
readonly args: import("valibot").ObjectSchema<{
|
|
501
505
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
@@ -576,12 +580,12 @@ export declare const sync: {
|
|
|
576
580
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
577
581
|
readonly args: import("valibot").ObjectSchema<{
|
|
578
582
|
readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
579
|
-
readonly
|
|
583
|
+
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>;
|
|
580
584
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
581
585
|
}, undefined>;
|
|
582
586
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
583
587
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
584
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
588
|
+
readonly name: import("valibot").LiteralSchema<"setScheduledFor", undefined>;
|
|
585
589
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
586
590
|
readonly args: import("valibot").ObjectSchema<{
|
|
587
591
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,14 @@ 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<"
|
|
12
|
+
readonly name: v.LiteralSchema<"createAccount", undefined>;
|
|
13
13
|
}, undefined> | v.ObjectSchema<{
|
|
14
14
|
readonly args: v.ObjectSchema<{
|
|
15
15
|
readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
16
16
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
17
|
+
readonly hidden: v.BooleanSchema<undefined>;
|
|
17
18
|
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
18
|
-
readonly
|
|
19
|
-
readonly isPrimary: v.BooleanSchema<undefined>;
|
|
19
|
+
readonly primary: v.BooleanSchema<undefined>;
|
|
20
20
|
}, undefined>;
|
|
21
21
|
readonly clientID: v.StringSchema<undefined>;
|
|
22
22
|
readonly id: v.NumberSchema<undefined>;
|
|
@@ -27,7 +27,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
|
|
|
27
27
|
}, undefined>;
|
|
28
28
|
readonly clientID: v.StringSchema<undefined>;
|
|
29
29
|
readonly id: v.NumberSchema<undefined>;
|
|
30
|
-
readonly name: v.LiteralSchema<"
|
|
30
|
+
readonly name: v.LiteralSchema<"deleteAccount", undefined>;
|
|
31
31
|
}, undefined> | v.ObjectSchema<{
|
|
32
32
|
readonly args: v.ObjectSchema<{
|
|
33
33
|
readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
@@ -38,6 +38,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
|
|
|
38
38
|
}, undefined> | v.ObjectSchema<{
|
|
39
39
|
readonly args: v.ObjectSchema<{
|
|
40
40
|
readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
41
|
+
readonly hidden: v.BooleanSchema<undefined>;
|
|
41
42
|
}, undefined>;
|
|
42
43
|
readonly clientID: v.StringSchema<undefined>;
|
|
43
44
|
readonly id: v.NumberSchema<undefined>;
|
|
@@ -49,21 +50,6 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
|
|
|
49
50
|
readonly clientID: v.StringSchema<undefined>;
|
|
50
51
|
readonly id: v.NumberSchema<undefined>;
|
|
51
52
|
readonly name: v.LiteralSchema<"setAliasPrimary", undefined>;
|
|
52
|
-
}, undefined> | v.ObjectSchema<{
|
|
53
|
-
readonly args: v.ObjectSchema<{
|
|
54
|
-
readonly connectionConfig: v.ObjectSchema<{
|
|
55
|
-
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
-
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
57
|
-
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
58
|
-
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
|
-
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
60
|
-
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
61
|
-
}, undefined>;
|
|
62
|
-
readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
63
|
-
}, undefined>;
|
|
64
|
-
readonly clientID: v.StringSchema<undefined>;
|
|
65
|
-
readonly id: v.NumberSchema<undefined>;
|
|
66
|
-
readonly name: v.LiteralSchema<"setConnectionConfig", undefined>;
|
|
67
53
|
}, undefined> | v.ObjectSchema<{
|
|
68
54
|
readonly args: v.ObjectSchema<{
|
|
69
55
|
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
|
|
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
|
-
|
|
10
|
-
args: account.mutators.
|
|
9
|
+
createAccount: v.object({
|
|
10
|
+
args: account.mutators.createAccount.delta,
|
|
11
11
|
clientID: v.string(),
|
|
12
12
|
id: v.number(),
|
|
13
|
-
name: v.literal('
|
|
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
|
-
|
|
22
|
-
args: account.mutators.
|
|
21
|
+
deleteAccount: v.object({
|
|
22
|
+
args: account.mutators.deleteAccount.delta,
|
|
23
23
|
clientID: v.string(),
|
|
24
24
|
id: v.number(),
|
|
25
|
-
name: v.literal('
|
|
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
|
|
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<"
|
|
56
|
+
readonly name: v.LiteralSchema<"createDraft", undefined>;
|
|
32
57
|
}, undefined> | v.ObjectSchema<{
|
|
33
58
|
readonly args: v.ObjectSchema<{
|
|
34
|
-
readonly
|
|
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<"
|
|
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<"
|
|
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<"
|
|
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
|
|
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<"
|
|
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
|
|
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
|
-
|
|
10
|
-
args: draft.mutators.
|
|
9
|
+
cancelDraftSend: v.object({
|
|
10
|
+
args: draft.mutators.cancelDraftSend.delta,
|
|
11
11
|
clientID: v.string(),
|
|
12
12
|
id: v.number(),
|
|
13
|
-
name: v.literal('
|
|
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
|
-
|
|
22
|
-
args: draft.mutators.
|
|
21
|
+
createDraft: v.object({
|
|
22
|
+
args: draft.mutators.createDraft.delta,
|
|
23
23
|
clientID: v.string(),
|
|
24
24
|
id: v.number(),
|
|
25
|
-
name: v.literal('
|
|
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
|
-
|
|
52
|
-
args: draft.mutators.
|
|
63
|
+
setScheduledFor: v.object({
|
|
64
|
+
args: draft.mutators.setScheduledFor.delta,
|
|
53
65
|
clientID: v.string(),
|
|
54
66
|
id: v.number(),
|
|
55
|
-
name: v.literal('
|
|
67
|
+
name: v.literal('setScheduledFor'),
|
|
56
68
|
}),
|
|
57
69
|
uploadAttachmentChunk: v.object({
|
|
58
70
|
args: draft.mutators.uploadAttachmentChunk.delta,
|