@marcoappio/marco-config 2.0.148 → 2.0.149

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.
@@ -10,7 +10,7 @@ export const refreshAuth = createEndpoint({
10
10
  path: '/v1/pb/auth/refresh',
11
11
  response: v.union([
12
12
  errorManifest.validationFailedErrorSchema,
13
- errorManifest.invalidRefreshToken,
13
+ errorManifest.authRefreshTokenInvalid,
14
14
  errorManifest.authServerResponseUnexpectedErrorSchema,
15
15
  v.object({
16
16
  data: v.object({
@@ -19,6 +19,10 @@ export declare const authenticationFailedErrorSchema: v.ObjectSchema<{
19
19
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
20
20
  readonly status: v.LiteralSchema<401, undefined>;
21
21
  }, undefined>;
22
+ export declare const authRefreshTokenInvalid: v.ObjectSchema<{
23
+ readonly code: v.LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
24
+ readonly status: v.LiteralSchema<401, undefined>;
25
+ }, undefined>;
22
26
  export declare const userNotFoundErrorSchema: v.ObjectSchema<{
23
27
  readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
24
28
  readonly status: v.LiteralSchema<404, undefined>;
@@ -31,10 +35,6 @@ export declare const validationFailedErrorSchema: v.ObjectSchema<{
31
35
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
32
36
  readonly status: v.LiteralSchema<400, undefined>;
33
37
  }, 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>;
38
38
  export declare const errorManifest: {
39
39
  authCodeExpiredErrorSchema: v.ObjectSchema<{
40
40
  readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
@@ -44,6 +44,10 @@ export declare const errorManifest: {
44
44
  readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
45
45
  readonly status: v.LiteralSchema<401, undefined>;
46
46
  }, undefined>;
47
+ authRefreshTokenInvalid: v.ObjectSchema<{
48
+ readonly code: v.LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
49
+ readonly status: v.LiteralSchema<401, undefined>;
50
+ }, undefined>;
47
51
  authServerResponseUnexpectedErrorSchema: v.ObjectSchema<{
48
52
  readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
49
53
  readonly status: v.LiteralSchema<502, undefined>;
@@ -56,10 +60,6 @@ export declare const errorManifest: {
56
60
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
57
61
  readonly status: v.LiteralSchema<401, undefined>;
58
62
  }, undefined>;
59
- invalidRefreshToken: v.ObjectSchema<{
60
- readonly code: v.LiteralSchema<"INVALID_REFRESH_TOKEN", undefined>;
61
- readonly status: v.LiteralSchema<401, undefined>;
62
- }, undefined>;
63
63
  messageNotFoundErrorSchema: v.ObjectSchema<{
64
64
  readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
65
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,mBAAmB;;;aAG9B,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUD,CAAA"}
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,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUD,CAAA"}
@@ -19,6 +19,10 @@ export const authenticationFailedErrorSchema = v.object({
19
19
  code: v.literal('AUTHENTICATION_FAILED'),
20
20
  status: v.literal(401),
21
21
  });
22
+ export const authRefreshTokenInvalid = v.object({
23
+ code: v.literal('INVALID_REFRESH_TOKEN'),
24
+ status: v.literal(401),
25
+ });
22
26
  export const userNotFoundErrorSchema = v.object({
23
27
  code: v.literal('USER_NOT_FOUND'),
24
28
  status: v.literal(404),
@@ -31,17 +35,13 @@ export const validationFailedErrorSchema = v.object({
31
35
  code: v.literal('VALIDATION_FAILED'),
32
36
  status: v.literal(400),
33
37
  });
34
- export const invalidRefreshToken = v.object({
35
- code: v.literal('INVALID_REFRESH_TOKEN'),
36
- status: v.literal(401),
37
- });
38
38
  export const errorManifest = {
39
39
  authCodeExpiredErrorSchema,
40
40
  authCodePreviouslyUsedErrorSchema,
41
+ authRefreshTokenInvalid,
41
42
  authServerResponseUnexpectedErrorSchema,
42
43
  authTooManyAttemptsErrorSchema,
43
44
  authenticationFailedErrorSchema,
44
- invalidRefreshToken,
45
45
  messageNotFoundErrorSchema,
46
46
  userNotFoundErrorSchema,
47
47
  validationFailedErrorSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.148",
3
+ "version": "2.0.149",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",