@marcoappio/marco-config 2.0.413 → 2.0.415
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 +144 -0
- package/dist/clients/account.d.ts.map +1 -0
- package/dist/clients/account.js +93 -0
- package/dist/clients/contact.d.ts +14 -0
- package/dist/clients/contact.d.ts.map +1 -0
- package/dist/clients/contact.js +14 -0
- package/dist/clients/draft.d.ts +196 -0
- package/dist/clients/draft.d.ts.map +1 -0
- package/dist/clients/draft.js +122 -0
- package/dist/clients/index.d.ts +526 -0
- package/dist/clients/index.d.ts.map +1 -0
- package/dist/clients/index.js +13 -0
- package/dist/clients/thread.d.ts +125 -0
- package/dist/clients/thread.d.ts.map +1 -0
- package/dist/clients/thread.js +117 -0
- package/dist/clients/user.d.ts +53 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +52 -0
- package/dist/clients/utils/index.d.ts +4 -0
- package/dist/clients/utils/index.d.ts.map +1 -0
- package/dist/clients/utils/index.js +4 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
- package/dist/clients/utils/labelSpecialUseOrdering.js +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/marcoPublicConfig.d.ts +6 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +18 -0
- package/dist/sdk/endpoints/index.d.ts +1073 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +2 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
- package/dist/sdk/endpoints/private/index.d.ts +938 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +8 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts +888 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/index.js +3 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +71 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/account.js +33 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +56 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.js +40 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +72 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.js +36 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +349 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/index.js +6 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +100 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.js +45 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +57 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/user.js +33 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +151 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.js +73 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +206 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/draft.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +538 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.js +5 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +122 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/thread.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +64 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/user.js +43 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +4 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
- package/dist/sdk/endpoints/public/index.d.ts +136 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +2 -0
- package/dist/sdk/index.d.ts +1073 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +2 -1
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/MarcoClient.d.ts +12 -0
- package/dist/types/MarcoClient.d.ts.map +1 -0
- package/dist/types/MarcoClient.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/WS.d.ts +7 -0
- package/dist/types/WS.d.ts.map +1 -0
- package/dist/types/WS.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/ws.d.ts +6 -0
- package/dist/ws.d.ts.map +1 -0
- package/dist/ws.js +5 -0
- package/package.json +1 -2
- package/dist/instantDB/index.d.ts +0 -3
- package/dist/instantDB/index.d.ts.map +0 -1
- package/dist/instantDB/index.js +0 -2
- package/dist/instantDB/instant.perms.d.ts +0 -110
- package/dist/instantDB/instant.perms.d.ts.map +0 -1
- package/dist/instantDB/instant.perms.js +0 -109
- package/dist/instantDB/instant.schema.d.ts +0 -313
- package/dist/instantDB/instant.schema.d.ts.map +0 -1
- package/dist/instantDB/instant.schema.js +0 -156
|
@@ -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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", 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<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
20
|
+
}, undefined>], undefined>>;
|
|
21
|
+
//# sourceMappingURL=getEmailMessageAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEmailMessageAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAS5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;2BAYpC,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
+
import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, } from '../../../../sdk/validation/errors';
|
|
4
|
+
export const getEmailMessageAttachment = createEndpoint({
|
|
5
|
+
method: 'GET',
|
|
6
|
+
path: '/v1/pv/attachment/:attachmentId',
|
|
7
|
+
response: v.union([
|
|
8
|
+
authFailedErrorSchema,
|
|
9
|
+
attachmentNotFoundErrorSchema,
|
|
10
|
+
attachmentStateInvalidErrorSchema,
|
|
11
|
+
v.object({
|
|
12
|
+
file: v.nonOptional(v.file()),
|
|
13
|
+
status: v.literal(200),
|
|
14
|
+
}),
|
|
15
|
+
]),
|
|
16
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const emailMessage: {
|
|
2
|
+
getAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
4
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
|
+
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
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
|
+
};
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
|