@marcoappio/marco-config 2.0.413 → 2.0.415

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 (131) hide show
  1. package/dist/clients/account.d.ts +144 -0
  2. package/dist/clients/account.d.ts.map +1 -0
  3. package/dist/clients/account.js +93 -0
  4. package/dist/clients/contact.d.ts +14 -0
  5. package/dist/clients/contact.d.ts.map +1 -0
  6. package/dist/clients/contact.js +14 -0
  7. package/dist/clients/draft.d.ts +196 -0
  8. package/dist/clients/draft.d.ts.map +1 -0
  9. package/dist/clients/draft.js +122 -0
  10. package/dist/clients/index.d.ts +526 -0
  11. package/dist/clients/index.d.ts.map +1 -0
  12. package/dist/clients/index.js +13 -0
  13. package/dist/clients/thread.d.ts +125 -0
  14. package/dist/clients/thread.d.ts.map +1 -0
  15. package/dist/clients/thread.js +117 -0
  16. package/dist/clients/user.d.ts +53 -0
  17. package/dist/clients/user.d.ts.map +1 -0
  18. package/dist/clients/user.js +52 -0
  19. package/dist/clients/utils/index.d.ts +4 -0
  20. package/dist/clients/utils/index.d.ts.map +1 -0
  21. package/dist/clients/utils/index.js +4 -0
  22. package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
  23. package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
  24. package/dist/clients/utils/labelSpecialUseOrdering.js +1 -0
  25. package/dist/index.d.ts +3 -2
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -1
  28. package/dist/marcoPublicConfig.d.ts +6 -0
  29. package/dist/marcoPublicConfig.d.ts.map +1 -1
  30. package/dist/marcoPublicConfig.js +18 -0
  31. package/dist/sdk/endpoints/index.d.ts +1073 -0
  32. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  33. package/dist/sdk/endpoints/index.js +2 -0
  34. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
  35. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
  36. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
  37. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
  38. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
  39. package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
  40. package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
  41. package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
  42. package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
  43. package/dist/sdk/endpoints/private/index.d.ts +938 -0
  44. package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
  45. package/dist/sdk/endpoints/private/index.js +8 -0
  46. package/dist/sdk/endpoints/private/sync/index.d.ts +888 -0
  47. package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
  48. package/dist/sdk/endpoints/private/sync/index.js +3 -0
  49. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +71 -0
  50. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
  51. package/dist/sdk/endpoints/private/sync/pull/account.js +33 -0
  52. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +56 -0
  53. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
  54. package/dist/sdk/endpoints/private/sync/pull/contact.js +40 -0
  55. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +72 -0
  56. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
  57. package/dist/sdk/endpoints/private/sync/pull/draft.js +36 -0
  58. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +349 -0
  59. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
  60. package/dist/sdk/endpoints/private/sync/pull/index.js +6 -0
  61. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +100 -0
  62. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
  63. package/dist/sdk/endpoints/private/sync/pull/thread.js +45 -0
  64. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +57 -0
  65. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -0
  66. package/dist/sdk/endpoints/private/sync/pull/user.js +33 -0
  67. package/dist/sdk/endpoints/private/sync/push/account.d.ts +151 -0
  68. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
  69. package/dist/sdk/endpoints/private/sync/push/account.js +73 -0
  70. package/dist/sdk/endpoints/private/sync/push/draft.d.ts +206 -0
  71. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
  72. package/dist/sdk/endpoints/private/sync/push/draft.js +79 -0
  73. package/dist/sdk/endpoints/private/sync/push/index.d.ts +538 -0
  74. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
  75. package/dist/sdk/endpoints/private/sync/push/index.js +5 -0
  76. package/dist/sdk/endpoints/private/sync/push/thread.d.ts +122 -0
  77. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -0
  78. package/dist/sdk/endpoints/private/sync/push/thread.js +79 -0
  79. package/dist/sdk/endpoints/private/sync/push/user.d.ts +64 -0
  80. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -0
  81. package/dist/sdk/endpoints/private/sync/push/user.js +43 -0
  82. package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
  83. package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
  84. package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
  85. package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
  86. package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
  87. package/dist/sdk/endpoints/private/user/index.js +4 -0
  88. package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
  89. package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
  90. package/dist/sdk/endpoints/public/auth/index.js +8 -0
  91. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
  92. package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
  93. package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
  94. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
  95. package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
  96. package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
  97. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
  98. package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
  99. package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
  100. package/dist/sdk/endpoints/public/index.d.ts +136 -0
  101. package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
  102. package/dist/sdk/endpoints/public/index.js +2 -0
  103. package/dist/sdk/index.d.ts +1073 -0
  104. package/dist/sdk/index.d.ts.map +1 -1
  105. package/dist/types/Endpoint.d.ts +2 -1
  106. package/dist/types/Endpoint.d.ts.map +1 -1
  107. package/dist/types/MarcoClient.d.ts +12 -0
  108. package/dist/types/MarcoClient.d.ts.map +1 -0
  109. package/dist/types/MarcoClient.js +1 -0
  110. package/dist/types/SDKError.d.ts +4 -0
  111. package/dist/types/SDKError.d.ts.map +1 -0
  112. package/dist/types/SDKError.js +1 -0
  113. package/dist/types/WS.d.ts +7 -0
  114. package/dist/types/WS.d.ts.map +1 -0
  115. package/dist/types/WS.js +1 -0
  116. package/dist/types/index.d.ts +3 -0
  117. package/dist/types/index.d.ts.map +1 -1
  118. package/dist/types/index.js +3 -0
  119. package/dist/ws.d.ts +6 -0
  120. package/dist/ws.d.ts.map +1 -0
  121. package/dist/ws.js +5 -0
  122. package/package.json +1 -2
  123. package/dist/instantDB/index.d.ts +0 -3
  124. package/dist/instantDB/index.d.ts.map +0 -1
  125. package/dist/instantDB/index.js +0 -2
  126. package/dist/instantDB/instant.perms.d.ts +0 -110
  127. package/dist/instantDB/instant.perms.d.ts.map +0 -1
  128. package/dist/instantDB/instant.perms.js +0 -109
  129. package/dist/instantDB/instant.schema.d.ts +0 -313
  130. package/dist/instantDB/instant.schema.d.ts.map +0 -1
  131. package/dist/instantDB/instant.schema.js +0 -156
@@ -0,0 +1,349 @@
1
+ export declare const pull: {
2
+ account: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/account", import("valibot").ObjectSchema<{
3
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
5
+ readonly order: import("valibot").StringSchema<undefined>;
6
+ readonly version: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
7
+ }, undefined>, undefined>;
8
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
9
+ readonly data: import("valibot").ObjectSchema<{
10
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
11
+ readonly issues: import("valibot").ObjectSchema<{
12
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
13
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
14
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
15
+ }, undefined>;
16
+ }, undefined>;
17
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
18
+ }, undefined>, import("valibot").ObjectSchema<{
19
+ readonly data: import("valibot").ObjectSchema<{
20
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
21
+ }, undefined>;
22
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
23
+ }, undefined>, import("valibot").ObjectSchema<{
24
+ readonly data: import("valibot").ObjectSchema<{
25
+ readonly cookie: import("valibot").ObjectSchema<{
26
+ readonly order: import("valibot").StringSchema<undefined>;
27
+ readonly version: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
28
+ }, undefined>;
29
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
30
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
31
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
32
+ }, undefined>, import("valibot").ObjectSchema<{
33
+ readonly key: import("valibot").StringSchema<undefined>;
34
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
35
+ }, undefined>, import("valibot").ObjectSchema<{
36
+ readonly key: import("valibot").StringSchema<undefined>;
37
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
38
+ readonly value: import("valibot").ObjectSchema<{
39
+ readonly aliases: import("valibot").ObjectSchema<{
40
+ readonly nonPrimary: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
41
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
42
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
43
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ }, undefined>, undefined>;
45
+ readonly primary: import("valibot").ObjectSchema<{
46
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
47
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
48
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
49
+ }, undefined>;
50
+ }, undefined>;
51
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
52
+ readonly imapConnectionStatus: import("valibot").PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
53
+ readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
54
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
56
+ readonly specialUse: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["ARCHIVE", "INBOX", "SENT", "SPAM", "TRASH"], undefined>, undefined>;
57
+ }, undefined>, undefined>;
58
+ readonly mailCounts: import("valibot").ObjectSchema<{
59
+ readonly processed: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
60
+ readonly total: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
61
+ }, undefined>;
62
+ readonly settings: import("valibot").ObjectSchema<{
63
+ readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
65
+ }, undefined>;
66
+ }, undefined>;
67
+ }, undefined>], undefined>, undefined>;
68
+ }, undefined>;
69
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
70
+ }, undefined>], undefined>>;
71
+ contact: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/contact", import("valibot").ObjectSchema<{
72
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
73
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
74
+ readonly hasMore: import("valibot").BooleanSchema<undefined>;
75
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
76
+ readonly order: import("valibot").StringSchema<undefined>;
77
+ readonly versionMax: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
78
+ readonly versionMin: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
79
+ }, undefined>, undefined>;
80
+ }, undefined>, import("valibot").ObjectSchema<{
81
+ readonly pageSize: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TransformAction<any, number>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, undefined>;
82
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
83
+ readonly data: import("valibot").ObjectSchema<{
84
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
85
+ readonly issues: import("valibot").ObjectSchema<{
86
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
87
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
88
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
89
+ }, undefined>;
90
+ }, undefined>;
91
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
92
+ }, undefined>, import("valibot").ObjectSchema<{
93
+ readonly data: import("valibot").ObjectSchema<{
94
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
95
+ }, undefined>;
96
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
97
+ }, undefined>, import("valibot").ObjectSchema<{
98
+ readonly data: import("valibot").ObjectSchema<{
99
+ readonly cookie: import("valibot").ObjectSchema<{
100
+ readonly hasMore: import("valibot").BooleanSchema<undefined>;
101
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
102
+ readonly order: import("valibot").StringSchema<undefined>;
103
+ readonly versionMax: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
104
+ readonly versionMin: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
105
+ }, undefined>;
106
+ readonly hasMore: import("valibot").BooleanSchema<undefined>;
107
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
108
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
109
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
110
+ }, undefined>, import("valibot").ObjectSchema<{
111
+ readonly key: import("valibot").StringSchema<undefined>;
112
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
113
+ }, undefined>, import("valibot").ObjectSchema<{
114
+ readonly key: import("valibot").StringSchema<undefined>;
115
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
116
+ readonly value: import("valibot").ObjectSchema<{
117
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
118
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
119
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
120
+ }, undefined>;
121
+ }, undefined>], undefined>, undefined>;
122
+ }, undefined>;
123
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
124
+ }, undefined>], undefined>>;
125
+ draft: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/draft", import("valibot").ObjectSchema<{
126
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
127
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
128
+ readonly order: import("valibot").StringSchema<undefined>;
129
+ readonly version: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
130
+ }, undefined>, undefined>;
131
+ }, undefined>, import("valibot").ObjectSchema<{
132
+ readonly pageSize: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, undefined>;
133
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
134
+ readonly data: import("valibot").ObjectSchema<{
135
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
136
+ readonly issues: import("valibot").ObjectSchema<{
137
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
138
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
139
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
140
+ }, undefined>;
141
+ }, undefined>;
142
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
143
+ }, undefined>, import("valibot").ObjectSchema<{
144
+ readonly data: import("valibot").ObjectSchema<{
145
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
146
+ }, undefined>;
147
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
148
+ }, undefined>, import("valibot").ObjectSchema<{
149
+ readonly data: import("valibot").ObjectSchema<{
150
+ readonly cookie: import("valibot").ObjectSchema<{
151
+ readonly order: import("valibot").StringSchema<undefined>;
152
+ readonly version: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
153
+ }, undefined>;
154
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
155
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
156
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
157
+ }, undefined>, import("valibot").ObjectSchema<{
158
+ readonly key: import("valibot").StringSchema<undefined>;
159
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
160
+ }, undefined>, import("valibot").ObjectSchema<{
161
+ readonly key: import("valibot").StringSchema<undefined>;
162
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
163
+ readonly value: import("valibot").ObjectSchema<{
164
+ readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
165
+ readonly failed: import("valibot").BooleanSchema<undefined>;
166
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
167
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
168
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
169
+ readonly totalChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
170
+ readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
171
+ readonly uploadedChunks: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
172
+ }, undefined>, undefined>;
173
+ readonly body: import("valibot").ObjectSchema<{
174
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
175
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
176
+ readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
177
+ readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
178
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
179
+ }, undefined>;
180
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
181
+ readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
182
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
183
+ readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
184
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
185
+ readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
186
+ readonly scheduledFor: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
187
+ readonly status: import("valibot").PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
188
+ readonly type: import("valibot").PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
189
+ readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
190
+ }, undefined>;
191
+ }, undefined>], undefined>, undefined>;
192
+ }, undefined>;
193
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
194
+ }, undefined>], undefined>>;
195
+ thread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", import("valibot").ObjectSchema<{
196
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
197
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
198
+ readonly hasMore: import("valibot").BooleanSchema<undefined>;
199
+ readonly order: import("valibot").NumberSchema<undefined>;
200
+ readonly versionMax: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
201
+ readonly windows: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
202
+ readonly sentAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
203
+ readonly seqNo: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
204
+ readonly versionMax: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
205
+ readonly versionMin: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
206
+ }, undefined>, undefined>;
207
+ }, undefined>, undefined>;
208
+ }, undefined>, import("valibot").ObjectSchema<{
209
+ readonly pageSize: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TransformAction<any, number>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, undefined>;
210
+ }, undefined>, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
211
+ readonly data: import("valibot").ObjectSchema<{
212
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
213
+ readonly issues: import("valibot").ObjectSchema<{
214
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
215
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
216
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
217
+ }, undefined>;
218
+ }, undefined>;
219
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
220
+ }, undefined>, import("valibot").ObjectSchema<{
221
+ readonly data: import("valibot").ObjectSchema<{
222
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
223
+ }, undefined>;
224
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
225
+ }, undefined>, import("valibot").ObjectSchema<{
226
+ readonly data: import("valibot").ObjectSchema<{
227
+ readonly cookie: import("valibot").ObjectSchema<{
228
+ readonly hasMore: import("valibot").BooleanSchema<undefined>;
229
+ readonly order: import("valibot").NumberSchema<undefined>;
230
+ readonly versionMax: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
231
+ readonly windows: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
232
+ readonly sentAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
233
+ readonly seqNo: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
234
+ readonly versionMax: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
235
+ readonly versionMin: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
236
+ }, undefined>, undefined>;
237
+ }, undefined>;
238
+ readonly hasMore: import("valibot").BooleanSchema<undefined>;
239
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
240
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
241
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
242
+ }, undefined>, import("valibot").ObjectSchema<{
243
+ readonly key: import("valibot").StringSchema<undefined>;
244
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
245
+ }, undefined>, import("valibot").ObjectSchema<{
246
+ readonly key: import("valibot").StringSchema<undefined>;
247
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
248
+ readonly value: import("valibot").ObjectSchema<{
249
+ readonly bagOfWords: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
250
+ readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
251
+ readonly flagged: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
252
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
253
+ readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
254
+ readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
255
+ readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
256
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
257
+ readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
258
+ readonly size: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
259
+ readonly status: import("valibot").PicklistSchema<readonly ["NOT_DOWNLOADED", "DOWNLOAD_REQUESTED", "DOWNLOADED", "DOWNLOAD_FAILED"], undefined>;
260
+ }, undefined>, undefined>;
261
+ readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
262
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
263
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
264
+ }, undefined>, undefined>;
265
+ readonly cc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
266
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
267
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
268
+ }, undefined>, undefined>;
269
+ readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
270
+ readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
271
+ readonly from: import("valibot").ObjectSchema<{
272
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
273
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
274
+ }, undefined>;
275
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
276
+ readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
277
+ readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
278
+ readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
279
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
280
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
281
+ }, undefined>, undefined>;
282
+ readonly to: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
283
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
284
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
285
+ }, undefined>, undefined>;
286
+ }, undefined>, undefined>;
287
+ readonly seen: import("valibot").NonOptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
288
+ }, undefined>;
289
+ }, undefined>], undefined>, undefined>;
290
+ }, undefined>;
291
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
292
+ }, undefined>], undefined>>;
293
+ user: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/user", import("valibot").ObjectSchema<{
294
+ readonly clientGroupID: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
295
+ readonly cookie: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
296
+ readonly order: import("valibot").StringSchema<undefined>;
297
+ readonly version: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
298
+ }, undefined>, undefined>;
299
+ }, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
300
+ readonly data: import("valibot").ObjectSchema<{
301
+ readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
302
+ readonly issues: import("valibot").ObjectSchema<{
303
+ readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
304
+ readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
305
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
306
+ }, undefined>;
307
+ }, undefined>;
308
+ readonly status: import("valibot").LiteralSchema<400, undefined>;
309
+ }, undefined>, import("valibot").ObjectSchema<{
310
+ readonly data: import("valibot").ObjectSchema<{
311
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
312
+ }, undefined>;
313
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
314
+ }, undefined>, import("valibot").ObjectSchema<{
315
+ readonly data: import("valibot").ObjectSchema<{
316
+ readonly cookie: import("valibot").ObjectSchema<{
317
+ readonly order: import("valibot").StringSchema<undefined>;
318
+ readonly version: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
319
+ }, undefined>;
320
+ readonly lastMutationIDChanges: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").NumberSchema<undefined>, undefined>;
321
+ readonly patch: import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
322
+ readonly op: import("valibot").LiteralSchema<"clear", undefined>;
323
+ }, undefined>, import("valibot").ObjectSchema<{
324
+ readonly key: import("valibot").StringSchema<undefined>;
325
+ readonly op: import("valibot").LiteralSchema<"del", undefined>;
326
+ }, undefined>, import("valibot").ObjectSchema<{
327
+ readonly key: import("valibot").StringSchema<undefined>;
328
+ readonly op: import("valibot").LiteralSchema<"put", undefined>;
329
+ readonly value: import("valibot").ObjectSchema<{
330
+ readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
331
+ readonly settings: import("valibot").ObjectSchema<{
332
+ readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
333
+ readonly notifications: import("valibot").ObjectSchema<{
334
+ readonly pushNotificationTokens: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
335
+ readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
336
+ readonly deviceId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
337
+ readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
338
+ }, undefined>, undefined>;
339
+ }, undefined>;
340
+ readonly profilePicture: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
341
+ readonly undoSendEnabled: import("valibot").BooleanSchema<undefined>;
342
+ }, undefined>;
343
+ }, undefined>;
344
+ }, undefined>], undefined>, undefined>;
345
+ }, undefined>;
346
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
347
+ }, undefined>], undefined>>;
348
+ };
349
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/sync/pull/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { syncPullAccount as account } from './account';
2
+ import { syncPullContact as contact } from './contact';
3
+ import { syncPullDraft as draft } from './draft';
4
+ import { syncPullThread as thread } from './thread';
5
+ import { syncPullUser as user } from './user';
6
+ export const pull = { account, contact, draft, thread, user };
@@ -0,0 +1,100 @@
1
+ import * as v from 'valibot';
2
+ export declare const syncPullThread: import("../../../../..").EndpointConfig<"/v1/pv/sync/pull/thread", v.ObjectSchema<{
3
+ readonly clientGroupID: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly cookie: v.NullableSchema<v.ObjectSchema<{
5
+ readonly hasMore: v.BooleanSchema<undefined>;
6
+ readonly order: v.NumberSchema<undefined>;
7
+ readonly versionMax: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
8
+ readonly windows: v.ArraySchema<v.ObjectSchema<{
9
+ readonly sentAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
10
+ readonly seqNo: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
11
+ readonly versionMax: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
12
+ readonly versionMin: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
13
+ }, undefined>, undefined>;
14
+ }, undefined>, undefined>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly pageSize: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TransformAction<any, number>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
17
+ }, undefined>, v.UnionSchema<[v.ObjectSchema<{
18
+ readonly data: v.ObjectSchema<{
19
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
20
+ readonly issues: v.ObjectSchema<{
21
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
22
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
23
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
24
+ }, undefined>;
25
+ }, undefined>;
26
+ readonly status: v.LiteralSchema<400, undefined>;
27
+ }, undefined>, v.ObjectSchema<{
28
+ readonly data: v.ObjectSchema<{
29
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
30
+ }, undefined>;
31
+ readonly status: v.LiteralSchema<401, undefined>;
32
+ }, undefined>, v.ObjectSchema<{
33
+ readonly data: v.ObjectSchema<{
34
+ readonly cookie: v.ObjectSchema<{
35
+ readonly hasMore: v.BooleanSchema<undefined>;
36
+ readonly order: v.NumberSchema<undefined>;
37
+ readonly versionMax: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
38
+ readonly windows: v.ArraySchema<v.ObjectSchema<{
39
+ readonly sentAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
40
+ readonly seqNo: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
41
+ readonly versionMax: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
42
+ readonly versionMin: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
43
+ }, undefined>, undefined>;
44
+ }, undefined>;
45
+ readonly hasMore: v.BooleanSchema<undefined>;
46
+ readonly lastMutationIDChanges: v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>;
47
+ readonly patch: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
48
+ readonly op: v.LiteralSchema<"clear", undefined>;
49
+ }, undefined>, v.ObjectSchema<{
50
+ readonly key: v.StringSchema<undefined>;
51
+ readonly op: v.LiteralSchema<"del", undefined>;
52
+ }, undefined>, v.ObjectSchema<{
53
+ readonly key: v.StringSchema<undefined>;
54
+ readonly op: v.LiteralSchema<"put", undefined>;
55
+ readonly value: v.ObjectSchema<{
56
+ readonly bagOfWords: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
57
+ readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
58
+ readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
59
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
60
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
61
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
62
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
63
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
65
+ readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
66
+ readonly status: v.PicklistSchema<readonly ["NOT_DOWNLOADED", "DOWNLOAD_REQUESTED", "DOWNLOADED", "DOWNLOAD_FAILED"], undefined>;
67
+ }, undefined>, undefined>;
68
+ readonly bcc: v.ArraySchema<v.ObjectSchema<{
69
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
70
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
+ }, undefined>, undefined>;
72
+ readonly cc: v.ArraySchema<v.ObjectSchema<{
73
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
74
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
+ }, undefined>, undefined>;
76
+ readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
77
+ readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
78
+ readonly from: v.ObjectSchema<{
79
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
80
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
81
+ }, undefined>;
82
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
83
+ readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
84
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
85
+ readonly replyTo: v.ArraySchema<v.ObjectSchema<{
86
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
87
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
88
+ }, undefined>, undefined>;
89
+ readonly to: v.ArraySchema<v.ObjectSchema<{
90
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
91
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
92
+ }, undefined>, undefined>;
93
+ }, undefined>, undefined>;
94
+ readonly seen: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
95
+ }, undefined>;
96
+ }, undefined>], undefined>, undefined>;
97
+ }, undefined>;
98
+ readonly status: v.LiteralSchema<200, undefined>;
99
+ }, undefined>], undefined>>;
100
+ //# sourceMappingURL=thread.d.ts.map
@@ -0,0 +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;AAqB5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BA6BzB,CAAA"}
@@ -0,0 +1,45 @@
1
+ import * as v from 'valibot';
2
+ import { thread } from '../../../../../clients/thread';
3
+ import { marcoSchemas } from '../../../../../schemas';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { errors } from '../../../../../sdk/validation/errors';
6
+ const windowSchema = v.object({
7
+ sentAt: marcoSchemas.number.positiveInteger(),
8
+ seqNo: marcoSchemas.number.positiveInteger(),
9
+ versionMax: marcoSchemas.number.positiveInteger(),
10
+ versionMin: marcoSchemas.number.positiveInteger(),
11
+ });
12
+ const cookieSchema = v.object({
13
+ hasMore: v.boolean(),
14
+ order: v.number(),
15
+ versionMax: marcoSchemas.number.positiveInteger(),
16
+ windows: v.array(windowSchema),
17
+ });
18
+ export const syncPullThread = createEndpoint({
19
+ body: v.object({
20
+ clientGroupID: marcoSchemas.string.required(),
21
+ cookie: v.nullable(cookieSchema),
22
+ }),
23
+ method: 'POST',
24
+ path: thread.pullUrl,
25
+ query: v.object({
26
+ pageSize: v.optional(v.pipe(v.string(), v.transform(Number), v.integer(), v.minValue(1))),
27
+ }),
28
+ response: v.union([
29
+ errors.validationFailedErrorSchema,
30
+ errors.authFailedErrorSchema,
31
+ v.object({
32
+ data: v.object({
33
+ cookie: cookieSchema,
34
+ hasMore: v.boolean(),
35
+ lastMutationIDChanges: v.record(v.string(), v.number()),
36
+ patch: v.array(v.union([
37
+ v.object({ op: v.literal('clear') }),
38
+ v.object({ key: v.string(), op: v.literal('del') }),
39
+ v.object({ key: v.string(), op: v.literal('put'), value: thread.model }),
40
+ ])),
41
+ }),
42
+ status: v.literal(200),
43
+ }),
44
+ ]),
45
+ });