@marcoappio/marco-config 2.0.350 → 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 (100) hide show
  1. package/dist/clients/account.d.ts +17 -17
  2. package/dist/clients/account.js +15 -15
  3. package/dist/clients/contact.d.ts +1 -1
  4. package/dist/clients/contact.js +1 -1
  5. package/dist/clients/draft.d.ts +25 -25
  6. package/dist/clients/draft.js +19 -19
  7. package/dist/clients/index.d.ts +64 -59
  8. package/dist/clients/index.d.ts.map +1 -1
  9. package/dist/clients/thread.d.ts +18 -13
  10. package/dist/clients/thread.d.ts.map +1 -1
  11. package/dist/clients/thread.js +18 -13
  12. package/dist/clients/user.d.ts +3 -3
  13. package/dist/clients/user.js +3 -3
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +1 -1
  17. package/dist/schemas/index.d.ts +3 -4
  18. package/dist/schemas/index.d.ts.map +1 -1
  19. package/dist/schemas/number.d.ts +1 -0
  20. package/dist/schemas/number.d.ts.map +1 -1
  21. package/dist/schemas/number.js +1 -0
  22. package/dist/schemas/pushNotifications.d.ts +2 -2
  23. package/dist/schemas/pushNotifications.js +2 -2
  24. package/dist/schemas/string.d.ts +0 -2
  25. package/dist/schemas/string.d.ts.map +1 -1
  26. package/dist/schemas/string.js +0 -3
  27. package/dist/sdk/endpoints/index.d.ts +83 -76
  28. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  29. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +1 -1
  30. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +1 -1
  31. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +1 -1
  32. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -1
  34. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +2 -2
  35. package/dist/sdk/endpoints/private/index.d.ts +75 -68
  36. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  37. package/dist/sdk/endpoints/private/sync/index.d.ts +73 -66
  38. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
  39. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +4 -4
  40. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
  41. package/dist/sdk/endpoints/private/sync/pull/account.js +3 -2
  42. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +2 -2
  43. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
  44. package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -2
  45. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +6 -6
  46. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
  47. package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -2
  48. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +21 -21
  49. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +7 -7
  50. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
  51. package/dist/sdk/endpoints/private/sync/pull/thread.js +4 -3
  52. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +2 -2
  53. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
  54. package/dist/sdk/endpoints/private/sync/pull/user.js +3 -2
  55. package/dist/sdk/endpoints/private/sync/push/account.d.ts +14 -14
  56. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +20 -20
  57. package/dist/sdk/endpoints/private/sync/push/index.d.ts +52 -45
  58. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
  59. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +16 -9
  60. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
  61. package/dist/sdk/endpoints/private/sync/push/thread.js +6 -0
  62. package/dist/sdk/endpoints/private/sync/push/user.d.ts +2 -2
  63. package/dist/sdk/endpoints/public/auth/index.d.ts +7 -7
  64. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +4 -4
  65. package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
  66. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +3 -3
  67. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +3 -3
  68. package/dist/sdk/endpoints/public/config/index.d.ts +1 -1
  69. package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
  70. package/dist/sdk/endpoints/public/config/index.js +2 -1
  71. package/dist/sdk/endpoints/public/index.d.ts +8 -8
  72. package/dist/sdk/index.d.ts +83 -76
  73. package/dist/sdk/index.d.ts.map +1 -1
  74. package/dist/utils/accounts/index.d.ts +0 -4
  75. package/dist/utils/accounts/index.d.ts.map +1 -1
  76. package/dist/utils/accounts/index.js +0 -2
  77. package/dist/utils/index.d.ts +0 -1
  78. package/dist/utils/index.d.ts.map +1 -1
  79. package/dist/utils/index.js +0 -1
  80. package/dist/ws.d.ts.map +1 -1
  81. package/dist/ws.js +1 -6
  82. package/package.json +3 -4
  83. package/dist/schemas/string.test.d.ts +0 -2
  84. package/dist/schemas/string.test.d.ts.map +0 -1
  85. package/dist/schemas/string.test.js +0 -20
  86. package/dist/utils/accounts/labelIdGenerate.d.ts +0 -5
  87. package/dist/utils/accounts/labelIdGenerate.d.ts.map +0 -1
  88. package/dist/utils/accounts/labelIdGenerate.js +0 -6
  89. package/dist/utils/accounts/labelIdGenerate.test.d.ts +0 -2
  90. package/dist/utils/accounts/labelIdGenerate.test.d.ts.map +0 -1
  91. package/dist/utils/accounts/labelIdGenerate.test.js +0 -51
  92. package/dist/utils/shortUUID/index.d.ts +0 -2
  93. package/dist/utils/shortUUID/index.d.ts.map +0 -1
  94. package/dist/utils/shortUUID/index.js +0 -1
  95. package/dist/utils/shortUUID/shortUUID.d.ts +0 -7
  96. package/dist/utils/shortUUID/shortUUID.d.ts.map +0 -1
  97. package/dist/utils/shortUUID/shortUUID.js +0 -8
  98. package/dist/utils/shortUUID/shortUUID.test.d.ts +0 -2
  99. package/dist/utils/shortUUID/shortUUID.test.d.ts.map +0 -1
  100. package/dist/utils/shortUUID/shortUUID.test.js +0 -19
@@ -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<{
@@ -33,16 +33,16 @@ export declare const syncPullAccount: import("../../../../..").EndpointConfig<"/
33
33
  readonly aliases: v.ObjectSchema<{
34
34
  readonly nonPrimary: v.ArraySchema<v.ObjectSchema<{
35
35
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
36
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
36
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
38
  }, undefined>, undefined>;
39
39
  readonly primary: v.ObjectSchema<{
40
40
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
41
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
41
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
42
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
43
43
  }, undefined>;
44
44
  }, undefined>;
45
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
45
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
46
  readonly imapConnectionStatus: v.UnionSchema<[v.LiteralSchema<"AWAITING_CONNECTION", undefined>, v.LiteralSchema<"CONNECTED", undefined>, v.LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, v.LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
47
47
  readonly labels: v.ArraySchema<v.ObjectSchema<{
48
48
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -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<{
@@ -31,7 +31,7 @@ export declare const syncPullContact: import("../../../../..").EndpointConfig<"/
31
31
  readonly op: v.LiteralSchema<"put", undefined>;
32
32
  readonly value: v.ObjectSchema<{
33
33
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
34
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
34
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
35
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  }, undefined>;
37
37
  }, undefined>], undefined>, undefined>;
@@ -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<{
@@ -33,7 +33,7 @@ export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1
33
33
  readonly attachments: v.ArraySchema<v.ObjectSchema<{
34
34
  readonly failed: v.BooleanSchema<undefined>;
35
35
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
36
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
38
  readonly totalChunks: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
39
39
  readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
@@ -46,12 +46,12 @@ export declare const syncPullDraft: import("../../../../..").EndpointConfig<"/v1
46
46
  readonly subject: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
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
- readonly emailAccountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
50
- readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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.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
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
54
- readonly referencedMessageId: v.NullableSchema<v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.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<{
@@ -33,16 +33,16 @@ export declare const pull: {
33
33
  readonly aliases: import("valibot").ObjectSchema<{
34
34
  readonly nonPrimary: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
35
35
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
36
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
36
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
38
38
  }, undefined>, undefined>;
39
39
  readonly primary: import("valibot").ObjectSchema<{
40
40
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
41
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
41
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
42
42
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
43
43
  }, undefined>;
44
44
  }, undefined>;
45
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
45
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
46
46
  readonly imapConnectionStatus: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"AWAITING_CONNECTION", undefined>, import("valibot").LiteralSchema<"CONNECTED", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_CONNECTION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_GOOGLE_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_AUTHENTICATION_ERROR", undefined>, import("valibot").LiteralSchema<"CONNECTION_FAILED_UNKNOWN_ERROR", undefined>], undefined>;
47
47
  readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
48
48
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -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<{
@@ -94,7 +94,7 @@ export declare const pull: {
94
94
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
95
95
  readonly value: import("valibot").ObjectSchema<{
96
96
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
97
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
97
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
98
98
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
99
99
  }, undefined>;
100
100
  }, undefined>], undefined>, undefined>;
@@ -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<{
@@ -135,7 +135,7 @@ export declare const pull: {
135
135
  readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
136
136
  readonly failed: import("valibot").BooleanSchema<undefined>;
137
137
  readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
138
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
138
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
139
139
  readonly mimeType: 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 totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
141
141
  readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -148,12 +148,12 @@ export declare const pull: {
148
148
  readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
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
- readonly emailAccountId: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
152
- readonly error: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
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").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
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
156
- readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>, undefined>;
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").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>;
@@ -212,11 +212,11 @@ export declare const pull: {
212
212
  readonly bagOfWords: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
213
213
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
214
214
  readonly flagged: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
215
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
215
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
216
216
  readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
217
217
  readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
218
218
  readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
219
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
219
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
220
220
  readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
221
221
  readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
222
222
  }, undefined>, undefined>;
@@ -235,8 +235,8 @@ export declare const pull: {
235
235
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
236
236
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
237
237
  }, undefined>, undefined>;
238
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
239
- readonly labelIds: import("valibot").ArraySchema<import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>, undefined>;
238
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
239
+ readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
240
240
  readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
241
241
  readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
242
242
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, 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<{
@@ -284,7 +284,7 @@ export declare const pull: {
284
284
  readonly key: import("valibot").StringSchema<undefined>;
285
285
  readonly op: import("valibot").LiteralSchema<"put", undefined>;
286
286
  readonly value: import("valibot").ObjectSchema<{
287
- readonly id: import("valibot").CustomSchema<string, import("valibot").ErrorMessage<import("valibot").CustomIssue> | undefined>;
287
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
288
288
  readonly settings: import("valibot").ObjectSchema<{
289
289
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
290
290
  readonly notifications: 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>;
@@ -48,11 +48,11 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
48
48
  readonly bagOfWords: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
49
49
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
50
50
  readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
51
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
51
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
52
  readonly messages: v.ArraySchema<v.ObjectSchema<{
53
53
  readonly attachments: v.ArraySchema<v.ObjectSchema<{
54
54
  readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
55
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
56
  readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
57
57
  readonly size: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
58
58
  }, undefined>, undefined>;
@@ -71,8 +71,8 @@ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v
71
71
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
72
72
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
73
  }, undefined>, undefined>;
74
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
75
- readonly labelIds: v.ArraySchema<v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
74
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
+ readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
76
76
  readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
77
  readonly replyTo: v.ArraySchema<v.ObjectSchema<{
78
78
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, 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<{
@@ -30,7 +30,7 @@ export declare const syncPullUser: import("../../../../..").EndpointConfig<"/v1/
30
30
  readonly key: v.StringSchema<undefined>;
31
31
  readonly op: v.LiteralSchema<"put", undefined>;
32
32
  readonly value: v.ObjectSchema<{
33
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
33
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
34
  readonly settings: v.ObjectSchema<{
35
35
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
36
  readonly notifications: 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,
@@ -3,20 +3,20 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
3
3
  readonly clientGroupID: v.StringSchema<undefined>;
4
4
  readonly mutations: v.ArraySchema<v.UnionSchema<(v.ObjectSchema<{
5
5
  readonly args: v.ObjectSchema<{
6
- readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
6
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
9
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
9
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
10
10
  }, undefined>;
11
11
  readonly clientID: v.StringSchema<undefined>;
12
12
  readonly id: v.NumberSchema<undefined>;
13
13
  readonly name: v.LiteralSchema<"createAccount", undefined>;
14
14
  }, undefined> | v.ObjectSchema<{
15
15
  readonly args: v.ObjectSchema<{
16
- readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
16
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
17
  readonly alias: v.ObjectSchema<{
18
18
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
19
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
19
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
20
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
21
  }, undefined>;
22
22
  }, undefined>;
@@ -25,23 +25,23 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
25
25
  readonly name: v.LiteralSchema<"createAlias", undefined>;
26
26
  }, undefined> | v.ObjectSchema<{
27
27
  readonly args: v.ObjectSchema<{
28
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
28
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
29
  }, undefined>;
30
30
  readonly clientID: v.StringSchema<undefined>;
31
31
  readonly id: v.NumberSchema<undefined>;
32
32
  readonly name: v.LiteralSchema<"deleteAccount", undefined>;
33
33
  }, undefined> | v.ObjectSchema<{
34
34
  readonly args: v.ObjectSchema<{
35
- readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
36
- readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
35
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
37
  }, undefined>;
38
38
  readonly clientID: v.StringSchema<undefined>;
39
39
  readonly id: v.NumberSchema<undefined>;
40
40
  readonly name: v.LiteralSchema<"deleteAlias", undefined>;
41
41
  }, undefined> | v.ObjectSchema<{
42
42
  readonly args: v.ObjectSchema<{
43
- readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
44
- readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
43
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
45
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
46
  }, undefined>;
47
47
  readonly clientID: v.StringSchema<undefined>;
@@ -49,8 +49,8 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
49
49
  readonly name: v.LiteralSchema<"setAliasName", undefined>;
50
50
  }, undefined> | v.ObjectSchema<{
51
51
  readonly args: v.ObjectSchema<{
52
- readonly accountId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
53
- readonly aliasId: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
52
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
54
  }, undefined>;
55
55
  readonly clientID: v.StringSchema<undefined>;
56
56
  readonly id: v.NumberSchema<undefined>;
@@ -67,7 +67,7 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
67
67
  readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
68
68
  readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
69
69
  }, undefined>;
70
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
70
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
71
  }, undefined>;
72
72
  readonly clientID: v.StringSchema<undefined>;
73
73
  readonly id: v.NumberSchema<undefined>;
@@ -79,14 +79,14 @@ export declare const syncPushAccount: import("../../../../..").EndpointConfig<"/
79
79
  readonly provider: v.UnionSchema<[v.LiteralSchema<"GOOGLE", undefined>, v.LiteralSchema<"OUTLOOK", undefined>], undefined>;
80
80
  readonly user: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
81
81
  }, undefined>;
82
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
82
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
83
83
  }, undefined>;
84
84
  readonly clientID: v.StringSchema<undefined>;
85
85
  readonly id: v.NumberSchema<undefined>;
86
86
  readonly name: v.LiteralSchema<"setConnectionConfigOauth", undefined>;
87
87
  }, undefined> | v.ObjectSchema<{
88
88
  readonly args: v.ObjectSchema<{
89
- readonly id: v.CustomSchema<string, v.ErrorMessage<v.CustomIssue> | undefined>;
89
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
90
90
  readonly settings: Omit<v.ObjectSchema<{
91
91
  readonly color: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
92
92
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;