@marcoappio/marco-config 2.0.352 → 2.0.354
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 +4 -4
- package/dist/clients/account.js +4 -4
- package/dist/clients/draft.d.ts +2 -2
- package/dist/clients/draft.d.ts.map +1 -1
- package/dist/clients/draft.js +1 -0
- package/dist/clients/index.d.ts +7 -6
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/thread.d.ts +1 -0
- package/dist/clients/thread.d.ts.map +1 -1
- package/dist/clients/thread.js +6 -0
- package/dist/sdk/endpoints/index.d.ts +13 -7
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +6 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +3 -2
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -1
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +13 -7
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +7 -6
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +4 -4
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +6 -5
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +1 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +1 -1
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +1 -1
- package/dist/sdk/index.d.ts +25 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +24 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +10 -0
- package/dist/sdk/validation/index.d.ts +12 -0
- 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
|
@@ -17,13 +17,13 @@ export declare const account: {
|
|
|
17
17
|
readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
18
18
|
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
19
19
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
-
readonly mailCounts: v.ObjectSchema<{
|
|
21
|
-
readonly processed: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
22
|
-
readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
23
|
-
}, undefined>;
|
|
24
20
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
21
|
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>;
|
|
26
22
|
}, undefined>, undefined>;
|
|
23
|
+
readonly mailCounts: v.ObjectSchema<{
|
|
24
|
+
readonly processed: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
25
|
+
readonly total: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
27
|
readonly settings: v.ObjectSchema<{
|
|
28
28
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
29
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
package/dist/clients/account.js
CHANGED
|
@@ -19,13 +19,13 @@ export const account = {
|
|
|
19
19
|
imapConnectionStatus: marcoSchemas.emailAccount.imapConnectionStatus(),
|
|
20
20
|
labels: v.array(v.object({
|
|
21
21
|
id: marcoSchemas.string.required(),
|
|
22
|
-
mailCounts: v.object({
|
|
23
|
-
processed: v.pipe(v.number(), v.minValue(0)),
|
|
24
|
-
total: v.pipe(v.number(), v.minValue(0)),
|
|
25
|
-
}),
|
|
26
22
|
path: marcoSchemas.string.required(),
|
|
27
23
|
specialUse: v.nullable(marcoSchemas.labels.specialUse()),
|
|
28
24
|
})),
|
|
25
|
+
mailCounts: v.object({
|
|
26
|
+
processed: marcoSchemas.number.positiveInteger(),
|
|
27
|
+
total: marcoSchemas.number.positiveInteger(),
|
|
28
|
+
}),
|
|
29
29
|
settings: accountSettingsSchema,
|
|
30
30
|
}),
|
|
31
31
|
mutators: {
|
package/dist/clients/draft.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const draft: {
|
|
|
24
24
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
25
|
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
26
|
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
27
|
-
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
27
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>, v.LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
28
28
|
readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
29
29
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
30
30
|
}, undefined>;
|
|
@@ -75,7 +75,7 @@ export declare const draft: {
|
|
|
75
75
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
76
76
|
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
77
77
|
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
78
|
-
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
78
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>, v.LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
79
79
|
readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
80
80
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
81
81
|
}, undefined>;
|
|
@@ -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;AAsD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFK,CAAA"}
|
package/dist/clients/draft.js
CHANGED
package/dist/clients/index.d.ts
CHANGED
|
@@ -18,13 +18,13 @@ export declare const marcoClients: {
|
|
|
18
18
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
19
19
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
20
20
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
22
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
23
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
24
|
-
}, undefined>;
|
|
25
21
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
22
|
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>;
|
|
27
23
|
}, undefined>, undefined>;
|
|
24
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
26
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
28
|
readonly settings: import("valibot").ObjectSchema<{
|
|
29
29
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
30
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -177,7 +177,7 @@ export declare const marcoClients: {
|
|
|
177
177
|
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
178
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
179
179
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
180
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
180
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
181
181
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
182
182
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
183
183
|
}, undefined>;
|
|
@@ -228,7 +228,7 @@ export declare const marcoClients: {
|
|
|
228
228
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
229
229
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
230
230
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
231
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
231
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
232
232
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
233
233
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
234
234
|
}, undefined>;
|
|
@@ -358,6 +358,7 @@ export declare const marcoClients: {
|
|
|
358
358
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
359
359
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
360
360
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
361
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NOT_DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, import("valibot").LiteralSchema<"DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
361
362
|
}, undefined>, undefined>;
|
|
362
363
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
363
364
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -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"}
|
package/dist/clients/thread.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const thread: {
|
|
|
11
11
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
12
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
13
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
14
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"NOT_DOWNLOADED", undefined>, v.LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, v.LiteralSchema<"DOWNLOADED", undefined>, v.LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
14
15
|
}, undefined>, undefined>;
|
|
15
16
|
readonly bcc: v.ArraySchema<v.ObjectSchema<{
|
|
16
17
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiD5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DI,CAAA"}
|
package/dist/clients/thread.js
CHANGED
|
@@ -10,6 +10,12 @@ const inlineAttachment = v.object({
|
|
|
10
10
|
id: marcoSchemas.string.required(),
|
|
11
11
|
mimeType: marcoSchemas.string.required(),
|
|
12
12
|
size: marcoSchemas.number.positiveInteger(),
|
|
13
|
+
status: v.union([
|
|
14
|
+
v.literal('NOT_DOWNLOADED'),
|
|
15
|
+
v.literal('DOWNLOAD_REQUESTED'),
|
|
16
|
+
v.literal('DOWNLOADED'),
|
|
17
|
+
v.literal('DOWNLOAD_FAILED'),
|
|
18
|
+
]),
|
|
13
19
|
});
|
|
14
20
|
const specialUseMutators = {
|
|
15
21
|
setArchive: {
|
|
@@ -10,9 +10,14 @@ export declare const endpoints: {
|
|
|
10
10
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
11
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
12
|
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_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_STATE_INVALID", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
16
21
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
22
|
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
18
23
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -83,13 +88,13 @@ export declare const endpoints: {
|
|
|
83
88
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
84
89
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
85
90
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
86
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
87
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
88
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
89
|
-
}, undefined>;
|
|
90
91
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
91
92
|
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>;
|
|
92
93
|
}, undefined>, undefined>;
|
|
94
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
95
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
96
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
97
|
+
}, undefined>;
|
|
93
98
|
readonly settings: import("valibot").ObjectSchema<{
|
|
94
99
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
95
100
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -192,7 +197,7 @@ export declare const endpoints: {
|
|
|
192
197
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
193
198
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
194
199
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
195
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
200
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
196
201
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
197
202
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
198
203
|
}, undefined>;
|
|
@@ -256,6 +261,7 @@ export declare const endpoints: {
|
|
|
256
261
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
257
262
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
258
263
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
264
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NOT_DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, import("valibot").LiteralSchema<"DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
259
265
|
}, undefined>, undefined>;
|
|
260
266
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
261
267
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -538,7 +544,7 @@ export declare const endpoints: {
|
|
|
538
544
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
539
545
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
540
546
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
541
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
547
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
542
548
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
543
549
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
544
550
|
}, 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"}
|
|
@@ -6,9 +6,14 @@ export declare const getEmailMessageAttachment: import("../../../..").EndpointCo
|
|
|
6
6
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
7
|
}, undefined>, v.ObjectSchema<{
|
|
8
8
|
readonly data: v.ObjectSchema<{
|
|
9
|
-
readonly code: v.LiteralSchema<"
|
|
9
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_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_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
12
17
|
}, undefined>, v.ObjectSchema<{
|
|
13
18
|
readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
|
|
14
19
|
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;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import {
|
|
3
|
+
import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema } from '../../../../sdk/validation/errors';
|
|
4
4
|
export const getEmailMessageAttachment = createEndpoint({
|
|
5
5
|
method: 'GET',
|
|
6
6
|
path: '/v1/pv/attachment/:attachmentId',
|
|
7
7
|
response: v.union([
|
|
8
8
|
authFailedErrorSchema,
|
|
9
|
-
|
|
9
|
+
attachmentNotFoundErrorSchema,
|
|
10
|
+
attachmentStateInvalidErrorSchema,
|
|
10
11
|
v.object({
|
|
11
12
|
file: v.nonOptional(v.file()),
|
|
12
13
|
status: v.literal(200),
|
|
@@ -6,9 +6,14 @@ export declare const emailMessage: {
|
|
|
6
6
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
7
7
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
8
|
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
10
|
}, undefined>;
|
|
11
11
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
12
17
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
18
|
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
14
19
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
|
|
@@ -7,9 +7,14 @@ export declare const privateGroup: {
|
|
|
7
7
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
8
8
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
9
|
readonly data: import("valibot").ObjectSchema<{
|
|
10
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
10
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
11
11
|
}, undefined>;
|
|
12
12
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
13
18
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
19
|
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
15
20
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -80,13 +85,13 @@ export declare const privateGroup: {
|
|
|
80
85
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
81
86
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
82
87
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
83
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
84
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
85
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
86
|
-
}, undefined>;
|
|
87
88
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
88
89
|
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>;
|
|
89
90
|
}, undefined>, undefined>;
|
|
91
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
92
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
93
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
94
|
+
}, undefined>;
|
|
90
95
|
readonly settings: import("valibot").ObjectSchema<{
|
|
91
96
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
92
97
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -189,7 +194,7 @@ export declare const privateGroup: {
|
|
|
189
194
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
190
195
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
191
196
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
192
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
197
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
193
198
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
194
199
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
195
200
|
}, undefined>;
|
|
@@ -253,6 +258,7 @@ export declare const privateGroup: {
|
|
|
253
258
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
254
259
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
255
260
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
261
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NOT_DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, import("valibot").LiteralSchema<"DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
256
262
|
}, undefined>, undefined>;
|
|
257
263
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
258
264
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -535,7 +541,7 @@ export declare const privateGroup: {
|
|
|
535
541
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
536
542
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
537
543
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
538
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
544
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
539
545
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
540
546
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
541
547
|
}, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
|
|
@@ -47,13 +47,13 @@ export declare const sync: {
|
|
|
47
47
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
48
48
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
49
49
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
51
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
52
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
53
|
-
}, undefined>;
|
|
54
50
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
51
|
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>;
|
|
56
52
|
}, undefined>, undefined>;
|
|
53
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
54
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
57
|
readonly settings: import("valibot").ObjectSchema<{
|
|
58
58
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
59
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -156,7 +156,7 @@ export declare const sync: {
|
|
|
156
156
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
157
157
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
158
158
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
159
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
159
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
160
160
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
161
161
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
162
162
|
}, undefined>;
|
|
@@ -220,6 +220,7 @@ export declare const sync: {
|
|
|
220
220
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
221
221
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
222
222
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
223
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NOT_DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, import("valibot").LiteralSchema<"DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
223
224
|
}, undefined>, undefined>;
|
|
224
225
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
225
226
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -502,7 +503,7 @@ export declare const sync: {
|
|
|
502
503
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
503
504
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
504
505
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
505
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
506
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
506
507
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
507
508
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
508
509
|
}, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
|
|
@@ -46,13 +46,13 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
|
|
|
46
46
|
readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
47
47
|
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
48
48
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
-
readonly mailCounts: v.ObjectSchema<{
|
|
50
|
-
readonly processed: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
51
|
-
readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
52
|
-
}, undefined>;
|
|
53
49
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
50
|
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>;
|
|
55
51
|
}, undefined>, undefined>;
|
|
52
|
+
readonly mailCounts: v.ObjectSchema<{
|
|
53
|
+
readonly processed: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
54
|
+
readonly total: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
56
|
readonly settings: v.ObjectSchema<{
|
|
57
57
|
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
58
|
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -53,7 +53,7 @@ export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1
|
|
|
53
53
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
54
|
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
55
|
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
56
|
-
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
56
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>, v.LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
57
57
|
readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
58
58
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
59
59
|
}, undefined>;
|
|
@@ -46,13 +46,13 @@ export declare const pull: {
|
|
|
46
46
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
47
47
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
48
48
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
50
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
51
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
52
|
-
}, undefined>;
|
|
53
49
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
50
|
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>;
|
|
55
51
|
}, undefined>, undefined>;
|
|
52
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
53
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
54
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
56
|
readonly settings: 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, number, undefined>]>, undefined>;
|
|
58
58
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -155,7 +155,7 @@ export declare const pull: {
|
|
|
155
155
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
156
156
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
157
157
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
158
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
158
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
159
159
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
160
160
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
161
161
|
}, undefined>;
|
|
@@ -219,6 +219,7 @@ export declare const pull: {
|
|
|
219
219
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
220
220
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
221
221
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
222
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NOT_DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, import("valibot").LiteralSchema<"DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
222
223
|
}, undefined>, undefined>;
|
|
223
224
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
224
225
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
|
|
@@ -55,6 +55,7 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
|
|
|
55
55
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
56
|
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
57
57
|
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
58
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"NOT_DOWNLOADED", undefined>, v.LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, v.LiteralSchema<"DOWNLOADED", undefined>, v.LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
58
59
|
}, undefined>, undefined>;
|
|
59
60
|
readonly bcc: v.ArraySchema<v.ObjectSchema<{
|
|
60
61
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuCzB,CAAA"}
|
|
@@ -51,7 +51,7 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
|
|
|
51
51
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
52
|
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
53
|
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
54
|
-
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
54
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>, v.LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
55
55
|
readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
56
56
|
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
57
57
|
}, undefined>;
|
|
@@ -198,7 +198,7 @@ export declare const push: {
|
|
|
198
198
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
199
199
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
200
200
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
201
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
201
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
202
202
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
203
203
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
204
204
|
}, undefined>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -9,9 +9,14 @@ export declare const marcoSDK: {
|
|
|
9
9
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
10
10
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
11
|
readonly data: import("valibot").ObjectSchema<{
|
|
12
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
12
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
13
13
|
}, undefined>;
|
|
14
14
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
15
20
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
21
|
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
17
22
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -82,13 +87,13 @@ export declare const marcoSDK: {
|
|
|
82
87
|
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_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
|
|
83
88
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
84
89
|
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
|
-
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
86
|
-
readonly processed: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
87
|
-
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
88
|
-
}, undefined>;
|
|
89
90
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
90
91
|
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>;
|
|
91
92
|
}, undefined>, undefined>;
|
|
93
|
+
readonly mailCounts: import("valibot").ObjectSchema<{
|
|
94
|
+
readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
95
|
+
readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
96
|
+
}, undefined>;
|
|
92
97
|
readonly settings: import("valibot").ObjectSchema<{
|
|
93
98
|
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
94
99
|
readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -191,7 +196,7 @@ export declare const marcoSDK: {
|
|
|
191
196
|
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
197
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
193
198
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
194
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
199
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
195
200
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
196
201
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
197
202
|
}, undefined>;
|
|
@@ -255,6 +260,7 @@ export declare const marcoSDK: {
|
|
|
255
260
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
256
261
|
readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
257
262
|
readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
263
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NOT_DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_REQUESTED", undefined>, import("valibot").LiteralSchema<"DOWNLOADED", undefined>, import("valibot").LiteralSchema<"DOWNLOAD_FAILED", undefined>], undefined>;
|
|
258
264
|
}, undefined>, undefined>;
|
|
259
265
|
readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
260
266
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -537,7 +543,7 @@ export declare const marcoSDK: {
|
|
|
537
543
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
538
544
|
readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
539
545
|
readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
540
|
-
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
|
|
546
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>, import("valibot").LiteralSchema<"SEND_FAILED", undefined>], undefined>;
|
|
541
547
|
readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
|
|
542
548
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
543
549
|
}, undefined>;
|
|
@@ -1003,6 +1009,18 @@ export declare const marcoSDK: {
|
|
|
1003
1009
|
}, undefined>;
|
|
1004
1010
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
1005
1011
|
}, undefined>;
|
|
1012
|
+
readonly attachmentNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
1013
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
1014
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
1015
|
+
}, undefined>;
|
|
1016
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
1017
|
+
}, undefined>;
|
|
1018
|
+
readonly attachmentStateInvalidErrorSchema: import("valibot").ObjectSchema<{
|
|
1019
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
1020
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
1021
|
+
}, undefined>;
|
|
1022
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
1023
|
+
}, undefined>;
|
|
1006
1024
|
readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
|
|
1007
1025
|
readonly data: import("valibot").ObjectSchema<{
|
|
1008
1026
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -65,6 +65,18 @@ export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
|
|
|
65
65
|
}, undefined>;
|
|
66
66
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
67
67
|
}, undefined>;
|
|
68
|
+
export declare const attachmentNotFoundErrorSchema: v.ObjectSchema<{
|
|
69
|
+
readonly data: v.ObjectSchema<{
|
|
70
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
export declare const attachmentStateInvalidErrorSchema: v.ObjectSchema<{
|
|
75
|
+
readonly data: v.ObjectSchema<{
|
|
76
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
79
|
+
}, undefined>;
|
|
68
80
|
export declare const accountNotFoundErrorSchema: v.ObjectSchema<{
|
|
69
81
|
readonly data: v.ObjectSchema<{
|
|
70
82
|
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
@@ -95,6 +107,18 @@ export declare const errors: {
|
|
|
95
107
|
}, undefined>;
|
|
96
108
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
97
109
|
}, undefined>;
|
|
110
|
+
readonly attachmentNotFoundErrorSchema: v.ObjectSchema<{
|
|
111
|
+
readonly data: v.ObjectSchema<{
|
|
112
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
113
|
+
}, undefined>;
|
|
114
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
readonly attachmentStateInvalidErrorSchema: v.ObjectSchema<{
|
|
117
|
+
readonly data: v.ObjectSchema<{
|
|
118
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
119
|
+
}, undefined>;
|
|
120
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
121
|
+
}, undefined>;
|
|
98
122
|
readonly authCodeExpiredErrorSchema: v.ObjectSchema<{
|
|
99
123
|
readonly data: v.ObjectSchema<{
|
|
100
124
|
readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;aAGlD,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBT,CAAA"}
|
|
@@ -43,6 +43,14 @@ export const messageNotFoundErrorSchema = v.object({
|
|
|
43
43
|
data: v.object({ code: v.literal('MESSAGE_NOT_FOUND') }),
|
|
44
44
|
status: v.literal(404),
|
|
45
45
|
});
|
|
46
|
+
export const attachmentNotFoundErrorSchema = v.object({
|
|
47
|
+
data: v.object({ code: v.literal('ATTACHMENT_NOT_FOUND') }),
|
|
48
|
+
status: v.literal(404),
|
|
49
|
+
});
|
|
50
|
+
export const attachmentStateInvalidErrorSchema = v.object({
|
|
51
|
+
data: v.object({ code: v.literal('ATTACHMENT_STATE_INVALID') }),
|
|
52
|
+
status: v.literal(409),
|
|
53
|
+
});
|
|
46
54
|
export const accountNotFoundErrorSchema = v.object({
|
|
47
55
|
data: v.object({ code: v.literal('ACCOUNT_NOT_FOUND') }),
|
|
48
56
|
status: v.literal(404),
|
|
@@ -64,6 +72,8 @@ export const validationFailedErrorSchema = v.object({
|
|
|
64
72
|
});
|
|
65
73
|
export const errors = {
|
|
66
74
|
accountNotFoundErrorSchema,
|
|
75
|
+
attachmentNotFoundErrorSchema,
|
|
76
|
+
attachmentStateInvalidErrorSchema,
|
|
67
77
|
authCodeExpiredErrorSchema,
|
|
68
78
|
authCodeInvalidErrorSchema,
|
|
69
79
|
authCodePreviouslyUsedErrorSchema,
|
|
@@ -6,6 +6,18 @@ export declare const validation: {
|
|
|
6
6
|
}, undefined>;
|
|
7
7
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
8
8
|
}, undefined>;
|
|
9
|
+
readonly attachmentNotFoundErrorSchema: import("valibot").ObjectSchema<{
|
|
10
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
11
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly attachmentStateInvalidErrorSchema: import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
20
|
+
}, undefined>;
|
|
9
21
|
readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
|
|
10
22
|
readonly data: import("valibot").ObjectSchema<{
|
|
11
23
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAoB,CAAA"}
|
package/dist/types/SDKError.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { errors } from '../sdk/validation/errors';
|
|
3
|
-
export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema>;
|
|
3
|
+
export type SDKError = v.InferOutput<typeof errors.authCodeExpiredErrorSchema> | v.InferOutput<typeof errors.authCodePreviouslyUsedErrorSchema> | v.InferOutput<typeof errors.authRefreshTokenInvalid> | v.InferOutput<typeof errors.authServerResponseUnexpectedErrorSchema> | v.InferOutput<typeof errors.authTooManyAttemptsErrorSchema> | v.InferOutput<typeof errors.authCodeInvalidErrorSchema> | v.InferOutput<typeof errors.authFailedErrorSchema> | v.InferOutput<typeof errors.messageNotFoundErrorSchema> | v.InferOutput<typeof errors.accountNotFoundErrorSchema> | v.InferOutput<typeof errors.userNotFoundErrorSchema> | v.InferOutput<typeof errors.validationFailedErrorSchema> | v.InferOutput<typeof errors.inviteNotFoundErrorSchema> | v.InferOutput<typeof errors.userMarkedForDeletionErrorSchema> | v.InferOutput<typeof errors.mutationRejectedErrorSchema> | v.InferOutput<typeof errors.attachmentNotFoundErrorSchema> | v.InferOutput<typeof errors.attachmentStateInvalidErrorSchema>;
|
|
4
4
|
//# sourceMappingURL=SDKError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,8BAA8B,CAAC,GAC3D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,gCAAgC,CAAC,GAC7D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"SDKError.d.ts","sourceRoot":"","sources":["../../src/types/SDKError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAA;AAE5D,MAAM,MAAM,QAAQ,GAChB,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,GAC9D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uCAAuC,CAAC,GACpE,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,8BAA8B,CAAC,GAC3D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,qBAAqB,CAAC,GAClD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,0BAA0B,CAAC,GACvD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,uBAAuB,CAAC,GACpD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,yBAAyB,CAAC,GACtD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,gCAAgC,CAAC,GAC7D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,2BAA2B,CAAC,GACxD,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,6BAA6B,CAAC,GAC1D,CAAC,CAAC,WAAW,CAAC,OAAO,MAAM,CAAC,iCAAiC,CAAC,CAAA"}
|
package/package.json
CHANGED