revdoku 2.1.0 → 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 (324) hide show
  1. package/REFERENCE.md +20 -10
  2. package/dist/apis/DefaultApi.d.ts +42 -17
  3. package/dist/apis/DefaultApi.js +69 -17
  4. package/dist/models/AccountIdentity.d.ts +1 -1
  5. package/dist/models/AccountIdentity.js +1 -1
  6. package/dist/models/AccountIdentityAgencyAccount.d.ts +1 -1
  7. package/dist/models/AccountIdentityAgencyAccount.js +1 -1
  8. package/dist/models/AccountIdentityPermissions.d.ts +1 -1
  9. package/dist/models/AccountIdentityPermissions.js +1 -1
  10. package/dist/models/AccountLimits.d.ts +1 -1
  11. package/dist/models/AccountLimits.js +1 -1
  12. package/dist/models/AccountList.d.ts +1 -1
  13. package/dist/models/AccountList.js +1 -1
  14. package/dist/models/ActionRequest.d.ts +1 -1
  15. package/dist/models/ActionRequest.js +1 -1
  16. package/dist/models/AddUploadSessionFilesRequest.d.ts +1 -1
  17. package/dist/models/AddUploadSessionFilesRequest.js +1 -1
  18. package/dist/models/AgentConnection.d.ts +1 -1
  19. package/dist/models/AgentConnection.js +1 -1
  20. package/dist/models/ApiError.d.ts +1 -1
  21. package/dist/models/ApiError.js +1 -1
  22. package/dist/models/ApiErrorError.d.ts +1 -1
  23. package/dist/models/ApiErrorError.js +1 -1
  24. package/dist/models/AppendText200Response.d.ts +1 -1
  25. package/dist/models/AppendText200Response.js +1 -1
  26. package/dist/models/AppendTextRequest.d.ts +1 -1
  27. package/dist/models/AppendTextRequest.js +1 -1
  28. package/dist/models/AppendTextResult.d.ts +1 -1
  29. package/dist/models/AppendTextResult.js +1 -1
  30. package/dist/models/BrowserLink.d.ts +1 -1
  31. package/dist/models/BrowserLink.js +1 -1
  32. package/dist/models/ChangeMailboxAddressRequest.d.ts +2 -2
  33. package/dist/models/ChangeMailboxAddressRequest.js +1 -1
  34. package/dist/models/CheckEmailDomain200Response.d.ts +1 -1
  35. package/dist/models/CheckEmailDomain200Response.js +1 -1
  36. package/dist/models/CodeRequested.d.ts +1 -1
  37. package/dist/models/CodeRequested.js +1 -1
  38. package/dist/models/Connection.d.ts +1 -1
  39. package/dist/models/Connection.js +1 -1
  40. package/dist/models/ConnectionPermissions.d.ts +1 -1
  41. package/dist/models/ConnectionPermissions.js +1 -1
  42. package/dist/models/ConnectionRenewal.d.ts +1 -1
  43. package/dist/models/ConnectionRenewal.js +1 -1
  44. package/dist/models/CreateBrowserLink201Response.d.ts +1 -1
  45. package/dist/models/CreateBrowserLink201Response.js +1 -1
  46. package/dist/models/CreateBrowserLinkRequest.d.ts +1 -1
  47. package/dist/models/CreateBrowserLinkRequest.js +1 -1
  48. package/dist/models/CreateClientAccount201Response.d.ts +1 -1
  49. package/dist/models/CreateClientAccount201Response.js +1 -1
  50. package/dist/models/CreateClientAccount201ResponseData.d.ts +1 -1
  51. package/dist/models/CreateClientAccount201ResponseData.js +1 -1
  52. package/dist/models/CreateClientAccountRequest.d.ts +1 -1
  53. package/dist/models/CreateClientAccountRequest.js +1 -1
  54. package/dist/models/CreateEmailAliasRequest.d.ts +1 -1
  55. package/dist/models/CreateEmailAliasRequest.js +1 -1
  56. package/dist/models/CreateEmailDomain201Response.d.ts +1 -1
  57. package/dist/models/CreateEmailDomain201Response.js +1 -1
  58. package/dist/models/CreateEmailDomain201ResponseData.d.ts +1 -1
  59. package/dist/models/CreateEmailDomain201ResponseData.js +1 -1
  60. package/dist/models/CreateEmailDomainRequest.d.ts +1 -1
  61. package/dist/models/CreateEmailDomainRequest.js +1 -1
  62. package/dist/models/CreateMailbox201Response.d.ts +1 -1
  63. package/dist/models/CreateMailbox201Response.js +1 -1
  64. package/dist/models/CreateMailbox201ResponseData.d.ts +1 -1
  65. package/dist/models/CreateMailbox201ResponseData.js +1 -1
  66. package/dist/models/CreateMailboxRequest.d.ts +1 -1
  67. package/dist/models/CreateMailboxRequest.js +1 -1
  68. package/dist/models/CreateUploadSession201Response.d.ts +1 -1
  69. package/dist/models/CreateUploadSession201Response.js +1 -1
  70. package/dist/models/CreateUploadSessionRequest.d.ts +1 -1
  71. package/dist/models/CreateUploadSessionRequest.js +1 -1
  72. package/dist/models/DecodedEmailAddress.d.ts +1 -1
  73. package/dist/models/DecodedEmailAddress.js +1 -1
  74. package/dist/models/DecodedIncomingMessage.d.ts +1 -1
  75. package/dist/models/DecodedIncomingMessage.js +1 -1
  76. package/dist/models/DecodedIncomingMessageAttachmentsInner.d.ts +1 -1
  77. package/dist/models/DecodedIncomingMessageAttachmentsInner.js +1 -1
  78. package/dist/models/DeleteEmailDomain200Response.d.ts +1 -1
  79. package/dist/models/DeleteEmailDomain200Response.js +1 -1
  80. package/dist/models/DeleteEmailDomainRequest.d.ts +1 -1
  81. package/dist/models/DeleteEmailDomainRequest.js +1 -1
  82. package/dist/models/DeleteMailboxRequest.d.ts +1 -1
  83. package/dist/models/DeleteMailboxRequest.js +1 -1
  84. package/dist/models/DeleteResult.d.ts +1 -1
  85. package/dist/models/DeleteResult.js +1 -1
  86. package/dist/models/DnsRecord.d.ts +1 -1
  87. package/dist/models/DnsRecord.js +1 -1
  88. package/dist/models/Download.d.ts +1 -1
  89. package/dist/models/Download.js +1 -1
  90. package/dist/models/EmailAlias.d.ts +1 -1
  91. package/dist/models/EmailAlias.js +1 -1
  92. package/dist/models/EmailAttachment.d.ts +1 -1
  93. package/dist/models/EmailAttachment.js +1 -1
  94. package/dist/models/EmailDelivery.d.ts +5 -3
  95. package/dist/models/EmailDelivery.js +3 -1
  96. package/dist/models/EmailDetail.d.ts +1 -1
  97. package/dist/models/EmailDetail.js +1 -1
  98. package/dist/models/EmailDomain.d.ts +5 -1
  99. package/dist/models/EmailDomain.js +3 -1
  100. package/dist/models/EmailDomainAssignedMailboxesInner.d.ts +1 -1
  101. package/dist/models/EmailDomainAssignedMailboxesInner.js +1 -1
  102. package/dist/models/EmailDomainAssignedMailboxesInnerEmail.d.ts +1 -1
  103. package/dist/models/EmailDomainAssignedMailboxesInnerEmail.js +1 -1
  104. package/dist/models/EmailDomainCheck.d.ts +1 -1
  105. package/dist/models/EmailDomainCheck.js +1 -1
  106. package/dist/models/EmailDomainError.d.ts +1 -1
  107. package/dist/models/EmailDomainError.js +1 -1
  108. package/dist/models/EmailDomainList.d.ts +1 -1
  109. package/dist/models/EmailDomainList.js +1 -1
  110. package/dist/models/EmailForwarding.d.ts +1 -1
  111. package/dist/models/EmailForwarding.js +1 -1
  112. package/dist/models/EmailForwardingContent.d.ts +1 -1
  113. package/dist/models/EmailForwardingContent.js +1 -1
  114. package/dist/models/EmailLabel.d.ts +1 -1
  115. package/dist/models/EmailLabel.js +1 -1
  116. package/dist/models/EmailList.d.ts +1 -1
  117. package/dist/models/EmailList.js +1 -1
  118. package/dist/models/EmailReceivedEvent.d.ts +1 -1
  119. package/dist/models/EmailReceivedEvent.js +1 -1
  120. package/dist/models/EmailReceivedEventData.d.ts +1 -1
  121. package/dist/models/EmailReceivedEventData.js +1 -1
  122. package/dist/models/EmailSenderAllowlist.d.ts +1 -1
  123. package/dist/models/EmailSenderAllowlist.js +1 -1
  124. package/dist/models/EmailSubscription.d.ts +1 -1
  125. package/dist/models/EmailSubscription.js +1 -1
  126. package/dist/models/EmailSummary.d.ts +1 -1
  127. package/dist/models/EmailSummary.js +1 -1
  128. package/dist/models/EmailSummaryFiles.d.ts +1 -1
  129. package/dist/models/EmailSummaryFiles.js +1 -1
  130. package/dist/models/ErrorCode.d.ts +7 -1
  131. package/dist/models/ErrorCode.js +7 -1
  132. package/dist/models/ExchangeConnectionGrantRequest.d.ts +1 -1
  133. package/dist/models/ExchangeConnectionGrantRequest.js +1 -1
  134. package/dist/models/FileActor.d.ts +1 -1
  135. package/dist/models/FileActor.js +1 -1
  136. package/dist/models/FileDownload.d.ts +1 -1
  137. package/dist/models/FileDownload.js +1 -1
  138. package/dist/models/FileKey.d.ts +1 -1
  139. package/dist/models/FileKey.js +1 -1
  140. package/dist/models/FileList.d.ts +1 -1
  141. package/dist/models/FileList.js +1 -1
  142. package/dist/models/FileUploadSkip.d.ts +1 -1
  143. package/dist/models/FileUploadSkip.js +1 -1
  144. package/dist/models/FileVersion.d.ts +1 -1
  145. package/dist/models/FileVersion.js +1 -1
  146. package/dist/models/FileVersionList.d.ts +1 -1
  147. package/dist/models/FileVersionList.js +1 -1
  148. package/dist/models/FileVersionReason.d.ts +1 -1
  149. package/dist/models/FileVersionReason.js +1 -1
  150. package/dist/models/FinalizeUploadSessionRequest.d.ts +1 -1
  151. package/dist/models/FinalizeUploadSessionRequest.js +1 -1
  152. package/dist/models/GetAccountLimits200Response.d.ts +1 -1
  153. package/dist/models/GetAccountLimits200Response.js +1 -1
  154. package/dist/models/GetAccountLimits200ResponseData.d.ts +1 -1
  155. package/dist/models/GetAccountLimits200ResponseData.js +1 -1
  156. package/dist/models/GetAccountLimits200ResponseDataUsage.d.ts +1 -1
  157. package/dist/models/GetAccountLimits200ResponseDataUsage.js +1 -1
  158. package/dist/models/GetAccountLimits200ResponseDataUsageMailboxCreations.d.ts +1 -1
  159. package/dist/models/GetAccountLimits200ResponseDataUsageMailboxCreations.js +1 -1
  160. package/dist/models/GetEmail200Response.d.ts +1 -1
  161. package/dist/models/GetEmail200Response.js +1 -1
  162. package/dist/models/GetEmail200ResponseData.d.ts +1 -1
  163. package/dist/models/GetEmail200ResponseData.js +1 -1
  164. package/dist/models/GetEmailDomainSetupLink200Response.d.ts +35 -0
  165. package/dist/models/GetEmailDomainSetupLink200Response.js +55 -0
  166. package/dist/models/GetEmailDomainSetupLink200ResponseData.d.ts +31 -0
  167. package/dist/models/GetEmailDomainSetupLink200ResponseData.js +51 -0
  168. package/dist/models/GetEmailDomainSetupLink200ResponseDataSetupLink.d.ts +34 -0
  169. package/dist/models/GetEmailDomainSetupLink200ResponseDataSetupLink.js +54 -0
  170. package/dist/models/GetEmailOriginalDownload200Response.d.ts +1 -1
  171. package/dist/models/GetEmailOriginalDownload200Response.js +1 -1
  172. package/dist/models/GetEmailOriginalDownload200ResponseData.d.ts +1 -1
  173. package/dist/models/GetEmailOriginalDownload200ResponseData.js +1 -1
  174. package/dist/models/GetEmailSubscription200Response.d.ts +1 -1
  175. package/dist/models/GetEmailSubscription200Response.js +1 -1
  176. package/dist/models/GetEmailSubscription200ResponseData.d.ts +1 -1
  177. package/dist/models/GetEmailSubscription200ResponseData.js +1 -1
  178. package/dist/models/GetEmailWebhook200Response.d.ts +1 -1
  179. package/dist/models/GetEmailWebhook200Response.js +1 -1
  180. package/dist/models/GetEmailWebhook200ResponseData.d.ts +1 -1
  181. package/dist/models/GetEmailWebhook200ResponseData.js +1 -1
  182. package/dist/models/GetFileByPath200Response.d.ts +1 -1
  183. package/dist/models/GetFileByPath200Response.js +1 -1
  184. package/dist/models/GetFileByPath200ResponseData.d.ts +1 -1
  185. package/dist/models/GetFileByPath200ResponseData.js +1 -1
  186. package/dist/models/GetFileDownload200Response.d.ts +1 -1
  187. package/dist/models/GetFileDownload200Response.js +1 -1
  188. package/dist/models/GetMailboxEmailSettings200Response.d.ts +1 -1
  189. package/dist/models/GetMailboxEmailSettings200Response.js +1 -1
  190. package/dist/models/GetStatus200Response.d.ts +1 -1
  191. package/dist/models/GetStatus200Response.js +1 -1
  192. package/dist/models/ListAccounts200Response.d.ts +1 -1
  193. package/dist/models/ListAccounts200Response.js +1 -1
  194. package/dist/models/ListEmailDomains200Response.d.ts +1 -1
  195. package/dist/models/ListEmailDomains200Response.js +1 -1
  196. package/dist/models/ListEmails200Response.d.ts +1 -1
  197. package/dist/models/ListEmails200Response.js +1 -1
  198. package/dist/models/ListFileVersions200Response.d.ts +1 -1
  199. package/dist/models/ListFileVersions200Response.js +1 -1
  200. package/dist/models/ListFiles200Response.d.ts +1 -1
  201. package/dist/models/ListFiles200Response.js +1 -1
  202. package/dist/models/ListMailboxes200Response.d.ts +1 -1
  203. package/dist/models/ListMailboxes200Response.js +1 -1
  204. package/dist/models/Mailbox.d.ts +1 -1
  205. package/dist/models/Mailbox.js +1 -1
  206. package/dist/models/MailboxAction.d.ts +1 -1
  207. package/dist/models/MailboxAction.js +1 -1
  208. package/dist/models/MailboxCounts.d.ts +1 -1
  209. package/dist/models/MailboxCounts.js +1 -1
  210. package/dist/models/MailboxCreate.d.ts +1 -1
  211. package/dist/models/MailboxCreate.js +1 -1
  212. package/dist/models/MailboxEmail.d.ts +1 -1
  213. package/dist/models/MailboxEmail.js +1 -1
  214. package/dist/models/MailboxEmailOptions.d.ts +2 -2
  215. package/dist/models/MailboxEmailOptions.js +1 -1
  216. package/dist/models/MailboxEmailSettings.d.ts +1 -1
  217. package/dist/models/MailboxEmailSettings.js +1 -1
  218. package/dist/models/MailboxEmailSettingsAssignment.d.ts +1 -1
  219. package/dist/models/MailboxEmailSettingsAssignment.js +1 -1
  220. package/dist/models/MailboxEmailSettingsAssignmentError.d.ts +1 -1
  221. package/dist/models/MailboxEmailSettingsAssignmentError.js +1 -1
  222. package/dist/models/MailboxEmailSettingsAvailableDomainsInner.d.ts +1 -1
  223. package/dist/models/MailboxEmailSettingsAvailableDomainsInner.js +1 -1
  224. package/dist/models/MailboxEmailSettingsCustomization.d.ts +1 -1
  225. package/dist/models/MailboxEmailSettingsCustomization.js +1 -1
  226. package/dist/models/MailboxFile.d.ts +1 -1
  227. package/dist/models/MailboxFile.js +1 -1
  228. package/dist/models/MailboxList.d.ts +1 -1
  229. package/dist/models/MailboxList.js +1 -1
  230. package/dist/models/MailboxLock.d.ts +1 -1
  231. package/dist/models/MailboxLock.js +1 -1
  232. package/dist/models/MailboxUpdate.d.ts +1 -1
  233. package/dist/models/MailboxUpdate.js +1 -1
  234. package/dist/models/MoveFileRequest.d.ts +1 -1
  235. package/dist/models/MoveFileRequest.js +1 -1
  236. package/dist/models/Pagination.d.ts +1 -1
  237. package/dist/models/Pagination.js +1 -1
  238. package/dist/models/PathOperationResult.d.ts +1 -1
  239. package/dist/models/PathOperationResult.js +1 -1
  240. package/dist/models/PrepareFileUpload201Response.d.ts +1 -1
  241. package/dist/models/PrepareFileUpload201Response.js +1 -1
  242. package/dist/models/PrepareFileUploadRequest.d.ts +2 -2
  243. package/dist/models/PrepareFileUploadRequest.js +1 -1
  244. package/dist/models/PreparedFileUpload.d.ts +1 -1
  245. package/dist/models/PreparedFileUpload.js +1 -1
  246. package/dist/models/RenameFile200Response.d.ts +1 -1
  247. package/dist/models/RenameFile200Response.js +1 -1
  248. package/dist/models/RenameFileRequest.d.ts +1 -1
  249. package/dist/models/RenameFileRequest.js +1 -1
  250. package/dist/models/RequestSignInCode200Response.d.ts +1 -1
  251. package/dist/models/RequestSignInCode200Response.js +1 -1
  252. package/dist/models/RequestSignInCodeRequest.d.ts +1 -1
  253. package/dist/models/RequestSignInCodeRequest.js +1 -1
  254. package/dist/models/RestoreFileVersion201Response.d.ts +1 -1
  255. package/dist/models/RestoreFileVersion201Response.js +1 -1
  256. package/dist/models/RestoredFileVersion.d.ts +1 -1
  257. package/dist/models/RestoredFileVersion.js +1 -1
  258. package/dist/models/SaveUploadSessionBatchRequest.d.ts +1 -1
  259. package/dist/models/SaveUploadSessionBatchRequest.js +1 -1
  260. package/dist/models/SaveUploadedFile201Response.d.ts +1 -1
  261. package/dist/models/SaveUploadedFile201Response.js +1 -1
  262. package/dist/models/SaveUploadedFileRequest.d.ts +2 -2
  263. package/dist/models/SaveUploadedFileRequest.js +1 -1
  264. package/dist/models/SavedFile.d.ts +1 -1
  265. package/dist/models/SavedFile.js +1 -1
  266. package/dist/models/SendEmail202Response.d.ts +1 -1
  267. package/dist/models/SendEmail202Response.js +1 -1
  268. package/dist/models/SendEmail202ResponseData.d.ts +1 -1
  269. package/dist/models/SendEmail202ResponseData.js +1 -1
  270. package/dist/models/SendEmailRequest.d.ts +1 -1
  271. package/dist/models/SendEmailRequest.js +1 -1
  272. package/dist/models/SetEmailWebhook200Response.d.ts +1 -1
  273. package/dist/models/SetEmailWebhook200Response.js +1 -1
  274. package/dist/models/SetEmailWebhook200ResponseData.d.ts +1 -1
  275. package/dist/models/SetEmailWebhook200ResponseData.js +1 -1
  276. package/dist/models/SetEmailWebhookRequest.d.ts +1 -1
  277. package/dist/models/SetEmailWebhookRequest.js +1 -1
  278. package/dist/models/Status.d.ts +1 -1
  279. package/dist/models/Status.js +1 -1
  280. package/dist/models/StatusFeatures.d.ts +1 -1
  281. package/dist/models/StatusFeatures.js +1 -1
  282. package/dist/models/StatusUser.d.ts +1 -1
  283. package/dist/models/StatusUser.js +1 -1
  284. package/dist/models/StorageUpload.d.ts +1 -1
  285. package/dist/models/StorageUpload.js +1 -1
  286. package/dist/models/UpdateEmailAllowlist200Response.d.ts +1 -1
  287. package/dist/models/UpdateEmailAllowlist200Response.js +1 -1
  288. package/dist/models/UpdateEmailAllowlist200ResponseData.d.ts +1 -1
  289. package/dist/models/UpdateEmailAllowlist200ResponseData.js +1 -1
  290. package/dist/models/UpdateEmailAllowlistRequest.d.ts +1 -1
  291. package/dist/models/UpdateEmailAllowlistRequest.js +1 -1
  292. package/dist/models/UpdateEmailAllowlistRequestSenderAllowlist.d.ts +1 -1
  293. package/dist/models/UpdateEmailAllowlistRequestSenderAllowlist.js +1 -1
  294. package/dist/models/UpdateEmailRequest.d.ts +10 -2
  295. package/dist/models/UpdateEmailRequest.js +6 -4
  296. package/dist/models/UpdateMailboxRequest.d.ts +1 -1
  297. package/dist/models/UpdateMailboxRequest.js +1 -1
  298. package/dist/models/UploadBlob.d.ts +1 -1
  299. package/dist/models/UploadBlob.js +1 -1
  300. package/dist/models/UploadSession.d.ts +1 -1
  301. package/dist/models/UploadSession.js +1 -1
  302. package/dist/models/UploadSessionFile.d.ts +2 -2
  303. package/dist/models/UploadSessionFile.js +1 -1
  304. package/dist/models/UploadSessionResult.d.ts +1 -1
  305. package/dist/models/UploadSessionResult.js +1 -1
  306. package/dist/models/UploadSessionUpload.d.ts +1 -1
  307. package/dist/models/UploadSessionUpload.js +1 -1
  308. package/dist/models/UploadedFile.d.ts +1 -1
  309. package/dist/models/UploadedFile.js +1 -1
  310. package/dist/models/VerifyEmailDomainRequest.d.ts +1 -1
  311. package/dist/models/VerifyEmailDomainRequest.js +1 -1
  312. package/dist/models/VerifySignInCode201Response.d.ts +1 -1
  313. package/dist/models/VerifySignInCode201Response.js +1 -1
  314. package/dist/models/VerifySignInCodeRequest.d.ts +1 -1
  315. package/dist/models/VerifySignInCodeRequest.js +1 -1
  316. package/dist/models/Webhook.d.ts +1 -1
  317. package/dist/models/Webhook.js +1 -1
  318. package/dist/models/WebhookWithSecret.d.ts +1 -1
  319. package/dist/models/WebhookWithSecret.js +1 -1
  320. package/dist/models/index.d.ts +3 -0
  321. package/dist/models/index.js +3 -0
  322. package/dist/runtime.d.ts +1 -1
  323. package/dist/runtime.js +1 -1
  324. package/package.json +1 -1
package/REFERENCE.md CHANGED
@@ -227,7 +227,7 @@ Parameters: `mailboxId` (string, required), `accountId` (string), `reason` (stri
227
227
 
228
228
  `client.api.changeMailboxAddress({ mailboxId, changeMailboxAddressRequest })`
229
229
 
230
- Requires a paid plan and mailbox admin permission. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address.
230
+ Requires mailbox admin permission and a paid plan, except for a change back to revdokumail. com. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address. A change from revdokumail.com to a customer domain always keeps the old address as the revdokumail.com base address, which uses no alias slot. A change from a customer domain back to revdokumail.com makes that base address the main address again at once (200, assignment.status active): username is ignored, no address change is counted and it works on every plan.
231
231
 
232
232
  Parameters: `mailboxId` (string, required).
233
233
 
@@ -239,7 +239,7 @@ Body `changeMailboxAddressRequest` (`ChangeMailboxAddressRequest`): `confirm` (b
239
239
 
240
240
  `client.api.createEmailAlias({ mailboxId, createEmailAliasRequest })`
241
241
 
242
- Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged.
242
+ Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged. On a mailbox whose primary address is on your domain, the first revdokumail.com alias becomes its base address and uses no alias slot.
243
243
 
244
244
  Parameters: `mailboxId` (string, required).
245
245
 
@@ -251,7 +251,7 @@ Body `createEmailAliasRequest` (`CreateEmailAliasRequest`): `username` (string,
251
251
 
252
252
  `client.api.deleteEmailAlias({ mailboxId, aliasId })`
253
253
 
254
- Stops new and queued deliveries to the alias. Saved emails stay.
254
+ Stops new and queued deliveries to the alias. Saved emails stay. The base address of a mailbox whose primary address is on your domain cannot be removed (`409 EMAIL_ALIAS_BASE`).
255
255
 
256
256
  Parameters: `mailboxId` (string, required), `aliasId` (string, required), `accountId` (string), `reason` (string or null).
257
257
 
@@ -327,7 +327,7 @@ Parameters: `mailboxId` (string, required), `accountId` (string), `reason` (stri
327
327
 
328
328
  `client.api.sendEmail({ mailboxId, sendEmailRequest })`
329
329
 
330
- Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or (on paid plans) to addresses that emailed this mailbox and passed sender authentication. The From name is the mailbox title. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
330
+ Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or to addresses that emailed this mailbox and passed sender authentication; an administrator can turn off each kind. When the mailbox requires approval, delivery.status is awaiting_approval until a person sends, edits or declines the email; do not send it again. Replying to or attaching an email that AI labels marked as Junk returns 403 EMAIL_WITHHELD; one they are still checking returns 503 EMAIL_LABELING_PENDING with Retry-After. The From name is the mailbox title. On the Free plan, the email ends with one line about Revdoku. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
331
331
 
332
332
  Parameters: `mailboxId` (string, required).
333
333
 
@@ -343,17 +343,17 @@ Returns decoded text and attachment metadata. Reading does not change read statu
343
343
 
344
344
  Parameters: `mailboxId` (string, required), `emailId` (string, required), `accountId` (string), `reason` (string or null), `includeStorage` (boolean).
345
345
 
346
- ### Mark an email read or unread
346
+ ### Update an email's read status or labels
347
347
 
348
- `PATCH /v1/mailboxes/{mailbox_id}/emails/{email_id}` · [web reference](https://revdoku.com/api/reference/emails.md#mark-an-email-read-or-unread)
348
+ `PATCH /v1/mailboxes/{mailbox_id}/emails/{email_id}` · [web reference](https://revdoku.com/api/reference/emails.md#update-an-emails-read-status-or-labels)
349
349
 
350
350
  `client.api.updateEmail({ mailboxId, emailId, updateEmailRequest })`
351
351
 
352
- Only read status can change.
352
+ Changes read status and custom labels. Send at least one of read, add_labels and remove_labels. Labels need write access. A new label name creates the label. Built-in labels such as Junk change only in the dashboard.
353
353
 
354
354
  Parameters: `mailboxId` (string, required), `emailId` (string, required), `includeStorage` (boolean).
355
355
 
356
- Body `updateEmailRequest` (`UpdateEmailRequest`): `read` (boolean, required), `accountId` (string), `reason` (string or null).
356
+ Body `updateEmailRequest` (`UpdateEmailRequest`): `read` (boolean), `addLabels` (array of string), `removeLabels` (array of string), `accountId` (string), `reason` (string or null).
357
357
 
358
358
  ### Delete an email
359
359
 
@@ -457,7 +457,7 @@ Parameters: `mailboxId` (string, required), `fileId` (string, required), `accoun
457
457
 
458
458
  `client.api.deleteFile({ mailboxId, fileId })`
459
459
 
460
- Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead.
460
+ Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead. Other top-level folders that start with _ return RESERVED_PATH.
461
461
 
462
462
  Parameters: `mailboxId` (string, required), `fileId` (string, required), `accountId` (string), `reason` (string or null).
463
463
 
@@ -595,7 +595,7 @@ Parameters: `accountId` (string), `limit` (integer), `cursor` (string).
595
595
 
596
596
  `client.api.createEmailDomain({ createEmailDomainRequest })`
597
597
 
598
- Claims an exact hostname and returns the DNS records to publish. Never change DNS without the domain owner's authorization.
598
+ Claims an exact hostname and returns the ownership record. Read the domain again shortly after for all `required_dns_records`. Never change DNS without the domain owner's authorization.
599
599
 
600
600
  Body `createEmailDomainRequest` (`CreateEmailDomainRequest`): `hostname` (string, required), `accountId` (string), `reason` (string or null).
601
601
 
@@ -642,3 +642,13 @@ Queues the check and returns the current state. Read the domain again to see the
642
642
  Parameters: `domainId` (string, required).
643
643
 
644
644
  Body `verifyEmailDomainRequest` (`VerifyEmailDomainRequest`): `accountId` (string), `reason` (string or null).
645
+
646
+ ### Get a one-click DNS setup link
647
+
648
+ `GET /v1/account/email_domains/{domain_id}/setup_link` · [web reference](https://revdoku.com/api/reference/email-domains.md#get-a-one-click-dns-setup-link)
649
+
650
+ `client.api.getEmailDomainSetupLink({ domainId })`
651
+
652
+ Signs a Domain Connect link for a domain whose `setup_provider` is set. Give the URL to the domain owner to open in a browser. The DNS provider adds `required_dns_records` after the owner approves them, then returns to Account Settings → Domains. Errors: 422 `EMAIL_DOMAIN_SETUP_UNSUPPORTED` when the provider or the domain state does not allow one-click setup, 422 `EMAIL_DOMAIN_SETUP_UNAVAILABLE` while the deployment cannot sign links, 422 `EMAIL_DNS_CONFLICT` when the hostname has records of another mail provider, 403 `EMAIL_DOMAINS_UPGRADE_REQUIRED` when the plan no longer includes custom email domains, and 503 `EMAIL_DNS_TEMPORARY` when DNS cannot be checked. Add the records manually, or try again later after a 503.
653
+
654
+ Parameters: `domainId` (string, required), `accountId` (string).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,6 +34,7 @@ import { type ExchangeConnectionGrantRequest } from '../models/ExchangeConnectio
34
34
  import { type FinalizeUploadSessionRequest } from '../models/FinalizeUploadSessionRequest';
35
35
  import { type GetAccountLimits200Response } from '../models/GetAccountLimits200Response';
36
36
  import { type GetEmail200Response } from '../models/GetEmail200Response';
37
+ import { type GetEmailDomainSetupLink200Response } from '../models/GetEmailDomainSetupLink200Response';
37
38
  import { type GetEmailOriginalDownload200Response } from '../models/GetEmailOriginalDownload200Response';
38
39
  import { type GetEmailSubscription200Response } from '../models/GetEmailSubscription200Response';
39
40
  import { type GetEmailWebhook200Response } from '../models/GetEmailWebhook200Response';
@@ -347,6 +348,16 @@ export interface GetEmailDomainRequest {
347
348
  */
348
349
  accountId?: string;
349
350
  }
351
+ export interface GetEmailDomainSetupLinkRequest {
352
+ /**
353
+ *
354
+ */
355
+ domainId: string;
356
+ /**
357
+ * Select another granted account for this request. Omit to use the credential default. In JSON bodies, send account_id as a body field instead.
358
+ */
359
+ accountId?: string;
360
+ }
350
361
  export interface GetEmailOriginalDownloadRequest {
351
362
  /**
352
363
  *
@@ -866,12 +877,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
866
877
  */
867
878
  changeMailboxAddressRequestOpts(requestParameters: ChangeMailboxAddressOperationRequest): Promise<runtime.RequestOpts>;
868
879
  /**
869
- * Requires a paid plan and mailbox admin permission. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address.
880
+ * Requires mailbox admin permission and a paid plan, except for a change back to revdokumail.com. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address. A change from revdokumail.com to a customer domain always keeps the old address as the revdokumail.com base address, which uses no alias slot. A change from a customer domain back to revdokumail.com makes that base address the main address again at once (200, assignment.status active): username is ignored, no address change is counted and it works on every plan.
870
881
  * Change the primary address
871
882
  */
872
883
  changeMailboxAddressRaw(requestParameters: ChangeMailboxAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMailboxEmailSettings200Response>>;
873
884
  /**
874
- * Requires a paid plan and mailbox admin permission. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address.
885
+ * Requires mailbox admin permission and a paid plan, except for a change back to revdokumail.com. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address. A change from revdokumail.com to a customer domain always keeps the old address as the revdokumail.com base address, which uses no alias slot. A change from a customer domain back to revdokumail.com makes that base address the main address again at once (200, assignment.status active): username is ignored, no address change is counted and it works on every plan.
875
886
  * Change the primary address
876
887
  */
877
888
  changeMailboxAddress(requestParameters: ChangeMailboxAddressOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMailboxEmailSettings200Response>;
@@ -936,12 +947,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
936
947
  */
937
948
  createEmailAliasRequestOpts(requestParameters: CreateEmailAliasOperationRequest): Promise<runtime.RequestOpts>;
938
949
  /**
939
- * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged.
950
+ * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged. On a mailbox whose primary address is on your domain, the first revdokumail.com alias becomes its base address and uses no alias slot.
940
951
  * Add an alias address
941
952
  */
942
953
  createEmailAliasRaw(requestParameters: CreateEmailAliasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetMailboxEmailSettings200Response>>;
943
954
  /**
944
- * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged.
955
+ * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged. On a mailbox whose primary address is on your domain, the first revdokumail.com alias becomes its base address and uses no alias slot.
945
956
  * Add an alias address
946
957
  */
947
958
  createEmailAlias(requestParameters: CreateEmailAliasOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetMailboxEmailSettings200Response>;
@@ -950,12 +961,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
950
961
  */
951
962
  createEmailDomainRequestOpts(requestParameters: CreateEmailDomainOperationRequest): Promise<runtime.RequestOpts>;
952
963
  /**
953
- * Claims an exact hostname and returns the DNS records to publish. Never change DNS without the domain owner\'s authorization.
964
+ * Claims an exact hostname and returns the ownership record. Read the domain again shortly after for all `required_dns_records`. Never change DNS without the domain owner\'s authorization.
954
965
  * Connect a custom email domain
955
966
  */
956
967
  createEmailDomainRaw(requestParameters: CreateEmailDomainOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateEmailDomain201Response>>;
957
968
  /**
958
- * Claims an exact hostname and returns the DNS records to publish. Never change DNS without the domain owner\'s authorization.
969
+ * Claims an exact hostname and returns the ownership record. Read the domain again shortly after for all `required_dns_records`. Never change DNS without the domain owner\'s authorization.
959
970
  * Connect a custom email domain
960
971
  */
961
972
  createEmailDomain(requestParameters: CreateEmailDomainOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateEmailDomain201Response>;
@@ -1006,12 +1017,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
1006
1017
  */
1007
1018
  deleteEmailAliasRequestOpts(requestParameters: DeleteEmailAliasRequest): Promise<runtime.RequestOpts>;
1008
1019
  /**
1009
- * Stops new and queued deliveries to the alias. Saved emails stay.
1020
+ * Stops new and queued deliveries to the alias. Saved emails stay. The base address of a mailbox whose primary address is on your domain cannot be removed (`409 EMAIL_ALIAS_BASE`).
1010
1021
  * Remove an alias address
1011
1022
  */
1012
1023
  deleteEmailAliasRaw(requestParameters: DeleteEmailAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteEmailDomain200Response>>;
1013
1024
  /**
1014
- * Stops new and queued deliveries to the alias. Saved emails stay.
1025
+ * Stops new and queued deliveries to the alias. Saved emails stay. The base address of a mailbox whose primary address is on your domain cannot be removed (`409 EMAIL_ALIAS_BASE`).
1015
1026
  * Remove an alias address
1016
1027
  */
1017
1028
  deleteEmailAlias(requestParameters: DeleteEmailAliasRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteEmailDomain200Response>;
@@ -1048,12 +1059,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
1048
1059
  */
1049
1060
  deleteFileRequestOpts(requestParameters: DeleteFileRequest): Promise<runtime.RequestOpts>;
1050
1061
  /**
1051
- * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead.
1062
+ * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead. Other top-level folders that start with _ return RESERVED_PATH.
1052
1063
  * Delete a file
1053
1064
  */
1054
1065
  deleteFileRaw(requestParameters: DeleteFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteEmailDomain200Response>>;
1055
1066
  /**
1056
- * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead.
1067
+ * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead. Other top-level folders that start with _ return RESERVED_PATH.
1057
1068
  * Delete a file
1058
1069
  */
1059
1070
  deleteFile(requestParameters: DeleteFileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteEmailDomain200Response>;
@@ -1169,6 +1180,20 @@ export declare class DefaultApi extends runtime.BaseAPI {
1169
1180
  * Read a custom email domain
1170
1181
  */
1171
1182
  getEmailDomain(requestParameters: GetEmailDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateEmailDomain201Response>;
1183
+ /**
1184
+ * Creates request options for getEmailDomainSetupLink without sending the request
1185
+ */
1186
+ getEmailDomainSetupLinkRequestOpts(requestParameters: GetEmailDomainSetupLinkRequest): Promise<runtime.RequestOpts>;
1187
+ /**
1188
+ * Signs a Domain Connect link for a domain whose `setup_provider` is set. Give the URL to the domain owner to open in a browser. The DNS provider adds `required_dns_records` after the owner approves them, then returns to Account Settings → Domains. Errors: 422 `EMAIL_DOMAIN_SETUP_UNSUPPORTED` when the provider or the domain state does not allow one-click setup, 422 `EMAIL_DOMAIN_SETUP_UNAVAILABLE` while the deployment cannot sign links, 422 `EMAIL_DNS_CONFLICT` when the hostname has records of another mail provider, 403 `EMAIL_DOMAINS_UPGRADE_REQUIRED` when the plan no longer includes custom email domains, and 503 `EMAIL_DNS_TEMPORARY` when DNS cannot be checked. Add the records manually, or try again later after a 503.
1189
+ * Get a one-click DNS setup link
1190
+ */
1191
+ getEmailDomainSetupLinkRaw(requestParameters: GetEmailDomainSetupLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetEmailDomainSetupLink200Response>>;
1192
+ /**
1193
+ * Signs a Domain Connect link for a domain whose `setup_provider` is set. Give the URL to the domain owner to open in a browser. The DNS provider adds `required_dns_records` after the owner approves them, then returns to Account Settings → Domains. Errors: 422 `EMAIL_DOMAIN_SETUP_UNSUPPORTED` when the provider or the domain state does not allow one-click setup, 422 `EMAIL_DOMAIN_SETUP_UNAVAILABLE` while the deployment cannot sign links, 422 `EMAIL_DNS_CONFLICT` when the hostname has records of another mail provider, 403 `EMAIL_DOMAINS_UPGRADE_REQUIRED` when the plan no longer includes custom email domains, and 503 `EMAIL_DNS_TEMPORARY` when DNS cannot be checked. Add the records manually, or try again later after a 503.
1194
+ * Get a one-click DNS setup link
1195
+ */
1196
+ getEmailDomainSetupLink(requestParameters: GetEmailDomainSetupLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetEmailDomainSetupLink200Response>;
1172
1197
  /**
1173
1198
  * Creates request options for getEmailOriginalDownload without sending the request
1174
1199
  */
@@ -1482,12 +1507,12 @@ export declare class DefaultApi extends runtime.BaseAPI {
1482
1507
  */
1483
1508
  sendEmailRequestOpts(requestParameters: SendEmailOperationRequest): Promise<runtime.RequestOpts>;
1484
1509
  /**
1485
- * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or (on paid plans) to addresses that emailed this mailbox and passed sender authentication. The From name is the mailbox title. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
1510
+ * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or to addresses that emailed this mailbox and passed sender authentication; an administrator can turn off each kind. When the mailbox requires approval, delivery.status is awaiting_approval until a person sends, edits or declines the email; do not send it again. Replying to or attaching an email that AI labels marked as Junk returns 403 EMAIL_WITHHELD; one they are still checking returns 503 EMAIL_LABELING_PENDING with Retry-After. The From name is the mailbox title. On the Free plan, the email ends with one line about Revdoku. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
1486
1511
  * Send an email
1487
1512
  */
1488
1513
  sendEmailRaw(requestParameters: SendEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendEmail202Response>>;
1489
1514
  /**
1490
- * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or (on paid plans) to addresses that emailed this mailbox and passed sender authentication. The From name is the mailbox title. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
1515
+ * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or to addresses that emailed this mailbox and passed sender authentication; an administrator can turn off each kind. When the mailbox requires approval, delivery.status is awaiting_approval until a person sends, edits or declines the email; do not send it again. Replying to or attaching an email that AI labels marked as Junk returns 403 EMAIL_WITHHELD; one they are still checking returns 503 EMAIL_LABELING_PENDING with Retry-After. The From name is the mailbox title. On the Free plan, the email ends with one line about Revdoku. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
1491
1516
  * Send an email
1492
1517
  */
1493
1518
  sendEmail(requestParameters: SendEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendEmail202Response>;
@@ -1524,13 +1549,13 @@ export declare class DefaultApi extends runtime.BaseAPI {
1524
1549
  */
1525
1550
  updateEmailRequestOpts(requestParameters: UpdateEmailOperationRequest): Promise<runtime.RequestOpts>;
1526
1551
  /**
1527
- * Only read status can change.
1528
- * Mark an email read or unread
1552
+ * Changes read status and custom labels. Send at least one of read, add_labels and remove_labels. Labels need write access. A new label name creates the label. Built-in labels such as Junk change only in the dashboard.
1553
+ * Update an email\'s read status or labels
1529
1554
  */
1530
1555
  updateEmailRaw(requestParameters: UpdateEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SendEmail202Response>>;
1531
1556
  /**
1532
- * Only read status can change.
1533
- * Mark an email read or unread
1557
+ * Changes read status and custom labels. Send at least one of read, add_labels and remove_labels. Labels need write access. A new label name creates the label. Built-in labels such as Junk change only in the dashboard.
1558
+ * Update an email\'s read status or labels
1534
1559
  */
1535
1560
  updateEmail(requestParameters: UpdateEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SendEmail202Response>;
1536
1561
  /**
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -48,6 +48,7 @@ const ExchangeConnectionGrantRequest_1 = require("../models/ExchangeConnectionGr
48
48
  const FinalizeUploadSessionRequest_1 = require("../models/FinalizeUploadSessionRequest");
49
49
  const GetAccountLimits200Response_1 = require("../models/GetAccountLimits200Response");
50
50
  const GetEmail200Response_1 = require("../models/GetEmail200Response");
51
+ const GetEmailDomainSetupLink200Response_1 = require("../models/GetEmailDomainSetupLink200Response");
51
52
  const GetEmailOriginalDownload200Response_1 = require("../models/GetEmailOriginalDownload200Response");
52
53
  const GetEmailSubscription200Response_1 = require("../models/GetEmailSubscription200Response");
53
54
  const GetEmailWebhook200Response_1 = require("../models/GetEmailWebhook200Response");
@@ -283,7 +284,7 @@ class DefaultApi extends runtime.BaseAPI {
283
284
  });
284
285
  }
285
286
  /**
286
- * Requires a paid plan and mailbox admin permission. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address.
287
+ * Requires mailbox admin permission and a paid plan, except for a change back to revdokumail.com. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address. A change from revdokumail.com to a customer domain always keeps the old address as the revdokumail.com base address, which uses no alias slot. A change from a customer domain back to revdokumail.com makes that base address the main address again at once (200, assignment.status active): username is ignored, no address change is counted and it works on every plan.
287
288
  * Change the primary address
288
289
  */
289
290
  changeMailboxAddressRaw(requestParameters, initOverrides) {
@@ -294,7 +295,7 @@ class DefaultApi extends runtime.BaseAPI {
294
295
  });
295
296
  }
296
297
  /**
297
- * Requires a paid plan and mailbox admin permission. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address.
298
+ * Requires mailbox admin permission and a paid plan, except for a change back to revdokumail.com. Send the current address as expected_address. Omit username for a generated name. A custom-domain change returns 202; read the settings until assignment.status is active or failed. For account owners and administrators the old address becomes an alias unless keep_old_as_alias is false. Without a free alias slot the request returns EMAIL_ALIAS_LIMIT; send false to retire the old address. A change from revdokumail.com to a customer domain always keeps the old address as the revdokumail.com base address, which uses no alias slot. A change from a customer domain back to revdokumail.com makes that base address the main address again at once (200, assignment.status active): username is ignored, no address change is counted and it works on every plan.
298
299
  * Change the primary address
299
300
  */
300
301
  changeMailboxAddress(requestParameters, initOverrides) {
@@ -540,7 +541,7 @@ class DefaultApi extends runtime.BaseAPI {
540
541
  });
541
542
  }
542
543
  /**
543
- * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged.
544
+ * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged. On a mailbox whose primary address is on your domain, the first revdokumail.com alias becomes its base address and uses no alias slot.
544
545
  * Add an alias address
545
546
  */
546
547
  createEmailAliasRaw(requestParameters, initOverrides) {
@@ -551,7 +552,7 @@ class DefaultApi extends runtime.BaseAPI {
551
552
  });
552
553
  }
553
554
  /**
554
- * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged.
555
+ * Requires a paid plan and a full-account owner or administrator with mailbox-admin permission. The primary address stays unchanged. On a mailbox whose primary address is on your domain, the first revdokumail.com alias becomes its base address and uses no alias slot.
555
556
  * Add an alias address
556
557
  */
557
558
  createEmailAlias(requestParameters, initOverrides) {
@@ -589,7 +590,7 @@ class DefaultApi extends runtime.BaseAPI {
589
590
  });
590
591
  }
591
592
  /**
592
- * Claims an exact hostname and returns the DNS records to publish. Never change DNS without the domain owner\'s authorization.
593
+ * Claims an exact hostname and returns the ownership record. Read the domain again shortly after for all `required_dns_records`. Never change DNS without the domain owner\'s authorization.
593
594
  * Connect a custom email domain
594
595
  */
595
596
  createEmailDomainRaw(requestParameters, initOverrides) {
@@ -600,7 +601,7 @@ class DefaultApi extends runtime.BaseAPI {
600
601
  });
601
602
  }
602
603
  /**
603
- * Claims an exact hostname and returns the DNS records to publish. Never change DNS without the domain owner\'s authorization.
604
+ * Claims an exact hostname and returns the ownership record. Read the domain again shortly after for all `required_dns_records`. Never change DNS without the domain owner\'s authorization.
604
605
  * Connect a custom email domain
605
606
  */
606
607
  createEmailDomain(requestParameters, initOverrides) {
@@ -807,7 +808,7 @@ class DefaultApi extends runtime.BaseAPI {
807
808
  });
808
809
  }
809
810
  /**
810
- * Stops new and queued deliveries to the alias. Saved emails stay.
811
+ * Stops new and queued deliveries to the alias. Saved emails stay. The base address of a mailbox whose primary address is on your domain cannot be removed (`409 EMAIL_ALIAS_BASE`).
811
812
  * Remove an alias address
812
813
  */
813
814
  deleteEmailAliasRaw(requestParameters, initOverrides) {
@@ -818,7 +819,7 @@ class DefaultApi extends runtime.BaseAPI {
818
819
  });
819
820
  }
820
821
  /**
821
- * Stops new and queued deliveries to the alias. Saved emails stay.
822
+ * Stops new and queued deliveries to the alias. Saved emails stay. The base address of a mailbox whose primary address is on your domain cannot be removed (`409 EMAIL_ALIAS_BASE`).
822
823
  * Remove an alias address
823
824
  */
824
825
  deleteEmailAlias(requestParameters, initOverrides) {
@@ -969,7 +970,7 @@ class DefaultApi extends runtime.BaseAPI {
969
970
  });
970
971
  }
971
972
  /**
972
- * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead.
973
+ * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead. Other top-level folders that start with _ return RESERVED_PATH.
973
974
  * Delete a file
974
975
  */
975
976
  deleteFileRaw(requestParameters, initOverrides) {
@@ -980,7 +981,7 @@ class DefaultApi extends runtime.BaseAPI {
980
981
  });
981
982
  }
982
983
  /**
983
- * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead.
984
+ * Requires mailbox-admin permission. Files under _email/ return EMAIL_PATH_READ_ONLY; delete the email instead. Other top-level folders that start with _ return RESERVED_PATH.
984
985
  * Delete a file
985
986
  */
986
987
  deleteFile(requestParameters, initOverrides) {
@@ -1407,6 +1408,57 @@ class DefaultApi extends runtime.BaseAPI {
1407
1408
  return yield response.value();
1408
1409
  });
1409
1410
  }
1411
+ /**
1412
+ * Creates request options for getEmailDomainSetupLink without sending the request
1413
+ */
1414
+ getEmailDomainSetupLinkRequestOpts(requestParameters) {
1415
+ return __awaiter(this, void 0, void 0, function* () {
1416
+ if (requestParameters['domainId'] == null) {
1417
+ throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getEmailDomainSetupLink().');
1418
+ }
1419
+ const queryParameters = {};
1420
+ if (requestParameters['accountId'] != null) {
1421
+ queryParameters['account_id'] = requestParameters['accountId'];
1422
+ }
1423
+ const headerParameters = {};
1424
+ if (this.configuration && this.configuration.accessToken) {
1425
+ const token = this.configuration.accessToken;
1426
+ const tokenString = yield token("bearerAuth", []);
1427
+ if (tokenString) {
1428
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1429
+ }
1430
+ }
1431
+ let urlPath = `/v1/account/email_domains/{domain_id}/setup_link`;
1432
+ urlPath = urlPath.replace('{domain_id}', encodeURIComponent(String(requestParameters['domainId'])));
1433
+ return {
1434
+ path: urlPath,
1435
+ method: 'GET',
1436
+ headers: headerParameters,
1437
+ query: queryParameters,
1438
+ };
1439
+ });
1440
+ }
1441
+ /**
1442
+ * Signs a Domain Connect link for a domain whose `setup_provider` is set. Give the URL to the domain owner to open in a browser. The DNS provider adds `required_dns_records` after the owner approves them, then returns to Account Settings → Domains. Errors: 422 `EMAIL_DOMAIN_SETUP_UNSUPPORTED` when the provider or the domain state does not allow one-click setup, 422 `EMAIL_DOMAIN_SETUP_UNAVAILABLE` while the deployment cannot sign links, 422 `EMAIL_DNS_CONFLICT` when the hostname has records of another mail provider, 403 `EMAIL_DOMAINS_UPGRADE_REQUIRED` when the plan no longer includes custom email domains, and 503 `EMAIL_DNS_TEMPORARY` when DNS cannot be checked. Add the records manually, or try again later after a 503.
1443
+ * Get a one-click DNS setup link
1444
+ */
1445
+ getEmailDomainSetupLinkRaw(requestParameters, initOverrides) {
1446
+ return __awaiter(this, void 0, void 0, function* () {
1447
+ const requestOptions = yield this.getEmailDomainSetupLinkRequestOpts(requestParameters);
1448
+ const response = yield this.request(requestOptions, initOverrides);
1449
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetEmailDomainSetupLink200Response_1.GetEmailDomainSetupLink200ResponseFromJSON)(jsonValue));
1450
+ });
1451
+ }
1452
+ /**
1453
+ * Signs a Domain Connect link for a domain whose `setup_provider` is set. Give the URL to the domain owner to open in a browser. The DNS provider adds `required_dns_records` after the owner approves them, then returns to Account Settings → Domains. Errors: 422 `EMAIL_DOMAIN_SETUP_UNSUPPORTED` when the provider or the domain state does not allow one-click setup, 422 `EMAIL_DOMAIN_SETUP_UNAVAILABLE` while the deployment cannot sign links, 422 `EMAIL_DNS_CONFLICT` when the hostname has records of another mail provider, 403 `EMAIL_DOMAINS_UPGRADE_REQUIRED` when the plan no longer includes custom email domains, and 503 `EMAIL_DNS_TEMPORARY` when DNS cannot be checked. Add the records manually, or try again later after a 503.
1454
+ * Get a one-click DNS setup link
1455
+ */
1456
+ getEmailDomainSetupLink(requestParameters, initOverrides) {
1457
+ return __awaiter(this, void 0, void 0, function* () {
1458
+ const response = yield this.getEmailDomainSetupLinkRaw(requestParameters, initOverrides);
1459
+ return yield response.value();
1460
+ });
1461
+ }
1410
1462
  /**
1411
1463
  * Creates request options for getEmailOriginalDownload without sending the request
1412
1464
  */
@@ -2695,7 +2747,7 @@ class DefaultApi extends runtime.BaseAPI {
2695
2747
  });
2696
2748
  }
2697
2749
  /**
2698
- * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or (on paid plans) to addresses that emailed this mailbox and passed sender authentication. The From name is the mailbox title. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
2750
+ * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or to addresses that emailed this mailbox and passed sender authentication; an administrator can turn off each kind. When the mailbox requires approval, delivery.status is awaiting_approval until a person sends, edits or declines the email; do not send it again. Replying to or attaching an email that AI labels marked as Junk returns 403 EMAIL_WITHHELD; one they are still checking returns 503 EMAIL_LABELING_PENDING with Retry-After. The From name is the mailbox title. On the Free plan, the email ends with one line about Revdoku. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
2699
2751
  * Send an email
2700
2752
  */
2701
2753
  sendEmailRaw(requestParameters, initOverrides) {
@@ -2706,7 +2758,7 @@ class DefaultApi extends runtime.BaseAPI {
2706
2758
  });
2707
2759
  }
2708
2760
  /**
2709
- * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or (on paid plans) to addresses that emailed this mailbox and passed sender authentication. The From name is the mailbox title. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
2761
+ * Requires mailbox write permission. Send only to account members, to other mailboxes of the account, or to addresses that emailed this mailbox and passed sender authentication; an administrator can turn off each kind. When the mailbox requires approval, delivery.status is awaiting_approval until a person sends, edits or declines the email; do not send it again. Replying to or attaching an email that AI labels marked as Junk returns 403 EMAIL_WITHHELD; one they are still checking returns 503 EMAIL_LABELING_PENDING with Retry-After. The From name is the mailbox title. On the Free plan, the email ends with one line about Revdoku. Set in_reply_to to reply. Delivery is asynchronous: read delivery.status later. After an unknown result, list direction=sent before you send again.
2710
2762
  * Send an email
2711
2763
  */
2712
2764
  sendEmail(requestParameters, initOverrides) {
@@ -2861,8 +2913,8 @@ class DefaultApi extends runtime.BaseAPI {
2861
2913
  });
2862
2914
  }
2863
2915
  /**
2864
- * Only read status can change.
2865
- * Mark an email read or unread
2916
+ * Changes read status and custom labels. Send at least one of read, add_labels and remove_labels. Labels need write access. A new label name creates the label. Built-in labels such as Junk change only in the dashboard.
2917
+ * Update an email\'s read status or labels
2866
2918
  */
2867
2919
  updateEmailRaw(requestParameters, initOverrides) {
2868
2920
  return __awaiter(this, void 0, void 0, function* () {
@@ -2872,8 +2924,8 @@ class DefaultApi extends runtime.BaseAPI {
2872
2924
  });
2873
2925
  }
2874
2926
  /**
2875
- * Only read status can change.
2876
- * Mark an email read or unread
2927
+ * Changes read status and custom labels. Send at least one of read, add_labels and remove_labels. Labels need write access. A new label name creates the label. Built-in labels such as Junk change only in the dashboard.
2928
+ * Update an email\'s read status or labels
2877
2929
  */
2878
2930
  updateEmail(requestParameters, initOverrides) {
2879
2931
  return __awaiter(this, void 0, void 0, function* () {
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Revdoku API
6
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
7
  *
8
- * The version of the OpenAPI document: 2.1.0
8
+ * The version of the OpenAPI document: 2.2.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Revdoku API
3
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
4
  *
5
- * The version of the OpenAPI document: 2.1.0
5
+ * The version of the OpenAPI document: 2.2.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).