@marcoappio/marco-config 2.0.147 → 2.0.148
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 +1 -10
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +1 -10
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -10
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +1 -4
- package/dist/sdk/endpoints/public/index.d.ts +1 -10
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +1 -10
- 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
|
@@ -223,20 +223,11 @@ export declare const endpoints: {
|
|
|
223
223
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
224
224
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
225
225
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
226
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
227
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
228
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
229
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
230
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
231
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
232
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
226
|
+
readonly code: import("valibot").LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
233
227
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
234
228
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
235
229
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
236
230
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
237
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
238
|
-
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
239
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
240
231
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
241
232
|
readonly data: import("valibot").ObjectSchema<{
|
|
242
233
|
readonly accessToken: import("valibot").StringSchema<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"}
|
|
@@ -5,20 +5,11 @@ export declare const auth: {
|
|
|
5
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
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
9
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
10
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
11
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
12
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
13
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
14
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
15
9
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
16
10
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
11
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
18
12
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
19
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
20
|
-
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
21
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
22
13
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
23
14
|
readonly data: import("valibot").ObjectSchema<{
|
|
24
15
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
|
|
@@ -5,20 +5,11 @@ export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/a
|
|
|
5
5
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
6
6
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
7
7
|
}, undefined>, v.ObjectSchema<{
|
|
8
|
-
readonly code: v.LiteralSchema<"
|
|
9
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
10
|
-
}, undefined>, v.ObjectSchema<{
|
|
11
|
-
readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
12
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
13
|
-
}, undefined>, v.ObjectSchema<{
|
|
14
|
-
readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
8
|
+
readonly code: v.LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
15
9
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
16
10
|
}, undefined>, v.ObjectSchema<{
|
|
17
11
|
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
18
12
|
readonly status: v.LiteralSchema<502, undefined>;
|
|
19
|
-
}, undefined>, v.ObjectSchema<{
|
|
20
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
21
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
22
13
|
}, undefined>, v.ObjectSchema<{
|
|
23
14
|
readonly data: v.ObjectSchema<{
|
|
24
15
|
readonly accessToken: v.StringSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"refreshAuth.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;2BAsBtB,CAAA"}
|
|
@@ -10,11 +10,8 @@ export const refreshAuth = createEndpoint({
|
|
|
10
10
|
path: '/v1/pb/auth/refresh',
|
|
11
11
|
response: v.union([
|
|
12
12
|
errorManifest.validationFailedErrorSchema,
|
|
13
|
-
errorManifest.
|
|
14
|
-
errorManifest.authCodePreviouslyUsedErrorSchema,
|
|
15
|
-
errorManifest.authTooManyAttemptsErrorSchema,
|
|
13
|
+
errorManifest.invalidRefreshToken,
|
|
16
14
|
errorManifest.authServerResponseUnexpectedErrorSchema,
|
|
17
|
-
errorManifest.userNotFoundErrorSchema,
|
|
18
15
|
v.object({
|
|
19
16
|
data: v.object({
|
|
20
17
|
accessToken: v.string(),
|
|
@@ -6,20 +6,11 @@ export declare const publicGroup: {
|
|
|
6
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
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
10
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
13
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
14
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
15
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
16
10
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
17
11
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
12
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
19
13
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
20
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
|
-
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
22
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
23
14
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
24
15
|
readonly data: import("valibot").ObjectSchema<{
|
|
25
16
|
readonly accessToken: import("valibot").StringSchema<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
|
@@ -222,20 +222,11 @@ export declare const marcoSDK: {
|
|
|
222
222
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
223
223
|
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
224
224
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
225
|
-
readonly code: import("valibot").LiteralSchema<"
|
|
226
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
227
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
228
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
229
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
230
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
231
|
-
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
225
|
+
readonly code: import("valibot").LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
232
226
|
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
233
227
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
234
228
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
235
229
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
236
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
237
|
-
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
238
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
239
230
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
240
231
|
readonly data: import("valibot").ObjectSchema<{
|
|
241
232
|
readonly accessToken: import("valibot").StringSchema<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"}
|
|
@@ -31,6 +31,10 @@ export declare const validationFailedErrorSchema: v.ObjectSchema<{
|
|
|
31
31
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
32
32
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
33
33
|
}, undefined>;
|
|
34
|
+
export declare const invalidRefreshToken: v.ObjectSchema<{
|
|
35
|
+
readonly code: v.LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
36
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
37
|
+
}, undefined>;
|
|
34
38
|
export declare const errorManifest: {
|
|
35
39
|
authCodeExpiredErrorSchema: v.ObjectSchema<{
|
|
36
40
|
readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
@@ -52,6 +56,10 @@ export declare const errorManifest: {
|
|
|
52
56
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
53
57
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
54
58
|
}, undefined>;
|
|
59
|
+
invalidRefreshToken: v.ObjectSchema<{
|
|
60
|
+
readonly code: v.LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
|
|
61
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
62
|
+
}, undefined>;
|
|
55
63
|
messageNotFoundErrorSchema: v.ObjectSchema<{
|
|
56
64
|
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
57
65
|
readonly status: v.LiteralSchema<404, 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,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
|
|
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,mBAAmB;;;aAG9B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUD,CAAA"}
|
|
@@ -31,12 +31,17 @@ export const validationFailedErrorSchema = v.object({
|
|
|
31
31
|
code: v.literal('VALIDATION_FAILED'),
|
|
32
32
|
status: v.literal(400),
|
|
33
33
|
});
|
|
34
|
+
export const invalidRefreshToken = v.object({
|
|
35
|
+
code: v.literal('INVALID_REFRESH_TOKEN'),
|
|
36
|
+
status: v.literal(401),
|
|
37
|
+
});
|
|
34
38
|
export const errorManifest = {
|
|
35
39
|
authCodeExpiredErrorSchema,
|
|
36
40
|
authCodePreviouslyUsedErrorSchema,
|
|
37
41
|
authServerResponseUnexpectedErrorSchema,
|
|
38
42
|
authTooManyAttemptsErrorSchema,
|
|
39
43
|
authenticationFailedErrorSchema,
|
|
44
|
+
invalidRefreshToken,
|
|
40
45
|
messageNotFoundErrorSchema,
|
|
41
46
|
userNotFoundErrorSchema,
|
|
42
47
|
validationFailedErrorSchema,
|