@marcoappio/marco-config 2.0.143 → 2.0.145

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,6 +217,37 @@ export declare const endpoints: {
217
217
  };
218
218
  public: {
219
219
  auth: {
220
+ refreshAuthCode: EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
221
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
222
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
223
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
224
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
225
+ }, undefined>, import("valibot").ObjectSchema<{
226
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
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>;
233
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
234
+ }, undefined>, import("valibot").ObjectSchema<{
235
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
236
+ 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
+ }, undefined>, import("valibot").ObjectSchema<{
241
+ readonly data: import("valibot").ObjectSchema<{
242
+ readonly accessToken: import("valibot").StringSchema<undefined>;
243
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
244
+ readonly user: import("valibot").ObjectSchema<{
245
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
246
+ readonly id: import("valibot").StringSchema<undefined>;
247
+ }, undefined>;
248
+ }, undefined>;
249
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
250
+ }, undefined>], undefined>>;
220
251
  sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
221
252
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
222
253
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
@@ -254,8 +285,14 @@ export declare const endpoints: {
254
285
  readonly accessToken: import("valibot").StringSchema<undefined>;
255
286
  readonly refreshToken: import("valibot").StringSchema<undefined>;
256
287
  readonly user: import("valibot").ObjectSchema<{
288
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
257
289
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
290
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
291
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
258
292
  readonly id: import("valibot").StringSchema<undefined>;
293
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
294
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
295
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
259
296
  }, undefined>;
260
297
  }, undefined>;
261
298
  readonly status: import("valibot").LiteralSchema<200, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
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"}
@@ -1,4 +1,35 @@
1
1
  export declare const auth: {
2
+ refreshAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
3
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
4
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
5
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
6
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
7
+ }, undefined>, import("valibot").ObjectSchema<{
8
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
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>;
15
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
16
+ }, undefined>, import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
18
+ 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
+ }, undefined>, import("valibot").ObjectSchema<{
23
+ readonly data: import("valibot").ObjectSchema<{
24
+ readonly accessToken: import("valibot").StringSchema<undefined>;
25
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
26
+ readonly user: import("valibot").ObjectSchema<{
27
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly id: import("valibot").StringSchema<undefined>;
29
+ }, undefined>;
30
+ }, undefined>;
31
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
32
+ }, undefined>], undefined>>;
2
33
  sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
3
34
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
4
35
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
@@ -36,8 +67,14 @@ export declare const auth: {
36
67
  readonly accessToken: import("valibot").StringSchema<undefined>;
37
68
  readonly refreshToken: import("valibot").StringSchema<undefined>;
38
69
  readonly user: import("valibot").ObjectSchema<{
70
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
39
71
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
72
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
73
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
40
74
  readonly id: import("valibot").StringSchema<undefined>;
75
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
76
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
77
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
41
78
  }, undefined>;
42
79
  }, undefined>;
43
80
  readonly status: import("valibot").LiteralSchema<200, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
@@ -1,6 +1,8 @@
1
+ import { refreshAuthCode } from '../../../../sdk/endpoints/public/auth/refreshAuthCode';
1
2
  import { sendAuthCode } from './sendAuthCode';
2
3
  import { verifyAuthCode } from './verifyAuthCode';
3
4
  export const auth = {
5
+ refreshAuthCode,
4
6
  sendAuthCode,
5
7
  verifyAuthCode,
6
8
  };
@@ -0,0 +1,33 @@
1
+ import * as v from 'valibot';
2
+ export declare const refreshAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh-code", v.ObjectSchema<{
3
+ readonly refreshToken: v.StringSchema<undefined>;
4
+ }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
6
+ readonly status: v.LiteralSchema<400, undefined>;
7
+ }, undefined>, v.ObjectSchema<{
8
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
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>;
15
+ readonly status: v.LiteralSchema<401, undefined>;
16
+ }, undefined>, v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
18
+ 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
+ }, undefined>, v.ObjectSchema<{
23
+ readonly data: v.ObjectSchema<{
24
+ readonly accessToken: v.StringSchema<undefined>;
25
+ readonly refreshToken: v.StringSchema<undefined>;
26
+ readonly user: v.ObjectSchema<{
27
+ readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly id: v.StringSchema<undefined>;
29
+ }, undefined>;
30
+ }, undefined>;
31
+ readonly status: v.LiteralSchema<200, undefined>;
32
+ }, undefined>], undefined>>;
33
+ //# sourceMappingURL=refreshAuthCode.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,30 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../schemas';
3
+ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
+ import { errorManifest } from '../../../../sdk/validation/errors';
5
+ export const refreshAuthCode = createEndpoint({
6
+ body: v.object({
7
+ refreshToken: v.string(),
8
+ }),
9
+ method: 'POST',
10
+ path: '/v1/pb/auth/refresh-code',
11
+ response: v.union([
12
+ errorManifest.validationFailedErrorSchema,
13
+ errorManifest.authCodeExpiredErrorSchema,
14
+ errorManifest.authCodePreviouslyUsedErrorSchema,
15
+ errorManifest.authTooManyAttemptsErrorSchema,
16
+ errorManifest.authServerResponseUnexpectedErrorSchema,
17
+ errorManifest.userNotFoundErrorSchema,
18
+ v.object({
19
+ data: v.object({
20
+ accessToken: v.string(),
21
+ refreshToken: v.string(),
22
+ user: v.object({
23
+ email: marcoSchemas.string.email(),
24
+ id: v.string(),
25
+ }),
26
+ }),
27
+ status: v.literal(200),
28
+ }),
29
+ ]),
30
+ });
@@ -25,8 +25,14 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
25
25
  readonly accessToken: v.StringSchema<undefined>;
26
26
  readonly refreshToken: v.StringSchema<undefined>;
27
27
  readonly user: v.ObjectSchema<{
28
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
29
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
30
+ readonly emailVerified: v.BooleanSchema<undefined>;
31
+ readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
29
32
  readonly id: v.StringSchema<undefined>;
33
+ readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
34
+ readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
30
36
  }, undefined>;
31
37
  }, undefined>;
32
38
  readonly status: v.LiteralSchema<200, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA0BzB,CAAA"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgCzB,CAAA"}
@@ -21,8 +21,14 @@ export const verifyAuthCode = createEndpoint({
21
21
  accessToken: v.string(),
22
22
  refreshToken: v.string(),
23
23
  user: v.object({
24
+ createdAt: marcoSchemas.string.required(),
24
25
  email: marcoSchemas.string.email(),
26
+ emailVerified: v.boolean(),
27
+ firstName: marcoSchemas.string.nullable(),
25
28
  id: v.string(),
29
+ lastName: marcoSchemas.string.nullable(),
30
+ profilePictureUrl: marcoSchemas.string.nullable(),
31
+ updatedAt: marcoSchemas.string.required(),
26
32
  }),
27
33
  }),
28
34
  status: v.literal(200),
@@ -1,5 +1,36 @@
1
1
  export declare const publicGroup: {
2
2
  auth: {
3
+ refreshAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
4
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
5
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
8
+ }, undefined>, import("valibot").ObjectSchema<{
9
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
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>;
16
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
17
+ }, undefined>, import("valibot").ObjectSchema<{
18
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
19
+ 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
+ }, undefined>, import("valibot").ObjectSchema<{
24
+ readonly data: import("valibot").ObjectSchema<{
25
+ readonly accessToken: import("valibot").StringSchema<undefined>;
26
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
27
+ readonly user: import("valibot").ObjectSchema<{
28
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
29
+ readonly id: import("valibot").StringSchema<undefined>;
30
+ }, undefined>;
31
+ }, undefined>;
32
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
33
+ }, undefined>], undefined>>;
3
34
  sendAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
4
35
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
5
36
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
@@ -37,8 +68,14 @@ export declare const publicGroup: {
37
68
  readonly accessToken: import("valibot").StringSchema<undefined>;
38
69
  readonly refreshToken: import("valibot").StringSchema<undefined>;
39
70
  readonly user: import("valibot").ObjectSchema<{
71
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
40
72
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
73
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
74
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
41
75
  readonly id: import("valibot").StringSchema<undefined>;
76
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
77
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
78
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
42
79
  }, undefined>;
43
80
  }, undefined>;
44
81
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}
@@ -216,6 +216,37 @@ export declare const marcoSDK: {
216
216
  };
217
217
  public: {
218
218
  auth: {
219
+ refreshAuthCode: import("..").EndpointConfig<"/v1/pb/auth/refresh-code", import("valibot").ObjectSchema<{
220
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
221
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
222
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
223
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
224
+ }, undefined>, import("valibot").ObjectSchema<{
225
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
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>;
232
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
233
+ }, undefined>, import("valibot").ObjectSchema<{
234
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
235
+ 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
+ }, undefined>, import("valibot").ObjectSchema<{
240
+ readonly data: import("valibot").ObjectSchema<{
241
+ readonly accessToken: import("valibot").StringSchema<undefined>;
242
+ readonly refreshToken: import("valibot").StringSchema<undefined>;
243
+ readonly user: import("valibot").ObjectSchema<{
244
+ readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
245
+ readonly id: import("valibot").StringSchema<undefined>;
246
+ }, undefined>;
247
+ }, undefined>;
248
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
249
+ }, undefined>], undefined>>;
219
250
  sendAuthCode: import("..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
220
251
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
221
252
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
@@ -253,8 +284,14 @@ export declare const marcoSDK: {
253
284
  readonly accessToken: import("valibot").StringSchema<undefined>;
254
285
  readonly refreshToken: import("valibot").StringSchema<undefined>;
255
286
  readonly user: import("valibot").ObjectSchema<{
287
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
256
288
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
289
+ readonly emailVerified: import("valibot").BooleanSchema<undefined>;
290
+ readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
257
291
  readonly id: import("valibot").StringSchema<undefined>;
292
+ readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
293
+ readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
294
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
258
295
  }, undefined>;
259
296
  }, undefined>;
260
297
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.143",
3
+ "version": "2.0.145",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",