@marcoappio/marco-config 2.0.317 → 2.0.319

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 (33) hide show
  1. package/dist/clients/account.d.ts +2 -2
  2. package/dist/clients/index.d.ts +2 -2
  3. package/dist/constants/index.d.ts +3 -0
  4. package/dist/constants/index.d.ts.map +1 -1
  5. package/dist/constants/index.js +7 -0
  6. package/dist/marcoPublicConfig.d.ts +9 -5
  7. package/dist/marcoPublicConfig.d.ts.map +1 -1
  8. package/dist/marcoPublicConfig.js +27 -15
  9. package/dist/schemas/index.d.ts +3 -3
  10. package/dist/schemas/index.d.ts.map +1 -1
  11. package/dist/schemas/index.js +6 -2
  12. package/dist/sdk/endpoints/index.d.ts +2 -35
  13. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/index.d.ts +2 -35
  15. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  16. package/dist/sdk/endpoints/private/index.js +0 -2
  17. package/dist/sdk/endpoints/private/sync/index.d.ts +2 -2
  18. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -1
  19. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +1 -1
  20. package/dist/sdk/endpoints/private/sync/push/account.d.ts +1 -1
  21. package/dist/sdk/endpoints/private/sync/push/index.d.ts +1 -1
  22. package/dist/sdk/index.d.ts +2 -35
  23. package/dist/sdk/index.d.ts.map +1 -1
  24. package/package.json +1 -1
  25. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts +0 -31
  26. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts.map +0 -1
  27. package/dist/sdk/endpoints/private/oauth/google/authorize.js +0 -23
  28. package/dist/sdk/endpoints/private/oauth/google/index.d.ts +0 -32
  29. package/dist/sdk/endpoints/private/oauth/google/index.d.ts.map +0 -1
  30. package/dist/sdk/endpoints/private/oauth/google/index.js +0 -4
  31. package/dist/sdk/endpoints/private/oauth/index.d.ts +0 -34
  32. package/dist/sdk/endpoints/private/oauth/index.d.ts.map +0 -1
  33. package/dist/sdk/endpoints/private/oauth/index.js +0 -4
@@ -15,7 +15,7 @@ export declare const account: {
15
15
  }, undefined>;
16
16
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
17
17
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
18
- readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
18
+ readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
19
19
  readonly labels: v.ArraySchema<v.ObjectSchema<{
20
20
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
21
  readonly mailCounts: v.ObjectSchema<{
@@ -91,7 +91,7 @@ export declare const account: {
91
91
  delta: v.ObjectSchema<{
92
92
  readonly connectionConfig: v.ObjectSchema<{
93
93
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
94
- readonly provider: v.LiteralSchema<"GOOGLE", undefined>;
94
+ readonly provider: v.UnionSchema<[v.LiteralSchema<"GOOGLE", undefined>, v.LiteralSchema<"OUTLOOK", undefined>], undefined>;
95
95
  }, undefined>;
96
96
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
97
97
  }, undefined>;
@@ -16,7 +16,7 @@ export declare const marcoClients: {
16
16
  }, undefined>;
17
17
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
18
18
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
19
- readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
19
+ readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
20
20
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
21
21
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
22
22
  readonly mailCounts: import("valibot").ObjectSchema<{
@@ -92,7 +92,7 @@ export declare const marcoClients: {
92
92
  delta: import("valibot").ObjectSchema<{
93
93
  readonly connectionConfig: import("valibot").ObjectSchema<{
94
94
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
95
- readonly provider: import("valibot").LiteralSchema<"GOOGLE", undefined>;
95
+ readonly provider: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"GOOGLE", undefined>, import("valibot").LiteralSchema<"OUTLOOK", undefined>], undefined>;
96
96
  }, undefined>;
97
97
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
98
98
  }, undefined>;
@@ -28,6 +28,9 @@ export declare const marcoConstants: {
28
28
  PREVIEW_TEXT_MAX_LENGTH: number;
29
29
  };
30
30
  oauth: {
31
+ outlook: {
32
+ scopes: string[];
33
+ };
31
34
  redirectPath: string;
32
35
  };
33
36
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO1B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc1B,CAAA"}
@@ -6,6 +6,13 @@ export const marcoConstants = {
6
6
  emailProvider,
7
7
  messages,
8
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
+ },
9
16
  redirectPath: '/v1/wh/oauth/callback',
10
17
  },
11
18
  };
@@ -1,11 +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
- };
8
- };
9
4
  marco: {
10
5
  api: {
11
6
  baseUrl: string;
@@ -19,6 +14,15 @@ type MarcoPublicConfig = {
19
14
  key: string;
20
15
  };
21
16
  };
17
+ oauth: {
18
+ google: {
19
+ clientId: string;
20
+ };
21
+ outlook: {
22
+ clientId: string;
23
+ tenantId: string;
24
+ };
25
+ };
22
26
  replicache: {
23
27
  licenseKey: string;
24
28
  };
@@ -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;SACjB,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;AAqFD,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,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,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;AAiGD,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
@@ -1,11 +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
- },
8
- },
9
4
  marco: {
10
5
  api: {
11
6
  baseUrl: 'https://api.staging.marcoapp.io',
@@ -19,6 +14,15 @@ const configMap = {
19
14
  key: 'IuF65Dgky1rJ2Aua',
20
15
  },
21
16
  },
17
+ oauth: {
18
+ google: {
19
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
20
+ },
21
+ outlook: {
22
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
23
+ tenantId: 'todo',
24
+ },
25
+ },
22
26
  replicache: {
23
27
  licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
24
28
  },
@@ -27,11 +31,6 @@ const configMap = {
27
31
  },
28
32
  },
29
33
  staging: {
30
- google: {
31
- oauth: {
32
- clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
33
- },
34
- },
35
34
  marco: {
36
35
  api: {
37
36
  baseUrl: 'https://api.staging.marcoapp.io',
@@ -45,6 +44,15 @@ const configMap = {
45
44
  key: 'IuF65Dgky1rJ2Aua',
46
45
  },
47
46
  },
47
+ oauth: {
48
+ google: {
49
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
50
+ },
51
+ outlook: {
52
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
53
+ tenantId: 'todo',
54
+ },
55
+ },
48
56
  replicache: {
49
57
  licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
50
58
  },
@@ -54,11 +62,6 @@ const configMap = {
54
62
  },
55
63
  // eslint-disable-next-line sort-keys, sort-keys-fix/sort-keys-fix
56
64
  production: {
57
- google: {
58
- oauth: {
59
- clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
60
- },
61
- },
62
65
  marco: {
63
66
  api: {
64
67
  baseUrl: 'https://api.marcoapp.io',
@@ -72,6 +75,15 @@ const configMap = {
72
75
  key: 'O8bc4c11yHuNNS',
73
76
  },
74
77
  },
78
+ oauth: {
79
+ google: {
80
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
81
+ },
82
+ outlook: {
83
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
84
+ tenantId: 'todo',
85
+ },
86
+ },
75
87
  replicache: {
76
88
  licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
77
89
  },
@@ -25,9 +25,9 @@ export declare const marcoSchemas: {
25
25
  }, undefined>;
26
26
  connectionConfigOauth: () => v.ObjectSchema<{
27
27
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
- readonly provider: v.LiteralSchema<"GOOGLE", undefined>;
28
+ readonly provider: v.UnionSchema<[v.LiteralSchema<"GOOGLE", undefined>, v.LiteralSchema<"OUTLOOK", undefined>], undefined>;
29
29
  }, undefined>;
30
- imapConnectionStatus: () => v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
30
+ imapConnectionStatus: () => v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
31
31
  };
32
32
  labelSpecialUse: () => v.UnionSchema<[v.LiteralSchema<"ARCHIVE", undefined>, v.LiteralSchema<"INBOX", undefined>, v.LiteralSchema<"SENT", undefined>, v.LiteralSchema<"SPAM", undefined>, v.LiteralSchema<"TRASH", undefined>], undefined>;
33
33
  number: {
@@ -35,7 +35,7 @@ export declare const marcoSchemas: {
35
35
  positiveInteger: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
36
36
  };
37
37
  oauth: {
38
- provider: () => v.LiteralSchema<"GOOGLE", undefined>;
38
+ provider: () => v.UnionSchema<[v.LiteralSchema<"GOOGLE", undefined>, v.LiteralSchema<"OUTLOOK", undefined>], undefined>;
39
39
  };
40
40
  string: {
41
41
  email: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAqCP,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;CASpC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAsCP,MAAM,OAAO,MAAM;;;;;;;;;;;;;;;;CAYpC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,eAAe,CAAC,CAAC,CAAA"}
@@ -32,7 +32,8 @@ export const marcoSchemas = {
32
32
  v.literal('AWAITING_CONNECTION'),
33
33
  v.literal('CONNECTED'),
34
34
  v.literal('CONNECTION_FAILED_CONNECTION_ERROR'),
35
- v.literal('CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR'),
35
+ v.literal('CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR'), // TODO: Deprecate this
36
+ v.literal('CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR'),
36
37
  v.literal('CONNECTION_FAILED_AUTHENTICATION_ERROR'),
37
38
  v.literal('CONNECTION_FAILED_UNKNOWN_ERROR'),
38
39
  ]),
@@ -49,7 +50,10 @@ export const marcoSchemas = {
49
50
  positiveInteger: () => v.nonOptional(v.pipe(v.number(), v.integer(), v.minValue(0))),
50
51
  },
51
52
  oauth: {
52
- provider: () => v.literal('GOOGLE'),
53
+ provider: () => v.union([
54
+ v.literal('GOOGLE'),
55
+ v.literal('OUTLOOK'),
56
+ ]),
53
57
  },
54
58
  string: string,
55
59
  };
@@ -34,39 +34,6 @@ export declare const endpoints: {
34
34
  readonly status: import("valibot").LiteralSchema<200, undefined>;
35
35
  }, undefined>], undefined>>;
36
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
- };
70
37
  sync: {
71
38
  pull: {
72
39
  account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -114,7 +81,7 @@ export declare const endpoints: {
114
81
  }, undefined>;
115
82
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
116
83
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
117
- readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
84
+ readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
118
85
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
119
86
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
120
87
  readonly mailCounts: import("valibot").ObjectSchema<{
@@ -442,7 +409,7 @@ export declare const endpoints: {
442
409
  readonly args: import("valibot").ObjectSchema<{
443
410
  readonly connectionConfig: import("valibot").ObjectSchema<{
444
411
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
445
- readonly provider: import("valibot").LiteralSchema<"GOOGLE", undefined>;
412
+ readonly provider: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"GOOGLE", undefined>, import("valibot").LiteralSchema<"OUTLOOK", undefined>], undefined>;
446
413
  }, undefined>;
447
414
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
448
415
  }, 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"}
@@ -31,39 +31,6 @@ export declare const privateGroup: {
31
31
  readonly status: import("valibot").LiteralSchema<200, undefined>;
32
32
  }, undefined>], undefined>>;
33
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
- };
67
34
  sync: {
68
35
  pull: {
69
36
  account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -111,7 +78,7 @@ export declare const privateGroup: {
111
78
  }, undefined>;
112
79
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
113
80
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
114
- readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
81
+ readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
115
82
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
116
83
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
117
84
  readonly mailCounts: import("valibot").ObjectSchema<{
@@ -439,7 +406,7 @@ export declare const privateGroup: {
439
406
  readonly args: import("valibot").ObjectSchema<{
440
407
  readonly connectionConfig: import("valibot").ObjectSchema<{
441
408
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
442
- readonly provider: import("valibot").LiteralSchema<"GOOGLE", undefined>;
409
+ readonly provider: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"GOOGLE", undefined>, import("valibot").LiteralSchema<"OUTLOOK", undefined>], undefined>;
443
410
  }, undefined>;
444
411
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
445
412
  }, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
@@ -1,10 +1,8 @@
1
1
  import { emailMessage } from './emailMessage';
2
- import { oauth } from './oauth';
3
2
  import { sync } from './sync';
4
3
  import { user } from './user';
5
4
  export const privateGroup = {
6
5
  emailMessage,
7
- oauth,
8
6
  sync,
9
7
  user,
10
8
  };
@@ -45,7 +45,7 @@ export declare const sync: {
45
45
  }, undefined>;
46
46
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
47
47
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
48
- readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
48
+ readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
49
49
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
50
50
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
51
51
  readonly mailCounts: import("valibot").ObjectSchema<{
@@ -373,7 +373,7 @@ export declare const sync: {
373
373
  readonly args: import("valibot").ObjectSchema<{
374
374
  readonly connectionConfig: import("valibot").ObjectSchema<{
375
375
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
376
- readonly provider: import("valibot").LiteralSchema<"GOOGLE", undefined>;
376
+ readonly provider: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"GOOGLE", undefined>, import("valibot").LiteralSchema<"OUTLOOK", undefined>], undefined>;
377
377
  }, undefined>;
378
378
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
379
379
  }, undefined>;
@@ -44,7 +44,7 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
44
44
  }, undefined>;
45
45
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
46
46
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
47
- readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
47
+ readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
48
48
  readonly labels: v.ArraySchema<v.ObjectSchema<{
49
49
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
50
50
  readonly mailCounts: v.ObjectSchema<{
@@ -44,7 +44,7 @@ export declare const pull: {
44
44
  }, undefined>;
45
45
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
46
46
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
47
- readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
47
+ readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
48
48
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
49
49
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
50
50
  readonly mailCounts: import("valibot").ObjectSchema<{
@@ -74,7 +74,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
74
74
  readonly args: v.ObjectSchema<{
75
75
  readonly connectionConfig: v.ObjectSchema<{
76
76
  readonly code: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
- readonly provider: v.LiteralSchema<"GOOGLE", undefined>;
77
+ readonly provider: v.UnionSchema<[v.LiteralSchema<"GOOGLE", undefined>, v.LiteralSchema<"OUTLOOK", undefined>], undefined>;
78
78
  }, undefined>;
79
79
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
80
80
  }, undefined>;
@@ -74,7 +74,7 @@ export declare const push: {
74
74
  readonly args: import("valibot").ObjectSchema<{
75
75
  readonly connectionConfig: import("valibot").ObjectSchema<{
76
76
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
77
- readonly provider: import("valibot").LiteralSchema<"GOOGLE", undefined>;
77
+ readonly provider: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"GOOGLE", undefined>, import("valibot").LiteralSchema<"OUTLOOK", undefined>], undefined>;
78
78
  }, undefined>;
79
79
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
80
80
  }, undefined>;
@@ -33,39 +33,6 @@ export declare const marcoSDK: {
33
33
  readonly status: import("valibot").LiteralSchema<200, undefined>;
34
34
  }, undefined>], undefined>>;
35
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
- };
69
36
  sync: {
70
37
  pull: {
71
38
  account: import("..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
@@ -113,7 +80,7 @@ export declare const marcoSDK: {
113
80
  }, undefined>;
114
81
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
115
82
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
116
- readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
83
+ readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
117
84
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
118
85
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
119
86
  readonly mailCounts: import("valibot").ObjectSchema<{
@@ -441,7 +408,7 @@ export declare const marcoSDK: {
441
408
  readonly args: import("valibot").ObjectSchema<{
442
409
  readonly connectionConfig: import("valibot").ObjectSchema<{
443
410
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
444
- readonly provider: import("valibot").LiteralSchema<"GOOGLE", undefined>;
411
+ readonly provider: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"GOOGLE", undefined>, import("valibot").LiteralSchema<"OUTLOOK", undefined>], undefined>;
445
412
  }, undefined>;
446
413
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
447
414
  }, 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.317",
4
+ "version": "2.0.319",
5
5
  "author": "team@marcoapp.io",
6
6
  "main": "dist/index.js",
7
7
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1,31 +0,0 @@
1
- import * as v from 'valibot';
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>]>;
5
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
- readonly data: v.ObjectSchema<{
7
- readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
- }, undefined>;
9
- readonly status: v.LiteralSchema<401, undefined>;
10
- }, undefined>, v.ObjectSchema<{
11
- readonly data: v.ObjectSchema<{
12
- readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
13
- readonly issues: v.ObjectSchema<{
14
- readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
15
- readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
16
- readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
17
- }, undefined>;
18
- }, undefined>;
19
- readonly status: v.LiteralSchema<400, undefined>;
20
- }, undefined>, v.ObjectSchema<{
21
- readonly data: v.ObjectSchema<{
22
- readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
23
- }, undefined>;
24
- readonly status: v.LiteralSchema<404, undefined>;
25
- }, undefined>, v.ObjectSchema<{
26
- readonly data: v.ObjectSchema<{
27
- readonly url: v.StringSchema<undefined>;
28
- }, undefined>;
29
- readonly status: v.LiteralSchema<200, undefined>;
30
- }, undefined>], undefined>>;
31
- //# sourceMappingURL=authorize.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,23 +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 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,32 +0,0 @@
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>]>;
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 data: import("valibot").ObjectSchema<{
27
- readonly url: import("valibot").StringSchema<undefined>;
28
- }, undefined>;
29
- readonly status: import("valibot").LiteralSchema<200, undefined>;
30
- }, undefined>], undefined>>;
31
- };
32
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- import { authorize } from './authorize';
2
- export const google = {
3
- authorize,
4
- };
@@ -1,34 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/oauth/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAA"}
@@ -1,4 +0,0 @@
1
- import { google } from './google';
2
- export const oauth = {
3
- google,
4
- };