@marcoappio/marco-config 2.0.145 → 2.0.147
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 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/index.js +2 -2
- package/dist/sdk/endpoints/public/auth/{refreshAuthCode.d.ts → refreshAuth.d.ts} +2 -2
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/{refreshAuthCode.js → refreshAuth.js} +2 -2
- package/dist/sdk/endpoints/public/index.d.ts +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuthCode.d.ts.map +0 -1
|
@@ -217,7 +217,7 @@ export declare const endpoints: {
|
|
|
217
217
|
};
|
|
218
218
|
public: {
|
|
219
219
|
auth: {
|
|
220
|
-
|
|
220
|
+
refreshAuth: 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
|
-
|
|
2
|
+
refreshAuth: 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 {
|
|
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
|
-
|
|
5
|
+
refreshAuth,
|
|
6
6
|
sendAuthCode,
|
|
7
7
|
verifyAuthCode,
|
|
8
8
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const
|
|
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=
|
|
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
|
|
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
|
|
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
|
-
|
|
3
|
+
refreshAuth: 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>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ export declare const marcoSDK: {
|
|
|
216
216
|
};
|
|
217
217
|
public: {
|
|
218
218
|
auth: {
|
|
219
|
-
|
|
219
|
+
refreshAuth: 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 +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"}
|