revdoku 0.0.0-stage → 2.2.0

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 (332) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +250 -2
  3. package/REFERENCE.md +654 -0
  4. package/dist/apis/DefaultApi.d.ts +1643 -0
  5. package/dist/apis/DefaultApi.js +3161 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +19 -0
  8. package/dist/client.d.ts +74 -0
  9. package/dist/client.js +241 -0
  10. package/dist/index.d.ts +4 -0
  11. package/dist/index.js +22 -0
  12. package/dist/models/AccountIdentity.d.ts +77 -0
  13. package/dist/models/AccountIdentity.js +90 -0
  14. package/dist/models/AccountIdentityAgencyAccount.d.ts +34 -0
  15. package/dist/models/AccountIdentityAgencyAccount.js +50 -0
  16. package/dist/models/AccountIdentityPermissions.d.ts +55 -0
  17. package/dist/models/AccountIdentityPermissions.js +68 -0
  18. package/dist/models/AccountLimits.d.ts +106 -0
  19. package/dist/models/AccountLimits.js +126 -0
  20. package/dist/models/AccountList.d.ts +40 -0
  21. package/dist/models/AccountList.js +60 -0
  22. package/dist/models/ActionRequest.d.ts +34 -0
  23. package/dist/models/ActionRequest.js +50 -0
  24. package/dist/models/AddUploadSessionFilesRequest.d.ts +39 -0
  25. package/dist/models/AddUploadSessionFilesRequest.js +55 -0
  26. package/dist/models/AgentConnection.d.ts +99 -0
  27. package/dist/models/AgentConnection.js +93 -0
  28. package/dist/models/ApiError.d.ts +35 -0
  29. package/dist/models/ApiError.js +55 -0
  30. package/dist/models/ApiErrorError.d.ts +62 -0
  31. package/dist/models/ApiErrorError.js +69 -0
  32. package/dist/models/AppendText200Response.d.ts +35 -0
  33. package/dist/models/AppendText200Response.js +55 -0
  34. package/dist/models/AppendTextRequest.d.ts +50 -0
  35. package/dist/models/AppendTextRequest.js +62 -0
  36. package/dist/models/AppendTextResult.d.ts +52 -0
  37. package/dist/models/AppendTextResult.js +72 -0
  38. package/dist/models/BrowserLink.d.ts +46 -0
  39. package/dist/models/BrowserLink.js +60 -0
  40. package/dist/models/ChangeMailboxAddressRequest.d.ts +54 -0
  41. package/dist/models/ChangeMailboxAddressRequest.js +64 -0
  42. package/dist/models/CheckEmailDomain200Response.d.ts +35 -0
  43. package/dist/models/CheckEmailDomain200Response.js +55 -0
  44. package/dist/models/CodeRequested.d.ts +46 -0
  45. package/dist/models/CodeRequested.js +56 -0
  46. package/dist/models/Connection.d.ts +112 -0
  47. package/dist/models/Connection.js +99 -0
  48. package/dist/models/ConnectionPermissions.d.ts +38 -0
  49. package/dist/models/ConnectionPermissions.js +52 -0
  50. package/dist/models/ConnectionRenewal.d.ts +38 -0
  51. package/dist/models/ConnectionRenewal.js +52 -0
  52. package/dist/models/CreateBrowserLink201Response.d.ts +35 -0
  53. package/dist/models/CreateBrowserLink201Response.js +55 -0
  54. package/dist/models/CreateBrowserLinkRequest.d.ts +38 -0
  55. package/dist/models/CreateBrowserLinkRequest.js +52 -0
  56. package/dist/models/CreateClientAccount201Response.d.ts +35 -0
  57. package/dist/models/CreateClientAccount201Response.js +55 -0
  58. package/dist/models/CreateClientAccount201ResponseData.d.ts +31 -0
  59. package/dist/models/CreateClientAccount201ResponseData.js +51 -0
  60. package/dist/models/CreateClientAccountRequest.d.ts +42 -0
  61. package/dist/models/CreateClientAccountRequest.js +56 -0
  62. package/dist/models/CreateEmailAliasRequest.d.ts +42 -0
  63. package/dist/models/CreateEmailAliasRequest.js +56 -0
  64. package/dist/models/CreateEmailDomain201Response.d.ts +35 -0
  65. package/dist/models/CreateEmailDomain201Response.js +55 -0
  66. package/dist/models/CreateEmailDomain201ResponseData.d.ts +31 -0
  67. package/dist/models/CreateEmailDomain201ResponseData.js +51 -0
  68. package/dist/models/CreateEmailDomainRequest.d.ts +38 -0
  69. package/dist/models/CreateEmailDomainRequest.js +54 -0
  70. package/dist/models/CreateMailbox201Response.d.ts +35 -0
  71. package/dist/models/CreateMailbox201Response.js +55 -0
  72. package/dist/models/CreateMailbox201ResponseData.d.ts +31 -0
  73. package/dist/models/CreateMailbox201ResponseData.js +51 -0
  74. package/dist/models/CreateMailboxRequest.d.ts +39 -0
  75. package/dist/models/CreateMailboxRequest.js +53 -0
  76. package/dist/models/CreateUploadSession201Response.d.ts +35 -0
  77. package/dist/models/CreateUploadSession201Response.js +55 -0
  78. package/dist/models/CreateUploadSessionRequest.d.ts +63 -0
  79. package/dist/models/CreateUploadSessionRequest.js +69 -0
  80. package/dist/models/DecodedEmailAddress.d.ts +34 -0
  81. package/dist/models/DecodedEmailAddress.js +54 -0
  82. package/dist/models/DecodedIncomingMessage.d.ts +151 -0
  83. package/dist/models/DecodedIncomingMessage.js +142 -0
  84. package/dist/models/DecodedIncomingMessageAttachmentsInner.d.ts +56 -0
  85. package/dist/models/DecodedIncomingMessageAttachmentsInner.js +74 -0
  86. package/dist/models/DeleteEmailDomain200Response.d.ts +35 -0
  87. package/dist/models/DeleteEmailDomain200Response.js +55 -0
  88. package/dist/models/DeleteEmailDomainRequest.d.ts +42 -0
  89. package/dist/models/DeleteEmailDomainRequest.js +58 -0
  90. package/dist/models/DeleteMailboxRequest.d.ts +38 -0
  91. package/dist/models/DeleteMailboxRequest.js +54 -0
  92. package/dist/models/DeleteResult.d.ts +34 -0
  93. package/dist/models/DeleteResult.js +54 -0
  94. package/dist/models/DnsRecord.d.ts +50 -0
  95. package/dist/models/DnsRecord.js +70 -0
  96. package/dist/models/Download.d.ts +53 -0
  97. package/dist/models/Download.js +75 -0
  98. package/dist/models/EmailAlias.d.ts +38 -0
  99. package/dist/models/EmailAlias.js +58 -0
  100. package/dist/models/EmailAttachment.d.ts +60 -0
  101. package/dist/models/EmailAttachment.js +76 -0
  102. package/dist/models/EmailDelivery.d.ts +49 -0
  103. package/dist/models/EmailDelivery.js +67 -0
  104. package/dist/models/EmailDetail.d.ts +167 -0
  105. package/dist/models/EmailDetail.js +157 -0
  106. package/dist/models/EmailDomain.d.ts +101 -0
  107. package/dist/models/EmailDomain.js +92 -0
  108. package/dist/models/EmailDomainAssignedMailboxesInner.d.ts +35 -0
  109. package/dist/models/EmailDomainAssignedMailboxesInner.js +51 -0
  110. package/dist/models/EmailDomainAssignedMailboxesInnerEmail.d.ts +30 -0
  111. package/dist/models/EmailDomainAssignedMailboxesInnerEmail.js +48 -0
  112. package/dist/models/EmailDomainCheck.d.ts +42 -0
  113. package/dist/models/EmailDomainCheck.js +58 -0
  114. package/dist/models/EmailDomainError.d.ts +38 -0
  115. package/dist/models/EmailDomainError.js +52 -0
  116. package/dist/models/EmailDomainList.d.ts +44 -0
  117. package/dist/models/EmailDomainList.js +62 -0
  118. package/dist/models/EmailForwarding.d.ts +77 -0
  119. package/dist/models/EmailForwarding.js +89 -0
  120. package/dist/models/EmailForwardingContent.d.ts +95 -0
  121. package/dist/models/EmailForwardingContent.js +102 -0
  122. package/dist/models/EmailLabel.d.ts +51 -0
  123. package/dist/models/EmailLabel.js +71 -0
  124. package/dist/models/EmailList.d.ts +36 -0
  125. package/dist/models/EmailList.js +56 -0
  126. package/dist/models/EmailReceivedEvent.d.ts +50 -0
  127. package/dist/models/EmailReceivedEvent.js +73 -0
  128. package/dist/models/EmailReceivedEventData.d.ts +46 -0
  129. package/dist/models/EmailReceivedEventData.js +67 -0
  130. package/dist/models/EmailSenderAllowlist.d.ts +46 -0
  131. package/dist/models/EmailSenderAllowlist.js +66 -0
  132. package/dist/models/EmailSubscription.d.ts +64 -0
  133. package/dist/models/EmailSubscription.js +87 -0
  134. package/dist/models/EmailSummary.d.ts +158 -0
  135. package/dist/models/EmailSummary.js +146 -0
  136. package/dist/models/EmailSummaryFiles.d.ts +42 -0
  137. package/dist/models/EmailSummaryFiles.js +60 -0
  138. package/dist/models/ErrorCode.d.ts +172 -0
  139. package/dist/models/ErrorCode.js +198 -0
  140. package/dist/models/ExchangeConnectionGrantRequest.d.ts +42 -0
  141. package/dist/models/ExchangeConnectionGrantRequest.js +56 -0
  142. package/dist/models/FileActor.d.ts +38 -0
  143. package/dist/models/FileActor.js +52 -0
  144. package/dist/models/FileDownload.d.ts +40 -0
  145. package/dist/models/FileDownload.js +58 -0
  146. package/dist/models/FileKey.d.ts +38 -0
  147. package/dist/models/FileKey.js +52 -0
  148. package/dist/models/FileList.d.ts +36 -0
  149. package/dist/models/FileList.js +56 -0
  150. package/dist/models/FileUploadSkip.d.ts +52 -0
  151. package/dist/models/FileUploadSkip.js +58 -0
  152. package/dist/models/FileVersion.d.ts +128 -0
  153. package/dist/models/FileVersion.js +101 -0
  154. package/dist/models/FileVersionList.d.ts +36 -0
  155. package/dist/models/FileVersionList.js +56 -0
  156. package/dist/models/FileVersionReason.d.ts +46 -0
  157. package/dist/models/FileVersionReason.js +57 -0
  158. package/dist/models/FinalizeUploadSessionRequest.d.ts +38 -0
  159. package/dist/models/FinalizeUploadSessionRequest.js +52 -0
  160. package/dist/models/GetAccountLimits200Response.d.ts +35 -0
  161. package/dist/models/GetAccountLimits200Response.js +55 -0
  162. package/dist/models/GetAccountLimits200ResponseData.d.ts +40 -0
  163. package/dist/models/GetAccountLimits200ResponseData.js +58 -0
  164. package/dist/models/GetAccountLimits200ResponseDataUsage.d.ts +31 -0
  165. package/dist/models/GetAccountLimits200ResponseDataUsage.js +49 -0
  166. package/dist/models/GetAccountLimits200ResponseDataUsageMailboxCreations.d.ts +42 -0
  167. package/dist/models/GetAccountLimits200ResponseDataUsageMailboxCreations.js +55 -0
  168. package/dist/models/GetEmail200Response.d.ts +35 -0
  169. package/dist/models/GetEmail200Response.js +55 -0
  170. package/dist/models/GetEmail200ResponseData.d.ts +31 -0
  171. package/dist/models/GetEmail200ResponseData.js +51 -0
  172. package/dist/models/GetEmailDomainSetupLink200Response.d.ts +35 -0
  173. package/dist/models/GetEmailDomainSetupLink200Response.js +55 -0
  174. package/dist/models/GetEmailDomainSetupLink200ResponseData.d.ts +31 -0
  175. package/dist/models/GetEmailDomainSetupLink200ResponseData.js +51 -0
  176. package/dist/models/GetEmailDomainSetupLink200ResponseDataSetupLink.d.ts +34 -0
  177. package/dist/models/GetEmailDomainSetupLink200ResponseDataSetupLink.js +54 -0
  178. package/dist/models/GetEmailOriginalDownload200Response.d.ts +35 -0
  179. package/dist/models/GetEmailOriginalDownload200Response.js +55 -0
  180. package/dist/models/GetEmailOriginalDownload200ResponseData.d.ts +31 -0
  181. package/dist/models/GetEmailOriginalDownload200ResponseData.js +51 -0
  182. package/dist/models/GetEmailSubscription200Response.d.ts +35 -0
  183. package/dist/models/GetEmailSubscription200Response.js +55 -0
  184. package/dist/models/GetEmailSubscription200ResponseData.d.ts +31 -0
  185. package/dist/models/GetEmailSubscription200ResponseData.js +51 -0
  186. package/dist/models/GetEmailWebhook200Response.d.ts +35 -0
  187. package/dist/models/GetEmailWebhook200Response.js +55 -0
  188. package/dist/models/GetEmailWebhook200ResponseData.d.ts +31 -0
  189. package/dist/models/GetEmailWebhook200ResponseData.js +51 -0
  190. package/dist/models/GetFileByPath200Response.d.ts +35 -0
  191. package/dist/models/GetFileByPath200Response.js +55 -0
  192. package/dist/models/GetFileByPath200ResponseData.d.ts +31 -0
  193. package/dist/models/GetFileByPath200ResponseData.js +51 -0
  194. package/dist/models/GetFileDownload200Response.d.ts +35 -0
  195. package/dist/models/GetFileDownload200Response.js +55 -0
  196. package/dist/models/GetMailboxEmailSettings200Response.d.ts +35 -0
  197. package/dist/models/GetMailboxEmailSettings200Response.js +55 -0
  198. package/dist/models/GetStatus200Response.d.ts +35 -0
  199. package/dist/models/GetStatus200Response.js +55 -0
  200. package/dist/models/ListAccounts200Response.d.ts +35 -0
  201. package/dist/models/ListAccounts200Response.js +55 -0
  202. package/dist/models/ListEmailDomains200Response.d.ts +35 -0
  203. package/dist/models/ListEmailDomains200Response.js +55 -0
  204. package/dist/models/ListEmails200Response.d.ts +35 -0
  205. package/dist/models/ListEmails200Response.js +55 -0
  206. package/dist/models/ListFileVersions200Response.d.ts +35 -0
  207. package/dist/models/ListFileVersions200Response.js +55 -0
  208. package/dist/models/ListFiles200Response.d.ts +35 -0
  209. package/dist/models/ListFiles200Response.js +55 -0
  210. package/dist/models/ListMailboxes200Response.d.ts +35 -0
  211. package/dist/models/ListMailboxes200Response.js +55 -0
  212. package/dist/models/Mailbox.d.ts +111 -0
  213. package/dist/models/Mailbox.js +110 -0
  214. package/dist/models/MailboxAction.d.ts +42 -0
  215. package/dist/models/MailboxAction.js +56 -0
  216. package/dist/models/MailboxCounts.d.ts +38 -0
  217. package/dist/models/MailboxCounts.js +58 -0
  218. package/dist/models/MailboxCreate.d.ts +45 -0
  219. package/dist/models/MailboxCreate.js +55 -0
  220. package/dist/models/MailboxEmail.d.ts +58 -0
  221. package/dist/models/MailboxEmail.js +73 -0
  222. package/dist/models/MailboxEmailOptions.d.ts +34 -0
  223. package/dist/models/MailboxEmailOptions.js +50 -0
  224. package/dist/models/MailboxEmailSettings.d.ts +87 -0
  225. package/dist/models/MailboxEmailSettings.js +92 -0
  226. package/dist/models/MailboxEmailSettingsAssignment.d.ts +52 -0
  227. package/dist/models/MailboxEmailSettingsAssignment.js +64 -0
  228. package/dist/models/MailboxEmailSettingsAssignmentError.d.ts +38 -0
  229. package/dist/models/MailboxEmailSettingsAssignmentError.js +52 -0
  230. package/dist/models/MailboxEmailSettingsAvailableDomainsInner.d.ts +42 -0
  231. package/dist/models/MailboxEmailSettingsAvailableDomainsInner.js +58 -0
  232. package/dist/models/MailboxEmailSettingsCustomization.d.ts +38 -0
  233. package/dist/models/MailboxEmailSettingsCustomization.js +52 -0
  234. package/dist/models/MailboxFile.d.ts +128 -0
  235. package/dist/models/MailboxFile.js +99 -0
  236. package/dist/models/MailboxList.d.ts +41 -0
  237. package/dist/models/MailboxList.js +61 -0
  238. package/dist/models/MailboxLock.d.ts +58 -0
  239. package/dist/models/MailboxLock.js +65 -0
  240. package/dist/models/MailboxUpdate.d.ts +40 -0
  241. package/dist/models/MailboxUpdate.js +52 -0
  242. package/dist/models/MoveFileRequest.d.ts +46 -0
  243. package/dist/models/MoveFileRequest.js +56 -0
  244. package/dist/models/Pagination.d.ts +38 -0
  245. package/dist/models/Pagination.js +58 -0
  246. package/dist/models/PathOperationResult.d.ts +73 -0
  247. package/dist/models/PathOperationResult.js +81 -0
  248. package/dist/models/PrepareFileUpload201Response.d.ts +35 -0
  249. package/dist/models/PrepareFileUpload201Response.js +55 -0
  250. package/dist/models/PrepareFileUploadRequest.d.ts +59 -0
  251. package/dist/models/PrepareFileUploadRequest.js +73 -0
  252. package/dist/models/PreparedFileUpload.d.ts +79 -0
  253. package/dist/models/PreparedFileUpload.js +73 -0
  254. package/dist/models/RenameFile200Response.d.ts +35 -0
  255. package/dist/models/RenameFile200Response.js +55 -0
  256. package/dist/models/RenameFileRequest.d.ts +38 -0
  257. package/dist/models/RenameFileRequest.js +54 -0
  258. package/dist/models/RequestSignInCode200Response.d.ts +35 -0
  259. package/dist/models/RequestSignInCode200Response.js +55 -0
  260. package/dist/models/RequestSignInCodeRequest.d.ts +38 -0
  261. package/dist/models/RequestSignInCodeRequest.js +54 -0
  262. package/dist/models/RestoreFileVersion201Response.d.ts +35 -0
  263. package/dist/models/RestoreFileVersion201Response.js +55 -0
  264. package/dist/models/RestoredFileVersion.d.ts +40 -0
  265. package/dist/models/RestoredFileVersion.js +60 -0
  266. package/dist/models/SaveUploadSessionBatchRequest.d.ts +38 -0
  267. package/dist/models/SaveUploadSessionBatchRequest.js +52 -0
  268. package/dist/models/SaveUploadedFile201Response.d.ts +35 -0
  269. package/dist/models/SaveUploadedFile201Response.js +55 -0
  270. package/dist/models/SaveUploadedFileRequest.d.ts +78 -0
  271. package/dist/models/SaveUploadedFileRequest.js +85 -0
  272. package/dist/models/SavedFile.d.ts +49 -0
  273. package/dist/models/SavedFile.js +65 -0
  274. package/dist/models/SendEmail202Response.d.ts +35 -0
  275. package/dist/models/SendEmail202Response.js +55 -0
  276. package/dist/models/SendEmail202ResponseData.d.ts +31 -0
  277. package/dist/models/SendEmail202ResponseData.js +51 -0
  278. package/dist/models/SendEmailRequest.d.ts +62 -0
  279. package/dist/models/SendEmailRequest.js +66 -0
  280. package/dist/models/SetEmailWebhook200Response.d.ts +35 -0
  281. package/dist/models/SetEmailWebhook200Response.js +55 -0
  282. package/dist/models/SetEmailWebhook200ResponseData.d.ts +31 -0
  283. package/dist/models/SetEmailWebhook200ResponseData.js +51 -0
  284. package/dist/models/SetEmailWebhookRequest.d.ts +42 -0
  285. package/dist/models/SetEmailWebhookRequest.js +56 -0
  286. package/dist/models/Status.d.ts +73 -0
  287. package/dist/models/Status.js +75 -0
  288. package/dist/models/StatusFeatures.d.ts +30 -0
  289. package/dist/models/StatusFeatures.js +48 -0
  290. package/dist/models/StatusUser.d.ts +38 -0
  291. package/dist/models/StatusUser.js +52 -0
  292. package/dist/models/StorageUpload.d.ts +36 -0
  293. package/dist/models/StorageUpload.js +54 -0
  294. package/dist/models/UpdateEmailAllowlist200Response.d.ts +35 -0
  295. package/dist/models/UpdateEmailAllowlist200Response.js +55 -0
  296. package/dist/models/UpdateEmailAllowlist200ResponseData.d.ts +31 -0
  297. package/dist/models/UpdateEmailAllowlist200ResponseData.js +51 -0
  298. package/dist/models/UpdateEmailAllowlistRequest.d.ts +43 -0
  299. package/dist/models/UpdateEmailAllowlistRequest.js +59 -0
  300. package/dist/models/UpdateEmailAllowlistRequestSenderAllowlist.d.ts +34 -0
  301. package/dist/models/UpdateEmailAllowlistRequestSenderAllowlist.js +54 -0
  302. package/dist/models/UpdateEmailRequest.d.ts +46 -0
  303. package/dist/models/UpdateEmailRequest.js +56 -0
  304. package/dist/models/UpdateMailboxRequest.d.ts +43 -0
  305. package/dist/models/UpdateMailboxRequest.js +57 -0
  306. package/dist/models/UploadBlob.d.ts +57 -0
  307. package/dist/models/UploadBlob.js +79 -0
  308. package/dist/models/UploadSession.d.ts +94 -0
  309. package/dist/models/UploadSession.js +91 -0
  310. package/dist/models/UploadSessionFile.d.ts +46 -0
  311. package/dist/models/UploadSessionFile.js +66 -0
  312. package/dist/models/UploadSessionResult.d.ts +82 -0
  313. package/dist/models/UploadSessionResult.js +86 -0
  314. package/dist/models/UploadSessionUpload.d.ts +47 -0
  315. package/dist/models/UploadSessionUpload.js +61 -0
  316. package/dist/models/UploadedFile.d.ts +48 -0
  317. package/dist/models/UploadedFile.js +66 -0
  318. package/dist/models/VerifyEmailDomainRequest.d.ts +34 -0
  319. package/dist/models/VerifyEmailDomainRequest.js +50 -0
  320. package/dist/models/VerifySignInCode201Response.d.ts +35 -0
  321. package/dist/models/VerifySignInCode201Response.js +55 -0
  322. package/dist/models/VerifySignInCodeRequest.d.ts +89 -0
  323. package/dist/models/VerifySignInCodeRequest.js +91 -0
  324. package/dist/models/Webhook.d.ts +41 -0
  325. package/dist/models/Webhook.js +63 -0
  326. package/dist/models/WebhookWithSecret.d.ts +45 -0
  327. package/dist/models/WebhookWithSecret.js +65 -0
  328. package/dist/models/index.d.ts +158 -0
  329. package/dist/models/index.js +176 -0
  330. package/dist/runtime.d.ts +196 -0
  331. package/dist/runtime.js +421 -0
  332. package/package.json +54 -4
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Revdoku API
3
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
4
+ *
5
+ * The version of the OpenAPI document: 2.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Documented values of error.code. Treat an unknown code as a generic failure for its HTTP status.
14
+ * @export
15
+ */
16
+ export declare const ErrorCode: {
17
+ readonly AccountAccessUnavailable: "ACCOUNT_ACCESS_UNAVAILABLE";
18
+ readonly AccountAdminRequired: "ACCOUNT_ADMIN_REQUIRED";
19
+ readonly AccountConnectionLimitReached: "ACCOUNT_CONNECTION_LIMIT_REACHED";
20
+ readonly AccountFileLimitExceeded: "ACCOUNT_FILE_LIMIT_EXCEEDED";
21
+ readonly AccountReadOnly: "ACCOUNT_READ_ONLY";
22
+ readonly AccountSelectorConflict: "ACCOUNT_SELECTOR_CONFLICT";
23
+ readonly AccountSuspended: "ACCOUNT_SUSPENDED";
24
+ readonly AgencyAccountRequired: "AGENCY_ACCOUNT_REQUIRED";
25
+ readonly AgentConnectionLimitReached: "AGENT_CONNECTION_LIMIT_REACHED";
26
+ readonly ClientAccountLimitReached: "CLIENT_ACCOUNT_LIMIT_REACHED";
27
+ readonly Conflict: "CONFLICT";
28
+ readonly ContentSearchDisabled: "CONTENT_SEARCH_DISABLED";
29
+ readonly DatabaseBusyRetry: "DATABASE_BUSY_RETRY";
30
+ readonly DirectUploadAccountMismatch: "DIRECT_UPLOAD_ACCOUNT_MISMATCH";
31
+ readonly DirectUploadAlreadyAttached: "DIRECT_UPLOAD_ALREADY_ATTACHED";
32
+ readonly DirectUploadEncrypted: "DIRECT_UPLOAD_ENCRYPTED";
33
+ readonly DirectUploadNotFound: "DIRECT_UPLOAD_NOT_FOUND";
34
+ readonly DirectUploadPurposeMismatch: "DIRECT_UPLOAD_PURPOSE_MISMATCH";
35
+ readonly DirectUploadRequired: "DIRECT_UPLOAD_REQUIRED";
36
+ readonly DuplicateFileVersion: "DUPLICATE_FILE_VERSION";
37
+ readonly EmailAccountDisabled: "EMAIL_ACCOUNT_DISABLED";
38
+ readonly EmailAddressChanged: "EMAIL_ADDRESS_CHANGED";
39
+ readonly EmailAliasBase: "EMAIL_ALIAS_BASE";
40
+ readonly EmailAliasLimit: "EMAIL_ALIAS_LIMIT";
41
+ readonly EmailAllowlistChanged: "EMAIL_ALLOWLIST_CHANGED";
42
+ readonly EmailAllowlistInvalid: "EMAIL_ALLOWLIST_INVALID";
43
+ readonly EmailAllowlistUnavailable: "EMAIL_ALLOWLIST_UNAVAILABLE";
44
+ readonly EmailAlreadyExists: "EMAIL_ALREADY_EXISTS";
45
+ readonly EmailAssignmentCanceled: "EMAIL_ASSIGNMENT_CANCELED";
46
+ readonly EmailAssignmentExpired: "EMAIL_ASSIGNMENT_EXPIRED";
47
+ readonly EmailAssignmentForbidden: "EMAIL_ASSIGNMENT_FORBIDDEN";
48
+ readonly EmailAssignmentPending: "EMAIL_ASSIGNMENT_PENDING";
49
+ readonly EmailAssignmentUnavailable: "EMAIL_ASSIGNMENT_UNAVAILABLE";
50
+ readonly EmailAttachmentNotFound: "EMAIL_ATTACHMENT_NOT_FOUND";
51
+ readonly EmailChanged: "EMAIL_CHANGED";
52
+ readonly EmailDnsConflict: "EMAIL_DNS_CONFLICT";
53
+ readonly EmailDnsTemporary: "EMAIL_DNS_TEMPORARY";
54
+ readonly EmailDomainsUnavailable: "EMAIL_DOMAINS_UNAVAILABLE";
55
+ readonly EmailDomainsUnconfigured: "EMAIL_DOMAINS_UNCONFIGURED";
56
+ readonly EmailDomainsUpgradeRequired: "EMAIL_DOMAINS_UPGRADE_REQUIRED";
57
+ readonly EmailDomainConfirmationRequired: "EMAIL_DOMAIN_CONFIRMATION_REQUIRED";
58
+ readonly EmailDomainInvalid: "EMAIL_DOMAIN_INVALID";
59
+ readonly EmailDomainInUse: "EMAIL_DOMAIN_IN_USE";
60
+ readonly EmailDomainNotReady: "EMAIL_DOMAIN_NOT_READY";
61
+ readonly EmailDomainNotRegistered: "EMAIL_DOMAIN_NOT_REGISTERED";
62
+ readonly EmailDomainRateLimit: "EMAIL_DOMAIN_RATE_LIMIT";
63
+ readonly EmailDomainSetupUnavailable: "EMAIL_DOMAIN_SETUP_UNAVAILABLE";
64
+ readonly EmailDomainSetupUnsupported: "EMAIL_DOMAIN_SETUP_UNSUPPORTED";
65
+ readonly EmailDomainUnavailable: "EMAIL_DOMAIN_UNAVAILABLE";
66
+ readonly EmailIndexBuilding: "EMAIL_INDEX_BUILDING";
67
+ readonly EmailLabelingPending: "EMAIL_LABELING_PENDING";
68
+ readonly EmailLoopDetected: "EMAIL_LOOP_DETECTED";
69
+ readonly EmailMailboxUnavailable: "EMAIL_MAILBOX_UNAVAILABLE";
70
+ readonly EmailNamesUnavailable: "EMAIL_NAMES_UNAVAILABLE";
71
+ readonly EmailNamesUpgradeRequired: "EMAIL_NAMES_UPGRADE_REQUIRED";
72
+ readonly EmailNameForbidden: "EMAIL_NAME_FORBIDDEN";
73
+ readonly EmailNameInvalid: "EMAIL_NAME_INVALID";
74
+ readonly EmailNotReady: "EMAIL_NOT_READY";
75
+ readonly EmailOwnershipPending: "EMAIL_OWNERSHIP_PENDING";
76
+ readonly EmailPathReadOnly: "EMAIL_PATH_READ_ONLY";
77
+ readonly EmailProviderDnsPending: "EMAIL_PROVIDER_DNS_PENDING";
78
+ readonly EmailProviderPending: "EMAIL_PROVIDER_PENDING";
79
+ readonly EmailProviderTemporary: "EMAIL_PROVIDER_TEMPORARY";
80
+ readonly EmailReadStatusUnavailable: "EMAIL_READ_STATUS_UNAVAILABLE";
81
+ readonly EmailReceivingPaused: "EMAIL_RECEIVING_PAUSED";
82
+ readonly EmailRecipientCapacity: "EMAIL_RECIPIENT_CAPACITY";
83
+ readonly EmailRecipientNotAllowed: "EMAIL_RECIPIENT_NOT_ALLOWED";
84
+ readonly EmailRecipientUnavailable: "EMAIL_RECIPIENT_UNAVAILABLE";
85
+ readonly EmailReplyUpgradeRequired: "EMAIL_REPLY_UPGRADE_REQUIRED";
86
+ readonly EmailRotationLimit: "EMAIL_ROTATION_LIMIT";
87
+ readonly EmailRotationUnavailable: "EMAIL_ROTATION_UNAVAILABLE";
88
+ readonly EmailSendingRulesChanged: "EMAIL_SENDING_RULES_CHANGED";
89
+ readonly EmailSendingUnavailable: "EMAIL_SENDING_UNAVAILABLE";
90
+ readonly EmailSendLimitReached: "EMAIL_SEND_LIMIT_REACHED";
91
+ readonly EmailSendRateLimited: "EMAIL_SEND_RATE_LIMITED";
92
+ readonly EmailTooLarge: "EMAIL_TOO_LARGE";
93
+ readonly EmailUnavailable: "EMAIL_UNAVAILABLE";
94
+ readonly EmailWithheld: "EMAIL_WITHHELD";
95
+ readonly EmptyFile: "EMPTY_FILE";
96
+ readonly FileLocked: "FILE_LOCKED";
97
+ readonly FileTooLarge: "FILE_TOO_LARGE";
98
+ readonly FileVersionAlreadyCurrent: "FILE_VERSION_ALREADY_CURRENT";
99
+ readonly FileVersionEncryptionMismatch: "FILE_VERSION_ENCRYPTION_MISMATCH";
100
+ readonly FileVersionNotRestorable: "FILE_VERSION_NOT_RESTORABLE";
101
+ readonly Forbidden: "FORBIDDEN";
102
+ readonly InternalError: "INTERNAL_ERROR";
103
+ readonly InvalidArgument: "INVALID_ARGUMENT";
104
+ readonly InvalidChecksum: "INVALID_CHECKSUM";
105
+ readonly InvalidCode: "INVALID_CODE";
106
+ readonly InvalidDirectUpload: "INVALID_DIRECT_UPLOAD";
107
+ readonly InvalidGrant: "INVALID_GRANT";
108
+ readonly InvalidSha256: "INVALID_SHA256";
109
+ readonly InvalidTextEncoding: "INVALID_TEXT_ENCODING";
110
+ readonly Locked: "LOCKED";
111
+ readonly MailboxesNotFound: "MAILBOXES_NOT_FOUND";
112
+ readonly MailboxAccessDenied: "MAILBOX_ACCESS_DENIED";
113
+ readonly MailboxAccountChanged: "MAILBOX_ACCOUNT_CHANGED";
114
+ readonly MailboxAlreadyArchived: "MAILBOX_ALREADY_ARCHIVED";
115
+ readonly MailboxArchived: "MAILBOX_ARCHIVED";
116
+ readonly MailboxCreationLimitReached: "MAILBOX_CREATION_LIMIT_REACHED";
117
+ readonly MailboxDeleteAdminRequired: "MAILBOX_DELETE_ADMIN_REQUIRED";
118
+ readonly MailboxDeleteBusy: "MAILBOX_DELETE_BUSY";
119
+ readonly MailboxDeleteConfirmationRequired: "MAILBOX_DELETE_CONFIRMATION_REQUIRED";
120
+ readonly MailboxDeleteEnqueueFailed: "MAILBOX_DELETE_ENQUEUE_FAILED";
121
+ readonly MailboxDeleteInProgress: "MAILBOX_DELETE_IN_PROGRESS";
122
+ readonly MailboxFileDeleteEnqueueFailed: "MAILBOX_FILE_DELETE_ENQUEUE_FAILED";
123
+ readonly MailboxFileLimitExceeded: "MAILBOX_FILE_LIMIT_EXCEEDED";
124
+ readonly MailboxFileNotFound: "MAILBOX_FILE_NOT_FOUND";
125
+ readonly MailboxFilePathExists: "MAILBOX_FILE_PATH_EXISTS";
126
+ readonly MailboxFileVersionNotFound: "MAILBOX_FILE_VERSION_NOT_FOUND";
127
+ readonly MailboxLimitReached: "MAILBOX_LIMIT_REACHED";
128
+ readonly MailboxLocked: "MAILBOX_LOCKED";
129
+ readonly MailboxMetadataConflict: "MAILBOX_METADATA_CONFLICT";
130
+ readonly MailboxTitleTaken: "MAILBOX_TITLE_TAKEN";
131
+ readonly MailboxMoving: "MAILBOX_MOVING";
132
+ readonly MailboxNotArchived: "MAILBOX_NOT_ARCHIVED";
133
+ readonly MailboxNotFound: "MAILBOX_NOT_FOUND";
134
+ readonly MailboxPermissionDenied: "MAILBOX_PERMISSION_DENIED";
135
+ readonly MailboxPublicationActive: "MAILBOX_PUBLICATION_ACTIVE";
136
+ readonly MailboxPublicationSuspended: "MAILBOX_PUBLICATION_SUSPENDED";
137
+ readonly MailboxTooLarge: "MAILBOX_TOO_LARGE";
138
+ readonly MailboxUnavailable: "MAILBOX_UNAVAILABLE";
139
+ readonly MailboxUploadExistingFileSkipped: "MAILBOX_UPLOAD_EXISTING_FILE_SKIPPED";
140
+ readonly MailboxUploadFileAlreadyFinalized: "MAILBOX_UPLOAD_FILE_ALREADY_FINALIZED";
141
+ readonly MailboxUploadFileFailed: "MAILBOX_UPLOAD_FILE_FAILED";
142
+ readonly MailboxUploadFileSkipped: "MAILBOX_UPLOAD_FILE_SKIPPED";
143
+ readonly MailboxUploadSessionCanceled: "MAILBOX_UPLOAD_SESSION_CANCELED";
144
+ readonly MailboxUploadSessionExpired: "MAILBOX_UPLOAD_SESSION_EXPIRED";
145
+ readonly MailboxUploadSessionIncomplete: "MAILBOX_UPLOAD_SESSION_INCOMPLETE";
146
+ readonly MailboxUploadSessionLockLost: "MAILBOX_UPLOAD_SESSION_LOCK_LOST";
147
+ readonly MailboxUploadSessionNotPending: "MAILBOX_UPLOAD_SESSION_NOT_PENDING";
148
+ readonly MailboxUploadSha256Mismatch: "MAILBOX_UPLOAD_SHA256_MISMATCH";
149
+ readonly MailboxUploadSizeMismatch: "MAILBOX_UPLOAD_SIZE_MISMATCH";
150
+ readonly MailboxVersionConflict: "MAILBOX_VERSION_CONFLICT";
151
+ readonly MimeTypeMismatch: "MIME_TYPE_MISMATCH";
152
+ readonly NotFound: "NOT_FOUND";
153
+ readonly OtpRateLimited: "OTP_RATE_LIMITED";
154
+ readonly PayloadTooLarge: "PAYLOAD_TOO_LARGE";
155
+ readonly ProhibitedFileExtension: "PROHIBITED_FILE_EXTENSION";
156
+ readonly ProjectStorageQuotaExceeded: "PROJECT_STORAGE_QUOTA_EXCEEDED";
157
+ readonly RateLimitExceeded: "RATE_LIMIT_EXCEEDED";
158
+ readonly ReservedPath: "RESERVED_PATH";
159
+ readonly ServiceUnavailable: "SERVICE_UNAVAILABLE";
160
+ readonly StorageQuotaExceeded: "STORAGE_QUOTA_EXCEEDED";
161
+ readonly Unauthorized: "UNAUTHORIZED";
162
+ readonly UnsupportedMime: "UNSUPPORTED_MIME";
163
+ readonly UnsupportedTextAppendType: "UNSUPPORTED_TEXT_APPEND_TYPE";
164
+ readonly UploadRateLimitExceeded: "UPLOAD_RATE_LIMIT_EXCEEDED";
165
+ readonly VersionRollbackUnavailable: "VERSION_ROLLBACK_UNAVAILABLE";
166
+ };
167
+ export type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
168
+ export declare function instanceOfErrorCode(value: any): boolean;
169
+ export declare function ErrorCodeFromJSON(json: any): ErrorCode;
170
+ export declare function ErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorCode;
171
+ export declare function ErrorCodeToJSON(value?: ErrorCode | null): any;
172
+ export declare function ErrorCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): ErrorCode;
@@ -0,0 +1,198 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Revdoku API
6
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
7
+ *
8
+ * The version of the OpenAPI document: 2.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ErrorCode = void 0;
17
+ exports.instanceOfErrorCode = instanceOfErrorCode;
18
+ exports.ErrorCodeFromJSON = ErrorCodeFromJSON;
19
+ exports.ErrorCodeFromJSONTyped = ErrorCodeFromJSONTyped;
20
+ exports.ErrorCodeToJSON = ErrorCodeToJSON;
21
+ exports.ErrorCodeToJSONTyped = ErrorCodeToJSONTyped;
22
+ /**
23
+ * Documented values of error.code. Treat an unknown code as a generic failure for its HTTP status.
24
+ * @export
25
+ */
26
+ exports.ErrorCode = {
27
+ AccountAccessUnavailable: 'ACCOUNT_ACCESS_UNAVAILABLE',
28
+ AccountAdminRequired: 'ACCOUNT_ADMIN_REQUIRED',
29
+ AccountConnectionLimitReached: 'ACCOUNT_CONNECTION_LIMIT_REACHED',
30
+ AccountFileLimitExceeded: 'ACCOUNT_FILE_LIMIT_EXCEEDED',
31
+ AccountReadOnly: 'ACCOUNT_READ_ONLY',
32
+ AccountSelectorConflict: 'ACCOUNT_SELECTOR_CONFLICT',
33
+ AccountSuspended: 'ACCOUNT_SUSPENDED',
34
+ AgencyAccountRequired: 'AGENCY_ACCOUNT_REQUIRED',
35
+ AgentConnectionLimitReached: 'AGENT_CONNECTION_LIMIT_REACHED',
36
+ ClientAccountLimitReached: 'CLIENT_ACCOUNT_LIMIT_REACHED',
37
+ Conflict: 'CONFLICT',
38
+ ContentSearchDisabled: 'CONTENT_SEARCH_DISABLED',
39
+ DatabaseBusyRetry: 'DATABASE_BUSY_RETRY',
40
+ DirectUploadAccountMismatch: 'DIRECT_UPLOAD_ACCOUNT_MISMATCH',
41
+ DirectUploadAlreadyAttached: 'DIRECT_UPLOAD_ALREADY_ATTACHED',
42
+ DirectUploadEncrypted: 'DIRECT_UPLOAD_ENCRYPTED',
43
+ DirectUploadNotFound: 'DIRECT_UPLOAD_NOT_FOUND',
44
+ DirectUploadPurposeMismatch: 'DIRECT_UPLOAD_PURPOSE_MISMATCH',
45
+ DirectUploadRequired: 'DIRECT_UPLOAD_REQUIRED',
46
+ DuplicateFileVersion: 'DUPLICATE_FILE_VERSION',
47
+ EmailAccountDisabled: 'EMAIL_ACCOUNT_DISABLED',
48
+ EmailAddressChanged: 'EMAIL_ADDRESS_CHANGED',
49
+ EmailAliasBase: 'EMAIL_ALIAS_BASE',
50
+ EmailAliasLimit: 'EMAIL_ALIAS_LIMIT',
51
+ EmailAllowlistChanged: 'EMAIL_ALLOWLIST_CHANGED',
52
+ EmailAllowlistInvalid: 'EMAIL_ALLOWLIST_INVALID',
53
+ EmailAllowlistUnavailable: 'EMAIL_ALLOWLIST_UNAVAILABLE',
54
+ EmailAlreadyExists: 'EMAIL_ALREADY_EXISTS',
55
+ EmailAssignmentCanceled: 'EMAIL_ASSIGNMENT_CANCELED',
56
+ EmailAssignmentExpired: 'EMAIL_ASSIGNMENT_EXPIRED',
57
+ EmailAssignmentForbidden: 'EMAIL_ASSIGNMENT_FORBIDDEN',
58
+ EmailAssignmentPending: 'EMAIL_ASSIGNMENT_PENDING',
59
+ EmailAssignmentUnavailable: 'EMAIL_ASSIGNMENT_UNAVAILABLE',
60
+ EmailAttachmentNotFound: 'EMAIL_ATTACHMENT_NOT_FOUND',
61
+ EmailChanged: 'EMAIL_CHANGED',
62
+ EmailDnsConflict: 'EMAIL_DNS_CONFLICT',
63
+ EmailDnsTemporary: 'EMAIL_DNS_TEMPORARY',
64
+ EmailDomainsUnavailable: 'EMAIL_DOMAINS_UNAVAILABLE',
65
+ EmailDomainsUnconfigured: 'EMAIL_DOMAINS_UNCONFIGURED',
66
+ EmailDomainsUpgradeRequired: 'EMAIL_DOMAINS_UPGRADE_REQUIRED',
67
+ EmailDomainConfirmationRequired: 'EMAIL_DOMAIN_CONFIRMATION_REQUIRED',
68
+ EmailDomainInvalid: 'EMAIL_DOMAIN_INVALID',
69
+ EmailDomainInUse: 'EMAIL_DOMAIN_IN_USE',
70
+ EmailDomainNotReady: 'EMAIL_DOMAIN_NOT_READY',
71
+ EmailDomainNotRegistered: 'EMAIL_DOMAIN_NOT_REGISTERED',
72
+ EmailDomainRateLimit: 'EMAIL_DOMAIN_RATE_LIMIT',
73
+ EmailDomainSetupUnavailable: 'EMAIL_DOMAIN_SETUP_UNAVAILABLE',
74
+ EmailDomainSetupUnsupported: 'EMAIL_DOMAIN_SETUP_UNSUPPORTED',
75
+ EmailDomainUnavailable: 'EMAIL_DOMAIN_UNAVAILABLE',
76
+ EmailIndexBuilding: 'EMAIL_INDEX_BUILDING',
77
+ EmailLabelingPending: 'EMAIL_LABELING_PENDING',
78
+ EmailLoopDetected: 'EMAIL_LOOP_DETECTED',
79
+ EmailMailboxUnavailable: 'EMAIL_MAILBOX_UNAVAILABLE',
80
+ EmailNamesUnavailable: 'EMAIL_NAMES_UNAVAILABLE',
81
+ EmailNamesUpgradeRequired: 'EMAIL_NAMES_UPGRADE_REQUIRED',
82
+ EmailNameForbidden: 'EMAIL_NAME_FORBIDDEN',
83
+ EmailNameInvalid: 'EMAIL_NAME_INVALID',
84
+ EmailNotReady: 'EMAIL_NOT_READY',
85
+ EmailOwnershipPending: 'EMAIL_OWNERSHIP_PENDING',
86
+ EmailPathReadOnly: 'EMAIL_PATH_READ_ONLY',
87
+ EmailProviderDnsPending: 'EMAIL_PROVIDER_DNS_PENDING',
88
+ EmailProviderPending: 'EMAIL_PROVIDER_PENDING',
89
+ EmailProviderTemporary: 'EMAIL_PROVIDER_TEMPORARY',
90
+ EmailReadStatusUnavailable: 'EMAIL_READ_STATUS_UNAVAILABLE',
91
+ EmailReceivingPaused: 'EMAIL_RECEIVING_PAUSED',
92
+ EmailRecipientCapacity: 'EMAIL_RECIPIENT_CAPACITY',
93
+ EmailRecipientNotAllowed: 'EMAIL_RECIPIENT_NOT_ALLOWED',
94
+ EmailRecipientUnavailable: 'EMAIL_RECIPIENT_UNAVAILABLE',
95
+ EmailReplyUpgradeRequired: 'EMAIL_REPLY_UPGRADE_REQUIRED',
96
+ EmailRotationLimit: 'EMAIL_ROTATION_LIMIT',
97
+ EmailRotationUnavailable: 'EMAIL_ROTATION_UNAVAILABLE',
98
+ EmailSendingRulesChanged: 'EMAIL_SENDING_RULES_CHANGED',
99
+ EmailSendingUnavailable: 'EMAIL_SENDING_UNAVAILABLE',
100
+ EmailSendLimitReached: 'EMAIL_SEND_LIMIT_REACHED',
101
+ EmailSendRateLimited: 'EMAIL_SEND_RATE_LIMITED',
102
+ EmailTooLarge: 'EMAIL_TOO_LARGE',
103
+ EmailUnavailable: 'EMAIL_UNAVAILABLE',
104
+ EmailWithheld: 'EMAIL_WITHHELD',
105
+ EmptyFile: 'EMPTY_FILE',
106
+ FileLocked: 'FILE_LOCKED',
107
+ FileTooLarge: 'FILE_TOO_LARGE',
108
+ FileVersionAlreadyCurrent: 'FILE_VERSION_ALREADY_CURRENT',
109
+ FileVersionEncryptionMismatch: 'FILE_VERSION_ENCRYPTION_MISMATCH',
110
+ FileVersionNotRestorable: 'FILE_VERSION_NOT_RESTORABLE',
111
+ Forbidden: 'FORBIDDEN',
112
+ InternalError: 'INTERNAL_ERROR',
113
+ InvalidArgument: 'INVALID_ARGUMENT',
114
+ InvalidChecksum: 'INVALID_CHECKSUM',
115
+ InvalidCode: 'INVALID_CODE',
116
+ InvalidDirectUpload: 'INVALID_DIRECT_UPLOAD',
117
+ InvalidGrant: 'INVALID_GRANT',
118
+ InvalidSha256: 'INVALID_SHA256',
119
+ InvalidTextEncoding: 'INVALID_TEXT_ENCODING',
120
+ Locked: 'LOCKED',
121
+ MailboxesNotFound: 'MAILBOXES_NOT_FOUND',
122
+ MailboxAccessDenied: 'MAILBOX_ACCESS_DENIED',
123
+ MailboxAccountChanged: 'MAILBOX_ACCOUNT_CHANGED',
124
+ MailboxAlreadyArchived: 'MAILBOX_ALREADY_ARCHIVED',
125
+ MailboxArchived: 'MAILBOX_ARCHIVED',
126
+ MailboxCreationLimitReached: 'MAILBOX_CREATION_LIMIT_REACHED',
127
+ MailboxDeleteAdminRequired: 'MAILBOX_DELETE_ADMIN_REQUIRED',
128
+ MailboxDeleteBusy: 'MAILBOX_DELETE_BUSY',
129
+ MailboxDeleteConfirmationRequired: 'MAILBOX_DELETE_CONFIRMATION_REQUIRED',
130
+ MailboxDeleteEnqueueFailed: 'MAILBOX_DELETE_ENQUEUE_FAILED',
131
+ MailboxDeleteInProgress: 'MAILBOX_DELETE_IN_PROGRESS',
132
+ MailboxFileDeleteEnqueueFailed: 'MAILBOX_FILE_DELETE_ENQUEUE_FAILED',
133
+ MailboxFileLimitExceeded: 'MAILBOX_FILE_LIMIT_EXCEEDED',
134
+ MailboxFileNotFound: 'MAILBOX_FILE_NOT_FOUND',
135
+ MailboxFilePathExists: 'MAILBOX_FILE_PATH_EXISTS',
136
+ MailboxFileVersionNotFound: 'MAILBOX_FILE_VERSION_NOT_FOUND',
137
+ MailboxLimitReached: 'MAILBOX_LIMIT_REACHED',
138
+ MailboxLocked: 'MAILBOX_LOCKED',
139
+ MailboxMetadataConflict: 'MAILBOX_METADATA_CONFLICT',
140
+ MailboxTitleTaken: 'MAILBOX_TITLE_TAKEN',
141
+ MailboxMoving: 'MAILBOX_MOVING',
142
+ MailboxNotArchived: 'MAILBOX_NOT_ARCHIVED',
143
+ MailboxNotFound: 'MAILBOX_NOT_FOUND',
144
+ MailboxPermissionDenied: 'MAILBOX_PERMISSION_DENIED',
145
+ MailboxPublicationActive: 'MAILBOX_PUBLICATION_ACTIVE',
146
+ MailboxPublicationSuspended: 'MAILBOX_PUBLICATION_SUSPENDED',
147
+ MailboxTooLarge: 'MAILBOX_TOO_LARGE',
148
+ MailboxUnavailable: 'MAILBOX_UNAVAILABLE',
149
+ MailboxUploadExistingFileSkipped: 'MAILBOX_UPLOAD_EXISTING_FILE_SKIPPED',
150
+ MailboxUploadFileAlreadyFinalized: 'MAILBOX_UPLOAD_FILE_ALREADY_FINALIZED',
151
+ MailboxUploadFileFailed: 'MAILBOX_UPLOAD_FILE_FAILED',
152
+ MailboxUploadFileSkipped: 'MAILBOX_UPLOAD_FILE_SKIPPED',
153
+ MailboxUploadSessionCanceled: 'MAILBOX_UPLOAD_SESSION_CANCELED',
154
+ MailboxUploadSessionExpired: 'MAILBOX_UPLOAD_SESSION_EXPIRED',
155
+ MailboxUploadSessionIncomplete: 'MAILBOX_UPLOAD_SESSION_INCOMPLETE',
156
+ MailboxUploadSessionLockLost: 'MAILBOX_UPLOAD_SESSION_LOCK_LOST',
157
+ MailboxUploadSessionNotPending: 'MAILBOX_UPLOAD_SESSION_NOT_PENDING',
158
+ MailboxUploadSha256Mismatch: 'MAILBOX_UPLOAD_SHA256_MISMATCH',
159
+ MailboxUploadSizeMismatch: 'MAILBOX_UPLOAD_SIZE_MISMATCH',
160
+ MailboxVersionConflict: 'MAILBOX_VERSION_CONFLICT',
161
+ MimeTypeMismatch: 'MIME_TYPE_MISMATCH',
162
+ NotFound: 'NOT_FOUND',
163
+ OtpRateLimited: 'OTP_RATE_LIMITED',
164
+ PayloadTooLarge: 'PAYLOAD_TOO_LARGE',
165
+ ProhibitedFileExtension: 'PROHIBITED_FILE_EXTENSION',
166
+ ProjectStorageQuotaExceeded: 'PROJECT_STORAGE_QUOTA_EXCEEDED',
167
+ RateLimitExceeded: 'RATE_LIMIT_EXCEEDED',
168
+ ReservedPath: 'RESERVED_PATH',
169
+ ServiceUnavailable: 'SERVICE_UNAVAILABLE',
170
+ StorageQuotaExceeded: 'STORAGE_QUOTA_EXCEEDED',
171
+ Unauthorized: 'UNAUTHORIZED',
172
+ UnsupportedMime: 'UNSUPPORTED_MIME',
173
+ UnsupportedTextAppendType: 'UNSUPPORTED_TEXT_APPEND_TYPE',
174
+ UploadRateLimitExceeded: 'UPLOAD_RATE_LIMIT_EXCEEDED',
175
+ VersionRollbackUnavailable: 'VERSION_ROLLBACK_UNAVAILABLE',
176
+ };
177
+ function instanceOfErrorCode(value) {
178
+ for (const key in exports.ErrorCode) {
179
+ if (Object.prototype.hasOwnProperty.call(exports.ErrorCode, key)) {
180
+ if (exports.ErrorCode[key] === value) {
181
+ return true;
182
+ }
183
+ }
184
+ }
185
+ return false;
186
+ }
187
+ function ErrorCodeFromJSON(json) {
188
+ return ErrorCodeFromJSONTyped(json, false);
189
+ }
190
+ function ErrorCodeFromJSONTyped(json, ignoreDiscriminator) {
191
+ return json;
192
+ }
193
+ function ErrorCodeToJSON(value) {
194
+ return value;
195
+ }
196
+ function ErrorCodeToJSONTyped(value, ignoreDiscriminator) {
197
+ return value;
198
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Revdoku API
3
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
4
+ *
5
+ * The version of the OpenAPI document: 2.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ExchangeConnectionGrantRequest
16
+ */
17
+ export interface ExchangeConnectionGrantRequest {
18
+ /**
19
+ *
20
+ */
21
+ grantToken: string;
22
+ /**
23
+ *
24
+ */
25
+ label?: string;
26
+ /**
27
+ * Select another granted account for this request.
28
+ */
29
+ accountId?: string;
30
+ /**
31
+ * Optional purpose for this action. AI agents should explain intentional reads and changes when known; omit when unknown. Do not include secrets, file contents, or transcripts.
32
+ */
33
+ reason?: string | null;
34
+ }
35
+ /**
36
+ * Check if a given object implements the ExchangeConnectionGrantRequest interface.
37
+ */
38
+ export declare function instanceOfExchangeConnectionGrantRequest(value: object): value is ExchangeConnectionGrantRequest;
39
+ export declare function ExchangeConnectionGrantRequestFromJSON(json: any): ExchangeConnectionGrantRequest;
40
+ export declare function ExchangeConnectionGrantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeConnectionGrantRequest;
41
+ export declare function ExchangeConnectionGrantRequestToJSON(json: any): ExchangeConnectionGrantRequest;
42
+ export declare function ExchangeConnectionGrantRequestToJSONTyped(value?: ExchangeConnectionGrantRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Revdoku API
6
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
7
+ *
8
+ * The version of the OpenAPI document: 2.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfExchangeConnectionGrantRequest = instanceOfExchangeConnectionGrantRequest;
17
+ exports.ExchangeConnectionGrantRequestFromJSON = ExchangeConnectionGrantRequestFromJSON;
18
+ exports.ExchangeConnectionGrantRequestFromJSONTyped = ExchangeConnectionGrantRequestFromJSONTyped;
19
+ exports.ExchangeConnectionGrantRequestToJSON = ExchangeConnectionGrantRequestToJSON;
20
+ exports.ExchangeConnectionGrantRequestToJSONTyped = ExchangeConnectionGrantRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ExchangeConnectionGrantRequest interface.
23
+ */
24
+ function instanceOfExchangeConnectionGrantRequest(value) {
25
+ if ((!('grantToken' in value) && !('grant_token' in value)) || (value['grantToken'] === undefined && value['grant_token'] === undefined))
26
+ return false;
27
+ return true;
28
+ }
29
+ function ExchangeConnectionGrantRequestFromJSON(json) {
30
+ return ExchangeConnectionGrantRequestFromJSONTyped(json, false);
31
+ }
32
+ function ExchangeConnectionGrantRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'grantToken': json['grant_token'],
38
+ 'label': json['label'] == null ? undefined : json['label'],
39
+ 'accountId': json['account_id'] == null ? undefined : json['account_id'],
40
+ 'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
41
+ };
42
+ }
43
+ function ExchangeConnectionGrantRequestToJSON(json) {
44
+ return ExchangeConnectionGrantRequestToJSONTyped(json, false);
45
+ }
46
+ function ExchangeConnectionGrantRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'grant_token': value['grantToken'],
52
+ 'label': value['label'],
53
+ 'account_id': value['accountId'],
54
+ 'reason': value['reason'],
55
+ };
56
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Revdoku API
3
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
4
+ *
5
+ * The version of the OpenAPI document: 2.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FileActor
16
+ */
17
+ export interface FileActor {
18
+ /**
19
+ *
20
+ */
21
+ id?: string;
22
+ /**
23
+ *
24
+ */
25
+ name?: string;
26
+ /**
27
+ *
28
+ */
29
+ email?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FileActor interface.
33
+ */
34
+ export declare function instanceOfFileActor(value: object): value is FileActor;
35
+ export declare function FileActorFromJSON(json: any): FileActor;
36
+ export declare function FileActorFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileActor;
37
+ export declare function FileActorToJSON(json: any): FileActor;
38
+ export declare function FileActorToJSONTyped(value?: FileActor | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Revdoku API
6
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
7
+ *
8
+ * The version of the OpenAPI document: 2.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfFileActor = instanceOfFileActor;
17
+ exports.FileActorFromJSON = FileActorFromJSON;
18
+ exports.FileActorFromJSONTyped = FileActorFromJSONTyped;
19
+ exports.FileActorToJSON = FileActorToJSON;
20
+ exports.FileActorToJSONTyped = FileActorToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the FileActor interface.
23
+ */
24
+ function instanceOfFileActor(value) {
25
+ return true;
26
+ }
27
+ function FileActorFromJSON(json) {
28
+ return FileActorFromJSONTyped(json, false);
29
+ }
30
+ function FileActorFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
36
+ 'name': json['name'] == null ? undefined : json['name'],
37
+ 'email': json['email'] == null ? undefined : json['email'],
38
+ };
39
+ }
40
+ function FileActorToJSON(json) {
41
+ return FileActorToJSONTyped(json, false);
42
+ }
43
+ function FileActorToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'name': value['name'],
50
+ 'email': value['email'],
51
+ };
52
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Revdoku API
3
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
4
+ *
5
+ * The version of the OpenAPI document: 2.2.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FileVersion } from './FileVersion';
13
+ import type { Download } from './Download';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface FileDownload
18
+ */
19
+ export interface FileDownload {
20
+ /**
21
+ *
22
+ */
23
+ download: Download;
24
+ /**
25
+ *
26
+ */
27
+ version: FileVersion;
28
+ /**
29
+ * Read state before this request, when tracking succeeded.
30
+ */
31
+ previouslyRead?: boolean;
32
+ }
33
+ /**
34
+ * Check if a given object implements the FileDownload interface.
35
+ */
36
+ export declare function instanceOfFileDownload(value: object): value is FileDownload;
37
+ export declare function FileDownloadFromJSON(json: any): FileDownload;
38
+ export declare function FileDownloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): FileDownload;
39
+ export declare function FileDownloadToJSON(json: any): FileDownload;
40
+ export declare function FileDownloadToJSONTyped(value?: FileDownload | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Revdoku API
6
+ * Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
7
+ *
8
+ * The version of the OpenAPI document: 2.2.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfFileDownload = instanceOfFileDownload;
17
+ exports.FileDownloadFromJSON = FileDownloadFromJSON;
18
+ exports.FileDownloadFromJSONTyped = FileDownloadFromJSONTyped;
19
+ exports.FileDownloadToJSON = FileDownloadToJSON;
20
+ exports.FileDownloadToJSONTyped = FileDownloadToJSONTyped;
21
+ const FileVersion_1 = require("./FileVersion");
22
+ const Download_1 = require("./Download");
23
+ /**
24
+ * Check if a given object implements the FileDownload interface.
25
+ */
26
+ function instanceOfFileDownload(value) {
27
+ if (!('download' in value) || value['download'] === undefined)
28
+ return false;
29
+ if (!('version' in value) || value['version'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function FileDownloadFromJSON(json) {
34
+ return FileDownloadFromJSONTyped(json, false);
35
+ }
36
+ function FileDownloadFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'download': (0, Download_1.DownloadFromJSON)(json['download']),
42
+ 'version': (0, FileVersion_1.FileVersionFromJSON)(json['version']),
43
+ 'previouslyRead': json['previously_read'] == null ? undefined : json['previously_read'],
44
+ };
45
+ }
46
+ function FileDownloadToJSON(json) {
47
+ return FileDownloadToJSONTyped(json, false);
48
+ }
49
+ function FileDownloadToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'download': (0, Download_1.DownloadToJSON)(value['download']),
55
+ 'version': (0, FileVersion_1.FileVersionToJSON)(value['version']),
56
+ 'previously_read': value['previouslyRead'],
57
+ };
58
+ }