/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { exists, mapValues } from '../runtime'; import { DomainMonitorDkimSignatureDto, DomainMonitorDkimSignatureDtoFromJSON, DomainMonitorDkimSignatureDtoFromJSONTyped, DomainMonitorDkimSignatureDtoToJSON, } from './'; /** * * @export * @interface DomainMonitorObservedAuthSampleDto */ export interface DomainMonitorObservedAuthSampleDto { /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ id: string; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ monitorId: string; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ domain: string; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ recipientAddress: string; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ sourceMessageId?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ messageId?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ fromAddress?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ fromDomain?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ returnPath?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ returnPathDomain?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ spfStatus: DomainMonitorObservedAuthSampleDtoSpfStatusEnum; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ spfEvaluatedDomain?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ spfSourceIp?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ dkimStatus: DomainMonitorObservedAuthSampleDtoDkimStatusEnum; /** * * @type {Array} * @memberof DomainMonitorObservedAuthSampleDto */ dkimSignatures: Array; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ dmarcStatus: DomainMonitorObservedAuthSampleDtoDmarcStatusEnum; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ dmarcAlignedIdentifier?: string | null; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ trustedAuthenticationResultsSource?: string | null; /** * * @type {Array} * @memberof DomainMonitorObservedAuthSampleDto */ providerHints: Array; /** * * @type {boolean} * @memberof DomainMonitorObservedAuthSampleDto */ accepted: boolean; /** * * @type {string} * @memberof DomainMonitorObservedAuthSampleDto */ validationError?: string | null; /** * * @type {Date} * @memberof DomainMonitorObservedAuthSampleDto */ receivedAt: Date; /** * * @type {Date} * @memberof DomainMonitorObservedAuthSampleDto */ createdAt: Date; /** * * @type {Date} * @memberof DomainMonitorObservedAuthSampleDto */ updatedAt: Date; } /** * @export * @enum {string} */ export enum DomainMonitorObservedAuthSampleDtoSpfStatusEnum { PASS = 'PASS', FAIL = 'FAIL', WARNING = 'WARNING', NOT_CHECKED = 'NOT_CHECKED', } /** * @export * @enum {string} */ export enum DomainMonitorObservedAuthSampleDtoDkimStatusEnum { PASS = 'PASS', FAIL = 'FAIL', WARNING = 'WARNING', NOT_CHECKED = 'NOT_CHECKED', } /** * @export * @enum {string} */ export enum DomainMonitorObservedAuthSampleDtoDmarcStatusEnum { PASS = 'PASS', FAIL = 'FAIL', WARNING = 'WARNING', NOT_CHECKED = 'NOT_CHECKED', } export function DomainMonitorObservedAuthSampleDtoFromJSON( json: any ): DomainMonitorObservedAuthSampleDto { return DomainMonitorObservedAuthSampleDtoFromJSONTyped(json, false); } export function DomainMonitorObservedAuthSampleDtoFromJSONTyped( json: any, ignoreDiscriminator: boolean ): DomainMonitorObservedAuthSampleDto { if (json === undefined || json === null) { return json; } return { id: json['id'], monitorId: json['monitorId'], domain: json['domain'], recipientAddress: json['recipientAddress'], sourceMessageId: !exists(json, 'sourceMessageId') ? undefined : json['sourceMessageId'], messageId: !exists(json, 'messageId') ? undefined : json['messageId'], fromAddress: !exists(json, 'fromAddress') ? undefined : json['fromAddress'], fromDomain: !exists(json, 'fromDomain') ? undefined : json['fromDomain'], returnPath: !exists(json, 'returnPath') ? undefined : json['returnPath'], returnPathDomain: !exists(json, 'returnPathDomain') ? undefined : json['returnPathDomain'], spfStatus: json['spfStatus'], spfEvaluatedDomain: !exists(json, 'spfEvaluatedDomain') ? undefined : json['spfEvaluatedDomain'], spfSourceIp: !exists(json, 'spfSourceIp') ? undefined : json['spfSourceIp'], dkimStatus: json['dkimStatus'], dkimSignatures: (json['dkimSignatures'] as Array).map( DomainMonitorDkimSignatureDtoFromJSON ), dmarcStatus: json['dmarcStatus'], dmarcAlignedIdentifier: !exists(json, 'dmarcAlignedIdentifier') ? undefined : json['dmarcAlignedIdentifier'], trustedAuthenticationResultsSource: !exists( json, 'trustedAuthenticationResultsSource' ) ? undefined : json['trustedAuthenticationResultsSource'], providerHints: json['providerHints'], accepted: json['accepted'], validationError: !exists(json, 'validationError') ? undefined : json['validationError'], receivedAt: new Date(json['receivedAt']), createdAt: new Date(json['createdAt']), updatedAt: new Date(json['updatedAt']), }; } export function DomainMonitorObservedAuthSampleDtoToJSON( value?: DomainMonitorObservedAuthSampleDto | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { id: value.id, monitorId: value.monitorId, domain: value.domain, recipientAddress: value.recipientAddress, sourceMessageId: value.sourceMessageId, messageId: value.messageId, fromAddress: value.fromAddress, fromDomain: value.fromDomain, returnPath: value.returnPath, returnPathDomain: value.returnPathDomain, spfStatus: value.spfStatus, spfEvaluatedDomain: value.spfEvaluatedDomain, spfSourceIp: value.spfSourceIp, dkimStatus: value.dkimStatus, dkimSignatures: (value.dkimSignatures as Array).map( DomainMonitorDkimSignatureDtoToJSON ), dmarcStatus: value.dmarcStatus, dmarcAlignedIdentifier: value.dmarcAlignedIdentifier, trustedAuthenticationResultsSource: value.trustedAuthenticationResultsSource, providerHints: value.providerHints, accepted: value.accepted, validationError: value.validationError, receivedAt: value.receivedAt.toISOString(), createdAt: value.createdAt.toISOString(), updatedAt: value.updatedAt.toISOString(), }; }