@marcoappio/marco-config 2.0.343 → 2.0.344
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/sdk/endpoints/index.d.ts +7 -2
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +7 -2
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +7 -2
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +11 -2
- package/dist/sdk/endpoints/public/index.d.ts +7 -2
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +7 -2
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -917,10 +917,15 @@ export declare const endpoints: {
|
|
|
917
917
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
918
918
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
919
919
|
}, undefined>], undefined>>;
|
|
920
|
-
verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
920
|
+
verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
921
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
921
922
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
922
923
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
923
|
-
}, undefined>,
|
|
924
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
925
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
926
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
927
|
+
readonly password: import("valibot").StringSchema<undefined>;
|
|
928
|
+
}, undefined>], undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
924
929
|
readonly data: import("valibot").ObjectSchema<{
|
|
925
930
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
926
931
|
readonly issues: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC,OAAO,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -63,10 +63,15 @@ export declare const auth: {
|
|
|
63
63
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
64
64
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
65
65
|
}, undefined>], undefined>>;
|
|
66
|
-
verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
66
|
+
verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
67
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
67
68
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
68
69
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
69
|
-
}, undefined>, import("valibot").
|
|
70
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
72
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
+
readonly password: import("valibot").StringSchema<undefined>;
|
|
74
|
+
}, undefined>], undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
70
75
|
readonly data: import("valibot").ObjectSchema<{
|
|
71
76
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
72
77
|
readonly issues: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.ObjectSchema<{
|
|
2
|
+
export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly authType: v.LiteralSchema<"CODE", undefined>;
|
|
3
4
|
readonly code: v.StringSchema<undefined>;
|
|
4
5
|
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
5
|
-
}, undefined>, v.
|
|
6
|
+
}, undefined>, v.ObjectSchema<{
|
|
7
|
+
readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
|
|
8
|
+
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
|
+
readonly password: v.StringSchema<undefined>;
|
|
10
|
+
}, undefined>], undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
11
|
readonly data: v.ObjectSchema<{
|
|
7
12
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
8
13
|
readonly issues: v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/verifyAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"verifyAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/verifyAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAmB5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,CAAA"}
|
|
@@ -2,11 +2,20 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { marcoSchemas } from '../../../../schemas';
|
|
3
3
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
4
4
|
import { errors } from '../../../../sdk/validation/errors';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const verifyAuthCodeBody = v.union([
|
|
6
|
+
v.object({
|
|
7
|
+
authType: v.literal('CODE'),
|
|
7
8
|
code: v.string(),
|
|
8
9
|
email: marcoSchemas.string.email(),
|
|
9
10
|
}),
|
|
11
|
+
v.object({
|
|
12
|
+
authType: v.literal('PASSWORD'),
|
|
13
|
+
email: marcoSchemas.string.email(),
|
|
14
|
+
password: v.string(),
|
|
15
|
+
}),
|
|
16
|
+
]);
|
|
17
|
+
export const verifyAuthCode = createEndpoint({
|
|
18
|
+
body: verifyAuthCodeBody,
|
|
10
19
|
method: 'POST',
|
|
11
20
|
path: '/v1/pb/auth/verify-code',
|
|
12
21
|
response: v.union([
|
|
@@ -64,10 +64,15 @@ export declare const publicGroup: {
|
|
|
64
64
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
65
65
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
66
66
|
}, undefined>], undefined>>;
|
|
67
|
-
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
67
|
+
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
68
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
68
69
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
69
70
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
70
|
-
}, undefined>, import("valibot").
|
|
71
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
72
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
73
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
74
|
+
readonly password: import("valibot").StringSchema<undefined>;
|
|
75
|
+
}, undefined>], undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
71
76
|
readonly data: import("valibot").ObjectSchema<{
|
|
72
77
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
73
78
|
readonly issues: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -916,10 +916,15 @@ export declare const marcoSDK: {
|
|
|
916
916
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
917
917
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
918
918
|
}, undefined>], undefined>>;
|
|
919
|
-
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
919
|
+
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
920
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
920
921
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
921
922
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
922
|
-
}, undefined>, import("valibot").
|
|
923
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
924
|
+
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
925
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
926
|
+
readonly password: import("valibot").StringSchema<undefined>;
|
|
927
|
+
}, undefined>], undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
923
928
|
readonly data: import("valibot").ObjectSchema<{
|
|
924
929
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
925
930
|
readonly issues: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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