@marcoappio/marco-config 2.0.270 → 2.0.272

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.
Files changed (41) hide show
  1. package/dist/clients/account.d.ts +10 -6
  2. package/dist/clients/account.d.ts.map +1 -1
  3. package/dist/clients/index.d.ts +10 -6
  4. package/dist/clients/index.d.ts.map +1 -1
  5. package/dist/marcoPublicConfig.d.ts +0 -6
  6. package/dist/marcoPublicConfig.d.ts.map +1 -1
  7. package/dist/marcoPublicConfig.js +0 -18
  8. package/dist/schemas/index.d.ts +10 -6
  9. package/dist/schemas/index.d.ts.map +1 -1
  10. package/dist/schemas/index.js +9 -10
  11. package/dist/sdk/endpoints/index.d.ts +43 -33
  12. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  13. package/dist/sdk/endpoints/private/index.d.ts +43 -33
  14. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/index.js +2 -2
  16. package/dist/sdk/endpoints/private/{emailAccount/oauth-google-connect.d.ts → oauth/google/authorize.d.ts} +7 -3
  17. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts.map +1 -0
  18. package/dist/sdk/endpoints/private/oauth/google/authorize.js +23 -0
  19. package/dist/sdk/endpoints/private/{emailAccount → oauth/google}/index.d.ts +7 -3
  20. package/dist/sdk/endpoints/private/oauth/google/index.d.ts.map +1 -0
  21. package/dist/sdk/endpoints/private/oauth/google/index.js +4 -0
  22. package/dist/sdk/endpoints/private/oauth/index.d.ts +34 -0
  23. package/dist/sdk/endpoints/private/oauth/index.d.ts.map +1 -0
  24. package/dist/sdk/endpoints/private/oauth/index.js +4 -0
  25. package/dist/sdk/endpoints/private/sync/index.d.ts +10 -6
  26. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +0 -1
  28. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +0 -1
  30. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  31. package/dist/sdk/endpoints/private/sync/push/account.d.ts +10 -5
  32. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/private/sync/push/index.d.ts +10 -5
  34. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  35. package/dist/sdk/index.d.ts +43 -33
  36. package/dist/sdk/index.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/dist/sdk/endpoints/private/emailAccount/index.d.ts.map +0 -1
  39. package/dist/sdk/endpoints/private/emailAccount/index.js +0 -4
  40. package/dist/sdk/endpoints/private/emailAccount/oauth-google-connect.d.ts.map +0 -1
  41. package/dist/sdk/endpoints/private/emailAccount/oauth-google-connect.js +0 -19
@@ -2,7 +2,6 @@ import * as v from 'valibot';
2
2
  export declare const account: {
3
3
  model: v.ObjectSchema<{
4
4
  readonly connectionConfig: v.NullableSchema<v.ObjectSchema<{
5
- readonly authType: v.UnionSchema<[v.LiteralSchema<"PASSWORD", undefined>, v.LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
6
5
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
6
  readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
8
7
  readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -41,15 +40,20 @@ export declare const account: {
41
40
  };
42
41
  setConnectionConfig: {
43
42
  delta: v.ObjectSchema<{
44
- readonly connectionConfig: v.ObjectSchema<{
45
- readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
43
+ readonly connectionConfig: v.IntersectSchema<[v.ObjectSchema<{
46
44
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
47
- readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
45
  readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
49
46
  readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
50
- readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
47
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
52
- }, undefined>;
48
+ }, undefined>, v.ObjectSchema<{
49
+ readonly auth: v.UnionSchema<[v.ObjectSchema<{
50
+ readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
51
+ readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
+ }, undefined>, v.ObjectSchema<{
53
+ readonly authType: v.LiteralSchema<"GOOGLE_OAUTH", undefined>;
54
+ readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ }, undefined>], undefined>;
56
+ }, undefined>], undefined>;
53
57
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
54
58
  }, undefined>;
55
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDG,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDG,CAAA"}
@@ -3,7 +3,6 @@ export declare const marcoClients: {
3
3
  account: {
4
4
  model: import("valibot").ObjectSchema<{
5
5
  readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
6
- readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
7
6
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
8
7
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
9
8
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -42,15 +41,20 @@ export declare const marcoClients: {
42
41
  };
43
42
  setConnectionConfig: {
44
43
  delta: import("valibot").ObjectSchema<{
45
- readonly connectionConfig: import("valibot").ObjectSchema<{
46
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
44
+ readonly connectionConfig: import("valibot").IntersectSchema<[import("valibot").ObjectSchema<{
47
45
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
48
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
49
46
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
50
47
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
51
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
52
48
  readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
53
- }, undefined>;
49
+ }, undefined>, import("valibot").ObjectSchema<{
50
+ readonly auth: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
51
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
52
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
53
+ }, undefined>, import("valibot").ObjectSchema<{
54
+ readonly authType: import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>;
55
+ readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
56
+ }, undefined>], undefined>;
57
+ }, undefined>], undefined>;
54
58
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
55
59
  }, undefined>;
56
60
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
@@ -1,12 +1,6 @@
1
1
  export type MarcoEnvironment = 'production' | 'staging' | 'development';
2
2
  export declare const MARCO_ENV: MarcoEnvironment;
3
3
  type MarcoPublicConfig = {
4
- google: {
5
- oauth: {
6
- clientId: string;
7
- redirectUri: string;
8
- };
9
- };
10
4
  marco: {
11
5
  api: {
12
6
  baseUrl: string;
@@ -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,MAAM,EAAE;QACN,KAAK,EAAE;YACL,QAAQ,EAAE,MAAM,CAAA;YAChB,WAAW,EAAE,MAAM,CAAA;SACpB,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,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;AAwFD,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
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,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,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;AAsED,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
@@ -1,12 +1,6 @@
1
1
  export const MARCO_ENV = process.env.MARCO_ENV || 'development';
2
2
  const configMap = {
3
3
  development: {
4
- google: {
5
- oauth: {
6
- clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
7
- redirectUri: 'http://localhost:3000/oauth/google/callback',
8
- },
9
- },
10
4
  marco: {
11
5
  api: {
12
6
  baseUrl: 'https://api.staging.marcoapp.io',
@@ -28,12 +22,6 @@ const configMap = {
28
22
  },
29
23
  },
30
24
  staging: {
31
- google: {
32
- oauth: {
33
- clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
34
- redirectUri: 'https://app.staging.marcoapp.io/oauth/google/callback',
35
- },
36
- },
37
25
  marco: {
38
26
  api: {
39
27
  baseUrl: 'https://api.staging.marcoapp.io',
@@ -56,12 +44,6 @@ const configMap = {
56
44
  },
57
45
  // eslint-disable-next-line sort-keys, sort-keys-fix/sort-keys-fix
58
46
  production: {
59
- google: {
60
- oauth: {
61
- clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
62
- redirectUri: 'https://app.marcoapp.io/oauth/google/callback',
63
- },
64
- },
65
47
  marco: {
66
48
  api: {
67
49
  baseUrl: 'https://api.marcoapp.io',
@@ -16,21 +16,25 @@ export declare const marcoSchemas: {
16
16
  };
17
17
  emailAccount: {
18
18
  connectionConfig: () => v.ObjectSchema<{
19
- readonly authType: v.UnionSchema<[v.LiteralSchema<"PASSWORD", undefined>, v.LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
20
19
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
20
  readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
22
21
  readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
22
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
24
23
  }, undefined>;
25
- fullConnectionConfig: () => v.ObjectSchema<{
26
- readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
24
+ fullConnectionConfig: () => v.IntersectSchema<[v.ObjectSchema<{
27
25
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
- readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
26
  readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
30
27
  readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
- readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
28
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
33
- }, undefined>;
29
+ }, undefined>, v.ObjectSchema<{
30
+ readonly auth: v.UnionSchema<[v.ObjectSchema<{
31
+ readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
32
+ readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
+ }, undefined>, v.ObjectSchema<{
34
+ readonly authType: v.LiteralSchema<"GOOGLE_OAUTH", undefined>;
35
+ readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ }, undefined>], undefined>;
37
+ }, undefined>], undefined>;
34
38
  imapConnectionStatus: () => v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
35
39
  };
36
40
  labelSpecialUse: () => v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAwCP,MAAM,OAAO,MAAM;;;;;;;;;;;;;CAMpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAuCP,MAAM,OAAO,MAAM;;;;;;;;;;;;;CAMpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
@@ -17,21 +17,20 @@ export const marcoSchemas = {
17
17
  },
18
18
  emailAccount: {
19
19
  connectionConfig: () => v.object({
20
- authType: v.union([v.literal('PASSWORD'), v.literal('GOOGLE_OAUTH')]),
21
20
  imapHost: marcoSchemas.string.required(),
22
21
  imapPort: marcoSchemas.number.minMax(1, 65535),
23
22
  smtpHost: marcoSchemas.string.required(),
24
23
  smtpPort: marcoSchemas.number.minMax(1, 65535),
25
24
  }),
26
- fullConnectionConfig: () => v.object({
27
- authType: v.literal('PASSWORD'),
28
- imapHost: marcoSchemas.string.required(),
29
- imapPassword: marcoSchemas.string.required(),
30
- imapPort: marcoSchemas.number.minMax(1, 65535),
31
- smtpHost: marcoSchemas.string.required(),
32
- smtpPassword: marcoSchemas.string.required(),
33
- smtpPort: marcoSchemas.number.minMax(1, 65535),
34
- }),
25
+ fullConnectionConfig: () => v.intersect([
26
+ marcoSchemas.emailAccount.connectionConfig(),
27
+ v.object({
28
+ auth: v.union([
29
+ v.object({ authType: v.literal('PASSWORD'), password: marcoSchemas.string.required() }),
30
+ v.object({ authType: v.literal('GOOGLE_OAUTH'), code: marcoSchemas.string.required() }),
31
+ ]),
32
+ }),
33
+ ]),
35
34
  imapConnectionStatus: () => v.union([
36
35
  v.literal('AWAITING_CONNECTION'),
37
36
  v.literal('CONNECTED'),
@@ -2,33 +2,6 @@ import { GenericSchema } from 'valibot';
2
2
  import { EndpointConfig } from '../../types';
3
3
  export declare const endpoints: {
4
4
  private: {
5
- emailAccount: {
6
- oAuthGoogleConnect: EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
7
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
8
- }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
9
- readonly data: import("valibot").ObjectSchema<{
10
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
11
- }, undefined>;
12
- readonly status: import("valibot").LiteralSchema<401, undefined>;
13
- }, undefined>, import("valibot").ObjectSchema<{
14
- readonly data: import("valibot").ObjectSchema<{
15
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
16
- readonly issues: import("valibot").ObjectSchema<{
17
- readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
18
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
19
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
20
- }, undefined>;
21
- }, undefined>;
22
- readonly status: import("valibot").LiteralSchema<400, undefined>;
23
- }, undefined>, import("valibot").ObjectSchema<{
24
- readonly data: import("valibot").ObjectSchema<{
25
- readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
26
- }, undefined>;
27
- readonly status: import("valibot").LiteralSchema<404, undefined>;
28
- }, undefined>, import("valibot").ObjectSchema<{
29
- readonly status: import("valibot").LiteralSchema<200, undefined>;
30
- }, undefined>], undefined>>;
31
- };
32
5
  emailMessage: {
33
6
  getAttachment: EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
34
7
  readonly data: import("valibot").ObjectSchema<{
@@ -61,6 +34,39 @@ export declare const endpoints: {
61
34
  readonly status: import("valibot").LiteralSchema<200, undefined>;
62
35
  }, undefined>], undefined>>;
63
36
  };
37
+ oauth: {
38
+ google: {
39
+ authorize: EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
40
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
41
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
42
+ }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
43
+ readonly data: import("valibot").ObjectSchema<{
44
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
45
+ }, undefined>;
46
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
47
+ }, undefined>, import("valibot").ObjectSchema<{
48
+ readonly data: import("valibot").ObjectSchema<{
49
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
50
+ readonly issues: import("valibot").ObjectSchema<{
51
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
52
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
53
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
54
+ }, undefined>;
55
+ }, undefined>;
56
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
57
+ }, undefined>, import("valibot").ObjectSchema<{
58
+ readonly data: import("valibot").ObjectSchema<{
59
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
60
+ }, undefined>;
61
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
62
+ }, undefined>, import("valibot").ObjectSchema<{
63
+ readonly data: import("valibot").ObjectSchema<{
64
+ readonly url: import("valibot").StringSchema<undefined>;
65
+ }, undefined>;
66
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
67
+ }, undefined>], undefined>>;
68
+ };
69
+ };
64
70
  sync: {
65
71
  pull: {
66
72
  account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -95,7 +101,6 @@ export declare const endpoints: {
95
101
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
96
102
  readonly value: import("valibot").ObjectSchema<{
97
103
  readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
98
- readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
99
104
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
100
105
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
101
106
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -371,15 +376,20 @@ export declare const endpoints: {
371
376
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
372
377
  }, undefined> | import("valibot").ObjectSchema<{
373
378
  readonly args: import("valibot").ObjectSchema<{
374
- readonly connectionConfig: import("valibot").ObjectSchema<{
375
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
379
+ readonly connectionConfig: import("valibot").IntersectSchema<[import("valibot").ObjectSchema<{
376
380
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
377
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
378
381
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
379
382
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
380
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
381
383
  readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
382
- }, undefined>;
384
+ }, undefined>, import("valibot").ObjectSchema<{
385
+ readonly auth: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
386
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
387
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
388
+ }, undefined>, import("valibot").ObjectSchema<{
389
+ readonly authType: import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>;
390
+ readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
391
+ }, undefined>], undefined>;
392
+ }, undefined>], undefined>;
383
393
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
384
394
  }, undefined>;
385
395
  readonly clientID: 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,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
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,EAAe,MAAM,qBAAqB,CAAA;AAcjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -1,31 +1,4 @@
1
1
  export declare const privateGroup: {
2
- emailAccount: {
3
- oAuthGoogleConnect: import("../../..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
4
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
- readonly data: import("valibot").ObjectSchema<{
7
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
- }, undefined>;
9
- readonly status: import("valibot").LiteralSchema<401, undefined>;
10
- }, undefined>, import("valibot").ObjectSchema<{
11
- readonly data: import("valibot").ObjectSchema<{
12
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
13
- readonly issues: import("valibot").ObjectSchema<{
14
- readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
15
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
16
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
17
- }, undefined>;
18
- }, undefined>;
19
- readonly status: import("valibot").LiteralSchema<400, undefined>;
20
- }, undefined>, import("valibot").ObjectSchema<{
21
- readonly data: import("valibot").ObjectSchema<{
22
- readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
23
- }, undefined>;
24
- readonly status: import("valibot").LiteralSchema<404, undefined>;
25
- }, undefined>, import("valibot").ObjectSchema<{
26
- readonly status: import("valibot").LiteralSchema<200, undefined>;
27
- }, undefined>], undefined>>;
28
- };
29
2
  emailMessage: {
30
3
  getAttachment: import("../../..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
31
4
  readonly data: import("valibot").ObjectSchema<{
@@ -58,6 +31,39 @@ export declare const privateGroup: {
58
31
  readonly status: import("valibot").LiteralSchema<200, undefined>;
59
32
  }, undefined>], undefined>>;
60
33
  };
34
+ oauth: {
35
+ google: {
36
+ authorize: import("../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
37
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
39
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
40
+ readonly data: import("valibot").ObjectSchema<{
41
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
42
+ }, undefined>;
43
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
44
+ }, undefined>, import("valibot").ObjectSchema<{
45
+ readonly data: import("valibot").ObjectSchema<{
46
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
47
+ readonly issues: import("valibot").ObjectSchema<{
48
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
49
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
50
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
51
+ }, undefined>;
52
+ }, undefined>;
53
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
54
+ }, undefined>, import("valibot").ObjectSchema<{
55
+ readonly data: import("valibot").ObjectSchema<{
56
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
57
+ }, undefined>;
58
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
59
+ }, undefined>, import("valibot").ObjectSchema<{
60
+ readonly data: import("valibot").ObjectSchema<{
61
+ readonly url: import("valibot").StringSchema<undefined>;
62
+ }, undefined>;
63
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
64
+ }, undefined>], undefined>>;
65
+ };
66
+ };
61
67
  sync: {
62
68
  pull: {
63
69
  account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -92,7 +98,6 @@ export declare const privateGroup: {
92
98
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
93
99
  readonly value: import("valibot").ObjectSchema<{
94
100
  readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
95
- readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
96
101
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
97
102
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
98
103
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -368,15 +373,20 @@ export declare const privateGroup: {
368
373
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
369
374
  }, undefined> | import("valibot").ObjectSchema<{
370
375
  readonly args: import("valibot").ObjectSchema<{
371
- readonly connectionConfig: import("valibot").ObjectSchema<{
372
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
376
+ readonly connectionConfig: import("valibot").IntersectSchema<[import("valibot").ObjectSchema<{
373
377
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
374
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
375
378
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
376
379
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
377
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
378
380
  readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
379
- }, undefined>;
381
+ }, undefined>, import("valibot").ObjectSchema<{
382
+ readonly auth: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
383
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
384
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
385
+ }, undefined>, import("valibot").ObjectSchema<{
386
+ readonly authType: import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>;
387
+ readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
388
+ }, undefined>], undefined>;
389
+ }, undefined>], undefined>;
380
390
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
381
391
  }, undefined>;
382
392
  readonly clientID: import("valibot").StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
@@ -1,10 +1,10 @@
1
- import { emailAccount } from '../../../sdk/endpoints/private/emailAccount';
2
1
  import { emailMessage } from './emailMessage';
2
+ import { oauth } from './oauth';
3
3
  import { sync } from './sync';
4
4
  import { user } from './user';
5
5
  export const privateGroup = {
6
- emailAccount,
7
6
  emailMessage,
7
+ oauth,
8
8
  sync,
9
9
  user,
10
10
  };
@@ -1,6 +1,7 @@
1
1
  import * as v from 'valibot';
2
- export declare const oAuthGoogleConnect: import("../../../..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", v.ObjectSchema<{
3
- readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
2
+ export declare const authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly redirectTo: v.SchemaWithPipe<[v.StringSchema<undefined>, v.UrlAction<string, undefined>]>;
4
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
6
  readonly data: v.ObjectSchema<{
6
7
  readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -22,6 +23,9 @@ export declare const oAuthGoogleConnect: import("../../../..").EndpointConfig<"/
22
23
  }, undefined>;
23
24
  readonly status: v.LiteralSchema<404, undefined>;
24
25
  }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly url: v.StringSchema<undefined>;
28
+ }, undefined>;
25
29
  readonly status: v.LiteralSchema<200, undefined>;
26
30
  }, undefined>], undefined>>;
27
- //# sourceMappingURL=oauth-google-connect.d.ts.map
31
+ //# sourceMappingURL=authorize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorize.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/oauth/google/authorize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAkBpB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, validationFailedErrorSchema } from '../../../../../sdk/validation/errors';
5
+ export const authorize = createEndpoint({
6
+ body: v.object({
7
+ accountId: marcoSchemas.string.required(),
8
+ redirectTo: v.pipe(v.string(), v.url()),
9
+ }),
10
+ method: 'POST',
11
+ path: '/v1/pv/oauth/google/authorize',
12
+ response: v.union([
13
+ authFailedErrorSchema,
14
+ validationFailedErrorSchema,
15
+ accountNotFoundErrorSchema,
16
+ v.object({
17
+ data: v.object({
18
+ url: v.string(),
19
+ }),
20
+ status: v.literal(200),
21
+ }),
22
+ ]),
23
+ });
@@ -1,6 +1,7 @@
1
- export declare const emailAccount: {
2
- oAuthGoogleConnect: import("../../../..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
3
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
1
+ export declare const google: {
2
+ authorize: import("../../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
3
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
4
5
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
5
6
  readonly data: import("valibot").ObjectSchema<{
6
7
  readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
@@ -22,6 +23,9 @@ export declare const emailAccount: {
22
23
  }, undefined>;
23
24
  readonly status: import("valibot").LiteralSchema<404, undefined>;
24
25
  }, undefined>, import("valibot").ObjectSchema<{
26
+ readonly data: import("valibot").ObjectSchema<{
27
+ readonly url: import("valibot").StringSchema<undefined>;
28
+ }, undefined>;
25
29
  readonly status: import("valibot").LiteralSchema<200, undefined>;
26
30
  }, undefined>], undefined>>;
27
31
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/oauth/google/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAElB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { authorize } from './authorize';
2
+ export const google = {
3
+ authorize,
4
+ };
@@ -0,0 +1,34 @@
1
+ export declare const oauth: {
2
+ google: {
3
+ authorize: import("../../../..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
4
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
6
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
+ readonly data: import("valibot").ObjectSchema<{
8
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
9
+ }, undefined>;
10
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
11
+ }, undefined>, import("valibot").ObjectSchema<{
12
+ readonly data: import("valibot").ObjectSchema<{
13
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
14
+ readonly issues: import("valibot").ObjectSchema<{
15
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
16
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
17
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
18
+ }, undefined>;
19
+ }, undefined>;
20
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
21
+ }, undefined>, import("valibot").ObjectSchema<{
22
+ readonly data: import("valibot").ObjectSchema<{
23
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
24
+ }, undefined>;
25
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
26
+ }, undefined>, import("valibot").ObjectSchema<{
27
+ readonly data: import("valibot").ObjectSchema<{
28
+ readonly url: import("valibot").StringSchema<undefined>;
29
+ }, undefined>;
30
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
31
+ }, undefined>], undefined>>;
32
+ };
33
+ };
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/oauth/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { google } from './google';
2
+ export const oauth = {
3
+ google,
4
+ };
@@ -32,7 +32,6 @@ export declare const sync: {
32
32
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
33
33
  readonly value: import("valibot").ObjectSchema<{
34
34
  readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
35
- readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
36
35
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
37
36
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
38
37
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -308,15 +307,20 @@ export declare const sync: {
308
307
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
309
308
  }, undefined> | import("valibot").ObjectSchema<{
310
309
  readonly args: import("valibot").ObjectSchema<{
311
- readonly connectionConfig: import("valibot").ObjectSchema<{
312
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
310
+ readonly connectionConfig: import("valibot").IntersectSchema<[import("valibot").ObjectSchema<{
313
311
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
314
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
315
312
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
316
313
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
317
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
318
314
  readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
319
- }, undefined>;
315
+ }, undefined>, import("valibot").ObjectSchema<{
316
+ readonly auth: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
317
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
318
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
319
+ }, undefined>, import("valibot").ObjectSchema<{
320
+ readonly authType: import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>;
321
+ readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
322
+ }, undefined>], undefined>;
323
+ }, undefined>], undefined>;
320
324
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
321
325
  }, undefined>;
322
326
  readonly clientID: import("valibot").StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/sync/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAA"}
@@ -31,7 +31,6 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
31
31
  readonly op: v.LiteralSchema<"put", undefined>;
32
32
  readonly value: v.ObjectSchema<{
33
33
  readonly connectionConfig: v.NullableSchema<v.ObjectSchema<{
34
- readonly authType: v.UnionSchema<[v.LiteralSchema<"PASSWORD", undefined>, v.LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
35
34
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
35
  readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
37
36
  readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -31,7 +31,6 @@ export declare const pull: {
31
31
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
32
32
  readonly value: import("valibot").ObjectSchema<{
33
33
  readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
34
- readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
35
34
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
36
35
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
37
36
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
@@ -19,15 +19,20 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
19
19
  readonly name: v.LiteralSchema<"delete", undefined>;
20
20
  }, undefined> | v.ObjectSchema<{
21
21
  readonly args: v.ObjectSchema<{
22
- readonly connectionConfig: v.ObjectSchema<{
23
- readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
22
+ readonly connectionConfig: v.IntersectSchema<[v.ObjectSchema<{
24
23
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
25
- readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
24
  readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
27
25
  readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
- readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
26
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
30
- }, undefined>;
27
+ }, undefined>, v.ObjectSchema<{
28
+ readonly auth: v.UnionSchema<[v.ObjectSchema<{
29
+ readonly authType: v.LiteralSchema<"PASSWORD", undefined>;
30
+ readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ }, undefined>, v.ObjectSchema<{
32
+ readonly authType: v.LiteralSchema<"GOOGLE_OAUTH", undefined>;
33
+ readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ }, undefined>], undefined>;
35
+ }, undefined>], undefined>;
31
36
  readonly id: v.SchemaWithPipe<[v.StringSchema<undefined>, v.CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
32
37
  }, undefined>;
33
38
  readonly clientID: v.StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyC1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyC1B,CAAA"}
@@ -19,15 +19,20 @@ export declare const push: {
19
19
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
20
20
  }, undefined> | import("valibot").ObjectSchema<{
21
21
  readonly args: import("valibot").ObjectSchema<{
22
- readonly connectionConfig: import("valibot").ObjectSchema<{
23
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
22
+ readonly connectionConfig: import("valibot").IntersectSchema<[import("valibot").ObjectSchema<{
24
23
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
25
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
26
24
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
27
25
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
28
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
29
26
  readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
30
- }, undefined>;
27
+ }, undefined>, import("valibot").ObjectSchema<{
28
+ readonly auth: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
29
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
30
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ }, undefined>, import("valibot").ObjectSchema<{
32
+ readonly authType: import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>;
33
+ readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ }, undefined>], undefined>;
35
+ }, undefined>], undefined>;
31
36
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
32
37
  }, undefined>;
33
38
  readonly clientID: import("valibot").StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAA"}
@@ -1,33 +1,6 @@
1
1
  export declare const marcoSDK: {
2
2
  endpoints: {
3
3
  private: {
4
- emailAccount: {
5
- oAuthGoogleConnect: import("..").EndpointConfig<"/v1/pv/account/:accountId/oauth/google/connect", import("valibot").ObjectSchema<{
6
- readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
7
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
8
- readonly data: import("valibot").ObjectSchema<{
9
- readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
10
- }, undefined>;
11
- readonly status: import("valibot").LiteralSchema<401, undefined>;
12
- }, undefined>, import("valibot").ObjectSchema<{
13
- readonly data: import("valibot").ObjectSchema<{
14
- readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
15
- readonly issues: import("valibot").ObjectSchema<{
16
- readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
17
- readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
18
- readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
19
- }, undefined>;
20
- }, undefined>;
21
- readonly status: import("valibot").LiteralSchema<400, undefined>;
22
- }, undefined>, import("valibot").ObjectSchema<{
23
- readonly data: import("valibot").ObjectSchema<{
24
- readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
25
- }, undefined>;
26
- readonly status: import("valibot").LiteralSchema<404, undefined>;
27
- }, undefined>, import("valibot").ObjectSchema<{
28
- readonly status: import("valibot").LiteralSchema<200, undefined>;
29
- }, undefined>], undefined>>;
30
- };
31
4
  emailMessage: {
32
5
  getAttachment: import("..").EndpointConfig<"/v1/pv/thread/:threadId/message/:messageId/attachment/:attachmentId", import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
33
6
  readonly data: import("valibot").ObjectSchema<{
@@ -60,6 +33,39 @@ export declare const marcoSDK: {
60
33
  readonly status: import("valibot").LiteralSchema<200, undefined>;
61
34
  }, undefined>], undefined>>;
62
35
  };
36
+ oauth: {
37
+ google: {
38
+ authorize: import("..").EndpointConfig<"/v1/pv/oauth/google/authorize", import("valibot").ObjectSchema<{
39
+ readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly redirectTo: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
41
+ }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
42
+ readonly data: import("valibot").ObjectSchema<{
43
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
44
+ }, undefined>;
45
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
46
+ }, undefined>, import("valibot").ObjectSchema<{
47
+ readonly data: import("valibot").ObjectSchema<{
48
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
49
+ readonly issues: import("valibot").ObjectSchema<{
50
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
51
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
52
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
53
+ }, undefined>;
54
+ }, undefined>;
55
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
56
+ }, undefined>, import("valibot").ObjectSchema<{
57
+ readonly data: import("valibot").ObjectSchema<{
58
+ readonly code: import("valibot").LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
59
+ }, undefined>;
60
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
61
+ }, undefined>, import("valibot").ObjectSchema<{
62
+ readonly data: import("valibot").ObjectSchema<{
63
+ readonly url: import("valibot").StringSchema<undefined>;
64
+ }, undefined>;
65
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
66
+ }, undefined>], undefined>>;
67
+ };
68
+ };
63
69
  sync: {
64
70
  pull: {
65
71
  account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -94,7 +100,6 @@ export declare const marcoSDK: {
94
100
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
95
101
  readonly value: import("valibot").ObjectSchema<{
96
102
  readonly connectionConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
97
- readonly authType: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"PASSWORD", undefined>, import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>], undefined>;
98
103
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
99
104
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
100
105
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -370,15 +375,20 @@ export declare const marcoSDK: {
370
375
  readonly name: import("valibot").LiteralSchema<"delete", undefined>;
371
376
  }, undefined> | import("valibot").ObjectSchema<{
372
377
  readonly args: import("valibot").ObjectSchema<{
373
- readonly connectionConfig: import("valibot").ObjectSchema<{
374
- readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
378
+ readonly connectionConfig: import("valibot").IntersectSchema<[import("valibot").ObjectSchema<{
375
379
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
376
- readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
377
380
  readonly imapPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
378
381
  readonly smtpHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
379
- readonly smtpPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
380
382
  readonly smtpPort: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
381
- }, undefined>;
383
+ }, undefined>, import("valibot").ObjectSchema<{
384
+ readonly auth: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
385
+ readonly authType: import("valibot").LiteralSchema<"PASSWORD", undefined>;
386
+ readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
387
+ }, undefined>, import("valibot").ObjectSchema<{
388
+ readonly authType: import("valibot").LiteralSchema<"GOOGLE_OAUTH", undefined>;
389
+ readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
390
+ }, undefined>], undefined>;
391
+ }, undefined>], undefined>;
382
392
  readonly id: import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string | import("short-uuid").SUUID, "Invalid short UUID format">]>;
383
393
  }, undefined>;
384
394
  readonly clientID: import("valibot").StringSchema<undefined>;
@@ -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,7 +1,7 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
3
  "packageManager": "bun@1.2.0",
4
- "version": "2.0.270",
4
+ "version": "2.0.272",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailAccount/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAExB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { oAuthGoogleConnect } from '../../../../sdk/endpoints/private/emailAccount/oauth-google-connect';
2
- export const emailAccount = {
3
- oAuthGoogleConnect: oAuthGoogleConnect,
4
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth-google-connect.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailAccount/oauth-google-connect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;2BAc7B,CAAA"}
@@ -1,19 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../../../../schemas';
3
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
- import { accountNotFoundErrorSchema, authFailedErrorSchema, validationFailedErrorSchema } from '../../../../sdk/validation/errors';
5
- export const oAuthGoogleConnect = createEndpoint({
6
- body: v.object({
7
- code: marcoSchemas.string.required(),
8
- }),
9
- method: 'POST',
10
- path: '/v1/pv/account/:accountId/oauth/google/connect',
11
- response: v.union([
12
- authFailedErrorSchema,
13
- validationFailedErrorSchema,
14
- accountNotFoundErrorSchema,
15
- v.object({
16
- status: v.literal(200),
17
- }),
18
- ]),
19
- });