@marcoappio/marco-config 2.0.141 → 2.0.143
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 -1
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +7 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +7 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +5 -1
- package/dist/sdk/endpoints/public/index.d.ts +7 -1
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +7 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +8 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +5 -0
- package/package.json +1 -1
|
@@ -240,6 +240,9 @@ export declare const endpoints: {
|
|
|
240
240
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
241
241
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
242
242
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
243
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
244
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
245
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
243
246
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
244
247
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
245
248
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
@@ -250,7 +253,10 @@ export declare const endpoints: {
|
|
|
250
253
|
readonly data: import("valibot").ObjectSchema<{
|
|
251
254
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
252
255
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
253
|
-
readonly
|
|
256
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
257
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
258
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
259
|
+
}, undefined>;
|
|
254
260
|
}, undefined>;
|
|
255
261
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
256
262
|
}, undefined>], undefined>>;
|
|
@@ -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,EAAoB,MAAM,qBAAqB,CAAA;AActE,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,EAAoB,MAAM,qBAAqB,CAAA;AActE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -22,6 +22,9 @@ export declare const auth: {
|
|
|
22
22
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
23
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
24
24
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
25
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
27
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
25
28
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
29
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
27
30
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
@@ -32,7 +35,10 @@ export declare const auth: {
|
|
|
32
35
|
readonly data: import("valibot").ObjectSchema<{
|
|
33
36
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
34
37
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
35
|
-
readonly
|
|
38
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
39
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
40
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
41
|
+
}, undefined>;
|
|
36
42
|
}, undefined>;
|
|
37
43
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
38
44
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhB,CAAA"}
|
|
@@ -11,6 +11,9 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
|
|
|
11
11
|
}, undefined>, v.ObjectSchema<{
|
|
12
12
|
readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
13
13
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
14
|
+
}, undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
14
17
|
}, undefined>, v.ObjectSchema<{
|
|
15
18
|
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
16
19
|
readonly status: v.LiteralSchema<502, undefined>;
|
|
@@ -21,7 +24,10 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
|
|
|
21
24
|
readonly data: v.ObjectSchema<{
|
|
22
25
|
readonly accessToken: v.StringSchema<undefined>;
|
|
23
26
|
readonly refreshToken: v.StringSchema<undefined>;
|
|
24
|
-
readonly
|
|
27
|
+
readonly user: v.ObjectSchema<{
|
|
28
|
+
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly id: v.StringSchema<undefined>;
|
|
30
|
+
}, undefined>;
|
|
25
31
|
}, undefined>;
|
|
26
32
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
27
33
|
}, undefined>], undefined>>;
|
|
@@ -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;AAM5B,eAAO,MAAM,cAAc
|
|
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;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BzB,CAAA"}
|
|
@@ -13,13 +13,17 @@ export const verifyAuthCode = createEndpoint({
|
|
|
13
13
|
errorManifest.validationFailedErrorSchema,
|
|
14
14
|
errorManifest.authCodeExpiredErrorSchema,
|
|
15
15
|
errorManifest.authCodePreviouslyUsedErrorSchema,
|
|
16
|
+
errorManifest.authTooManyAttemptsErrorSchema,
|
|
16
17
|
errorManifest.authServerResponseUnexpectedErrorSchema,
|
|
17
18
|
errorManifest.userNotFoundErrorSchema,
|
|
18
19
|
v.object({
|
|
19
20
|
data: v.object({
|
|
20
21
|
accessToken: v.string(),
|
|
21
22
|
refreshToken: v.string(),
|
|
22
|
-
|
|
23
|
+
user: v.object({
|
|
24
|
+
email: marcoSchemas.string.email(),
|
|
25
|
+
id: v.string(),
|
|
26
|
+
}),
|
|
23
27
|
}),
|
|
24
28
|
status: v.literal(200),
|
|
25
29
|
}),
|
|
@@ -23,6 +23,9 @@ export declare const publicGroup: {
|
|
|
23
23
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
24
24
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
25
25
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
26
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
28
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
26
29
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
30
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
28
31
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
@@ -33,7 +36,10 @@ export declare const publicGroup: {
|
|
|
33
36
|
readonly data: import("valibot").ObjectSchema<{
|
|
34
37
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
35
38
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
36
|
-
readonly
|
|
39
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
40
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
41
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
42
|
+
}, undefined>;
|
|
37
43
|
}, undefined>;
|
|
38
44
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
39
45
|
}, undefined>], undefined>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -239,6 +239,9 @@ export declare const marcoSDK: {
|
|
|
239
239
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
240
240
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
241
241
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
242
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
243
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
244
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
242
245
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
243
246
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
244
247
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
@@ -249,7 +252,10 @@ export declare const marcoSDK: {
|
|
|
249
252
|
readonly data: import("valibot").ObjectSchema<{
|
|
250
253
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
251
254
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
252
|
-
readonly
|
|
255
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
256
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
257
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
258
|
+
}, undefined>;
|
|
253
259
|
}, undefined>;
|
|
254
260
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
255
261
|
}, undefined>], undefined>>;
|
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"}
|
|
@@ -3,6 +3,10 @@ export declare const authCodeExpiredErrorSchema: v.ObjectSchema<{
|
|
|
3
3
|
readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
4
4
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
5
5
|
}, undefined>;
|
|
6
|
+
export declare const authTooManyAttemptsErrorSchema: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
8
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
9
|
+
}, undefined>;
|
|
6
10
|
export declare const authCodePreviouslyUsedErrorSchema: v.ObjectSchema<{
|
|
7
11
|
readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
8
12
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
@@ -40,6 +44,10 @@ export declare const errorManifest: {
|
|
|
40
44
|
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
41
45
|
readonly status: v.LiteralSchema<502, undefined>;
|
|
42
46
|
}, undefined>;
|
|
47
|
+
authTooManyAttemptsErrorSchema: v.ObjectSchema<{
|
|
48
|
+
readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
49
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
50
|
+
}, undefined>;
|
|
43
51
|
authenticationFailedErrorSchema: v.ObjectSchema<{
|
|
44
52
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
45
53
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
@@ -1 +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,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;aAGlD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;aAG1C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,aAAa
|
|
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,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;aAGzC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;aAGlD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;aAG1C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASD,CAAA"}
|
|
@@ -3,6 +3,10 @@ export const authCodeExpiredErrorSchema = v.object({
|
|
|
3
3
|
code: v.literal('AUTH_CODE_EXPIRED'),
|
|
4
4
|
status: v.literal(401),
|
|
5
5
|
});
|
|
6
|
+
export const authTooManyAttemptsErrorSchema = v.object({
|
|
7
|
+
code: v.literal('AUTH_TOO_MANY_ATTEMPTS'),
|
|
8
|
+
status: v.literal(401),
|
|
9
|
+
});
|
|
6
10
|
export const authCodePreviouslyUsedErrorSchema = v.object({
|
|
7
11
|
code: v.literal('AUTH_CODE_PREVIOUSLY_USED'),
|
|
8
12
|
status: v.literal(401),
|
|
@@ -31,6 +35,7 @@ export const errorManifest = {
|
|
|
31
35
|
authCodeExpiredErrorSchema,
|
|
32
36
|
authCodePreviouslyUsedErrorSchema,
|
|
33
37
|
authServerResponseUnexpectedErrorSchema,
|
|
38
|
+
authTooManyAttemptsErrorSchema,
|
|
34
39
|
authenticationFailedErrorSchema,
|
|
35
40
|
messageNotFoundErrorSchema,
|
|
36
41
|
userNotFoundErrorSchema,
|