@marcoappio/marco-config 2.0.430 → 2.0.432
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/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 +2 -2
- 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"}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcoappio/marco-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.432",
|
|
4
4
|
"author": "team@marcoapp.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "git@github.com:marcoappio/marco-config.git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typecheck": "tsc -noEmit --incremental"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@rocicorp/zero": "0.24.
|
|
28
|
+
"@rocicorp/zero": "0.24.3000000000",
|
|
29
29
|
"diff": "8.0.2",
|
|
30
30
|
"valibot": "1.1.0"
|
|
31
31
|
},
|
|
@@ -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
|
-
});
|