@marcoappio/marco-config 2.0.417 → 2.0.419
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/marcoPublicConfig.js +3 -3
- package/dist/schemas/auth.d.ts +0 -5
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +0 -5
- package/dist/schemas/index.d.ts +0 -5
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.d.ts +2 -6
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +2 -6
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +2 -6
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +1 -2
- package/dist/sdk/endpoints/public/index.d.ts +2 -6
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +2 -6
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ const configMap = {
|
|
|
33
33
|
},
|
|
34
34
|
zero: {
|
|
35
35
|
cacheUrl: 'https://zero.staging.marcoapp.io',
|
|
36
|
-
pushUrl: 'https://api.staging.marcoapp.io/v1/zero/push',
|
|
36
|
+
pushUrl: 'https://api.staging.marcoapp.io/v1/pv/zero/push',
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
production: {
|
|
@@ -67,7 +67,7 @@ const configMap = {
|
|
|
67
67
|
},
|
|
68
68
|
zero: {
|
|
69
69
|
cacheUrl: 'https://zero.marcoapp.io',
|
|
70
|
-
pushUrl: 'https://api.marcoapp.io/v1/zero/push',
|
|
70
|
+
pushUrl: 'https://api.marcoapp.io/v1/pv/zero/push',
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
73
|
staging: {
|
|
@@ -101,7 +101,7 @@ const configMap = {
|
|
|
101
101
|
},
|
|
102
102
|
zero: {
|
|
103
103
|
cacheUrl: 'https://zero.staging.marcoapp.io',
|
|
104
|
-
pushUrl: 'https://api.staging.marcoapp.io/v1/zero/push',
|
|
104
|
+
pushUrl: 'https://api.staging.marcoapp.io/v1/pv/zero/push',
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
};
|
package/dist/schemas/auth.d.ts
CHANGED
|
@@ -5,10 +5,5 @@ export declare const auth: {
|
|
|
5
5
|
readonly code: v.StringSchema<undefined>;
|
|
6
6
|
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
7
7
|
}, undefined>;
|
|
8
|
-
password: v.ObjectSchema<{
|
|
9
|
-
readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
|
|
10
|
-
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
11
|
-
readonly password: v.StringSchema<undefined>;
|
|
12
|
-
}, undefined>;
|
|
13
8
|
};
|
|
14
9
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/schemas/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,IAAI;;;;;;CAMhB,CAAA"}
|
package/dist/schemas/auth.js
CHANGED
package/dist/schemas/index.d.ts
CHANGED
|
@@ -8,11 +8,6 @@ export declare const marcoSchemas: {
|
|
|
8
8
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
9
9
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
10
10
|
}, undefined>;
|
|
11
|
-
password: import("valibot").ObjectSchema<{
|
|
12
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
13
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
14
|
-
readonly password: import("valibot").StringSchema<undefined>;
|
|
15
|
-
}, undefined>;
|
|
16
11
|
};
|
|
17
12
|
drafts: {
|
|
18
13
|
contentPatch: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
|
|
@@ -117,15 +117,11 @@ export declare const endpoints: {
|
|
|
117
117
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
118
118
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
119
119
|
}, undefined>], undefined>>;
|
|
120
|
-
verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").
|
|
120
|
+
verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
121
121
|
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
122
122
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
123
123
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
124
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
125
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
126
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
127
|
-
readonly password: import("valibot").StringSchema<undefined>;
|
|
128
|
-
}, undefined>], undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
124
|
+
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
129
125
|
readonly data: import("valibot").ObjectSchema<{
|
|
130
126
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
131
127
|
readonly issues: import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -63,15 +63,11 @@ export declare const auth: {
|
|
|
63
63
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
64
64
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
65
65
|
}, undefined>], undefined>>;
|
|
66
|
-
verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").
|
|
66
|
+
verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
67
67
|
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
68
68
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
69
69
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
70
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
71
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
72
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
73
|
-
readonly password: import("valibot").StringSchema<undefined>;
|
|
74
|
-
}, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
70
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
75
71
|
readonly data: import("valibot").ObjectSchema<{
|
|
76
72
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
77
73
|
readonly issues: 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
|
|
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,13 +1,9 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.
|
|
2
|
+
export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.ObjectSchema<{
|
|
3
3
|
readonly authType: v.LiteralSchema<"CODE", undefined>;
|
|
4
4
|
readonly code: v.StringSchema<undefined>;
|
|
5
5
|
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
6
|
-
}, undefined>, v.ObjectSchema<{
|
|
7
|
-
readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
|
|
8
|
-
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
|
-
readonly password: v.StringSchema<undefined>;
|
|
10
|
-
}, undefined>], undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
6
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
11
7
|
readonly data: v.ObjectSchema<{
|
|
12
8
|
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
13
9
|
readonly issues: 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;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,CAAA"}
|
|
@@ -2,9 +2,8 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { marcoSchemas } from '../../../../schemas';
|
|
3
3
|
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
4
4
|
import { errors } from '../../../../sdk/validation/errors';
|
|
5
|
-
const verifyAuthCodeBody = v.union([marcoSchemas.auth.code, marcoSchemas.auth.password]);
|
|
6
5
|
export const verifyAuthCode = createEndpoint({
|
|
7
|
-
body:
|
|
6
|
+
body: marcoSchemas.auth.code,
|
|
8
7
|
method: 'POST',
|
|
9
8
|
path: '/v1/pb/auth/verify-code',
|
|
10
9
|
response: v.union([
|
|
@@ -64,15 +64,11 @@ export declare const publicGroup: {
|
|
|
64
64
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
65
65
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
66
66
|
}, undefined>], undefined>>;
|
|
67
|
-
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").
|
|
67
|
+
verifyAuthCode: import("../../..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
68
68
|
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
69
69
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
70
70
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
71
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
72
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
73
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
74
|
-
readonly password: import("valibot").StringSchema<undefined>;
|
|
75
|
-
}, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
71
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
76
72
|
readonly data: import("valibot").ObjectSchema<{
|
|
77
73
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
78
74
|
readonly issues: import("valibot").ObjectSchema<{
|
|
@@ -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
|
@@ -116,15 +116,11 @@ export declare const marcoSDK: {
|
|
|
116
116
|
}, undefined>, import("valibot").ObjectSchema<{
|
|
117
117
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
118
118
|
}, undefined>], undefined>>;
|
|
119
|
-
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").
|
|
119
|
+
verifyAuthCode: import("..").EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
120
120
|
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
121
121
|
readonly code: import("valibot").StringSchema<undefined>;
|
|
122
122
|
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
123
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
124
|
-
readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
|
|
125
|
-
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
126
|
-
readonly password: import("valibot").StringSchema<undefined>;
|
|
127
|
-
}, undefined>], undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
123
|
+
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
128
124
|
readonly data: import("valibot").ObjectSchema<{
|
|
129
125
|
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
130
126
|
readonly issues: import("valibot").ObjectSchema<{
|
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"}
|