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.
- package/LICENSE +21 -0
- package/README.md +250 -2
- package/REFERENCE.md +654 -0
- package/dist/apis/DefaultApi.d.ts +1643 -0
- package/dist/apis/DefaultApi.js +3161 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/client.d.ts +74 -0
- package/dist/client.js +241 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +22 -0
- package/dist/models/AccountIdentity.d.ts +77 -0
- package/dist/models/AccountIdentity.js +90 -0
- package/dist/models/AccountIdentityAgencyAccount.d.ts +34 -0
- package/dist/models/AccountIdentityAgencyAccount.js +50 -0
- package/dist/models/AccountIdentityPermissions.d.ts +55 -0
- package/dist/models/AccountIdentityPermissions.js +68 -0
- package/dist/models/AccountLimits.d.ts +106 -0
- package/dist/models/AccountLimits.js +126 -0
- package/dist/models/AccountList.d.ts +40 -0
- package/dist/models/AccountList.js +60 -0
- package/dist/models/ActionRequest.d.ts +34 -0
- package/dist/models/ActionRequest.js +50 -0
- package/dist/models/AddUploadSessionFilesRequest.d.ts +39 -0
- package/dist/models/AddUploadSessionFilesRequest.js +55 -0
- package/dist/models/AgentConnection.d.ts +99 -0
- package/dist/models/AgentConnection.js +93 -0
- package/dist/models/ApiError.d.ts +35 -0
- package/dist/models/ApiError.js +55 -0
- package/dist/models/ApiErrorError.d.ts +62 -0
- package/dist/models/ApiErrorError.js +69 -0
- package/dist/models/AppendText200Response.d.ts +35 -0
- package/dist/models/AppendText200Response.js +55 -0
- package/dist/models/AppendTextRequest.d.ts +50 -0
- package/dist/models/AppendTextRequest.js +62 -0
- package/dist/models/AppendTextResult.d.ts +52 -0
- package/dist/models/AppendTextResult.js +72 -0
- package/dist/models/BrowserLink.d.ts +46 -0
- package/dist/models/BrowserLink.js +60 -0
- package/dist/models/ChangeMailboxAddressRequest.d.ts +54 -0
- package/dist/models/ChangeMailboxAddressRequest.js +64 -0
- package/dist/models/CheckEmailDomain200Response.d.ts +35 -0
- package/dist/models/CheckEmailDomain200Response.js +55 -0
- package/dist/models/CodeRequested.d.ts +46 -0
- package/dist/models/CodeRequested.js +56 -0
- package/dist/models/Connection.d.ts +112 -0
- package/dist/models/Connection.js +99 -0
- package/dist/models/ConnectionPermissions.d.ts +38 -0
- package/dist/models/ConnectionPermissions.js +52 -0
- package/dist/models/ConnectionRenewal.d.ts +38 -0
- package/dist/models/ConnectionRenewal.js +52 -0
- package/dist/models/CreateBrowserLink201Response.d.ts +35 -0
- package/dist/models/CreateBrowserLink201Response.js +55 -0
- package/dist/models/CreateBrowserLinkRequest.d.ts +38 -0
- package/dist/models/CreateBrowserLinkRequest.js +52 -0
- package/dist/models/CreateClientAccount201Response.d.ts +35 -0
- package/dist/models/CreateClientAccount201Response.js +55 -0
- package/dist/models/CreateClientAccount201ResponseData.d.ts +31 -0
- package/dist/models/CreateClientAccount201ResponseData.js +51 -0
- package/dist/models/CreateClientAccountRequest.d.ts +42 -0
- package/dist/models/CreateClientAccountRequest.js +56 -0
- package/dist/models/CreateEmailAliasRequest.d.ts +42 -0
- package/dist/models/CreateEmailAliasRequest.js +56 -0
- package/dist/models/CreateEmailDomain201Response.d.ts +35 -0
- package/dist/models/CreateEmailDomain201Response.js +55 -0
- package/dist/models/CreateEmailDomain201ResponseData.d.ts +31 -0
- package/dist/models/CreateEmailDomain201ResponseData.js +51 -0
- package/dist/models/CreateEmailDomainRequest.d.ts +38 -0
- package/dist/models/CreateEmailDomainRequest.js +54 -0
- package/dist/models/CreateMailbox201Response.d.ts +35 -0
- package/dist/models/CreateMailbox201Response.js +55 -0
- package/dist/models/CreateMailbox201ResponseData.d.ts +31 -0
- package/dist/models/CreateMailbox201ResponseData.js +51 -0
- package/dist/models/CreateMailboxRequest.d.ts +39 -0
- package/dist/models/CreateMailboxRequest.js +53 -0
- package/dist/models/CreateUploadSession201Response.d.ts +35 -0
- package/dist/models/CreateUploadSession201Response.js +55 -0
- package/dist/models/CreateUploadSessionRequest.d.ts +63 -0
- package/dist/models/CreateUploadSessionRequest.js +69 -0
- package/dist/models/DecodedEmailAddress.d.ts +34 -0
- package/dist/models/DecodedEmailAddress.js +54 -0
- package/dist/models/DecodedIncomingMessage.d.ts +151 -0
- package/dist/models/DecodedIncomingMessage.js +142 -0
- package/dist/models/DecodedIncomingMessageAttachmentsInner.d.ts +56 -0
- package/dist/models/DecodedIncomingMessageAttachmentsInner.js +74 -0
- package/dist/models/DeleteEmailDomain200Response.d.ts +35 -0
- package/dist/models/DeleteEmailDomain200Response.js +55 -0
- package/dist/models/DeleteEmailDomainRequest.d.ts +42 -0
- package/dist/models/DeleteEmailDomainRequest.js +58 -0
- package/dist/models/DeleteMailboxRequest.d.ts +38 -0
- package/dist/models/DeleteMailboxRequest.js +54 -0
- package/dist/models/DeleteResult.d.ts +34 -0
- package/dist/models/DeleteResult.js +54 -0
- package/dist/models/DnsRecord.d.ts +50 -0
- package/dist/models/DnsRecord.js +70 -0
- package/dist/models/Download.d.ts +53 -0
- package/dist/models/Download.js +75 -0
- package/dist/models/EmailAlias.d.ts +38 -0
- package/dist/models/EmailAlias.js +58 -0
- package/dist/models/EmailAttachment.d.ts +60 -0
- package/dist/models/EmailAttachment.js +76 -0
- package/dist/models/EmailDelivery.d.ts +49 -0
- package/dist/models/EmailDelivery.js +67 -0
- package/dist/models/EmailDetail.d.ts +167 -0
- package/dist/models/EmailDetail.js +157 -0
- package/dist/models/EmailDomain.d.ts +101 -0
- package/dist/models/EmailDomain.js +92 -0
- package/dist/models/EmailDomainAssignedMailboxesInner.d.ts +35 -0
- package/dist/models/EmailDomainAssignedMailboxesInner.js +51 -0
- package/dist/models/EmailDomainAssignedMailboxesInnerEmail.d.ts +30 -0
- package/dist/models/EmailDomainAssignedMailboxesInnerEmail.js +48 -0
- package/dist/models/EmailDomainCheck.d.ts +42 -0
- package/dist/models/EmailDomainCheck.js +58 -0
- package/dist/models/EmailDomainError.d.ts +38 -0
- package/dist/models/EmailDomainError.js +52 -0
- package/dist/models/EmailDomainList.d.ts +44 -0
- package/dist/models/EmailDomainList.js +62 -0
- package/dist/models/EmailForwarding.d.ts +77 -0
- package/dist/models/EmailForwarding.js +89 -0
- package/dist/models/EmailForwardingContent.d.ts +95 -0
- package/dist/models/EmailForwardingContent.js +102 -0
- package/dist/models/EmailLabel.d.ts +51 -0
- package/dist/models/EmailLabel.js +71 -0
- package/dist/models/EmailList.d.ts +36 -0
- package/dist/models/EmailList.js +56 -0
- package/dist/models/EmailReceivedEvent.d.ts +50 -0
- package/dist/models/EmailReceivedEvent.js +73 -0
- package/dist/models/EmailReceivedEventData.d.ts +46 -0
- package/dist/models/EmailReceivedEventData.js +67 -0
- package/dist/models/EmailSenderAllowlist.d.ts +46 -0
- package/dist/models/EmailSenderAllowlist.js +66 -0
- package/dist/models/EmailSubscription.d.ts +64 -0
- package/dist/models/EmailSubscription.js +87 -0
- package/dist/models/EmailSummary.d.ts +158 -0
- package/dist/models/EmailSummary.js +146 -0
- package/dist/models/EmailSummaryFiles.d.ts +42 -0
- package/dist/models/EmailSummaryFiles.js +60 -0
- package/dist/models/ErrorCode.d.ts +172 -0
- package/dist/models/ErrorCode.js +198 -0
- package/dist/models/ExchangeConnectionGrantRequest.d.ts +42 -0
- package/dist/models/ExchangeConnectionGrantRequest.js +56 -0
- package/dist/models/FileActor.d.ts +38 -0
- package/dist/models/FileActor.js +52 -0
- package/dist/models/FileDownload.d.ts +40 -0
- package/dist/models/FileDownload.js +58 -0
- package/dist/models/FileKey.d.ts +38 -0
- package/dist/models/FileKey.js +52 -0
- package/dist/models/FileList.d.ts +36 -0
- package/dist/models/FileList.js +56 -0
- package/dist/models/FileUploadSkip.d.ts +52 -0
- package/dist/models/FileUploadSkip.js +58 -0
- package/dist/models/FileVersion.d.ts +128 -0
- package/dist/models/FileVersion.js +101 -0
- package/dist/models/FileVersionList.d.ts +36 -0
- package/dist/models/FileVersionList.js +56 -0
- package/dist/models/FileVersionReason.d.ts +46 -0
- package/dist/models/FileVersionReason.js +57 -0
- package/dist/models/FinalizeUploadSessionRequest.d.ts +38 -0
- package/dist/models/FinalizeUploadSessionRequest.js +52 -0
- package/dist/models/GetAccountLimits200Response.d.ts +35 -0
- package/dist/models/GetAccountLimits200Response.js +55 -0
- package/dist/models/GetAccountLimits200ResponseData.d.ts +40 -0
- package/dist/models/GetAccountLimits200ResponseData.js +58 -0
- package/dist/models/GetAccountLimits200ResponseDataUsage.d.ts +31 -0
- package/dist/models/GetAccountLimits200ResponseDataUsage.js +49 -0
- package/dist/models/GetAccountLimits200ResponseDataUsageMailboxCreations.d.ts +42 -0
- package/dist/models/GetAccountLimits200ResponseDataUsageMailboxCreations.js +55 -0
- package/dist/models/GetEmail200Response.d.ts +35 -0
- package/dist/models/GetEmail200Response.js +55 -0
- package/dist/models/GetEmail200ResponseData.d.ts +31 -0
- package/dist/models/GetEmail200ResponseData.js +51 -0
- package/dist/models/GetEmailDomainSetupLink200Response.d.ts +35 -0
- package/dist/models/GetEmailDomainSetupLink200Response.js +55 -0
- package/dist/models/GetEmailDomainSetupLink200ResponseData.d.ts +31 -0
- package/dist/models/GetEmailDomainSetupLink200ResponseData.js +51 -0
- package/dist/models/GetEmailDomainSetupLink200ResponseDataSetupLink.d.ts +34 -0
- package/dist/models/GetEmailDomainSetupLink200ResponseDataSetupLink.js +54 -0
- package/dist/models/GetEmailOriginalDownload200Response.d.ts +35 -0
- package/dist/models/GetEmailOriginalDownload200Response.js +55 -0
- package/dist/models/GetEmailOriginalDownload200ResponseData.d.ts +31 -0
- package/dist/models/GetEmailOriginalDownload200ResponseData.js +51 -0
- package/dist/models/GetEmailSubscription200Response.d.ts +35 -0
- package/dist/models/GetEmailSubscription200Response.js +55 -0
- package/dist/models/GetEmailSubscription200ResponseData.d.ts +31 -0
- package/dist/models/GetEmailSubscription200ResponseData.js +51 -0
- package/dist/models/GetEmailWebhook200Response.d.ts +35 -0
- package/dist/models/GetEmailWebhook200Response.js +55 -0
- package/dist/models/GetEmailWebhook200ResponseData.d.ts +31 -0
- package/dist/models/GetEmailWebhook200ResponseData.js +51 -0
- package/dist/models/GetFileByPath200Response.d.ts +35 -0
- package/dist/models/GetFileByPath200Response.js +55 -0
- package/dist/models/GetFileByPath200ResponseData.d.ts +31 -0
- package/dist/models/GetFileByPath200ResponseData.js +51 -0
- package/dist/models/GetFileDownload200Response.d.ts +35 -0
- package/dist/models/GetFileDownload200Response.js +55 -0
- package/dist/models/GetMailboxEmailSettings200Response.d.ts +35 -0
- package/dist/models/GetMailboxEmailSettings200Response.js +55 -0
- package/dist/models/GetStatus200Response.d.ts +35 -0
- package/dist/models/GetStatus200Response.js +55 -0
- package/dist/models/ListAccounts200Response.d.ts +35 -0
- package/dist/models/ListAccounts200Response.js +55 -0
- package/dist/models/ListEmailDomains200Response.d.ts +35 -0
- package/dist/models/ListEmailDomains200Response.js +55 -0
- package/dist/models/ListEmails200Response.d.ts +35 -0
- package/dist/models/ListEmails200Response.js +55 -0
- package/dist/models/ListFileVersions200Response.d.ts +35 -0
- package/dist/models/ListFileVersions200Response.js +55 -0
- package/dist/models/ListFiles200Response.d.ts +35 -0
- package/dist/models/ListFiles200Response.js +55 -0
- package/dist/models/ListMailboxes200Response.d.ts +35 -0
- package/dist/models/ListMailboxes200Response.js +55 -0
- package/dist/models/Mailbox.d.ts +111 -0
- package/dist/models/Mailbox.js +110 -0
- package/dist/models/MailboxAction.d.ts +42 -0
- package/dist/models/MailboxAction.js +56 -0
- package/dist/models/MailboxCounts.d.ts +38 -0
- package/dist/models/MailboxCounts.js +58 -0
- package/dist/models/MailboxCreate.d.ts +45 -0
- package/dist/models/MailboxCreate.js +55 -0
- package/dist/models/MailboxEmail.d.ts +58 -0
- package/dist/models/MailboxEmail.js +73 -0
- package/dist/models/MailboxEmailOptions.d.ts +34 -0
- package/dist/models/MailboxEmailOptions.js +50 -0
- package/dist/models/MailboxEmailSettings.d.ts +87 -0
- package/dist/models/MailboxEmailSettings.js +92 -0
- package/dist/models/MailboxEmailSettingsAssignment.d.ts +52 -0
- package/dist/models/MailboxEmailSettingsAssignment.js +64 -0
- package/dist/models/MailboxEmailSettingsAssignmentError.d.ts +38 -0
- package/dist/models/MailboxEmailSettingsAssignmentError.js +52 -0
- package/dist/models/MailboxEmailSettingsAvailableDomainsInner.d.ts +42 -0
- package/dist/models/MailboxEmailSettingsAvailableDomainsInner.js +58 -0
- package/dist/models/MailboxEmailSettingsCustomization.d.ts +38 -0
- package/dist/models/MailboxEmailSettingsCustomization.js +52 -0
- package/dist/models/MailboxFile.d.ts +128 -0
- package/dist/models/MailboxFile.js +99 -0
- package/dist/models/MailboxList.d.ts +41 -0
- package/dist/models/MailboxList.js +61 -0
- package/dist/models/MailboxLock.d.ts +58 -0
- package/dist/models/MailboxLock.js +65 -0
- package/dist/models/MailboxUpdate.d.ts +40 -0
- package/dist/models/MailboxUpdate.js +52 -0
- package/dist/models/MoveFileRequest.d.ts +46 -0
- package/dist/models/MoveFileRequest.js +56 -0
- package/dist/models/Pagination.d.ts +38 -0
- package/dist/models/Pagination.js +58 -0
- package/dist/models/PathOperationResult.d.ts +73 -0
- package/dist/models/PathOperationResult.js +81 -0
- package/dist/models/PrepareFileUpload201Response.d.ts +35 -0
- package/dist/models/PrepareFileUpload201Response.js +55 -0
- package/dist/models/PrepareFileUploadRequest.d.ts +59 -0
- package/dist/models/PrepareFileUploadRequest.js +73 -0
- package/dist/models/PreparedFileUpload.d.ts +79 -0
- package/dist/models/PreparedFileUpload.js +73 -0
- package/dist/models/RenameFile200Response.d.ts +35 -0
- package/dist/models/RenameFile200Response.js +55 -0
- package/dist/models/RenameFileRequest.d.ts +38 -0
- package/dist/models/RenameFileRequest.js +54 -0
- package/dist/models/RequestSignInCode200Response.d.ts +35 -0
- package/dist/models/RequestSignInCode200Response.js +55 -0
- package/dist/models/RequestSignInCodeRequest.d.ts +38 -0
- package/dist/models/RequestSignInCodeRequest.js +54 -0
- package/dist/models/RestoreFileVersion201Response.d.ts +35 -0
- package/dist/models/RestoreFileVersion201Response.js +55 -0
- package/dist/models/RestoredFileVersion.d.ts +40 -0
- package/dist/models/RestoredFileVersion.js +60 -0
- package/dist/models/SaveUploadSessionBatchRequest.d.ts +38 -0
- package/dist/models/SaveUploadSessionBatchRequest.js +52 -0
- package/dist/models/SaveUploadedFile201Response.d.ts +35 -0
- package/dist/models/SaveUploadedFile201Response.js +55 -0
- package/dist/models/SaveUploadedFileRequest.d.ts +78 -0
- package/dist/models/SaveUploadedFileRequest.js +85 -0
- package/dist/models/SavedFile.d.ts +49 -0
- package/dist/models/SavedFile.js +65 -0
- package/dist/models/SendEmail202Response.d.ts +35 -0
- package/dist/models/SendEmail202Response.js +55 -0
- package/dist/models/SendEmail202ResponseData.d.ts +31 -0
- package/dist/models/SendEmail202ResponseData.js +51 -0
- package/dist/models/SendEmailRequest.d.ts +62 -0
- package/dist/models/SendEmailRequest.js +66 -0
- package/dist/models/SetEmailWebhook200Response.d.ts +35 -0
- package/dist/models/SetEmailWebhook200Response.js +55 -0
- package/dist/models/SetEmailWebhook200ResponseData.d.ts +31 -0
- package/dist/models/SetEmailWebhook200ResponseData.js +51 -0
- package/dist/models/SetEmailWebhookRequest.d.ts +42 -0
- package/dist/models/SetEmailWebhookRequest.js +56 -0
- package/dist/models/Status.d.ts +73 -0
- package/dist/models/Status.js +75 -0
- package/dist/models/StatusFeatures.d.ts +30 -0
- package/dist/models/StatusFeatures.js +48 -0
- package/dist/models/StatusUser.d.ts +38 -0
- package/dist/models/StatusUser.js +52 -0
- package/dist/models/StorageUpload.d.ts +36 -0
- package/dist/models/StorageUpload.js +54 -0
- package/dist/models/UpdateEmailAllowlist200Response.d.ts +35 -0
- package/dist/models/UpdateEmailAllowlist200Response.js +55 -0
- package/dist/models/UpdateEmailAllowlist200ResponseData.d.ts +31 -0
- package/dist/models/UpdateEmailAllowlist200ResponseData.js +51 -0
- package/dist/models/UpdateEmailAllowlistRequest.d.ts +43 -0
- package/dist/models/UpdateEmailAllowlistRequest.js +59 -0
- package/dist/models/UpdateEmailAllowlistRequestSenderAllowlist.d.ts +34 -0
- package/dist/models/UpdateEmailAllowlistRequestSenderAllowlist.js +54 -0
- package/dist/models/UpdateEmailRequest.d.ts +46 -0
- package/dist/models/UpdateEmailRequest.js +56 -0
- package/dist/models/UpdateMailboxRequest.d.ts +43 -0
- package/dist/models/UpdateMailboxRequest.js +57 -0
- package/dist/models/UploadBlob.d.ts +57 -0
- package/dist/models/UploadBlob.js +79 -0
- package/dist/models/UploadSession.d.ts +94 -0
- package/dist/models/UploadSession.js +91 -0
- package/dist/models/UploadSessionFile.d.ts +46 -0
- package/dist/models/UploadSessionFile.js +66 -0
- package/dist/models/UploadSessionResult.d.ts +82 -0
- package/dist/models/UploadSessionResult.js +86 -0
- package/dist/models/UploadSessionUpload.d.ts +47 -0
- package/dist/models/UploadSessionUpload.js +61 -0
- package/dist/models/UploadedFile.d.ts +48 -0
- package/dist/models/UploadedFile.js +66 -0
- package/dist/models/VerifyEmailDomainRequest.d.ts +34 -0
- package/dist/models/VerifyEmailDomainRequest.js +50 -0
- package/dist/models/VerifySignInCode201Response.d.ts +35 -0
- package/dist/models/VerifySignInCode201Response.js +55 -0
- package/dist/models/VerifySignInCodeRequest.d.ts +89 -0
- package/dist/models/VerifySignInCodeRequest.js +91 -0
- package/dist/models/Webhook.d.ts +41 -0
- package/dist/models/Webhook.js +63 -0
- package/dist/models/WebhookWithSecret.d.ts +45 -0
- package/dist/models/WebhookWithSecret.js +65 -0
- package/dist/models/index.d.ts +158 -0
- package/dist/models/index.js +176 -0
- package/dist/runtime.d.ts +196 -0
- package/dist/runtime.js +421 -0
- package/package.json +54 -4
|
@@ -0,0 +1,167 @@
|
|
|
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 { EmailForwardingContent } from './EmailForwardingContent';
|
|
13
|
+
import type { DecodedEmailAddress } from './DecodedEmailAddress';
|
|
14
|
+
import type { EmailAttachment } from './EmailAttachment';
|
|
15
|
+
import type { EmailSummaryFiles } from './EmailSummaryFiles';
|
|
16
|
+
import type { EmailDelivery } from './EmailDelivery';
|
|
17
|
+
import type { EmailLabel } from './EmailLabel';
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface EmailDetail
|
|
22
|
+
*/
|
|
23
|
+
export interface EmailDetail {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
subject?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
* Parsed From authors in header order, retaining multiple authors. Empty when absent/unparseable. Display names are not identity keys.
|
|
30
|
+
*/
|
|
31
|
+
fromAddresses?: Array<DecodedEmailAddress>;
|
|
32
|
+
/**
|
|
33
|
+
* Parsed To recipients in header order, with named groups flattened. Empty when absent/unparseable; not trusted delivery routing.
|
|
34
|
+
*/
|
|
35
|
+
toAddresses?: Array<DecodedEmailAddress>;
|
|
36
|
+
/**
|
|
37
|
+
* Parsed Cc recipients in header order, with named groups flattened. Empty when absent/unparseable.
|
|
38
|
+
*/
|
|
39
|
+
ccAddresses?: Array<DecodedEmailAddress>;
|
|
40
|
+
/**
|
|
41
|
+
* Parsed Reply-To addresses in header order. Empty when absent/unparseable. Does not authorize sending a reply.
|
|
42
|
+
*/
|
|
43
|
+
replyToAddresses?: Array<DecodedEmailAddress>;
|
|
44
|
+
/**
|
|
45
|
+
* Sender Message-ID without angle brackets, preserving case. Null when absent/unparseable/ambiguous; never the Revdoku delivery ID.
|
|
46
|
+
*/
|
|
47
|
+
messageId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Ordered parent Message-IDs without angle brackets, preserving case. Empty when absent/unparseable; multiple parents are retained.
|
|
50
|
+
*/
|
|
51
|
+
inReplyTo?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Ordered References IDs without angle brackets, preserving case. Empty when absent/unparseable.
|
|
54
|
+
*/
|
|
55
|
+
references?: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
deliveredTo?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Receipt time. For sent emails, the time Revdoku accepted the send.
|
|
62
|
+
*/
|
|
63
|
+
receivedAt: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
bodyStatus: EmailDetailBodyStatusEnum;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
omittedAttachmentCount?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
id: string;
|
|
76
|
+
/**
|
|
77
|
+
* Email ID that identifies the conversation. Replies are linked by email headers. Filter a list with conversation_id.
|
|
78
|
+
*/
|
|
79
|
+
conversationId: string;
|
|
80
|
+
/**
|
|
81
|
+
* received for incoming email; sent for email sent from this mailbox.
|
|
82
|
+
*/
|
|
83
|
+
direction: EmailDetailDirectionEnum;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
*/
|
|
87
|
+
delivery?: EmailDelivery;
|
|
88
|
+
/**
|
|
89
|
+
* Labels on the email files. When AI labels are on for the account, they add one built-in category label, such as Junk or Receipts, a few seconds after the email arrives, usually after the email.received event.
|
|
90
|
+
*/
|
|
91
|
+
labels: Array<EmailLabel>;
|
|
92
|
+
/**
|
|
93
|
+
* True means Revdoku hides the email's content from API keys and MCP: the subject, display names, sender address (except its domain), body and attachments. If labels includes the Junk label, the email is junk: skip it. Downloads of the email and its files return EMAIL_WITHHELD, and a person can review it in the dashboard. Otherwise AI labels have not checked it yet: keep its ID and read it again with getEmail / get_email after a few seconds. The read returns 503 EMAIL_LABELING_PENDING with Retry-After until the label is ready (at most about one minute). Do not drop a pending email.
|
|
94
|
+
*/
|
|
95
|
+
withheld: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Included only with include_storage=true for file-browser integration.
|
|
98
|
+
*/
|
|
99
|
+
fileId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Included only with include_storage=true for file-browser integration.
|
|
102
|
+
*/
|
|
103
|
+
versionId?: string;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
*/
|
|
107
|
+
attachmentCount: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
*/
|
|
111
|
+
read: boolean;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
readAt: Date | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
readBy: object | null;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
readByApiKey: object | null;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
files?: EmailSummaryFiles;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
forwarding?: EmailForwardingContent;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
bodyText: string | null;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
*/
|
|
139
|
+
attachments: Array<EmailAttachment>;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @export
|
|
143
|
+
*/
|
|
144
|
+
export declare const EmailDetailBodyStatusEnum: {
|
|
145
|
+
readonly Complete: "complete";
|
|
146
|
+
readonly Empty: "empty";
|
|
147
|
+
readonly Truncated: "truncated";
|
|
148
|
+
readonly Unavailable: "unavailable";
|
|
149
|
+
readonly Withheld: "withheld";
|
|
150
|
+
};
|
|
151
|
+
export type EmailDetailBodyStatusEnum = typeof EmailDetailBodyStatusEnum[keyof typeof EmailDetailBodyStatusEnum];
|
|
152
|
+
/**
|
|
153
|
+
* @export
|
|
154
|
+
*/
|
|
155
|
+
export declare const EmailDetailDirectionEnum: {
|
|
156
|
+
readonly Received: "received";
|
|
157
|
+
readonly Sent: "sent";
|
|
158
|
+
};
|
|
159
|
+
export type EmailDetailDirectionEnum = typeof EmailDetailDirectionEnum[keyof typeof EmailDetailDirectionEnum];
|
|
160
|
+
/**
|
|
161
|
+
* Check if a given object implements the EmailDetail interface.
|
|
162
|
+
*/
|
|
163
|
+
export declare function instanceOfEmailDetail(value: object): value is EmailDetail;
|
|
164
|
+
export declare function EmailDetailFromJSON(json: any): EmailDetail;
|
|
165
|
+
export declare function EmailDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDetail;
|
|
166
|
+
export declare function EmailDetailToJSON(json: any): EmailDetail;
|
|
167
|
+
export declare function EmailDetailToJSONTyped(value?: EmailDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,157 @@
|
|
|
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.EmailDetailDirectionEnum = exports.EmailDetailBodyStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfEmailDetail = instanceOfEmailDetail;
|
|
18
|
+
exports.EmailDetailFromJSON = EmailDetailFromJSON;
|
|
19
|
+
exports.EmailDetailFromJSONTyped = EmailDetailFromJSONTyped;
|
|
20
|
+
exports.EmailDetailToJSON = EmailDetailToJSON;
|
|
21
|
+
exports.EmailDetailToJSONTyped = EmailDetailToJSONTyped;
|
|
22
|
+
const runtime_1 = require("../runtime");
|
|
23
|
+
const EmailForwardingContent_1 = require("./EmailForwardingContent");
|
|
24
|
+
const DecodedEmailAddress_1 = require("./DecodedEmailAddress");
|
|
25
|
+
const EmailAttachment_1 = require("./EmailAttachment");
|
|
26
|
+
const EmailSummaryFiles_1 = require("./EmailSummaryFiles");
|
|
27
|
+
const EmailDelivery_1 = require("./EmailDelivery");
|
|
28
|
+
const EmailLabel_1 = require("./EmailLabel");
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.EmailDetailBodyStatusEnum = {
|
|
33
|
+
Complete: 'complete',
|
|
34
|
+
Empty: 'empty',
|
|
35
|
+
Truncated: 'truncated',
|
|
36
|
+
Unavailable: 'unavailable',
|
|
37
|
+
Withheld: 'withheld',
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
exports.EmailDetailDirectionEnum = {
|
|
43
|
+
Received: 'received',
|
|
44
|
+
Sent: 'sent',
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the EmailDetail interface.
|
|
48
|
+
*/
|
|
49
|
+
function instanceOfEmailDetail(value) {
|
|
50
|
+
if ((!('receivedAt' in value) && !('received_at' in value)) || (value['receivedAt'] === undefined && value['received_at'] === undefined))
|
|
51
|
+
return false;
|
|
52
|
+
if ((!('bodyStatus' in value) && !('body_status' in value)) || (value['bodyStatus'] === undefined && value['body_status'] === undefined))
|
|
53
|
+
return false;
|
|
54
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if ((!('conversationId' in value) && !('conversation_id' in value)) || (value['conversationId'] === undefined && value['conversation_id'] === undefined))
|
|
57
|
+
return false;
|
|
58
|
+
if (!('direction' in value) || value['direction'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
if (!('labels' in value) || value['labels'] === undefined)
|
|
61
|
+
return false;
|
|
62
|
+
if (!('withheld' in value) || value['withheld'] === undefined)
|
|
63
|
+
return false;
|
|
64
|
+
if ((!('attachmentCount' in value) && !('attachment_count' in value)) || (value['attachmentCount'] === undefined && value['attachment_count'] === undefined))
|
|
65
|
+
return false;
|
|
66
|
+
if (!('read' in value) || value['read'] === undefined)
|
|
67
|
+
return false;
|
|
68
|
+
if ((!('readAt' in value) && !('read_at' in value)) || (value['readAt'] === undefined && value['read_at'] === undefined))
|
|
69
|
+
return false;
|
|
70
|
+
if ((!('readBy' in value) && !('read_by' in value)) || (value['readBy'] === undefined && value['read_by'] === undefined))
|
|
71
|
+
return false;
|
|
72
|
+
if ((!('readByApiKey' in value) && !('read_by_api_key' in value)) || (value['readByApiKey'] === undefined && value['read_by_api_key'] === undefined))
|
|
73
|
+
return false;
|
|
74
|
+
if ((!('bodyText' in value) && !('body_text' in value)) || (value['bodyText'] === undefined && value['body_text'] === undefined))
|
|
75
|
+
return false;
|
|
76
|
+
if (!('attachments' in value) || value['attachments'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
function EmailDetailFromJSON(json) {
|
|
81
|
+
return EmailDetailFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function EmailDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'subject': json['subject'] === undefined ? undefined : json['subject'] === null ? null : json['subject'],
|
|
89
|
+
'fromAddresses': json['from_addresses'] == null ? undefined : (json['from_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
90
|
+
'toAddresses': json['to_addresses'] == null ? undefined : (json['to_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
91
|
+
'ccAddresses': json['cc_addresses'] == null ? undefined : (json['cc_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
92
|
+
'replyToAddresses': json['reply_to_addresses'] == null ? undefined : (json['reply_to_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
93
|
+
'messageId': json['message_id'] === undefined ? undefined : json['message_id'] === null ? null : json['message_id'],
|
|
94
|
+
'inReplyTo': json['in_reply_to'] == null ? undefined : json['in_reply_to'],
|
|
95
|
+
'references': json['references'] == null ? undefined : json['references'],
|
|
96
|
+
'deliveredTo': json['delivered_to'] == null ? undefined : json['delivered_to'],
|
|
97
|
+
'receivedAt': (json['received_at'] == null ? json['received_at'] : (0, runtime_1.parseDateTime)(json['received_at'])),
|
|
98
|
+
'bodyStatus': json['body_status'],
|
|
99
|
+
'omittedAttachmentCount': json['omitted_attachment_count'] == null ? undefined : json['omitted_attachment_count'],
|
|
100
|
+
'id': json['id'],
|
|
101
|
+
'conversationId': json['conversation_id'],
|
|
102
|
+
'direction': json['direction'],
|
|
103
|
+
'delivery': json['delivery'] == null ? undefined : (0, EmailDelivery_1.EmailDeliveryFromJSON)(json['delivery']),
|
|
104
|
+
'labels': (json['labels'].map(EmailLabel_1.EmailLabelFromJSON)),
|
|
105
|
+
'withheld': json['withheld'],
|
|
106
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
107
|
+
'versionId': json['version_id'] == null ? undefined : json['version_id'],
|
|
108
|
+
'attachmentCount': json['attachment_count'],
|
|
109
|
+
'read': json['read'],
|
|
110
|
+
'readAt': (json['read_at'] == null ? null : (0, runtime_1.parseDateTime)(json['read_at'])),
|
|
111
|
+
'readBy': json['read_by'],
|
|
112
|
+
'readByApiKey': json['read_by_api_key'],
|
|
113
|
+
'files': json['files'] == null ? undefined : (0, EmailSummaryFiles_1.EmailSummaryFilesFromJSON)(json['files']),
|
|
114
|
+
'forwarding': json['forwarding'] == null ? undefined : (0, EmailForwardingContent_1.EmailForwardingContentFromJSON)(json['forwarding']),
|
|
115
|
+
'bodyText': json['body_text'],
|
|
116
|
+
'attachments': (json['attachments'].map(EmailAttachment_1.EmailAttachmentFromJSON)),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function EmailDetailToJSON(json) {
|
|
120
|
+
return EmailDetailToJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
function EmailDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
'subject': value['subject'],
|
|
128
|
+
'from_addresses': value['fromAddresses'] == null ? undefined : (value['fromAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
129
|
+
'to_addresses': value['toAddresses'] == null ? undefined : (value['toAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
130
|
+
'cc_addresses': value['ccAddresses'] == null ? undefined : (value['ccAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
131
|
+
'reply_to_addresses': value['replyToAddresses'] == null ? undefined : (value['replyToAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
132
|
+
'message_id': value['messageId'],
|
|
133
|
+
'in_reply_to': value['inReplyTo'],
|
|
134
|
+
'references': value['references'],
|
|
135
|
+
'delivered_to': value['deliveredTo'],
|
|
136
|
+
'received_at': value['receivedAt'] == null ? value['receivedAt'] : (0, runtime_1.serializeDateTime)(value['receivedAt']),
|
|
137
|
+
'body_status': value['bodyStatus'],
|
|
138
|
+
'omitted_attachment_count': value['omittedAttachmentCount'],
|
|
139
|
+
'id': value['id'],
|
|
140
|
+
'conversation_id': value['conversationId'],
|
|
141
|
+
'direction': value['direction'],
|
|
142
|
+
'delivery': (0, EmailDelivery_1.EmailDeliveryToJSON)(value['delivery']),
|
|
143
|
+
'labels': (value['labels'].map(EmailLabel_1.EmailLabelToJSON)),
|
|
144
|
+
'withheld': value['withheld'],
|
|
145
|
+
'file_id': value['fileId'],
|
|
146
|
+
'version_id': value['versionId'],
|
|
147
|
+
'attachment_count': value['attachmentCount'],
|
|
148
|
+
'read': value['read'],
|
|
149
|
+
'read_at': value['readAt'] == null ? value['readAt'] : (0, runtime_1.serializeDateTime)(value['readAt']),
|
|
150
|
+
'read_by': value['readBy'],
|
|
151
|
+
'read_by_api_key': value['readByApiKey'],
|
|
152
|
+
'files': (0, EmailSummaryFiles_1.EmailSummaryFilesToJSON)(value['files']),
|
|
153
|
+
'forwarding': (0, EmailForwardingContent_1.EmailForwardingContentToJSON)(value['forwarding']),
|
|
154
|
+
'body_text': value['bodyText'],
|
|
155
|
+
'attachments': (value['attachments'].map(EmailAttachment_1.EmailAttachmentToJSON)),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { EmailDomainAssignedMailboxesInner } from './EmailDomainAssignedMailboxesInner';
|
|
13
|
+
import type { DnsRecord } from './DnsRecord';
|
|
14
|
+
import type { EmailDomainError } from './EmailDomainError';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface EmailDomain
|
|
19
|
+
*/
|
|
20
|
+
export interface EmailDomain {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
suggestedSubdomain?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
rootGuidance?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
pauseReason?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
hostname: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
status: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
*/
|
|
48
|
+
guidance?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
receiving?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
rootDomain?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
pausedAt?: Date | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
lastCheckedAt?: Date | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
ownershipVerifiedAt?: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
setupExpiresAt?: Date | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
readyAt?: Date | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
requiredDnsRecords?: Array<DnsRecord>;
|
|
81
|
+
/**
|
|
82
|
+
* DNS provider of the domain's zone that supports one-click setup, such as Cloudflare. Null otherwise, also while the deployment cannot sign setup links. Get the link with `getEmailDomainSetupLink`; it can still return an error.
|
|
83
|
+
*/
|
|
84
|
+
setupProvider?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
error?: EmailDomainError | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
assignedMailboxes?: Array<EmailDomainAssignedMailboxesInner>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the EmailDomain interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfEmailDomain(value: object): value is EmailDomain;
|
|
98
|
+
export declare function EmailDomainFromJSON(json: any): EmailDomain;
|
|
99
|
+
export declare function EmailDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDomain;
|
|
100
|
+
export declare function EmailDomainToJSON(json: any): EmailDomain;
|
|
101
|
+
export declare function EmailDomainToJSONTyped(value?: EmailDomain | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,92 @@
|
|
|
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.instanceOfEmailDomain = instanceOfEmailDomain;
|
|
17
|
+
exports.EmailDomainFromJSON = EmailDomainFromJSON;
|
|
18
|
+
exports.EmailDomainFromJSONTyped = EmailDomainFromJSONTyped;
|
|
19
|
+
exports.EmailDomainToJSON = EmailDomainToJSON;
|
|
20
|
+
exports.EmailDomainToJSONTyped = EmailDomainToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
const EmailDomainAssignedMailboxesInner_1 = require("./EmailDomainAssignedMailboxesInner");
|
|
23
|
+
const DnsRecord_1 = require("./DnsRecord");
|
|
24
|
+
const EmailDomainError_1 = require("./EmailDomainError");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the EmailDomain interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfEmailDomain(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('hostname' in value) || value['hostname'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function EmailDomainFromJSON(json) {
|
|
38
|
+
return EmailDomainFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function EmailDomainFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'suggestedSubdomain': json['suggested_subdomain'] === undefined ? undefined : json['suggested_subdomain'] === null ? null : json['suggested_subdomain'],
|
|
46
|
+
'rootGuidance': json['root_guidance'] === undefined ? undefined : json['root_guidance'] === null ? null : json['root_guidance'],
|
|
47
|
+
'pauseReason': json['pause_reason'] === undefined ? undefined : json['pause_reason'] === null ? null : json['pause_reason'],
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'hostname': json['hostname'],
|
|
50
|
+
'status': json['status'],
|
|
51
|
+
'guidance': json['guidance'] == null ? undefined : json['guidance'],
|
|
52
|
+
'receiving': json['receiving'] == null ? undefined : json['receiving'],
|
|
53
|
+
'rootDomain': json['root_domain'] == null ? undefined : json['root_domain'],
|
|
54
|
+
'pausedAt': json['paused_at'] === undefined ? undefined : json['paused_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['paused_at'])),
|
|
55
|
+
'lastCheckedAt': json['last_checked_at'] === undefined ? undefined : json['last_checked_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['last_checked_at'])),
|
|
56
|
+
'ownershipVerifiedAt': json['ownership_verified_at'] === undefined ? undefined : json['ownership_verified_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['ownership_verified_at'])),
|
|
57
|
+
'setupExpiresAt': json['setup_expires_at'] === undefined ? undefined : json['setup_expires_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['setup_expires_at'])),
|
|
58
|
+
'readyAt': json['ready_at'] === undefined ? undefined : json['ready_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['ready_at'])),
|
|
59
|
+
'requiredDnsRecords': json['required_dns_records'] == null ? undefined : (json['required_dns_records'].map(DnsRecord_1.DnsRecordFromJSON)),
|
|
60
|
+
'setupProvider': json['setup_provider'] === undefined ? undefined : json['setup_provider'] === null ? null : json['setup_provider'],
|
|
61
|
+
'error': json['error'] === undefined ? undefined : json['error'] === null ? null : (0, EmailDomainError_1.EmailDomainErrorFromJSON)(json['error']),
|
|
62
|
+
'assignedMailboxes': json['assigned_mailboxes'] == null ? undefined : (json['assigned_mailboxes'].map(EmailDomainAssignedMailboxesInner_1.EmailDomainAssignedMailboxesInnerFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function EmailDomainToJSON(json) {
|
|
66
|
+
return EmailDomainToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
function EmailDomainToJSONTyped(value, ignoreDiscriminator = false) {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'suggested_subdomain': value['suggestedSubdomain'],
|
|
74
|
+
'root_guidance': value['rootGuidance'],
|
|
75
|
+
'pause_reason': value['pauseReason'],
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'hostname': value['hostname'],
|
|
78
|
+
'status': value['status'],
|
|
79
|
+
'guidance': value['guidance'],
|
|
80
|
+
'receiving': value['receiving'],
|
|
81
|
+
'root_domain': value['rootDomain'],
|
|
82
|
+
'paused_at': value['pausedAt'] == null ? value['pausedAt'] : (0, runtime_1.serializeDateTime)(value['pausedAt']),
|
|
83
|
+
'last_checked_at': value['lastCheckedAt'] == null ? value['lastCheckedAt'] : (0, runtime_1.serializeDateTime)(value['lastCheckedAt']),
|
|
84
|
+
'ownership_verified_at': value['ownershipVerifiedAt'] == null ? value['ownershipVerifiedAt'] : (0, runtime_1.serializeDateTime)(value['ownershipVerifiedAt']),
|
|
85
|
+
'setup_expires_at': value['setupExpiresAt'] == null ? value['setupExpiresAt'] : (0, runtime_1.serializeDateTime)(value['setupExpiresAt']),
|
|
86
|
+
'ready_at': value['readyAt'] == null ? value['readyAt'] : (0, runtime_1.serializeDateTime)(value['readyAt']),
|
|
87
|
+
'required_dns_records': value['requiredDnsRecords'] == null ? undefined : (value['requiredDnsRecords'].map(DnsRecord_1.DnsRecordToJSON)),
|
|
88
|
+
'setup_provider': value['setupProvider'],
|
|
89
|
+
'error': (0, EmailDomainError_1.EmailDomainErrorToJSON)(value['error']),
|
|
90
|
+
'assigned_mailboxes': value['assignedMailboxes'] == null ? undefined : (value['assignedMailboxes'].map(EmailDomainAssignedMailboxesInner_1.EmailDomainAssignedMailboxesInnerToJSON)),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -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 { EmailDomainAssignedMailboxesInnerEmail } from './EmailDomainAssignedMailboxesInnerEmail';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface EmailDomainAssignedMailboxesInner
|
|
17
|
+
*/
|
|
18
|
+
export interface EmailDomainAssignedMailboxesInner {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
email?: EmailDomainAssignedMailboxesInnerEmail;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the EmailDomainAssignedMailboxesInner interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfEmailDomainAssignedMailboxesInner(value: object): value is EmailDomainAssignedMailboxesInner;
|
|
32
|
+
export declare function EmailDomainAssignedMailboxesInnerFromJSON(json: any): EmailDomainAssignedMailboxesInner;
|
|
33
|
+
export declare function EmailDomainAssignedMailboxesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDomainAssignedMailboxesInner;
|
|
34
|
+
export declare function EmailDomainAssignedMailboxesInnerToJSON(json: any): EmailDomainAssignedMailboxesInner;
|
|
35
|
+
export declare function EmailDomainAssignedMailboxesInnerToJSONTyped(value?: EmailDomainAssignedMailboxesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfEmailDomainAssignedMailboxesInner = instanceOfEmailDomainAssignedMailboxesInner;
|
|
17
|
+
exports.EmailDomainAssignedMailboxesInnerFromJSON = EmailDomainAssignedMailboxesInnerFromJSON;
|
|
18
|
+
exports.EmailDomainAssignedMailboxesInnerFromJSONTyped = EmailDomainAssignedMailboxesInnerFromJSONTyped;
|
|
19
|
+
exports.EmailDomainAssignedMailboxesInnerToJSON = EmailDomainAssignedMailboxesInnerToJSON;
|
|
20
|
+
exports.EmailDomainAssignedMailboxesInnerToJSONTyped = EmailDomainAssignedMailboxesInnerToJSONTyped;
|
|
21
|
+
const EmailDomainAssignedMailboxesInnerEmail_1 = require("./EmailDomainAssignedMailboxesInnerEmail");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the EmailDomainAssignedMailboxesInner interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfEmailDomainAssignedMailboxesInner(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function EmailDomainAssignedMailboxesInnerFromJSON(json) {
|
|
29
|
+
return EmailDomainAssignedMailboxesInnerFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function EmailDomainAssignedMailboxesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
|
+
'email': json['email'] == null ? undefined : (0, EmailDomainAssignedMailboxesInnerEmail_1.EmailDomainAssignedMailboxesInnerEmailFromJSON)(json['email']),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function EmailDomainAssignedMailboxesInnerToJSON(json) {
|
|
41
|
+
return EmailDomainAssignedMailboxesInnerToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function EmailDomainAssignedMailboxesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'email': (0, EmailDomainAssignedMailboxesInnerEmail_1.EmailDomainAssignedMailboxesInnerEmailToJSON)(value['email']),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 EmailDomainAssignedMailboxesInnerEmail
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailDomainAssignedMailboxesInnerEmail {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
address?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EmailDomainAssignedMailboxesInnerEmail interface.
|
|
25
|
+
*/
|
|
26
|
+
export declare function instanceOfEmailDomainAssignedMailboxesInnerEmail(value: object): value is EmailDomainAssignedMailboxesInnerEmail;
|
|
27
|
+
export declare function EmailDomainAssignedMailboxesInnerEmailFromJSON(json: any): EmailDomainAssignedMailboxesInnerEmail;
|
|
28
|
+
export declare function EmailDomainAssignedMailboxesInnerEmailFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailDomainAssignedMailboxesInnerEmail;
|
|
29
|
+
export declare function EmailDomainAssignedMailboxesInnerEmailToJSON(json: any): EmailDomainAssignedMailboxesInnerEmail;
|
|
30
|
+
export declare function EmailDomainAssignedMailboxesInnerEmailToJSONTyped(value?: EmailDomainAssignedMailboxesInnerEmail | null, ignoreDiscriminator?: boolean): any;
|