@marcoappio/marco-config 2.0.316 → 2.0.318

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 (35) hide show
  1. package/dist/clients/account.d.ts +2 -2
  2. package/dist/clients/draft.d.ts +10 -10
  3. package/dist/clients/draft.d.ts.map +1 -1
  4. package/dist/clients/draft.js +10 -10
  5. package/dist/clients/index.d.ts +12 -12
  6. package/dist/marcoPublicConfig.d.ts +5 -0
  7. package/dist/marcoPublicConfig.d.ts.map +1 -1
  8. package/dist/marcoPublicConfig.js +15 -0
  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 +14 -47
  13. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  14. package/dist/sdk/endpoints/private/index.d.ts +14 -47
  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 +14 -14
  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/draft.d.ts +12 -12
  22. package/dist/sdk/endpoints/private/sync/push/draft.js +6 -6
  23. package/dist/sdk/endpoints/private/sync/push/index.d.ts +13 -13
  24. package/dist/sdk/index.d.ts +14 -47
  25. package/dist/sdk/index.d.ts.map +1 -1
  26. package/package.json +1 -1
  27. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts +0 -31
  28. package/dist/sdk/endpoints/private/oauth/google/authorize.d.ts.map +0 -1
  29. package/dist/sdk/endpoints/private/oauth/google/authorize.js +0 -23
  30. package/dist/sdk/endpoints/private/oauth/google/index.d.ts +0 -32
  31. package/dist/sdk/endpoints/private/oauth/google/index.d.ts.map +0 -1
  32. package/dist/sdk/endpoints/private/oauth/google/index.js +0 -4
  33. package/dist/sdk/endpoints/private/oauth/index.d.ts +0 -34
  34. package/dist/sdk/endpoints/private/oauth/index.d.ts.map +0 -1
  35. 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>;
@@ -98,16 +98,6 @@ export declare const draft: {
98
98
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
99
99
  }, undefined>;
100
100
  };
101
- setAliasId: {
102
- delta: v.ObjectSchema<{
103
- readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
104
- readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
105
- readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
106
- readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
107
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
108
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
109
- }, undefined>;
110
- };
111
101
  setContent: {
112
102
  delta: v.ObjectSchema<{
113
103
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -179,6 +169,16 @@ export declare const draft: {
179
169
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
180
170
  }, undefined>;
181
171
  };
172
+ setFrom: {
173
+ delta: v.ObjectSchema<{
174
+ readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
175
+ readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
176
+ readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
177
+ readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
178
+ readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
179
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
180
+ }, undefined>;
181
+ };
182
182
  setScheduledFor: {
183
183
  delta: v.ObjectSchema<{
184
184
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFK,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/clients/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqD5B,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FK,CAAA"}
@@ -79,16 +79,6 @@ export const draft = {
79
79
  updatedAt: marcoSchemas.number.positiveInteger(),
80
80
  }),
81
81
  },
82
- setAliasId: {
83
- delta: v.object({
84
- aliasId: marcoSchemas.string.shortUUID(),
85
- emailAccountId: marcoSchemas.string.shortUUID(),
86
- from: marcoSchemas.string.email(),
87
- fromName: marcoSchemas.string.nullable(),
88
- id: marcoSchemas.string.shortUUID(),
89
- updatedAt: marcoSchemas.number.positiveInteger(),
90
- }),
91
- },
92
82
  setContent: {
93
83
  delta: v.object({
94
84
  id: marcoSchemas.string.shortUUID(),
@@ -111,6 +101,16 @@ export const draft = {
111
101
  updatedAt: marcoSchemas.number.positiveInteger(),
112
102
  }),
113
103
  },
104
+ setFrom: {
105
+ delta: v.object({
106
+ aliasId: marcoSchemas.string.shortUUID(),
107
+ emailAccountId: marcoSchemas.string.shortUUID(),
108
+ from: marcoSchemas.string.email(),
109
+ fromName: marcoSchemas.string.nullable(),
110
+ id: marcoSchemas.string.shortUUID(),
111
+ updatedAt: marcoSchemas.number.positiveInteger(),
112
+ }),
113
+ },
114
114
  setScheduledFor: {
115
115
  delta: v.object({
116
116
  id: marcoSchemas.string.shortUUID(),
@@ -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>;
@@ -250,16 +250,6 @@ export declare const marcoClients: {
250
250
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
251
251
  }, undefined>;
252
252
  };
253
- setAliasId: {
254
- delta: import("valibot").ObjectSchema<{
255
- readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
256
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
257
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
258
- readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
259
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
260
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
261
- }, undefined>;
262
- };
263
253
  setContent: {
264
254
  delta: import("valibot").ObjectSchema<{
265
255
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -331,6 +321,16 @@ export declare const marcoClients: {
331
321
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
332
322
  }, undefined>;
333
323
  };
324
+ setFrom: {
325
+ delta: import("valibot").ObjectSchema<{
326
+ readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
327
+ readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
328
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
329
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
330
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
331
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
332
+ }, undefined>;
333
+ };
334
334
  setScheduledFor: {
335
335
  delta: import("valibot").ObjectSchema<{
336
336
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -19,6 +19,11 @@ type MarcoPublicConfig = {
19
19
  key: string;
20
20
  };
21
21
  };
22
+ outlook: {
23
+ oauth: {
24
+ clientId: string;
25
+ };
26
+ };
22
27
  replicache: {
23
28
  licenseKey: string;
24
29
  };
@@ -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,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,OAAO,EAAE;QACP,KAAK,EAAE;YACL,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;AAoGD,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
@@ -19,6 +19,11 @@ const configMap = {
19
19
  key: 'IuF65Dgky1rJ2Aua',
20
20
  },
21
21
  },
22
+ outlook: {
23
+ oauth: {
24
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
25
+ },
26
+ },
22
27
  replicache: {
23
28
  licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
24
29
  },
@@ -45,6 +50,11 @@ const configMap = {
45
50
  key: 'IuF65Dgky1rJ2Aua',
46
51
  },
47
52
  },
53
+ outlook: {
54
+ oauth: {
55
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
56
+ },
57
+ },
48
58
  replicache: {
49
59
  licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
50
60
  },
@@ -72,6 +82,11 @@ const configMap = {
72
82
  key: 'O8bc4c11yHuNNS',
73
83
  },
74
84
  },
85
+ outlook: {
86
+ oauth: {
87
+ clientId: '338197922176-oml1o2iputhhu3vijgue9h8sbfq17qme.apps.googleusercontent.com',
88
+ },
89
+ },
75
90
  replicache: {
76
91
  licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
77
92
  },
@@ -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>;
@@ -589,18 +556,6 @@ export declare const endpoints: {
589
556
  readonly clientID: import("valibot").StringSchema<undefined>;
590
557
  readonly id: import("valibot").NumberSchema<undefined>;
591
558
  readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
592
- }, undefined> | import("valibot").ObjectSchema<{
593
- readonly args: import("valibot").ObjectSchema<{
594
- readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
595
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
596
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
597
- readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
598
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
599
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
600
- }, undefined>;
601
- readonly clientID: import("valibot").StringSchema<undefined>;
602
- readonly id: import("valibot").NumberSchema<undefined>;
603
- readonly name: import("valibot").LiteralSchema<"setAliasId", undefined>;
604
559
  }, undefined> | import("valibot").ObjectSchema<{
605
560
  readonly args: import("valibot").ObjectSchema<{
606
561
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -678,6 +633,18 @@ export declare const endpoints: {
678
633
  readonly clientID: import("valibot").StringSchema<undefined>;
679
634
  readonly id: import("valibot").NumberSchema<undefined>;
680
635
  readonly name: import("valibot").LiteralSchema<"setEnvelope", undefined>;
636
+ }, undefined> | import("valibot").ObjectSchema<{
637
+ readonly args: import("valibot").ObjectSchema<{
638
+ readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
639
+ readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
640
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
641
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
642
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
643
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
644
+ }, undefined>;
645
+ readonly clientID: import("valibot").StringSchema<undefined>;
646
+ readonly id: import("valibot").NumberSchema<undefined>;
647
+ readonly name: import("valibot").LiteralSchema<"setFrom", undefined>;
681
648
  }, undefined> | import("valibot").ObjectSchema<{
682
649
  readonly args: import("valibot").ObjectSchema<{
683
650
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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>;
@@ -586,18 +553,6 @@ export declare const privateGroup: {
586
553
  readonly clientID: import("valibot").StringSchema<undefined>;
587
554
  readonly id: import("valibot").NumberSchema<undefined>;
588
555
  readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
589
- }, undefined> | import("valibot").ObjectSchema<{
590
- readonly args: import("valibot").ObjectSchema<{
591
- readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
592
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
593
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
594
- readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
595
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
596
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
597
- }, undefined>;
598
- readonly clientID: import("valibot").StringSchema<undefined>;
599
- readonly id: import("valibot").NumberSchema<undefined>;
600
- readonly name: import("valibot").LiteralSchema<"setAliasId", undefined>;
601
556
  }, undefined> | import("valibot").ObjectSchema<{
602
557
  readonly args: import("valibot").ObjectSchema<{
603
558
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -675,6 +630,18 @@ export declare const privateGroup: {
675
630
  readonly clientID: import("valibot").StringSchema<undefined>;
676
631
  readonly id: import("valibot").NumberSchema<undefined>;
677
632
  readonly name: import("valibot").LiteralSchema<"setEnvelope", undefined>;
633
+ }, undefined> | import("valibot").ObjectSchema<{
634
+ readonly args: import("valibot").ObjectSchema<{
635
+ readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
636
+ readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
637
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
638
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
639
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
640
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
641
+ }, undefined>;
642
+ readonly clientID: import("valibot").StringSchema<undefined>;
643
+ readonly id: import("valibot").NumberSchema<undefined>;
644
+ readonly name: import("valibot").LiteralSchema<"setFrom", undefined>;
678
645
  }, undefined> | import("valibot").ObjectSchema<{
679
646
  readonly args: import("valibot").ObjectSchema<{
680
647
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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>;
@@ -520,18 +520,6 @@ export declare const sync: {
520
520
  readonly clientID: import("valibot").StringSchema<undefined>;
521
521
  readonly id: import("valibot").NumberSchema<undefined>;
522
522
  readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
523
- }, undefined> | import("valibot").ObjectSchema<{
524
- readonly args: import("valibot").ObjectSchema<{
525
- readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
526
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
527
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
528
- readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
529
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
530
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
531
- }, undefined>;
532
- readonly clientID: import("valibot").StringSchema<undefined>;
533
- readonly id: import("valibot").NumberSchema<undefined>;
534
- readonly name: import("valibot").LiteralSchema<"setAliasId", undefined>;
535
523
  }, undefined> | import("valibot").ObjectSchema<{
536
524
  readonly args: import("valibot").ObjectSchema<{
537
525
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -609,6 +597,18 @@ export declare const sync: {
609
597
  readonly clientID: import("valibot").StringSchema<undefined>;
610
598
  readonly id: import("valibot").NumberSchema<undefined>;
611
599
  readonly name: import("valibot").LiteralSchema<"setEnvelope", undefined>;
600
+ }, undefined> | import("valibot").ObjectSchema<{
601
+ readonly args: import("valibot").ObjectSchema<{
602
+ readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
603
+ readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
604
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
605
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
606
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
607
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
608
+ }, undefined>;
609
+ readonly clientID: import("valibot").StringSchema<undefined>;
610
+ readonly id: import("valibot").NumberSchema<undefined>;
611
+ readonly name: import("valibot").LiteralSchema<"setFrom", undefined>;
612
612
  }, undefined> | import("valibot").ObjectSchema<{
613
613
  readonly args: import("valibot").ObjectSchema<{
614
614
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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>;
@@ -82,18 +82,6 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
82
82
  readonly clientID: v.StringSchema<undefined>;
83
83
  readonly id: v.NumberSchema<undefined>;
84
84
  readonly name: v.LiteralSchema<"sendDraft", undefined>;
85
- }, undefined> | v.ObjectSchema<{
86
- readonly args: v.ObjectSchema<{
87
- readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
88
- readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
89
- readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
90
- readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
91
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
92
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
93
- }, undefined>;
94
- readonly clientID: v.StringSchema<undefined>;
95
- readonly id: v.NumberSchema<undefined>;
96
- readonly name: v.LiteralSchema<"setAliasId", undefined>;
97
85
  }, undefined> | v.ObjectSchema<{
98
86
  readonly args: v.ObjectSchema<{
99
87
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -171,6 +159,18 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
171
159
  readonly clientID: v.StringSchema<undefined>;
172
160
  readonly id: v.NumberSchema<undefined>;
173
161
  readonly name: v.LiteralSchema<"setEnvelope", undefined>;
162
+ }, undefined> | v.ObjectSchema<{
163
+ readonly args: v.ObjectSchema<{
164
+ readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
165
+ readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
166
+ readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
167
+ readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
168
+ readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
169
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
170
+ }, undefined>;
171
+ readonly clientID: v.StringSchema<undefined>;
172
+ readonly id: v.NumberSchema<undefined>;
173
+ readonly name: v.LiteralSchema<"setFrom", undefined>;
174
174
  }, undefined> | v.ObjectSchema<{
175
175
  readonly args: v.ObjectSchema<{
176
176
  readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
@@ -42,12 +42,6 @@ export const syncPushDraft = createEndpoint({
42
42
  id: v.number(),
43
43
  name: v.literal('sendDraft'),
44
44
  }),
45
- setAliasId: v.object({
46
- args: draft.mutators.setAliasId.delta,
47
- clientID: v.string(),
48
- id: v.number(),
49
- name: v.literal('setAliasId'),
50
- }),
51
45
  setContent: v.object({
52
46
  args: draft.mutators.setContent.delta,
53
47
  clientID: v.string(),
@@ -66,6 +60,12 @@ export const syncPushDraft = createEndpoint({
66
60
  id: v.number(),
67
61
  name: v.literal('setEnvelope'),
68
62
  }),
63
+ setFrom: v.object({
64
+ args: draft.mutators.setFrom.delta,
65
+ clientID: v.string(),
66
+ id: v.number(),
67
+ name: v.literal('setFrom'),
68
+ }),
69
69
  setScheduledFor: v.object({
70
70
  args: draft.mutators.setScheduledFor.delta,
71
71
  clientID: v.string(),
@@ -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>;
@@ -221,18 +221,6 @@ export declare const push: {
221
221
  readonly clientID: import("valibot").StringSchema<undefined>;
222
222
  readonly id: import("valibot").NumberSchema<undefined>;
223
223
  readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
224
- }, undefined> | import("valibot").ObjectSchema<{
225
- readonly args: import("valibot").ObjectSchema<{
226
- readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
227
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
228
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
229
- readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
231
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
232
- }, undefined>;
233
- readonly clientID: import("valibot").StringSchema<undefined>;
234
- readonly id: import("valibot").NumberSchema<undefined>;
235
- readonly name: import("valibot").LiteralSchema<"setAliasId", undefined>;
236
224
  }, undefined> | import("valibot").ObjectSchema<{
237
225
  readonly args: import("valibot").ObjectSchema<{
238
226
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -310,6 +298,18 @@ export declare const push: {
310
298
  readonly clientID: import("valibot").StringSchema<undefined>;
311
299
  readonly id: import("valibot").NumberSchema<undefined>;
312
300
  readonly name: import("valibot").LiteralSchema<"setEnvelope", undefined>;
301
+ }, undefined> | import("valibot").ObjectSchema<{
302
+ readonly args: import("valibot").ObjectSchema<{
303
+ readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
304
+ readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
305
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
306
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
307
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
308
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
309
+ }, undefined>;
310
+ readonly clientID: import("valibot").StringSchema<undefined>;
311
+ readonly id: import("valibot").NumberSchema<undefined>;
312
+ readonly name: import("valibot").LiteralSchema<"setFrom", undefined>;
313
313
  }, undefined> | import("valibot").ObjectSchema<{
314
314
  readonly args: import("valibot").ObjectSchema<{
315
315
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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>;
@@ -588,18 +555,6 @@ export declare const marcoSDK: {
588
555
  readonly clientID: import("valibot").StringSchema<undefined>;
589
556
  readonly id: import("valibot").NumberSchema<undefined>;
590
557
  readonly name: import("valibot").LiteralSchema<"sendDraft", undefined>;
591
- }, undefined> | import("valibot").ObjectSchema<{
592
- readonly args: import("valibot").ObjectSchema<{
593
- readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
594
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
595
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
596
- readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
597
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
598
- readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
599
- }, undefined>;
600
- readonly clientID: import("valibot").StringSchema<undefined>;
601
- readonly id: import("valibot").NumberSchema<undefined>;
602
- readonly name: import("valibot").LiteralSchema<"setAliasId", undefined>;
603
558
  }, undefined> | import("valibot").ObjectSchema<{
604
559
  readonly args: import("valibot").ObjectSchema<{
605
560
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
@@ -677,6 +632,18 @@ export declare const marcoSDK: {
677
632
  readonly clientID: import("valibot").StringSchema<undefined>;
678
633
  readonly id: import("valibot").NumberSchema<undefined>;
679
634
  readonly name: import("valibot").LiteralSchema<"setEnvelope", undefined>;
635
+ }, undefined> | import("valibot").ObjectSchema<{
636
+ readonly args: import("valibot").ObjectSchema<{
637
+ readonly aliasId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
638
+ readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
639
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
640
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
641
+ readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
642
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
643
+ }, undefined>;
644
+ readonly clientID: import("valibot").StringSchema<undefined>;
645
+ readonly id: import("valibot").NumberSchema<undefined>;
646
+ readonly name: import("valibot").LiteralSchema<"setFrom", undefined>;
680
647
  }, undefined> | import("valibot").ObjectSchema<{
681
648
  readonly args: import("valibot").ObjectSchema<{
682
649
  readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | 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.316",
4
+ "version": "2.0.318",
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
- };