@marcoappio/marco-config 2.0.270 → 2.0.271
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 +0 -6
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +0 -18
- package/dist/schemas/index.d.ts +0 -8
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +0 -8
- package/dist/sdk/endpoints/index.d.ts +35 -29
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +35 -29
- 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/{emailAccount/oauth-google-connect.d.ts → oauth/google/authorize.d.ts} +7 -3
- package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/oauth/google/authorize.js +23 -0
- package/dist/sdk/endpoints/private/{emailAccount → oauth/google}/index.d.ts +7 -3
- package/dist/sdk/endpoints/private/oauth/google/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/oauth/google/index.js +4 -0
- package/dist/sdk/endpoints/private/oauth/index.d.ts +34 -0
- package/dist/sdk/endpoints/private/oauth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/oauth/index.js +4 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +2 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +2 -1
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +0 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +0 -1
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +35 -29
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/sdk/endpoints/private/emailAccount/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailAccount/index.js +0 -4
- package/dist/sdk/endpoints/private/emailAccount/oauth-google-connect.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailAccount/oauth-google-connect.js +0 -19
|
@@ -2,10 +2,11 @@ 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>;
|
|
6
5
|
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>;
|
|
9
10
|
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
10
11
|
}, undefined>, undefined>;
|
|
11
12
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -42,7 +43,6 @@ export declare const account: {
|
|
|
42
43
|
setConnectionConfig: {
|
|
43
44
|
delta: v.ObjectSchema<{
|
|
44
45
|
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.connectionConfig(),
|
|
41
41
|
id: marcoSchemas.string.shortUUID(),
|
|
42
42
|
}),
|
|
43
43
|
},
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -3,10 +3,11 @@ 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>;
|
|
7
6
|
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>;
|
|
10
11
|
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>;
|
|
11
12
|
}, undefined>, undefined>;
|
|
12
13
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -43,7 +44,6 @@ export declare const marcoClients: {
|
|
|
43
44
|
setConnectionConfig: {
|
|
44
45
|
delta: import("valibot").ObjectSchema<{
|
|
45
46
|
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,12 +1,6 @@
|
|
|
1
1
|
export type MarcoEnvironment = 'production' | 'staging' | 'development';
|
|
2
2
|
export declare const MARCO_ENV: MarcoEnvironment;
|
|
3
3
|
type MarcoPublicConfig = {
|
|
4
|
-
google: {
|
|
5
|
-
oauth: {
|
|
6
|
-
clientId: string;
|
|
7
|
-
redirectUri: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
marco: {
|
|
11
5
|
api: {
|
|
12
6
|
baseUrl: string;
|
|
@@ -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,
|
|
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,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;AAsED,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export const MARCO_ENV = process.env.MARCO_ENV || 'development';
|
|
2
2
|
const configMap = {
|
|
3
3
|
development: {
|
|
4
|
-
google: {
|
|
5
|
-
oauth: {
|
|
6
|
-
clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
|
|
7
|
-
redirectUri: 'http://localhost:3000/oauth/google/callback',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
4
|
marco: {
|
|
11
5
|
api: {
|
|
12
6
|
baseUrl: 'https://api.staging.marcoapp.io',
|
|
@@ -28,12 +22,6 @@ const configMap = {
|
|
|
28
22
|
},
|
|
29
23
|
},
|
|
30
24
|
staging: {
|
|
31
|
-
google: {
|
|
32
|
-
oauth: {
|
|
33
|
-
clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
|
|
34
|
-
redirectUri: 'https://app.staging.marcoapp.io/oauth/google/callback',
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
25
|
marco: {
|
|
38
26
|
api: {
|
|
39
27
|
baseUrl: 'https://api.staging.marcoapp.io',
|
|
@@ -56,12 +44,6 @@ const configMap = {
|
|
|
56
44
|
},
|
|
57
45
|
// eslint-disable-next-line sort-keys, sort-keys-fix/sort-keys-fix
|
|
58
46
|
production: {
|
|
59
|
-
google: {
|
|
60
|
-
oauth: {
|
|
61
|
-
clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
|
|
62
|
-
redirectUri: 'https://app.marcoapp.io/oauth/google/callback',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
47
|
marco: {
|
|
66
48
|
api: {
|
|
67
49
|
baseUrl: 'https://api.marcoapp.io',
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -16,14 +16,6 @@ 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>;
|
|
27
19
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
20
|
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
21
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgCP,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,14 +17,6 @@ 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'),
|
|
28
20
|
imapHost: marcoSchemas.string.required(),
|
|
29
21
|
imapPassword: marcoSchemas.string.required(),
|
|
30
22
|
imapPort: marcoSchemas.number.minMax(1, 65535),
|
|
@@ -2,33 +2,6 @@ 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
|
-
};
|
|
32
5
|
emailMessage: {
|
|
33
6
|
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<{
|
|
34
7
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -61,6 +34,39 @@ export declare const endpoints: {
|
|
|
61
34
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
62
35
|
}, undefined>], undefined>>;
|
|
63
36
|
};
|
|
37
|
+
oauth: {
|
|
38
|
+
google: {
|
|
39
|
+
authorize: EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
|
|
40
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
+
readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, 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 data: import("valibot").ObjectSchema<{
|
|
64
|
+
readonly url: import("valibot").StringSchema<undefined>;
|
|
65
|
+
}, undefined>;
|
|
66
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
67
|
+
}, undefined>], undefined>>;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
64
70
|
sync: {
|
|
65
71
|
pull: {
|
|
66
72
|
account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
@@ -95,10 +101,11 @@ export declare const endpoints: {
|
|
|
95
101
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
96
102
|
readonly value: import("valibot").ObjectSchema<{
|
|
97
103
|
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>;
|
|
99
104
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
105
|
+
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
106
|
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
107
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
108
|
+
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
109
|
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>;
|
|
103
110
|
}, undefined>, undefined>;
|
|
104
111
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -372,7 +379,6 @@ export declare const endpoints: {
|
|
|
372
379
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
373
380
|
readonly args: import("valibot").ObjectSchema<{
|
|
374
381
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
375
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
376
382
|
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
383
|
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
384
|
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,31 +1,4 @@
|
|
|
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
|
-
};
|
|
29
2
|
emailMessage: {
|
|
30
3
|
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<{
|
|
31
4
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -58,6 +31,39 @@ export declare const privateGroup: {
|
|
|
58
31
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
59
32
|
}, undefined>], undefined>>;
|
|
60
33
|
};
|
|
34
|
+
oauth: {
|
|
35
|
+
google: {
|
|
36
|
+
authorize: import("../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
|
|
37
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
+
readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, 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 data: import("valibot").ObjectSchema<{
|
|
61
|
+
readonly url: import("valibot").StringSchema<undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
64
|
+
}, undefined>], undefined>>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
61
67
|
sync: {
|
|
62
68
|
pull: {
|
|
63
69
|
account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
@@ -92,10 +98,11 @@ export declare const privateGroup: {
|
|
|
92
98
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
93
99
|
readonly value: import("valibot").ObjectSchema<{
|
|
94
100
|
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>;
|
|
96
101
|
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>;
|
|
97
103
|
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>;
|
|
98
104
|
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>;
|
|
99
106
|
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>;
|
|
100
107
|
}, undefined>, undefined>;
|
|
101
108
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -369,7 +376,6 @@ export declare const privateGroup: {
|
|
|
369
376
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
370
377
|
readonly args: import("valibot").ObjectSchema<{
|
|
371
378
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
372
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
373
379
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
374
380
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
375
381
|
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":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { emailAccount } from '../../../sdk/endpoints/private/emailAccount';
|
|
2
1
|
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,
|
|
7
6
|
emailMessage,
|
|
7
|
+
oauth,
|
|
8
8
|
sync,
|
|
9
9
|
user,
|
|
10
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const
|
|
3
|
-
readonly
|
|
2
|
+
export declare const authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", v.ObjectSchema<{
|
|
3
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly redirectTo: v.SchemaWithPipe<[v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
|
|
4
5
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
5
6
|
readonly data: v.ObjectSchema<{
|
|
6
7
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -22,6 +23,9 @@ export declare const oAuthGoogleConnect: import("../../../..").EndpointConfig<"/
|
|
|
22
23
|
}, undefined>;
|
|
23
24
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
24
25
|
}, undefined>, v.ObjectSchema<{
|
|
26
|
+
readonly data: v.ObjectSchema<{
|
|
27
|
+
readonly url: v.StringSchema<undefined>;
|
|
28
|
+
}, undefined>;
|
|
25
29
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
26
30
|
}, undefined>], undefined>>;
|
|
27
|
-
//# sourceMappingURL=
|
|
31
|
+
//# sourceMappingURL=authorize.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkBpB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, validationFailedErrorSchema } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const authorize = createEndpoint({
|
|
6
|
+
body: v.object({
|
|
7
|
+
accountId: marcoSchemas.string.required(),
|
|
8
|
+
redirectTo: v.pipe(v.string(), v.url()),
|
|
9
|
+
}),
|
|
10
|
+
method: 'POST',
|
|
11
|
+
path: '/v1/pv/oauth/google/authorize',
|
|
12
|
+
response: v.union([
|
|
13
|
+
authFailedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
accountNotFoundErrorSchema,
|
|
16
|
+
v.object({
|
|
17
|
+
data: v.object({
|
|
18
|
+
url: v.string(),
|
|
19
|
+
}),
|
|
20
|
+
status: v.literal(200),
|
|
21
|
+
}),
|
|
22
|
+
]),
|
|
23
|
+
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
readonly
|
|
1
|
+
export declare const google: {
|
|
2
|
+
authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
|
|
3
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
4
5
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
5
6
|
readonly data: import("valibot").ObjectSchema<{
|
|
6
7
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -22,6 +23,9 @@ export declare const emailAccount: {
|
|
|
22
23
|
}, undefined>;
|
|
23
24
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
24
25
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
+
readonly url: import("valibot").StringSchema<undefined>;
|
|
28
|
+
}, undefined>;
|
|
25
29
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
26
30
|
}, undefined>], undefined>>;
|
|
27
31
|
};
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const oauth: {
|
|
2
|
+
google: {
|
|
3
|
+
authorize: import("../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
|
|
4
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, 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 data: import("valibot").ObjectSchema<{
|
|
28
|
+
readonly url: import("valibot").StringSchema<undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
31
|
+
}, undefined>], undefined>>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/oauth/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAA"}
|
|
@@ -32,10 +32,11 @@ 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>;
|
|
36
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>;
|
|
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>;
|
|
39
40
|
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
41
|
}, undefined>, undefined>;
|
|
41
42
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -309,7 +310,6 @@ export declare const sync: {
|
|
|
309
310
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
310
311
|
readonly args: import("valibot").ObjectSchema<{
|
|
311
312
|
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,10 +31,11 @@ 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>;
|
|
35
34
|
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>;
|
|
38
39
|
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
39
40
|
}, undefined>, undefined>;
|
|
40
41
|
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,10 +31,11 @@ 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>;
|
|
35
34
|
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>;
|
|
38
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>;
|
|
39
40
|
}, undefined>, undefined>;
|
|
40
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>;
|
|
@@ -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,7 +20,6 @@ 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>;
|
|
24
23
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
24
|
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
25
|
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,7 +20,6 @@ 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>;
|
|
24
23
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
24
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
25
|
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,33 +1,6 @@
|
|
|
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
|
-
};
|
|
31
4
|
emailMessage: {
|
|
32
5
|
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<{
|
|
33
6
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -60,6 +33,39 @@ export declare const marcoSDK: {
|
|
|
60
33
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
61
34
|
}, undefined>], undefined>>;
|
|
62
35
|
};
|
|
36
|
+
oauth: {
|
|
37
|
+
google: {
|
|
38
|
+
authorize: import("..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
|
|
39
|
+
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, 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 data: import("valibot").ObjectSchema<{
|
|
63
|
+
readonly url: import("valibot").StringSchema<undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
66
|
+
}, undefined>], undefined>>;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
63
69
|
sync: {
|
|
64
70
|
pull: {
|
|
65
71
|
account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
@@ -94,10 +100,11 @@ export declare const marcoSDK: {
|
|
|
94
100
|
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
95
101
|
readonly value: import("valibot").ObjectSchema<{
|
|
96
102
|
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>;
|
|
98
103
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
104
|
+
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
99
105
|
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>;
|
|
100
106
|
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
107
|
+
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
108
|
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>;
|
|
102
109
|
}, undefined>, undefined>;
|
|
103
110
|
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -371,7 +378,6 @@ export declare const marcoSDK: {
|
|
|
371
378
|
}, undefined> | import("valibot").ObjectSchema<{
|
|
372
379
|
readonly args: import("valibot").ObjectSchema<{
|
|
373
380
|
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
374
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
375
381
|
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
376
382
|
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
377
383
|
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":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailAccount/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
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,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
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
|
-
body: v.object({
|
|
7
|
-
code: marcoSchemas.string.required(),
|
|
8
|
-
}),
|
|
9
|
-
method: 'POST',
|
|
10
|
-
path: '/v1/pv/account/:accountId/oauth/google/connect',
|
|
11
|
-
response: v.union([
|
|
12
|
-
authFailedErrorSchema,
|
|
13
|
-
validationFailedErrorSchema,
|
|
14
|
-
accountNotFoundErrorSchema,
|
|
15
|
-
v.object({
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|