Skip to content

Commit

Permalink
imap-secure
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmahoney committed May 4, 2024
1 parent 71e6193 commit 8c853ee
Show file tree
Hide file tree
Showing 1,000 changed files with 19,618 additions and 521 deletions.
10 changes: 9 additions & 1 deletion dist/generated/apis/InboxControllerApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import { CountDto, CreateInboxDto, CreateInboxRulesetOptions, Email, EmailPreview, FlushExpiredInboxesResult, ImapAccessDetails, ImapSmtpAccessDetails, InboxByEmailAddressResult, InboxByNameResult, InboxDto, InboxExistsDto, InboxIdsResult, InboxRulesetDto, PageDeliveryStatus, PageEmailPreview, PageInboxProjection, PageInboxRulesetDto, PageOrganizationInboxProjection, PageScheduledJobs, PageSentEmailProjection, PageTrackingPixelProjection, ScheduledJobDto, SearchInboxesOptions, SendEmailOptions, SendSMTPEnvelopeOptions, SentEmailDto, SetInboxFavouritedOptions, SmtpAccessDetails, UpdateInboxOptions } from '../models';
import { CountDto, CreateInboxDto, CreateInboxRulesetOptions, Email, EmailPreview, FlushExpiredInboxesResult, ImapAccessDetails, ImapSmtpAccessDetails, ImapSmtpAccessServers, InboxByEmailAddressResult, InboxByNameResult, InboxDto, InboxExistsDto, InboxIdsResult, InboxRulesetDto, PageDeliveryStatus, PageEmailPreview, PageInboxProjection, PageInboxRulesetDto, PageOrganizationInboxProjection, PageScheduledJobs, PageSentEmailProjection, PageTrackingPixelProjection, ScheduledJobDto, SearchInboxesOptions, SendEmailOptions, SendSMTPEnvelopeOptions, SentEmailDto, SetInboxFavouritedOptions, SmtpAccessDetails, UpdateInboxOptions } from '../models';
export interface CancelScheduledJobRequest {
jobId: string;
}
Expand Down Expand Up @@ -446,6 +446,14 @@ export declare class InboxControllerApi extends runtime.BaseAPI {
* Get IMAP and SMTP access details in .env format
*/
getImapSmtpAccessEnv(requestParameters: GetImapSmtpAccessEnvRequest, initOverrides?: RequestInit): Promise<string>;
/**
* Get IMAP and SMTP server hosts
*/
getImapSmtpAccessServersRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<ImapSmtpAccessServers>>;
/**
* Get IMAP and SMTP server hosts
*/
getImapSmtpAccessServers(initOverrides?: RequestInit): Promise<ImapSmtpAccessServers>;
/**
* Returns an inbox\'s properties, including its email address and ID.
* Get Inbox. Returns properties of an inbox.
Expand Down
46 changes: 46 additions & 0 deletions dist/generated/apis/InboxControllerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,52 @@ var InboxControllerApi = /** @class */ (function (_super) {
});
});
};
/**
* Get IMAP and SMTP server hosts
*/
InboxControllerApi.prototype.getImapSmtpAccessServersRaw = function (initOverrides) {
return __awaiter(this, void 0, void 0, function () {
var queryParameters, headerParameters, response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
queryParameters = {};
headerParameters = {};
if (this.configuration && this.configuration.apiKey) {
headerParameters['x-api-key'] = this.configuration.apiKey('x-api-key'); // API_KEY authentication
}
return [4 /*yield*/, this.request({
path: "/inboxes/imap-smtp-access/servers",
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides)];
case 1:
response = _a.sent();
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) {
return (0, models_1.ImapSmtpAccessServersFromJSON)(jsonValue);
})];
}
});
});
};
/**
* Get IMAP and SMTP server hosts
*/
InboxControllerApi.prototype.getImapSmtpAccessServers = function (initOverrides) {
return __awaiter(this, void 0, void 0, function () {
var response;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.getImapSmtpAccessServersRaw(initOverrides)];
case 1:
response = _a.sent();
return [4 /*yield*/, response.value()];
case 2: return [2 /*return*/, _a.sent()];
}
});
});
};
/**
* Returns an inbox\'s properties, including its email address and ID.
* Get Inbox. Returns properties of an inbox.
Expand Down
20 changes: 10 additions & 10 deletions dist/generated/models/AliasProjection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
export interface AliasProjection {
/**
*
* @type {string}
* @type {Date}
* @memberof AliasProjection
*/
emailAddress: string;
createdAt: Date;
/**
*
* @type {string}
* @type {Date}
* @memberof AliasProjection
*/
userId: string;
updatedAt: Date;
/**
*
* @type {string}
Expand All @@ -35,22 +35,22 @@ export interface AliasProjection {
inboxId: string;
/**
*
* @type {boolean}
* @type {string}
* @memberof AliasProjection
*/
useThreads?: boolean;
userId: string;
/**
*
* @type {Date}
* @type {string}
* @memberof AliasProjection
*/
createdAt: Date;
emailAddress: string;
/**
*
* @type {Date}
* @type {boolean}
* @memberof AliasProjection
*/
updatedAt: Date;
useThreads?: boolean;
/**
*
* @type {string}
Expand Down
16 changes: 8 additions & 8 deletions dist/generated/models/AliasProjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ function AliasProjectionFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
return {
emailAddress: json['emailAddress'],
userId: json['userId'],
inboxId: json['inboxId'],
useThreads: !(0, runtime_1.exists)(json, 'useThreads') ? undefined : json['useThreads'],
createdAt: new Date(json['createdAt']),
updatedAt: new Date(json['updatedAt']),
inboxId: json['inboxId'],
userId: json['userId'],
emailAddress: json['emailAddress'],
useThreads: !(0, runtime_1.exists)(json, 'useThreads') ? undefined : json['useThreads'],
name: !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
id: json['id'],
};
Expand All @@ -43,12 +43,12 @@ function AliasProjectionToJSON(value) {
return null;
}
return {
emailAddress: value.emailAddress,
userId: value.userId,
inboxId: value.inboxId,
useThreads: value.useThreads,
createdAt: value.createdAt.toISOString(),
updatedAt: value.updatedAt.toISOString(),
inboxId: value.inboxId,
userId: value.userId,
emailAddress: value.emailAddress,
useThreads: value.useThreads,
name: value.name,
id: value.id,
};
Expand Down
24 changes: 12 additions & 12 deletions dist/generated/models/AttachmentProjection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
* @interface AttachmentProjection
*/
export interface AttachmentProjection {
/**
*
* @type {Date}
* @memberof AttachmentProjection
*/
createdAt: Date;
/**
*
* @type {Date}
* @memberof AttachmentProjection
*/
updatedAt: Date;
/**
*
* @type {string}
Expand All @@ -33,18 +45,6 @@ export interface AttachmentProjection {
* @memberof AttachmentProjection
*/
attachmentId: string;
/**
*
* @type {Date}
* @memberof AttachmentProjection
*/
createdAt: Date;
/**
*
* @type {Date}
* @memberof AttachmentProjection
*/
updatedAt: Date;
/**
*
* @type {string}
Expand Down
8 changes: 4 additions & 4 deletions dist/generated/models/AttachmentProjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function AttachmentProjectionFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
return {
createdAt: new Date(json['createdAt']),
updatedAt: new Date(json['updatedAt']),
userId: json['userId'],
contentId: !(0, runtime_1.exists)(json, 'contentId') ? undefined : json['contentId'],
attachmentId: json['attachmentId'],
createdAt: new Date(json['createdAt']),
updatedAt: new Date(json['updatedAt']),
name: !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
contentLength: !(0, runtime_1.exists)(json, 'contentLength')
? undefined
Expand All @@ -45,11 +45,11 @@ function AttachmentProjectionToJSON(value) {
return null;
}
return {
createdAt: value.createdAt.toISOString(),
updatedAt: value.updatedAt.toISOString(),
userId: value.userId,
contentId: value.contentId,
attachmentId: value.attachmentId,
createdAt: value.createdAt.toISOString(),
updatedAt: value.updatedAt.toISOString(),
name: value.name,
contentLength: value.contentLength,
contentType: value.contentType,
Expand Down
12 changes: 6 additions & 6 deletions dist/generated/models/BounceProjection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@
export interface BounceProjection {
/**
*
* @type {string}
* @type {Date}
* @memberof BounceProjection
*/
sender: string;
createdAt: Date;
/**
*
* @type {string}
* @memberof BounceProjection
*/
bounceMta?: string | null;
sender: string;
/**
*
* @type {string}
* @memberof BounceProjection
*/
bounceType?: string | null;
bounceMta?: string | null;
/**
*
* @type {Date}
* @type {string}
* @memberof BounceProjection
*/
createdAt: Date;
bounceType?: string | null;
/**
*
* @type {string}
Expand Down
4 changes: 2 additions & 2 deletions dist/generated/models/BounceProjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ function BounceProjectionFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
return {
createdAt: new Date(json['createdAt']),
sender: json['sender'],
bounceMta: !(0, runtime_1.exists)(json, 'bounceMta') ? undefined : json['bounceMta'],
bounceType: !(0, runtime_1.exists)(json, 'bounceType') ? undefined : json['bounceType'],
createdAt: new Date(json['createdAt']),
subject: !(0, runtime_1.exists)(json, 'subject') ? undefined : json['subject'],
id: !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
};
Expand All @@ -41,10 +41,10 @@ function BounceProjectionToJSON(value) {
return null;
}
return {
createdAt: value.createdAt.toISOString(),
sender: value.sender,
bounceMta: value.bounceMta,
bounceType: value.bounceType,
createdAt: value.createdAt.toISOString(),
subject: value.subject,
id: value.id,
};
Expand Down
12 changes: 6 additions & 6 deletions dist/generated/models/BounceRecipientProjection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* @interface BounceRecipientProjection
*/
export interface BounceRecipientProjection {
/**
*
* @type {Date}
* @memberof BounceRecipientProjection
*/
createdAt: Date;
/**
*
* @type {string}
Expand All @@ -39,12 +45,6 @@ export interface BounceRecipientProjection {
* @memberof BounceRecipientProjection
*/
bounceType?: string | null;
/**
*
* @type {Date}
* @memberof BounceRecipientProjection
*/
createdAt: Date;
/**
*
* @type {string}
Expand Down
4 changes: 2 additions & 2 deletions dist/generated/models/BounceRecipientProjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ function BounceRecipientProjectionFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
return {
createdAt: new Date(json['createdAt']),
sentEmailId: !(0, runtime_1.exists)(json, 'sentEmailId') ? undefined : json['sentEmailId'],
recipient: json['recipient'],
action: !(0, runtime_1.exists)(json, 'action') ? undefined : json['action'],
bounceType: !(0, runtime_1.exists)(json, 'bounceType') ? undefined : json['bounceType'],
createdAt: new Date(json['createdAt']),
id: !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
status: !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
};
Expand All @@ -42,11 +42,11 @@ function BounceRecipientProjectionToJSON(value) {
return null;
}
return {
createdAt: value.createdAt.toISOString(),
sentEmailId: value.sentEmailId,
recipient: value.recipient,
action: value.action,
bounceType: value.bounceType,
createdAt: value.createdAt.toISOString(),
id: value.id,
status: value.status,
};
Expand Down
16 changes: 8 additions & 8 deletions dist/generated/models/ConnectorProjection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
* @interface ConnectorProjection
*/
export interface ConnectorProjection {
/**
*
* @type {Date}
* @memberof ConnectorProjection
*/
createdAt: Date;
/**
*
* @type {boolean}
Expand All @@ -26,7 +32,7 @@ export interface ConnectorProjection {
* @type {string}
* @memberof ConnectorProjection
*/
emailAddress?: string;
inboxId: string;
/**
*
* @type {string}
Expand All @@ -38,7 +44,7 @@ export interface ConnectorProjection {
* @type {string}
* @memberof ConnectorProjection
*/
inboxId: string;
emailAddress?: string;
/**
*
* @type {boolean}
Expand All @@ -57,12 +63,6 @@ export interface ConnectorProjection {
* @memberof ConnectorProjection
*/
syncInterval?: number;
/**
*
* @type {Date}
* @memberof ConnectorProjection
*/
createdAt: Date;
/**
*
* @type {string}
Expand Down
Loading

0 comments on commit 8c853ee

Please sign in to comment.