@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
@@ -3,9 +3,9 @@ export declare const account: {
3
3
  model: v.ObjectSchema<{
4
4
  readonly aliases: v.ArraySchema<v.ObjectSchema<{
5
5
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
+ readonly hidden: v.BooleanSchema<undefined>;
6
7
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
7
- readonly isHidden: v.BooleanSchema<undefined>;
8
- readonly isPrimary: v.BooleanSchema<undefined>;
8
+ readonly primary: v.BooleanSchema<undefined>;
9
9
  }, undefined>, undefined>;
10
10
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
11
11
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -26,7 +26,7 @@ export declare const account: {
26
26
  }, undefined>;
27
27
  }, undefined>;
28
28
  mutators: {
29
- add: {
29
+ createAccount: {
30
30
  delta: v.ObjectSchema<{
31
31
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
32
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -35,14 +35,16 @@ export declare const account: {
35
35
  };
36
36
  createAlias: {
37
37
  delta: v.ObjectSchema<{
38
- readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
39
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
40
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
41
- readonly isHidden: v.BooleanSchema<undefined>;
42
- readonly isPrimary: v.BooleanSchema<undefined>;
38
+ readonly accountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
39
+ readonly alias: v.ObjectSchema<{
40
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
41
+ readonly hidden: v.BooleanSchema<undefined>;
42
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
43
+ readonly primary: v.BooleanSchema<undefined>;
44
+ }, undefined>;
43
45
  }, undefined>;
44
46
  };
45
- delete: {
47
+ deleteAccount: {
46
48
  delta: v.ObjectSchema<{
47
49
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
48
50
  }, undefined>;
@@ -55,7 +57,7 @@ export declare const account: {
55
57
  setAliasHidden: {
56
58
  delta: v.ObjectSchema<{
57
59
  readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
58
- readonly isHidden: v.BooleanSchema<undefined>;
60
+ readonly hidden: v.BooleanSchema<undefined>;
59
61
  }, undefined>;
60
62
  };
61
63
  setAliasPrimary: {
@@ -63,19 +65,6 @@ export declare const account: {
63
65
  readonly aliasId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
64
66
  }, undefined>;
65
67
  };
66
- setConnectionConfig: {
67
- delta: v.ObjectSchema<{
68
- readonly connectionConfig: v.ObjectSchema<{
69
- readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
70
- readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
- readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
72
- readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
- readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
74
- readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
75
- }, undefined>;
76
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
77
- }, undefined>;
78
- };
79
68
  setConnectionConfigImapRaw: {
80
69
  delta: v.ObjectSchema<{
81
70
  readonly connectionConfig: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FG,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EG,CAAA"}
@@ -1,17 +1,18 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../schemas';
3
- const accountSettings = v.object({
3
+ const accountSettingsSchema = v.object({
4
4
  color: marcoSchemas.string.required(),
5
5
  name: marcoSchemas.string.nullable(),
6
6
  });
7
+ const aliasSchema = v.object({
8
+ emailAddress: marcoSchemas.string.email(),
9
+ hidden: v.boolean(),
10
+ id: marcoSchemas.string.shortUUID(),
11
+ primary: v.boolean(),
12
+ });
7
13
  export const account = {
8
14
  model: v.object({
9
- aliases: v.array(v.object({
10
- emailAddress: marcoSchemas.string.email(),
11
- id: marcoSchemas.string.shortUUID(),
12
- isHidden: v.boolean(),
13
- isPrimary: v.boolean(),
14
- })),
15
+ aliases: v.array(aliasSchema),
15
16
  emailAddress: marcoSchemas.string.email(),
16
17
  id: marcoSchemas.string.shortUUID(),
17
18
  imapConnectionStatus: marcoSchemas.emailAccount.imapConnectionStatus(),
@@ -25,10 +26,10 @@ export const account = {
25
26
  path: marcoSchemas.string.required(),
26
27
  specialUse: v.nullable(marcoSchemas.labelSpecialUse()),
27
28
  })),
28
- settings: accountSettings,
29
+ settings: accountSettingsSchema,
29
30
  }),
30
31
  mutators: {
31
- add: {
32
+ createAccount: {
32
33
  delta: v.object({
33
34
  color: marcoSchemas.string.required(),
34
35
  emailAddress: marcoSchemas.string.email(),
@@ -37,14 +38,11 @@ export const account = {
37
38
  },
38
39
  createAlias: {
39
40
  delta: v.object({
40
- aliasId: marcoSchemas.string.shortUUID(),
41
- emailAddress: marcoSchemas.string.email(),
42
- id: marcoSchemas.string.shortUUID(),
43
- isHidden: v.boolean(),
44
- isPrimary: v.boolean(),
41
+ accountId: marcoSchemas.string.shortUUID(),
42
+ alias: aliasSchema,
45
43
  }),
46
44
  },
47
- delete: {
45
+ deleteAccount: {
48
46
  delta: v.object({
49
47
  id: marcoSchemas.string.shortUUID(),
50
48
  }),
@@ -57,7 +55,7 @@ export const account = {
57
55
  setAliasHidden: {
58
56
  delta: v.object({
59
57
  aliasId: marcoSchemas.string.shortUUID(),
60
- isHidden: v.boolean(),
58
+ hidden: v.boolean(),
61
59
  }),
62
60
  },
63
61
  setAliasPrimary: {
@@ -65,12 +63,6 @@ export const account = {
65
63
  aliasId: marcoSchemas.string.shortUUID(),
66
64
  }),
67
65
  },
68
- setConnectionConfig: {
69
- delta: v.object({
70
- connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
71
- id: marcoSchemas.string.shortUUID(),
72
- }),
73
- },
74
66
  setConnectionConfigImapRaw: {
75
67
  delta: v.object({
76
68
  connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
@@ -86,7 +78,7 @@ export const account = {
86
78
  setSettings: {
87
79
  delta: v.object({
88
80
  id: marcoSchemas.string.shortUUID(),
89
- settings: v.partial(accountSettings),
81
+ settings: v.partial(accountSettingsSchema),
90
82
  }),
91
83
  },
92
84
  },
@@ -18,14 +18,35 @@ export declare const draft: {
18
18
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
19
19
  }, undefined>;
20
20
  readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
21
+ readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
21
22
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
22
23
  readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
23
- readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
24
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
25
+ 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>;
24
26
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
25
27
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
26
28
  }, undefined>;
27
29
  mutators: {
28
- create: {
30
+ cancelDraftSend: {
31
+ delta: v.ObjectSchema<{
32
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
33
+ }, undefined>;
34
+ };
35
+ createAttachment: {
36
+ delta: v.ObjectSchema<{
37
+ readonly attachment: v.ObjectSchema<{
38
+ readonly failed: v.BooleanSchema<undefined>;
39
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
41
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
43
+ readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
44
+ readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
45
+ }, undefined>;
46
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
47
+ }, undefined>;
48
+ };
49
+ createDraft: {
29
50
  delta: v.ObjectSchema<{
30
51
  readonly attachments: v.ArraySchema<v.ObjectSchema<{
31
52
  readonly failed: v.BooleanSchema<undefined>;
@@ -44,35 +65,28 @@ export declare const draft: {
44
65
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
45
66
  }, undefined>;
46
67
  readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
68
+ readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
47
69
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
48
70
  readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
49
- readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
71
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
72
+ 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>;
50
73
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
51
74
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
52
75
  }, undefined>;
53
76
  };
54
- createAttachment: {
77
+ deleteAttachment: {
55
78
  delta: v.ObjectSchema<{
56
- readonly attachment: v.ObjectSchema<{
57
- readonly failed: v.BooleanSchema<undefined>;
58
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
59
- readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
60
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
- readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
62
- readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
63
- readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
64
- }, undefined>;
79
+ readonly attachmentId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
65
80
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
66
81
  }, undefined>;
67
82
  };
68
- delete: {
83
+ deleteDraft: {
69
84
  delta: v.ObjectSchema<{
70
85
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
71
86
  }, undefined>;
72
87
  };
73
- deleteAttachment: {
88
+ sendDraft: {
74
89
  delta: v.ObjectSchema<{
75
- readonly attachmentId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
76
90
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
77
91
  }, undefined>;
78
92
  };
@@ -147,10 +161,10 @@ export declare const draft: {
147
161
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
148
162
  }, undefined>;
149
163
  };
150
- setStatus: {
164
+ setScheduledFor: {
151
165
  delta: v.ObjectSchema<{
152
166
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
153
- readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
167
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
154
168
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
155
169
  }, undefined>;
156
170
  };
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA8C5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+DK,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAmD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEK,CAAA"}
@@ -2,8 +2,9 @@ import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../schemas';
3
3
  const draftStatusSchema = v.union([
4
4
  v.literal('DRAFT'),
5
- v.literal('SENDING'),
6
- v.literal('SENDING_FAILED'),
5
+ v.literal('SEND_REQUESTED'),
6
+ v.literal('SEND_CONFIRMATION_PENDING'),
7
+ v.literal('SEND_CONFIRMED'),
7
8
  ]);
8
9
  const draftTypeSchema = v.union([
9
10
  v.literal('NEW'),
@@ -26,12 +27,15 @@ const attachmentSchema = v.object({
26
27
  totalSize: marcoSchemas.number.positiveInteger(),
27
28
  uploadedChunks: marcoSchemas.number.positiveInteger(),
28
29
  });
30
+ const scheduledForSchema = v.nullable(marcoSchemas.number.positiveInteger());
29
31
  const draftSchema = v.object({
30
32
  attachments: v.array(attachmentSchema),
31
33
  body: bodySchema,
32
34
  emailAccountId: marcoSchemas.string.shortUUID(),
35
+ error: v.nullable(v.string()),
33
36
  id: marcoSchemas.string.shortUUID(),
34
37
  referencedMessageId: v.nullable(marcoSchemas.string.shortUUID()),
38
+ scheduledFor: scheduledForSchema,
35
39
  status: draftStatusSchema,
36
40
  type: draftTypeSchema,
37
41
  updatedAt: marcoSchemas.number.positiveInteger(),
@@ -39,8 +43,10 @@ const draftSchema = v.object({
39
43
  export const draft = {
40
44
  model: draftSchema,
41
45
  mutators: {
42
- create: {
43
- delta: draftSchema,
46
+ cancelDraftSend: {
47
+ delta: v.object({
48
+ id: marcoSchemas.string.shortUUID(),
49
+ }),
44
50
  },
45
51
  createAttachment: {
46
52
  delta: v.object({
@@ -48,14 +54,22 @@ export const draft = {
48
54
  id: marcoSchemas.string.shortUUID(),
49
55
  }),
50
56
  },
51
- delete: {
57
+ createDraft: {
58
+ delta: draftSchema,
59
+ },
60
+ deleteAttachment: {
61
+ delta: v.object({
62
+ attachmentId: marcoSchemas.string.shortUUID(),
63
+ id: marcoSchemas.string.shortUUID(),
64
+ }),
65
+ },
66
+ deleteDraft: {
52
67
  delta: v.object({
53
68
  id: marcoSchemas.string.shortUUID(),
54
69
  }),
55
70
  },
56
- deleteAttachment: {
71
+ sendDraft: {
57
72
  delta: v.object({
58
- attachmentId: marcoSchemas.string.shortUUID(),
59
73
  id: marcoSchemas.string.shortUUID(),
60
74
  }),
61
75
  },
@@ -80,10 +94,10 @@ export const draft = {
80
94
  updatedAt: marcoSchemas.number.positiveInteger(),
81
95
  }),
82
96
  },
83
- setStatus: {
97
+ setScheduledFor: {
84
98
  delta: v.object({
85
99
  id: marcoSchemas.string.shortUUID(),
86
- status: draftStatusSchema,
100
+ scheduledFor: scheduledForSchema,
87
101
  updatedAt: marcoSchemas.number.positiveInteger(),
88
102
  }),
89
103
  },
@@ -4,9 +4,9 @@ export declare const marcoClients: {
4
4
  model: import("valibot").ObjectSchema<{
5
5
  readonly aliases: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
6
6
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
7
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
7
8
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
8
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
9
- readonly isPrimary: import("valibot").BooleanSchema<undefined>;
9
+ readonly primary: import("valibot").BooleanSchema<undefined>;
10
10
  }, undefined>, undefined>;
11
11
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
12
12
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
@@ -27,7 +27,7 @@ export declare const marcoClients: {
27
27
  }, undefined>;
28
28
  }, undefined>;
29
29
  mutators: {
30
- add: {
30
+ createAccount: {
31
31
  delta: import("valibot").ObjectSchema<{
32
32
  readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
33
33
  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,14 +36,16 @@ export declare const marcoClients: {
36
36
  };
37
37
  createAlias: {
38
38
  delta: import("valibot").ObjectSchema<{
39
- readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
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
- readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
42
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
43
- readonly isPrimary: import("valibot").BooleanSchema<undefined>;
39
+ readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
40
+ readonly alias: import("valibot").ObjectSchema<{
41
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
42
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
43
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
44
+ readonly primary: import("valibot").BooleanSchema<undefined>;
45
+ }, undefined>;
44
46
  }, undefined>;
45
47
  };
46
- delete: {
48
+ deleteAccount: {
47
49
  delta: import("valibot").ObjectSchema<{
48
50
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
49
51
  }, undefined>;
@@ -56,7 +58,7 @@ export declare const marcoClients: {
56
58
  setAliasHidden: {
57
59
  delta: import("valibot").ObjectSchema<{
58
60
  readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
59
- readonly isHidden: import("valibot").BooleanSchema<undefined>;
61
+ readonly hidden: import("valibot").BooleanSchema<undefined>;
60
62
  }, undefined>;
61
63
  };
62
64
  setAliasPrimary: {
@@ -64,19 +66,6 @@ export declare const marcoClients: {
64
66
  readonly aliasId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
65
67
  }, undefined>;
66
68
  };
67
- setConnectionConfig: {
68
- delta: import("valibot").ObjectSchema<{
69
- readonly connectionConfig: import("valibot").ObjectSchema<{
70
- readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
71
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
72
- 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>;
73
- readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
74
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
75
- 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>;
76
- }, undefined>;
77
- readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
78
- }, undefined>;
79
- };
80
69
  setConnectionConfigImapRaw: {
81
70
  delta: import("valibot").ObjectSchema<{
82
71
  readonly connectionConfig: import("valibot").ObjectSchema<{
@@ -172,14 +161,35 @@ export declare const marcoClients: {
172
161
  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>;
173
162
  }, undefined>;
174
163
  readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
164
+ readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
175
165
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
176
166
  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>;
177
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
167
+ 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>;
168
+ 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>;
178
169
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
179
170
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
180
171
  }, undefined>;
181
172
  mutators: {
182
- create: {
173
+ cancelDraftSend: {
174
+ delta: import("valibot").ObjectSchema<{
175
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
176
+ }, undefined>;
177
+ };
178
+ createAttachment: {
179
+ delta: import("valibot").ObjectSchema<{
180
+ readonly attachment: import("valibot").ObjectSchema<{
181
+ readonly failed: import("valibot").BooleanSchema<undefined>;
182
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
183
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
184
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
185
+ readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
186
+ readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
187
+ readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
188
+ }, undefined>;
189
+ readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
190
+ }, undefined>;
191
+ };
192
+ createDraft: {
183
193
  delta: import("valibot").ObjectSchema<{
184
194
  readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
185
195
  readonly failed: import("valibot").BooleanSchema<undefined>;
@@ -198,35 +208,28 @@ export declare const marcoClients: {
198
208
  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>;
199
209
  }, undefined>;
200
210
  readonly emailAccountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
211
+ readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
201
212
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
202
213
  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>;
203
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
214
+ 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>;
215
+ 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>;
204
216
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
205
217
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
206
218
  }, undefined>;
207
219
  };
208
- createAttachment: {
220
+ deleteAttachment: {
209
221
  delta: import("valibot").ObjectSchema<{
210
- readonly attachment: import("valibot").ObjectSchema<{
211
- readonly failed: import("valibot").BooleanSchema<undefined>;
212
- readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
213
- readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
214
- readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
215
- readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
216
- readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
217
- readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
218
- }, undefined>;
222
+ readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
219
223
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
220
224
  }, undefined>;
221
225
  };
222
- delete: {
226
+ deleteDraft: {
223
227
  delta: import("valibot").ObjectSchema<{
224
228
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
225
229
  }, undefined>;
226
230
  };
227
- deleteAttachment: {
231
+ sendDraft: {
228
232
  delta: import("valibot").ObjectSchema<{
229
- readonly attachmentId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
230
233
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
231
234
  }, undefined>;
232
235
  };
@@ -301,10 +304,10 @@ export declare const marcoClients: {
301
304
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
302
305
  }, undefined>;
303
306
  };
304
- setStatus: {
307
+ setScheduledFor: {
305
308
  delta: import("valibot").ObjectSchema<{
306
309
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
307
- readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
310
+ 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>;
308
311
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
309
312
  }, undefined>;
310
313
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}