@marcoappio/marco-config 2.0.244 → 2.0.246
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 +5 -5
- package/dist/clients/account.js +5 -5
- package/dist/clients/contact.d.ts +1 -1
- package/dist/clients/contact.js +1 -1
- package/dist/clients/draft.d.ts +15 -15
- package/dist/clients/draft.js +11 -11
- package/dist/clients/index.d.ts +31 -31
- package/dist/clients/thread.d.ts +10 -10
- package/dist/clients/thread.js +10 -10
- package/dist/schemas.d.ts +0 -1
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +0 -1
- package/dist/sdk/endpoints/index.d.ts +41 -56
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +0 -5
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +1 -2
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -5
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +31 -56
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +31 -51
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +7 -7
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +4 -9
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +0 -1
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +12 -17
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +0 -1
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +24 -44
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +8 -13
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +0 -1
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +0 -5
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.js +0 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +10 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +5 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +5 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +1 -0
- package/dist/sdk/endpoints/public/index.d.ts +10 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +44 -71
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +9 -33
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +5 -15
- package/dist/sdk/validation/index.d.ts +3 -15
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/clients/thread.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const thread: {
|
|
|
4
4
|
readonly bagOfWords: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
5
5
|
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
6
|
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
7
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
8
|
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
9
9
|
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
10
10
|
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -26,7 +26,7 @@ export declare const thread: {
|
|
|
26
26
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
27
27
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
28
|
}, undefined>, undefined>;
|
|
29
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
29
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
30
|
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
31
31
|
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
32
|
readonly replyTo: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -43,45 +43,45 @@ export declare const thread: {
|
|
|
43
43
|
mutators: {
|
|
44
44
|
delete: {
|
|
45
45
|
delta: v.ObjectSchema<{
|
|
46
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
46
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
47
|
}, undefined>;
|
|
48
48
|
};
|
|
49
49
|
setFlagged: {
|
|
50
50
|
delta: v.ObjectSchema<{
|
|
51
51
|
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
52
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
52
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
53
|
}, undefined>;
|
|
54
54
|
};
|
|
55
55
|
setLabels: {
|
|
56
56
|
delta: v.ObjectSchema<{
|
|
57
57
|
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
58
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
58
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
59
|
}, undefined>;
|
|
60
60
|
};
|
|
61
61
|
setSeen: {
|
|
62
62
|
delta: v.ObjectSchema<{
|
|
63
63
|
readonly seen: v.BooleanSchema<undefined>;
|
|
64
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
64
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
65
65
|
}, undefined>;
|
|
66
66
|
};
|
|
67
67
|
setArchive: {
|
|
68
68
|
delta: v.ObjectSchema<{
|
|
69
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
69
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
70
70
|
}, undefined>;
|
|
71
71
|
};
|
|
72
72
|
setInbox: {
|
|
73
73
|
delta: v.ObjectSchema<{
|
|
74
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
74
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
75
75
|
}, undefined>;
|
|
76
76
|
};
|
|
77
77
|
setSpam: {
|
|
78
78
|
delta: v.ObjectSchema<{
|
|
79
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
79
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
80
80
|
}, undefined>;
|
|
81
81
|
};
|
|
82
82
|
setTrash: {
|
|
83
83
|
delta: v.ObjectSchema<{
|
|
84
|
-
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.
|
|
84
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
85
85
|
}, undefined>;
|
|
86
86
|
};
|
|
87
87
|
};
|
package/dist/clients/thread.js
CHANGED
|
@@ -14,22 +14,22 @@ const inlineAttachment = v.object({
|
|
|
14
14
|
const specialUseMutators = {
|
|
15
15
|
setArchive: {
|
|
16
16
|
delta: v.object({
|
|
17
|
-
threadId: marcoSchemas.string.
|
|
17
|
+
threadId: marcoSchemas.string.required(),
|
|
18
18
|
}),
|
|
19
19
|
},
|
|
20
20
|
setInbox: {
|
|
21
21
|
delta: v.object({
|
|
22
|
-
threadId: marcoSchemas.string.
|
|
22
|
+
threadId: marcoSchemas.string.required(),
|
|
23
23
|
}),
|
|
24
24
|
},
|
|
25
25
|
setSpam: {
|
|
26
26
|
delta: v.object({
|
|
27
|
-
threadId: marcoSchemas.string.
|
|
27
|
+
threadId: marcoSchemas.string.required(),
|
|
28
28
|
}),
|
|
29
29
|
},
|
|
30
30
|
setTrash: {
|
|
31
31
|
delta: v.object({
|
|
32
|
-
threadId: marcoSchemas.string.
|
|
32
|
+
threadId: marcoSchemas.string.required(),
|
|
33
33
|
}),
|
|
34
34
|
},
|
|
35
35
|
};
|
|
@@ -38,7 +38,7 @@ export const thread = {
|
|
|
38
38
|
bagOfWords: v.array(marcoSchemas.string.required()),
|
|
39
39
|
emailAccountId: marcoSchemas.string.required(),
|
|
40
40
|
flagged: v.nonOptional(v.boolean()),
|
|
41
|
-
id: marcoSchemas.string.
|
|
41
|
+
id: marcoSchemas.string.required(),
|
|
42
42
|
messages: v.array(v.object({
|
|
43
43
|
attachments: v.array(inlineAttachment),
|
|
44
44
|
bcc: v.array(inlineContact),
|
|
@@ -46,7 +46,7 @@ export const thread = {
|
|
|
46
46
|
envelopeDate: marcoSchemas.number.positiveInteger(),
|
|
47
47
|
envelopeSubject: marcoSchemas.string.nullable(),
|
|
48
48
|
from: v.array(inlineContact),
|
|
49
|
-
id: marcoSchemas.string.
|
|
49
|
+
id: marcoSchemas.string.required(),
|
|
50
50
|
labelIds: v.array(marcoSchemas.string.required()),
|
|
51
51
|
previewText: marcoSchemas.string.required(marcoConstants.messages.PREVIEW_TEXT_MAX_LENGTH),
|
|
52
52
|
replyTo: v.array(inlineContact),
|
|
@@ -58,25 +58,25 @@ export const thread = {
|
|
|
58
58
|
...specialUseMutators,
|
|
59
59
|
delete: {
|
|
60
60
|
delta: v.object({
|
|
61
|
-
threadId: marcoSchemas.string.
|
|
61
|
+
threadId: marcoSchemas.string.required(),
|
|
62
62
|
}),
|
|
63
63
|
},
|
|
64
64
|
setFlagged: {
|
|
65
65
|
delta: v.object({
|
|
66
66
|
flagged: v.nonOptional(v.boolean()),
|
|
67
|
-
threadId: marcoSchemas.string.
|
|
67
|
+
threadId: marcoSchemas.string.required(),
|
|
68
68
|
}),
|
|
69
69
|
},
|
|
70
70
|
setLabels: {
|
|
71
71
|
delta: v.object({
|
|
72
72
|
labelIds: v.array(marcoSchemas.string.required()),
|
|
73
|
-
threadId: marcoSchemas.string.
|
|
73
|
+
threadId: marcoSchemas.string.required(),
|
|
74
74
|
}),
|
|
75
75
|
},
|
|
76
76
|
setSeen: {
|
|
77
77
|
delta: v.object({
|
|
78
78
|
seen: v.boolean(),
|
|
79
|
-
threadId: marcoSchemas.string.
|
|
79
|
+
threadId: marcoSchemas.string.required(),
|
|
80
80
|
}),
|
|
81
81
|
},
|
|
82
82
|
},
|
package/dist/schemas.d.ts
CHANGED
|
@@ -37,7 +37,6 @@ export declare const marcoSchemas: {
|
|
|
37
37
|
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
38
|
optional: (maxLength?: number) => v.UndefinedableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
39
|
required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
-
uuid: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
41
40
|
};
|
|
42
41
|
};
|
|
43
42
|
export type LabelSpecialUse = v.InferInput<ReturnType<typeof marcoSchemas.labelSpecialUse>>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgCP,MAAM,OAAO,MAAM;;;;;uBAQlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgCP,MAAM,OAAO,MAAM;;;;;uBAQlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM;;;;;CAS1B,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -49,6 +49,5 @@ export const marcoSchemas = {
|
|
|
49
49
|
nullable: (maxLength = 255) => v.nullable(v.pipe(v.string(), v.maxLength(maxLength))),
|
|
50
50
|
optional: (maxLength = 255) => v.undefinedable(v.pipe(v.string(), v.maxLength(maxLength))),
|
|
51
51
|
required: (maxLength = 255) => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
|
|
52
|
-
uuid: () => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.uuid())),
|
|
53
52
|
},
|
|
54
53
|
};
|
|
@@ -13,11 +13,6 @@ export declare const endpoints: {
|
|
|
13
13
|
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
14
14
|
}, undefined>;
|
|
15
15
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
19
|
-
}, undefined>;
|
|
20
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
21
16
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
17
|
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
23
18
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -81,7 +76,7 @@ export declare const endpoints: {
|
|
|
81
76
|
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>;
|
|
82
77
|
}, undefined>, undefined>;
|
|
83
78
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
84
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
79
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
85
80
|
readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
86
81
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
87
82
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -134,7 +129,7 @@ export declare const endpoints: {
|
|
|
134
129
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
135
130
|
readonly value: import("valibot").ObjectSchema<{
|
|
136
131
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
137
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
132
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
138
133
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
139
134
|
}, undefined>;
|
|
140
135
|
}, undefined>], undefined>, undefined>;
|
|
@@ -174,7 +169,7 @@ export declare const endpoints: {
|
|
|
174
169
|
readonly value: import("valibot").ObjectSchema<{
|
|
175
170
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
176
171
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
177
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
172
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
178
173
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
179
174
|
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
180
175
|
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,8 +182,8 @@ export declare const endpoints: {
|
|
|
187
182
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
188
183
|
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>;
|
|
189
184
|
}, undefined>;
|
|
190
|
-
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
191
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
185
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
186
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
192
187
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
193
188
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
194
189
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -242,7 +237,7 @@ export declare const endpoints: {
|
|
|
242
237
|
readonly bagOfWords: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
243
238
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
244
239
|
readonly flagged: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
245
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
240
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
246
241
|
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
247
242
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
248
243
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -264,7 +259,7 @@ export declare const endpoints: {
|
|
|
264
259
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
265
260
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
266
261
|
}, undefined>, undefined>;
|
|
267
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
262
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
268
263
|
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
269
264
|
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
270
265
|
readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
@@ -330,14 +325,14 @@ export declare const endpoints: {
|
|
|
330
325
|
readonly args: import("valibot").ObjectSchema<{
|
|
331
326
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
332
327
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
333
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
328
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
334
329
|
}, undefined>;
|
|
335
330
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
336
331
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
337
332
|
readonly name: import("valibot").LiteralSchema<"add", undefined>;
|
|
338
333
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
339
334
|
readonly args: import("valibot").ObjectSchema<{
|
|
340
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
335
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
341
336
|
}, undefined>;
|
|
342
337
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
343
338
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -352,14 +347,14 @@ export declare const endpoints: {
|
|
|
352
347
|
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
353
348
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
354
349
|
}, undefined>;
|
|
355
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
350
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
356
351
|
}, undefined>;
|
|
357
352
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
358
353
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
359
354
|
readonly name: import("valibot").LiteralSchema<"setConnectionConfig", undefined>;
|
|
360
355
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
361
356
|
readonly args: import("valibot").ObjectSchema<{
|
|
362
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
357
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
363
358
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
364
359
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
365
360
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -411,11 +406,6 @@ export declare const endpoints: {
|
|
|
411
406
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
412
407
|
}, undefined>;
|
|
413
408
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
414
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
415
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
416
|
-
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
417
|
-
}, undefined>;
|
|
418
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
419
409
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
420
410
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
421
411
|
}, undefined>], undefined>>;
|
|
@@ -425,7 +415,7 @@ export declare const endpoints: {
|
|
|
425
415
|
readonly args: import("valibot").ObjectSchema<{
|
|
426
416
|
readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
427
417
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
428
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
418
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
429
419
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
430
420
|
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
431
421
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
@@ -438,8 +428,8 @@ export declare const endpoints: {
|
|
|
438
428
|
readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
439
429
|
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>;
|
|
440
430
|
}, undefined>;
|
|
441
|
-
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
442
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
431
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
432
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
443
433
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
444
434
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
445
435
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
@@ -452,27 +442,27 @@ export declare const endpoints: {
|
|
|
452
442
|
readonly args: import("valibot").ObjectSchema<{
|
|
453
443
|
readonly attachment: import("valibot").ObjectSchema<{
|
|
454
444
|
readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
455
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
445
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
456
446
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
457
447
|
readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
458
448
|
readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
459
449
|
readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
460
450
|
}, undefined>;
|
|
461
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
451
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
462
452
|
}, undefined>;
|
|
463
453
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
464
454
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
465
455
|
readonly name: import("valibot").LiteralSchema<"createAttachment", undefined>;
|
|
466
456
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
467
457
|
readonly args: import("valibot").ObjectSchema<{
|
|
468
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
458
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
469
459
|
}, undefined>;
|
|
470
460
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
471
461
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
472
462
|
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
473
463
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
474
464
|
readonly args: import("valibot").ObjectSchema<{
|
|
475
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
465
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
476
466
|
readonly patch: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
477
467
|
readonly index: import("valibot").NumberSchema<undefined>;
|
|
478
468
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"INSERTION", undefined>, import("valibot").LiteralSchema<"DELETION", undefined>], undefined>;
|
|
@@ -486,7 +476,7 @@ export declare const endpoints: {
|
|
|
486
476
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
487
477
|
readonly args: import("valibot").ObjectSchema<{
|
|
488
478
|
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
489
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
479
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
490
480
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
491
481
|
}, undefined>;
|
|
492
482
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
@@ -541,7 +531,7 @@ export declare const endpoints: {
|
|
|
541
531
|
readonly issue: import("valibot").StringIssue | import("valibot").ObjectIssue | import("valibot").MaxLengthIssue<string, number> | import("valibot").NonOptionalIssue | import("valibot").EmailIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").ArrayIssue;
|
|
542
532
|
} | undefined;
|
|
543
533
|
};
|
|
544
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
534
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
545
535
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
546
536
|
}, undefined>;
|
|
547
537
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
@@ -549,7 +539,7 @@ export declare const endpoints: {
|
|
|
549
539
|
readonly name: import("valibot").LiteralSchema<"setEnvelope", undefined>;
|
|
550
540
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
551
541
|
readonly args: import("valibot").ObjectSchema<{
|
|
552
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
542
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
553
543
|
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SENDING", undefined>, import("valibot").LiteralSchema<"SENDING_FAILED", undefined>], undefined>;
|
|
554
544
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
555
545
|
}, undefined>;
|
|
@@ -558,9 +548,9 @@ export declare const endpoints: {
|
|
|
558
548
|
readonly name: import("valibot").LiteralSchema<"setStatus", undefined>;
|
|
559
549
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
560
550
|
readonly args: import("valibot").ObjectSchema<{
|
|
561
|
-
readonly attachmentId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
551
|
+
readonly attachmentId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
562
552
|
readonly chunk: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
563
|
-
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
553
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
564
554
|
}, undefined>;
|
|
565
555
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
566
556
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -576,11 +566,6 @@ export declare const endpoints: {
|
|
|
576
566
|
}, undefined>;
|
|
577
567
|
}, undefined>;
|
|
578
568
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
579
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
580
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
581
|
-
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
582
|
-
}, undefined>;
|
|
583
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
584
569
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
585
570
|
readonly data: import("valibot").ObjectSchema<{
|
|
586
571
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -593,14 +578,14 @@ export declare const endpoints: {
|
|
|
593
578
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
594
579
|
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
|
|
595
580
|
readonly args: import("valibot").ObjectSchema<{
|
|
596
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
581
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
597
582
|
}, undefined>;
|
|
598
583
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
599
584
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
600
585
|
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
601
586
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
602
587
|
readonly args: import("valibot").ObjectSchema<{
|
|
603
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
588
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
604
589
|
}, undefined>;
|
|
605
590
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
606
591
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -608,14 +593,14 @@ export declare const endpoints: {
|
|
|
608
593
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
609
594
|
readonly args: import("valibot").ObjectSchema<{
|
|
610
595
|
readonly flagged: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
611
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
596
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
612
597
|
}, undefined>;
|
|
613
598
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
614
599
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
615
600
|
readonly name: import("valibot").LiteralSchema<"setFlagged", undefined>;
|
|
616
601
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
617
602
|
readonly args: import("valibot").ObjectSchema<{
|
|
618
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
603
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
619
604
|
}, undefined>;
|
|
620
605
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
621
606
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -623,7 +608,7 @@ export declare const endpoints: {
|
|
|
623
608
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
624
609
|
readonly args: import("valibot").ObjectSchema<{
|
|
625
610
|
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
626
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
611
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
627
612
|
}, undefined>;
|
|
628
613
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
629
614
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -631,21 +616,21 @@ export declare const endpoints: {
|
|
|
631
616
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
632
617
|
readonly args: import("valibot").ObjectSchema<{
|
|
633
618
|
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
634
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
619
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
635
620
|
}, undefined>;
|
|
636
621
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
637
622
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
638
623
|
readonly name: import("valibot").LiteralSchema<"setSeen", undefined>;
|
|
639
624
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
640
625
|
readonly args: import("valibot").ObjectSchema<{
|
|
641
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
626
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
642
627
|
}, undefined>;
|
|
643
628
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
644
629
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
645
630
|
readonly name: import("valibot").LiteralSchema<"setSpam", undefined>;
|
|
646
631
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
647
632
|
readonly args: import("valibot").ObjectSchema<{
|
|
648
|
-
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").
|
|
633
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
649
634
|
}, undefined>;
|
|
650
635
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
651
636
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
@@ -666,11 +651,6 @@ export declare const endpoints: {
|
|
|
666
651
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
667
652
|
}, undefined>;
|
|
668
653
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
669
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
670
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
671
|
-
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
672
|
-
}, undefined>;
|
|
673
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
674
654
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
675
655
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
676
656
|
}, undefined>], undefined>>;
|
|
@@ -723,11 +703,6 @@ export declare const endpoints: {
|
|
|
723
703
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
724
704
|
}, undefined>;
|
|
725
705
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
726
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
727
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
728
|
-
readonly code: import("valibot").LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
729
|
-
}, undefined>;
|
|
730
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
731
706
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
732
707
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
733
708
|
}, undefined>], undefined>>;
|
|
@@ -802,6 +777,11 @@ export declare const endpoints: {
|
|
|
802
777
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
803
778
|
}, undefined>;
|
|
804
779
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
780
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
781
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
782
|
+
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
783
|
+
}, undefined>;
|
|
784
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
805
785
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
806
786
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
807
787
|
}, undefined>], undefined>>;
|
|
@@ -838,6 +818,11 @@ export declare const endpoints: {
|
|
|
838
818
|
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
839
819
|
}, undefined>;
|
|
840
820
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
821
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
822
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
823
|
+
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
824
|
+
}, undefined>;
|
|
825
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
841
826
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
842
827
|
readonly data: import("valibot").ObjectSchema<{
|
|
843
828
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -9,11 +9,6 @@ export declare const getEmailMessageAttachment: import("../../../..").EndpointCo
|
|
|
9
9
|
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
10
10
|
}, undefined>;
|
|
11
11
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
-
}, undefined>, v.ObjectSchema<{
|
|
13
|
-
readonly data: v.ObjectSchema<{
|
|
14
|
-
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
15
|
-
}, undefined>;
|
|
16
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
17
12
|
}, undefined>, v.ObjectSchema<{
|
|
18
13
|
readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
|
|
19
14
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;2BAWpC,CAAA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import {
|
|
3
|
+
import { authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
|
|
4
4
|
export const getEmailMessageAttachment = createEndpoint({
|
|
5
5
|
method: 'GET',
|
|
6
6
|
path: '/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId',
|
|
7
7
|
response: v.union([
|
|
8
8
|
authFailedErrorSchema,
|
|
9
9
|
messageNotFoundErrorSchema,
|
|
10
|
-
attachmentNotFoundErrorSchema,
|
|
11
10
|
v.object({
|
|
12
11
|
file: v.nonOptional(v.file()),
|
|
13
12
|
status: v.literal(200),
|