@marcoappio/marco-config 2.0.137 → 2.0.139
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/clients/account.d.ts +3 -3
- package/dist/clients/account.js +3 -3
- package/dist/clients/index.d.ts +3 -3
- package/dist/sdk/endpoints/index.d.ts +6 -3
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/index.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +3 -3
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +3 -3
- package/dist/sdk/endpoints/public/auth/index.d.ts +3 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +3 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +1 -0
- package/dist/sdk/endpoints/public/index.d.ts +3 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +6 -3
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +8 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +5 -0
- package/package.json +1 -1
|
@@ -15,9 +15,9 @@ export declare const account: {
|
|
|
15
15
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
16
16
|
readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
17
17
|
}, undefined>, undefined>;
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
18
|
+
readonly messageCounts: v.ObjectSchema<{
|
|
19
|
+
readonly complete: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
20
|
+
readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
21
21
|
}, undefined>;
|
|
22
22
|
}, undefined>;
|
|
23
23
|
mutators: {
|
package/dist/clients/account.js
CHANGED
|
@@ -17,9 +17,9 @@ export const account = {
|
|
|
17
17
|
path: marcoSchemas.string.required(),
|
|
18
18
|
specialUse: v.nullable(marcoSchemas.labelSpecialUse()),
|
|
19
19
|
})),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
messageCounts: v.object({
|
|
21
|
+
complete: v.pipe(v.number(), v.minValue(0)),
|
|
22
|
+
total: v.pipe(v.number(), v.minValue(0)),
|
|
23
23
|
}),
|
|
24
24
|
}),
|
|
25
25
|
mutators: {
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ export declare const marcoClients: {
|
|
|
16
16
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
17
17
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
18
18
|
}, undefined>, undefined>;
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly
|
|
19
|
+
readonly messageCounts: import("valibot").ObjectSchema<{
|
|
20
|
+
readonly complete: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
21
|
+
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
22
22
|
}, undefined>;
|
|
23
23
|
}, undefined>;
|
|
24
24
|
mutators: {
|
|
@@ -40,9 +40,9 @@ export declare const endpoints: {
|
|
|
40
40
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
41
41
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
42
42
|
}, undefined>, undefined>;
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly
|
|
43
|
+
readonly messageCounts: import("valibot").ObjectSchema<{
|
|
44
|
+
readonly complete: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
45
|
+
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
46
46
|
}, undefined>;
|
|
47
47
|
}, undefined>;
|
|
48
48
|
}, undefined>], undefined>, undefined>;
|
|
@@ -243,6 +243,9 @@ export declare const endpoints: {
|
|
|
243
243
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
244
244
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
245
245
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
246
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
247
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
248
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
246
249
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
247
250
|
readonly data: import("valibot").ObjectSchema<{
|
|
248
251
|
readonly accessToken: import("valibot").StringSchema<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
|
|
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"}
|
|
@@ -37,9 +37,9 @@ export declare const privateGroup: {
|
|
|
37
37
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
38
38
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
39
39
|
}, undefined>, undefined>;
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
40
|
+
readonly messageCounts: import("valibot").ObjectSchema<{
|
|
41
|
+
readonly complete: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
42
|
+
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
43
43
|
}, undefined>;
|
|
44
44
|
}, undefined>;
|
|
45
45
|
}, undefined>], undefined>, undefined>;
|
|
@@ -36,9 +36,9 @@ export declare const sync: {
|
|
|
36
36
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
37
37
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
38
38
|
}, undefined>, undefined>;
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
39
|
+
readonly messageCounts: import("valibot").ObjectSchema<{
|
|
40
|
+
readonly complete: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
41
|
+
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
42
42
|
}, undefined>;
|
|
43
43
|
}, undefined>;
|
|
44
44
|
}, undefined>], undefined>, undefined>;
|
|
@@ -35,9 +35,9 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
|
|
|
35
35
|
readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
36
|
readonly specialUse: v.NullableSchema<v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
37
37
|
}, undefined>, undefined>;
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
38
|
+
readonly messageCounts: v.ObjectSchema<{
|
|
39
|
+
readonly complete: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
40
|
+
readonly total: v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
41
41
|
}, undefined>;
|
|
42
42
|
}, undefined>;
|
|
43
43
|
}, undefined>], undefined>, undefined>;
|
|
@@ -35,9 +35,9 @@ export declare const pull: {
|
|
|
35
35
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
36
36
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
37
37
|
}, undefined>, undefined>;
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
38
|
+
readonly messageCounts: import("valibot").ObjectSchema<{
|
|
39
|
+
readonly complete: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
40
|
+
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
41
41
|
}, undefined>;
|
|
42
42
|
}, undefined>;
|
|
43
43
|
}, undefined>], undefined>, undefined>;
|
|
@@ -25,6 +25,9 @@ export declare const auth: {
|
|
|
25
25
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
26
26
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
27
27
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
28
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
28
31
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
29
32
|
readonly data: import("valibot").ObjectSchema<{
|
|
30
33
|
readonly accessToken: import("valibot").StringSchema<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
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhB,CAAA"}
|
|
@@ -14,6 +14,9 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
|
|
|
14
14
|
}, undefined>, v.ObjectSchema<{
|
|
15
15
|
readonly code: v.LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
16
16
|
readonly status: v.LiteralSchema<502, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
17
20
|
}, undefined>, v.ObjectSchema<{
|
|
18
21
|
readonly data: v.ObjectSchema<{
|
|
19
22
|
readonly accessToken: v.StringSchema<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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;2BAsBzB,CAAA"}
|
|
@@ -14,6 +14,7 @@ export const verifyAuthCode = createEndpoint({
|
|
|
14
14
|
errorManifest.authCodeExpiredErrorSchema,
|
|
15
15
|
errorManifest.authCodePreviouslyUsedErrorSchema,
|
|
16
16
|
errorManifest.authServerResponseUnexpectedErrorSchema,
|
|
17
|
+
errorManifest.userNotFoundErrorSchema,
|
|
17
18
|
v.object({
|
|
18
19
|
data: v.object({
|
|
19
20
|
accessToken: v.string(),
|
|
@@ -26,6 +26,9 @@ export declare const publicGroup: {
|
|
|
26
26
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
27
27
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
28
28
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
29
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
30
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
31
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
29
32
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
30
33
|
readonly data: import("valibot").ObjectSchema<{
|
|
31
34
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvB,CAAA"}
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -39,9 +39,9 @@ export declare const marcoSDK: {
|
|
|
39
39
|
readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
40
40
|
readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
|
|
41
41
|
}, undefined>, undefined>;
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
42
|
+
readonly messageCounts: import("valibot").ObjectSchema<{
|
|
43
|
+
readonly complete: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
44
|
+
readonly total: import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>]>;
|
|
45
45
|
}, undefined>;
|
|
46
46
|
}, undefined>;
|
|
47
47
|
}, undefined>], undefined>, undefined>;
|
|
@@ -242,6 +242,9 @@ export declare const marcoSDK: {
|
|
|
242
242
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
243
243
|
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
244
244
|
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
245
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
246
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
247
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
245
248
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
246
249
|
readonly data: import("valibot").ObjectSchema<{
|
|
247
250
|
readonly accessToken: import("valibot").StringSchema<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"}
|
|
@@ -15,6 +15,10 @@ export declare const authenticationFailedErrorSchema: v.ObjectSchema<{
|
|
|
15
15
|
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
16
16
|
readonly status: v.LiteralSchema<401, undefined>;
|
|
17
17
|
}, undefined>;
|
|
18
|
+
export declare const userNotFoundErrorSchema: v.ObjectSchema<{
|
|
19
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
20
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
21
|
+
}, undefined>;
|
|
18
22
|
export declare const messageNotFoundErrorSchema: v.ObjectSchema<{
|
|
19
23
|
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
20
24
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
@@ -44,6 +48,10 @@ export declare const errorManifest: {
|
|
|
44
48
|
readonly code: v.LiteralSchema<"MESSAGE_NOT_FOUND", undefined>;
|
|
45
49
|
readonly status: v.LiteralSchema<404, undefined>;
|
|
46
50
|
}, undefined>;
|
|
51
|
+
userNotFoundErrorSchema: v.ObjectSchema<{
|
|
52
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
53
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
54
|
+
}, undefined>;
|
|
47
55
|
validationFailedErrorSchema: v.ObjectSchema<{
|
|
48
56
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
49
57
|
readonly status: v.LiteralSchema<400, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;aAGlD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;aAG1C,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/sdk/validation/errors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;aAG5C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;aAGlD,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;aAG1C,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;aAGlC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;aAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQD,CAAA"}
|
|
@@ -15,6 +15,10 @@ export const authenticationFailedErrorSchema = v.object({
|
|
|
15
15
|
code: v.literal('AUTHENTICATION_FAILED'),
|
|
16
16
|
status: v.literal(401),
|
|
17
17
|
});
|
|
18
|
+
export const userNotFoundErrorSchema = v.object({
|
|
19
|
+
code: v.literal('USER_NOT_FOUND'),
|
|
20
|
+
status: v.literal(404),
|
|
21
|
+
});
|
|
18
22
|
export const messageNotFoundErrorSchema = v.object({
|
|
19
23
|
code: v.literal('MESSAGE_NOT_FOUND'),
|
|
20
24
|
status: v.literal(404),
|
|
@@ -29,5 +33,6 @@ export const errorManifest = {
|
|
|
29
33
|
authServerResponseUnexpectedErrorSchema,
|
|
30
34
|
authenticationFailedErrorSchema,
|
|
31
35
|
messageNotFoundErrorSchema,
|
|
36
|
+
userNotFoundErrorSchema,
|
|
32
37
|
validationFailedErrorSchema,
|
|
33
38
|
};
|