@marcoappio/marco-config 2.0.535 → 2.0.537

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 (232) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/marcoPublicConfig.d.ts +5 -0
  5. package/dist/marcoPublicConfig.d.ts.map +1 -1
  6. package/dist/marcoPublicConfig.js +15 -0
  7. package/dist/schemas/boolean.d.ts +5 -0
  8. package/dist/schemas/boolean.d.ts.map +1 -0
  9. package/dist/schemas/boolean.js +4 -0
  10. package/dist/schemas/index.d.ts +257 -0
  11. package/dist/schemas/index.d.ts.map +1 -1
  12. package/dist/schemas/index.js +23 -0
  13. package/dist/schemas/models/account.d.ts +54 -0
  14. package/dist/schemas/models/account.d.ts.map +1 -0
  15. package/dist/schemas/models/account.js +33 -0
  16. package/dist/schemas/models/contact.d.ts +9 -0
  17. package/dist/schemas/models/contact.d.ts.map +1 -0
  18. package/dist/schemas/models/contact.js +8 -0
  19. package/dist/schemas/models/draft.d.ts +48 -0
  20. package/dist/schemas/models/draft.d.ts.map +1 -0
  21. package/dist/schemas/models/draft.js +35 -0
  22. package/dist/schemas/models/index.d.ts +6 -0
  23. package/dist/schemas/models/index.d.ts.map +1 -0
  24. package/dist/schemas/models/index.js +5 -0
  25. package/dist/schemas/models/thread.d.ts +122 -0
  26. package/dist/schemas/models/thread.d.ts.map +1 -0
  27. package/dist/schemas/models/thread.js +55 -0
  28. package/dist/schemas/models/user.d.ts +35 -0
  29. package/dist/schemas/models/user.d.ts.map +1 -0
  30. package/dist/schemas/models/user.js +24 -0
  31. package/dist/schemas/number.d.ts +2 -0
  32. package/dist/schemas/number.d.ts.map +1 -1
  33. package/dist/schemas/number.js +2 -0
  34. package/dist/schemas/paginatedResponse.d.ts +10 -0
  35. package/dist/schemas/paginatedResponse.d.ts.map +1 -0
  36. package/dist/schemas/paginatedResponse.js +5 -0
  37. package/dist/schemas/websocket.d.ts +12 -0
  38. package/dist/schemas/websocket.d.ts.map +1 -0
  39. package/dist/schemas/websocket.js +9 -0
  40. package/dist/sdk/endpoints/index.d.ts +14 -0
  41. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  42. package/dist/sdk/endpoints/private/index.d.ts +14 -0
  43. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  44. package/dist/sdk/endpoints/private/index.js +4 -0
  45. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +68 -0
  46. package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -0
  47. package/dist/sdk/endpoints/private/models/account/getAccounts.js +26 -0
  48. package/dist/sdk/endpoints/private/models/account/index.d.ts +2 -0
  49. package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -0
  50. package/dist/sdk/endpoints/private/models/account/index.js +1 -0
  51. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +41 -0
  52. package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -0
  53. package/dist/sdk/endpoints/private/models/contact/getContacts.js +26 -0
  54. package/dist/sdk/endpoints/private/models/contact/index.d.ts +2 -0
  55. package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +1 -0
  56. package/dist/sdk/endpoints/private/models/contact/index.js +1 -0
  57. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +62 -0
  58. package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -0
  59. package/dist/sdk/endpoints/private/models/draft/getDrafts.js +25 -0
  60. package/dist/sdk/endpoints/private/models/draft/index.d.ts +2 -0
  61. package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +1 -0
  62. package/dist/sdk/endpoints/private/models/draft/index.js +1 -0
  63. package/dist/sdk/endpoints/private/models/index.d.ts +15 -0
  64. package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -0
  65. package/dist/sdk/endpoints/private/models/index.js +14 -0
  66. package/dist/sdk/endpoints/private/models/label/getLabels.d.ts +44 -0
  67. package/dist/sdk/endpoints/private/models/label/getLabels.d.ts.map +1 -0
  68. package/dist/sdk/endpoints/private/models/label/getLabels.js +27 -0
  69. package/dist/sdk/endpoints/private/models/label/index.d.ts +2 -0
  70. package/dist/sdk/endpoints/private/models/label/index.d.ts.map +1 -0
  71. package/dist/sdk/endpoints/private/models/label/index.js +1 -0
  72. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +62 -0
  73. package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -0
  74. package/dist/sdk/endpoints/private/models/thread/getThread.js +17 -0
  75. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +62 -0
  76. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -0
  77. package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +17 -0
  78. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +55 -0
  79. package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -0
  80. package/dist/sdk/endpoints/private/models/thread/getThreadList.js +30 -0
  81. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +75 -0
  82. package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +1 -0
  83. package/dist/sdk/endpoints/private/models/thread/getThreads.js +25 -0
  84. package/dist/sdk/endpoints/private/models/thread/index.d.ts +5 -0
  85. package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -0
  86. package/dist/sdk/endpoints/private/models/thread/index.js +4 -0
  87. package/dist/sdk/endpoints/private/models/user/getUser.d.ts +33 -0
  88. package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -0
  89. package/dist/sdk/endpoints/private/models/user/getUser.js +16 -0
  90. package/dist/sdk/endpoints/private/models/user/index.d.ts +2 -0
  91. package/dist/sdk/endpoints/private/models/user/index.d.ts.map +1 -0
  92. package/dist/sdk/endpoints/private/models/user/index.js +1 -0
  93. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +35 -0
  94. package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -0
  95. package/dist/sdk/endpoints/private/mutations/account/createAccount.js +18 -0
  96. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +42 -0
  97. package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -0
  98. package/dist/sdk/endpoints/private/mutations/account/createAlias.js +19 -0
  99. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +27 -0
  100. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -0
  101. package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +18 -0
  102. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +33 -0
  103. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -0
  104. package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +19 -0
  105. package/dist/sdk/endpoints/private/mutations/account/index.d.ts +10 -0
  106. package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -0
  107. package/dist/sdk/endpoints/private/mutations/account/index.js +9 -0
  108. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +44 -0
  109. package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -0
  110. package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +20 -0
  111. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +33 -0
  112. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -0
  113. package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +19 -0
  114. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +49 -0
  115. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -0
  116. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +19 -0
  117. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +42 -0
  118. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -0
  119. package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +19 -0
  120. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +39 -0
  121. package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -0
  122. package/dist/sdk/endpoints/private/mutations/account/setSettings.js +19 -0
  123. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +28 -0
  124. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -0
  125. package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +18 -0
  126. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +45 -0
  127. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -0
  128. package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +19 -0
  129. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +60 -0
  130. package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -0
  131. package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +19 -0
  132. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +34 -0
  133. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -0
  134. package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +19 -0
  135. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +27 -0
  136. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -0
  137. package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +18 -0
  138. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +10 -0
  139. package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +1 -0
  140. package/dist/sdk/endpoints/private/mutations/draft/index.js +9 -0
  141. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +45 -0
  142. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -0
  143. package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +19 -0
  144. package/dist/sdk/endpoints/private/mutations/draft/setContent.d.ts +43 -0
  145. package/dist/sdk/endpoints/private/mutations/draft/setContent.d.ts.map +1 -0
  146. package/dist/sdk/endpoints/private/mutations/draft/setContent.js +19 -0
  147. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +85 -0
  148. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -0
  149. package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +19 -0
  150. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +47 -0
  151. package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -0
  152. package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +20 -0
  153. package/dist/sdk/endpoints/private/mutations/index.d.ts +11 -0
  154. package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -0
  155. package/dist/sdk/endpoints/private/mutations/index.js +10 -0
  156. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +40 -0
  157. package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -0
  158. package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +19 -0
  159. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +34 -0
  160. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -0
  161. package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +18 -0
  162. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +10 -0
  163. package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +1 -0
  164. package/dist/sdk/endpoints/private/mutations/thread/index.js +9 -0
  165. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +40 -0
  166. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -0
  167. package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +19 -0
  168. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +34 -0
  169. package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -0
  170. package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +18 -0
  171. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +35 -0
  172. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -0
  173. package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +18 -0
  174. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +34 -0
  175. package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -0
  176. package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +18 -0
  177. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +35 -0
  178. package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -0
  179. package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +18 -0
  180. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +34 -0
  181. package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -0
  182. package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +18 -0
  183. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +34 -0
  184. package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -0
  185. package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +18 -0
  186. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +38 -0
  187. package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -0
  188. package/dist/sdk/endpoints/private/mutations/user/createView.js +18 -0
  189. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +23 -0
  190. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -0
  191. package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +17 -0
  192. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +28 -0
  193. package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -0
  194. package/dist/sdk/endpoints/private/mutations/user/deleteView.js +18 -0
  195. package/dist/sdk/endpoints/private/mutations/user/index.d.ts +7 -0
  196. package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +1 -0
  197. package/dist/sdk/endpoints/private/mutations/user/index.js +6 -0
  198. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +37 -0
  199. package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -0
  200. package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +18 -0
  201. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +33 -0
  202. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -0
  203. package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +18 -0
  204. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +43 -0
  205. package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -0
  206. package/dist/sdk/endpoints/private/mutations/user/updateView.js +19 -0
  207. package/dist/sdk/index.d.ts +50 -0
  208. package/dist/sdk/index.d.ts.map +1 -1
  209. package/dist/sdk/validation/errors.d.ts +72 -0
  210. package/dist/sdk/validation/errors.d.ts.map +1 -1
  211. package/dist/sdk/validation/errors.js +30 -0
  212. package/dist/sdk/validation/index.d.ts +36 -0
  213. package/dist/sdk/validation/index.d.ts.map +1 -1
  214. package/dist/types/PokeEvent.d.ts +6 -0
  215. package/dist/types/PokeEvent.d.ts.map +1 -0
  216. package/dist/types/PokeEvent.js +1 -0
  217. package/dist/types/SDKError.d.ts +1 -1
  218. package/dist/types/SDKError.d.ts.map +1 -1
  219. package/dist/types/index.d.ts +1 -0
  220. package/dist/types/index.d.ts.map +1 -1
  221. package/dist/types/index.js +1 -0
  222. package/dist/zero/index.d.ts +935 -925
  223. package/dist/zero/index.d.ts.map +1 -1
  224. package/dist/zero/index.js +1 -0
  225. package/dist/zero/mutatorSchemas.d.ts +1 -1
  226. package/dist/zero/mutators.d.ts +281 -281
  227. package/dist/zero/queries.d.ts +290 -282
  228. package/dist/zero/queries.d.ts.map +1 -1
  229. package/dist/zero/queries.js +14 -8
  230. package/dist/zero/schema.d.ts +281 -281
  231. package/dist/zero/schema.d.ts.map +1 -1
  232. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema, messageNotFoundErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
5
+ export const getThreadByMessageId = createEndpoint({
6
+ method: 'GET',
7
+ path: '/v1/pv/models/thread/by-message/:messageId',
8
+ response: v.union([
9
+ authFailedErrorSchema,
10
+ userNotFoundErrorSchema,
11
+ messageNotFoundErrorSchema,
12
+ v.object({
13
+ data: marcoSchemas.models.threadFullSchema,
14
+ status: v.literal(200),
15
+ }),
16
+ ]),
17
+ });
@@ -0,0 +1,55 @@
1
+ import * as v from 'valibot';
2
+ export declare const getThreadList: import("../../../../..").EndpointConfig<"/v1/pv/models/thread", v.GenericSchema | undefined, v.ObjectSchema<{
3
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
+ readonly flagged: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
5
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
6
+ readonly labelIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
7
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
8
+ readonly messageIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
9
+ readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
10
+ readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
11
+ readonly seen: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
12
+ }, undefined>, v.UnionSchema<[v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
15
+ }, undefined>;
16
+ readonly status: v.LiteralSchema<401, undefined>;
17
+ }, undefined>, v.ObjectSchema<{
18
+ readonly data: v.ObjectSchema<{
19
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
20
+ }, undefined>;
21
+ readonly status: v.LiteralSchema<404, undefined>;
22
+ }, undefined>, v.ObjectSchema<{
23
+ readonly data: v.ObjectSchema<{
24
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
25
+ readonly issues: v.ObjectSchema<{
26
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
27
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
28
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
29
+ }, undefined>;
30
+ }, undefined>;
31
+ readonly status: v.LiteralSchema<400, undefined>;
32
+ }, undefined>, v.ObjectSchema<{
33
+ readonly data: v.ObjectSchema<{
34
+ readonly items: v.ArraySchema<v.ObjectSchema<{
35
+ accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ flagged: v.BooleanSchema<undefined>;
37
+ hasAttachments: v.BooleanSchema<undefined>;
38
+ id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
39
+ labelIdList: v.StringSchema<undefined>;
40
+ latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
41
+ latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
43
+ previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ seen: v.BooleanSchema<undefined>;
45
+ senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
+ senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
47
+ subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
+ userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
49
+ words: v.StringSchema<undefined>;
50
+ }, undefined>, undefined>;
51
+ readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
52
+ }, undefined>;
53
+ readonly status: v.LiteralSchema<200, undefined>;
54
+ }, undefined>], undefined>>;
55
+ //# sourceMappingURL=getThreadList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThreadList.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
@@ -0,0 +1,30 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
+ const getThreadListQuerySchema = v.object({
7
+ cursor: v.optional(v.string()),
8
+ flagged: v.optional(marcoSchemas.boolean.fromString()),
9
+ id: v.optional(v.string()),
10
+ labelIds: v.pipe(v.array(v.string()), v.minLength(1)),
11
+ limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
12
+ messageIds: v.optional(v.array(v.string())),
13
+ participants: v.optional(v.array(v.string())),
14
+ search: v.optional(v.string()),
15
+ seen: v.optional(marcoSchemas.boolean.fromString()),
16
+ });
17
+ export const getThreadList = createEndpoint({
18
+ method: 'GET',
19
+ path: '/v1/pv/models/thread',
20
+ query: getThreadListQuerySchema,
21
+ response: v.union([
22
+ authFailedErrorSchema,
23
+ userNotFoundErrorSchema,
24
+ validationFailedErrorSchema,
25
+ v.object({
26
+ data: paginatedResponseSchema(marcoSchemas.models.threadListSchema),
27
+ status: v.literal(200),
28
+ }),
29
+ ]),
30
+ });
@@ -0,0 +1,75 @@
1
+ import * as v from 'valibot';
2
+ export declare const getThreads: import("../../../../..").EndpointConfig<"/v1/pv/models/thread/full", v.GenericSchema | undefined, v.ObjectSchema<{
3
+ readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
5
+ readonly labelIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
6
+ readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
7
+ }, undefined>, v.UnionSchema<[v.ObjectSchema<{
8
+ readonly data: v.ObjectSchema<{
9
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<401, undefined>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
15
+ }, undefined>;
16
+ readonly status: v.LiteralSchema<404, undefined>;
17
+ }, undefined>, 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 items: v.ArraySchema<v.ObjectSchema<{
30
+ readonly messages: v.ArraySchema<v.ObjectSchema<{
31
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
33
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
34
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
37
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
+ }, undefined>, undefined>;
39
+ readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
40
+ readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
43
+ readonly recipients: v.ArraySchema<v.ObjectSchema<{
44
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
47
+ readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
+ readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
49
+ }, undefined>, undefined>;
50
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
+ readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
+ readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
53
+ readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
+ }, undefined>, undefined>;
55
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
+ readonly flagged: v.BooleanSchema<undefined>;
57
+ readonly hasAttachments: v.BooleanSchema<undefined>;
58
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
59
+ readonly labelIdList: v.StringSchema<undefined>;
60
+ readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
61
+ readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
62
+ readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
63
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ readonly seen: v.BooleanSchema<undefined>;
65
+ readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
66
+ readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
+ readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
68
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
69
+ readonly words: v.StringSchema<undefined>;
70
+ }, undefined>, undefined>;
71
+ readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
72
+ }, undefined>;
73
+ readonly status: v.LiteralSchema<200, undefined>;
74
+ }, undefined>], undefined>>;
75
+ //# sourceMappingURL=getThreads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkB5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAarB,CAAA"}
@@ -0,0 +1,25 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
4
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
5
+ import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
6
+ const getThreadsQuerySchema = v.object({
7
+ cursor: v.optional(v.string()),
8
+ id: v.optional(v.string()),
9
+ labelIds: v.pipe(v.array(v.string()), v.minLength(1)),
10
+ limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
11
+ });
12
+ export const getThreads = createEndpoint({
13
+ method: 'GET',
14
+ path: '/v1/pv/models/thread/full',
15
+ query: getThreadsQuerySchema,
16
+ response: v.union([
17
+ authFailedErrorSchema,
18
+ userNotFoundErrorSchema,
19
+ validationFailedErrorSchema,
20
+ v.object({
21
+ data: paginatedResponseSchema(marcoSchemas.models.threadFullSchema),
22
+ status: v.literal(200),
23
+ }),
24
+ ]),
25
+ });
@@ -0,0 +1,5 @@
1
+ export { getThread } from './getThread';
2
+ export { getThreadByMessageId } from './getThreadByMessageId';
3
+ export { getThreadList } from './getThreadList';
4
+ export { getThreads } from './getThreads';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { getThread } from './getThread';
2
+ export { getThreadByMessageId } from './getThreadByMessageId';
3
+ export { getThreadList } from './getThreadList';
4
+ export { getThreads } from './getThreads';
@@ -0,0 +1,33 @@
1
+ import * as v from 'valibot';
2
+ export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/models/user", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
3
+ readonly data: v.ObjectSchema<{
4
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
5
+ }, undefined>;
6
+ readonly status: v.LiteralSchema<401, undefined>;
7
+ }, undefined>, v.ObjectSchema<{
8
+ readonly data: v.ObjectSchema<{
9
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<404, undefined>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
+ readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
17
+ readonly pushNotificationTokens: v.ArraySchema<v.ObjectSchema<{
18
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
19
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
21
+ readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
22
+ }, undefined>, undefined>;
23
+ readonly undoSendEnabled: v.BooleanSchema<undefined>;
24
+ readonly views: v.ArraySchema<v.ObjectSchema<{
25
+ readonly aliasEmails: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
26
+ readonly icon: v.PicklistSchema<readonly [import("../../../../..").CustomViewIcon.AIRPLANE, import("../../../../..").CustomViewIcon.BELL, import("../../../../..").CustomViewIcon.BRIEFCASE, import("../../../../..").CustomViewIcon.CLOCK, import("../../../../..").CustomViewIcon.CREDIT_CARD, import("../../../../..").CustomViewIcon.HEART, import("../../../../..").CustomViewIcon.HOME, import("../../../../..").CustomViewIcon.KEY, import("../../../../..").CustomViewIcon.MOON, import("../../../../..").CustomViewIcon.PERSON, import("../../../../..").CustomViewIcon.SHOPPING_CART, import("../../../../..").CustomViewIcon.STAR], undefined>;
27
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
+ readonly name: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
+ }, undefined>, undefined>;
30
+ }, undefined>;
31
+ readonly status: v.LiteralSchema<200, undefined>;
32
+ }, undefined>], undefined>>;
33
+ //# sourceMappingURL=getUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import * as v from 'valibot';
2
+ import { marcoSchemas } from '../../../../../schemas';
3
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
4
+ import { authFailedErrorSchema, userNotFoundErrorSchema } from '../../../../../sdk/validation/errors';
5
+ export const getUser = createEndpoint({
6
+ method: 'GET',
7
+ path: '/v1/pv/models/user',
8
+ response: v.union([
9
+ authFailedErrorSchema,
10
+ userNotFoundErrorSchema,
11
+ v.object({
12
+ data: marcoSchemas.models.userSchema,
13
+ status: v.literal(200),
14
+ }),
15
+ ]),
16
+ });
@@ -0,0 +1,2 @@
1
+ export { getUser } from './getUser';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1 @@
1
+ export { getUser } from './getUser';
@@ -0,0 +1,35 @@
1
+ import * as v from 'valibot';
2
+ export declare const createAccount: import("../../../../..").EndpointConfig<"/v1/pv/models/account", v.ObjectSchema<{
3
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
6
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
8
+ readonly data: v.ObjectSchema<{
9
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
10
+ }, undefined>;
11
+ readonly status: v.LiteralSchema<401, undefined>;
12
+ }, undefined>, v.ObjectSchema<{
13
+ readonly data: v.ObjectSchema<{
14
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
15
+ }, undefined>;
16
+ readonly status: v.LiteralSchema<404, undefined>;
17
+ }, undefined>, v.ObjectSchema<{
18
+ readonly data: v.ObjectSchema<{
19
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
20
+ }, undefined>;
21
+ readonly status: v.LiteralSchema<409, undefined>;
22
+ }, undefined>, v.ObjectSchema<{
23
+ readonly data: v.ObjectSchema<{
24
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
25
+ readonly issues: v.ObjectSchema<{
26
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
27
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
28
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
29
+ }, undefined>;
30
+ }, undefined>;
31
+ readonly status: v.LiteralSchema<400, undefined>;
32
+ }, undefined>, v.ObjectSchema<{
33
+ readonly status: v.LiteralSchema<201, undefined>;
34
+ }, undefined>], undefined>>;
35
+ //# sourceMappingURL=createAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
+ import { authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
+ import { mutatorSchemas } from '../../../../../zero';
5
+ export const createAccount = createEndpoint({
6
+ body: mutatorSchemas.account.createAccount,
7
+ method: 'POST',
8
+ path: '/v1/pv/models/account',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ mutationRejectedErrorSchema,
13
+ validationFailedErrorSchema,
14
+ v.object({
15
+ status: v.literal(201),
16
+ }),
17
+ ]),
18
+ });
@@ -0,0 +1,42 @@
1
+ import * as v from 'valibot';
2
+ export declare const createAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly alias: v.ObjectSchema<{
5
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
6
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
+ }, undefined>;
9
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<401, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<404, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
22
+ }, undefined>;
23
+ readonly status: v.LiteralSchema<404, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly data: v.ObjectSchema<{
26
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
27
+ }, undefined>;
28
+ readonly status: v.LiteralSchema<409, undefined>;
29
+ }, undefined>, v.ObjectSchema<{
30
+ readonly data: v.ObjectSchema<{
31
+ readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
32
+ readonly issues: v.ObjectSchema<{
33
+ readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
34
+ readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
35
+ readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
36
+ }, undefined>;
37
+ }, undefined>;
38
+ readonly status: v.LiteralSchema<400, undefined>;
39
+ }, undefined>, v.ObjectSchema<{
40
+ readonly status: v.LiteralSchema<201, undefined>;
41
+ }, undefined>], undefined>>;
42
+ //# sourceMappingURL=createAlias.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAlias.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
4
+ import { mutatorSchemas } from '../../../../../zero';
5
+ export const createAlias = createEndpoint({
6
+ body: mutatorSchemas.account.createAlias,
7
+ method: 'POST',
8
+ path: '/v1/pv/models/account/:accountId/alias',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ mutationRejectedErrorSchema,
14
+ validationFailedErrorSchema,
15
+ v.object({
16
+ status: v.literal(201),
17
+ }),
18
+ ]),
19
+ });
@@ -0,0 +1,27 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteAccount: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId", v.ObjectSchema<{
3
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
5
+ readonly data: v.ObjectSchema<{
6
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
7
+ }, undefined>;
8
+ readonly status: v.LiteralSchema<401, undefined>;
9
+ }, undefined>, v.ObjectSchema<{
10
+ readonly data: v.ObjectSchema<{
11
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
12
+ }, undefined>;
13
+ readonly status: v.LiteralSchema<404, undefined>;
14
+ }, undefined>, v.ObjectSchema<{
15
+ readonly data: v.ObjectSchema<{
16
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
17
+ }, undefined>;
18
+ readonly status: v.LiteralSchema<404, undefined>;
19
+ }, undefined>, v.ObjectSchema<{
20
+ readonly data: v.ObjectSchema<{
21
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
22
+ }, undefined>;
23
+ readonly status: v.LiteralSchema<409, undefined>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly status: v.LiteralSchema<204, undefined>;
26
+ }, undefined>], undefined>>;
27
+ //# sourceMappingURL=deleteAccount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
+ import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
+ import { mutatorSchemas } from '../../../../../zero';
5
+ export const deleteAccount = createEndpoint({
6
+ body: mutatorSchemas.account.deleteAccount,
7
+ method: 'DELETE',
8
+ path: '/v1/pv/models/account/:accountId',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ mutationRejectedErrorSchema,
14
+ v.object({
15
+ status: v.literal(204),
16
+ }),
17
+ ]),
18
+ });
@@ -0,0 +1,33 @@
1
+ import * as v from 'valibot';
2
+ export declare const deleteAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/alias/:aliasId", v.ObjectSchema<{
3
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
4
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
5
+ }, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
6
+ readonly data: v.ObjectSchema<{
7
+ readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
8
+ }, undefined>;
9
+ readonly status: v.LiteralSchema<401, undefined>;
10
+ }, undefined>, v.ObjectSchema<{
11
+ readonly data: v.ObjectSchema<{
12
+ readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
13
+ }, undefined>;
14
+ readonly status: v.LiteralSchema<404, undefined>;
15
+ }, undefined>, v.ObjectSchema<{
16
+ readonly data: v.ObjectSchema<{
17
+ readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
18
+ }, undefined>;
19
+ readonly status: v.LiteralSchema<404, undefined>;
20
+ }, undefined>, v.ObjectSchema<{
21
+ readonly data: v.ObjectSchema<{
22
+ readonly code: v.LiteralSchema<"ALIAS_NOT_FOUND", undefined>;
23
+ }, undefined>;
24
+ readonly status: v.LiteralSchema<404, undefined>;
25
+ }, undefined>, v.ObjectSchema<{
26
+ readonly data: v.ObjectSchema<{
27
+ readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
28
+ }, undefined>;
29
+ readonly status: v.LiteralSchema<409, undefined>;
30
+ }, undefined>, v.ObjectSchema<{
31
+ readonly status: v.LiteralSchema<204, undefined>;
32
+ }, undefined>], undefined>>;
33
+ //# sourceMappingURL=deleteAlias.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteAlias.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/deleteAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import * as v from 'valibot';
2
+ import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
3
+ import { accountNotFoundErrorSchema, aliasNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
4
+ import { mutatorSchemas } from '../../../../../zero';
5
+ export const deleteAlias = createEndpoint({
6
+ body: mutatorSchemas.account.deleteAlias,
7
+ method: 'DELETE',
8
+ path: '/v1/pv/models/account/:accountId/alias/:aliasId',
9
+ response: v.union([
10
+ authFailedErrorSchema,
11
+ userNotFoundErrorSchema,
12
+ accountNotFoundErrorSchema,
13
+ aliasNotFoundErrorSchema,
14
+ mutationRejectedErrorSchema,
15
+ v.object({
16
+ status: v.literal(204),
17
+ }),
18
+ ]),
19
+ });
@@ -0,0 +1,10 @@
1
+ export { createAccount } from './createAccount';
2
+ export { createAlias } from './createAlias';
3
+ export { deleteAccount } from './deleteAccount';
4
+ export { deleteAlias } from './deleteAlias';
5
+ export { setAliasName } from './setAliasName';
6
+ export { setAliasPrimary } from './setAliasPrimary';
7
+ export { setConnectionConfigImap } from './setConnectionConfigImap';
8
+ export { setConnectionConfigOauth } from './setConnectionConfigOauth';
9
+ export { setSettings } from './setSettings';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,9 @@
1
+ export { createAccount } from './createAccount';
2
+ export { createAlias } from './createAlias';
3
+ export { deleteAccount } from './deleteAccount';
4
+ export { deleteAlias } from './deleteAlias';
5
+ export { setAliasName } from './setAliasName';
6
+ export { setAliasPrimary } from './setAliasPrimary';
7
+ export { setConnectionConfigImap } from './setConnectionConfigImap';
8
+ export { setConnectionConfigOauth } from './setConnectionConfigOauth';
9
+ export { setSettings } from './setSettings';