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,111 @@
|
|
|
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 { MailboxLock } from './MailboxLock';
|
|
13
|
+
import type { MailboxEmail } from './MailboxEmail';
|
|
14
|
+
import type { MailboxAction } from './MailboxAction';
|
|
15
|
+
/**
|
|
16
|
+
* A mailbox: one receiving address with private file storage. Label it as title (email.address), or by email.address alone when title is null. Use id in API calls.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Mailbox
|
|
19
|
+
*/
|
|
20
|
+
export interface Mailbox {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
accountId: string;
|
|
29
|
+
/**
|
|
30
|
+
* Mailbox title chosen by people. Defaults to the email username given at creation. Null when unset or when the caller cannot see email.address.
|
|
31
|
+
*/
|
|
32
|
+
title?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
description?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Your application data. PATCH replaces the whole object.
|
|
39
|
+
*/
|
|
40
|
+
metadata?: {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Send as expected_metadata_version on PATCH. Changes only when description or metadata changes.
|
|
45
|
+
*/
|
|
46
|
+
metadataVersion: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
email: MailboxEmail;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
archived: boolean;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
archivedAt?: Date | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
lock?: MailboxLock;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
storageBytes?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Current files, including stored emails and attachments.
|
|
69
|
+
*/
|
|
70
|
+
filesCount?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Current mailbox file-tree version. Send as expected_mailbox_version on file writes to detect concurrent changes.
|
|
73
|
+
*/
|
|
74
|
+
versionId: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
versionNumber: number;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
createdAt?: Date | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
updatedAt?: Date | null;
|
|
87
|
+
/**
|
|
88
|
+
* Opens the mailbox for signed-in members. It does not grant access.
|
|
89
|
+
*/
|
|
90
|
+
dashboardUrl?: string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
archive: MailboxAction;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
unarchive: MailboxAction;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
_delete: MailboxAction;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the Mailbox interface.
|
|
106
|
+
*/
|
|
107
|
+
export declare function instanceOfMailbox(value: object): value is Mailbox;
|
|
108
|
+
export declare function MailboxFromJSON(json: any): Mailbox;
|
|
109
|
+
export declare function MailboxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Mailbox;
|
|
110
|
+
export declare function MailboxToJSON(json: any): Mailbox;
|
|
111
|
+
export declare function MailboxToJSONTyped(value?: Mailbox | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,110 @@
|
|
|
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.instanceOfMailbox = instanceOfMailbox;
|
|
17
|
+
exports.MailboxFromJSON = MailboxFromJSON;
|
|
18
|
+
exports.MailboxFromJSONTyped = MailboxFromJSONTyped;
|
|
19
|
+
exports.MailboxToJSON = MailboxToJSON;
|
|
20
|
+
exports.MailboxToJSONTyped = MailboxToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
const MailboxLock_1 = require("./MailboxLock");
|
|
23
|
+
const MailboxEmail_1 = require("./MailboxEmail");
|
|
24
|
+
const MailboxAction_1 = require("./MailboxAction");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the Mailbox interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfMailbox(value) {
|
|
29
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('accountId' in value) && !('account_id' in value)) || (value['accountId'] === undefined && value['account_id'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('metadataVersion' in value) && !('metadata_version' in value)) || (value['metadataVersion'] === undefined && value['metadata_version'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('archived' in value) || value['archived'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if ((!('versionId' in value) && !('version_id' in value)) || (value['versionId'] === undefined && value['version_id'] === undefined))
|
|
40
|
+
return false;
|
|
41
|
+
if ((!('versionNumber' in value) && !('version_number' in value)) || (value['versionNumber'] === undefined && value['version_number'] === undefined))
|
|
42
|
+
return false;
|
|
43
|
+
if (!('archive' in value) || value['archive'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('unarchive' in value) || value['unarchive'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if ((!('_delete' in value) && !('delete' in value)) || (value['_delete'] === undefined && value['delete'] === undefined))
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
function MailboxFromJSON(json) {
|
|
52
|
+
return MailboxFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function MailboxFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'accountId': json['account_id'],
|
|
61
|
+
'title': json['title'] === undefined ? undefined : json['title'] === null ? null : json['title'],
|
|
62
|
+
'description': json['description'] === undefined ? undefined : json['description'] === null ? null : json['description'],
|
|
63
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
64
|
+
'metadataVersion': json['metadata_version'],
|
|
65
|
+
'email': (0, MailboxEmail_1.MailboxEmailFromJSON)(json['email']),
|
|
66
|
+
'archived': json['archived'],
|
|
67
|
+
'archivedAt': json['archived_at'] === undefined ? undefined : json['archived_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['archived_at'])),
|
|
68
|
+
'lock': json['lock'] == null ? undefined : (0, MailboxLock_1.MailboxLockFromJSON)(json['lock']),
|
|
69
|
+
'storageBytes': json['storage_bytes'] == null ? undefined : json['storage_bytes'],
|
|
70
|
+
'filesCount': json['files_count'] == null ? undefined : json['files_count'],
|
|
71
|
+
'versionId': json['version_id'],
|
|
72
|
+
'versionNumber': json['version_number'],
|
|
73
|
+
'createdAt': json['created_at'] === undefined ? undefined : json['created_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['created_at'])),
|
|
74
|
+
'updatedAt': json['updated_at'] === undefined ? undefined : json['updated_at'] === null ? null : ((0, runtime_1.parseDateTime)(json['updated_at'])),
|
|
75
|
+
'dashboardUrl': json['dashboard_url'] == null ? undefined : json['dashboard_url'],
|
|
76
|
+
'archive': (0, MailboxAction_1.MailboxActionFromJSON)(json['archive']),
|
|
77
|
+
'unarchive': (0, MailboxAction_1.MailboxActionFromJSON)(json['unarchive']),
|
|
78
|
+
'_delete': (0, MailboxAction_1.MailboxActionFromJSON)(json['delete']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function MailboxToJSON(json) {
|
|
82
|
+
return MailboxToJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
function MailboxToJSONTyped(value, ignoreDiscriminator = false) {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
'id': value['id'],
|
|
90
|
+
'account_id': value['accountId'],
|
|
91
|
+
'title': value['title'],
|
|
92
|
+
'description': value['description'],
|
|
93
|
+
'metadata': value['metadata'],
|
|
94
|
+
'metadata_version': value['metadataVersion'],
|
|
95
|
+
'email': (0, MailboxEmail_1.MailboxEmailToJSON)(value['email']),
|
|
96
|
+
'archived': value['archived'],
|
|
97
|
+
'archived_at': value['archivedAt'] == null ? value['archivedAt'] : (0, runtime_1.serializeDateTime)(value['archivedAt']),
|
|
98
|
+
'lock': (0, MailboxLock_1.MailboxLockToJSON)(value['lock']),
|
|
99
|
+
'storage_bytes': value['storageBytes'],
|
|
100
|
+
'files_count': value['filesCount'],
|
|
101
|
+
'version_id': value['versionId'],
|
|
102
|
+
'version_number': value['versionNumber'],
|
|
103
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : (0, runtime_1.serializeDateTime)(value['createdAt']),
|
|
104
|
+
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : (0, runtime_1.serializeDateTime)(value['updatedAt']),
|
|
105
|
+
'dashboard_url': value['dashboardUrl'],
|
|
106
|
+
'archive': (0, MailboxAction_1.MailboxActionToJSON)(value['archive']),
|
|
107
|
+
'unarchive': (0, MailboxAction_1.MailboxActionToJSON)(value['unarchive']),
|
|
108
|
+
'delete': (0, MailboxAction_1.MailboxActionToJSON)(value['_delete']),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Revdoku API
|
|
3
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.2.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MailboxAction
|
|
16
|
+
*/
|
|
17
|
+
export interface MailboxAction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
allowed: boolean;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
blockedReason?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
requiredAction?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Delete only: send this value as confirmation in DELETE /v1/mailboxes/{mailbox_id} after the user confirms.
|
|
32
|
+
*/
|
|
33
|
+
confirmation?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the MailboxAction interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfMailboxAction(value: object): value is MailboxAction;
|
|
39
|
+
export declare function MailboxActionFromJSON(json: any): MailboxAction;
|
|
40
|
+
export declare function MailboxActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailboxAction;
|
|
41
|
+
export declare function MailboxActionToJSON(json: any): MailboxAction;
|
|
42
|
+
export declare function MailboxActionToJSONTyped(value?: MailboxAction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Revdoku API
|
|
6
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.2.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMailboxAction = instanceOfMailboxAction;
|
|
17
|
+
exports.MailboxActionFromJSON = MailboxActionFromJSON;
|
|
18
|
+
exports.MailboxActionFromJSONTyped = MailboxActionFromJSONTyped;
|
|
19
|
+
exports.MailboxActionToJSON = MailboxActionToJSON;
|
|
20
|
+
exports.MailboxActionToJSONTyped = MailboxActionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MailboxAction interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMailboxAction(value) {
|
|
25
|
+
if (!('allowed' in value) || value['allowed'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function MailboxActionFromJSON(json) {
|
|
30
|
+
return MailboxActionFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function MailboxActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'allowed': json['allowed'],
|
|
38
|
+
'blockedReason': json['blocked_reason'] == null ? undefined : json['blocked_reason'],
|
|
39
|
+
'requiredAction': json['required_action'] == null ? undefined : json['required_action'],
|
|
40
|
+
'confirmation': json['confirmation'] == null ? undefined : json['confirmation'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function MailboxActionToJSON(json) {
|
|
44
|
+
return MailboxActionToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function MailboxActionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'allowed': value['allowed'],
|
|
52
|
+
'blocked_reason': value['blockedReason'],
|
|
53
|
+
'required_action': value['requiredAction'],
|
|
54
|
+
'confirmation': value['confirmation'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Revdoku API
|
|
3
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.2.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Exact authorized mailbox totals after query filtering, before status filtering and pagination.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MailboxCounts
|
|
16
|
+
*/
|
|
17
|
+
export interface MailboxCounts {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
active: number;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
archived: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
total: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MailboxCounts interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMailboxCounts(value: object): value is MailboxCounts;
|
|
35
|
+
export declare function MailboxCountsFromJSON(json: any): MailboxCounts;
|
|
36
|
+
export declare function MailboxCountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailboxCounts;
|
|
37
|
+
export declare function MailboxCountsToJSON(json: any): MailboxCounts;
|
|
38
|
+
export declare function MailboxCountsToJSONTyped(value?: MailboxCounts | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Revdoku API
|
|
6
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.2.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMailboxCounts = instanceOfMailboxCounts;
|
|
17
|
+
exports.MailboxCountsFromJSON = MailboxCountsFromJSON;
|
|
18
|
+
exports.MailboxCountsFromJSONTyped = MailboxCountsFromJSONTyped;
|
|
19
|
+
exports.MailboxCountsToJSON = MailboxCountsToJSON;
|
|
20
|
+
exports.MailboxCountsToJSONTyped = MailboxCountsToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the MailboxCounts interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfMailboxCounts(value) {
|
|
25
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('archived' in value) || value['archived'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function MailboxCountsFromJSON(json) {
|
|
34
|
+
return MailboxCountsFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function MailboxCountsFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'active': json['active'],
|
|
42
|
+
'archived': json['archived'],
|
|
43
|
+
'total': json['total'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function MailboxCountsToJSON(json) {
|
|
47
|
+
return MailboxCountsToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function MailboxCountsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'active': value['active'],
|
|
55
|
+
'archived': value['archived'],
|
|
56
|
+
'total': value['total'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { MailboxEmailOptions } from './MailboxEmailOptions';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MailboxCreate
|
|
17
|
+
*/
|
|
18
|
+
export interface MailboxCreate {
|
|
19
|
+
/**
|
|
20
|
+
* Optional title. Defaults to email.username as given, or to the generated name without its random suffix. A title that another active mailbox uses returns 409 MAILBOX_TITLE_TAKEN.
|
|
21
|
+
*/
|
|
22
|
+
title?: string;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
metadata?: {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
email?: MailboxEmailOptions;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MailboxCreate interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfMailboxCreate(value: object): value is MailboxCreate;
|
|
42
|
+
export declare function MailboxCreateFromJSON(json: any): MailboxCreate;
|
|
43
|
+
export declare function MailboxCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailboxCreate;
|
|
44
|
+
export declare function MailboxCreateToJSON(json: any): MailboxCreate;
|
|
45
|
+
export declare function MailboxCreateToJSONTyped(value?: MailboxCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Revdoku API
|
|
6
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.2.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfMailboxCreate = instanceOfMailboxCreate;
|
|
17
|
+
exports.MailboxCreateFromJSON = MailboxCreateFromJSON;
|
|
18
|
+
exports.MailboxCreateFromJSONTyped = MailboxCreateFromJSONTyped;
|
|
19
|
+
exports.MailboxCreateToJSON = MailboxCreateToJSON;
|
|
20
|
+
exports.MailboxCreateToJSONTyped = MailboxCreateToJSONTyped;
|
|
21
|
+
const MailboxEmailOptions_1 = require("./MailboxEmailOptions");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MailboxCreate interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMailboxCreate(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function MailboxCreateFromJSON(json) {
|
|
29
|
+
return MailboxCreateFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function MailboxCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
37
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
38
|
+
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
39
|
+
'email': json['email'] == null ? undefined : (0, MailboxEmailOptions_1.MailboxEmailOptionsFromJSON)(json['email']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function MailboxCreateToJSON(json) {
|
|
43
|
+
return MailboxCreateToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function MailboxCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'title': value['title'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
'metadata': value['metadata'],
|
|
53
|
+
'email': (0, MailboxEmailOptions_1.MailboxEmailOptionsToJSON)(value['email']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
* Receiving and sending state of a mailbox. Counts read the email index without reading content.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MailboxEmail
|
|
16
|
+
*/
|
|
17
|
+
export interface MailboxEmail {
|
|
18
|
+
/**
|
|
19
|
+
* Primary address. Present when the credential has write access to the mailbox. Show it after the title.
|
|
20
|
+
*/
|
|
21
|
+
address?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Emails currently stored. Null while the email index is being prepared.
|
|
24
|
+
*/
|
|
25
|
+
messageCount: number | null;
|
|
26
|
+
/**
|
|
27
|
+
* Stored emails with shared unread status. Null while the email index is being prepared.
|
|
28
|
+
*/
|
|
29
|
+
unreadCount: number | null;
|
|
30
|
+
/**
|
|
31
|
+
* Receipt time of the latest saved email; null before the first email.
|
|
32
|
+
*/
|
|
33
|
+
lastReceivedAt: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the mailbox can receive email now.
|
|
36
|
+
*/
|
|
37
|
+
receivingEnabled: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Why receiving is unavailable. Omitted when receiving_enabled is true.
|
|
40
|
+
*/
|
|
41
|
+
blockedReason?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the mailbox can send replies now.
|
|
44
|
+
*/
|
|
45
|
+
sendingEnabled: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Why sending is unavailable. Omitted when sending_enabled is true.
|
|
48
|
+
*/
|
|
49
|
+
sendingBlockedReason?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the MailboxEmail interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfMailboxEmail(value: object): value is MailboxEmail;
|
|
55
|
+
export declare function MailboxEmailFromJSON(json: any): MailboxEmail;
|
|
56
|
+
export declare function MailboxEmailFromJSONTyped(json: any, ignoreDiscriminator: boolean): MailboxEmail;
|
|
57
|
+
export declare function MailboxEmailToJSON(json: any): MailboxEmail;
|
|
58
|
+
export declare function MailboxEmailToJSONTyped(value?: MailboxEmail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfMailboxEmail = instanceOfMailboxEmail;
|
|
17
|
+
exports.MailboxEmailFromJSON = MailboxEmailFromJSON;
|
|
18
|
+
exports.MailboxEmailFromJSONTyped = MailboxEmailFromJSONTyped;
|
|
19
|
+
exports.MailboxEmailToJSON = MailboxEmailToJSON;
|
|
20
|
+
exports.MailboxEmailToJSONTyped = MailboxEmailToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MailboxEmail interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMailboxEmail(value) {
|
|
26
|
+
if ((!('messageCount' in value) && !('message_count' in value)) || (value['messageCount'] === undefined && value['message_count'] === undefined))
|
|
27
|
+
return false;
|
|
28
|
+
if ((!('unreadCount' in value) && !('unread_count' in value)) || (value['unreadCount'] === undefined && value['unread_count'] === undefined))
|
|
29
|
+
return false;
|
|
30
|
+
if ((!('lastReceivedAt' in value) && !('last_received_at' in value)) || (value['lastReceivedAt'] === undefined && value['last_received_at'] === undefined))
|
|
31
|
+
return false;
|
|
32
|
+
if ((!('receivingEnabled' in value) && !('receiving_enabled' in value)) || (value['receivingEnabled'] === undefined && value['receiving_enabled'] === undefined))
|
|
33
|
+
return false;
|
|
34
|
+
if ((!('sendingEnabled' in value) && !('sending_enabled' in value)) || (value['sendingEnabled'] === undefined && value['sending_enabled'] === undefined))
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function MailboxEmailFromJSON(json) {
|
|
39
|
+
return MailboxEmailFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function MailboxEmailFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
47
|
+
'messageCount': json['message_count'],
|
|
48
|
+
'unreadCount': json['unread_count'],
|
|
49
|
+
'lastReceivedAt': (json['last_received_at'] == null ? null : (0, runtime_1.parseDateTime)(json['last_received_at'])),
|
|
50
|
+
'receivingEnabled': json['receiving_enabled'],
|
|
51
|
+
'blockedReason': json['blocked_reason'] == null ? undefined : json['blocked_reason'],
|
|
52
|
+
'sendingEnabled': json['sending_enabled'],
|
|
53
|
+
'sendingBlockedReason': json['sending_blocked_reason'] == null ? undefined : json['sending_blocked_reason'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function MailboxEmailToJSON(json) {
|
|
57
|
+
return MailboxEmailToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function MailboxEmailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'address': value['address'],
|
|
65
|
+
'message_count': value['messageCount'],
|
|
66
|
+
'unread_count': value['unreadCount'],
|
|
67
|
+
'last_received_at': value['lastReceivedAt'] == null ? value['lastReceivedAt'] : (0, runtime_1.serializeDateTime)(value['lastReceivedAt']),
|
|
68
|
+
'receiving_enabled': value['receivingEnabled'],
|
|
69
|
+
'blocked_reason': value['blockedReason'],
|
|
70
|
+
'sending_enabled': value['sendingEnabled'],
|
|
71
|
+
'sending_blocked_reason': value['sendingBlockedReason'],
|
|
72
|
+
};
|
|
73
|
+
}
|