@marcoappio/marco-config 2.0.332 → 2.0.334

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.
@@ -0,0 +1,4 @@
1
+ export declare const emailAccounts: {
2
+ defaultColors: string[];
3
+ };
4
+ //# sourceMappingURL=emailAccounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailAccounts.d.ts","sourceRoot":"","sources":["../../src/constants/emailAccounts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;CAezB,CAAA"}
@@ -0,0 +1,16 @@
1
+ export const emailAccounts = {
2
+ defaultColors: [
3
+ '#F5CAC3',
4
+ '#F7EDE2',
5
+ '#C6EBDD',
6
+ '#ADC2D9',
7
+ '#DDD2A4',
8
+ '#AED7E0',
9
+ '#D8C0C8',
10
+ '#93C8BB',
11
+ '#BAD8B2',
12
+ '#F6C8A7',
13
+ '#F4A7A2',
14
+ '#D4C5EB',
15
+ ],
16
+ };
@@ -7,6 +7,9 @@ export declare const marcoConstants: {
7
7
  MAX_PAYLOAD_BYTES: number;
8
8
  };
9
9
  };
10
+ emailAccounts: {
11
+ defaultColors: string[];
12
+ };
10
13
  emailProvider: {
11
14
  connectionDefaults: {
12
15
  GMAIL: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc1B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM1B,CAAA"}
@@ -1,18 +1,12 @@
1
1
  import { api } from './api';
2
+ import { emailAccounts } from './emailAccounts';
2
3
  import { emailProvider } from './emailProvider';
3
4
  import { messages } from './messages';
5
+ import { oauth } from './oauth';
4
6
  export const marcoConstants = {
5
7
  api,
8
+ emailAccounts,
6
9
  emailProvider,
7
10
  messages,
8
- oauth: {
9
- outlook: {
10
- scopes: [
11
- 'https://outlook.office.com/IMAP.AccessAsUser.All',
12
- 'https://outlook.office.com/SMTP.Send',
13
- 'offline_access',
14
- ],
15
- },
16
- redirectPath: '/v1/wh/oauth/callback',
17
- },
11
+ oauth,
18
12
  };
@@ -0,0 +1,7 @@
1
+ export declare const oauth: {
2
+ readonly outlook: {
3
+ readonly scopes: readonly ["https://outlook.office.com/IMAP.AccessAsUser.All", "https://outlook.office.com/SMTP.Send", "offline_access"];
4
+ };
5
+ readonly redirectPath: "/v1/wh/oauth/callback";
6
+ };
7
+ //# sourceMappingURL=oauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/constants/oauth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;CASR,CAAA"}
@@ -0,0 +1,10 @@
1
+ export const oauth = {
2
+ outlook: {
3
+ scopes: [
4
+ 'https://outlook.office.com/IMAP.AccessAsUser.All',
5
+ 'https://outlook.office.com/SMTP.Send',
6
+ 'offline_access',
7
+ ],
8
+ },
9
+ redirectPath: '/v1/wh/oauth/callback',
10
+ };
@@ -44,6 +44,7 @@ export declare const marcoSchemas: {
44
44
  pushNotifications: {
45
45
  payload: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
46
46
  readonly data: import("valibot").ObjectSchema<{
47
+ readonly messageId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
47
48
  readonly threadId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
48
49
  }, undefined>;
49
50
  readonly event: import("valibot").LiteralSchema<"EMAIL_RECEIVED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASxB,CAAA"}
@@ -2,6 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const pushNotifications: {
3
3
  payload: v.UnionSchema<[v.ObjectSchema<{
4
4
  readonly data: v.ObjectSchema<{
5
+ readonly messageId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
5
6
  readonly threadId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
6
7
  }, undefined>;
7
8
  readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B,eAAO,MAAM,iBAAiB;;;;;;;CAE7B,CAAA"}
1
+ {"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgB5B,eAAO,MAAM,iBAAiB;;;;;;;;CAE7B,CAAA"}
@@ -2,6 +2,7 @@ import * as v from 'valibot';
2
2
  import { string } from './string';
3
3
  const pushNotificationEmailReceivedPayload = v.object({
4
4
  data: v.object({
5
+ messageId: string.shortUUID(),
5
6
  threadId: string.shortUUID(),
6
7
  }),
7
8
  event: v.literal('EMAIL_RECEIVED'),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
3
  "packageManager": "bun@1.2.0",
4
- "version": "2.0.332",
4
+ "version": "2.0.334",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",