@marcoappio/marco-config 6.0.4 → 7.1.0
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/schemas/index.d.ts +6 -4
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.d.ts +6 -4
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -1
- package/dist/schemas/mutators/mutatorSchemas.js +5 -10
- package/dist/sdk/endpoints/index.d.ts +134 -2
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +10 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +10 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +3 -1
- package/dist/sdk/endpoints/private/index.d.ts +10 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +3 -2
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +3 -2
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts +17 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/deleteSession.js +14 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts +123 -0
- package/dist/sdk/endpoints/public/auth/browser/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts +40 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/refreshAuth.js +14 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts +82 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/schemas.js +25 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts +69 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/browser/verifyAuthCode.js +21 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +124 -2
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.js +2 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +2 -14
- package/dist/sdk/endpoints/public/auth/schemas.d.ts +39 -0
- package/dist/sdk/endpoints/public/auth/schemas.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/schemas.js +20 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +2 -14
- package/dist/sdk/endpoints/public/index.d.ts +124 -2
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +146 -2
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +24 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +10 -0
- package/dist/sdk/validation/index.d.ts +12 -0
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +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 { legacyAuthResponseDataSchema } from '../../../../sdk/endpoints/public/auth/schemas';
|
|
4
5
|
import { errors } from '../../../../sdk/validation/errors';
|
|
5
6
|
export const refreshAuth = createEndpoint({
|
|
6
7
|
body: v.object({
|
|
@@ -13,20 +14,7 @@ export const refreshAuth = createEndpoint({
|
|
|
13
14
|
errors.authRefreshTokenInvalid,
|
|
14
15
|
errors.authServerResponseUnexpectedErrorSchema,
|
|
15
16
|
v.object({
|
|
16
|
-
data:
|
|
17
|
-
accessToken: v.string(),
|
|
18
|
-
refreshToken: v.string(),
|
|
19
|
-
user: v.object({
|
|
20
|
-
createdAt: marcoSchemas.string.required(),
|
|
21
|
-
email: marcoSchemas.string.email(),
|
|
22
|
-
emailVerified: v.boolean(),
|
|
23
|
-
firstName: marcoSchemas.string.nullable(),
|
|
24
|
-
id: marcoSchemas.string.required(),
|
|
25
|
-
lastName: marcoSchemas.string.nullable(),
|
|
26
|
-
profilePictureUrl: marcoSchemas.string.nullable(),
|
|
27
|
-
updatedAt: marcoSchemas.string.required(),
|
|
28
|
-
}),
|
|
29
|
-
}),
|
|
17
|
+
data: legacyAuthResponseDataSchema,
|
|
30
18
|
status: v.literal(200),
|
|
31
19
|
}),
|
|
32
20
|
]),
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const authUserSchema: v.ObjectSchema<{
|
|
3
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
4
|
+
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
5
|
+
readonly emailVerified: v.BooleanSchema<undefined>;
|
|
6
|
+
readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
+
readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
+
readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
|
+
}, undefined>;
|
|
12
|
+
export declare const authResponseDataEntries: {
|
|
13
|
+
accessToken: v.StringSchema<undefined>;
|
|
14
|
+
user: v.ObjectSchema<{
|
|
15
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
16
|
+
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
17
|
+
readonly emailVerified: v.BooleanSchema<undefined>;
|
|
18
|
+
readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
20
|
+
readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
+
readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
};
|
|
25
|
+
export declare const legacyAuthResponseDataSchema: v.ObjectSchema<{
|
|
26
|
+
readonly refreshToken: v.StringSchema<undefined>;
|
|
27
|
+
readonly accessToken: v.StringSchema<undefined>;
|
|
28
|
+
readonly user: v.ObjectSchema<{
|
|
29
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
31
|
+
readonly emailVerified: v.BooleanSchema<undefined>;
|
|
32
|
+
readonly firstName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
+
readonly lastName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,cAAc;;;;;;;;;aASzB,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;CAGnC,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;aAGvC,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../schemas';
|
|
3
|
+
export const authUserSchema = v.object({
|
|
4
|
+
createdAt: marcoSchemas.string.required(),
|
|
5
|
+
email: marcoSchemas.string.email(),
|
|
6
|
+
emailVerified: v.boolean(),
|
|
7
|
+
firstName: marcoSchemas.string.nullable(),
|
|
8
|
+
id: marcoSchemas.string.required(),
|
|
9
|
+
lastName: marcoSchemas.string.nullable(),
|
|
10
|
+
profilePictureUrl: marcoSchemas.string.nullable(),
|
|
11
|
+
updatedAt: marcoSchemas.string.required(),
|
|
12
|
+
});
|
|
13
|
+
export const authResponseDataEntries = {
|
|
14
|
+
accessToken: v.string(),
|
|
15
|
+
user: authUserSchema,
|
|
16
|
+
};
|
|
17
|
+
export const legacyAuthResponseDataSchema = v.object({
|
|
18
|
+
...authResponseDataEntries,
|
|
19
|
+
refreshToken: v.string(),
|
|
20
|
+
});
|
|
@@ -50,8 +50,8 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
|
|
|
50
50
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
51
51
|
}, undefined>, v.ObjectSchema<{
|
|
52
52
|
readonly data: v.ObjectSchema<{
|
|
53
|
-
readonly accessToken: v.StringSchema<undefined>;
|
|
54
53
|
readonly refreshToken: v.StringSchema<undefined>;
|
|
54
|
+
readonly accessToken: v.StringSchema<undefined>;
|
|
55
55
|
readonly user: v.ObjectSchema<{
|
|
56
56
|
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
57
57
|
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, 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;
|
|
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;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkBzB,CAAA"}
|
|
@@ -1,6 +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 { legacyAuthResponseDataSchema } from '../../../../sdk/endpoints/public/auth/schemas';
|
|
4
5
|
import { errors } from '../../../../sdk/validation/errors';
|
|
5
6
|
export const verifyAuthCode = createEndpoint({
|
|
6
7
|
body: marcoSchemas.auth.code,
|
|
@@ -16,20 +17,7 @@ export const verifyAuthCode = createEndpoint({
|
|
|
16
17
|
errors.userNotFoundErrorSchema,
|
|
17
18
|
errors.userMarkedForDeletionErrorSchema,
|
|
18
19
|
v.object({
|
|
19
|
-
data:
|
|
20
|
-
accessToken: v.string(),
|
|
21
|
-
refreshToken: v.string(),
|
|
22
|
-
user: v.object({
|
|
23
|
-
createdAt: marcoSchemas.string.required(),
|
|
24
|
-
email: marcoSchemas.string.email(),
|
|
25
|
-
emailVerified: v.boolean(),
|
|
26
|
-
firstName: marcoSchemas.string.nullable(),
|
|
27
|
-
id: marcoSchemas.string.required(),
|
|
28
|
-
lastName: marcoSchemas.string.nullable(),
|
|
29
|
-
profilePictureUrl: marcoSchemas.string.nullable(),
|
|
30
|
-
updatedAt: marcoSchemas.string.required(),
|
|
31
|
-
}),
|
|
32
|
-
}),
|
|
20
|
+
data: legacyAuthResponseDataSchema,
|
|
33
21
|
status: v.literal(200),
|
|
34
22
|
}),
|
|
35
23
|
]),
|
|
@@ -1,5 +1,127 @@
|
|
|
1
1
|
export declare const publicGroup: {
|
|
2
2
|
auth: {
|
|
3
|
+
browser: {
|
|
4
|
+
deleteSession: import("../../..").EndpointConfig<"/v1/pb/auth/browser/session", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
5
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
6
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
7
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
9
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
10
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
11
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
12
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
17
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
18
|
+
}, undefined>], undefined>>;
|
|
19
|
+
refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/browser/refresh", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
20
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
21
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
22
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
23
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
24
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
32
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
33
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
36
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
37
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
38
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
41
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
42
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
43
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
44
|
+
user: import("valibot").ObjectSchema<{
|
|
45
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
47
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
48
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
+
}, undefined>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
56
|
+
}, undefined>], undefined>>;
|
|
57
|
+
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
|
|
58
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
59
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
60
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
61
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
62
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
63
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
64
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
65
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
66
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
67
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
68
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
69
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
}, undefined>;
|
|
72
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
73
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
74
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
75
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
78
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
79
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
80
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
81
|
+
}, undefined>;
|
|
82
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
83
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
84
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
85
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
88
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
89
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
93
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
94
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
95
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
98
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
99
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
100
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
101
|
+
}, undefined>;
|
|
102
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
103
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
104
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
105
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
108
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
109
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
110
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
111
|
+
user: import("valibot").ObjectSchema<{
|
|
112
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
113
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
114
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
115
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
116
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
117
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
118
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
119
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
120
|
+
}, undefined>;
|
|
121
|
+
}, undefined>;
|
|
122
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
123
|
+
}, undefined>], undefined>>;
|
|
124
|
+
};
|
|
3
125
|
refreshAuth: import("../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
4
126
|
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
127
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -24,8 +146,8 @@ export declare const publicGroup: {
|
|
|
24
146
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
25
147
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
148
|
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
28
149
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
150
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
29
151
|
readonly user: import("valibot").ObjectSchema<{
|
|
30
152
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
153
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -115,8 +237,8 @@ export declare const publicGroup: {
|
|
|
115
237
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
116
238
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
117
239
|
readonly data: import("valibot").ObjectSchema<{
|
|
118
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
119
240
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
241
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
120
242
|
readonly user: import("valibot").ObjectSchema<{
|
|
121
243
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
122
244
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -12,11 +12,21 @@ export declare const marcoSDK: {
|
|
|
12
12
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
13
13
|
}, undefined>;
|
|
14
14
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
15
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
17
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
15
20
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
16
21
|
readonly data: import("valibot").ObjectSchema<{
|
|
17
22
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
18
23
|
}, undefined>;
|
|
19
24
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
25
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
27
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
readonly status: import("valibot").LiteralSchema<500, undefined>;
|
|
20
30
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
21
31
|
readonly data: import("valibot").ObjectSchema<{
|
|
22
32
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
@@ -104,6 +114,128 @@ export declare const marcoSDK: {
|
|
|
104
114
|
};
|
|
105
115
|
public: {
|
|
106
116
|
auth: {
|
|
117
|
+
browser: {
|
|
118
|
+
deleteSession: import("..").EndpointConfig<"/v1/pb/auth/browser/session", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
119
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
120
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
121
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
122
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
123
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
124
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
125
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
126
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
127
|
+
}, undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
130
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
131
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
132
|
+
}, undefined>], undefined>>;
|
|
133
|
+
refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/browser/refresh", import("valibot").GenericSchema | undefined, import("valibot").StrictObjectSchema<{
|
|
134
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
135
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
136
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
137
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
138
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
139
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
140
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
141
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
142
|
+
}, undefined>;
|
|
143
|
+
}, undefined>;
|
|
144
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
145
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
146
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
147
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
148
|
+
}, undefined>;
|
|
149
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
150
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
151
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
152
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
153
|
+
}, undefined>;
|
|
154
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
155
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
156
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
157
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
158
|
+
user: import("valibot").ObjectSchema<{
|
|
159
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
160
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
161
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
162
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
163
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
164
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
165
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
166
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
167
|
+
}, undefined>;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
170
|
+
}, undefined>], undefined>>;
|
|
171
|
+
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/browser/verify-code", import("valibot").ObjectSchema<{
|
|
172
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
173
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
174
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
175
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
176
|
+
readonly sessionGeneration: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>;
|
|
177
|
+
}, undefined>, import("valibot").UnionSchema<[import("valibot").StrictObjectSchema<{
|
|
178
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
179
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
180
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
181
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
182
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
183
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
184
|
+
}, undefined>;
|
|
185
|
+
}, undefined>;
|
|
186
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
187
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
188
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
189
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
190
|
+
}, undefined>;
|
|
191
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
192
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
193
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
194
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
195
|
+
}, undefined>;
|
|
196
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
197
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
198
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
199
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
200
|
+
}, undefined>;
|
|
201
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
202
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
203
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
204
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
205
|
+
}, undefined>;
|
|
206
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
207
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
208
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
209
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
210
|
+
}, undefined>;
|
|
211
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
212
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
213
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
214
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
215
|
+
}, undefined>;
|
|
216
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
217
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
218
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
219
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
220
|
+
}, undefined>;
|
|
221
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
222
|
+
}, undefined>, import("valibot").StrictObjectSchema<{
|
|
223
|
+
readonly data: import("valibot").StrictObjectSchema<{
|
|
224
|
+
accessToken: import("valibot").StringSchema<undefined>;
|
|
225
|
+
user: import("valibot").ObjectSchema<{
|
|
226
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
227
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
228
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
229
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
230
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
231
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
232
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
233
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
234
|
+
}, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
237
|
+
}, undefined>], undefined>>;
|
|
238
|
+
};
|
|
107
239
|
refreshAuth: import("..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
108
240
|
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
109
241
|
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
@@ -128,8 +260,8 @@ export declare const marcoSDK: {
|
|
|
128
260
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
129
261
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
130
262
|
readonly data: import("valibot").ObjectSchema<{
|
|
131
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
132
263
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
264
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
133
265
|
readonly user: import("valibot").ObjectSchema<{
|
|
134
266
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
135
267
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -219,8 +351,8 @@ export declare const marcoSDK: {
|
|
|
219
351
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
220
352
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
221
353
|
readonly data: import("valibot").ObjectSchema<{
|
|
222
|
-
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
223
354
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
355
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
224
356
|
readonly user: import("valibot").ObjectSchema<{
|
|
225
357
|
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
226
358
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
@@ -271,12 +403,24 @@ export declare const marcoSDK: {
|
|
|
271
403
|
}, undefined>;
|
|
272
404
|
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
273
405
|
}, undefined>;
|
|
406
|
+
readonly attachmentSizeMismatchErrorSchema: import("valibot").ObjectSchema<{
|
|
407
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
408
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
409
|
+
}, undefined>;
|
|
410
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
411
|
+
}, undefined>;
|
|
274
412
|
readonly attachmentStateInvalidErrorSchema: import("valibot").ObjectSchema<{
|
|
275
413
|
readonly data: import("valibot").ObjectSchema<{
|
|
276
414
|
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
277
415
|
}, undefined>;
|
|
278
416
|
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
279
417
|
}, undefined>;
|
|
418
|
+
readonly attachmentUploadFailedErrorSchema: import("valibot").ObjectSchema<{
|
|
419
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
420
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
421
|
+
}, undefined>;
|
|
422
|
+
readonly status: import("valibot").LiteralSchema<500, undefined>;
|
|
423
|
+
}, undefined>;
|
|
280
424
|
readonly authCodeExpiredErrorSchema: import("valibot").ObjectSchema<{
|
|
281
425
|
readonly data: import("valibot").ObjectSchema<{
|
|
282
426
|
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -77,6 +77,18 @@ export declare const attachmentStateInvalidErrorSchema: v.ObjectSchema<{
|
|
|
77
77
|
}, undefined>;
|
|
78
78
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
79
79
|
}, undefined>;
|
|
80
|
+
export declare const attachmentSizeMismatchErrorSchema: v.ObjectSchema<{
|
|
81
|
+
readonly data: v.ObjectSchema<{
|
|
82
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
83
|
+
}, undefined>;
|
|
84
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
85
|
+
}, undefined>;
|
|
86
|
+
export declare const attachmentUploadFailedErrorSchema: v.ObjectSchema<{
|
|
87
|
+
readonly data: v.ObjectSchema<{
|
|
88
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
89
|
+
}, undefined>;
|
|
90
|
+
readonly status: v.LiteralSchema<500, undefined>;
|
|
91
|
+
}, undefined>;
|
|
80
92
|
export declare const accountNotFoundErrorSchema: v.ObjectSchema<{
|
|
81
93
|
readonly data: v.ObjectSchema<{
|
|
82
94
|
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
@@ -179,12 +191,24 @@ export declare const errors: {
|
|
|
179
191
|
}, undefined>;
|
|
180
192
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
181
193
|
}, undefined>;
|
|
194
|
+
readonly attachmentSizeMismatchErrorSchema: v.ObjectSchema<{
|
|
195
|
+
readonly data: v.ObjectSchema<{
|
|
196
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_SIZE_MISMATCH", undefined>;
|
|
197
|
+
}, undefined>;
|
|
198
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
199
|
+
}, undefined>;
|
|
182
200
|
readonly attachmentStateInvalidErrorSchema: v.ObjectSchema<{
|
|
183
201
|
readonly data: v.ObjectSchema<{
|
|
184
202
|
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
185
203
|
}, undefined>;
|
|
186
204
|
readonly status: v.LiteralSchema<409, undefined>;
|
|
187
205
|
}, undefined>;
|
|
206
|
+
readonly attachmentUploadFailedErrorSchema: v.ObjectSchema<{
|
|
207
|
+
readonly data: v.ObjectSchema<{
|
|
208
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_UPLOAD_FAILED", undefined>;
|
|
209
|
+
}, undefined>;
|
|
210
|
+
readonly status: v.LiteralSchema<500, undefined>;
|
|
211
|
+
}, undefined>;
|
|
188
212
|
readonly authCodeExpiredErrorSchema: v.ObjectSchema<{
|
|
189
213
|
readonly data: v.ObjectSchema<{
|
|
190
214
|
readonly code: v.LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,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,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,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,qBAAqB;;;;;aAGhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;aAG3C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;aAGtC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;aAGpC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;aAGxC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;aAGnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;aAUtC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;aAG5C,CAAA;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BT,CAAA"}
|
|
@@ -51,6 +51,14 @@ export const attachmentStateInvalidErrorSchema = v.object({
|
|
|
51
51
|
data: v.object({ code: v.literal('ATTACHMENT_STATE_INVALID') }),
|
|
52
52
|
status: v.literal(409),
|
|
53
53
|
});
|
|
54
|
+
export const attachmentSizeMismatchErrorSchema = v.object({
|
|
55
|
+
data: v.object({ code: v.literal('ATTACHMENT_SIZE_MISMATCH') }),
|
|
56
|
+
status: v.literal(400),
|
|
57
|
+
});
|
|
58
|
+
export const attachmentUploadFailedErrorSchema = v.object({
|
|
59
|
+
data: v.object({ code: v.literal('ATTACHMENT_UPLOAD_FAILED') }),
|
|
60
|
+
status: v.literal(500),
|
|
61
|
+
});
|
|
54
62
|
export const accountNotFoundErrorSchema = v.object({
|
|
55
63
|
data: v.object({ code: v.literal('ACCOUNT_NOT_FOUND') }),
|
|
56
64
|
status: v.literal(404),
|
|
@@ -114,7 +122,9 @@ export const errors = {
|
|
|
114
122
|
accountNotFoundErrorSchema,
|
|
115
123
|
aliasNotFoundErrorSchema,
|
|
116
124
|
attachmentNotFoundErrorSchema,
|
|
125
|
+
attachmentSizeMismatchErrorSchema,
|
|
117
126
|
attachmentStateInvalidErrorSchema,
|
|
127
|
+
attachmentUploadFailedErrorSchema,
|
|
118
128
|
authCodeExpiredErrorSchema,
|
|
119
129
|
authCodeInvalidErrorSchema,
|
|
120
130
|
authCodePreviouslyUsedErrorSchema,
|