@marcoappio/marco-config 2.0.269 → 2.0.270
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 +2 -2
- package/dist/clients/account.js +1 -1
- package/dist/clients/index.d.ts +2 -2
- package/dist/marcoPublicConfig.d.ts +1 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +3 -0
- package/dist/schemas/index.d.ts +8 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +8 -0
- package/dist/sdk/endpoints/index.d.ts +29 -32
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/{oauth/google → emailAccount}/index.d.ts +2 -3
- package/dist/sdk/endpoints/private/emailAccount/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailAccount/index.js +4 -0
- package/dist/sdk/endpoints/private/{oauth/google/authorize.d.ts → emailAccount/oauth-google-connect.d.ts} +2 -3
- package/dist/sdk/endpoints/private/emailAccount/oauth-google-connect.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/{oauth/google/authorize.js → emailAccount/oauth-google-connect.js} +5 -6
- package/dist/sdk/endpoints/private/index.d.ts +29 -32
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.js +2 -2
- package/dist/sdk/endpoints/private/sync/index.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -2
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +1 -2
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +29 -32
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/oauth/google/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/oauth/google/index.js +0 -4
- package/dist/sdk/endpoints/private/oauth/index.d.ts +0 -31
- package/dist/sdk/endpoints/private/oauth/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/oauth/index.js +0 -4
|
@@ -2,11 +2,10 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const account: {
|
|
3
3
|
model: v.ObjectSchema<{
|
|
4
4
|
readonly connectionConfig: v.NullableSchema<v.ObjectSchema<{
|
|
5
|
+
readonly authType: v.UnionSchema<[v.LiteralSchema<"PASSWORD", undefined>, v.LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
5
6
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
|
-
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
7
|
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
8
8
|
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
-
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
9
|
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
11
10
|
}, undefined>, undefined>;
|
|
12
11
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -43,6 +42,7 @@ export declare const account: {
|
|
|
43
42
|
setConnectionConfig: {
|
|
44
43
|
delta: v.ObjectSchema<{
|
|
45
44
|
readonly connectionConfig: v.ObjectSchema<{
|
|
45
|
+
readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
|
|
46
46
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
47
47
|
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
package/dist/clients/account.js
CHANGED
|
@@ -37,7 +37,7 @@ export const account = {
|
|
|
37
37
|
},
|
|
38
38
|
setConnectionConfig: {
|
|
39
39
|
delta: v.object({
|
|
40
|
-
connectionConfig: marcoSchemas.emailAccount.
|
|
40
|
+
connectionConfig: marcoSchemas.emailAccount.fullConnectionConfig(),
|
|
41
41
|
id: marcoSchemas.string.shortUUID(),
|
|
42
42
|
}),
|
|
43
43
|
},
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -3,11 +3,10 @@ export declare const marcoClients: {
|
|
|
3
3
|
account: {
|
|
4
4
|
model: import("valibot").ObjectSchema<{
|
|
5
5
|
readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
6
|
+
readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
6
7
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
8
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
9
9
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
10
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
12
11
|
}, undefined>, undefined>;
|
|
13
12
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -44,6 +43,7 @@ export declare const marcoClients: {
|
|
|
44
43
|
setConnectionConfig: {
|
|
45
44
|
delta: import("valibot").ObjectSchema<{
|
|
46
45
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
46
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
47
47
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
49
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAA6D,CAAA;AAEnF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAA6D,CAAA;AAEnF,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE,MAAM,CAAA;YAChB,WAAW,EAAE,MAAM,CAAA;SACpB,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AAwFD,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
|
|
@@ -4,6 +4,7 @@ const configMap = {
|
|
|
4
4
|
google: {
|
|
5
5
|
oauth: {
|
|
6
6
|
clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
|
|
7
|
+
redirectUri: 'http://localhost:3000/oauth/google/callback',
|
|
7
8
|
},
|
|
8
9
|
},
|
|
9
10
|
marco: {
|
|
@@ -30,6 +31,7 @@ const configMap = {
|
|
|
30
31
|
google: {
|
|
31
32
|
oauth: {
|
|
32
33
|
clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
|
|
34
|
+
redirectUri: 'https://app.staging.marcoapp.io/oauth/google/callback',
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
37
|
marco: {
|
|
@@ -57,6 +59,7 @@ const configMap = {
|
|
|
57
59
|
google: {
|
|
58
60
|
oauth: {
|
|
59
61
|
clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
|
|
62
|
+
redirectUri: 'https://app.marcoapp.io/oauth/google/callback',
|
|
60
63
|
},
|
|
61
64
|
},
|
|
62
65
|
marco: {
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -16,6 +16,14 @@ export declare const marcoSchemas: {
|
|
|
16
16
|
};
|
|
17
17
|
emailAccount: {
|
|
18
18
|
connectionConfig: () => v.ObjectSchema<{
|
|
19
|
+
readonly authType: v.UnionSchema<[v.LiteralSchema<"PASSWORD", undefined>, v.LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
20
|
+
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
+
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
22
|
+
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
fullConnectionConfig: () => v.ObjectSchema<{
|
|
26
|
+
readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
|
|
19
27
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
28
|
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
29
|
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwCP,MAAM,OAAO,MAAM;;;;;;;;;;;;;CAMpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -17,6 +17,14 @@ export const marcoSchemas = {
|
|
|
17
17
|
},
|
|
18
18
|
emailAccount: {
|
|
19
19
|
connectionConfig: () => v.object({
|
|
20
|
+
authType: v.union([v.literal('PASSWORD'), v.literal('GOOGLE_OAUTH')]),
|
|
21
|
+
imapHost: marcoSchemas.string.required(),
|
|
22
|
+
imapPort: marcoSchemas.number.minMax(1, 65535),
|
|
23
|
+
smtpHost: marcoSchemas.string.required(),
|
|
24
|
+
smtpPort: marcoSchemas.number.minMax(1, 65535),
|
|
25
|
+
}),
|
|
26
|
+
fullConnectionConfig: () => v.object({
|
|
27
|
+
authType: v.literal('PASSWORD'),
|
|
20
28
|
imapHost: marcoSchemas.string.required(),
|
|
21
29
|
imapPassword: marcoSchemas.string.required(),
|
|
22
30
|
imapPort: marcoSchemas.number.minMax(1, 65535),
|
|
@@ -2,6 +2,33 @@ import { GenericSchema } from 'valibot';
|
|
|
2
2
|
import { EndpointConfig } from '../../types';
|
|
3
3
|
export declare const endpoints: {
|
|
4
4
|
private: {
|
|
5
|
+
emailAccount: {
|
|
6
|
+
oAuthGoogleConnect: EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
+
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
9
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
10
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
16
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
18
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
19
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
}, undefined>;
|
|
22
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
23
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
24
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
28
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
30
|
+
}, undefined>], undefined>>;
|
|
31
|
+
};
|
|
5
32
|
emailMessage: {
|
|
6
33
|
getAttachment: EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
34
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -34,36 +61,6 @@ export declare const endpoints: {
|
|
|
34
61
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
35
62
|
}, undefined>], undefined>>;
|
|
36
63
|
};
|
|
37
|
-
oauth: {
|
|
38
|
-
google: {
|
|
39
|
-
authorize: EndpointConfig<"/v1/pv/account/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
40
|
-
readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
41
|
-
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
-
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
43
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
44
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
45
|
-
}, undefined>;
|
|
46
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
47
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
48
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
49
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
50
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
51
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
52
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
53
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
54
|
-
}, undefined>;
|
|
55
|
-
}, undefined>;
|
|
56
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
57
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
58
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
59
|
-
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
60
|
-
}, undefined>;
|
|
61
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
62
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
63
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
64
|
-
}, undefined>], undefined>>;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
64
|
sync: {
|
|
68
65
|
pull: {
|
|
69
66
|
account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
@@ -98,11 +95,10 @@ export declare const endpoints: {
|
|
|
98
95
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
99
96
|
readonly value: import("valibot").ObjectSchema<{
|
|
100
97
|
readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
98
|
+
readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
101
99
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
103
100
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
104
101
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
105
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
106
102
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
107
103
|
}, undefined>, undefined>;
|
|
108
104
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -376,6 +372,7 @@ export declare const endpoints: {
|
|
|
376
372
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
377
373
|
readonly args: import("valibot").ObjectSchema<{
|
|
378
374
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
375
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
379
376
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
380
377
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
381
378
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
1
|
+
export declare const emailAccount: {
|
|
2
|
+
oAuthGoogleConnect: import("../../../..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
4
3
|
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
4
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
5
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailAccount/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const
|
|
3
|
-
readonly accountId: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
2
|
+
export declare const oAuthGoogleConnect: import("../../../..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", v.ObjectSchema<{
|
|
4
3
|
readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
4
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
5
|
readonly data: v.ObjectSchema<{
|
|
@@ -25,4 +24,4 @@ export declare const authorize: import("../../../../..").EndpointConfig<"/v1/pv/
|
|
|
25
24
|
}, undefined>, v.ObjectSchema<{
|
|
26
25
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
27
26
|
}, undefined>], undefined>>;
|
|
28
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=oauth-google-connect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth-google-connect.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailAccount/oauth-google-connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;2BAc7B,CAAA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
import { marcoSchemas } from '
|
|
3
|
-
import { createEndpoint } from '
|
|
4
|
-
import { accountNotFoundErrorSchema, authFailedErrorSchema, validationFailedErrorSchema } from '
|
|
5
|
-
export const
|
|
2
|
+
import { marcoSchemas } from '../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, validationFailedErrorSchema } from '../../../../sdk/validation/errors';
|
|
5
|
+
export const oAuthGoogleConnect = createEndpoint({
|
|
6
6
|
body: v.object({
|
|
7
|
-
accountId: marcoSchemas.string.shortUUID(),
|
|
8
7
|
code: marcoSchemas.string.required(),
|
|
9
8
|
}),
|
|
10
9
|
method: 'POST',
|
|
11
|
-
path: '/v1/pv/account/oauth/google/connect',
|
|
10
|
+
path: '/v1/pv/account/:accountId/oauth/google/connect',
|
|
12
11
|
response: v.union([
|
|
13
12
|
authFailedErrorSchema,
|
|
14
13
|
validationFailedErrorSchema,
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
export declare const privateGroup: {
|
|
2
|
+
emailAccount: {
|
|
3
|
+
oAuthGoogleConnect: import("../../..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
4
|
+
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
10
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
12
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
13
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
15
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
16
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
22
|
+
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
25
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
27
|
+
}, undefined>], undefined>>;
|
|
28
|
+
};
|
|
2
29
|
emailMessage: {
|
|
3
30
|
getAttachment: import("../../..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
4
31
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -31,36 +58,6 @@ export declare const privateGroup: {
|
|
|
31
58
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
32
59
|
}, undefined>], undefined>>;
|
|
33
60
|
};
|
|
34
|
-
oauth: {
|
|
35
|
-
google: {
|
|
36
|
-
authorize: import("../../..").EndpointConfig<"/v1/pv/account/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
37
|
-
readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
38
|
-
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
-
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
40
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
41
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
42
|
-
}, undefined>;
|
|
43
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
44
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
45
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
46
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
47
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
48
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
49
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
50
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
51
|
-
}, undefined>;
|
|
52
|
-
}, undefined>;
|
|
53
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
54
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
55
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
56
|
-
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
57
|
-
}, undefined>;
|
|
58
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
59
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
60
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
61
|
-
}, undefined>], undefined>>;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
61
|
sync: {
|
|
65
62
|
pull: {
|
|
66
63
|
account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
@@ -95,11 +92,10 @@ export declare const privateGroup: {
|
|
|
95
92
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
96
93
|
readonly value: import("valibot").ObjectSchema<{
|
|
97
94
|
readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
95
|
+
readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
98
96
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
99
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
100
97
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
101
98
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
103
99
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
104
100
|
}, undefined>, undefined>;
|
|
105
101
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -373,6 +369,7 @@ export declare const privateGroup: {
|
|
|
373
369
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
374
370
|
readonly args: import("valibot").ObjectSchema<{
|
|
375
371
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
372
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
376
373
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
377
374
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
378
375
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { emailAccount } from '../../../sdk/endpoints/private/emailAccount';
|
|
1
2
|
import { emailMessage } from './emailMessage';
|
|
2
|
-
import { oauth } from './oauth';
|
|
3
3
|
import { sync } from './sync';
|
|
4
4
|
import { user } from './user';
|
|
5
5
|
export const privateGroup = {
|
|
6
|
+
emailAccount,
|
|
6
7
|
emailMessage,
|
|
7
|
-
oauth,
|
|
8
8
|
sync,
|
|
9
9
|
user,
|
|
10
10
|
};
|
|
@@ -32,11 +32,10 @@ export declare const sync: {
|
|
|
32
32
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
33
33
|
readonly value: import("valibot").ObjectSchema<{
|
|
34
34
|
readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
35
|
+
readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
35
36
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
37
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
38
38
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
39
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
41
40
|
}, undefined>, undefined>;
|
|
42
41
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -310,6 +309,7 @@ export declare const sync: {
|
|
|
310
309
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
311
310
|
readonly args: import("valibot").ObjectSchema<{
|
|
312
311
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
312
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
313
313
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
314
314
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
315
315
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -31,11 +31,10 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
|
|
|
31
31
|
readonly op: v.LiteralSchema<"put", undefined>;
|
|
32
32
|
readonly value: v.ObjectSchema<{
|
|
33
33
|
readonly connectionConfig: v.NullableSchema<v.ObjectSchema<{
|
|
34
|
+
readonly authType: v.UnionSchema<[v.LiteralSchema<"PASSWORD", undefined>, v.LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
34
35
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
36
|
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
37
37
|
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
-
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
38
|
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
40
39
|
}, undefined>, undefined>;
|
|
41
40
|
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":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
|
|
@@ -31,11 +31,10 @@ export declare const pull: {
|
|
|
31
31
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
32
32
|
readonly value: import("valibot").ObjectSchema<{
|
|
33
33
|
readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
34
|
+
readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
34
35
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
36
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
37
37
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
38
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
40
39
|
}, undefined>, undefined>;
|
|
41
40
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -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"}
|
|
@@ -20,6 +20,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
|
|
|
20
20
|
}, undefined> | v.ObjectSchema<{
|
|
21
21
|
readonly args: v.ObjectSchema<{
|
|
22
22
|
readonly connectionConfig: v.ObjectSchema<{
|
|
23
|
+
readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
|
|
23
24
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
25
|
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
26
|
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyC1B,CAAA"}
|
|
@@ -20,6 +20,7 @@ export declare const push: {
|
|
|
20
20
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
21
21
|
readonly args: import("valibot").ObjectSchema<{
|
|
22
22
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
23
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
23
24
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
25
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
26
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
export declare const marcoSDK: {
|
|
2
2
|
endpoints: {
|
|
3
3
|
private: {
|
|
4
|
+
emailAccount: {
|
|
5
|
+
oAuthGoogleConnect: import("..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
6
|
+
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
8
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
15
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
16
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
17
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
18
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
22
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
27
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
29
|
+
}, undefined>], undefined>>;
|
|
30
|
+
};
|
|
4
31
|
emailMessage: {
|
|
5
32
|
getAttachment: import("..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
33
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -33,36 +60,6 @@ export declare const marcoSDK: {
|
|
|
33
60
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
34
61
|
}, undefined>], undefined>>;
|
|
35
62
|
};
|
|
36
|
-
oauth: {
|
|
37
|
-
google: {
|
|
38
|
-
authorize: import("..").EndpointConfig<"/v1/pv/account/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
39
|
-
readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
40
|
-
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
-
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
42
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
43
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
46
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
47
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
48
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
49
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
50
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
51
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
52
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
53
|
-
}, undefined>;
|
|
54
|
-
}, undefined>;
|
|
55
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
56
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
57
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
58
|
-
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
59
|
-
}, undefined>;
|
|
60
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
61
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
62
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
63
|
-
}, undefined>], undefined>>;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
63
|
sync: {
|
|
67
64
|
pull: {
|
|
68
65
|
account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
@@ -97,11 +94,10 @@ export declare const marcoSDK: {
|
|
|
97
94
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
98
95
|
readonly value: import("valibot").ObjectSchema<{
|
|
99
96
|
readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
97
|
+
readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
|
|
100
98
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
99
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
103
100
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
104
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
105
101
|
readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
106
102
|
}, undefined>, undefined>;
|
|
107
103
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -375,6 +371,7 @@ export declare const marcoSDK: {
|
|
|
375
371
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
376
372
|
readonly args: import("valibot").ObjectSchema<{
|
|
377
373
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
374
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
378
375
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
379
376
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
380
377
|
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
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"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/oauth/google/authorize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;2BAepB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/oauth/google/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export declare const oauth: {
|
|
2
|
-
google: {
|
|
3
|
-
authorize: import("../../../..").EndpointConfig<"/v1/pv/account/oauth/google/connect", import("valibot").ObjectSchema<{
|
|
4
|
-
readonly accountId: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
|
|
5
|
-
readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
|
-
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
8
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
-
}, undefined>;
|
|
10
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
14
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
15
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
16
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
17
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
18
|
-
}, undefined>;
|
|
19
|
-
}, undefined>;
|
|
20
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
21
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
23
|
-
readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
26
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
28
|
-
}, undefined>], undefined>>;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/oauth/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAA"}
|