@marcoappio/marco-config 2.0.162 → 2.0.164
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 -7
- package/dist/clients/account.js +6 -6
- package/dist/clients/contact.d.ts +1 -1
- package/dist/clients/contact.js +1 -1
- package/dist/clients/draft.d.ts +12 -77
- package/dist/clients/draft.d.ts.map +1 -1
- package/dist/clients/draft.js +25 -27
- package/dist/clients/index.d.ts +27 -93
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/thread.d.ts +5 -5
- package/dist/clients/thread.js +5 -5
- package/dist/clients/user.d.ts +3 -3
- package/dist/clients/user.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas.d.ts +1 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -1
- package/dist/sdk/endpoints/index.d.ts +39 -107
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/{email-message/email-message-html-get.d.ts → emailMessage/getEmailMessageHTML.d.ts} +2 -2
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/{email-message/email-message-html-get.js → emailMessage/getEmailMessageHTML.js} +1 -1
- package/dist/sdk/endpoints/private/{email-message → emailMessage}/index.d.ts +1 -1
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
- package/dist/sdk/endpoints/private/index.d.ts +35 -103
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.js +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +33 -101
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +4 -5
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +15 -16
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +4 -4
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +6 -6
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +6 -73
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +1 -7
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +18 -85
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +3 -3
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +1 -1
- package/dist/sdk/endpoints/private/user/index.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +3 -3
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts +1 -1
- package/dist/sdk/endpoints/public/index.d.ts +4 -4
- package/dist/sdk/index.d.ts +39 -107
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/JSONContent.d.ts +11 -0
- package/dist/types/JSONContent.d.ts.map +1 -0
- package/dist/types/JSONContent.js +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/package.json +2 -2
- package/dist/sdk/endpoints/private/email-message/email-message-html-get.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/email-message/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/email-message/index.js +0 -4
|
@@ -2,7 +2,7 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const account: {
|
|
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.
|
|
5
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
6
6
|
readonly imapPasswordConfig: v.NullableSchema<v.ObjectSchema<{
|
|
7
7
|
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
8
|
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -10,7 +10,7 @@ export declare const account: {
|
|
|
10
10
|
readonly status: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
|
|
11
11
|
}, undefined>, undefined>;
|
|
12
12
|
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
13
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
13
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
14
14
|
readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
15
15
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
16
16
|
readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
@@ -30,17 +30,17 @@ export declare const account: {
|
|
|
30
30
|
delta: v.ObjectSchema<{
|
|
31
31
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
32
32
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
33
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
33
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
34
34
|
}, undefined>;
|
|
35
35
|
};
|
|
36
36
|
delete: {
|
|
37
37
|
delta: v.ObjectSchema<{
|
|
38
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
38
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
39
39
|
}, undefined>;
|
|
40
40
|
};
|
|
41
41
|
setIMAPPasswordConfig: {
|
|
42
42
|
delta: v.ObjectSchema<{
|
|
43
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
43
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
44
44
|
readonly imapPasswordConfig: v.ObjectSchema<{
|
|
45
45
|
readonly status: v.LiteralSchema<"AWAITING_CONNECTION", undefined>;
|
|
46
46
|
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -51,7 +51,7 @@ export declare const account: {
|
|
|
51
51
|
};
|
|
52
52
|
setSettings: {
|
|
53
53
|
delta: v.ObjectSchema<{
|
|
54
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
54
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
55
55
|
readonly settings: Omit<v.ObjectSchema<{
|
|
56
56
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
57
57
|
readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -62,7 +62,7 @@ export declare const account: {
|
|
|
62
62
|
readonly firstName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
63
63
|
readonly lastName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
64
64
|
};
|
|
65
|
-
readonly '~standard': v.
|
|
65
|
+
readonly '~standard': v.StandardProps<{
|
|
66
66
|
color?: string | undefined;
|
|
67
67
|
firstName?: string | null | undefined;
|
|
68
68
|
lastName?: string | null | undefined;
|
package/dist/clients/account.js
CHANGED
|
@@ -14,10 +14,10 @@ const accountSettings = v.object({
|
|
|
14
14
|
export const account = {
|
|
15
15
|
model: v.object({
|
|
16
16
|
emailAddress: marcoSchemas.string.email(),
|
|
17
|
-
id: marcoSchemas.string.
|
|
17
|
+
id: marcoSchemas.string.uuid(),
|
|
18
18
|
imapPasswordConfig: v.nullable(imapPasswordConfig),
|
|
19
19
|
labels: v.array(v.object({
|
|
20
|
-
id: marcoSchemas.string.
|
|
20
|
+
id: marcoSchemas.string.uuid(),
|
|
21
21
|
name: marcoSchemas.string.required(),
|
|
22
22
|
path: marcoSchemas.string.required(),
|
|
23
23
|
specialUse: v.nullable(marcoSchemas.labelSpecialUse()),
|
|
@@ -33,17 +33,17 @@ export const account = {
|
|
|
33
33
|
delta: v.object({
|
|
34
34
|
color: marcoSchemas.string.required(),
|
|
35
35
|
emailAddress: marcoSchemas.string.email(),
|
|
36
|
-
id: marcoSchemas.string.
|
|
36
|
+
id: marcoSchemas.string.uuid(),
|
|
37
37
|
}),
|
|
38
38
|
},
|
|
39
39
|
delete: {
|
|
40
40
|
delta: v.object({
|
|
41
|
-
id: marcoSchemas.string.
|
|
41
|
+
id: marcoSchemas.string.uuid(),
|
|
42
42
|
}),
|
|
43
43
|
},
|
|
44
44
|
setIMAPPasswordConfig: {
|
|
45
45
|
delta: v.object({
|
|
46
|
-
id: marcoSchemas.string.
|
|
46
|
+
id: marcoSchemas.string.uuid(),
|
|
47
47
|
imapPasswordConfig: v.object({
|
|
48
48
|
...imapPasswordConfig.entries,
|
|
49
49
|
status: v.literal('AWAITING_CONNECTION'),
|
|
@@ -52,7 +52,7 @@ export const account = {
|
|
|
52
52
|
},
|
|
53
53
|
setSettings: {
|
|
54
54
|
delta: v.object({
|
|
55
|
-
id: marcoSchemas.string.
|
|
55
|
+
id: marcoSchemas.string.uuid(),
|
|
56
56
|
settings: v.partial(accountSettings),
|
|
57
57
|
}),
|
|
58
58
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const contact: {
|
|
3
3
|
model: v.ObjectSchema<{
|
|
4
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
4
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
5
5
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
6
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
7
|
}, undefined>;
|
package/dist/clients/contact.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { marcoSchemas } from '../schemas';
|
|
3
3
|
export const contact = {
|
|
4
4
|
model: v.object({
|
|
5
|
-
emailAccountId: marcoSchemas.string.
|
|
5
|
+
emailAccountId: marcoSchemas.string.uuid(),
|
|
6
6
|
emailAddress: marcoSchemas.string.email(),
|
|
7
7
|
name: marcoSchemas.string.nullable(),
|
|
8
8
|
}),
|
package/dist/clients/draft.d.ts
CHANGED
|
@@ -1,101 +1,36 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { JSONContent } from '../types';
|
|
2
3
|
export declare const draft: {
|
|
3
4
|
model: v.ObjectSchema<{
|
|
4
5
|
readonly body: v.ObjectSchema<{
|
|
5
6
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
6
7
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
7
|
-
readonly content: v.
|
|
8
|
-
readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
8
|
+
readonly content: v.GenericSchema<JSONContent>;
|
|
9
9
|
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
10
10
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
11
11
|
}, undefined>;
|
|
12
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
13
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
12
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
13
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
14
14
|
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
mutators: {
|
|
17
|
-
create: {
|
|
18
|
-
delta: v.ObjectSchema<{
|
|
19
|
-
readonly body: v.ObjectSchema<{
|
|
20
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
21
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
22
|
-
readonly content: v.UnknownSchema;
|
|
23
|
-
readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
24
|
-
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
25
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
26
|
-
}, undefined>;
|
|
27
|
-
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
-
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
-
}, undefined>;
|
|
31
|
-
};
|
|
32
17
|
delete: {
|
|
33
18
|
delta: v.ObjectSchema<{
|
|
34
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
19
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
35
20
|
}, undefined>;
|
|
36
21
|
};
|
|
37
|
-
|
|
22
|
+
upsert: {
|
|
38
23
|
delta: v.ObjectSchema<{
|
|
39
|
-
readonly body:
|
|
24
|
+
readonly body: v.ObjectSchema<{
|
|
40
25
|
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
41
26
|
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
42
|
-
readonly content: v.
|
|
43
|
-
readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
27
|
+
readonly content: v.GenericSchema<JSONContent>;
|
|
44
28
|
readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
45
29
|
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
46
|
-
}, undefined
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
readonly content: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
51
|
-
readonly replyTo: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
52
|
-
readonly subject: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
53
|
-
readonly to: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
|
|
54
|
-
};
|
|
55
|
-
readonly '~standard': v.StandardSchemaProps<{
|
|
56
|
-
bcc?: string[] | undefined;
|
|
57
|
-
cc?: string[] | undefined;
|
|
58
|
-
replyTo?: string[] | undefined;
|
|
59
|
-
to?: string[] | undefined;
|
|
60
|
-
content?: unknown;
|
|
61
|
-
subject?: string | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
bcc?: string[] | undefined;
|
|
64
|
-
cc?: string[] | undefined;
|
|
65
|
-
replyTo?: string[] | undefined;
|
|
66
|
-
to?: string[] | undefined;
|
|
67
|
-
content?: unknown;
|
|
68
|
-
subject?: string | undefined;
|
|
69
|
-
}>;
|
|
70
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
71
|
-
bcc?: string[] | undefined;
|
|
72
|
-
cc?: string[] | undefined;
|
|
73
|
-
replyTo?: string[] | undefined;
|
|
74
|
-
to?: string[] | undefined;
|
|
75
|
-
content?: unknown;
|
|
76
|
-
subject?: string | undefined;
|
|
77
|
-
}, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue>;
|
|
78
|
-
readonly '~types'?: {
|
|
79
|
-
readonly input: {
|
|
80
|
-
bcc?: string[] | undefined;
|
|
81
|
-
cc?: string[] | undefined;
|
|
82
|
-
replyTo?: string[] | undefined;
|
|
83
|
-
to?: string[] | undefined;
|
|
84
|
-
content?: unknown;
|
|
85
|
-
subject?: string | undefined;
|
|
86
|
-
};
|
|
87
|
-
readonly output: {
|
|
88
|
-
bcc?: string[] | undefined;
|
|
89
|
-
cc?: string[] | undefined;
|
|
90
|
-
replyTo?: string[] | undefined;
|
|
91
|
-
to?: string[] | undefined;
|
|
92
|
-
content?: unknown;
|
|
93
|
-
subject?: string | undefined;
|
|
94
|
-
};
|
|
95
|
-
readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue;
|
|
96
|
-
} | undefined;
|
|
97
|
-
};
|
|
98
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
32
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
33
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
99
34
|
}, undefined>;
|
|
100
35
|
};
|
|
101
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,WAAW,EAAe,MAAM,qBAAqB,CAAA;AA4B9D,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBK,CAAA"}
|
package/dist/clients/draft.js
CHANGED
|
@@ -1,39 +1,37 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { marcoSchemas } from '../schemas';
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
const jsonContentSchema = v.lazy(() => v.object({
|
|
4
|
+
attrs: v.optional(v.record(v.string(), v.unknown())),
|
|
5
|
+
content: v.optional(v.array(jsonContentSchema)),
|
|
6
|
+
marks: v.optional(v.array(v.object({
|
|
7
|
+
attrs: v.optional(v.record(v.string(), v.unknown())),
|
|
8
|
+
type: v.string(),
|
|
9
|
+
}))),
|
|
10
|
+
text: v.optional(v.string()),
|
|
11
|
+
type: v.optional(v.string()),
|
|
12
|
+
}));
|
|
13
|
+
const draftSchema = v.object({
|
|
14
|
+
body: v.object({
|
|
15
|
+
bcc: v.array(marcoSchemas.string.email()),
|
|
16
|
+
cc: v.array(marcoSchemas.string.email()),
|
|
17
|
+
content: jsonContentSchema,
|
|
18
|
+
subject: marcoSchemas.string.required(),
|
|
19
|
+
to: v.array(marcoSchemas.string.email()),
|
|
20
|
+
}),
|
|
21
|
+
emailAccountId: marcoSchemas.string.uuid(),
|
|
22
|
+
id: marcoSchemas.string.uuid(),
|
|
23
|
+
referencedMessageId: marcoSchemas.string.nullable(),
|
|
10
24
|
});
|
|
11
25
|
export const draft = {
|
|
12
|
-
model:
|
|
13
|
-
body: body,
|
|
14
|
-
emailAccountId: marcoSchemas.string.required(),
|
|
15
|
-
id: marcoSchemas.string.required(),
|
|
16
|
-
referencedMessageId: marcoSchemas.string.nullable(),
|
|
17
|
-
}),
|
|
26
|
+
model: draftSchema,
|
|
18
27
|
mutators: {
|
|
19
|
-
create: {
|
|
20
|
-
delta: v.object({
|
|
21
|
-
body: body,
|
|
22
|
-
emailAccountId: marcoSchemas.string.required(),
|
|
23
|
-
id: marcoSchemas.string.required(),
|
|
24
|
-
referencedMessageId: marcoSchemas.string.nullable(),
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
28
|
delete: {
|
|
28
29
|
delta: v.object({
|
|
29
|
-
id: marcoSchemas.string.
|
|
30
|
+
id: marcoSchemas.string.uuid(),
|
|
30
31
|
}),
|
|
31
32
|
},
|
|
32
|
-
|
|
33
|
-
delta:
|
|
34
|
-
body: v.partial(body),
|
|
35
|
-
id: marcoSchemas.string.required(),
|
|
36
|
-
}),
|
|
33
|
+
upsert: {
|
|
34
|
+
delta: draftSchema,
|
|
37
35
|
},
|
|
38
36
|
},
|
|
39
37
|
name: 'draft',
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const marcoClients: {
|
|
|
3
3
|
account: {
|
|
4
4
|
model: import("valibot").ObjectSchema<{
|
|
5
5
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
6
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
7
7
|
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
8
8
|
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
9
|
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -11,7 +11,7 @@ export declare const marcoClients: {
|
|
|
11
11
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
|
|
12
12
|
}, undefined>, undefined>;
|
|
13
13
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
14
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
14
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
15
15
|
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
16
16
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
17
17
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
@@ -31,17 +31,17 @@ export declare const marcoClients: {
|
|
|
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, 255, 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>;
|
|
34
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
34
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
35
35
|
}, undefined>;
|
|
36
36
|
};
|
|
37
37
|
delete: {
|
|
38
38
|
delta: import("valibot").ObjectSchema<{
|
|
39
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
39
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
40
40
|
}, undefined>;
|
|
41
41
|
};
|
|
42
42
|
setIMAPPasswordConfig: {
|
|
43
43
|
delta: import("valibot").ObjectSchema<{
|
|
44
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
44
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
45
45
|
readonly imapPasswordConfig: import("valibot").ObjectSchema<{
|
|
46
46
|
readonly status: import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>;
|
|
47
47
|
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -52,7 +52,7 @@ export declare const marcoClients: {
|
|
|
52
52
|
};
|
|
53
53
|
setSettings: {
|
|
54
54
|
delta: import("valibot").ObjectSchema<{
|
|
55
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
55
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
56
56
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
57
57
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
58
58
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -63,7 +63,7 @@ export declare const marcoClients: {
|
|
|
63
63
|
readonly firstName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
64
64
|
readonly lastName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
65
65
|
};
|
|
66
|
-
readonly '~standard': import("valibot").
|
|
66
|
+
readonly '~standard': import("valibot").StandardProps<{
|
|
67
67
|
color?: string | undefined;
|
|
68
68
|
firstName?: string | null | undefined;
|
|
69
69
|
lastName?: string | null | undefined;
|
|
@@ -101,7 +101,7 @@ export declare const marcoClients: {
|
|
|
101
101
|
};
|
|
102
102
|
contact: {
|
|
103
103
|
model: import("valibot").ObjectSchema<{
|
|
104
|
-
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
104
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
105
105
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
106
106
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
107
107
|
}, undefined>;
|
|
@@ -116,98 +116,32 @@ export declare const marcoClients: {
|
|
|
116
116
|
readonly body: import("valibot").ObjectSchema<{
|
|
117
117
|
readonly bcc: 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>;
|
|
118
118
|
readonly cc: 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>;
|
|
119
|
-
readonly content: import("valibot").
|
|
120
|
-
readonly replyTo: 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>;
|
|
119
|
+
readonly content: import("valibot").GenericSchema<import("../types").JSONContent>;
|
|
121
120
|
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
122
121
|
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>;
|
|
123
122
|
}, undefined>;
|
|
124
|
-
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
125
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
123
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
124
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
126
125
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
127
126
|
}, undefined>;
|
|
128
127
|
mutators: {
|
|
129
|
-
create: {
|
|
130
|
-
delta: import("valibot").ObjectSchema<{
|
|
131
|
-
readonly body: import("valibot").ObjectSchema<{
|
|
132
|
-
readonly bcc: 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>;
|
|
133
|
-
readonly cc: 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>;
|
|
134
|
-
readonly content: import("valibot").UnknownSchema;
|
|
135
|
-
readonly replyTo: 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>;
|
|
136
|
-
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
137
|
-
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>;
|
|
138
|
-
}, undefined>;
|
|
139
|
-
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
140
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
141
|
-
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
142
|
-
}, undefined>;
|
|
143
|
-
};
|
|
144
128
|
delete: {
|
|
145
129
|
delta: import("valibot").ObjectSchema<{
|
|
146
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
130
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
147
131
|
}, undefined>;
|
|
148
132
|
};
|
|
149
|
-
|
|
133
|
+
upsert: {
|
|
150
134
|
delta: import("valibot").ObjectSchema<{
|
|
151
|
-
readonly body:
|
|
135
|
+
readonly body: import("valibot").ObjectSchema<{
|
|
152
136
|
readonly bcc: 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>;
|
|
153
137
|
readonly cc: 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>;
|
|
154
|
-
readonly content: import("valibot").
|
|
155
|
-
readonly replyTo: 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>;
|
|
138
|
+
readonly content: import("valibot").GenericSchema<import("../types").JSONContent>;
|
|
156
139
|
readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
157
140
|
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>;
|
|
158
|
-
}, undefined
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
readonly content: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
163
|
-
readonly replyTo: import("valibot").OptionalSchema<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>, undefined>;
|
|
164
|
-
readonly subject: import("valibot").OptionalSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
165
|
-
readonly to: import("valibot").OptionalSchema<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>, undefined>;
|
|
166
|
-
};
|
|
167
|
-
readonly '~standard': import("valibot").StandardSchemaProps<{
|
|
168
|
-
bcc?: string[] | undefined;
|
|
169
|
-
cc?: string[] | undefined;
|
|
170
|
-
replyTo?: string[] | undefined;
|
|
171
|
-
to?: string[] | undefined;
|
|
172
|
-
content?: unknown;
|
|
173
|
-
subject?: string | undefined;
|
|
174
|
-
}, {
|
|
175
|
-
bcc?: string[] | undefined;
|
|
176
|
-
cc?: string[] | undefined;
|
|
177
|
-
replyTo?: string[] | undefined;
|
|
178
|
-
to?: string[] | undefined;
|
|
179
|
-
content?: unknown;
|
|
180
|
-
subject?: string | undefined;
|
|
181
|
-
}>;
|
|
182
|
-
readonly '~run': (dataset: import("valibot").UnknownDataset, config: import("valibot").Config<import("valibot").BaseIssue<unknown>>) => import("valibot").OutputDataset<{
|
|
183
|
-
bcc?: string[] | undefined;
|
|
184
|
-
cc?: string[] | undefined;
|
|
185
|
-
replyTo?: string[] | undefined;
|
|
186
|
-
to?: string[] | undefined;
|
|
187
|
-
content?: unknown;
|
|
188
|
-
subject?: string | undefined;
|
|
189
|
-
}, import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue>;
|
|
190
|
-
readonly '~types'?: {
|
|
191
|
-
readonly input: {
|
|
192
|
-
bcc?: string[] | undefined;
|
|
193
|
-
cc?: string[] | undefined;
|
|
194
|
-
replyTo?: string[] | undefined;
|
|
195
|
-
to?: string[] | undefined;
|
|
196
|
-
content?: unknown;
|
|
197
|
-
subject?: string | undefined;
|
|
198
|
-
};
|
|
199
|
-
readonly output: {
|
|
200
|
-
bcc?: string[] | undefined;
|
|
201
|
-
cc?: string[] | undefined;
|
|
202
|
-
replyTo?: string[] | undefined;
|
|
203
|
-
to?: string[] | undefined;
|
|
204
|
-
content?: unknown;
|
|
205
|
-
subject?: string | undefined;
|
|
206
|
-
};
|
|
207
|
-
readonly issue: import("valibot").StringIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").ObjectIssue | import("valibot").NonOptionalIssue | import("valibot").ArrayIssue;
|
|
208
|
-
} | undefined;
|
|
209
|
-
};
|
|
210
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
141
|
+
}, undefined>;
|
|
142
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
143
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
144
|
+
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
211
145
|
}, undefined>;
|
|
212
146
|
};
|
|
213
147
|
};
|
|
@@ -218,8 +152,8 @@ export declare const marcoClients: {
|
|
|
218
152
|
};
|
|
219
153
|
thread: {
|
|
220
154
|
model: import("valibot").ObjectSchema<{
|
|
221
|
-
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
222
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
155
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
156
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
223
157
|
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
224
158
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
225
159
|
readonly emailAddresses: 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>;
|
|
@@ -236,7 +170,7 @@ export declare const marcoClients: {
|
|
|
236
170
|
readonly emailAddresses: 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>;
|
|
237
171
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
238
172
|
}, undefined>;
|
|
239
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
173
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
240
174
|
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
241
175
|
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
242
176
|
readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
@@ -253,9 +187,9 @@ export declare const marcoClients: {
|
|
|
253
187
|
mutators: {
|
|
254
188
|
setMessageSeen: {
|
|
255
189
|
delta: import("valibot").ObjectSchema<{
|
|
256
|
-
readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
190
|
+
readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
257
191
|
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
258
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
192
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
259
193
|
}, undefined>;
|
|
260
194
|
};
|
|
261
195
|
};
|
|
@@ -266,7 +200,7 @@ export declare const marcoClients: {
|
|
|
266
200
|
};
|
|
267
201
|
user: {
|
|
268
202
|
model: import("valibot").ObjectSchema<{
|
|
269
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
203
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
270
204
|
readonly settings: import("valibot").ObjectSchema<{
|
|
271
205
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
272
206
|
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -275,7 +209,7 @@ export declare const marcoClients: {
|
|
|
275
209
|
mutators: {
|
|
276
210
|
setSettings: {
|
|
277
211
|
delta: import("valibot").ObjectSchema<{
|
|
278
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
212
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
279
213
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
280
214
|
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
281
215
|
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -284,7 +218,7 @@ export declare const marcoClients: {
|
|
|
284
218
|
readonly firstName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
285
219
|
readonly lastName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
286
220
|
};
|
|
287
|
-
readonly '~standard': import("valibot").
|
|
221
|
+
readonly '~standard': import("valibot").StandardProps<{
|
|
288
222
|
firstName?: string | null | undefined;
|
|
289
223
|
lastName?: string | null | undefined;
|
|
290
224
|
}, {
|
|
@@ -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
|
|
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"}
|