revdoku 0.0.0-stage → 2.1.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 +644 -0
- package/dist/apis/DefaultApi.d.ts +1618 -0
- package/dist/apis/DefaultApi.js +3109 -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 +47 -0
- package/dist/models/EmailDelivery.js +65 -0
- package/dist/models/EmailDetail.d.ts +167 -0
- package/dist/models/EmailDetail.js +157 -0
- package/dist/models/EmailDomain.d.ts +97 -0
- package/dist/models/EmailDomain.js +90 -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 +166 -0
- package/dist/models/ErrorCode.js +192 -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/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 +38 -0
- package/dist/models/UpdateEmailRequest.js +54 -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 +155 -0
- package/dist/models/index.js +173 -0
- package/dist/runtime.d.ts +196 -0
- package/dist/runtime.js +421 -0
- package/package.json +54 -4
|
@@ -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.1.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.instanceOfListFileVersions200Response = instanceOfListFileVersions200Response;
|
|
17
|
+
exports.ListFileVersions200ResponseFromJSON = ListFileVersions200ResponseFromJSON;
|
|
18
|
+
exports.ListFileVersions200ResponseFromJSONTyped = ListFileVersions200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListFileVersions200ResponseToJSON = ListFileVersions200ResponseToJSON;
|
|
20
|
+
exports.ListFileVersions200ResponseToJSONTyped = ListFileVersions200ResponseToJSONTyped;
|
|
21
|
+
const FileVersionList_1 = require("./FileVersionList");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListFileVersions200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfListFileVersions200Response(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ListFileVersions200ResponseFromJSON(json) {
|
|
33
|
+
return ListFileVersions200ResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ListFileVersions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'data': (0, FileVersionList_1.FileVersionListFromJSON)(json['data']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ListFileVersions200ResponseToJSON(json) {
|
|
45
|
+
return ListFileVersions200ResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ListFileVersions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'success': value['success'],
|
|
53
|
+
'data': (0, FileVersionList_1.FileVersionListToJSON)(value['data']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Revdoku API
|
|
3
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.1.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 { FileList } from './FileList';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListFiles200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListFiles200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
success: boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
data: FileList;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ListFiles200Response interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfListFiles200Response(value: object): value is ListFiles200Response;
|
|
32
|
+
export declare function ListFiles200ResponseFromJSON(json: any): ListFiles200Response;
|
|
33
|
+
export declare function ListFiles200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListFiles200Response;
|
|
34
|
+
export declare function ListFiles200ResponseToJSON(json: any): ListFiles200Response;
|
|
35
|
+
export declare function ListFiles200ResponseToJSONTyped(value?: ListFiles200Response | 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.1.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.instanceOfListFiles200Response = instanceOfListFiles200Response;
|
|
17
|
+
exports.ListFiles200ResponseFromJSON = ListFiles200ResponseFromJSON;
|
|
18
|
+
exports.ListFiles200ResponseFromJSONTyped = ListFiles200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListFiles200ResponseToJSON = ListFiles200ResponseToJSON;
|
|
20
|
+
exports.ListFiles200ResponseToJSONTyped = ListFiles200ResponseToJSONTyped;
|
|
21
|
+
const FileList_1 = require("./FileList");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListFiles200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfListFiles200Response(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ListFiles200ResponseFromJSON(json) {
|
|
33
|
+
return ListFiles200ResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ListFiles200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'data': (0, FileList_1.FileListFromJSON)(json['data']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ListFiles200ResponseToJSON(json) {
|
|
45
|
+
return ListFiles200ResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ListFiles200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'success': value['success'],
|
|
53
|
+
'data': (0, FileList_1.FileListToJSON)(value['data']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Revdoku API
|
|
3
|
+
* Mailboxes for AI agents, with private file storage. Create mailboxes, read and reply to email, and store files. Guide: https://revdoku.com/api.md. Create an account at https://app.revdoku.com/users/sign_up.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.1.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 { MailboxList } from './MailboxList';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListMailboxes200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface ListMailboxes200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
success: boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
data: MailboxList;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the ListMailboxes200Response interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfListMailboxes200Response(value: object): value is ListMailboxes200Response;
|
|
32
|
+
export declare function ListMailboxes200ResponseFromJSON(json: any): ListMailboxes200Response;
|
|
33
|
+
export declare function ListMailboxes200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListMailboxes200Response;
|
|
34
|
+
export declare function ListMailboxes200ResponseToJSON(json: any): ListMailboxes200Response;
|
|
35
|
+
export declare function ListMailboxes200ResponseToJSONTyped(value?: ListMailboxes200Response | 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.1.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.instanceOfListMailboxes200Response = instanceOfListMailboxes200Response;
|
|
17
|
+
exports.ListMailboxes200ResponseFromJSON = ListMailboxes200ResponseFromJSON;
|
|
18
|
+
exports.ListMailboxes200ResponseFromJSONTyped = ListMailboxes200ResponseFromJSONTyped;
|
|
19
|
+
exports.ListMailboxes200ResponseToJSON = ListMailboxes200ResponseToJSON;
|
|
20
|
+
exports.ListMailboxes200ResponseToJSONTyped = ListMailboxes200ResponseToJSONTyped;
|
|
21
|
+
const MailboxList_1 = require("./MailboxList");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListMailboxes200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfListMailboxes200Response(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function ListMailboxes200ResponseFromJSON(json) {
|
|
33
|
+
return ListMailboxes200ResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function ListMailboxes200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'data': (0, MailboxList_1.MailboxListFromJSON)(json['data']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function ListMailboxes200ResponseToJSON(json) {
|
|
45
|
+
return ListMailboxes200ResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function ListMailboxes200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'success': value['success'],
|
|
53
|
+
'data': (0, MailboxList_1.MailboxListToJSON)(value['data']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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.1.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.1.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.1.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.1.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.1.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.1.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
|
+
}
|