@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.
@@ -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
  };
@@ -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;;;;;;;;;;;CAWhB,CAAA"}
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"}
@@ -6,9 +6,4 @@ export const auth = {
6
6
  code: v.string(),
7
7
  email: string.email(),
8
8
  }),
9
- password: v.object({
10
- authType: v.literal('PASSWORD'),
11
- email: string.email(),
12
- password: v.string(),
13
- }),
14
9
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
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").UnionSchema<[import("valibot").ObjectSchema<{
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
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").UnionSchema<[import("valibot").ObjectSchema<{
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/public/auth/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhB,CAAA"}
@@ -1,13 +1,9 @@
1
1
  import * as v from 'valibot';
2
- export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/pb/auth/verify-code", v.UnionSchema<[v.ObjectSchema<{
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;AAQ5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BzB,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: verifyAuthCodeBody,
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").UnionSchema<[import("valibot").ObjectSchema<{
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/public/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAA"}
@@ -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").UnionSchema<[import("valibot").ObjectSchema<{
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<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.417",
3
+ "version": "2.0.419",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",