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,72 @@
|
|
|
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.instanceOfAppendTextResult = instanceOfAppendTextResult;
|
|
17
|
+
exports.AppendTextResultFromJSON = AppendTextResultFromJSON;
|
|
18
|
+
exports.AppendTextResultFromJSONTyped = AppendTextResultFromJSONTyped;
|
|
19
|
+
exports.AppendTextResultToJSON = AppendTextResultToJSON;
|
|
20
|
+
exports.AppendTextResultToJSONTyped = AppendTextResultToJSONTyped;
|
|
21
|
+
const FileVersion_1 = require("./FileVersion");
|
|
22
|
+
const MailboxFile_1 = require("./MailboxFile");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AppendTextResult interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAppendTextResult(value) {
|
|
27
|
+
if (!('file' in value) || value['file'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('version' in value) || value['version'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('appended' in value) || value['appended'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('appendedBytes' in value) && !('appended_bytes' in value)) || (value['appendedBytes'] === undefined && value['appended_bytes'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
if ((!('newlineInserted' in value) && !('newline_inserted' in value)) || (value['newlineInserted'] === undefined && value['newline_inserted'] === undefined))
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AppendTextResultFromJSON(json) {
|
|
42
|
+
return AppendTextResultFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AppendTextResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'file': (0, MailboxFile_1.MailboxFileFromJSON)(json['file']),
|
|
50
|
+
'version': (0, FileVersion_1.FileVersionFromJSON)(json['version']),
|
|
51
|
+
'path': json['path'],
|
|
52
|
+
'appended': json['appended'],
|
|
53
|
+
'appendedBytes': json['appended_bytes'],
|
|
54
|
+
'newlineInserted': json['newline_inserted'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function AppendTextResultToJSON(json) {
|
|
58
|
+
return AppendTextResultToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function AppendTextResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'file': (0, MailboxFile_1.MailboxFileToJSON)(value['file']),
|
|
66
|
+
'version': (0, FileVersion_1.FileVersionToJSON)(value['version']),
|
|
67
|
+
'path': value['path'],
|
|
68
|
+
'appended': value['appended'],
|
|
69
|
+
'appended_bytes': value['appendedBytes'],
|
|
70
|
+
'newline_inserted': value['newlineInserted'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 BrowserLink
|
|
16
|
+
*/
|
|
17
|
+
export interface BrowserLink {
|
|
18
|
+
/**
|
|
19
|
+
* Dashboard link. The user signs in normally; the link grants nothing.
|
|
20
|
+
*/
|
|
21
|
+
url: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
path: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
singleUse?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
requiresLogin?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
redirectPath?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the BrowserLink interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfBrowserLink(value: object): value is BrowserLink;
|
|
43
|
+
export declare function BrowserLinkFromJSON(json: any): BrowserLink;
|
|
44
|
+
export declare function BrowserLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrowserLink;
|
|
45
|
+
export declare function BrowserLinkToJSON(json: any): BrowserLink;
|
|
46
|
+
export declare function BrowserLinkToJSONTyped(value?: BrowserLink | 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.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.instanceOfBrowserLink = instanceOfBrowserLink;
|
|
17
|
+
exports.BrowserLinkFromJSON = BrowserLinkFromJSON;
|
|
18
|
+
exports.BrowserLinkFromJSONTyped = BrowserLinkFromJSONTyped;
|
|
19
|
+
exports.BrowserLinkToJSON = BrowserLinkToJSON;
|
|
20
|
+
exports.BrowserLinkToJSONTyped = BrowserLinkToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BrowserLink interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBrowserLink(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function BrowserLinkFromJSON(json) {
|
|
32
|
+
return BrowserLinkFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function BrowserLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'url': json['url'],
|
|
40
|
+
'path': json['path'],
|
|
41
|
+
'singleUse': json['single_use'] == null ? undefined : json['single_use'],
|
|
42
|
+
'requiresLogin': json['requires_login'] == null ? undefined : json['requires_login'],
|
|
43
|
+
'redirectPath': json['redirect_path'] == null ? undefined : json['redirect_path'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function BrowserLinkToJSON(json) {
|
|
47
|
+
return BrowserLinkToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function BrowserLinkToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'url': value['url'],
|
|
55
|
+
'path': value['path'],
|
|
56
|
+
'single_use': value['singleUse'],
|
|
57
|
+
'requires_login': value['requiresLogin'],
|
|
58
|
+
'redirect_path': value['redirectPath'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 ChangeMailboxAddressRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangeMailboxAddressRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
confirm: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Current address from your last settings read. A different current address returns EMAIL_ADDRESS_CHANGED.
|
|
24
|
+
*/
|
|
25
|
+
expectedAddress: string;
|
|
26
|
+
/**
|
|
27
|
+
* New name before @. On revdokumail.com, a prefix with a new 4-character random suffix; on a custom domain, the exact name.
|
|
28
|
+
*/
|
|
29
|
+
username?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Available platform domain, a ready domain of this account, or platform.
|
|
32
|
+
*/
|
|
33
|
+
domain?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Keep the old address as an alias. Defaults to true for account owners and administrators while the old domain still receives email, otherwise false. Keeping it needs a free alias slot and an account owner or administrator.
|
|
36
|
+
*/
|
|
37
|
+
keepOldAsAlias?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Select another granted account for this request.
|
|
40
|
+
*/
|
|
41
|
+
accountId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional purpose for this action. AI agents should explain intentional reads and changes when known; omit when unknown. Do not include secrets, file contents, or transcripts.
|
|
44
|
+
*/
|
|
45
|
+
reason?: string | null;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the ChangeMailboxAddressRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfChangeMailboxAddressRequest(value: object): value is ChangeMailboxAddressRequest;
|
|
51
|
+
export declare function ChangeMailboxAddressRequestFromJSON(json: any): ChangeMailboxAddressRequest;
|
|
52
|
+
export declare function ChangeMailboxAddressRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeMailboxAddressRequest;
|
|
53
|
+
export declare function ChangeMailboxAddressRequestToJSON(json: any): ChangeMailboxAddressRequest;
|
|
54
|
+
export declare function ChangeMailboxAddressRequestToJSONTyped(value?: ChangeMailboxAddressRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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.instanceOfChangeMailboxAddressRequest = instanceOfChangeMailboxAddressRequest;
|
|
17
|
+
exports.ChangeMailboxAddressRequestFromJSON = ChangeMailboxAddressRequestFromJSON;
|
|
18
|
+
exports.ChangeMailboxAddressRequestFromJSONTyped = ChangeMailboxAddressRequestFromJSONTyped;
|
|
19
|
+
exports.ChangeMailboxAddressRequestToJSON = ChangeMailboxAddressRequestToJSON;
|
|
20
|
+
exports.ChangeMailboxAddressRequestToJSONTyped = ChangeMailboxAddressRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ChangeMailboxAddressRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfChangeMailboxAddressRequest(value) {
|
|
25
|
+
if (!('confirm' in value) || value['confirm'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('expectedAddress' in value) && !('expected_address' in value)) || (value['expectedAddress'] === undefined && value['expected_address'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function ChangeMailboxAddressRequestFromJSON(json) {
|
|
32
|
+
return ChangeMailboxAddressRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function ChangeMailboxAddressRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'confirm': json['confirm'],
|
|
40
|
+
'expectedAddress': json['expected_address'],
|
|
41
|
+
'username': json['username'] == null ? undefined : json['username'],
|
|
42
|
+
'domain': json['domain'] == null ? undefined : json['domain'],
|
|
43
|
+
'keepOldAsAlias': json['keep_old_as_alias'] == null ? undefined : json['keep_old_as_alias'],
|
|
44
|
+
'accountId': json['account_id'] == null ? undefined : json['account_id'],
|
|
45
|
+
'reason': json['reason'] === undefined ? undefined : json['reason'] === null ? null : json['reason'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ChangeMailboxAddressRequestToJSON(json) {
|
|
49
|
+
return ChangeMailboxAddressRequestToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ChangeMailboxAddressRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'confirm': value['confirm'],
|
|
57
|
+
'expected_address': value['expectedAddress'],
|
|
58
|
+
'username': value['username'],
|
|
59
|
+
'domain': value['domain'],
|
|
60
|
+
'keep_old_as_alias': value['keepOldAsAlias'],
|
|
61
|
+
'account_id': value['accountId'],
|
|
62
|
+
'reason': value['reason'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { EmailDomainCheck } from './EmailDomainCheck';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CheckEmailDomain200Response
|
|
17
|
+
*/
|
|
18
|
+
export interface CheckEmailDomain200Response {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
success: boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
data: EmailDomainCheck;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CheckEmailDomain200Response interface.
|
|
30
|
+
*/
|
|
31
|
+
export declare function instanceOfCheckEmailDomain200Response(value: object): value is CheckEmailDomain200Response;
|
|
32
|
+
export declare function CheckEmailDomain200ResponseFromJSON(json: any): CheckEmailDomain200Response;
|
|
33
|
+
export declare function CheckEmailDomain200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckEmailDomain200Response;
|
|
34
|
+
export declare function CheckEmailDomain200ResponseToJSON(json: any): CheckEmailDomain200Response;
|
|
35
|
+
export declare function CheckEmailDomain200ResponseToJSONTyped(value?: CheckEmailDomain200Response | 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.instanceOfCheckEmailDomain200Response = instanceOfCheckEmailDomain200Response;
|
|
17
|
+
exports.CheckEmailDomain200ResponseFromJSON = CheckEmailDomain200ResponseFromJSON;
|
|
18
|
+
exports.CheckEmailDomain200ResponseFromJSONTyped = CheckEmailDomain200ResponseFromJSONTyped;
|
|
19
|
+
exports.CheckEmailDomain200ResponseToJSON = CheckEmailDomain200ResponseToJSON;
|
|
20
|
+
exports.CheckEmailDomain200ResponseToJSONTyped = CheckEmailDomain200ResponseToJSONTyped;
|
|
21
|
+
const EmailDomainCheck_1 = require("./EmailDomainCheck");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CheckEmailDomain200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCheckEmailDomain200Response(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 CheckEmailDomain200ResponseFromJSON(json) {
|
|
33
|
+
return CheckEmailDomain200ResponseFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CheckEmailDomain200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'success': json['success'],
|
|
41
|
+
'data': (0, EmailDomainCheck_1.EmailDomainCheckFromJSON)(json['data']),
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function CheckEmailDomain200ResponseToJSON(json) {
|
|
45
|
+
return CheckEmailDomain200ResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function CheckEmailDomain200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'success': value['success'],
|
|
53
|
+
'data': (0, EmailDomainCheck_1.EmailDomainCheckToJSON)(value['data']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 CodeRequested
|
|
16
|
+
*/
|
|
17
|
+
export interface CodeRequested {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
message?: string;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
email?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
expiresInSeconds?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
fallbackUrl?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
hint?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the CodeRequested interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfCodeRequested(value: object): value is CodeRequested;
|
|
43
|
+
export declare function CodeRequestedFromJSON(json: any): CodeRequested;
|
|
44
|
+
export declare function CodeRequestedFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeRequested;
|
|
45
|
+
export declare function CodeRequestedToJSON(json: any): CodeRequested;
|
|
46
|
+
export declare function CodeRequestedToJSONTyped(value?: CodeRequested | 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.instanceOfCodeRequested = instanceOfCodeRequested;
|
|
17
|
+
exports.CodeRequestedFromJSON = CodeRequestedFromJSON;
|
|
18
|
+
exports.CodeRequestedFromJSONTyped = CodeRequestedFromJSONTyped;
|
|
19
|
+
exports.CodeRequestedToJSON = CodeRequestedToJSON;
|
|
20
|
+
exports.CodeRequestedToJSONTyped = CodeRequestedToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CodeRequested interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCodeRequested(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CodeRequestedFromJSON(json) {
|
|
28
|
+
return CodeRequestedFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CodeRequestedFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
36
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
37
|
+
'expiresInSeconds': json['expires_in_seconds'] == null ? undefined : json['expires_in_seconds'],
|
|
38
|
+
'fallbackUrl': json['fallback_url'] == null ? undefined : json['fallback_url'],
|
|
39
|
+
'hint': json['hint'] == null ? undefined : json['hint'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function CodeRequestedToJSON(json) {
|
|
43
|
+
return CodeRequestedToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function CodeRequestedToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'message': value['message'],
|
|
51
|
+
'email': value['email'],
|
|
52
|
+
'expires_in_seconds': value['expiresInSeconds'],
|
|
53
|
+
'fallback_url': value['fallbackUrl'],
|
|
54
|
+
'hint': value['hint'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { ConnectionPermissions } from './ConnectionPermissions';
|
|
13
|
+
import type { ConnectionRenewal } from './ConnectionRenewal';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Connection
|
|
18
|
+
*/
|
|
19
|
+
export interface Connection {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
apiKeyId?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
label?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
tokenType?: ConnectionTokenTypeEnum | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
scope?: ConnectionScopeEnum | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
expiresAt?: Date | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
lastUsedAt?: Date | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
47
|
+
mailboxAccess?: ConnectionMailboxAccessEnum | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
mailboxIds?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
deniedMailboxIds?: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
mailboxPermissions?: {
|
|
60
|
+
[key: string]: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
permissions?: ConnectionPermissions;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
agent?: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
} | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
transport?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
*/
|
|
79
|
+
renewal?: ConnectionRenewal;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const ConnectionTokenTypeEnum: {
|
|
85
|
+
readonly Api: "api";
|
|
86
|
+
};
|
|
87
|
+
export type ConnectionTokenTypeEnum = typeof ConnectionTokenTypeEnum[keyof typeof ConnectionTokenTypeEnum];
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const ConnectionScopeEnum: {
|
|
92
|
+
readonly MailboxRead: "mailbox_read";
|
|
93
|
+
readonly MailboxWrite: "mailbox_write";
|
|
94
|
+
readonly MailboxAdmin: "mailbox_admin";
|
|
95
|
+
};
|
|
96
|
+
export type ConnectionScopeEnum = typeof ConnectionScopeEnum[keyof typeof ConnectionScopeEnum];
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const ConnectionMailboxAccessEnum: {
|
|
101
|
+
readonly All: "all";
|
|
102
|
+
readonly Selected: "selected";
|
|
103
|
+
};
|
|
104
|
+
export type ConnectionMailboxAccessEnum = typeof ConnectionMailboxAccessEnum[keyof typeof ConnectionMailboxAccessEnum];
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the Connection interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfConnection(value: object): value is Connection;
|
|
109
|
+
export declare function ConnectionFromJSON(json: any): Connection;
|
|
110
|
+
export declare function ConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Connection;
|
|
111
|
+
export declare function ConnectionToJSON(json: any): Connection;
|
|
112
|
+
export declare function ConnectionToJSONTyped(value?: Connection | null, ignoreDiscriminator?: boolean): any;
|