@marcoappio/marco-config 2.0.188 → 2.0.189

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.
Files changed (81) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/sdk/endpoints/createEndpointConfig.d.ts +2 -2
  4. package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -1
  5. package/dist/sdk/endpoints/index.d.ts +159 -33
  6. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  7. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +6 -2
  8. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
  9. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -2
  10. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +6 -2
  11. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -1
  12. package/dist/sdk/endpoints/private/index.d.ts +111 -22
  13. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/sync/index.d.ts +102 -19
  15. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +11 -2
  17. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/sync/pull/account.js +3 -3
  19. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +11 -2
  20. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -3
  22. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +11 -2
  23. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -3
  25. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +55 -10
  26. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +11 -2
  28. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/sync/pull/thread.js +3 -3
  30. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +11 -2
  31. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  32. package/dist/sdk/endpoints/private/sync/pull/user.js +3 -3
  33. package/dist/sdk/endpoints/private/sync/push/account.d.ts +11 -2
  34. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  35. package/dist/sdk/endpoints/private/sync/push/account.js +3 -3
  36. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +11 -2
  37. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  38. package/dist/sdk/endpoints/private/sync/push/draft.js +3 -3
  39. package/dist/sdk/endpoints/private/sync/push/index.d.ts +47 -9
  40. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +14 -3
  42. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  43. package/dist/sdk/endpoints/private/sync/push/thread.js +4 -4
  44. package/dist/sdk/endpoints/private/sync/push/user.d.ts +11 -2
  45. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -1
  46. package/dist/sdk/endpoints/private/sync/push/user.js +3 -3
  47. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +3 -1
  48. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/private/user/deleteUser.js +2 -2
  50. package/dist/sdk/endpoints/private/user/index.d.ts +3 -1
  51. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
  52. package/dist/sdk/endpoints/public/auth/index.d.ts +48 -11
  53. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
  54. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +14 -3
  55. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
  56. package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
  57. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +11 -2
  58. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -1
  59. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +3 -3
  60. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +23 -6
  61. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
  62. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +7 -7
  63. package/dist/sdk/endpoints/public/index.d.ts +48 -11
  64. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  65. package/dist/sdk/index.d.ts +220 -33
  66. package/dist/sdk/index.d.ts.map +1 -1
  67. package/dist/sdk/validation/errors.d.ts +77 -31
  68. package/dist/sdk/validation/errors.d.ts.map +1 -1
  69. package/dist/sdk/validation/errors.js +19 -12
  70. package/dist/sdk/validation/index.d.ts +61 -0
  71. package/dist/sdk/validation/index.d.ts.map +1 -1
  72. package/dist/sdk/validation/index.js +2 -3
  73. package/dist/types/Endpoint.d.ts +4 -9
  74. package/dist/types/Endpoint.d.ts.map +1 -1
  75. package/dist/types/SDKError.d.ts +4 -0
  76. package/dist/types/SDKError.d.ts.map +1 -0
  77. package/dist/types/SDKError.js +1 -0
  78. package/dist/types/index.d.ts +1 -0
  79. package/dist/types/index.d.ts.map +1 -1
  80. package/dist/types/index.js +1 -0
  81. package/package.json +1 -1
@@ -2,13 +2,24 @@ 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
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
5
+ readonly data: import("valibot").ObjectSchema<{
6
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly issues: import("valibot").ObjectSchema<{
8
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
9
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
11
+ }, undefined>;
12
+ }, undefined>;
6
13
  readonly status: import("valibot").LiteralSchema<400, undefined>;
7
14
  }, undefined>, import("valibot").ObjectSchema<{
8
- readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
15
+ readonly data: import("valibot").ObjectSchema<{
16
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
17
+ }, undefined>;
9
18
  readonly status: import("valibot").LiteralSchema<401, undefined>;
10
19
  }, undefined>, import("valibot").ObjectSchema<{
11
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
20
+ readonly data: import("valibot").ObjectSchema<{
21
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
22
+ }, undefined>;
12
23
  readonly status: import("valibot").LiteralSchema<502, undefined>;
13
24
  }, undefined>, import("valibot").ObjectSchema<{
14
25
  readonly data: import("valibot").ObjectSchema<{
@@ -30,10 +41,19 @@ export declare const auth: {
30
41
  sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
31
42
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
32
43
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
33
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
44
+ readonly data: import("valibot").ObjectSchema<{
45
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
46
+ readonly issues: import("valibot").ObjectSchema<{
47
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
48
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
49
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
50
+ }, undefined>;
51
+ }, undefined>;
34
52
  readonly status: import("valibot").LiteralSchema<400, undefined>;
35
53
  }, undefined>, import("valibot").ObjectSchema<{
36
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
54
+ readonly data: import("valibot").ObjectSchema<{
55
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
56
+ }, undefined>;
37
57
  readonly status: import("valibot").LiteralSchema<502, undefined>;
38
58
  }, undefined>, import("valibot").ObjectSchema<{
39
59
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -42,22 +62,39 @@ export declare const auth: {
42
62
  readonly code: import("valibot").StringSchema<undefined>;
43
63
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
44
64
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
45
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
65
+ readonly data: import("valibot").ObjectSchema<{
66
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
67
+ readonly issues: import("valibot").ObjectSchema<{
68
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
69
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
70
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
71
+ }, undefined>;
72
+ }, undefined>;
46
73
  readonly status: import("valibot").LiteralSchema<400, undefined>;
47
74
  }, undefined>, import("valibot").ObjectSchema<{
48
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
75
+ readonly data: import("valibot").ObjectSchema<{
76
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
77
+ }, undefined>;
49
78
  readonly status: import("valibot").LiteralSchema<401, undefined>;
50
79
  }, undefined>, import("valibot").ObjectSchema<{
51
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
80
+ readonly data: import("valibot").ObjectSchema<{
81
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
82
+ }, undefined>;
52
83
  readonly status: import("valibot").LiteralSchema<401, undefined>;
53
84
  }, undefined>, import("valibot").ObjectSchema<{
54
- readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
85
+ readonly data: import("valibot").ObjectSchema<{
86
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
87
+ }, undefined>;
55
88
  readonly status: import("valibot").LiteralSchema<401, undefined>;
56
89
  }, undefined>, import("valibot").ObjectSchema<{
57
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
90
+ readonly data: import("valibot").ObjectSchema<{
91
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
92
+ }, undefined>;
58
93
  readonly status: import("valibot").LiteralSchema<502, undefined>;
59
94
  }, undefined>, import("valibot").ObjectSchema<{
60
- readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
95
+ readonly data: import("valibot").ObjectSchema<{
96
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
97
+ }, undefined>;
61
98
  readonly status: import("valibot").LiteralSchema<404, undefined>;
62
99
  }, undefined>, import("valibot").ObjectSchema<{
63
100
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
@@ -2,13 +2,24 @@ import * as v from 'valibot';
2
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
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly issues: v.ObjectSchema<{
8
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
9
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
11
+ }, undefined>;
12
+ }, undefined>;
6
13
  readonly status: v.LiteralSchema<400, undefined>;
7
14
  }, undefined>, v.ObjectSchema<{
8
- readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
17
+ }, undefined>;
9
18
  readonly status: v.LiteralSchema<401, undefined>;
10
19
  }, undefined>, v.ObjectSchema<{
11
- readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
22
+ }, undefined>;
12
23
  readonly status: v.LiteralSchema<502, undefined>;
13
24
  }, undefined>, v.ObjectSchema<{
14
25
  readonly data: v.ObjectSchema<{
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4BtB,CAAA"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA4BtB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../../../schemas';
3
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../sdk/validation/errors';
5
5
  export const refreshAuth = createEndpoint({
6
6
  body: v.object({
7
7
  refreshToken: v.string(),
@@ -9,9 +9,9 @@ export const refreshAuth = createEndpoint({
9
9
  method: 'POST',
10
10
  path: '/v1/pb/auth/refresh',
11
11
  response: v.union([
12
- errorManifest.validationFailedErrorSchema,
13
- errorManifest.authRefreshTokenInvalid,
14
- errorManifest.authServerResponseUnexpectedErrorSchema,
12
+ errors.validationFailedErrorSchema,
13
+ errors.authRefreshTokenInvalid,
14
+ errors.authServerResponseUnexpectedErrorSchema,
15
15
  v.object({
16
16
  data: v.object({
17
17
  accessToken: v.string(),
@@ -2,10 +2,19 @@ import * as v from 'valibot';
2
2
  export declare const sendAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/send-code", v.ObjectSchema<{
3
3
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
4
4
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
7
+ readonly issues: v.ObjectSchema<{
8
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
9
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
11
+ }, undefined>;
12
+ }, undefined>;
6
13
  readonly status: v.LiteralSchema<400, undefined>;
7
14
  }, undefined>, v.ObjectSchema<{
8
- readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
17
+ }, undefined>;
9
18
  readonly status: v.LiteralSchema<502, undefined>;
10
19
  }, undefined>, v.ObjectSchema<{
11
20
  readonly status: v.LiteralSchema<200, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"sendAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/sendAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;2BAavB,CAAA"}
1
+ {"version":3,"file":"sendAuthCode.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/sendAuthCode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;2BAavB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../../../schemas';
3
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../sdk/validation/errors';
5
5
  export const sendAuthCode = createEndpoint({
6
6
  body: v.object({
7
7
  email: marcoSchemas.string.email(),
@@ -9,8 +9,8 @@ export const sendAuthCode = createEndpoint({
9
9
  method: 'POST',
10
10
  path: '/v1/pb/auth/send-code',
11
11
  response: v.union([
12
- errorManifest.validationFailedErrorSchema,
13
- errorManifest.authServerResponseUnexpectedErrorSchema,
12
+ errors.validationFailedErrorSchema,
13
+ errors.authServerResponseUnexpectedErrorSchema,
14
14
  v.object({
15
15
  status: v.literal(200),
16
16
  }),
@@ -3,22 +3,39 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
3
3
  readonly code: v.StringSchema<undefined>;
4
4
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
8
+ readonly issues: v.ObjectSchema<{
9
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly other: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
11
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
12
+ }, undefined>;
13
+ }, undefined>;
7
14
  readonly status: v.LiteralSchema<400, undefined>;
8
15
  }, undefined>, v.ObjectSchema<{
9
- readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
18
+ }, undefined>;
10
19
  readonly status: v.LiteralSchema<401, undefined>;
11
20
  }, undefined>, v.ObjectSchema<{
12
- readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
23
+ }, undefined>;
13
24
  readonly status: v.LiteralSchema<401, undefined>;
14
25
  }, undefined>, v.ObjectSchema<{
15
- readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
28
+ }, undefined>;
16
29
  readonly status: v.LiteralSchema<401, undefined>;
17
30
  }, undefined>, v.ObjectSchema<{
18
- readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
31
+ readonly data: v.ObjectSchema<{
32
+ readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
33
+ }, undefined>;
19
34
  readonly status: v.LiteralSchema<502, undefined>;
20
35
  }, undefined>, v.ObjectSchema<{
21
- readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
36
+ readonly data: v.ObjectSchema<{
37
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
38
+ }, undefined>;
22
39
  readonly status: v.LiteralSchema<404, undefined>;
23
40
  }, undefined>, v.ObjectSchema<{
24
41
  readonly data: v.ObjectSchema<{
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgCzB,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"}
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../../../../schemas';
3
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
- import { errorManifest } from '../../../../sdk/validation/errors';
4
+ import { errors } from '../../../../sdk/validation/errors';
5
5
  export const verifyAuthCode = createEndpoint({
6
6
  body: v.object({
7
7
  code: v.string(),
@@ -10,12 +10,12 @@ export const verifyAuthCode = createEndpoint({
10
10
  method: 'POST',
11
11
  path: '/v1/pb/auth/verify-code',
12
12
  response: v.union([
13
- errorManifest.validationFailedErrorSchema,
14
- errorManifest.authCodeExpiredErrorSchema,
15
- errorManifest.authCodePreviouslyUsedErrorSchema,
16
- errorManifest.authTooManyAttemptsErrorSchema,
17
- errorManifest.authServerResponseUnexpectedErrorSchema,
18
- errorManifest.userNotFoundErrorSchema,
13
+ errors.validationFailedErrorSchema,
14
+ errors.authCodeExpiredErrorSchema,
15
+ errors.authCodePreviouslyUsedErrorSchema,
16
+ errors.authTooManyAttemptsErrorSchema,
17
+ errors.authServerResponseUnexpectedErrorSchema,
18
+ errors.userNotFoundErrorSchema,
19
19
  v.object({
20
20
  data: v.object({
21
21
  accessToken: v.string(),
@@ -3,13 +3,24 @@ export declare const publicGroup: {
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
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
6
+ readonly data: import("valibot").ObjectSchema<{
7
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
8
+ readonly issues: import("valibot").ObjectSchema<{
9
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
10
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
11
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
12
+ }, undefined>;
13
+ }, undefined>;
7
14
  readonly status: import("valibot").LiteralSchema<400, undefined>;
8
15
  }, undefined>, import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
16
+ readonly data: import("valibot").ObjectSchema<{
17
+ readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
18
+ }, undefined>;
10
19
  readonly status: import("valibot").LiteralSchema<401, undefined>;
11
20
  }, undefined>, import("valibot").ObjectSchema<{
12
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
21
+ readonly data: import("valibot").ObjectSchema<{
22
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
23
+ }, undefined>;
13
24
  readonly status: import("valibot").LiteralSchema<502, undefined>;
14
25
  }, undefined>, import("valibot").ObjectSchema<{
15
26
  readonly data: import("valibot").ObjectSchema<{
@@ -31,10 +42,19 @@ export declare const publicGroup: {
31
42
  sendAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
32
43
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
33
44
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
34
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
45
+ readonly data: import("valibot").ObjectSchema<{
46
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
47
+ readonly issues: import("valibot").ObjectSchema<{
48
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
49
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
50
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
51
+ }, undefined>;
52
+ }, undefined>;
35
53
  readonly status: import("valibot").LiteralSchema<400, undefined>;
36
54
  }, undefined>, import("valibot").ObjectSchema<{
37
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
55
+ readonly data: import("valibot").ObjectSchema<{
56
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
57
+ }, undefined>;
38
58
  readonly status: import("valibot").LiteralSchema<502, undefined>;
39
59
  }, undefined>, import("valibot").ObjectSchema<{
40
60
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -43,22 +63,39 @@ export declare const publicGroup: {
43
63
  readonly code: import("valibot").StringSchema<undefined>;
44
64
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
45
65
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
46
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
66
+ readonly data: import("valibot").ObjectSchema<{
67
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
68
+ readonly issues: import("valibot").ObjectSchema<{
69
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
70
+ readonly other: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>;
71
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
72
+ }, undefined>;
73
+ }, undefined>;
47
74
  readonly status: import("valibot").LiteralSchema<400, undefined>;
48
75
  }, undefined>, import("valibot").ObjectSchema<{
49
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
76
+ readonly data: import("valibot").ObjectSchema<{
77
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
78
+ }, undefined>;
50
79
  readonly status: import("valibot").LiteralSchema<401, undefined>;
51
80
  }, undefined>, import("valibot").ObjectSchema<{
52
- readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
81
+ readonly data: import("valibot").ObjectSchema<{
82
+ readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
83
+ }, undefined>;
53
84
  readonly status: import("valibot").LiteralSchema<401, undefined>;
54
85
  }, undefined>, import("valibot").ObjectSchema<{
55
- readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
86
+ readonly data: import("valibot").ObjectSchema<{
87
+ readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
88
+ }, undefined>;
56
89
  readonly status: import("valibot").LiteralSchema<401, undefined>;
57
90
  }, undefined>, import("valibot").ObjectSchema<{
58
- readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
91
+ readonly data: import("valibot").ObjectSchema<{
92
+ readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
93
+ }, undefined>;
59
94
  readonly status: import("valibot").LiteralSchema<502, undefined>;
60
95
  }, undefined>, import("valibot").ObjectSchema<{
61
- readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
96
+ readonly data: import("valibot").ObjectSchema<{
97
+ readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
98
+ }, undefined>;
62
99
  readonly status: import("valibot").LiteralSchema<404, undefined>;
63
100
  }, undefined>, import("valibot").ObjectSchema<{
64
101
  readonly data: import("valibot").ObjectSchema<{
@@ -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"}