@marcoappio/marco-config 2.0.351 → 2.0.352

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 (73) hide show
  1. package/dist/clients/draft.d.ts +4 -4
  2. package/dist/clients/draft.js +2 -2
  3. package/dist/clients/index.d.ts +4 -4
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/schemas/index.d.ts +1 -2
  8. package/dist/schemas/index.d.ts.map +1 -1
  9. package/dist/schemas/number.d.ts +1 -0
  10. package/dist/schemas/number.d.ts.map +1 -1
  11. package/dist/schemas/number.js +1 -0
  12. package/dist/schemas/string.d.ts +0 -2
  13. package/dist/schemas/string.d.ts.map +1 -1
  14. package/dist/schemas/string.js +0 -3
  15. package/dist/sdk/endpoints/index.d.ts +20 -20
  16. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +1 -1
  17. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
  18. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -1
  19. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +1 -1
  20. package/dist/sdk/endpoints/private/index.d.ts +12 -12
  21. package/dist/sdk/endpoints/private/sync/index.d.ts +11 -11
  22. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +1 -1
  23. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  24. package/dist/sdk/endpoints/private/sync/pull/account.js +3 -2
  25. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +1 -1
  26. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  27. package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -2
  28. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +3 -3
  29. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  30. package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -2
  31. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +9 -9
  32. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +3 -3
  33. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  34. package/dist/sdk/endpoints/private/sync/pull/thread.js +4 -3
  35. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +1 -1
  36. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  37. package/dist/sdk/endpoints/private/sync/pull/user.js +3 -2
  38. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +2 -2
  39. package/dist/sdk/endpoints/private/sync/push/index.d.ts +2 -2
  40. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/sync/push/thread.js +2 -1
  42. package/dist/sdk/endpoints/public/auth/index.d.ts +7 -7
  43. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +4 -4
  44. package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
  45. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +3 -3
  46. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +3 -3
  47. package/dist/sdk/endpoints/public/config/index.d.ts +1 -1
  48. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
  49. package/dist/sdk/endpoints/public/config/index.js +2 -1
  50. package/dist/sdk/endpoints/public/index.d.ts +8 -8
  51. package/dist/sdk/index.d.ts +20 -20
  52. package/dist/utils/accounts/index.d.ts.map +1 -1
  53. package/dist/utils/index.d.ts +0 -1
  54. package/dist/utils/index.d.ts.map +1 -1
  55. package/dist/utils/index.js +0 -1
  56. package/dist/ws.d.ts.map +1 -1
  57. package/dist/ws.js +1 -6
  58. package/package.json +3 -4
  59. package/dist/schemas/string.test.d.ts +0 -2
  60. package/dist/schemas/string.test.d.ts.map +0 -1
  61. package/dist/schemas/string.test.js +0 -20
  62. package/dist/utils/accounts/labelIdGenerate.d.ts +0 -5
  63. package/dist/utils/accounts/labelIdGenerate.d.ts.map +0 -1
  64. package/dist/utils/accounts/labelIdGenerate.js +0 -6
  65. package/dist/utils/shortUUID/index.d.ts +0 -2
  66. package/dist/utils/shortUUID/index.d.ts.map +0 -1
  67. package/dist/utils/shortUUID/index.js +0 -1
  68. package/dist/utils/shortUUID/shortUUID.d.ts +0 -7
  69. package/dist/utils/shortUUID/shortUUID.d.ts.map +0 -1
  70. package/dist/utils/shortUUID/shortUUID.js +0 -8
  71. package/dist/utils/shortUUID/shortUUID.test.d.ts +0 -2
  72. package/dist/utils/shortUUID/shortUUID.test.d.ts.map +0 -1
  73. package/dist/utils/shortUUID/shortUUID.test.js +0 -19
@@ -18,11 +18,11 @@ export declare const draft: {
18
18
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
19
19
  }, undefined>;
20
20
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
- readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
21
+ readonly error: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
22
22
  readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
23
23
  readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
24
24
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
25
- readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
25
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
26
  readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
27
27
  readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
28
28
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -69,11 +69,11 @@ export declare const draft: {
69
69
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
70
70
  }, undefined>;
71
71
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
- readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
72
+ readonly error: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
73
  readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
74
74
  readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
75
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
76
- readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
76
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
77
  readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
78
78
  readonly status: v.UnionSchema<[v.LiteralSchema<"DRAFT", undefined>, v.LiteralSchema<"SEND_REQUESTED", undefined>, v.LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, v.LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
79
79
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -32,11 +32,11 @@ const draftSchema = v.object({
32
32
  attachments: v.array(attachmentSchema),
33
33
  body: bodySchema,
34
34
  emailAccountId: marcoSchemas.string.required(),
35
- error: v.nullable(v.string()),
35
+ error: marcoSchemas.string.nullable(),
36
36
  from: marcoSchemas.string.email(),
37
37
  fromName: marcoSchemas.string.nullable(),
38
38
  id: marcoSchemas.string.required(),
39
- referencedMessageId: v.nullable(marcoSchemas.string.required()),
39
+ referencedMessageId: marcoSchemas.string.nullable(),
40
40
  scheduledFor: scheduledForSchema,
41
41
  status: draftStatusSchema,
42
42
  type: draftTypeSchema,
@@ -171,11 +171,11 @@ export declare const marcoClients: {
171
171
  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>;
172
172
  }, undefined>;
173
173
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
174
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
174
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
175
175
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
176
176
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
177
177
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
178
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
178
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
179
179
  readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
180
180
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
181
181
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -222,11 +222,11 @@ export declare const marcoClients: {
222
222
  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>;
223
223
  }, undefined>;
224
224
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
225
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
225
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
226
226
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
227
227
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
228
228
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
229
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
229
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
230
  readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
231
231
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
232
232
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { accountUtils, shortUUID, stringPatch } from './utils';
1
+ export { accountUtils, stringPatch } from './utils';
2
2
  export { marcoClients, marcoClientsUtils } from './clients';
3
3
  export { marcoConstants } from './constants';
4
4
  export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicConfig';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { accountUtils, shortUUID, stringPatch } from './utils';
1
+ export { accountUtils, stringPatch } from './utils';
2
2
  export { marcoClients, marcoClientsUtils } from './clients';
3
3
  export { marcoConstants } from './constants';
4
4
  export { marcoPublicConfig, MARCO_ENV } from './marcoPublicConfig';
@@ -51,6 +51,7 @@ export declare const marcoSchemas: {
51
51
  };
52
52
  number: {
53
53
  minMax: (min: number, max: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
54
+ nullable: () => import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
54
55
  positiveInteger: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
55
56
  };
56
57
  oauth: {
@@ -72,8 +73,6 @@ export declare const marcoSchemas: {
72
73
  nullable: (maxLength?: number) => import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
73
74
  optional: (maxLength?: number) => import("valibot").UndefinedableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
74
75
  required: (maxLength?: number) => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
75
- shortUUID: () => import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
76
- uuid: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
77
76
  };
78
77
  };
79
78
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUxB,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const number: {
3
3
  minMax: (min: number, max: number) => v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
4
+ nullable: () => v.NullableSchema<v.NumberSchema<undefined>, undefined>;
4
5
  positiveInteger: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
5
6
  };
6
7
  //# sourceMappingURL=number.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/schemas/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,MAAM;kBACH,MAAM,OAAO,MAAM;;CAIlC,CAAA"}
1
+ {"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/schemas/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,MAAM;kBACH,MAAM,OAAO,MAAM;;;CAMlC,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export const number = {
3
3
  minMax: (min, max) => v.nonOptional(v.pipe(v.number(), v.minValue(min), v.maxValue(max))),
4
+ nullable: () => v.nullable(v.number()),
4
5
  positiveInteger: () => v.nonOptional(v.pipe(v.number(), v.integer(), v.minValue(0))),
5
6
  };
@@ -6,7 +6,5 @@ export declare const string: {
6
6
  nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  optional: (maxLength?: number) => v.UndefinedableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
9
- shortUUID: () => v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
10
- uuid: () => v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.UuidAction<string, undefined>]>, undefined>;
11
9
  };
12
10
  //# sourceMappingURL=string.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/schemas/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,MAAM;;mBAGF,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;qBAEpB,MAAM;;;;;;CAexB,CAAA"}
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/schemas/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,MAAM;;mBAGF,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;qBAEpB,MAAM;;;;CAQxB,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import * as v from 'valibot';
2
- import { shortUUID } from '../utils';
3
2
  export const string = {
4
3
  email: () => v.nonOptional(v.pipe(v.string(), v.email(), v.maxLength(255))),
5
4
  enum: (values) => v.nonOptional(v.pipe(v.string(), v.enum(values))),
@@ -7,6 +6,4 @@ export const string = {
7
6
  nullable: (maxLength = 255) => v.nullable(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
8
7
  optional: (maxLength = 255) => v.undefinedable(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
9
8
  required: (maxLength = 255) => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
10
- shortUUID: () => v.custom((input) => typeof input === 'string' && shortUUID.validate(input), 'Invalid short UUID format'),
11
- uuid: () => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.uuid())),
12
9
  };
@@ -29,7 +29,7 @@ export declare const endpoints: {
29
29
  readonly status: import("valibot").LiteralSchema<404, undefined>;
30
30
  }, undefined>, import("valibot").ObjectSchema<{
31
31
  readonly data: import("valibot").ObjectSchema<{
32
- readonly html: import("valibot").StringSchema<undefined>;
32
+ readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
33
33
  }, undefined>;
34
34
  readonly status: import("valibot").LiteralSchema<200, undefined>;
35
35
  }, undefined>], undefined>>;
@@ -37,7 +37,7 @@ export declare const endpoints: {
37
37
  sync: {
38
38
  pull: {
39
39
  account: EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
40
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
40
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
41
41
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
42
42
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
43
43
  readonly data: import("valibot").ObjectSchema<{
@@ -100,7 +100,7 @@ export declare const endpoints: {
100
100
  readonly status: import("valibot").LiteralSchema<200, undefined>;
101
101
  }, undefined>], undefined>>;
102
102
  contact: EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
103
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
103
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
104
104
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
105
105
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
106
106
  readonly data: import("valibot").ObjectSchema<{
@@ -139,7 +139,7 @@ export declare const endpoints: {
139
139
  readonly status: import("valibot").LiteralSchema<200, undefined>;
140
140
  }, undefined>], undefined>>;
141
141
  draft: EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
142
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
142
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
143
143
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
144
144
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
145
145
  readonly data: import("valibot").ObjectSchema<{
@@ -186,11 +186,11 @@ export declare const endpoints: {
186
186
  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>;
187
187
  }, undefined>;
188
188
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
189
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
189
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
190
190
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
191
191
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
192
192
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
193
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
193
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
194
194
  readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
195
195
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
196
196
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -201,10 +201,10 @@ export declare const endpoints: {
201
201
  readonly status: import("valibot").LiteralSchema<200, undefined>;
202
202
  }, undefined>], undefined>>;
203
203
  thread: EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
204
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
204
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
205
205
  readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
206
206
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
207
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
207
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
208
208
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
209
209
  readonly order: import("valibot").StringSchema<undefined>;
210
210
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -229,7 +229,7 @@ export declare const endpoints: {
229
229
  readonly data: import("valibot").ObjectSchema<{
230
230
  readonly cookie: import("valibot").ObjectSchema<{
231
231
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
232
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
232
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
233
233
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
234
234
  readonly order: import("valibot").StringSchema<undefined>;
235
235
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -291,7 +291,7 @@ export declare const endpoints: {
291
291
  readonly status: import("valibot").LiteralSchema<200, undefined>;
292
292
  }, undefined>], undefined>>;
293
293
  user: EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
294
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
294
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
295
295
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
296
296
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
297
297
  readonly data: import("valibot").ObjectSchema<{
@@ -532,11 +532,11 @@ export declare const endpoints: {
532
532
  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>;
533
533
  }, undefined>;
534
534
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
535
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
535
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
536
536
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
537
537
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
538
538
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
539
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
539
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
540
540
  readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
541
541
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
542
542
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -846,7 +846,7 @@ export declare const endpoints: {
846
846
  public: {
847
847
  auth: {
848
848
  refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
849
- readonly refreshToken: import("valibot").StringSchema<undefined>;
849
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
850
850
  }, undefined>, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
851
851
  readonly data: import("valibot").ObjectSchema<{
852
852
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -869,14 +869,14 @@ export declare const endpoints: {
869
869
  readonly status: import("valibot").LiteralSchema<502, undefined>;
870
870
  }, undefined>, import("valibot").ObjectSchema<{
871
871
  readonly data: import("valibot").ObjectSchema<{
872
- readonly accessToken: import("valibot").StringSchema<undefined>;
873
- readonly refreshToken: import("valibot").StringSchema<undefined>;
872
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
873
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
874
874
  readonly user: import("valibot").ObjectSchema<{
875
875
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
876
876
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
877
877
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
878
878
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
879
- readonly id: import("valibot").StringSchema<undefined>;
879
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
880
880
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
881
881
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
882
882
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -964,14 +964,14 @@ export declare const endpoints: {
964
964
  readonly status: import("valibot").LiteralSchema<409, undefined>;
965
965
  }, undefined>, import("valibot").ObjectSchema<{
966
966
  readonly data: import("valibot").ObjectSchema<{
967
- readonly accessToken: import("valibot").StringSchema<undefined>;
968
- readonly refreshToken: import("valibot").StringSchema<undefined>;
967
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
968
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
969
969
  readonly user: import("valibot").ObjectSchema<{
970
970
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
971
971
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
972
972
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
973
973
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
974
- readonly id: import("valibot").StringSchema<undefined>;
974
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
975
975
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
976
976
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
977
977
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -983,7 +983,7 @@ export declare const endpoints: {
983
983
  config: EndpointConfig<"/v1/pb/config", GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").ObjectSchema<{
984
984
  readonly data: import("valibot").ObjectSchema<{
985
985
  readonly app: import("valibot").ObjectSchema<{
986
- readonly minimumVersion: import("valibot").StringSchema<undefined>;
986
+ readonly minimumVersion: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
987
987
  }, undefined>;
988
988
  }, undefined>;
989
989
  readonly status: import("valibot").LiteralSchema<200, undefined>;
@@ -11,7 +11,7 @@ export declare const getEmailMessageHTML: import("../../../..").EndpointConfig<"
11
11
  readonly status: v.LiteralSchema<404, undefined>;
12
12
  }, undefined>, v.ObjectSchema<{
13
13
  readonly data: v.ObjectSchema<{
14
- readonly html: v.StringSchema<undefined>;
14
+ readonly html: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
15
  }, undefined>;
16
16
  readonly status: v.LiteralSchema<200, undefined>;
17
17
  }, undefined>], undefined>>;
@@ -1 +1 @@
1
- {"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;2BAa9B,CAAA"}
1
+ {"version":3,"file":"getEmailMessageHTML.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/emailMessage/getEmailMessageHTML.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;2BAa9B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../schemas';
2
3
  import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
4
  import { authFailedErrorSchema, messageNotFoundErrorSchema } from '../../../../sdk/validation/errors';
4
5
  export const getEmailMessageHTML = createEndpoint({
@@ -9,7 +10,7 @@ export const getEmailMessageHTML = createEndpoint({
9
10
  messageNotFoundErrorSchema,
10
11
  v.object({
11
12
  data: v.object({
12
- html: v.string(),
13
+ html: marcoSchemas.string.required(),
13
14
  }),
14
15
  status: v.literal(200),
15
16
  }),
@@ -25,7 +25,7 @@ export declare const emailMessage: {
25
25
  readonly status: import("valibot").LiteralSchema<404, undefined>;
26
26
  }, undefined>, import("valibot").ObjectSchema<{
27
27
  readonly data: import("valibot").ObjectSchema<{
28
- readonly html: import("valibot").StringSchema<undefined>;
28
+ readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
29
29
  }, undefined>;
30
30
  readonly status: import("valibot").LiteralSchema<200, undefined>;
31
31
  }, undefined>], undefined>>;
@@ -26,7 +26,7 @@ export declare const privateGroup: {
26
26
  readonly status: import("valibot").LiteralSchema<404, undefined>;
27
27
  }, undefined>, import("valibot").ObjectSchema<{
28
28
  readonly data: import("valibot").ObjectSchema<{
29
- readonly html: import("valibot").StringSchema<undefined>;
29
+ readonly html: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
30
30
  }, undefined>;
31
31
  readonly status: import("valibot").LiteralSchema<200, undefined>;
32
32
  }, undefined>], undefined>>;
@@ -34,7 +34,7 @@ export declare const privateGroup: {
34
34
  sync: {
35
35
  pull: {
36
36
  account: import("../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
37
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
37
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
38
38
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
39
39
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
40
40
  readonly data: import("valibot").ObjectSchema<{
@@ -97,7 +97,7 @@ export declare const privateGroup: {
97
97
  readonly status: import("valibot").LiteralSchema<200, undefined>;
98
98
  }, undefined>], undefined>>;
99
99
  contact: import("../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
100
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
100
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
101
101
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
102
102
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
103
103
  readonly data: import("valibot").ObjectSchema<{
@@ -136,7 +136,7 @@ export declare const privateGroup: {
136
136
  readonly status: import("valibot").LiteralSchema<200, undefined>;
137
137
  }, undefined>], undefined>>;
138
138
  draft: import("../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
139
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
139
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
140
140
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
141
141
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
142
142
  readonly data: import("valibot").ObjectSchema<{
@@ -183,11 +183,11 @@ export declare const privateGroup: {
183
183
  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>;
184
184
  }, undefined>;
185
185
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
186
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
186
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
187
187
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
188
188
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
189
189
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
190
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
190
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
191
191
  readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
192
192
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
193
193
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -198,10 +198,10 @@ export declare const privateGroup: {
198
198
  readonly status: import("valibot").LiteralSchema<200, undefined>;
199
199
  }, undefined>], undefined>>;
200
200
  thread: import("../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
201
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
201
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
202
202
  readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
203
203
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
204
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
204
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
205
205
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
206
206
  readonly order: import("valibot").StringSchema<undefined>;
207
207
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -226,7 +226,7 @@ export declare const privateGroup: {
226
226
  readonly data: import("valibot").ObjectSchema<{
227
227
  readonly cookie: import("valibot").ObjectSchema<{
228
228
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
229
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
229
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
230
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
231
231
  readonly order: import("valibot").StringSchema<undefined>;
232
232
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -288,7 +288,7 @@ export declare const privateGroup: {
288
288
  readonly status: import("valibot").LiteralSchema<200, undefined>;
289
289
  }, undefined>], undefined>>;
290
290
  user: import("../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
291
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
291
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
292
292
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
293
293
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
294
294
  readonly data: import("valibot").ObjectSchema<{
@@ -529,11 +529,11 @@ export declare const privateGroup: {
529
529
  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>;
530
530
  }, undefined>;
531
531
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
532
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
532
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
533
533
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
534
534
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
535
535
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
536
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
536
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
537
537
  readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
538
538
  readonly status: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"DRAFT", undefined>, import("valibot").LiteralSchema<"SEND_REQUESTED", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMATION_PENDING", undefined>, import("valibot").LiteralSchema<"SEND_CONFIRMED", undefined>], undefined>;
539
539
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;