@marcoappio/marco-config 2.0.162 → 2.0.164

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 (67) hide show
  1. package/dist/clients/account.d.ts +7 -7
  2. package/dist/clients/account.js +6 -6
  3. package/dist/clients/contact.d.ts +1 -1
  4. package/dist/clients/contact.js +1 -1
  5. package/dist/clients/draft.d.ts +12 -77
  6. package/dist/clients/draft.d.ts.map +1 -1
  7. package/dist/clients/draft.js +25 -27
  8. package/dist/clients/index.d.ts +27 -93
  9. package/dist/clients/index.d.ts.map +1 -1
  10. package/dist/clients/thread.d.ts +5 -5
  11. package/dist/clients/thread.js +5 -5
  12. package/dist/clients/user.d.ts +3 -3
  13. package/dist/clients/user.js +2 -2
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/schemas.d.ts +1 -0
  17. package/dist/schemas.d.ts.map +1 -1
  18. package/dist/schemas.js +2 -1
  19. package/dist/sdk/endpoints/index.d.ts +39 -107
  20. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  21. package/dist/sdk/endpoints/private/{email-message/email-message-html-get.d.ts → emailMessage/getEmailMessageHTML.d.ts} +2 -2
  22. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
  23. package/dist/sdk/endpoints/private/{email-message/email-message-html-get.js → emailMessage/getEmailMessageHTML.js} +1 -1
  24. package/dist/sdk/endpoints/private/{email-message → emailMessage}/index.d.ts +1 -1
  25. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
  26. package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
  27. package/dist/sdk/endpoints/private/index.d.ts +35 -103
  28. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/index.js +1 -1
  30. package/dist/sdk/endpoints/private/sync/index.d.ts +33 -101
  31. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  32. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +3 -3
  33. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +2 -2
  34. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +4 -5
  35. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  36. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +15 -16
  37. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -1
  38. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +4 -4
  39. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +2 -2
  40. package/dist/sdk/endpoints/private/sync/push/account.d.ts +6 -6
  41. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +6 -73
  42. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -1
  43. package/dist/sdk/endpoints/private/sync/push/draft.js +1 -7
  44. package/dist/sdk/endpoints/private/sync/push/index.d.ts +18 -85
  45. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  46. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +3 -3
  47. package/dist/sdk/endpoints/private/sync/push/user.d.ts +3 -3
  48. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +1 -1
  49. package/dist/sdk/endpoints/private/user/index.d.ts +1 -1
  50. package/dist/sdk/endpoints/public/auth/index.d.ts +3 -3
  51. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +1 -1
  52. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +1 -1
  53. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +1 -1
  54. package/dist/sdk/endpoints/public/healthcheck/index.d.ts +1 -1
  55. package/dist/sdk/endpoints/public/index.d.ts +4 -4
  56. package/dist/sdk/index.d.ts +39 -107
  57. package/dist/sdk/index.d.ts.map +1 -1
  58. package/dist/types/JSONContent.d.ts +11 -0
  59. package/dist/types/JSONContent.d.ts.map +1 -0
  60. package/dist/types/JSONContent.js +1 -0
  61. package/dist/types/index.d.ts +1 -0
  62. package/dist/types/index.d.ts.map +1 -1
  63. package/dist/types/index.js +1 -0
  64. package/package.json +2 -2
  65. package/dist/sdk/endpoints/private/email-message/email-message-html-get.d.ts.map +0 -1
  66. package/dist/sdk/endpoints/private/email-message/index.d.ts.map +0 -1
  67. package/dist/sdk/endpoints/private/email-message/index.js +0 -4
@@ -2,7 +2,7 @@ export declare const pull: {
2
2
  account: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
3
3
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
4
4
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
5
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
5
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
6
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
7
7
  readonly status: import("valibot").LiteralSchema<400, undefined>;
8
8
  }, undefined>, import("valibot").ObjectSchema<{
@@ -22,7 +22,7 @@ export declare const pull: {
22
22
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
23
23
  readonly value: import("valibot").ObjectSchema<{
24
24
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
25
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
25
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
26
26
  readonly imapPasswordConfig: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
27
27
  readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
28
28
  readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -30,7 +30,7 @@ export declare const pull: {
30
30
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED", undefined>], undefined>;
31
31
  }, undefined>, undefined>;
32
32
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
33
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
33
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
34
34
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
35
35
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
36
  readonly specialUse: import("valibot").NullableSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"ARCHIVE", undefined>, import("valibot").LiteralSchema<"INBOX", undefined>, import("valibot").LiteralSchema<"SENT", undefined>, import("valibot").LiteralSchema<"SPAM", undefined>, import("valibot").LiteralSchema<"TRASH", undefined>], undefined>, undefined>;
@@ -52,7 +52,7 @@ export declare const pull: {
52
52
  contact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
53
53
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
54
54
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
55
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
55
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
56
56
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
57
57
  readonly status: import("valibot").LiteralSchema<400, undefined>;
58
58
  }, undefined>, import("valibot").ObjectSchema<{
@@ -71,7 +71,7 @@ export declare const pull: {
71
71
  readonly key: import("valibot").StringSchema<undefined>;
72
72
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
73
73
  readonly value: import("valibot").ObjectSchema<{
74
- readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
74
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
75
75
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
76
76
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
77
77
  }, undefined>;
@@ -82,7 +82,7 @@ export declare const pull: {
82
82
  draft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
83
83
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
84
84
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
85
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
85
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
86
86
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
87
87
  readonly status: import("valibot").LiteralSchema<400, undefined>;
88
88
  }, undefined>, import("valibot").ObjectSchema<{
@@ -104,13 +104,12 @@ export declare const pull: {
104
104
  readonly body: import("valibot").ObjectSchema<{
105
105
  readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
106
106
  readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
107
- readonly content: import("valibot").UnknownSchema;
108
- readonly replyTo: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
107
+ readonly content: import("valibot").GenericSchema<import("../../../../..").JSONContent>;
109
108
  readonly subject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
110
109
  readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
111
110
  }, undefined>;
112
- readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
113
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
111
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
112
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
114
113
  readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
115
114
  }, undefined>;
116
115
  }, undefined>], undefined>, undefined>;
@@ -124,7 +123,7 @@ export declare const pull: {
124
123
  readonly order: import("valibot").StringSchema<undefined>;
125
124
  readonly version: import("valibot").NumberSchema<undefined>;
126
125
  }, undefined>, undefined>;
127
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
126
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
128
127
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
129
128
  readonly status: import("valibot").LiteralSchema<400, undefined>;
130
129
  }, undefined>, import("valibot").ObjectSchema<{
@@ -148,8 +147,8 @@ export declare const pull: {
148
147
  readonly key: import("valibot").StringSchema<undefined>;
149
148
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
150
149
  readonly value: import("valibot").ObjectSchema<{
151
- readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
152
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
150
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
151
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
153
152
  readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
154
153
  readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
155
154
  readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -166,7 +165,7 @@ export declare const pull: {
166
165
  readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
167
166
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
168
167
  }, undefined>;
169
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
168
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
170
169
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
171
170
  readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
172
171
  readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
@@ -187,7 +186,7 @@ export declare const pull: {
187
186
  user: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
188
187
  readonly clientGroupID: import("valibot").StringSchema<undefined>;
189
188
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
190
- }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
189
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
191
190
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
192
191
  readonly status: import("valibot").LiteralSchema<400, undefined>;
193
192
  }, undefined>, import("valibot").ObjectSchema<{
@@ -206,7 +205,7 @@ export declare const pull: {
206
205
  readonly key: import("valibot").StringSchema<undefined>;
207
206
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
208
207
  readonly value: import("valibot").ObjectSchema<{
209
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
208
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
210
209
  readonly settings: import("valibot").ObjectSchema<{
211
210
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
212
211
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
@@ -6,7 +6,7 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
6
6
  readonly order: v.StringSchema<undefined>;
7
7
  readonly version: v.NumberSchema<undefined>;
8
8
  }, undefined>, undefined>;
9
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
9
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
10
10
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
11
11
  readonly status: v.LiteralSchema<400, undefined>;
12
12
  }, undefined>, v.ObjectSchema<{
@@ -30,8 +30,8 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
30
30
  readonly key: v.StringSchema<undefined>;
31
31
  readonly op: v.LiteralSchema<"put", undefined>;
32
32
  readonly value: v.ObjectSchema<{
33
- readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
34
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
33
+ readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
34
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
35
35
  readonly messages: v.ArraySchema<v.ObjectSchema<{
36
36
  readonly bcc: v.ArraySchema<v.ObjectSchema<{
37
37
  readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
@@ -48,7 +48,7 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
48
48
  readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
49
49
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
50
50
  }, undefined>;
51
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
51
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
52
52
  readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
53
53
  readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
54
54
  readonly replyTo: v.ArraySchema<v.ObjectSchema<{
@@ -2,7 +2,7 @@ import * as v from 'valibot';
2
2
  export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", v.ObjectSchema<{
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
7
7
  readonly status: v.LiteralSchema<400, undefined>;
8
8
  }, undefined>, v.ObjectSchema<{
@@ -21,7 +21,7 @@ export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/
21
21
  readonly key: v.StringSchema<undefined>;
22
22
  readonly op: v.LiteralSchema<"put", undefined>;
23
23
  readonly value: v.ObjectSchema<{
24
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
24
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
25
25
  readonly settings: v.ObjectSchema<{
26
26
  readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
27
27
  readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -3,7 +3,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
7
7
  readonly imapPasswordConfig: v.ObjectSchema<{
8
8
  readonly status: v.LiteralSchema<"AWAITING_CONNECTION", undefined>;
9
9
  readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -18,21 +18,21 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
18
18
  readonly args: v.ObjectSchema<{
19
19
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
20
20
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
21
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
21
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
22
22
  }, undefined>;
23
23
  readonly clientID: v.StringSchema<undefined>;
24
24
  readonly id: v.NumberSchema<undefined>;
25
25
  readonly name: v.LiteralSchema<"add", undefined>;
26
26
  }, undefined>, v.ObjectSchema<{
27
27
  readonly args: v.ObjectSchema<{
28
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
29
29
  }, undefined>;
30
30
  readonly clientID: v.StringSchema<undefined>;
31
31
  readonly id: v.NumberSchema<undefined>;
32
32
  readonly name: v.LiteralSchema<"delete", undefined>;
33
33
  }, undefined>, v.ObjectSchema<{
34
34
  readonly args: v.ObjectSchema<{
35
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
35
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
36
36
  readonly settings: Omit<v.ObjectSchema<{
37
37
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
38
38
  readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
@@ -43,7 +43,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
43
43
  readonly firstName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
44
44
  readonly lastName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
45
45
  };
46
- readonly '~standard': v.StandardSchemaProps<{
46
+ readonly '~standard': v.StandardProps<{
47
47
  color?: string | undefined;
48
48
  firstName?: string | null | undefined;
49
49
  lastName?: string | null | undefined;
@@ -76,7 +76,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
76
76
  readonly id: v.NumberSchema<undefined>;
77
77
  readonly name: v.LiteralSchema<"setSettings", undefined>;
78
78
  }, undefined>], undefined>, undefined>;
79
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
79
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
80
80
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
81
81
  readonly status: v.LiteralSchema<400, undefined>;
82
82
  }, undefined>, v.ObjectSchema<{
@@ -3,96 +3,29 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
7
7
  }, undefined>;
8
8
  readonly clientID: v.StringSchema<undefined>;
9
9
  readonly id: v.NumberSchema<undefined>;
10
10
  readonly name: v.LiteralSchema<"delete", undefined>;
11
- }, undefined>, v.ObjectSchema<{
12
- readonly args: v.ObjectSchema<{
13
- readonly body: Omit<v.ObjectSchema<{
14
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
15
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
16
- readonly content: v.UnknownSchema;
17
- readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
18
- readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
19
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
20
- }, undefined>, "entries" | "~standard" | "~run" | "~types"> & {
21
- readonly entries: {
22
- readonly bcc: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
23
- readonly cc: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
24
- readonly content: v.OptionalSchema<v.UnknownSchema, undefined>;
25
- readonly replyTo: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
26
- readonly subject: v.OptionalSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
27
- readonly to: v.OptionalSchema<v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>, undefined>;
28
- };
29
- readonly '~standard': v.StandardSchemaProps<{
30
- bcc?: string[] | undefined;
31
- cc?: string[] | undefined;
32
- replyTo?: string[] | undefined;
33
- to?: string[] | undefined;
34
- content?: unknown;
35
- subject?: string | undefined;
36
- }, {
37
- bcc?: string[] | undefined;
38
- cc?: string[] | undefined;
39
- replyTo?: string[] | undefined;
40
- to?: string[] | undefined;
41
- content?: unknown;
42
- subject?: string | undefined;
43
- }>;
44
- readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
45
- bcc?: string[] | undefined;
46
- cc?: string[] | undefined;
47
- replyTo?: string[] | undefined;
48
- to?: string[] | undefined;
49
- content?: unknown;
50
- subject?: string | undefined;
51
- }, v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue>;
52
- readonly '~types'?: {
53
- readonly input: {
54
- bcc?: string[] | undefined;
55
- cc?: string[] | undefined;
56
- replyTo?: string[] | undefined;
57
- to?: string[] | undefined;
58
- content?: unknown;
59
- subject?: string | undefined;
60
- };
61
- readonly output: {
62
- bcc?: string[] | undefined;
63
- cc?: string[] | undefined;
64
- replyTo?: string[] | undefined;
65
- to?: string[] | undefined;
66
- content?: unknown;
67
- subject?: string | undefined;
68
- };
69
- readonly issue: v.StringIssue | v.EmailIssue<string> | v.MaxLengthIssue<string, 255> | v.NonEmptyIssue<string> | v.ObjectIssue | v.NonOptionalIssue | v.ArrayIssue;
70
- } | undefined;
71
- };
72
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
73
- }, undefined>;
74
- readonly clientID: v.StringSchema<undefined>;
75
- readonly id: v.NumberSchema<undefined>;
76
- readonly name: v.LiteralSchema<"update", undefined>;
77
11
  }, undefined>, v.ObjectSchema<{
78
12
  readonly args: v.ObjectSchema<{
79
13
  readonly body: v.ObjectSchema<{
80
14
  readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
81
15
  readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
82
- readonly content: v.UnknownSchema;
83
- readonly replyTo: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
16
+ readonly content: v.GenericSchema<import("../../../../..").JSONContent>;
84
17
  readonly subject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
85
18
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
86
19
  }, undefined>;
87
- readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
88
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
20
+ readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
21
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
89
22
  readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
90
23
  }, undefined>;
91
24
  readonly clientID: v.StringSchema<undefined>;
92
25
  readonly id: v.NumberSchema<undefined>;
93
- readonly name: v.LiteralSchema<"create", undefined>;
26
+ readonly name: v.LiteralSchema<"update", undefined>;
94
27
  }, undefined>], undefined>, undefined>;
95
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
28
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
96
29
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
97
30
  readonly status: v.LiteralSchema<400, undefined>;
98
31
  }, undefined>, v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+BxB,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyBxB,CAAA"}
@@ -13,17 +13,11 @@ export const syncPushDraft = createEndpoint({
13
13
  name: v.literal('delete'),
14
14
  }),
15
15
  v.object({
16
- args: draft.mutators.update.delta,
16
+ args: draft.mutators.upsert.delta,
17
17
  clientID: v.string(),
18
18
  id: v.number(),
19
19
  name: v.literal('update'),
20
20
  }),
21
- v.object({
22
- args: draft.mutators.create.delta,
23
- clientID: v.string(),
24
- id: v.number(),
25
- name: v.literal('create'),
26
- }),
27
21
  ])),
28
22
  }),
29
23
  method: 'POST',