@marcoappio/marco-config 2.0.117 → 2.0.118
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/sdk/endpoints/index.d.ts +80 -34
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +0 -2
- package/dist/sdk/endpoints/private/index.d.ts +77 -23
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.js +2 -4
- package/dist/sdk/endpoints/private/sync/index.d.ts +79 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/index.js +3 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +42 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/account.js +29 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +43 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/index.js +2 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +34 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.js +31 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +35 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.js +2 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +3 -3
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/index.d.ts +3 -3
- package/dist/sdk/index.d.ts +80 -34
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +30 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -0
- package/dist/sdk/validation/errors.js +19 -0
- package/package.json +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getText.d.ts +0 -16
- package/dist/sdk/endpoints/private/emailMessage/getText.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/getText.js +0 -23
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -17
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/index.js +0 -4
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -8
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/deleteUser.js +0 -14
- package/dist/sdk/endpoints/private/user/index.d.ts +0 -9
- package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/index.js +0 -4
- package/dist/sdk/endpoints/webhook/emailEngine.d.ts +0 -8
- package/dist/sdk/endpoints/webhook/emailEngine.d.ts.map +0 -1
- package/dist/sdk/endpoints/webhook/emailEngine.js +0 -12
- package/dist/sdk/endpoints/webhook/index.d.ts +0 -9
- package/dist/sdk/endpoints/webhook/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/webhook/index.js +0 -4
- package/dist/sdk/validation/errors/index.d.ts +0 -15
- package/dist/sdk/validation/errors/index.d.ts.map +0 -1
- package/dist/sdk/validation/errors/index.js +0 -8
- package/dist/sdk/validation/errors/unauthenticated.d.ts +0 -6
- package/dist/sdk/validation/errors/unauthenticated.d.ts.map +0 -1
- package/dist/sdk/validation/errors/unauthenticated.js +0 -5
- package/dist/sdk/validation/errors/unexpected.d.ts +0 -6
- package/dist/sdk/validation/errors/unexpected.d.ts.map +0 -1
- package/dist/sdk/validation/errors/unexpected.js +0 -5
- package/dist/sdk/validation/errors/validationFailed.d.ts +0 -6
- package/dist/sdk/validation/errors/validationFailed.d.ts.map +0 -1
- package/dist/sdk/validation/errors/validationFailed.js +0 -5
|
@@ -2,29 +2,83 @@ import { GenericSchema } from 'valibot';
|
|
|
2
2
|
import { EndpointConfig } from '../../types';
|
|
3
3
|
export declare const endpoints: {
|
|
4
4
|
private: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
5
|
+
sync: {
|
|
6
|
+
pull: {
|
|
7
|
+
syncPullAccount: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
8
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
9
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
10
|
+
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
11
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
12
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
19
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
20
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
21
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
22
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
23
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
24
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
25
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
27
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
28
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
29
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
31
|
+
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
32
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
33
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
35
|
+
readonly status: import("valibot").EnumSchema<typeof import("../../types").IMAPPasswordConfigStatus, undefined>;
|
|
36
|
+
}, undefined>, undefined>;
|
|
37
|
+
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
38
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
39
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
40
|
+
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
41
|
+
}, undefined>, undefined>;
|
|
42
|
+
}, undefined>;
|
|
43
|
+
}, undefined>], undefined>, undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
46
|
+
}, undefined>], undefined>>;
|
|
47
|
+
};
|
|
48
|
+
push: {
|
|
49
|
+
syncPushAccount: EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
50
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
51
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
52
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
53
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
54
|
+
readonly imapPasswordConfig: import("valibot").ObjectSchema<{
|
|
55
|
+
readonly status: import("valibot").LiteralSchema<import("../../types").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
56
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
57
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
58
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
}, undefined>;
|
|
61
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
62
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
63
|
+
readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
64
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
65
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
66
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
67
|
+
}, undefined>;
|
|
68
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
69
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
70
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
71
|
+
}, undefined>], undefined>, undefined>;
|
|
72
|
+
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
73
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
74
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
75
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
76
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
77
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
78
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
79
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
80
|
+
}, undefined>], undefined>>;
|
|
81
|
+
};
|
|
28
82
|
};
|
|
29
83
|
};
|
|
30
84
|
public: {
|
|
@@ -32,7 +86,7 @@ export declare const endpoints: {
|
|
|
32
86
|
refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
33
87
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
34
88
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
35
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
89
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
36
90
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
37
91
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
38
92
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -52,7 +106,7 @@ export declare const endpoints: {
|
|
|
52
106
|
sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
53
107
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
54
108
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
55
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
109
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
56
110
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
57
111
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
58
112
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -61,7 +115,7 @@ export declare const endpoints: {
|
|
|
61
115
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
62
116
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
63
117
|
}, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
64
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
118
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
65
119
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
66
120
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
67
121
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -86,13 +140,5 @@ export declare const endpoints: {
|
|
|
86
140
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
87
141
|
}, undefined>>;
|
|
88
142
|
};
|
|
89
|
-
webhook: {
|
|
90
|
-
emailEngine: EndpointConfig<"/v1/wh/email-engine", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
91
|
-
readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
92
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
93
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
94
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
95
|
-
}, undefined>], undefined>>;
|
|
96
|
-
};
|
|
97
143
|
};
|
|
98
144
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,EAAoB,MAAM,qBAAqB,CAAA;
|
|
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,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -1,27 +1,81 @@
|
|
|
1
1
|
export declare const privateGroup: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
2
|
+
sync: {
|
|
3
|
+
pull: {
|
|
4
|
+
syncPullAccount: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
5
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
6
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
9
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
10
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
12
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
13
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
16
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
17
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
18
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
19
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
22
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
24
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
25
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
26
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
27
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
29
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
31
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
32
|
+
readonly status: import("valibot").EnumSchema<typeof import("../../..").IMAPPasswordConfigStatus, undefined>;
|
|
33
|
+
}, undefined>, undefined>;
|
|
34
|
+
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
35
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
37
|
+
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
38
|
+
}, undefined>, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
}, undefined>], undefined>, undefined>;
|
|
41
|
+
}, undefined>;
|
|
42
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
43
|
+
}, undefined>], undefined>>;
|
|
44
|
+
};
|
|
45
|
+
push: {
|
|
46
|
+
syncPushAccount: import("../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
47
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
48
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
49
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
50
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
51
|
+
readonly imapPasswordConfig: import("valibot").ObjectSchema<{
|
|
52
|
+
readonly status: import("valibot").LiteralSchema<import("../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
53
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
54
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
55
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
59
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
60
|
+
readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
61
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
62
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
63
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
66
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
67
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
68
|
+
}, undefined>], undefined>, undefined>;
|
|
69
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
70
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
71
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
72
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
73
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
74
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
75
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
76
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
77
|
+
}, undefined>], undefined>>;
|
|
78
|
+
};
|
|
25
79
|
};
|
|
26
80
|
};
|
|
27
81
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
export declare const sync: {
|
|
2
|
+
pull: {
|
|
3
|
+
syncPullAccount: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
4
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
5
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
6
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
8
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
9
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
10
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
15
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
16
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
17
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
18
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
19
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
20
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
21
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
23
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
24
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
27
|
+
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
28
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
31
|
+
readonly status: import("valibot").EnumSchema<typeof import("../../../..").IMAPPasswordConfigStatus, undefined>;
|
|
32
|
+
}, undefined>, undefined>;
|
|
33
|
+
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
34
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
35
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
|
+
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
37
|
+
}, undefined>, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
}, undefined>], undefined>, undefined>;
|
|
40
|
+
}, undefined>;
|
|
41
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
42
|
+
}, undefined>], undefined>>;
|
|
43
|
+
};
|
|
44
|
+
push: {
|
|
45
|
+
syncPushAccount: import("../../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
46
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
47
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
48
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
49
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
50
|
+
readonly imapPasswordConfig: import("valibot").ObjectSchema<{
|
|
51
|
+
readonly status: import("valibot").LiteralSchema<import("../../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
52
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
53
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
54
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
58
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
59
|
+
readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
60
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
61
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
62
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
65
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
66
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
67
|
+
}, undefined>], undefined>, undefined>;
|
|
68
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
69
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
70
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
71
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
72
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
73
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
74
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
75
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
76
|
+
}, undefined>], undefined>>;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPullAccount: import("../../../../../types").EndpointConfig<"/v1/pv/sync/pull/account", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
8
|
+
}, undefined>, v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
10
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, v.ObjectSchema<{
|
|
12
|
+
readonly data: v.ObjectSchema<{
|
|
13
|
+
readonly cookie: v.NumberSchema<undefined>;
|
|
14
|
+
readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
|
|
15
|
+
readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
16
|
+
readonly key: v.StringSchema<undefined>;
|
|
17
|
+
readonly op: v.LiteralSchema<"del", undefined>;
|
|
18
|
+
}, undefined>, v.ObjectSchema<{
|
|
19
|
+
readonly op: v.LiteralSchema<"clear", undefined>;
|
|
20
|
+
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly key: v.StringSchema<undefined>;
|
|
22
|
+
readonly op: v.LiteralSchema<"put", undefined>;
|
|
23
|
+
readonly value: v.ObjectSchema<{
|
|
24
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
25
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
+
readonly imapPasswordConfig: v.NullableSchema<v.ObjectSchema<{
|
|
27
|
+
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
30
|
+
readonly status: v.EnumSchema<typeof import("../../../../../types").IMAPPasswordConfigStatus, undefined>;
|
|
31
|
+
}, undefined>, undefined>;
|
|
32
|
+
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
33
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
|
+
readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
35
|
+
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
|
+
}, undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
}, undefined>], undefined>, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
41
|
+
}, undefined>], undefined>>;
|
|
42
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +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;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { account } from '../../../../../clients/account';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { errorManifest } from '../../../../../sdk/validation/errors';
|
|
5
|
+
import { HTTPMethod } from '../../../../../types';
|
|
6
|
+
export const syncPullAccount = createEndpoint({
|
|
7
|
+
body: v.object({
|
|
8
|
+
clientGroupID: v.string(),
|
|
9
|
+
cookie: v.nullable(v.number()),
|
|
10
|
+
}),
|
|
11
|
+
method: HTTPMethod.POST,
|
|
12
|
+
path: account.pullURL,
|
|
13
|
+
response: v.union([
|
|
14
|
+
errorManifest.validationFailedErrorSchema,
|
|
15
|
+
errorManifest.notAuthenticatedErrorSchema,
|
|
16
|
+
v.object({
|
|
17
|
+
data: v.object({
|
|
18
|
+
cookie: v.number(),
|
|
19
|
+
lastMutationIDChanges: v.record(v.string(), v.number()),
|
|
20
|
+
patch: v.array(v.union([
|
|
21
|
+
v.object({ key: v.string(), op: v.literal('del') }),
|
|
22
|
+
v.object({ op: v.literal('clear') }),
|
|
23
|
+
v.object({ key: v.string(), op: v.literal('put'), value: account.model }),
|
|
24
|
+
])),
|
|
25
|
+
}),
|
|
26
|
+
status: v.literal(200),
|
|
27
|
+
}),
|
|
28
|
+
]),
|
|
29
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const pull: {
|
|
2
|
+
syncPullAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
8
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
10
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
14
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
15
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
16
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
17
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
18
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
19
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
20
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
22
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
23
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
24
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
25
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
+
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
27
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
30
|
+
readonly status: import("valibot").EnumSchema<typeof import("../../../../..").IMAPPasswordConfigStatus, undefined>;
|
|
31
|
+
}, undefined>, undefined>;
|
|
32
|
+
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
33
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
35
|
+
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
|
+
}, undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
}, undefined>], undefined>, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
41
|
+
}, undefined>], undefined>>;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPushAccount: import("../../../../../types").EndpointConfig<"/v1/pv/sync/push/account", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
+
readonly args: v.ObjectSchema<{
|
|
6
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
|
+
readonly imapPasswordConfig: v.ObjectSchema<{
|
|
8
|
+
readonly status: v.LiteralSchema<import("../../../../../types").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
9
|
+
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
10
|
+
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
11
|
+
readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
15
|
+
readonly id: v.NumberSchema<undefined>;
|
|
16
|
+
readonly name: v.LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly args: v.ObjectSchema<{
|
|
19
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
22
|
+
readonly id: v.NumberSchema<undefined>;
|
|
23
|
+
readonly name: v.LiteralSchema<"delete", undefined>;
|
|
24
|
+
}, undefined>], undefined>, undefined>;
|
|
25
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
26
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
28
|
+
}, undefined>, v.ObjectSchema<{
|
|
29
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
30
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
31
|
+
}, undefined>, v.ObjectSchema<{
|
|
32
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
33
|
+
}, undefined>], undefined>>;
|
|
34
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +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;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
|