@marcoappio/marco-config 2.0.200 → 2.0.201
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/index.d.ts +9 -2
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/thread.d.ts +9 -2
- package/dist/clients/thread.d.ts.map +1 -1
- package/dist/clients/thread.js +9 -2
- package/dist/sdk/endpoints/index.d.ts +41 -25
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +41 -25
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +41 -25
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +19 -19
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/account.js +11 -11
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/draft.js +38 -39
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +41 -25
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +20 -4
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +18 -6
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/user.js +3 -3
- package/dist/sdk/index.d.ts +41 -25
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/account", v.ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
|
|
5
5
|
readonly args: v.ObjectSchema<{
|
|
6
|
-
readonly
|
|
7
|
-
|
|
8
|
-
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
-
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
-
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
11
|
-
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
|
-
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
|
-
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
14
|
-
}, undefined>;
|
|
6
|
+
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
15
8
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
16
9
|
}, undefined>;
|
|
17
10
|
readonly clientID: v.StringSchema<undefined>;
|
|
18
11
|
readonly id: v.NumberSchema<undefined>;
|
|
19
|
-
readonly name: v.LiteralSchema<"
|
|
20
|
-
}, undefined
|
|
12
|
+
readonly name: v.LiteralSchema<"add", undefined>;
|
|
13
|
+
}, undefined> | v.ObjectSchema<{
|
|
21
14
|
readonly args: v.ObjectSchema<{
|
|
22
|
-
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
-
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
24
15
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
25
16
|
}, undefined>;
|
|
26
17
|
readonly clientID: v.StringSchema<undefined>;
|
|
27
18
|
readonly id: v.NumberSchema<undefined>;
|
|
28
|
-
readonly name: v.LiteralSchema<"
|
|
29
|
-
}, undefined
|
|
19
|
+
readonly name: v.LiteralSchema<"delete", undefined>;
|
|
20
|
+
}, undefined> | v.ObjectSchema<{
|
|
30
21
|
readonly args: v.ObjectSchema<{
|
|
22
|
+
readonly connectionConfig: v.ObjectSchema<{
|
|
23
|
+
readonly imapStatus: v.LiteralSchema<"AWAITING_CONNECTION", undefined>;
|
|
24
|
+
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
|
+
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
27
|
+
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
|
+
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
|
+
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
31
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
32
32
|
}, undefined>;
|
|
33
33
|
readonly clientID: v.StringSchema<undefined>;
|
|
34
34
|
readonly id: v.NumberSchema<undefined>;
|
|
35
|
-
readonly name: v.LiteralSchema<"
|
|
36
|
-
}, undefined
|
|
35
|
+
readonly name: v.LiteralSchema<"setConnectionConfig", undefined>;
|
|
36
|
+
}, undefined> | v.ObjectSchema<{
|
|
37
37
|
readonly args: v.ObjectSchema<{
|
|
38
38
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
39
39
|
readonly settings: Omit<v.ObjectSchema<{
|
|
@@ -78,7 +78,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
|
|
|
78
78
|
readonly clientID: v.StringSchema<undefined>;
|
|
79
79
|
readonly id: v.NumberSchema<undefined>;
|
|
80
80
|
readonly name: v.LiteralSchema<"setSettings", undefined>;
|
|
81
|
-
}, undefined>], undefined>, undefined>;
|
|
81
|
+
}, undefined>)[], undefined>, undefined>;
|
|
82
82
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
83
83
|
readonly data: v.ObjectSchema<{
|
|
84
84
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", 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"}
|
|
@@ -5,32 +5,32 @@ import { errors } from '../../../../../sdk/validation/errors';
|
|
|
5
5
|
export const syncPushAccount = createEndpoint({
|
|
6
6
|
body: v.object({
|
|
7
7
|
clientGroupID: v.string(),
|
|
8
|
-
mutations: v.array(v.union(
|
|
9
|
-
v.object({
|
|
10
|
-
args: account.mutators.setConnectionConfig.delta,
|
|
11
|
-
clientID: v.string(),
|
|
12
|
-
id: v.number(),
|
|
13
|
-
name: v.literal('setConnectionConfig'),
|
|
14
|
-
}),
|
|
15
|
-
v.object({
|
|
8
|
+
mutations: v.array(v.union(Object.values({
|
|
9
|
+
add: v.object({
|
|
16
10
|
args: account.mutators.add.delta,
|
|
17
11
|
clientID: v.string(),
|
|
18
12
|
id: v.number(),
|
|
19
13
|
name: v.literal('add'),
|
|
20
14
|
}),
|
|
21
|
-
v.object({
|
|
15
|
+
delete: v.object({
|
|
22
16
|
args: account.mutators.delete.delta,
|
|
23
17
|
clientID: v.string(),
|
|
24
18
|
id: v.number(),
|
|
25
19
|
name: v.literal('delete'),
|
|
26
20
|
}),
|
|
27
|
-
v.object({
|
|
21
|
+
setConnectionConfig: v.object({
|
|
22
|
+
args: account.mutators.setConnectionConfig.delta,
|
|
23
|
+
clientID: v.string(),
|
|
24
|
+
id: v.number(),
|
|
25
|
+
name: v.literal('setConnectionConfig'),
|
|
26
|
+
}),
|
|
27
|
+
setSettings: v.object({
|
|
28
28
|
args: account.mutators.setSettings.delta,
|
|
29
29
|
clientID: v.string(),
|
|
30
30
|
id: v.number(),
|
|
31
31
|
name: v.literal('setSettings'),
|
|
32
32
|
}),
|
|
33
|
-
|
|
33
|
+
}))),
|
|
34
34
|
}),
|
|
35
35
|
method: 'POST',
|
|
36
36
|
path: account.pushURL,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqDxB,CAAA"}
|
|
@@ -2,48 +2,47 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { draft } from '../../../../../clients/draft';
|
|
3
3
|
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
4
|
import { errors } from '../../../../../sdk/validation/errors';
|
|
5
|
-
const mutationHandlers = {
|
|
6
|
-
create: v.object({
|
|
7
|
-
args: draft.mutators.create.delta,
|
|
8
|
-
clientID: v.string(),
|
|
9
|
-
id: v.number(),
|
|
10
|
-
name: v.literal('create'),
|
|
11
|
-
}),
|
|
12
|
-
delete: v.object({
|
|
13
|
-
args: draft.mutators.delete.delta,
|
|
14
|
-
clientID: v.string(),
|
|
15
|
-
id: v.number(),
|
|
16
|
-
name: v.literal('delete'),
|
|
17
|
-
}),
|
|
18
|
-
setContent: v.object({
|
|
19
|
-
args: draft.mutators.setContent.delta,
|
|
20
|
-
clientID: v.string(),
|
|
21
|
-
id: v.number(),
|
|
22
|
-
name: v.literal('setContent'),
|
|
23
|
-
}),
|
|
24
|
-
setEmailAccountId: v.object({
|
|
25
|
-
args: draft.mutators.setEmailAccountId.delta,
|
|
26
|
-
clientID: v.string(),
|
|
27
|
-
id: v.number(),
|
|
28
|
-
name: v.literal('setEmailAccountId'),
|
|
29
|
-
}),
|
|
30
|
-
setEnvelope: v.object({
|
|
31
|
-
args: draft.mutators.setEnvelope.delta,
|
|
32
|
-
clientID: v.string(),
|
|
33
|
-
id: v.number(),
|
|
34
|
-
name: v.literal('setEnvelope'),
|
|
35
|
-
}),
|
|
36
|
-
setStatus: v.object({
|
|
37
|
-
args: draft.mutators.setStatus.delta,
|
|
38
|
-
clientID: v.string(),
|
|
39
|
-
id: v.number(),
|
|
40
|
-
name: v.literal('setStatus'),
|
|
41
|
-
}),
|
|
42
|
-
};
|
|
43
5
|
export const syncPushDraft = createEndpoint({
|
|
44
6
|
body: v.object({
|
|
45
7
|
clientGroupID: v.string(),
|
|
46
|
-
mutations: v.array(v.union(Object.values(
|
|
8
|
+
mutations: v.array(v.union(Object.values({
|
|
9
|
+
create: v.object({
|
|
10
|
+
args: draft.mutators.create.delta,
|
|
11
|
+
clientID: v.string(),
|
|
12
|
+
id: v.number(),
|
|
13
|
+
name: v.literal('create'),
|
|
14
|
+
}),
|
|
15
|
+
delete: v.object({
|
|
16
|
+
args: draft.mutators.delete.delta,
|
|
17
|
+
clientID: v.string(),
|
|
18
|
+
id: v.number(),
|
|
19
|
+
name: v.literal('delete'),
|
|
20
|
+
}),
|
|
21
|
+
setContent: v.object({
|
|
22
|
+
args: draft.mutators.setContent.delta,
|
|
23
|
+
clientID: v.string(),
|
|
24
|
+
id: v.number(),
|
|
25
|
+
name: v.literal('setContent'),
|
|
26
|
+
}),
|
|
27
|
+
setEmailAccountId: v.object({
|
|
28
|
+
args: draft.mutators.setEmailAccountId.delta,
|
|
29
|
+
clientID: v.string(),
|
|
30
|
+
id: v.number(),
|
|
31
|
+
name: v.literal('setEmailAccountId'),
|
|
32
|
+
}),
|
|
33
|
+
setEnvelope: v.object({
|
|
34
|
+
args: draft.mutators.setEnvelope.delta,
|
|
35
|
+
clientID: v.string(),
|
|
36
|
+
id: v.number(),
|
|
37
|
+
name: v.literal('setEnvelope'),
|
|
38
|
+
}),
|
|
39
|
+
setStatus: v.object({
|
|
40
|
+
args: draft.mutators.setStatus.delta,
|
|
41
|
+
clientID: v.string(),
|
|
42
|
+
id: v.number(),
|
|
43
|
+
name: v.literal('setStatus'),
|
|
44
|
+
}),
|
|
45
|
+
}))),
|
|
47
46
|
}),
|
|
48
47
|
method: 'POST',
|
|
49
48
|
path: draft.pushURL,
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
export declare const push: {
|
|
2
2
|
account: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
4
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
4
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
|
|
5
5
|
readonly args: import("valibot").ObjectSchema<{
|
|
6
|
-
readonly
|
|
7
|
-
|
|
8
|
-
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
-
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
-
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>;
|
|
11
|
-
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
|
-
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
|
-
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>;
|
|
14
|
-
}, undefined>;
|
|
6
|
+
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
15
8
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
16
9
|
}, undefined>;
|
|
17
10
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
18
11
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
19
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
20
|
-
}, undefined
|
|
12
|
+
readonly name: import("valibot").LiteralSchema<"add", undefined>;
|
|
13
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
21
14
|
readonly args: import("valibot").ObjectSchema<{
|
|
22
|
-
readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
-
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
24
15
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
25
16
|
}, undefined>;
|
|
26
17
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
27
18
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
28
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
29
|
-
}, undefined
|
|
19
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
20
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
30
21
|
readonly args: import("valibot").ObjectSchema<{
|
|
22
|
+
readonly connectionConfig: import("valibot").ObjectSchema<{
|
|
23
|
+
readonly imapStatus: import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>;
|
|
24
|
+
readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
|
+
readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
27
|
+
readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
|
+
readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
|
+
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>;
|
|
30
|
+
}, undefined>;
|
|
31
31
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
32
32
|
}, undefined>;
|
|
33
33
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
34
34
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
35
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
36
|
-
}, undefined
|
|
35
|
+
readonly name: import("valibot").LiteralSchema<"setConnectionConfig", undefined>;
|
|
36
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
37
37
|
readonly args: import("valibot").ObjectSchema<{
|
|
38
38
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
39
39
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
@@ -78,7 +78,7 @@ export declare const push: {
|
|
|
78
78
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
79
79
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
80
80
|
readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
|
|
81
|
-
}, undefined>], undefined>, undefined>;
|
|
81
|
+
}, undefined>)[], undefined>, undefined>;
|
|
82
82
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
83
83
|
readonly data: import("valibot").ObjectSchema<{
|
|
84
84
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -231,7 +231,22 @@ export declare const push: {
|
|
|
231
231
|
}, undefined>], undefined>>;
|
|
232
232
|
thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/thread", import("valibot").ObjectSchema<{
|
|
233
233
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
234
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
234
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<(import("valibot").ObjectSchema<{
|
|
235
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
236
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
237
|
+
}, undefined>;
|
|
238
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
239
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
240
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
241
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
242
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
243
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
244
|
+
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
245
|
+
}, undefined>;
|
|
246
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
247
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
248
|
+
readonly name: import("valibot").LiteralSchema<"setLabels", undefined>;
|
|
249
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
235
250
|
readonly args: import("valibot").ObjectSchema<{
|
|
236
251
|
readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
237
252
|
readonly seen: import("valibot").BooleanSchema<undefined>;
|
|
@@ -240,14 +255,15 @@ export declare const push: {
|
|
|
240
255
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
241
256
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
242
257
|
readonly name: import("valibot").LiteralSchema<"setMessageSeen", undefined>;
|
|
243
|
-
}, undefined
|
|
258
|
+
}, undefined> | import("valibot").ObjectSchema<{
|
|
244
259
|
readonly args: import("valibot").ObjectSchema<{
|
|
260
|
+
readonly specialUse: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>;
|
|
245
261
|
readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
246
262
|
}, undefined>;
|
|
247
263
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
248
264
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
249
|
-
readonly name: import("valibot").LiteralSchema<"
|
|
250
|
-
}, undefined>], undefined>, undefined>;
|
|
265
|
+
readonly name: import("valibot").LiteralSchema<"setSpecialUse", undefined>;
|
|
266
|
+
}, undefined>)[], undefined>, undefined>;
|
|
251
267
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
252
268
|
readonly data: import("valibot").ObjectSchema<{
|
|
253
269
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -273,7 +289,7 @@ export declare const push: {
|
|
|
273
289
|
}, undefined>], undefined>>;
|
|
274
290
|
user: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", import("valibot").ObjectSchema<{
|
|
275
291
|
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
276
|
-
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<
|
|
292
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<import("valibot").ObjectSchema<{
|
|
277
293
|
readonly args: import("valibot").ObjectSchema<{
|
|
278
294
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
|
|
279
295
|
readonly settings: Omit<import("valibot").ObjectSchema<{
|
|
@@ -311,7 +327,7 @@ export declare const push: {
|
|
|
311
327
|
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
312
328
|
readonly id: import("valibot").NumberSchema<undefined>;
|
|
313
329
|
readonly name: import("valibot").LiteralSchema<"setSettings", undefined>;
|
|
314
|
-
}, undefined>], undefined>, undefined>;
|
|
330
|
+
}, undefined>[], undefined>, undefined>;
|
|
315
331
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
316
332
|
readonly data: import("valibot").ObjectSchema<{
|
|
317
333
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", 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"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/thread", v.ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
|
|
5
|
+
readonly args: v.ObjectSchema<{
|
|
6
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
9
|
+
readonly id: v.NumberSchema<undefined>;
|
|
10
|
+
readonly name: v.LiteralSchema<"delete", undefined>;
|
|
11
|
+
}, undefined> | v.ObjectSchema<{
|
|
12
|
+
readonly args: v.ObjectSchema<{
|
|
13
|
+
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
14
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
17
|
+
readonly id: v.NumberSchema<undefined>;
|
|
18
|
+
readonly name: v.LiteralSchema<"setLabels", undefined>;
|
|
19
|
+
}, undefined> | v.ObjectSchema<{
|
|
5
20
|
readonly args: v.ObjectSchema<{
|
|
6
21
|
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
7
22
|
readonly seen: v.BooleanSchema<undefined>;
|
|
@@ -10,14 +25,15 @@ export declare const syncPushThread: import("../../../../..").EndpointConfig<"/v
|
|
|
10
25
|
readonly clientID: v.StringSchema<undefined>;
|
|
11
26
|
readonly id: v.NumberSchema<undefined>;
|
|
12
27
|
readonly name: v.LiteralSchema<"setMessageSeen", undefined>;
|
|
13
|
-
}, undefined
|
|
28
|
+
}, undefined> | v.ObjectSchema<{
|
|
14
29
|
readonly args: v.ObjectSchema<{
|
|
30
|
+
readonly specialUse: v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>;
|
|
15
31
|
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
16
32
|
}, undefined>;
|
|
17
33
|
readonly clientID: v.StringSchema<undefined>;
|
|
18
34
|
readonly id: v.NumberSchema<undefined>;
|
|
19
|
-
readonly name: v.LiteralSchema<"
|
|
20
|
-
}, undefined>], undefined>, undefined>;
|
|
35
|
+
readonly name: v.LiteralSchema<"setSpecialUse", undefined>;
|
|
36
|
+
}, undefined>)[], undefined>, undefined>;
|
|
21
37
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
22
38
|
readonly data: v.ObjectSchema<{
|
|
23
39
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0CzB,CAAA"}
|
|
@@ -5,20 +5,32 @@ import { errors } from '../../../../../sdk/validation/errors';
|
|
|
5
5
|
export const syncPushThread = createEndpoint({
|
|
6
6
|
body: v.object({
|
|
7
7
|
clientGroupID: v.string(),
|
|
8
|
-
mutations: v.array(v.union(
|
|
9
|
-
v.object({
|
|
8
|
+
mutations: v.array(v.union(Object.values({
|
|
9
|
+
delete: v.object({
|
|
10
|
+
args: thread.mutators.delete.delta,
|
|
11
|
+
clientID: v.string(),
|
|
12
|
+
id: v.number(),
|
|
13
|
+
name: v.literal('delete'),
|
|
14
|
+
}),
|
|
15
|
+
setLabels: v.object({
|
|
16
|
+
args: thread.mutators.setLabels.delta,
|
|
17
|
+
clientID: v.string(),
|
|
18
|
+
id: v.number(),
|
|
19
|
+
name: v.literal('setLabels'),
|
|
20
|
+
}),
|
|
21
|
+
setMessageSeen: v.object({
|
|
10
22
|
args: thread.mutators.setMessageSeen.delta,
|
|
11
23
|
clientID: v.string(),
|
|
12
24
|
id: v.number(),
|
|
13
25
|
name: v.literal('setMessageSeen'),
|
|
14
26
|
}),
|
|
15
|
-
v.object({
|
|
16
|
-
args: thread.mutators.
|
|
27
|
+
setSpecialUse: v.object({
|
|
28
|
+
args: thread.mutators.setSpecialUse.delta,
|
|
17
29
|
clientID: v.string(),
|
|
18
30
|
id: v.number(),
|
|
19
|
-
name: v.literal('
|
|
31
|
+
name: v.literal('setSpecialUse'),
|
|
20
32
|
}),
|
|
21
|
-
|
|
33
|
+
}))),
|
|
22
34
|
}),
|
|
23
35
|
method: 'POST',
|
|
24
36
|
path: thread.pushURL,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/user", v.ObjectSchema<{
|
|
3
3
|
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
-
readonly mutations: v.ArraySchema<v.UnionSchema<
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<v.ObjectSchema<{
|
|
5
5
|
readonly args: v.ObjectSchema<{
|
|
6
6
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
7
7
|
readonly settings: Omit<v.ObjectSchema<{
|
|
@@ -39,7 +39,7 @@ export declare const syncPushUser: import("../../../../..").EndpointConfig<"/v1/
|
|
|
39
39
|
readonly clientID: v.StringSchema<undefined>;
|
|
40
40
|
readonly id: v.NumberSchema<undefined>;
|
|
41
41
|
readonly name: v.LiteralSchema<"setSettings", undefined>;
|
|
42
|
-
}, undefined>], undefined>, undefined>;
|
|
42
|
+
}, undefined>[], undefined>, undefined>;
|
|
43
43
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
44
44
|
readonly data: v.ObjectSchema<{
|
|
45
45
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
|
|
@@ -5,14 +5,14 @@ import { errors } from '../../../../../sdk/validation/errors';
|
|
|
5
5
|
export const syncPushUser = createEndpoint({
|
|
6
6
|
body: v.object({
|
|
7
7
|
clientGroupID: v.string(),
|
|
8
|
-
mutations: v.array(v.union(
|
|
9
|
-
v.object({
|
|
8
|
+
mutations: v.array(v.union(Object.values({
|
|
9
|
+
setSettings: v.object({
|
|
10
10
|
args: user.mutators.setSettings.delta,
|
|
11
11
|
clientID: v.string(),
|
|
12
12
|
id: v.number(),
|
|
13
13
|
name: v.literal('setSettings'),
|
|
14
14
|
}),
|
|
15
|
-
|
|
15
|
+
}))),
|
|
16
16
|
}),
|
|
17
17
|
method: 'POST',
|
|
18
18
|
path: user.pushURL,
|