@marcoappio/marco-config 2.0.140 → 2.0.142
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.d.ts +3 -4
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +9 -12
- package/dist/sdk/endpoints/index.d.ts +4 -1
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts +4 -1
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +4 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +4 -1
- package/dist/sdk/endpoints/public/index.d.ts +4 -1
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +4 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export type MarcoEnvironment = 'production' | 'staging' | 'development';
|
|
2
2
|
export declare const MARCO_ENV: MarcoEnvironment;
|
|
3
3
|
type MarcoPublicConfig = {
|
|
4
|
-
auth0: {
|
|
5
|
-
clientId: string;
|
|
6
|
-
domain: string;
|
|
7
|
-
};
|
|
8
4
|
jitsu: {
|
|
9
5
|
ingestEndpoint: string;
|
|
10
6
|
writeKeys: {
|
|
@@ -24,6 +20,9 @@ type MarcoPublicConfig = {
|
|
|
24
20
|
replicache: {
|
|
25
21
|
licenseKey: string;
|
|
26
22
|
};
|
|
23
|
+
workOS: {
|
|
24
|
+
clientId: string;
|
|
25
|
+
};
|
|
27
26
|
};
|
|
28
27
|
export declare const marcoPublicConfig: MarcoPublicConfig;
|
|
29
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAA6D,CAAA;AAEnF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,
|
|
1
|
+
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAA6D,CAAA;AAEnF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,cAAc,EAAE,MAAM,CAAA;QACtB,SAAS,EAAE;YACT,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AA+ED,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export const MARCO_ENV = process.env.MARCO_ENV || 'development';
|
|
2
2
|
const configMap = {
|
|
3
3
|
development: {
|
|
4
|
-
auth0: {
|
|
5
|
-
clientId: 'eitQJVJqK9jetUdTVliIVnHZRa80cQW5',
|
|
6
|
-
domain: 'marcoappio.us.auth0.com',
|
|
7
|
-
},
|
|
8
4
|
jitsu: {
|
|
9
5
|
ingestEndpoint: 'https://cm36fa1j100003b6vwh3r64th.d.jitsu.com/api/s',
|
|
10
6
|
writeKeys: {
|
|
@@ -24,12 +20,11 @@ const configMap = {
|
|
|
24
20
|
replicache: {
|
|
25
21
|
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
26
22
|
},
|
|
23
|
+
workOS: {
|
|
24
|
+
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
25
|
+
},
|
|
27
26
|
},
|
|
28
27
|
staging: {
|
|
29
|
-
auth0: {
|
|
30
|
-
clientId: 'eitQJVJqK9jetUdTVliIVnHZRa80cQW5',
|
|
31
|
-
domain: 'marcoappio.us.auth0.com',
|
|
32
|
-
},
|
|
33
28
|
jitsu: {
|
|
34
29
|
ingestEndpoint: 'https://cm36fa1j100003b6vwh3r64th.d.jitsu.com/api/s',
|
|
35
30
|
writeKeys: {
|
|
@@ -49,13 +44,12 @@ const configMap = {
|
|
|
49
44
|
replicache: {
|
|
50
45
|
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
51
46
|
},
|
|
47
|
+
workOS: {
|
|
48
|
+
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
49
|
+
},
|
|
52
50
|
},
|
|
53
51
|
// eslint-disable-next-line sort-keys, sort-keys-fix/sort-keys-fix
|
|
54
52
|
production: {
|
|
55
|
-
auth0: {
|
|
56
|
-
clientId: 'eitQJVJqK9jetUdTVliIVnHZRa80cQW5',
|
|
57
|
-
domain: 'marcoappio.us.auth0.com',
|
|
58
|
-
},
|
|
59
53
|
jitsu: {
|
|
60
54
|
ingestEndpoint: 'https://cm36fhigi00003b6vkib0qe5y.d.jitsu.com/api/s',
|
|
61
55
|
writeKeys: {
|
|
@@ -75,6 +69,9 @@ const configMap = {
|
|
|
75
69
|
replicache: {
|
|
76
70
|
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
77
71
|
},
|
|
72
|
+
workOS: {
|
|
73
|
+
clientId: 'client_01J51ET6RT5WCS3NNQYBB7FAE7',
|
|
74
|
+
},
|
|
78
75
|
},
|
|
79
76
|
};
|
|
80
77
|
export const marcoPublicConfig = configMap[MARCO_ENV];
|
|
@@ -250,7 +250,10 @@ export declare const endpoints: {
|
|
|
250
250
|
readonly data: import("valibot").ObjectSchema<{
|
|
251
251
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
252
252
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
253
|
-
readonly
|
|
253
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
254
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
255
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
256
|
+
}, undefined>;
|
|
254
257
|
}, undefined>;
|
|
255
258
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
256
259
|
}, undefined>], 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"}
|
|
@@ -32,7 +32,10 @@ export declare const auth: {
|
|
|
32
32
|
readonly data: import("valibot").ObjectSchema<{
|
|
33
33
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
34
34
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
35
|
-
readonly
|
|
35
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
36
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
37
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
38
|
+
}, undefined>;
|
|
36
39
|
}, undefined>;
|
|
37
40
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
38
41
|
}, undefined>], 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"}
|
|
@@ -21,7 +21,10 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
|
|
|
21
21
|
readonly data: v.ObjectSchema<{
|
|
22
22
|
readonly accessToken: v.StringSchema<undefined>;
|
|
23
23
|
readonly refreshToken: v.StringSchema<undefined>;
|
|
24
|
-
readonly
|
|
24
|
+
readonly user: v.ObjectSchema<{
|
|
25
|
+
readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
26
|
+
readonly id: v.StringSchema<undefined>;
|
|
27
|
+
}, undefined>;
|
|
25
28
|
}, undefined>;
|
|
26
29
|
readonly status: v.LiteralSchema<200, undefined>;
|
|
27
30
|
}, 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;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyBzB,CAAA"}
|
|
@@ -19,7 +19,10 @@ export const verifyAuthCode = createEndpoint({
|
|
|
19
19
|
data: v.object({
|
|
20
20
|
accessToken: v.string(),
|
|
21
21
|
refreshToken: v.string(),
|
|
22
|
-
|
|
22
|
+
user: v.object({
|
|
23
|
+
email: marcoSchemas.string.email(),
|
|
24
|
+
id: v.string(),
|
|
25
|
+
}),
|
|
23
26
|
}),
|
|
24
27
|
status: v.literal(200),
|
|
25
28
|
}),
|
|
@@ -33,7 +33,10 @@ export declare const publicGroup: {
|
|
|
33
33
|
readonly data: import("valibot").ObjectSchema<{
|
|
34
34
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
35
35
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
36
|
-
readonly
|
|
36
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
37
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
38
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
39
|
+
}, undefined>;
|
|
37
40
|
}, undefined>;
|
|
38
41
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
39
42
|
}, undefined>], 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
|
@@ -249,7 +249,10 @@ export declare const marcoSDK: {
|
|
|
249
249
|
readonly data: import("valibot").ObjectSchema<{
|
|
250
250
|
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
251
251
|
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
252
|
-
readonly
|
|
252
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
253
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
254
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
255
|
+
}, undefined>;
|
|
253
256
|
}, undefined>;
|
|
254
257
|
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
255
258
|
}, undefined>], 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"}
|