@marcoappio/marco-config 2.0.103 → 2.0.105
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 +30 -0
- package/dist/clients/account.d.ts.map +1 -0
- package/dist/clients/account.js +34 -0
- package/dist/clients/contact.d.ts +15 -0
- package/dist/clients/contact.d.ts.map +1 -0
- package/dist/clients/contact.js +15 -0
- package/dist/clients/index.d.ts +69 -0
- package/dist/clients/index.d.ts.map +1 -0
- package/dist/clients/index.js +8 -0
- package/dist/clients/thread.d.ts +27 -0
- package/dist/clients/thread.d.ts.map +1 -0
- package/dist/clients/thread.js +27 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/{sdk/validation/schemas/schemas.d.ts → schemas.d.ts} +5 -3
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +15 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +2 -2
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +2 -2
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts +8 -0
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/{healthcheck.js → healthcheck/index.js} +2 -2
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +2 -1
- package/dist/sdk/index.d.ts +0 -12
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/index.d.ts +0 -12
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/sdk/validation/index.js +0 -2
- package/dist/types/MarcoClient.d.ts +12 -0
- package/dist/types/MarcoClient.d.ts.map +1 -0
- package/dist/types/WS.d.ts +8 -3
- package/dist/types/WS.d.ts.map +1 -1
- package/dist/types/WS.js +1 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -2
- package/dist/MarcoClients.d.ts +0 -100
- package/dist/MarcoClients.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/healthcheck.d.ts +0 -8
- package/dist/sdk/endpoints/public/healthcheck.d.ts.map +0 -1
- package/dist/sdk/validation/schemas/index.d.ts +0 -2
- package/dist/sdk/validation/schemas/index.d.ts.map +0 -1
- package/dist/sdk/validation/schemas/index.js +0 -1
- package/dist/sdk/validation/schemas/schemas.d.ts.map +0 -1
- package/dist/sdk/validation/schemas/schemas.js +0 -13
- package/dist/types/EmailContactType.d.ts +0 -8
- package/dist/types/EmailContactType.d.ts.map +0 -1
- package/dist/types/EmailContactType.js +0 -8
- /package/dist/{MarcoClients.js → types/MarcoClient.js} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const account: {
|
|
3
|
+
model: v.ObjectSchema<{
|
|
4
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
5
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
|
+
readonly imapPasswordConfig: v.NullableSchema<v.ObjectSchema<{
|
|
7
|
+
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
|
+
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
|
+
readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
10
|
+
readonly status: v.UnionSchema<[v.LiteralSchema<"awaiting-connection", undefined>, v.LiteralSchema<"connected", undefined>, v.LiteralSchema<"disconnected", undefined>], undefined>;
|
|
11
|
+
}, undefined>, never>;
|
|
12
|
+
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
13
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
14
|
+
readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
15
|
+
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
16
|
+
}, undefined>, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
mutators: {
|
|
19
|
+
delete: {
|
|
20
|
+
delta: v.ObjectSchema<{
|
|
21
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
name: "account";
|
|
26
|
+
pullURL: "/v1/pv/sync/pull/account";
|
|
27
|
+
pushURL: "/v1/pv/sync/push/account";
|
|
28
|
+
schemaVersion: "v1";
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCG,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../schemas';
|
|
3
|
+
export const account = {
|
|
4
|
+
model: v.object({
|
|
5
|
+
emailAddress: marcoSchemas.string.email(),
|
|
6
|
+
id: marcoSchemas.string.required(),
|
|
7
|
+
imapPasswordConfig: v.nullable(v.object({
|
|
8
|
+
host: marcoSchemas.string.required(),
|
|
9
|
+
password: marcoSchemas.string.required(),
|
|
10
|
+
port: marcoSchemas.number.minMax(1, 65535),
|
|
11
|
+
status: v.union([
|
|
12
|
+
v.literal('awaiting-connection'),
|
|
13
|
+
v.literal('connected'),
|
|
14
|
+
v.literal('disconnected'),
|
|
15
|
+
]),
|
|
16
|
+
})),
|
|
17
|
+
labels: v.array(v.object({
|
|
18
|
+
id: marcoSchemas.string.required(),
|
|
19
|
+
name: marcoSchemas.string.required(),
|
|
20
|
+
path: marcoSchemas.string.required(),
|
|
21
|
+
})),
|
|
22
|
+
}),
|
|
23
|
+
mutators: {
|
|
24
|
+
delete: {
|
|
25
|
+
delta: v.object({
|
|
26
|
+
id: marcoSchemas.string.required(),
|
|
27
|
+
}),
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
name: 'account',
|
|
31
|
+
pullURL: '/v1/pv/sync/pull/account',
|
|
32
|
+
pushURL: '/v1/pv/sync/push/account',
|
|
33
|
+
schemaVersion: 'v1',
|
|
34
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const contact: {
|
|
3
|
+
model: v.ObjectSchema<{
|
|
4
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
5
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, never>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
mutators: {};
|
|
10
|
+
name: "contact";
|
|
11
|
+
pullURL: "/v1/pv/sync/pull/contact";
|
|
12
|
+
pushURL: null;
|
|
13
|
+
schemaVersion: "v1";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=contact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/clients/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYG,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../schemas';
|
|
3
|
+
export const contact = {
|
|
4
|
+
model: v.object({
|
|
5
|
+
emailAccountId: marcoSchemas.string.required(),
|
|
6
|
+
emailAddress: marcoSchemas.string.email(),
|
|
7
|
+
id: marcoSchemas.string.required(),
|
|
8
|
+
name: marcoSchemas.string.nullable(),
|
|
9
|
+
}),
|
|
10
|
+
mutators: {},
|
|
11
|
+
name: 'contact',
|
|
12
|
+
pullURL: '/v1/pv/sync/pull/contact',
|
|
13
|
+
pushURL: null,
|
|
14
|
+
schemaVersion: 'v1',
|
|
15
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const marcoClients: {
|
|
2
|
+
account: {
|
|
3
|
+
model: import("valibot").ObjectSchema<{
|
|
4
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
5
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
|
+
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
7
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
|
+
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>;
|
|
10
|
+
readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"awaiting-connection", undefined>, import("valibot").LiteralSchema<"connected", undefined>, import("valibot").LiteralSchema<"disconnected", undefined>], undefined>;
|
|
11
|
+
}, undefined>, never>;
|
|
12
|
+
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
13
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
14
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
15
|
+
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
16
|
+
}, undefined>, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
mutators: {
|
|
19
|
+
delete: {
|
|
20
|
+
delta: import("valibot").ObjectSchema<{
|
|
21
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
name: "account";
|
|
26
|
+
pullURL: "/v1/pv/sync/pull/account";
|
|
27
|
+
pushURL: "/v1/pv/sync/push/account";
|
|
28
|
+
schemaVersion: "v1";
|
|
29
|
+
};
|
|
30
|
+
contact: {
|
|
31
|
+
model: import("valibot").ObjectSchema<{
|
|
32
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
33
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
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").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, never>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
mutators: {};
|
|
38
|
+
name: "contact";
|
|
39
|
+
pullURL: "/v1/pv/sync/pull/contact";
|
|
40
|
+
pushURL: null;
|
|
41
|
+
schemaVersion: "v1";
|
|
42
|
+
};
|
|
43
|
+
thread: {
|
|
44
|
+
model: import("valibot").ObjectSchema<{
|
|
45
|
+
readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
46
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
47
|
+
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
48
|
+
readonly bccIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
49
|
+
readonly ccIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
50
|
+
readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
51
|
+
readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
52
|
+
readonly fromId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
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 isFlagged: import("valibot").BooleanSchema<undefined>;
|
|
55
|
+
readonly isSeen: import("valibot").BooleanSchema<undefined>;
|
|
56
|
+
readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
57
|
+
readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
58
|
+
readonly replyToIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
59
|
+
readonly toIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
60
|
+
}, undefined>, undefined>;
|
|
61
|
+
}, undefined>;
|
|
62
|
+
mutators: {};
|
|
63
|
+
name: "thread";
|
|
64
|
+
pullURL: "/v1/pv/sync/pull/thread";
|
|
65
|
+
pushURL: "/v1/pv/sync/push/thread";
|
|
66
|
+
schemaVersion: "v1";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const thread: {
|
|
3
|
+
model: v.ObjectSchema<{
|
|
4
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
5
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
7
|
+
readonly bccIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
8
|
+
readonly ccIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
9
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
+
readonly envelopeSubject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
11
|
+
readonly fromId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
12
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
13
|
+
readonly isFlagged: v.BooleanSchema<undefined>;
|
|
14
|
+
readonly isSeen: v.BooleanSchema<undefined>;
|
|
15
|
+
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
16
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
17
|
+
readonly replyToIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
18
|
+
readonly toIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
mutators: {};
|
|
22
|
+
name: "thread";
|
|
23
|
+
pullURL: "/v1/pv/sync/pull/thread";
|
|
24
|
+
pushURL: "/v1/pv/sync/push/thread";
|
|
25
|
+
schemaVersion: "v1";
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CA0BI,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../schemas';
|
|
3
|
+
export const thread = {
|
|
4
|
+
model: v.object({
|
|
5
|
+
emailAccountId: marcoSchemas.string.required(),
|
|
6
|
+
id: marcoSchemas.string.required(),
|
|
7
|
+
messages: v.array(v.object({
|
|
8
|
+
bccIds: v.array(marcoSchemas.string.required()),
|
|
9
|
+
ccIds: v.array(marcoSchemas.string.required()),
|
|
10
|
+
envelopeDate: marcoSchemas.number.positiveInteger(),
|
|
11
|
+
envelopeSubject: marcoSchemas.string.required(),
|
|
12
|
+
fromId: marcoSchemas.string.required(),
|
|
13
|
+
id: marcoSchemas.string.required(),
|
|
14
|
+
isFlagged: v.boolean(),
|
|
15
|
+
isSeen: v.boolean(),
|
|
16
|
+
labelIds: v.array(marcoSchemas.string.required()),
|
|
17
|
+
previewText: marcoSchemas.string.required(),
|
|
18
|
+
replyToIds: v.array(marcoSchemas.string.required()),
|
|
19
|
+
toIds: v.array(marcoSchemas.string.required()),
|
|
20
|
+
})),
|
|
21
|
+
}),
|
|
22
|
+
mutators: {},
|
|
23
|
+
name: 'thread',
|
|
24
|
+
pullURL: '/v1/pv/sync/pull/thread',
|
|
25
|
+
pushURL: '/v1/pv/sync/push/thread',
|
|
26
|
+
schemaVersion: 'v1',
|
|
27
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { marcoClients } from './clients';
|
|
2
2
|
export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicConfig';
|
|
3
3
|
export { marcoSDK } from './sdk';
|
|
4
|
-
export { MarcoWSEvent,
|
|
4
|
+
export { MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, EndpointError, EndpointResponse } from './types';
|
|
5
|
+
export { marcoSchemas } from './schemas';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const marcoSchemas: {
|
|
2
2
|
number: {
|
|
3
3
|
minMax: (min: number, max: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
4
|
+
positiveInteger: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
4
5
|
};
|
|
5
6
|
string: {
|
|
6
7
|
email: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
8
|
enum: (values: Record<string, string>) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EnumSchema<Record<string, string>, undefined>]>, undefined>;
|
|
8
9
|
matches: (regex: RegExp) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, undefined>]>, undefined>;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
nullable: () => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, never>;
|
|
11
|
+
optional: () => import("valibot").UndefinedableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, never>;
|
|
12
|
+
required: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;sBAEP,MAAM,OAAO,MAAM;;;;;uBAQlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM;;;;;CAS1B,CAAA"}
|
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { email, enum as enumValidator, integer, maxLength, maxValue, minValue, nonEmpty, nonOptional, nullable, number, pipe, string, undefinedable, regex as v_regex } from 'valibot';
|
|
2
|
+
export const marcoSchemas = {
|
|
3
|
+
number: {
|
|
4
|
+
minMax: (min, max) => nonOptional(pipe(number(), minValue(min), maxValue(max))),
|
|
5
|
+
positiveInteger: () => nonOptional(pipe(number(), integer(), minValue(0))),
|
|
6
|
+
},
|
|
7
|
+
string: {
|
|
8
|
+
email: () => nonOptional(pipe(string(), email(), maxLength(255))),
|
|
9
|
+
enum: (values) => nonOptional(pipe(string(), enumValidator(values))),
|
|
10
|
+
matches: (regex) => nonOptional(pipe(string(), v_regex(regex))),
|
|
11
|
+
nullable: () => nullable(pipe(string(), maxLength(255))),
|
|
12
|
+
optional: () => undefinedable(pipe(string(), maxLength(255))),
|
|
13
|
+
required: () => nonOptional(pipe(string(), nonEmpty(), maxLength(255))),
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../schemas';
|
|
2
3
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { validation } from '../../../../sdk/validation';
|
|
4
4
|
import { errorManifest } from '../../../../sdk/validation/errors';
|
|
5
5
|
import { HTTPMethod } from '../../../../types/Endpoint';
|
|
6
6
|
export const sendAuthCode = createEndpoint({
|
|
7
7
|
body: v.object({
|
|
8
|
-
email:
|
|
8
|
+
email: marcoSchemas.string.email(),
|
|
9
9
|
}),
|
|
10
10
|
method: HTTPMethod.POST,
|
|
11
11
|
path: '/v1/pb/auth/send-code',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../schemas';
|
|
2
3
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { validation } from '../../../../sdk/validation';
|
|
4
4
|
import { errorManifest } from '../../../../sdk/validation/errors';
|
|
5
5
|
import { HTTPMethod } from '../../../../types/Endpoint';
|
|
6
6
|
export const verifyAuthCode = createEndpoint({
|
|
7
7
|
body: v.object({
|
|
8
8
|
code: v.string(),
|
|
9
|
-
email:
|
|
9
|
+
email: marcoSchemas.string.email(),
|
|
10
10
|
}),
|
|
11
11
|
method: HTTPMethod.POST,
|
|
12
12
|
path: '/v1/pb/auth/verify-code',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const healthcheck: import("../../../../types").EndpointConfig<"/v1/pb/healthcheck", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
|
|
3
|
+
readonly data: v.ObjectSchema<{
|
|
4
|
+
readonly status: v.LiteralSchema<"ok", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
7
|
+
}, undefined>>;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/healthcheck/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,WAAW;;;;;cAOtB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
import { createEndpoint } from '
|
|
3
|
-
import { HTTPMethod } from '
|
|
2
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
+
import { HTTPMethod } from '../../../../types';
|
|
4
4
|
export const healthcheck = createEndpoint({
|
|
5
5
|
method: HTTPMethod.GET,
|
|
6
6
|
path: '/v1/pb/healthcheck',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -95,18 +95,6 @@ export declare const marcoSDK: {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
validation: {
|
|
98
|
-
schemas: {
|
|
99
|
-
number: {
|
|
100
|
-
minMax: (min: number, max: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
101
|
-
};
|
|
102
|
-
string: {
|
|
103
|
-
email: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
104
|
-
enum: (values: Record<string, string>) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EnumSchema<Record<string, string>, undefined>]>, undefined>;
|
|
105
|
-
matches: (regex: RegExp) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, undefined>]>, undefined>;
|
|
106
|
-
optional: () => import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, never>;
|
|
107
|
-
required: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>]>, undefined>;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
98
|
utils: {
|
|
111
99
|
flattenRequirements: <T extends Record<string, any>>(schema: import("valibot").ObjectSchema<T, any>) => { [K in keyof T]: {
|
|
112
100
|
maxLength?: number;
|
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"}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
export declare const validation: {
|
|
2
|
-
schemas: {
|
|
3
|
-
number: {
|
|
4
|
-
minMax: (min: number, max: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
5
|
-
};
|
|
6
|
-
string: {
|
|
7
|
-
email: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
|
-
enum: (values: Record<string, string>) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EnumSchema<Record<string, string>, undefined>]>, undefined>;
|
|
9
|
-
matches: (regex: RegExp) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, undefined>]>, undefined>;
|
|
10
|
-
optional: () => import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, never>;
|
|
11
|
-
required: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>]>, undefined>;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
2
|
utils: {
|
|
15
3
|
flattenRequirements: <T extends Record<string, any>>(schema: import("valibot").ObjectSchema<T, any>) => { [K in keyof T]: {
|
|
16
4
|
maxLength?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;CAEtB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export type MarcoClient = {
|
|
3
|
+
model: v.ObjectSchema<any, any>;
|
|
4
|
+
mutators: Record<string, {
|
|
5
|
+
delta: v.ObjectSchema<any, any>;
|
|
6
|
+
}>;
|
|
7
|
+
name: string;
|
|
8
|
+
pullURL: string;
|
|
9
|
+
pushURL: string | null;
|
|
10
|
+
schemaVersion: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=MarcoClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarcoClient.d.ts","sourceRoot":"","sources":["../../src/types/MarcoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAC/B,QAAQ,EAAE,MAAM,CACd,MAAM,EACN;QACE,KAAK,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;KAChC,CACF,CAAA;IACD,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA"}
|
package/dist/types/WS.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { marcoClients } from '../clients';
|
|
2
|
+
export type MarcoWSSyncPoke = {
|
|
3
|
+
data: {
|
|
4
|
+
clientName: keyof typeof marcoClients;
|
|
5
|
+
};
|
|
6
|
+
event: 'SYNC_POKE';
|
|
7
|
+
};
|
|
8
|
+
export type MarcoWSEvent = MarcoWSSyncPoke;
|
|
4
9
|
//# sourceMappingURL=WS.d.ts.map
|
package/dist/types/WS.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WS.d.ts","sourceRoot":"","sources":["../../src/types/WS.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"WS.d.ts","sourceRoot":"","sources":["../../src/types/WS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,OAAO,YAAY,CAAA;KACtC,CAAA;IACD,KAAK,EAAE,WAAW,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG,eAAe,CAAA"}
|
package/dist/types/WS.js
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA"}
|
package/dist/types/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcoappio/marco-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.105",
|
|
4
4
|
"author": "team@marcoapp.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "git@github.com:marcoappio/marco-config.git",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"eslint-plugin-sort-destructure-keys": "1.4.0",
|
|
31
31
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
32
32
|
"eslint-plugin-typescript-sort-keys": "2.3.0",
|
|
33
|
-
"type-fest": "4.30.0",
|
|
34
33
|
"valibot": "0.42.1"
|
|
35
34
|
},
|
|
36
35
|
"devDependencies": {
|
package/dist/MarcoClients.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { ReadonlyDeep } from 'type-fest';
|
|
2
|
-
export declare namespace MarcoClients {
|
|
3
|
-
namespace Account {
|
|
4
|
-
type Name = 'account';
|
|
5
|
-
type SchemaVersion = 'v1';
|
|
6
|
-
type Model = ReadonlyDeep<{
|
|
7
|
-
emailAddress: string;
|
|
8
|
-
id: string;
|
|
9
|
-
imapPasswordConfig: {
|
|
10
|
-
host: string;
|
|
11
|
-
password: string;
|
|
12
|
-
port: number;
|
|
13
|
-
status: 'awaiting-connection' | 'connected' | 'disconnected';
|
|
14
|
-
} | null;
|
|
15
|
-
}>;
|
|
16
|
-
type Mutators = {
|
|
17
|
-
delete: {
|
|
18
|
-
delta: Pick<Model, 'id'>;
|
|
19
|
-
};
|
|
20
|
-
setImapPasswordConfig: {
|
|
21
|
-
delta: Pick<Model, 'id'> & {
|
|
22
|
-
imapPasswordConfig: Omit<Model['imapPasswordConfig'], 'status'>;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
type PullURL = `/v1/pv/sync/pull/${Name}`;
|
|
27
|
-
type PushURL = `/v1/pv/sync/push/${Name}`;
|
|
28
|
-
}
|
|
29
|
-
namespace Contact {
|
|
30
|
-
type Name = 'contact';
|
|
31
|
-
type SchemaVersion = 'v1';
|
|
32
|
-
type Model = ReadonlyDeep<{
|
|
33
|
-
emailAccountId: string;
|
|
34
|
-
emailAddress: string;
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
}>;
|
|
38
|
-
type Mutators = Record<string, never>;
|
|
39
|
-
type PullURL = `/v1/pv/sync/pull/${Name}`;
|
|
40
|
-
type PushURL = undefined;
|
|
41
|
-
}
|
|
42
|
-
namespace Label {
|
|
43
|
-
type Name = 'label';
|
|
44
|
-
type SchemaVersion = 'v1';
|
|
45
|
-
type Model = ReadonlyDeep<{
|
|
46
|
-
emailAccountId: string;
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
path: string;
|
|
50
|
-
}>;
|
|
51
|
-
type Mutators = Record<string, never>;
|
|
52
|
-
type PullURL = `/v1/pv/sync/pull/${Name}`;
|
|
53
|
-
type PushURL = undefined;
|
|
54
|
-
}
|
|
55
|
-
namespace Message {
|
|
56
|
-
type Name = 'message';
|
|
57
|
-
type SchemaVersion = 'v1';
|
|
58
|
-
type Model = ReadonlyDeep<{
|
|
59
|
-
bccIds: string[];
|
|
60
|
-
ccIds: string[];
|
|
61
|
-
emailThreadId: string;
|
|
62
|
-
envelopeDate: string;
|
|
63
|
-
envelopeSubject: string;
|
|
64
|
-
fromId: string;
|
|
65
|
-
id: string;
|
|
66
|
-
isFlagged: boolean;
|
|
67
|
-
isSeen: boolean;
|
|
68
|
-
labelIds: string[];
|
|
69
|
-
previewText: string;
|
|
70
|
-
replyToIds: string[];
|
|
71
|
-
toIds: string[];
|
|
72
|
-
}>;
|
|
73
|
-
type Mutators = {
|
|
74
|
-
delete: {
|
|
75
|
-
delta: Pick<Model, 'id'>;
|
|
76
|
-
};
|
|
77
|
-
setSeen: {
|
|
78
|
-
delta: Pick<Model, 'id' | 'isSeen'>;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
type PullURL = `/v1/pv/sync/pull/${Name}`;
|
|
82
|
-
type PushURL = `/v1/pv/sync/push/${Name}`;
|
|
83
|
-
}
|
|
84
|
-
namespace Thread {
|
|
85
|
-
type Name = 'thread';
|
|
86
|
-
type SchemaVersion = 'v1';
|
|
87
|
-
type Model = ReadonlyDeep<{
|
|
88
|
-
emailAccountId: string;
|
|
89
|
-
id: string;
|
|
90
|
-
}>;
|
|
91
|
-
type Mutators = {
|
|
92
|
-
delete: {
|
|
93
|
-
delta: Pick<Model, 'id'>;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
type PullURL = `/v1/pv/sync/pull/${Name}`;
|
|
97
|
-
type PushURL = `/v1/pv/sync/push/${Name}`;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=MarcoClients.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MarcoClients.d.ts","sourceRoot":"","sources":["../src/MarcoClients.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const healthcheck: import("../../../types").EndpointConfig<"/v1/pb/healthcheck", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
|
|
3
|
-
readonly data: v.ObjectSchema<{
|
|
4
|
-
readonly status: v.LiteralSchema<"ok", undefined>;
|
|
5
|
-
}, undefined>;
|
|
6
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
7
|
-
}, undefined>>;
|
|
8
|
-
//# sourceMappingURL=healthcheck.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"healthcheck.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/healthcheck.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,WAAW;;;;;cAOtB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/validation/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { schemas } from './schemas';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../src/sdk/validation/schemas/schemas.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;sBAEF,MAAM,OAAO,MAAM;;;;uBAMlB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEpB,MAAM;;;;CAO1B,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { email, enum as enumValidator, maxLength, maxValue, minValue, nonEmpty, nonOptional, number, pipe, string, undefinedable, regex as v_regex } from 'valibot';
|
|
2
|
-
export const schemas = {
|
|
3
|
-
number: {
|
|
4
|
-
minMax: (min, max) => nonOptional(pipe(number(), minValue(min), maxValue(max))),
|
|
5
|
-
},
|
|
6
|
-
string: {
|
|
7
|
-
email: () => nonOptional(pipe(string(), email(), maxLength(255))),
|
|
8
|
-
enum: (values) => nonOptional(pipe(string(), enumValidator(values))),
|
|
9
|
-
matches: (regex) => nonOptional(pipe(string(), v_regex(regex))),
|
|
10
|
-
optional: () => undefinedable(string()),
|
|
11
|
-
required: () => nonOptional(pipe(string(), nonEmpty())),
|
|
12
|
-
},
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmailContactType.d.ts","sourceRoot":"","sources":["../../src/types/EmailContactType.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,EAAE,OAAO;CACV"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var EmailContactType;
|
|
2
|
-
(function (EmailContactType) {
|
|
3
|
-
EmailContactType["BCC"] = "bcc";
|
|
4
|
-
EmailContactType["CC"] = "cc";
|
|
5
|
-
EmailContactType["FROM"] = "from";
|
|
6
|
-
EmailContactType["REPLY_TO"] = "reply_to";
|
|
7
|
-
EmailContactType["TO"] = "to";
|
|
8
|
-
})(EmailContactType || (EmailContactType = {}));
|
|
File without changes
|