@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
@@ -1,7 +1,7 @@
1
1
  export declare const sync: {
2
2
  pull: {
3
3
  account: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
4
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
4
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
5
5
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
6
6
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
7
7
  readonly data: import("valibot").ObjectSchema<{
@@ -64,7 +64,7 @@ export declare const sync: {
64
64
  readonly status: import("valibot").LiteralSchema<200, undefined>;
65
65
  }, undefined>], undefined>>;
66
66
  contact: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
67
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
67
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
68
68
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
69
69
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
70
70
  readonly data: import("valibot").ObjectSchema<{
@@ -103,7 +103,7 @@ export declare const sync: {
103
103
  readonly status: import("valibot").LiteralSchema<200, undefined>;
104
104
  }, undefined>], undefined>>;
105
105
  draft: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
106
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
106
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
107
107
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
108
108
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
109
109
  readonly data: import("valibot").ObjectSchema<{
@@ -150,11 +150,11 @@ export declare const sync: {
150
150
  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>;
151
151
  }, undefined>;
152
152
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
153
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
153
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
154
154
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
155
155
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
156
156
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
157
- 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>;
157
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
158
158
  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>;
159
159
  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>;
160
160
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -165,10 +165,10 @@ export declare const sync: {
165
165
  readonly status: import("valibot").LiteralSchema<200, undefined>;
166
166
  }, undefined>], undefined>>;
167
167
  thread: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
168
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
168
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
169
169
  readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
170
170
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
171
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
171
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
172
172
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
173
173
  readonly order: import("valibot").StringSchema<undefined>;
174
174
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -193,7 +193,7 @@ export declare const sync: {
193
193
  readonly data: import("valibot").ObjectSchema<{
194
194
  readonly cookie: import("valibot").ObjectSchema<{
195
195
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
196
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
196
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
197
197
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
198
198
  readonly order: import("valibot").StringSchema<undefined>;
199
199
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -255,7 +255,7 @@ export declare const sync: {
255
255
  readonly status: import("valibot").LiteralSchema<200, undefined>;
256
256
  }, undefined>], undefined>>;
257
257
  user: import("../../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
258
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
258
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
259
259
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
260
260
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
261
261
  readonly data: import("valibot").ObjectSchema<{
@@ -496,11 +496,11 @@ export declare const sync: {
496
496
  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>;
497
497
  }, undefined>;
498
498
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
499
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
499
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
500
500
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
501
501
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
502
502
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
503
- 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>;
503
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
504
504
  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>;
505
505
  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>;
506
506
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
3
+ readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwB1B,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  import { account } from '../../../../../clients/account';
3
+ import { marcoSchemas } from '../../../../../schemas';
3
4
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
5
  import { errors } from '../../../../../sdk/validation/errors';
5
6
  export const syncPullAccount = createEndpoint({
6
7
  body: v.object({
7
- clientGroupID: v.string(),
8
- cookie: v.nullable(v.number()),
8
+ clientGroupID: marcoSchemas.string.required(),
9
+ cookie: marcoSchemas.number.nullable(),
9
10
  }),
10
11
  method: 'POST',
11
12
  path: account.pullUrl,
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPullContact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
3
+ readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAyB1B,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  import { contact } from '../../../../../clients/contact';
3
+ import { marcoSchemas } from '../../../../../schemas';
3
4
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
5
  import { errors } from '../../../../../sdk/validation/errors';
5
6
  export const syncPullContact = createEndpoint({
6
7
  body: v.object({
7
- clientGroupID: v.string(),
8
- cookie: v.nullable(v.number()),
8
+ clientGroupID: marcoSchemas.string.required(),
9
+ cookie: marcoSchemas.number.nullable(),
9
10
  }),
10
11
  method: 'POST',
11
12
  path: contact.pullUrl,
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
3
+ readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
@@ -47,11 +47,11 @@ export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1
47
47
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
48
48
  }, undefined>;
49
49
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
50
- readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
50
+ readonly error: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
51
  readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
52
52
  readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
53
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
- readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
54
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
55
  readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
56
56
  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>;
57
57
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBxB,CAAA"}
1
+ {"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/draft.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBxB,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  import { draft } from '../../../../../clients/draft';
3
+ import { marcoSchemas } from '../../../../../schemas';
3
4
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
5
  import { errors } from '../../../../../sdk/validation/errors';
5
6
  export const syncPullDraft = createEndpoint({
6
7
  body: v.object({
7
- clientGroupID: v.string(),
8
- cookie: v.nullable(v.number()),
8
+ clientGroupID: marcoSchemas.string.required(),
9
+ cookie: marcoSchemas.number.nullable(),
9
10
  }),
10
11
  method: 'POST',
11
12
  path: draft.pullUrl,
@@ -1,6 +1,6 @@
1
1
  export declare const pull: {
2
2
  account: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
3
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
3
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
6
6
  readonly data: import("valibot").ObjectSchema<{
@@ -63,7 +63,7 @@ export declare const pull: {
63
63
  readonly status: import("valibot").LiteralSchema<200, undefined>;
64
64
  }, undefined>], undefined>>;
65
65
  contact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
66
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
66
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
67
67
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
68
68
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
69
69
  readonly data: import("valibot").ObjectSchema<{
@@ -102,7 +102,7 @@ export declare const pull: {
102
102
  readonly status: import("valibot").LiteralSchema<200, undefined>;
103
103
  }, undefined>], undefined>>;
104
104
  draft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
105
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
105
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
106
106
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
107
107
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
108
108
  readonly data: import("valibot").ObjectSchema<{
@@ -149,11 +149,11 @@ export declare const pull: {
149
149
  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>;
150
150
  }, undefined>;
151
151
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
152
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
152
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
153
153
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
154
154
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
155
155
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
156
- 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>;
156
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
157
157
  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>;
158
158
  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>;
159
159
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -164,10 +164,10 @@ export declare const pull: {
164
164
  readonly status: import("valibot").LiteralSchema<200, undefined>;
165
165
  }, undefined>], undefined>>;
166
166
  thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
167
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
167
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
168
168
  readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
169
169
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
170
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
170
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
171
171
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
172
172
  readonly order: import("valibot").StringSchema<undefined>;
173
173
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -192,7 +192,7 @@ export declare const pull: {
192
192
  readonly data: import("valibot").ObjectSchema<{
193
193
  readonly cookie: import("valibot").ObjectSchema<{
194
194
  readonly hasMore: import("valibot").BooleanSchema<undefined>;
195
- readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").UuidAction<string, undefined>]>, undefined>;
195
+ readonly id: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
196
196
  readonly latestSentAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
197
197
  readonly order: import("valibot").StringSchema<undefined>;
198
198
  readonly versionMax: import("valibot").NumberSchema<undefined>;
@@ -254,7 +254,7 @@ export declare const pull: {
254
254
  readonly status: import("valibot").LiteralSchema<200, undefined>;
255
255
  }, undefined>], undefined>>;
256
256
  user: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
257
- readonly clientGroupID: import("valibot").StringSchema<undefined>;
257
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
258
258
  readonly cookie: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
259
259
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
260
260
  readonly data: import("valibot").ObjectSchema<{
@@ -1,9 +1,9 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
3
+ readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly cookie: v.NullableSchema<v.ObjectSchema<{
5
5
  readonly hasMore: v.BooleanSchema<undefined>;
6
- readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
6
+ readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  readonly latestSentAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
8
8
  readonly order: v.StringSchema<undefined>;
9
9
  readonly versionMax: v.NumberSchema<undefined>;
@@ -28,7 +28,7 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
28
28
  readonly data: v.ObjectSchema<{
29
29
  readonly cookie: v.ObjectSchema<{
30
30
  readonly hasMore: v.BooleanSchema<undefined>;
31
- readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
31
+ readonly id: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
32
  readonly latestSentAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
33
33
  readonly order: v.StringSchema<undefined>;
34
34
  readonly versionMax: v.NumberSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuCzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuCzB,CAAA"}
@@ -1,13 +1,14 @@
1
1
  import * as v from 'valibot';
2
2
  import { thread } from '../../../../../clients/thread';
3
+ import { marcoSchemas } from '../../../../../schemas';
3
4
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
5
  import { errors } from '../../../../../sdk/validation/errors';
5
6
  export const syncPullThread = createEndpoint({
6
7
  body: v.object({
7
- clientGroupID: v.string(),
8
+ clientGroupID: marcoSchemas.string.required(),
8
9
  cookie: v.nullable(v.object({
9
10
  hasMore: v.boolean(),
10
- id: v.nullable(v.pipe(v.string(), v.uuid())),
11
+ id: marcoSchemas.string.nullable(),
11
12
  latestSentAt: v.nullable(v.number()),
12
13
  order: v.string(),
13
14
  versionMax: v.number(),
@@ -23,7 +24,7 @@ export const syncPullThread = createEndpoint({
23
24
  data: v.object({
24
25
  cookie: v.object({
25
26
  hasMore: v.boolean(),
26
- id: v.nullable(v.pipe(v.string(), v.uuid())),
27
+ id: marcoSchemas.string.nullable(),
27
28
  latestSentAt: v.nullable(v.number()),
28
29
  order: v.string(),
29
30
  versionMax: v.number(),
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", v.ObjectSchema<{
3
- readonly clientGroupID: v.StringSchema<undefined>;
3
+ readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  readonly cookie: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
5
5
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
6
6
  readonly data: v.ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuBvB,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import * as v from 'valibot';
2
2
  import { user } from '../../../../../clients/user';
3
+ import { marcoSchemas } from '../../../../../schemas';
3
4
  import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
5
  import { errors } from '../../../../../sdk/validation/errors';
5
6
  export const syncPullUser = createEndpoint({
6
7
  body: v.object({
7
- clientGroupID: v.string(),
8
- cookie: v.nullable(v.number()),
8
+ clientGroupID: marcoSchemas.string.required(),
9
+ cookie: marcoSchemas.number.nullable(),
9
10
  }),
10
11
  method: 'POST',
11
12
  path: user.pullUrl,
@@ -45,11 +45,11 @@ export declare const syncPushDraft: import("../../../../..").EndpointConfig<"/v1
45
45
  readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
46
46
  }, undefined>;
47
47
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
- readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
48
+ readonly error: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
49
49
  readonly from: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
50
50
  readonly fromName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
51
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
- readonly referencedMessageId: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
52
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
53
  readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
54
54
  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>;
55
55
  readonly type: v.UnionSchema<[v.LiteralSchema<"NEW", undefined>, v.LiteralSchema<"REPLY", undefined>, v.LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -192,11 +192,11 @@ export declare const push: {
192
192
  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>;
193
193
  }, undefined>;
194
194
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
195
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
195
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
196
196
  readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
197
197
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
198
198
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
199
- 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>;
199
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
200
200
  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>;
201
201
  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>;
202
202
  readonly type: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"NEW", undefined>, import("valibot").LiteralSchema<"REPLY", undefined>, import("valibot").LiteralSchema<"FORWARD", undefined>], undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAuEzB,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/push/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwEzB,CAAA"}
@@ -53,7 +53,8 @@ export const syncPushThread = createEndpoint({
53
53
  clientID: v.string(),
54
54
  id: v.number(),
55
55
  name: v.literal('setSpam'),
56
- }), setTrash: v.object({
56
+ }),
57
+ setTrash: v.object({
57
58
  args: thread.mutators.setTrash.delta,
58
59
  clientID: v.string(),
59
60
  id: v.number(),
@@ -1,6 +1,6 @@
1
1
  export declare const auth: {
2
2
  refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
3
- readonly refreshToken: import("valibot").StringSchema<undefined>;
3
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  }, undefined>, import("valibot").GenericSchema<unknown, unknown, import("valibot").BaseIssue<unknown>> | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
5
5
  readonly data: import("valibot").ObjectSchema<{
6
6
  readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -23,14 +23,14 @@ export declare const auth: {
23
23
  readonly status: import("valibot").LiteralSchema<502, undefined>;
24
24
  }, undefined>, import("valibot").ObjectSchema<{
25
25
  readonly data: import("valibot").ObjectSchema<{
26
- readonly accessToken: import("valibot").StringSchema<undefined>;
27
- readonly refreshToken: import("valibot").StringSchema<undefined>;
26
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
28
28
  readonly user: import("valibot").ObjectSchema<{
29
29
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
30
30
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
31
31
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
32
32
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: import("valibot").StringSchema<undefined>;
33
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
34
34
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -118,14 +118,14 @@ export declare const auth: {
118
118
  readonly status: import("valibot").LiteralSchema<409, undefined>;
119
119
  }, undefined>, import("valibot").ObjectSchema<{
120
120
  readonly data: import("valibot").ObjectSchema<{
121
- readonly accessToken: import("valibot").StringSchema<undefined>;
122
- readonly refreshToken: import("valibot").StringSchema<undefined>;
121
+ readonly accessToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
122
+ readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
123
123
  readonly user: import("valibot").ObjectSchema<{
124
124
  readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
125
125
  readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
126
126
  readonly emailVerified: import("valibot").BooleanSchema<undefined>;
127
127
  readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
128
- readonly id: import("valibot").StringSchema<undefined>;
128
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
129
129
  readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
130
130
  readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
131
131
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/auth/refresh", v.ObjectSchema<{
3
- readonly refreshToken: v.StringSchema<undefined>;
3
+ readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
4
  }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
5
5
  readonly data: v.ObjectSchema<{
6
6
  readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
@@ -23,14 +23,14 @@ export declare const refreshAuth: import("../../../..").EndpointConfig<"/v1/pb/a
23
23
  readonly status: v.LiteralSchema<502, undefined>;
24
24
  }, undefined>, v.ObjectSchema<{
25
25
  readonly data: v.ObjectSchema<{
26
- readonly accessToken: v.StringSchema<undefined>;
27
- readonly refreshToken: v.StringSchema<undefined>;
26
+ readonly accessToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
28
  readonly user: v.ObjectSchema<{
29
29
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
30
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
31
31
  readonly emailVerified: v.BooleanSchema<undefined>;
32
32
  readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- readonly id: v.StringSchema<undefined>;
33
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
34
  readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -4,7 +4,7 @@ import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
4
4
  import { errors } from '../../../../sdk/validation/errors';
5
5
  export const refreshAuth = createEndpoint({
6
6
  body: v.object({
7
- refreshToken: v.string(),
7
+ refreshToken: marcoSchemas.string.required(),
8
8
  }),
9
9
  method: 'POST',
10
10
  path: '/v1/pb/auth/refresh',
@@ -14,14 +14,14 @@ export const refreshAuth = createEndpoint({
14
14
  errors.authServerResponseUnexpectedErrorSchema,
15
15
  v.object({
16
16
  data: v.object({
17
- accessToken: v.string(),
18
- refreshToken: v.string(),
17
+ accessToken: marcoSchemas.string.required(),
18
+ refreshToken: marcoSchemas.string.required(),
19
19
  user: v.object({
20
20
  createdAt: marcoSchemas.string.required(),
21
21
  email: marcoSchemas.string.email(),
22
22
  emailVerified: v.boolean(),
23
23
  firstName: marcoSchemas.string.nullable(),
24
- id: v.string(),
24
+ id: marcoSchemas.string.required(),
25
25
  lastName: marcoSchemas.string.nullable(),
26
26
  profilePictureUrl: marcoSchemas.string.nullable(),
27
27
  updatedAt: marcoSchemas.string.required(),
@@ -54,14 +54,14 @@ export declare const verifyAuthCode: import("../../../..").EndpointConfig<"/v1/p
54
54
  readonly status: v.LiteralSchema<409, undefined>;
55
55
  }, undefined>, v.ObjectSchema<{
56
56
  readonly data: v.ObjectSchema<{
57
- readonly accessToken: v.StringSchema<undefined>;
58
- readonly refreshToken: v.StringSchema<undefined>;
57
+ readonly accessToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
+ readonly refreshToken: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
59
59
  readonly user: v.ObjectSchema<{
60
60
  readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
61
  readonly email: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
62
62
  readonly emailVerified: v.BooleanSchema<undefined>;
63
63
  readonly firstName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
- readonly id: v.StringSchema<undefined>;
64
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
65
65
  readonly lastName: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
66
66
  readonly profilePictureUrl: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
67
  readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -21,14 +21,14 @@ export const verifyAuthCode = createEndpoint({
21
21
  errors.userMarkedForDeletionErrorSchema,
22
22
  v.object({
23
23
  data: v.object({
24
- accessToken: v.string(),
25
- refreshToken: v.string(),
24
+ accessToken: marcoSchemas.string.required(),
25
+ refreshToken: marcoSchemas.string.required(),
26
26
  user: v.object({
27
27
  createdAt: marcoSchemas.string.required(),
28
28
  email: marcoSchemas.string.email(),
29
29
  emailVerified: v.boolean(),
30
30
  firstName: marcoSchemas.string.nullable(),
31
- id: v.string(),
31
+ id: marcoSchemas.string.required(),
32
32
  lastName: marcoSchemas.string.nullable(),
33
33
  profilePictureUrl: marcoSchemas.string.nullable(),
34
34
  updatedAt: marcoSchemas.string.required(),