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,64 @@
|
|
|
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 EmailSubscription
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailSubscription {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
token: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
expiresIn: EmailSubscriptionExpiresInEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
channel: EmailSubscriptionChannelEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
accountId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
mailboxId: string;
|
|
38
|
+
/**
|
|
39
|
+
* Base WebSocket endpoint. Append email_subscription_token as a query parameter.
|
|
40
|
+
*/
|
|
41
|
+
websocketUrl: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const EmailSubscriptionExpiresInEnum: {
|
|
47
|
+
readonly NUMBER_60: 60;
|
|
48
|
+
};
|
|
49
|
+
export type EmailSubscriptionExpiresInEnum = typeof EmailSubscriptionExpiresInEnum[keyof typeof EmailSubscriptionExpiresInEnum];
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const EmailSubscriptionChannelEnum: {
|
|
54
|
+
readonly EmailReceivedChannel: "EmailReceivedChannel";
|
|
55
|
+
};
|
|
56
|
+
export type EmailSubscriptionChannelEnum = typeof EmailSubscriptionChannelEnum[keyof typeof EmailSubscriptionChannelEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the EmailSubscription interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfEmailSubscription(value: object): value is EmailSubscription;
|
|
61
|
+
export declare function EmailSubscriptionFromJSON(json: any): EmailSubscription;
|
|
62
|
+
export declare function EmailSubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailSubscription;
|
|
63
|
+
export declare function EmailSubscriptionToJSON(json: any): EmailSubscription;
|
|
64
|
+
export declare function EmailSubscriptionToJSONTyped(value?: EmailSubscription | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.EmailSubscriptionChannelEnum = exports.EmailSubscriptionExpiresInEnum = void 0;
|
|
17
|
+
exports.instanceOfEmailSubscription = instanceOfEmailSubscription;
|
|
18
|
+
exports.EmailSubscriptionFromJSON = EmailSubscriptionFromJSON;
|
|
19
|
+
exports.EmailSubscriptionFromJSONTyped = EmailSubscriptionFromJSONTyped;
|
|
20
|
+
exports.EmailSubscriptionToJSON = EmailSubscriptionToJSON;
|
|
21
|
+
exports.EmailSubscriptionToJSONTyped = EmailSubscriptionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.EmailSubscriptionExpiresInEnum = {
|
|
26
|
+
NUMBER_60: 60,
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.EmailSubscriptionChannelEnum = {
|
|
32
|
+
EmailReceivedChannel: 'EmailReceivedChannel',
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the EmailSubscription interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfEmailSubscription(value) {
|
|
38
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if ((!('expiresIn' in value) && !('expires_in' in value)) || (value['expiresIn'] === undefined && value['expires_in'] === undefined))
|
|
41
|
+
return false;
|
|
42
|
+
if (value['expiresIn'] !== 60 && value['expires_in'] !== 60)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('channel' in value) || value['channel'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (value['channel'] !== 'EmailReceivedChannel')
|
|
47
|
+
return false;
|
|
48
|
+
if ((!('accountId' in value) && !('account_id' in value)) || (value['accountId'] === undefined && value['account_id'] === undefined))
|
|
49
|
+
return false;
|
|
50
|
+
if ((!('mailboxId' in value) && !('mailbox_id' in value)) || (value['mailboxId'] === undefined && value['mailbox_id'] === undefined))
|
|
51
|
+
return false;
|
|
52
|
+
if ((!('websocketUrl' in value) && !('websocket_url' in value)) || (value['websocketUrl'] === undefined && value['websocket_url'] === undefined))
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
function EmailSubscriptionFromJSON(json) {
|
|
57
|
+
return EmailSubscriptionFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function EmailSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'token': json['token'],
|
|
65
|
+
'expiresIn': json['expires_in'],
|
|
66
|
+
'channel': json['channel'],
|
|
67
|
+
'accountId': json['account_id'],
|
|
68
|
+
'mailboxId': json['mailbox_id'],
|
|
69
|
+
'websocketUrl': json['websocket_url'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function EmailSubscriptionToJSON(json) {
|
|
73
|
+
return EmailSubscriptionToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
function EmailSubscriptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'token': value['token'],
|
|
81
|
+
'expires_in': value['expiresIn'],
|
|
82
|
+
'channel': value['channel'],
|
|
83
|
+
'account_id': value['accountId'],
|
|
84
|
+
'mailbox_id': value['mailboxId'],
|
|
85
|
+
'websocket_url': value['websocketUrl'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
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 { EmailForwarding } from './EmailForwarding';
|
|
13
|
+
import type { DecodedEmailAddress } from './DecodedEmailAddress';
|
|
14
|
+
import type { EmailSummaryFiles } from './EmailSummaryFiles';
|
|
15
|
+
import type { EmailDelivery } from './EmailDelivery';
|
|
16
|
+
import type { EmailLabel } from './EmailLabel';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EmailSummary
|
|
21
|
+
*/
|
|
22
|
+
export interface EmailSummary {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
subject?: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Parsed From authors in header order, retaining multiple authors. Empty when absent/unparseable. Display names are not identity keys.
|
|
29
|
+
*/
|
|
30
|
+
fromAddresses?: Array<DecodedEmailAddress>;
|
|
31
|
+
/**
|
|
32
|
+
* Parsed To recipients in header order, with named groups flattened. Empty when absent/unparseable; not trusted delivery routing.
|
|
33
|
+
*/
|
|
34
|
+
toAddresses?: Array<DecodedEmailAddress>;
|
|
35
|
+
/**
|
|
36
|
+
* Parsed Cc recipients in header order, with named groups flattened. Empty when absent/unparseable.
|
|
37
|
+
*/
|
|
38
|
+
ccAddresses?: Array<DecodedEmailAddress>;
|
|
39
|
+
/**
|
|
40
|
+
* Parsed Reply-To addresses in header order. Empty when absent/unparseable. Does not authorize sending a reply.
|
|
41
|
+
*/
|
|
42
|
+
replyToAddresses?: Array<DecodedEmailAddress>;
|
|
43
|
+
/**
|
|
44
|
+
* Sender Message-ID without angle brackets, preserving case. Null when absent/unparseable/ambiguous; never the Revdoku delivery ID.
|
|
45
|
+
*/
|
|
46
|
+
messageId?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Ordered parent Message-IDs without angle brackets, preserving case. Empty when absent/unparseable; multiple parents are retained.
|
|
49
|
+
*/
|
|
50
|
+
inReplyTo?: Array<string>;
|
|
51
|
+
/**
|
|
52
|
+
* Ordered References IDs without angle brackets, preserving case. Empty when absent/unparseable.
|
|
53
|
+
*/
|
|
54
|
+
references?: Array<string>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
deliveredTo?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Receipt time. For sent emails, the time Revdoku accepted the send.
|
|
61
|
+
*/
|
|
62
|
+
receivedAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
bodyStatus?: EmailSummaryBodyStatusEnum;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
omittedAttachmentCount?: number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* Email ID that identifies the conversation. Replies are linked by email headers. Filter a list with conversation_id.
|
|
77
|
+
*/
|
|
78
|
+
conversationId: string;
|
|
79
|
+
/**
|
|
80
|
+
* received for incoming email; sent for email sent from this mailbox.
|
|
81
|
+
*/
|
|
82
|
+
direction: EmailSummaryDirectionEnum;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
delivery?: EmailDelivery;
|
|
87
|
+
/**
|
|
88
|
+
* 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.
|
|
89
|
+
*/
|
|
90
|
+
labels: Array<EmailLabel>;
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
94
|
+
withheld: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Included only with include_storage=true for file-browser integration.
|
|
97
|
+
*/
|
|
98
|
+
fileId?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Included only with include_storage=true for file-browser integration.
|
|
101
|
+
*/
|
|
102
|
+
versionId?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
attachmentCount: number;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
read: boolean;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
*/
|
|
114
|
+
readAt: Date | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
readBy: object | null;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
readByApiKey: object | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
files?: EmailSummaryFiles;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
forwarding?: EmailForwarding;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @export
|
|
134
|
+
*/
|
|
135
|
+
export declare const EmailSummaryBodyStatusEnum: {
|
|
136
|
+
readonly Complete: "complete";
|
|
137
|
+
readonly Empty: "empty";
|
|
138
|
+
readonly Truncated: "truncated";
|
|
139
|
+
readonly Unavailable: "unavailable";
|
|
140
|
+
readonly Withheld: "withheld";
|
|
141
|
+
};
|
|
142
|
+
export type EmailSummaryBodyStatusEnum = typeof EmailSummaryBodyStatusEnum[keyof typeof EmailSummaryBodyStatusEnum];
|
|
143
|
+
/**
|
|
144
|
+
* @export
|
|
145
|
+
*/
|
|
146
|
+
export declare const EmailSummaryDirectionEnum: {
|
|
147
|
+
readonly Received: "received";
|
|
148
|
+
readonly Sent: "sent";
|
|
149
|
+
};
|
|
150
|
+
export type EmailSummaryDirectionEnum = typeof EmailSummaryDirectionEnum[keyof typeof EmailSummaryDirectionEnum];
|
|
151
|
+
/**
|
|
152
|
+
* Check if a given object implements the EmailSummary interface.
|
|
153
|
+
*/
|
|
154
|
+
export declare function instanceOfEmailSummary(value: object): value is EmailSummary;
|
|
155
|
+
export declare function EmailSummaryFromJSON(json: any): EmailSummary;
|
|
156
|
+
export declare function EmailSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailSummary;
|
|
157
|
+
export declare function EmailSummaryToJSON(json: any): EmailSummary;
|
|
158
|
+
export declare function EmailSummaryToJSONTyped(value?: EmailSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,146 @@
|
|
|
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.EmailSummaryDirectionEnum = exports.EmailSummaryBodyStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfEmailSummary = instanceOfEmailSummary;
|
|
18
|
+
exports.EmailSummaryFromJSON = EmailSummaryFromJSON;
|
|
19
|
+
exports.EmailSummaryFromJSONTyped = EmailSummaryFromJSONTyped;
|
|
20
|
+
exports.EmailSummaryToJSON = EmailSummaryToJSON;
|
|
21
|
+
exports.EmailSummaryToJSONTyped = EmailSummaryToJSONTyped;
|
|
22
|
+
const runtime_1 = require("../runtime");
|
|
23
|
+
const EmailForwarding_1 = require("./EmailForwarding");
|
|
24
|
+
const DecodedEmailAddress_1 = require("./DecodedEmailAddress");
|
|
25
|
+
const EmailSummaryFiles_1 = require("./EmailSummaryFiles");
|
|
26
|
+
const EmailDelivery_1 = require("./EmailDelivery");
|
|
27
|
+
const EmailLabel_1 = require("./EmailLabel");
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.EmailSummaryBodyStatusEnum = {
|
|
32
|
+
Complete: 'complete',
|
|
33
|
+
Empty: 'empty',
|
|
34
|
+
Truncated: 'truncated',
|
|
35
|
+
Unavailable: 'unavailable',
|
|
36
|
+
Withheld: 'withheld',
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
exports.EmailSummaryDirectionEnum = {
|
|
42
|
+
Received: 'received',
|
|
43
|
+
Sent: 'sent',
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the EmailSummary interface.
|
|
47
|
+
*/
|
|
48
|
+
function instanceOfEmailSummary(value) {
|
|
49
|
+
if ((!('receivedAt' in value) && !('received_at' in value)) || (value['receivedAt'] === undefined && value['received_at'] === undefined))
|
|
50
|
+
return false;
|
|
51
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if ((!('conversationId' in value) && !('conversation_id' in value)) || (value['conversationId'] === undefined && value['conversation_id'] === undefined))
|
|
54
|
+
return false;
|
|
55
|
+
if (!('direction' in value) || value['direction'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('labels' in value) || value['labels'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('withheld' in value) || value['withheld'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if ((!('attachmentCount' in value) && !('attachment_count' in value)) || (value['attachmentCount'] === undefined && value['attachment_count'] === undefined))
|
|
62
|
+
return false;
|
|
63
|
+
if (!('read' in value) || value['read'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if ((!('readAt' in value) && !('read_at' in value)) || (value['readAt'] === undefined && value['read_at'] === undefined))
|
|
66
|
+
return false;
|
|
67
|
+
if ((!('readBy' in value) && !('read_by' in value)) || (value['readBy'] === undefined && value['read_by'] === undefined))
|
|
68
|
+
return false;
|
|
69
|
+
if ((!('readByApiKey' in value) && !('read_by_api_key' in value)) || (value['readByApiKey'] === undefined && value['read_by_api_key'] === undefined))
|
|
70
|
+
return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
function EmailSummaryFromJSON(json) {
|
|
74
|
+
return EmailSummaryFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
function EmailSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
'subject': json['subject'] === undefined ? undefined : json['subject'] === null ? null : json['subject'],
|
|
82
|
+
'fromAddresses': json['from_addresses'] == null ? undefined : (json['from_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
83
|
+
'toAddresses': json['to_addresses'] == null ? undefined : (json['to_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
84
|
+
'ccAddresses': json['cc_addresses'] == null ? undefined : (json['cc_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
85
|
+
'replyToAddresses': json['reply_to_addresses'] == null ? undefined : (json['reply_to_addresses'].map(DecodedEmailAddress_1.DecodedEmailAddressFromJSON)),
|
|
86
|
+
'messageId': json['message_id'] === undefined ? undefined : json['message_id'] === null ? null : json['message_id'],
|
|
87
|
+
'inReplyTo': json['in_reply_to'] == null ? undefined : json['in_reply_to'],
|
|
88
|
+
'references': json['references'] == null ? undefined : json['references'],
|
|
89
|
+
'deliveredTo': json['delivered_to'] == null ? undefined : json['delivered_to'],
|
|
90
|
+
'receivedAt': (json['received_at'] == null ? json['received_at'] : (0, runtime_1.parseDateTime)(json['received_at'])),
|
|
91
|
+
'bodyStatus': json['body_status'] == null ? undefined : json['body_status'],
|
|
92
|
+
'omittedAttachmentCount': json['omitted_attachment_count'] == null ? undefined : json['omitted_attachment_count'],
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'conversationId': json['conversation_id'],
|
|
95
|
+
'direction': json['direction'],
|
|
96
|
+
'delivery': json['delivery'] == null ? undefined : (0, EmailDelivery_1.EmailDeliveryFromJSON)(json['delivery']),
|
|
97
|
+
'labels': (json['labels'].map(EmailLabel_1.EmailLabelFromJSON)),
|
|
98
|
+
'withheld': json['withheld'],
|
|
99
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
100
|
+
'versionId': json['version_id'] == null ? undefined : json['version_id'],
|
|
101
|
+
'attachmentCount': json['attachment_count'],
|
|
102
|
+
'read': json['read'],
|
|
103
|
+
'readAt': (json['read_at'] == null ? null : (0, runtime_1.parseDateTime)(json['read_at'])),
|
|
104
|
+
'readBy': json['read_by'],
|
|
105
|
+
'readByApiKey': json['read_by_api_key'],
|
|
106
|
+
'files': json['files'] == null ? undefined : (0, EmailSummaryFiles_1.EmailSummaryFilesFromJSON)(json['files']),
|
|
107
|
+
'forwarding': json['forwarding'] == null ? undefined : (0, EmailForwarding_1.EmailForwardingFromJSON)(json['forwarding']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function EmailSummaryToJSON(json) {
|
|
111
|
+
return EmailSummaryToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
function EmailSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
'subject': value['subject'],
|
|
119
|
+
'from_addresses': value['fromAddresses'] == null ? undefined : (value['fromAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
120
|
+
'to_addresses': value['toAddresses'] == null ? undefined : (value['toAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
121
|
+
'cc_addresses': value['ccAddresses'] == null ? undefined : (value['ccAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
122
|
+
'reply_to_addresses': value['replyToAddresses'] == null ? undefined : (value['replyToAddresses'].map(DecodedEmailAddress_1.DecodedEmailAddressToJSON)),
|
|
123
|
+
'message_id': value['messageId'],
|
|
124
|
+
'in_reply_to': value['inReplyTo'],
|
|
125
|
+
'references': value['references'],
|
|
126
|
+
'delivered_to': value['deliveredTo'],
|
|
127
|
+
'received_at': value['receivedAt'] == null ? value['receivedAt'] : (0, runtime_1.serializeDateTime)(value['receivedAt']),
|
|
128
|
+
'body_status': value['bodyStatus'],
|
|
129
|
+
'omitted_attachment_count': value['omittedAttachmentCount'],
|
|
130
|
+
'id': value['id'],
|
|
131
|
+
'conversation_id': value['conversationId'],
|
|
132
|
+
'direction': value['direction'],
|
|
133
|
+
'delivery': (0, EmailDelivery_1.EmailDeliveryToJSON)(value['delivery']),
|
|
134
|
+
'labels': (value['labels'].map(EmailLabel_1.EmailLabelToJSON)),
|
|
135
|
+
'withheld': value['withheld'],
|
|
136
|
+
'file_id': value['fileId'],
|
|
137
|
+
'version_id': value['versionId'],
|
|
138
|
+
'attachment_count': value['attachmentCount'],
|
|
139
|
+
'read': value['read'],
|
|
140
|
+
'read_at': value['readAt'] == null ? value['readAt'] : (0, runtime_1.serializeDateTime)(value['readAt']),
|
|
141
|
+
'read_by': value['readBy'],
|
|
142
|
+
'read_by_api_key': value['readByApiKey'],
|
|
143
|
+
'files': (0, EmailSummaryFiles_1.EmailSummaryFilesToJSON)(value['files']),
|
|
144
|
+
'forwarding': (0, EmailForwarding_1.EmailForwardingToJSON)(value['forwarding']),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -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
|
+
* Included only with include_storage=true for file-browser integration.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailSummaryFiles
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailSummaryFiles {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
bodyId: string | null;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
originalId: string | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
attachmentIds: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Storage folder containing this email, without a trailing slash.
|
|
32
|
+
*/
|
|
33
|
+
directory?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the EmailSummaryFiles interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfEmailSummaryFiles(value: object): value is EmailSummaryFiles;
|
|
39
|
+
export declare function EmailSummaryFilesFromJSON(json: any): EmailSummaryFiles;
|
|
40
|
+
export declare function EmailSummaryFilesFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailSummaryFiles;
|
|
41
|
+
export declare function EmailSummaryFilesToJSON(json: any): EmailSummaryFiles;
|
|
42
|
+
export declare function EmailSummaryFilesToJSONTyped(value?: EmailSummaryFiles | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.instanceOfEmailSummaryFiles = instanceOfEmailSummaryFiles;
|
|
17
|
+
exports.EmailSummaryFilesFromJSON = EmailSummaryFilesFromJSON;
|
|
18
|
+
exports.EmailSummaryFilesFromJSONTyped = EmailSummaryFilesFromJSONTyped;
|
|
19
|
+
exports.EmailSummaryFilesToJSON = EmailSummaryFilesToJSON;
|
|
20
|
+
exports.EmailSummaryFilesToJSONTyped = EmailSummaryFilesToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EmailSummaryFiles interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfEmailSummaryFiles(value) {
|
|
25
|
+
if ((!('bodyId' in value) && !('body_id' in value)) || (value['bodyId'] === undefined && value['body_id'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('originalId' in value) && !('original_id' in value)) || (value['originalId'] === undefined && value['original_id'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('attachmentIds' in value) && !('attachment_ids' in value)) || (value['attachmentIds'] === undefined && value['attachment_ids'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function EmailSummaryFilesFromJSON(json) {
|
|
34
|
+
return EmailSummaryFilesFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function EmailSummaryFilesFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'bodyId': json['body_id'],
|
|
42
|
+
'originalId': json['original_id'],
|
|
43
|
+
'attachmentIds': json['attachment_ids'],
|
|
44
|
+
'directory': json['directory'] == null ? undefined : json['directory'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function EmailSummaryFilesToJSON(json) {
|
|
48
|
+
return EmailSummaryFilesToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function EmailSummaryFilesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'body_id': value['bodyId'],
|
|
56
|
+
'original_id': value['originalId'],
|
|
57
|
+
'attachment_ids': value['attachmentIds'],
|
|
58
|
+
'directory': value['directory'],
|
|
59
|
+
};
|
|
60
|
+
}
|