@marcoappio/marco-config 2.0.116 → 2.0.118
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 +1 -0
- package/dist/clients/account.d.ts.map +1 -1
- package/dist/clients/account.js +1 -0
- package/dist/clients/index.d.ts +1 -0
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.d.ts +80 -34
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +0 -2
- package/dist/sdk/endpoints/private/index.d.ts +77 -23
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.js +2 -4
- package/dist/sdk/endpoints/private/sync/index.d.ts +79 -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 +42 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/account.js +29 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +43 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/index.js +2 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +34 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.js +31 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +35 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.js +2 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +3 -3
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/index.d.ts +3 -3
- package/dist/sdk/index.d.ts +80 -34
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +30 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -0
- package/dist/sdk/validation/errors.js +19 -0
- package/package.json +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getText.d.ts +0 -16
- package/dist/sdk/endpoints/private/emailMessage/getText.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/getText.js +0 -23
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -17
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/index.js +0 -4
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -8
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/deleteUser.js +0 -14
- package/dist/sdk/endpoints/private/user/index.d.ts +0 -9
- package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/index.js +0 -4
- package/dist/sdk/endpoints/webhook/emailEngine.d.ts +0 -8
- package/dist/sdk/endpoints/webhook/emailEngine.d.ts.map +0 -1
- package/dist/sdk/endpoints/webhook/emailEngine.js +0 -12
- package/dist/sdk/endpoints/webhook/index.d.ts +0 -9
- package/dist/sdk/endpoints/webhook/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/webhook/index.js +0 -4
- package/dist/sdk/validation/errors/index.d.ts +0 -15
- package/dist/sdk/validation/errors/index.d.ts.map +0 -1
- package/dist/sdk/validation/errors/index.js +0 -8
- package/dist/sdk/validation/errors/unauthenticated.d.ts +0 -6
- package/dist/sdk/validation/errors/unauthenticated.d.ts.map +0 -1
- package/dist/sdk/validation/errors/unauthenticated.js +0 -5
- package/dist/sdk/validation/errors/unexpected.d.ts +0 -6
- package/dist/sdk/validation/errors/unexpected.d.ts.map +0 -1
- package/dist/sdk/validation/errors/unexpected.js +0 -5
- package/dist/sdk/validation/errors/validationFailed.d.ts +0 -6
- package/dist/sdk/validation/errors/validationFailed.d.ts.map +0 -1
- package/dist/sdk/validation/errors/validationFailed.js +0 -5
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const syncPushAccount: import("../../../../../types").EndpointConfig<"/v1/pv/sync/push/account", v.ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: v.StringSchema<undefined>;
|
|
4
|
+
readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
+
readonly args: v.ObjectSchema<{
|
|
6
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
|
+
readonly imapPasswordConfig: v.ObjectSchema<{
|
|
8
|
+
readonly status: v.LiteralSchema<import("../../../../../types").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
9
|
+
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
10
|
+
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
11
|
+
readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
15
|
+
readonly id: v.NumberSchema<undefined>;
|
|
16
|
+
readonly name: v.LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly args: v.ObjectSchema<{
|
|
19
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
readonly clientID: v.StringSchema<undefined>;
|
|
22
|
+
readonly id: v.NumberSchema<undefined>;
|
|
23
|
+
readonly name: v.LiteralSchema<"delete", undefined>;
|
|
24
|
+
}, undefined>], undefined>, undefined>;
|
|
25
|
+
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
26
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
28
|
+
}, undefined>, v.ObjectSchema<{
|
|
29
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
30
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
31
|
+
}, undefined>, v.ObjectSchema<{
|
|
32
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
33
|
+
}, undefined>], undefined>>;
|
|
34
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { account } from '../../../../../clients/account';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { errorManifest } from '../../../../../sdk/validation/errors';
|
|
5
|
+
import { HTTPMethod } from '../../../../../types';
|
|
6
|
+
export const syncPushAccount = createEndpoint({
|
|
7
|
+
body: v.object({
|
|
8
|
+
clientGroupID: v.string(),
|
|
9
|
+
mutations: v.array(v.union([
|
|
10
|
+
v.object({
|
|
11
|
+
args: account.mutators.setIMAPPasswordConfig.delta,
|
|
12
|
+
clientID: v.string(),
|
|
13
|
+
id: v.number(),
|
|
14
|
+
name: v.literal('setIMAPPasswordConfig'),
|
|
15
|
+
}),
|
|
16
|
+
v.object({
|
|
17
|
+
args: account.mutators.delete.delta,
|
|
18
|
+
clientID: v.string(),
|
|
19
|
+
id: v.number(),
|
|
20
|
+
name: v.literal('delete'),
|
|
21
|
+
}),
|
|
22
|
+
])),
|
|
23
|
+
}),
|
|
24
|
+
method: HTTPMethod.POST,
|
|
25
|
+
path: account.pushURL,
|
|
26
|
+
response: v.union([
|
|
27
|
+
errorManifest.validationFailedErrorSchema,
|
|
28
|
+
errorManifest.notAuthenticatedErrorSchema,
|
|
29
|
+
v.object({ status: v.literal(200) }),
|
|
30
|
+
]),
|
|
31
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const push: {
|
|
2
|
+
syncPushAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
3
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
4
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
5
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
6
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
|
+
readonly imapPasswordConfig: import("valibot").ObjectSchema<{
|
|
8
|
+
readonly status: import("valibot").LiteralSchema<import("../../../../..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
9
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
10
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
11
|
+
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>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
15
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
16
|
+
readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
17
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
19
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
22
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
23
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
24
|
+
}, undefined>], undefined>, undefined>;
|
|
25
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
26
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
28
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
33
|
+
}, undefined>], undefined>>;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAA"}
|
|
@@ -2,7 +2,7 @@ export declare const auth: {
|
|
|
2
2
|
refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
3
3
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
4
4
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
5
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
5
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
6
6
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
7
7
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
8
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -22,7 +22,7 @@ export declare const auth: {
|
|
|
22
22
|
sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
23
23
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
24
24
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
25
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
25
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
26
26
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
27
27
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
28
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -31,7 +31,7 @@ export declare const auth: {
|
|
|
31
31
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
32
32
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
33
33
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
34
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
34
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
35
35
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
36
36
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
37
37
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -2,7 +2,7 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const refreshAuth: import("../../../../types/Endpoint").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
|
|
3
3
|
readonly refreshToken: v.StringSchema<undefined>;
|
|
4
4
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
-
readonly code: v.LiteralSchema<"
|
|
5
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
6
6
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
7
7
|
}, undefined>, v.ObjectSchema<{
|
|
8
8
|
readonly code: v.LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -2,7 +2,7 @@ import * as v from 'valibot';
|
|
|
2
2
|
export declare const sendAuthCode: import("../../../../types/Endpoint").EndpointConfig<"/v1/pb/auth/send-code", v.ObjectSchema<{
|
|
3
3
|
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
4
4
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
5
|
-
readonly code: v.LiteralSchema<"
|
|
5
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
6
6
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
7
7
|
}, undefined>, v.ObjectSchema<{
|
|
8
8
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
@@ -3,7 +3,7 @@ export declare const verifyAuthCode: import("../../../../types/Endpoint").Endpoi
|
|
|
3
3
|
readonly code: v.StringSchema<undefined>;
|
|
4
4
|
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
5
5
|
}, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
-
readonly code: v.LiteralSchema<"
|
|
6
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
7
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
8
8
|
}, undefined>, v.ObjectSchema<{
|
|
9
9
|
readonly code: v.LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -3,7 +3,7 @@ export declare const publicGroup: {
|
|
|
3
3
|
refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
4
4
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
5
5
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
6
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
6
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
7
7
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
8
8
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
9
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -23,7 +23,7 @@ export declare const publicGroup: {
|
|
|
23
23
|
sendAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
24
24
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
25
25
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
26
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
26
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
27
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
28
28
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
29
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -32,7 +32,7 @@ export declare const publicGroup: {
|
|
|
32
32
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
33
33
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
34
34
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
35
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
35
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
36
36
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
37
37
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
38
38
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,29 +1,83 @@
|
|
|
1
1
|
export declare const marcoSDK: {
|
|
2
2
|
endpoints: {
|
|
3
3
|
private: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
4
|
+
sync: {
|
|
5
|
+
pull: {
|
|
6
|
+
syncPullAccount: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
|
|
7
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
8
|
+
readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
9
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
10
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
14
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly cookie: import("valibot").NumberSchema<undefined>;
|
|
18
|
+
readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
|
|
19
|
+
readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
20
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
21
|
+
readonly op: import("valibot").LiteralSchema<"del", undefined>;
|
|
22
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
|
+
readonly op: import("valibot").LiteralSchema<"clear", undefined>;
|
|
24
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
25
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
26
|
+
readonly op: import("valibot").LiteralSchema<"put", undefined>;
|
|
27
|
+
readonly value: import("valibot").ObjectSchema<{
|
|
28
|
+
readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
31
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
32
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
33
|
+
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>;
|
|
34
|
+
readonly status: import("valibot").EnumSchema<typeof import("..").IMAPPasswordConfigStatus, undefined>;
|
|
35
|
+
}, undefined>, undefined>;
|
|
36
|
+
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
37
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
38
|
+
readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
39
|
+
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
40
|
+
}, undefined>, undefined>;
|
|
41
|
+
}, undefined>;
|
|
42
|
+
}, undefined>], undefined>, undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
45
|
+
}, undefined>], undefined>>;
|
|
46
|
+
};
|
|
47
|
+
push: {
|
|
48
|
+
syncPushAccount: import("..").EndpointConfig<"/v1/pv/sync/push/account", import("valibot").ObjectSchema<{
|
|
49
|
+
readonly clientGroupID: import("valibot").StringSchema<undefined>;
|
|
50
|
+
readonly mutations: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
51
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
52
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
53
|
+
readonly imapPasswordConfig: import("valibot").ObjectSchema<{
|
|
54
|
+
readonly status: import("valibot").LiteralSchema<import("..").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
55
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
56
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
57
|
+
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>;
|
|
58
|
+
}, undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
61
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
62
|
+
readonly name: import("valibot").LiteralSchema<"setIMAPPasswordConfig", undefined>;
|
|
63
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
64
|
+
readonly args: import("valibot").ObjectSchema<{
|
|
65
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
readonly clientID: import("valibot").StringSchema<undefined>;
|
|
68
|
+
readonly id: import("valibot").NumberSchema<undefined>;
|
|
69
|
+
readonly name: import("valibot").LiteralSchema<"delete", undefined>;
|
|
70
|
+
}, undefined>], undefined>, undefined>;
|
|
71
|
+
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
72
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
73
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
74
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
75
|
+
readonly code: import("valibot").LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
76
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
77
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
78
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
79
|
+
}, undefined>], undefined>>;
|
|
80
|
+
};
|
|
27
81
|
};
|
|
28
82
|
};
|
|
29
83
|
public: {
|
|
@@ -31,7 +85,7 @@ export declare const marcoSDK: {
|
|
|
31
85
|
refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
32
86
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
33
87
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
34
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
88
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
35
89
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
36
90
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
37
91
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -51,7 +105,7 @@ export declare const marcoSDK: {
|
|
|
51
105
|
sendAuthCode: import("..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
52
106
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
53
107
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
54
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
108
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
55
109
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
56
110
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
57
111
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
@@ -60,7 +114,7 @@ export declare const marcoSDK: {
|
|
|
60
114
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
61
115
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
62
116
|
}, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
63
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
117
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
64
118
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
65
119
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
66
120
|
readonly code: import("valibot").LiteralSchema<"VERIFY_AUTH_CODE::INVALID_CODE", undefined>;
|
|
@@ -85,14 +139,6 @@ export declare const marcoSDK: {
|
|
|
85
139
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
86
140
|
}, undefined>>;
|
|
87
141
|
};
|
|
88
|
-
webhook: {
|
|
89
|
-
emailEngine: import("..").EndpointConfig<"/v1/wh/email-engine", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
90
|
-
readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
91
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
92
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
93
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
94
|
-
}, undefined>], undefined>>;
|
|
95
|
-
};
|
|
96
142
|
};
|
|
97
143
|
validation: {
|
|
98
144
|
utils: {
|
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"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const validationFailedErrorSchema: v.ObjectSchema<{
|
|
3
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
4
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
export declare const notAuthenticatedErrorSchema: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
8
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
export declare const authenticationFailedErrorSchema: v.ObjectSchema<{
|
|
11
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
12
|
+
readonly details: v.StringSchema<undefined>;
|
|
13
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
export declare const errorManifest: {
|
|
16
|
+
authenticationFailedErrorSchema: v.ObjectSchema<{
|
|
17
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
18
|
+
readonly details: v.StringSchema<undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
notAuthenticatedErrorSchema: v.ObjectSchema<{
|
|
22
|
+
readonly code: v.LiteralSchema<"NOT_AUTHENTICATED", undefined>;
|
|
23
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
validationFailedErrorSchema: v.ObjectSchema<{
|
|
26
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;aAI1C,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAID,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export const validationFailedErrorSchema = v.object({
|
|
3
|
+
code: v.literal('VALIDATION_FAILED'),
|
|
4
|
+
status: v.literal(400),
|
|
5
|
+
});
|
|
6
|
+
export const notAuthenticatedErrorSchema = v.object({
|
|
7
|
+
code: v.literal('NOT_AUTHENTICATED'),
|
|
8
|
+
status: v.literal(401),
|
|
9
|
+
});
|
|
10
|
+
export const authenticationFailedErrorSchema = v.object({
|
|
11
|
+
code: v.literal('AUTHENTICATION_FAILED'),
|
|
12
|
+
details: v.string(),
|
|
13
|
+
status: v.literal(400),
|
|
14
|
+
});
|
|
15
|
+
export const errorManifest = {
|
|
16
|
+
authenticationFailedErrorSchema,
|
|
17
|
+
notAuthenticatedErrorSchema,
|
|
18
|
+
validationFailedErrorSchema,
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const getText: import("../../../../types").EndpointConfig<"/v1/pv/email-message/:messageId/text", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly code: v.LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
4
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
5
|
-
}, undefined>, v.ObjectSchema<{
|
|
6
|
-
readonly code: v.LiteralSchema<"GET_TEXT::MESSAGE_NOT_FOUND", undefined>;
|
|
7
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
8
|
-
}, undefined>, v.ObjectSchema<{
|
|
9
|
-
readonly data: v.ObjectSchema<{
|
|
10
|
-
readonly hasMore: v.BooleanSchema<undefined>;
|
|
11
|
-
readonly html: v.UndefinedableSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly text: v.UndefinedableSchema<v.StringSchema<undefined>, undefined>;
|
|
13
|
-
}, undefined>;
|
|
14
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
15
|
-
}, undefined>], undefined>>;
|
|
16
|
-
//# sourceMappingURL=getText.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getText.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;2BAkBlB,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { errorManifest } from '../../../../sdk/validation/errors';
|
|
4
|
-
import { HTTPMethod } from '../../../../types';
|
|
5
|
-
export const getText = createEndpoint({
|
|
6
|
-
method: HTTPMethod.GET,
|
|
7
|
-
path: '/v1/pv/email-message/:messageId/text',
|
|
8
|
-
response: v.union([
|
|
9
|
-
errorManifest.unauthenticatedErrorSchema,
|
|
10
|
-
v.object({
|
|
11
|
-
code: v.literal('GET_TEXT::MESSAGE_NOT_FOUND'),
|
|
12
|
-
status: v.literal(404),
|
|
13
|
-
}),
|
|
14
|
-
v.object({
|
|
15
|
-
data: v.object({
|
|
16
|
-
hasMore: v.boolean(),
|
|
17
|
-
html: v.undefinedable(v.string()),
|
|
18
|
-
text: v.undefinedable(v.string()),
|
|
19
|
-
}),
|
|
20
|
-
status: v.literal(200),
|
|
21
|
-
}),
|
|
22
|
-
]),
|
|
23
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const emailMessage: {
|
|
2
|
-
getText: import("../../../..").EndpointConfig<"/v1/pv/email-message/:messageId/text", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
4
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
5
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
6
|
-
readonly code: import("valibot").LiteralSchema<"GET_TEXT::MESSAGE_NOT_FOUND", undefined>;
|
|
7
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
8
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
9
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
10
|
-
readonly hasMore: import("valibot").BooleanSchema<undefined>;
|
|
11
|
-
readonly html: import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly text: import("valibot").UndefinedableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
13
|
-
}, undefined>;
|
|
14
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
15
|
-
}, undefined>], undefined>>;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,8 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const deleteUser: import("../../../../types").EndpointConfig<"/v1/pv/user", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly code: v.LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
4
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
5
|
-
}, undefined>, v.ObjectSchema<{
|
|
6
|
-
readonly status: v.LiteralSchema<204, undefined>;
|
|
7
|
-
}, undefined>], undefined>>;
|
|
8
|
-
//# sourceMappingURL=deleteUser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteUser.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/deleteUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,UAAU;;;;;2BASrB,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { unauthenticatedErrorSchema } from '../../../../sdk/validation/errors/unauthenticated';
|
|
4
|
-
import { HTTPMethod } from '../../../../types';
|
|
5
|
-
export const deleteUser = createEndpoint({
|
|
6
|
-
method: HTTPMethod.DELETE,
|
|
7
|
-
path: '/v1/pv/user',
|
|
8
|
-
response: v.union([
|
|
9
|
-
unauthenticatedErrorSchema,
|
|
10
|
-
v.object({
|
|
11
|
-
status: v.literal(204),
|
|
12
|
-
}),
|
|
13
|
-
]),
|
|
14
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const user: {
|
|
2
|
-
deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
-
readonly code: import("valibot").LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
4
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
5
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
6
|
-
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
7
|
-
}, undefined>], undefined>>;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI;;;;;;;CAEhB,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const emailEngine: import("../../../types").EndpointConfig<"/v1/wh/email-engine", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly code: v.LiteralSchema<"::UNAUTHENTICATED", undefined>;
|
|
4
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
5
|
-
}, undefined>, v.ObjectSchema<{
|
|
6
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
7
|
-
}, undefined>], undefined>>;
|
|
8
|
-
//# sourceMappingURL=emailEngine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emailEngine.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/webhook/emailEngine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW;;;;;2BAOtB,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { createEndpoint } from '../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
-
import { errorManifest } from '../../../sdk/validation/errors';
|
|
4
|
-
import { HTTPMethod } from '../../../types';
|
|
5
|
-
export const emailEngine = createEndpoint({
|
|
6
|
-
method: HTTPMethod.POST,
|
|
7
|
-
path: '/v1/wh/email-engine',
|
|
8
|
-
response: v.union([
|
|
9
|
-
errorManifest.unauthenticatedErrorSchema,
|
|
10
|
-
v.object({ status: v.literal(200) }),
|
|
11
|
-
]),
|
|
12
|
-
});
|