@marcoappio/marco-config 2.0.246 → 2.0.248

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 (41) hide show
  1. package/dist/clients/account.d.ts +8 -8
  2. package/dist/clients/account.js +5 -5
  3. package/dist/clients/contact.d.ts +1 -1
  4. package/dist/clients/contact.js +1 -1
  5. package/dist/clients/draft.d.ts +21 -21
  6. package/dist/clients/draft.js +13 -13
  7. package/dist/clients/index.d.ts +48 -48
  8. package/dist/clients/thread.d.ts +13 -13
  9. package/dist/clients/thread.js +13 -13
  10. package/dist/clients/user.d.ts +5 -5
  11. package/dist/clients/user.js +2 -2
  12. package/dist/{schemas.d.ts → schemas/index.d.ts} +3 -1
  13. package/dist/schemas/index.d.ts.map +1 -0
  14. package/dist/{schemas.js → schemas/index.js} +2 -8
  15. package/dist/schemas/string.d.ts +12 -0
  16. package/dist/schemas/string.d.ts.map +1 -0
  17. package/dist/schemas/string.js +12 -0
  18. package/dist/schemas/string.test.d.ts +2 -0
  19. package/dist/schemas/string.test.d.ts.map +1 -0
  20. package/dist/schemas/string.test.js +20 -0
  21. package/dist/sdk/endpoints/index.d.ts +48 -48
  22. package/dist/sdk/endpoints/private/index.d.ts +48 -48
  23. package/dist/sdk/endpoints/private/sync/index.d.ts +48 -48
  24. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -1
  25. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +1 -1
  26. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +4 -4
  27. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +11 -11
  28. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +4 -4
  29. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +1 -1
  30. package/dist/sdk/endpoints/private/sync/push/account.d.ts +7 -7
  31. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +17 -17
  32. package/dist/sdk/endpoints/private/sync/push/index.d.ts +37 -37
  33. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +9 -9
  34. package/dist/sdk/endpoints/private/sync/push/user.d.ts +4 -4
  35. package/dist/sdk/index.d.ts +48 -48
  36. package/dist/utils/shortUUID/shortUUID.d.ts +1 -0
  37. package/dist/utils/shortUUID/shortUUID.d.ts.map +1 -1
  38. package/dist/utils/shortUUID/shortUUID.js +1 -0
  39. package/dist/utils/shortUUID/shortUUID.test.js +4 -0
  40. package/package.json +1 -1
  41. package/dist/schemas.d.ts.map +0 -1
@@ -10,7 +10,7 @@ export declare const account: {
10
10
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
11
11
  }, undefined>, undefined>;
12
12
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
13
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
13
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
14
14
  readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
15
15
  readonly labels: v.ArraySchema<v.ObjectSchema<{
16
16
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -32,12 +32,12 @@ export declare const account: {
32
32
  delta: v.ObjectSchema<{
33
33
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
34
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
36
36
  }, undefined>;
37
37
  };
38
38
  delete: {
39
39
  delta: v.ObjectSchema<{
40
- readonly id: 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
41
  }, undefined>;
42
42
  };
43
43
  setConnectionConfig: {
@@ -50,16 +50,16 @@ export declare const account: {
50
50
  readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
51
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
52
52
  }, undefined>;
53
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
54
54
  }, undefined>;
55
55
  };
56
56
  setSettings: {
57
57
  delta: v.ObjectSchema<{
58
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
59
59
  readonly settings: Omit<v.ObjectSchema<{
60
60
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
61
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
62
- }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
62
+ }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
63
63
  readonly entries: {
64
64
  readonly color: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
65
65
  readonly name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -74,7 +74,7 @@ export declare const account: {
74
74
  readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
75
75
  name?: string | null | undefined;
76
76
  color?: string | undefined;
77
- }, v.StringIssue | v.ObjectIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue>;
77
+ }, v.StringIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue>;
78
78
  readonly '~types'?: {
79
79
  readonly input: {
80
80
  name?: string | null | undefined;
@@ -84,7 +84,7 @@ export declare const account: {
84
84
  name?: string | null | undefined;
85
85
  color?: string | undefined;
86
86
  };
87
- readonly issue: v.StringIssue | v.ObjectIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue;
87
+ readonly issue: v.StringIssue | v.MaxLengthIssue<string, number> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue;
88
88
  } | undefined;
89
89
  };
90
90
  }, undefined>;
@@ -8,7 +8,7 @@ export const account = {
8
8
  model: v.object({
9
9
  connectionConfig: v.nullable(marcoSchemas.emailAccount.connectionConfig()),
10
10
  emailAddress: marcoSchemas.string.email(),
11
- id: marcoSchemas.string.required(),
11
+ id: marcoSchemas.string.shortUUID(),
12
12
  imapConnectionStatus: marcoSchemas.emailAccount.imapConnectionStatus(),
13
13
  labels: v.array(v.object({
14
14
  id: marcoSchemas.string.required(),
@@ -27,23 +27,23 @@ export const account = {
27
27
  delta: v.object({
28
28
  color: marcoSchemas.string.required(),
29
29
  emailAddress: marcoSchemas.string.email(),
30
- id: marcoSchemas.string.required(),
30
+ id: marcoSchemas.string.shortUUID(),
31
31
  }),
32
32
  },
33
33
  delete: {
34
34
  delta: v.object({
35
- id: marcoSchemas.string.required(),
35
+ id: marcoSchemas.string.shortUUID(),
36
36
  }),
37
37
  },
38
38
  setConnectionConfig: {
39
39
  delta: v.object({
40
40
  connectionConfig: marcoSchemas.emailAccount.connectionConfig(),
41
- id: marcoSchemas.string.required(),
41
+ id: marcoSchemas.string.shortUUID(),
42
42
  }),
43
43
  },
44
44
  setSettings: {
45
45
  delta: v.object({
46
- id: marcoSchemas.string.required(),
46
+ id: marcoSchemas.string.shortUUID(),
47
47
  settings: v.partial(accountSettings),
48
48
  }),
49
49
  },
@@ -2,7 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const contact: {
3
3
  model: v.ObjectSchema<{
4
4
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
5
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
6
6
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  }, undefined>;
8
8
  mutators: {};
@@ -3,7 +3,7 @@ import { marcoSchemas } from '../schemas';
3
3
  export const contact = {
4
4
  model: v.object({
5
5
  emailAddress: marcoSchemas.string.email(),
6
- id: marcoSchemas.string.required(),
6
+ id: marcoSchemas.string.shortUUID(),
7
7
  name: marcoSchemas.string.nullable(),
8
8
  }),
9
9
  mutators: {},
@@ -3,7 +3,7 @@ export declare const draft: {
3
3
  model: v.ObjectSchema<{
4
4
  readonly attachments: v.ArraySchema<v.ObjectSchema<{
5
5
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
7
7
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
9
9
  readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -16,9 +16,9 @@ export declare const draft: {
16
16
  readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
17
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
18
18
  }, undefined>;
19
- readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
- readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
20
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
21
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
22
22
  readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
23
23
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
24
24
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -28,7 +28,7 @@ export declare const draft: {
28
28
  delta: v.ObjectSchema<{
29
29
  readonly attachments: v.ArraySchema<v.ObjectSchema<{
30
30
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
32
32
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
33
  readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
34
34
  readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -41,9 +41,9 @@ export declare const draft: {
41
41
  readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
42
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
43
43
  }, undefined>;
44
- readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
- readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
45
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
46
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>, undefined>;
47
47
  readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
48
48
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
49
49
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -53,23 +53,23 @@ export declare const draft: {
53
53
  delta: v.ObjectSchema<{
54
54
  readonly attachment: v.ObjectSchema<{
55
55
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
57
57
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
58
  readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
59
59
  readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
60
60
  readonly uploadedChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
61
61
  }, undefined>;
62
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
62
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
63
63
  }, undefined>;
64
64
  };
65
65
  delete: {
66
66
  delta: v.ObjectSchema<{
67
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
68
68
  }, undefined>;
69
69
  };
70
70
  setContent: {
71
71
  delta: v.ObjectSchema<{
72
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
73
73
  readonly patch: v.ArraySchema<v.ObjectSchema<{
74
74
  readonly index: v.NumberSchema<undefined>;
75
75
  readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
@@ -80,8 +80,8 @@ export declare const draft: {
80
80
  };
81
81
  setEmailAccountId: {
82
82
  delta: v.ObjectSchema<{
83
- readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
84
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
83
+ readonly emailAccountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
84
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
85
85
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
86
86
  }, undefined>;
87
87
  };
@@ -93,7 +93,7 @@ export declare const draft: {
93
93
  readonly content: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
94
94
  readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
95
95
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
96
- }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
96
+ }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
97
97
  readonly entries: Omit<{
98
98
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
99
99
  readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -117,7 +117,7 @@ export declare const draft: {
117
117
  cc: string[];
118
118
  to: string[];
119
119
  subject: string | null;
120
- }, v.StringIssue | v.ObjectIssue | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.ArrayIssue>;
120
+ }, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue>;
121
121
  readonly '~types'?: {
122
122
  readonly input: {
123
123
  bcc: string[];
@@ -131,25 +131,25 @@ export declare const draft: {
131
131
  to: string[];
132
132
  subject: string | null;
133
133
  };
134
- readonly issue: v.StringIssue | v.ObjectIssue | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.ArrayIssue;
134
+ readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue;
135
135
  } | undefined;
136
136
  };
137
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
137
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
138
138
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
139
139
  }, undefined>;
140
140
  };
141
141
  setStatus: {
142
142
  delta: v.ObjectSchema<{
143
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
143
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
144
144
  readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SENDING", undefined>, v.LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
145
145
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
146
146
  }, undefined>;
147
147
  };
148
148
  uploadAttachmentChunk: {
149
149
  delta: v.ObjectSchema<{
150
- readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
150
+ readonly attachmentId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
151
151
  readonly chunk: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
152
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
152
+ readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
153
153
  }, undefined>;
154
154
  };
155
155
  };
@@ -19,7 +19,7 @@ const bodySchema = v.object({
19
19
  });
20
20
  const attachmentSchema = v.object({
21
21
  fileName: marcoSchemas.string.required(),
22
- id: marcoSchemas.string.required(),
22
+ id: marcoSchemas.string.shortUUID(),
23
23
  mimeType: marcoSchemas.string.required(),
24
24
  totalChunks: marcoSchemas.number.positiveInteger(),
25
25
  totalSize: marcoSchemas.number.positiveInteger(),
@@ -28,9 +28,9 @@ const attachmentSchema = v.object({
28
28
  const draftSchema = v.object({
29
29
  attachments: v.array(attachmentSchema),
30
30
  body: bodySchema,
31
- emailAccountId: marcoSchemas.string.required(),
32
- id: marcoSchemas.string.required(),
33
- referencedMessageId: marcoSchemas.string.nullable(),
31
+ emailAccountId: marcoSchemas.string.shortUUID(),
32
+ id: marcoSchemas.string.shortUUID(),
33
+ referencedMessageId: v.nullable(marcoSchemas.string.shortUUID()),
34
34
  status: draftStatusSchema,
35
35
  type: draftTypeSchema,
36
36
  updatedAt: marcoSchemas.number.positiveInteger(),
@@ -44,47 +44,47 @@ export const draft = {
44
44
  createAttachment: {
45
45
  delta: v.object({
46
46
  attachment: attachmentSchema,
47
- id: marcoSchemas.string.required(),
47
+ id: marcoSchemas.string.shortUUID(),
48
48
  }),
49
49
  },
50
50
  delete: {
51
51
  delta: v.object({
52
- id: marcoSchemas.string.required(),
52
+ id: marcoSchemas.string.shortUUID(),
53
53
  }),
54
54
  },
55
55
  setContent: {
56
56
  delta: v.object({
57
- id: marcoSchemas.string.required(),
57
+ id: marcoSchemas.string.shortUUID(),
58
58
  patch: marcoSchemas.drafts.contentPatch.patch(),
59
59
  updatedAt: marcoSchemas.number.positiveInteger(),
60
60
  }),
61
61
  },
62
62
  setEmailAccountId: {
63
63
  delta: v.object({
64
- emailAccountId: marcoSchemas.string.required(),
65
- id: marcoSchemas.string.required(),
64
+ emailAccountId: marcoSchemas.string.shortUUID(),
65
+ id: marcoSchemas.string.shortUUID(),
66
66
  updatedAt: marcoSchemas.number.positiveInteger(),
67
67
  }),
68
68
  },
69
69
  setEnvelope: {
70
70
  delta: v.object({
71
71
  envelope: v.omit(bodySchema, ['content']),
72
- id: marcoSchemas.string.required(),
72
+ id: marcoSchemas.string.shortUUID(),
73
73
  updatedAt: marcoSchemas.number.positiveInteger(),
74
74
  }),
75
75
  },
76
76
  setStatus: {
77
77
  delta: v.object({
78
- id: marcoSchemas.string.required(),
78
+ id: marcoSchemas.string.shortUUID(),
79
79
  status: draftStatusSchema,
80
80
  updatedAt: marcoSchemas.number.positiveInteger(),
81
81
  }),
82
82
  },
83
83
  uploadAttachmentChunk: {
84
84
  delta: v.object({
85
- attachmentId: marcoSchemas.string.required(),
85
+ attachmentId: marcoSchemas.string.shortUUID(),
86
86
  chunk: marcoSchemas.string.required(),
87
- id: marcoSchemas.string.required(),
87
+ id: marcoSchemas.string.shortUUID(),
88
88
  }),
89
89
  },
90
90
  },