@marcoappio/marco-config 2.0.429 → 2.0.431
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/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/messages.d.ts +1 -0
- package/dist/constants/messages.d.ts.map +1 -1
- package/dist/constants/messages.js +1 -0
- package/dist/schemas/emailAccount.d.ts +2 -0
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +2 -1
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.d.ts +0 -38
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -17
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/index.js +0 -2
- package/dist/sdk/endpoints/private/index.d.ts +0 -38
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.js +0 -2
- package/dist/sdk/index.d.ts +0 -38
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +0 -19
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/constants/messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;CAIpB,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
export declare const socketTypeSchema: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
2
3
|
export declare const emailAccount: {
|
|
3
4
|
connectionConfigImapRaw: () => v.ObjectSchema<{
|
|
4
5
|
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -18,5 +19,6 @@ export declare const emailAccount: {
|
|
|
18
19
|
readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
20
|
}, undefined>;
|
|
20
21
|
imapConnectionStatus: () => v.PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
|
|
22
|
+
socketTypeSchema: () => v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
21
23
|
};
|
|
22
24
|
//# sourceMappingURL=emailAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"emailAccount.d.ts","sourceRoot":"","sources":["../../src/schemas/emailAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,gBAAgB,uGAAqD,CAAA;AAElF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAsBxB,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { IMAP_CONNECTION_STATUSES } from '../types';
|
|
|
3
3
|
import { number } from './number';
|
|
4
4
|
import { oauth } from './oauth';
|
|
5
5
|
import { string } from './string';
|
|
6
|
-
const socketTypeSchema = v.union([v.literal('STARTTLS'), v.literal('SSL')]);
|
|
6
|
+
export const socketTypeSchema = v.union([v.literal('STARTTLS'), v.literal('SSL')]);
|
|
7
7
|
export const emailAccount = {
|
|
8
8
|
connectionConfigImapRaw: () => v.object({
|
|
9
9
|
imapHost: string.required(),
|
|
@@ -23,4 +23,5 @@ export const emailAccount = {
|
|
|
23
23
|
user: string.required(),
|
|
24
24
|
}),
|
|
25
25
|
imapConnectionStatus: () => v.picklist(IMAP_CONNECTION_STATUSES),
|
|
26
|
+
socketTypeSchema: () => socketTypeSchema,
|
|
26
27
|
};
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare const marcoSchemas: {
|
|
|
42
42
|
readonly user: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
43
|
}, undefined>;
|
|
44
44
|
imapConnectionStatus: () => import("valibot").PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
|
|
45
|
+
socketTypeSchema: () => import("valibot").UnionSchema<[import("valibot").LiteralSchema<"STARTTLS", undefined>, import("valibot").LiteralSchema<"SSL", undefined>], undefined>;
|
|
45
46
|
};
|
|
46
47
|
labels: {
|
|
47
48
|
specialUse: () => import("valibot").PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
|
|
@@ -2,44 +2,6 @@ import type { GenericSchema } from 'valibot';
|
|
|
2
2
|
import type { EndpointConfig } from '../../types';
|
|
3
3
|
export declare const endpoints: {
|
|
4
4
|
private: {
|
|
5
|
-
emailMessage: {
|
|
6
|
-
getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
8
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
-
}, undefined>;
|
|
10
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
14
|
-
}, undefined>;
|
|
15
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
19
|
-
}, undefined>;
|
|
20
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
21
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
|
-
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
23
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
24
|
-
}, undefined>], undefined>>;
|
|
25
|
-
getHTML: EndpointConfig<"/v1/pv/message/:messageId/html", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
26
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
28
|
-
}, undefined>;
|
|
29
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
30
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
31
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
32
|
-
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
33
|
-
}, undefined>;
|
|
34
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
35
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
36
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
37
|
-
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
39
|
-
}, undefined>;
|
|
40
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
41
|
-
}, undefined>], undefined>>;
|
|
42
|
-
};
|
|
43
5
|
user: {
|
|
44
6
|
deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
45
7
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -18,22 +18,5 @@ export declare const emailMessage: {
|
|
|
18
18
|
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
19
19
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
20
20
|
}, undefined>], undefined>>;
|
|
21
|
-
getHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
22
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
23
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
26
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
28
|
-
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
29
|
-
}, undefined>;
|
|
30
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
31
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
33
|
-
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
34
|
-
readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
}, undefined>;
|
|
36
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
37
|
-
}, undefined>], undefined>>;
|
|
38
21
|
};
|
|
39
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
|
|
@@ -1,42 +1,4 @@
|
|
|
1
1
|
export declare const privateGroup: {
|
|
2
|
-
emailMessage: {
|
|
3
|
-
getAttachment: import("../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
4
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
5
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
6
|
-
}, undefined>;
|
|
7
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
8
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
10
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
11
|
-
}, undefined>;
|
|
12
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
13
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
15
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
16
|
-
}, undefined>;
|
|
17
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
18
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
19
|
-
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
20
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
21
|
-
}, undefined>], undefined>>;
|
|
22
|
-
getHTML: import("../../..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
23
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
24
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
25
|
-
}, undefined>;
|
|
26
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
27
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
29
|
-
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
30
|
-
}, undefined>;
|
|
31
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
32
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
33
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
34
|
-
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
35
|
-
readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
-
}, undefined>;
|
|
37
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
38
|
-
}, undefined>], undefined>>;
|
|
39
|
-
};
|
|
40
2
|
user: {
|
|
41
3
|
deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
42
4
|
readonly data: import("valibot").ObjectSchema<{
|
|
@@ -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"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,44 +1,6 @@
|
|
|
1
1
|
export declare const marcoSDK: {
|
|
2
2
|
endpoints: {
|
|
3
3
|
private: {
|
|
4
|
-
emailMessage: {
|
|
5
|
-
getAttachment: import("..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
7
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
8
|
-
}, undefined>;
|
|
9
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
10
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
12
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
13
|
-
}, undefined>;
|
|
14
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
15
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
-
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
18
|
-
}, undefined>;
|
|
19
|
-
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
20
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
-
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
22
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
23
|
-
}, undefined>], undefined>>;
|
|
24
|
-
getHTML: import("..").EndpointConfig<"/v1/pv/message/:messageId/html", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
25
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
26
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
27
|
-
}, undefined>;
|
|
28
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
29
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
30
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
31
|
-
readonly code: import("valibot").LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
34
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
35
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
36
|
-
readonly content: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").StringSchema<undefined>, undefined>;
|
|
37
|
-
readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
-
}, undefined>;
|
|
39
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
40
|
-
}, undefined>], undefined>>;
|
|
41
|
-
};
|
|
42
4
|
user: {
|
|
43
5
|
deleteUser: import("..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
44
6
|
readonly data: import("valibot").ObjectSchema<{
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const getEmailMessageHTML: import("../../../..").EndpointConfig<"/v1/pv/message/:messageId/html", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly data: v.ObjectSchema<{
|
|
4
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
-
}, undefined>;
|
|
6
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
|
-
}, undefined>, v.ObjectSchema<{
|
|
8
|
-
readonly data: v.ObjectSchema<{
|
|
9
|
-
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
10
|
-
}, undefined>;
|
|
11
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
-
}, undefined>, v.ObjectSchema<{
|
|
13
|
-
readonly data: v.ObjectSchema<{
|
|
14
|
-
readonly content: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
15
|
-
readonly html: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
16
|
-
}, undefined>;
|
|
17
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
18
|
-
}, undefined>], undefined>>;
|
|
19
|
-
//# sourceMappingURL=getEmailMessageHTML.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;2BAc9B,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { marcoSchemas } from '../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
|
|
5
|
-
export const getEmailMessageHTML = createEndpoint({
|
|
6
|
-
method: 'GET',
|
|
7
|
-
path: '/v1/pv/message/:messageId/html',
|
|
8
|
-
response: v.union([
|
|
9
|
-
authFailedErrorSchema,
|
|
10
|
-
messageNotFoundErrorSchema,
|
|
11
|
-
v.object({
|
|
12
|
-
data: v.object({
|
|
13
|
-
content: v.record(v.string(), v.string()),
|
|
14
|
-
html: marcoSchemas.string.required(),
|
|
15
|
-
}),
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|