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,142 @@
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.DecodedIncomingMessageBodyStatusEnum = exports.DecodedIncomingMessageThreadIdSourceEnum = exports.DecodedIncomingMessageSchemaVersionEnum = void 0;
17
+ exports.instanceOfDecodedIncomingMessage = instanceOfDecodedIncomingMessage;
18
+ exports.DecodedIncomingMessageFromJSON = DecodedIncomingMessageFromJSON;
19
+ exports.DecodedIncomingMessageFromJSONTyped = DecodedIncomingMessageFromJSONTyped;
20
+ exports.DecodedIncomingMessageToJSON = DecodedIncomingMessageToJSON;
21
+ exports.DecodedIncomingMessageToJSONTyped = DecodedIncomingMessageToJSONTyped;
22
+ const runtime_1 = require("../runtime");
23
+ const EmailForwardingContent_1 = require("./EmailForwardingContent");
24
+ const DecodedEmailAddress_1 = require("./DecodedEmailAddress");
25
+ const DecodedIncomingMessageAttachmentsInner_1 = require("./DecodedIncomingMessageAttachmentsInner");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.DecodedIncomingMessageSchemaVersionEnum = {
30
+ NUMBER_1: 1,
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.DecodedIncomingMessageThreadIdSourceEnum = {
36
+ References: 'references',
37
+ InReplyTo: 'in_reply_to',
38
+ MessageId: 'message_id',
39
+ };
40
+ /**
41
+ * @export
42
+ */
43
+ exports.DecodedIncomingMessageBodyStatusEnum = {
44
+ Complete: 'complete',
45
+ Empty: 'empty',
46
+ Truncated: 'truncated',
47
+ Unavailable: 'unavailable',
48
+ };
49
+ /**
50
+ * Check if a given object implements the DecodedIncomingMessage interface.
51
+ */
52
+ function instanceOfDecodedIncomingMessage(value) {
53
+ if ((!('schemaVersion' in value) && !('schema_version' in value)) || (value['schemaVersion'] === undefined && value['schema_version'] === undefined))
54
+ return false;
55
+ if (value['schemaVersion'] !== 1 && value['schema_version'] !== 1)
56
+ return false;
57
+ if (!('subject' in value) || value['subject'] === undefined)
58
+ return false;
59
+ if (!('from' in value) || value['from'] === undefined)
60
+ return false;
61
+ if (!('to' in value) || value['to'] === undefined)
62
+ return false;
63
+ if ((!('deliveredTo' in value) && !('delivered_to' in value)) || (value['deliveredTo'] === undefined && value['delivered_to'] === undefined))
64
+ return false;
65
+ if ((!('receivedAt' in value) && !('received_at' in value)) || (value['receivedAt'] === undefined && value['received_at'] === undefined))
66
+ return false;
67
+ if ((!('bodyText' in value) && !('body_text' in value)) || (value['bodyText'] === undefined && value['body_text'] === undefined))
68
+ return false;
69
+ if ((!('bodyStatus' in value) && !('body_status' in value)) || (value['bodyStatus'] === undefined && value['body_status'] === undefined))
70
+ return false;
71
+ if (!('attachments' in value) || value['attachments'] === undefined)
72
+ return false;
73
+ return true;
74
+ }
75
+ function DecodedIncomingMessageFromJSON(json) {
76
+ return DecodedIncomingMessageFromJSONTyped(json, false);
77
+ }
78
+ function DecodedIncomingMessageFromJSONTyped(json, ignoreDiscriminator) {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+ 'schemaVersion': json['schema_version'],
84
+ 'subject': json['subject'],
85
+ 'from': json['from'],
86
+ 'to': json['to'],
87
+ 'fromAddresses': json['from_addresses'] == null ? undefined : (json['from_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
88
+ 'toAddresses': json['to_addresses'] == null ? undefined : (json['to_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
89
+ 'ccAddresses': json['cc_addresses'] == null ? undefined : (json['cc_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
90
+ 'replyToAddresses': json['reply_to_addresses'] == null ? undefined : (json['reply_to_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
91
+ 'messageId': json['message_id'] === undefined ? undefined : json['message_id'] === null ? null : json['message_id'],
92
+ 'inReplyTo': json['in_reply_to'] == null ? undefined : json['in_reply_to'],
93
+ 'references': json['references'] == null ? undefined : json['references'],
94
+ 'deliveryId': json['delivery_id'] == null ? undefined : json['delivery_id'],
95
+ 'threadId': json['thread_id'] === undefined ? undefined : json['thread_id'] === null ? null : json['thread_id'],
96
+ 'threadIdSource': json['thread_id_source'] === undefined ? undefined : json['thread_id_source'] === null ? null : json['thread_id_source'],
97
+ 'threadAnchorMessageId': json['thread_anchor_message_id'] === undefined ? undefined : json['thread_anchor_message_id'] === null ? null : json['thread_anchor_message_id'],
98
+ 'deliveredTo': json['delivered_to'],
99
+ 'receivedAt': (json['received_at'] == null ? json['received_at'] : (0, runtime_1.parseDateTime)(json['received_at'])),
100
+ 'bodyText': json['body_text'],
101
+ 'bodyStatus': json['body_status'],
102
+ 'omittedAttachmentCount': json['omitted_attachment_count'] == null ? undefined : json['omitted_attachment_count'],
103
+ 'attachments': (json['attachments'].map(DecodedIncomingMessageAttachmentsInner_1.DecodedIncomingMessageAttachmentsInnerFromJSON)),
104
+ 'forwarding': json['forwarding'] == null ? undefined : (0, EmailForwardingContent_1.EmailForwardingContentFromJSON)(json['forwarding']),
105
+ 'cc': json['cc'] === undefined ? undefined : json['cc'] === null ? null : json['cc'],
106
+ 'replyTo': json['reply_to'] === undefined ? undefined : json['reply_to'] === null ? null : json['reply_to'],
107
+ };
108
+ }
109
+ function DecodedIncomingMessageToJSON(json) {
110
+ return DecodedIncomingMessageToJSONTyped(json, false);
111
+ }
112
+ function DecodedIncomingMessageToJSONTyped(value, ignoreDiscriminator = false) {
113
+ if (value == null) {
114
+ return value;
115
+ }
116
+ return {
117
+ 'schema_version': value['schemaVersion'],
118
+ 'subject': value['subject'],
119
+ 'from': value['from'],
120
+ 'to': value['to'],
121
+ 'from_addresses': value['fromAddresses'] == null ? undefined : (value['fromAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
122
+ 'to_addresses': value['toAddresses'] == null ? undefined : (value['toAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
123
+ 'cc_addresses': value['ccAddresses'] == null ? undefined : (value['ccAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
124
+ 'reply_to_addresses': value['replyToAddresses'] == null ? undefined : (value['replyToAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
125
+ 'message_id': value['messageId'],
126
+ 'in_reply_to': value['inReplyTo'],
127
+ 'references': value['references'],
128
+ 'delivery_id': value['deliveryId'],
129
+ 'thread_id': value['threadId'],
130
+ 'thread_id_source': value['threadIdSource'],
131
+ 'thread_anchor_message_id': value['threadAnchorMessageId'],
132
+ 'delivered_to': value['deliveredTo'],
133
+ 'received_at': value['receivedAt'] == null ? value['receivedAt'] : (0, runtime_1.serializeDateTime)(value['receivedAt']),
134
+ 'body_text': value['bodyText'],
135
+ 'body_status': value['bodyStatus'],
136
+ 'omitted_attachment_count': value['omittedAttachmentCount'],
137
+ 'attachments': (value['attachments'].map(DecodedIncomingMessageAttachmentsInner_1.DecodedIncomingMessageAttachmentsInnerToJSON)),
138
+ 'forwarding': (0, EmailForwardingContent_1.EmailForwardingContentToJSON)(value['forwarding']),
139
+ 'cc': value['cc'],
140
+ 'reply_to': value['replyTo'],
141
+ };
142
+ }
@@ -0,0 +1,56 @@
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 DecodedIncomingMessageAttachmentsInner
16
+ */
17
+ export interface DecodedIncomingMessageAttachmentsInner {
18
+ /**
19
+ * Relative to message folder.
20
+ */
21
+ path: string;
22
+ /**
23
+ *
24
+ */
25
+ originalFilename: string;
26
+ /**
27
+ *
28
+ */
29
+ contentType: string;
30
+ /**
31
+ *
32
+ */
33
+ sizeBytes: number;
34
+ /**
35
+ * For normalized forwards: inner attachment, member addition, attached source EML, or unknown inline-forward origin.
36
+ */
37
+ origin?: DecodedIncomingMessageAttachmentsInnerOriginEnum;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const DecodedIncomingMessageAttachmentsInnerOriginEnum: {
43
+ readonly Original: "original";
44
+ readonly Forwarder: "forwarder";
45
+ readonly ForwardedMessage: "forwarded_message";
46
+ readonly Unspecified: "unspecified";
47
+ };
48
+ export type DecodedIncomingMessageAttachmentsInnerOriginEnum = typeof DecodedIncomingMessageAttachmentsInnerOriginEnum[keyof typeof DecodedIncomingMessageAttachmentsInnerOriginEnum];
49
+ /**
50
+ * Check if a given object implements the DecodedIncomingMessageAttachmentsInner interface.
51
+ */
52
+ export declare function instanceOfDecodedIncomingMessageAttachmentsInner(value: object): value is DecodedIncomingMessageAttachmentsInner;
53
+ export declare function DecodedIncomingMessageAttachmentsInnerFromJSON(json: any): DecodedIncomingMessageAttachmentsInner;
54
+ export declare function DecodedIncomingMessageAttachmentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DecodedIncomingMessageAttachmentsInner;
55
+ export declare function DecodedIncomingMessageAttachmentsInnerToJSON(json: any): DecodedIncomingMessageAttachmentsInner;
56
+ export declare function DecodedIncomingMessageAttachmentsInnerToJSONTyped(value?: DecodedIncomingMessageAttachmentsInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.DecodedIncomingMessageAttachmentsInnerOriginEnum = void 0;
17
+ exports.instanceOfDecodedIncomingMessageAttachmentsInner = instanceOfDecodedIncomingMessageAttachmentsInner;
18
+ exports.DecodedIncomingMessageAttachmentsInnerFromJSON = DecodedIncomingMessageAttachmentsInnerFromJSON;
19
+ exports.DecodedIncomingMessageAttachmentsInnerFromJSONTyped = DecodedIncomingMessageAttachmentsInnerFromJSONTyped;
20
+ exports.DecodedIncomingMessageAttachmentsInnerToJSON = DecodedIncomingMessageAttachmentsInnerToJSON;
21
+ exports.DecodedIncomingMessageAttachmentsInnerToJSONTyped = DecodedIncomingMessageAttachmentsInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.DecodedIncomingMessageAttachmentsInnerOriginEnum = {
26
+ Original: 'original',
27
+ Forwarder: 'forwarder',
28
+ ForwardedMessage: 'forwarded_message',
29
+ Unspecified: 'unspecified',
30
+ };
31
+ /**
32
+ * Check if a given object implements the DecodedIncomingMessageAttachmentsInner interface.
33
+ */
34
+ function instanceOfDecodedIncomingMessageAttachmentsInner(value) {
35
+ if (!('path' in value) || value['path'] === undefined)
36
+ return false;
37
+ if ((!('originalFilename' in value) && !('original_filename' in value)) || (value['originalFilename'] === undefined && value['original_filename'] === undefined))
38
+ return false;
39
+ if ((!('contentType' in value) && !('content_type' in value)) || (value['contentType'] === undefined && value['content_type'] === undefined))
40
+ return false;
41
+ if ((!('sizeBytes' in value) && !('size_bytes' in value)) || (value['sizeBytes'] === undefined && value['size_bytes'] === undefined))
42
+ return false;
43
+ return true;
44
+ }
45
+ function DecodedIncomingMessageAttachmentsInnerFromJSON(json) {
46
+ return DecodedIncomingMessageAttachmentsInnerFromJSONTyped(json, false);
47
+ }
48
+ function DecodedIncomingMessageAttachmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'path': json['path'],
54
+ 'originalFilename': json['original_filename'],
55
+ 'contentType': json['content_type'],
56
+ 'sizeBytes': json['size_bytes'],
57
+ 'origin': json['origin'] == null ? undefined : json['origin'],
58
+ };
59
+ }
60
+ function DecodedIncomingMessageAttachmentsInnerToJSON(json) {
61
+ return DecodedIncomingMessageAttachmentsInnerToJSONTyped(json, false);
62
+ }
63
+ function DecodedIncomingMessageAttachmentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+ return {
68
+ 'path': value['path'],
69
+ 'original_filename': value['originalFilename'],
70
+ 'content_type': value['contentType'],
71
+ 'size_bytes': value['sizeBytes'],
72
+ 'origin': value['origin'],
73
+ };
74
+ }
@@ -0,0 +1,35 @@
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 { DeleteResult } from './DeleteResult';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeleteEmailDomain200Response
17
+ */
18
+ export interface DeleteEmailDomain200Response {
19
+ /**
20
+ *
21
+ */
22
+ success: boolean;
23
+ /**
24
+ *
25
+ */
26
+ data: DeleteResult;
27
+ }
28
+ /**
29
+ * Check if a given object implements the DeleteEmailDomain200Response interface.
30
+ */
31
+ export declare function instanceOfDeleteEmailDomain200Response(value: object): value is DeleteEmailDomain200Response;
32
+ export declare function DeleteEmailDomain200ResponseFromJSON(json: any): DeleteEmailDomain200Response;
33
+ export declare function DeleteEmailDomain200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteEmailDomain200Response;
34
+ export declare function DeleteEmailDomain200ResponseToJSON(json: any): DeleteEmailDomain200Response;
35
+ export declare function DeleteEmailDomain200ResponseToJSONTyped(value?: DeleteEmailDomain200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfDeleteEmailDomain200Response = instanceOfDeleteEmailDomain200Response;
17
+ exports.DeleteEmailDomain200ResponseFromJSON = DeleteEmailDomain200ResponseFromJSON;
18
+ exports.DeleteEmailDomain200ResponseFromJSONTyped = DeleteEmailDomain200ResponseFromJSONTyped;
19
+ exports.DeleteEmailDomain200ResponseToJSON = DeleteEmailDomain200ResponseToJSON;
20
+ exports.DeleteEmailDomain200ResponseToJSONTyped = DeleteEmailDomain200ResponseToJSONTyped;
21
+ const DeleteResult_1 = require("./DeleteResult");
22
+ /**
23
+ * Check if a given object implements the DeleteEmailDomain200Response interface.
24
+ */
25
+ function instanceOfDeleteEmailDomain200Response(value) {
26
+ if (!('success' in value) || value['success'] === undefined)
27
+ return false;
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function DeleteEmailDomain200ResponseFromJSON(json) {
33
+ return DeleteEmailDomain200ResponseFromJSONTyped(json, false);
34
+ }
35
+ function DeleteEmailDomain200ResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'success': json['success'],
41
+ 'data': (0, DeleteResult_1.DeleteResultFromJSON)(json['data']),
42
+ };
43
+ }
44
+ function DeleteEmailDomain200ResponseToJSON(json) {
45
+ return DeleteEmailDomain200ResponseToJSONTyped(json, false);
46
+ }
47
+ function DeleteEmailDomain200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'success': value['success'],
53
+ 'data': (0, DeleteResult_1.DeleteResultToJSON)(value['data']),
54
+ };
55
+ }
@@ -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 DeleteEmailDomainRequest
16
+ */
17
+ export interface DeleteEmailDomainRequest {
18
+ /**
19
+ *
20
+ */
21
+ hostname: string;
22
+ /**
23
+ *
24
+ */
25
+ confirm: boolean;
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 DeleteEmailDomainRequest interface.
37
+ */
38
+ export declare function instanceOfDeleteEmailDomainRequest(value: object): value is DeleteEmailDomainRequest;
39
+ export declare function DeleteEmailDomainRequestFromJSON(json: any): DeleteEmailDomainRequest;
40
+ export declare function DeleteEmailDomainRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteEmailDomainRequest;
41
+ export declare function DeleteEmailDomainRequestToJSON(json: any): DeleteEmailDomainRequest;
42
+ export declare function DeleteEmailDomainRequestToJSONTyped(value?: DeleteEmailDomainRequest | 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.instanceOfDeleteEmailDomainRequest = instanceOfDeleteEmailDomainRequest;
17
+ exports.DeleteEmailDomainRequestFromJSON = DeleteEmailDomainRequestFromJSON;
18
+ exports.DeleteEmailDomainRequestFromJSONTyped = DeleteEmailDomainRequestFromJSONTyped;
19
+ exports.DeleteEmailDomainRequestToJSON = DeleteEmailDomainRequestToJSON;
20
+ exports.DeleteEmailDomainRequestToJSONTyped = DeleteEmailDomainRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeleteEmailDomainRequest interface.
23
+ */
24
+ function instanceOfDeleteEmailDomainRequest(value) {
25
+ if (!('hostname' in value) || value['hostname'] === undefined)
26
+ return false;
27
+ if (!('confirm' in value) || value['confirm'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function DeleteEmailDomainRequestFromJSON(json) {
32
+ return DeleteEmailDomainRequestFromJSONTyped(json, false);
33
+ }
34
+ function DeleteEmailDomainRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'hostname': json['hostname'],
40
+ 'confirm': json['confirm'],
41
+ 'accountId': json['account_id'] == null ? undefined : json['account_id'],
42
+ 'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
43
+ };
44
+ }
45
+ function DeleteEmailDomainRequestToJSON(json) {
46
+ return DeleteEmailDomainRequestToJSONTyped(json, false);
47
+ }
48
+ function DeleteEmailDomainRequestToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'hostname': value['hostname'],
54
+ 'confirm': value['confirm'],
55
+ 'account_id': value['accountId'],
56
+ 'reason': value['reason'],
57
+ };
58
+ }
@@ -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 DeleteMailboxRequest
16
+ */
17
+ export interface DeleteMailboxRequest {
18
+ /**
19
+ *
20
+ */
21
+ confirmation: string;
22
+ /**
23
+ * Select another granted account for this request.
24
+ */
25
+ accountId?: string;
26
+ /**
27
+ * 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.
28
+ */
29
+ reason?: string | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DeleteMailboxRequest interface.
33
+ */
34
+ export declare function instanceOfDeleteMailboxRequest(value: object): value is DeleteMailboxRequest;
35
+ export declare function DeleteMailboxRequestFromJSON(json: any): DeleteMailboxRequest;
36
+ export declare function DeleteMailboxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteMailboxRequest;
37
+ export declare function DeleteMailboxRequestToJSON(json: any): DeleteMailboxRequest;
38
+ export declare function DeleteMailboxRequestToJSONTyped(value?: DeleteMailboxRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfDeleteMailboxRequest = instanceOfDeleteMailboxRequest;
17
+ exports.DeleteMailboxRequestFromJSON = DeleteMailboxRequestFromJSON;
18
+ exports.DeleteMailboxRequestFromJSONTyped = DeleteMailboxRequestFromJSONTyped;
19
+ exports.DeleteMailboxRequestToJSON = DeleteMailboxRequestToJSON;
20
+ exports.DeleteMailboxRequestToJSONTyped = DeleteMailboxRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeleteMailboxRequest interface.
23
+ */
24
+ function instanceOfDeleteMailboxRequest(value) {
25
+ if (!('confirmation' in value) || value['confirmation'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DeleteMailboxRequestFromJSON(json) {
30
+ return DeleteMailboxRequestFromJSONTyped(json, false);
31
+ }
32
+ function DeleteMailboxRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'confirmation': json['confirmation'],
38
+ 'accountId': json['account_id'] == null ? undefined : json['account_id'],
39
+ 'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
40
+ };
41
+ }
42
+ function DeleteMailboxRequestToJSON(json) {
43
+ return DeleteMailboxRequestToJSONTyped(json, false);
44
+ }
45
+ function DeleteMailboxRequestToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'confirmation': value['confirmation'],
51
+ 'account_id': value['accountId'],
52
+ 'reason': value['reason'],
53
+ };
54
+ }
@@ -0,0 +1,34 @@
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 DeleteResult
16
+ */
17
+ export interface DeleteResult {
18
+ /**
19
+ *
20
+ */
21
+ deleted: boolean;
22
+ /**
23
+ * ID of the deleted resource. A webhook delete returns the mailbox ID.
24
+ */
25
+ id: string;
26
+ }
27
+ /**
28
+ * Check if a given object implements the DeleteResult interface.
29
+ */
30
+ export declare function instanceOfDeleteResult(value: object): value is DeleteResult;
31
+ export declare function DeleteResultFromJSON(json: any): DeleteResult;
32
+ export declare function DeleteResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteResult;
33
+ export declare function DeleteResultToJSON(json: any): DeleteResult;
34
+ export declare function DeleteResultToJSONTyped(value?: DeleteResult | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfDeleteResult = instanceOfDeleteResult;
17
+ exports.DeleteResultFromJSON = DeleteResultFromJSON;
18
+ exports.DeleteResultFromJSONTyped = DeleteResultFromJSONTyped;
19
+ exports.DeleteResultToJSON = DeleteResultToJSON;
20
+ exports.DeleteResultToJSONTyped = DeleteResultToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeleteResult interface.
23
+ */
24
+ function instanceOfDeleteResult(value) {
25
+ if (!('deleted' in value) || value['deleted'] === undefined)
26
+ return false;
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function DeleteResultFromJSON(json) {
32
+ return DeleteResultFromJSONTyped(json, false);
33
+ }
34
+ function DeleteResultFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'deleted': json['deleted'],
40
+ 'id': json['id'],
41
+ };
42
+ }
43
+ function DeleteResultToJSON(json) {
44
+ return DeleteResultToJSONTyped(json, false);
45
+ }
46
+ function DeleteResultToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'deleted': value['deleted'],
52
+ 'id': value['id'],
53
+ };
54
+ }