@marcoappio/marco-config 2.0.145 → 2.0.146

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.
@@ -217,7 +217,7 @@ export declare const endpoints: {
217
217
  };
218
218
  public: {
219
219
  auth: {
220
- refreshAuthCode: EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
220
+ refreshAuthCode: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
221
221
  readonly refreshToken: import("valibot").StringSchema<undefined>;
222
222
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
223
223
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -1,5 +1,5 @@
1
1
  export declare const auth: {
2
- refreshAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
2
+ refreshAuthCode: 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
5
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -1,8 +1,8 @@
1
- import { refreshAuthCode } from '../../../../sdk/endpoints/public/auth/refreshAuthCode';
1
+ import { refreshAuth } from '../../../../sdk/endpoints/public/auth/refreshAuth';
2
2
  import { sendAuthCode } from './sendAuthCode';
3
3
  import { verifyAuthCode } from './verifyAuthCode';
4
4
  export const auth = {
5
- refreshAuthCode,
5
+ refreshAuthCode: refreshAuth,
6
6
  sendAuthCode,
7
7
  verifyAuthCode,
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export declare const refreshAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh-code", v.ObjectSchema<{
2
+ export declare const refreshAuth: import("../../../..").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
5
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -30,4 +30,4 @@ export declare const refreshAuthCode: import("../../../..").EndpointConfig<"/v1/
30
30
  }, undefined>;
31
31
  readonly status: v.LiteralSchema<200, undefined>;
32
32
  }, undefined>], undefined>>;
33
- //# sourceMappingURL=refreshAuthCode.d.ts.map
33
+ //# sourceMappingURL=refreshAuth.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyBtB,CAAA"}
@@ -2,12 +2,12 @@ import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../../../schemas';
3
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errorManifest } from '../../../../sdk/validation/errors';
5
- export const refreshAuthCode = createEndpoint({
5
+ export const refreshAuth = createEndpoint({
6
6
  body: v.object({
7
7
  refreshToken: v.string(),
8
8
  }),
9
9
  method: 'POST',
10
- path: '/v1/pb/auth/refresh-code',
10
+ path: '/v1/pb/auth/refresh',
11
11
  response: v.union([
12
12
  errorManifest.validationFailedErrorSchema,
13
13
  errorManifest.authCodeExpiredErrorSchema,
@@ -1,6 +1,6 @@
1
1
  export declare const publicGroup: {
2
2
  auth: {
3
- refreshAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
3
+ refreshAuthCode: 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
6
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -216,7 +216,7 @@ export declare const marcoSDK: {
216
216
  };
217
217
  public: {
218
218
  auth: {
219
- refreshAuthCode: import("..").EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
219
+ refreshAuthCode: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
220
220
  readonly refreshToken: import("valibot").StringSchema<undefined>;
221
221
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
222
222
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.145",
3
+ "version": "2.0.146",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1 +0,0 @@
1
- {"version":3,"file":"refreshAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/refreshAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}