/** * MailSlurp API * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. 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://www.mailslurp.com/docs/) - [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. */ /** * NEW_CONTACT webhook payload. Sent to your webhook url endpoint via HTTP POST when an email is received by the inbox that your webhook is attached to that contains a recipient that has not been saved as a contact. * @export * @interface WebhookNewContactPayload */ export interface WebhookNewContactPayload { /** * Idempotent message ID. Store this ID locally or in a database to prevent message duplication. * @type {string} * @memberof WebhookNewContactPayload */ messageId: string; /** * ID of webhook entity being triggered * @type {string} * @memberof WebhookNewContactPayload */ webhookId: string; /** * Name of the webhook being triggered * @type {string} * @memberof WebhookNewContactPayload */ webhookName?: string; /** * Name of the event type webhook is being triggered for. * @type {string} * @memberof WebhookNewContactPayload */ eventName: WebhookNewContactPayloadEventNameEnum; /** * * @type {string} * @memberof WebhookNewContactPayload */ contactId: string; /** * * @type {string} * @memberof WebhookNewContactPayload */ groupId?: string; /** * * @type {string} * @memberof WebhookNewContactPayload */ firstName?: string; /** * * @type {string} * @memberof WebhookNewContactPayload */ lastName?: string; /** * * @type {string} * @memberof WebhookNewContactPayload */ company?: string; /** * * @type {string} * @memberof WebhookNewContactPayload */ primaryEmailAddress?: string; /** * * @type {Array} * @memberof WebhookNewContactPayload */ emailAddresses: Array; /** * * @type {Array} * @memberof WebhookNewContactPayload */ tags: Array; /** * * @type {object} * @memberof WebhookNewContactPayload */ metaData?: object; /** * * @type {boolean} * @memberof WebhookNewContactPayload */ optOut?: boolean; /** * * @type {Date} * @memberof WebhookNewContactPayload */ createdAt: Date; } export declare function WebhookNewContactPayloadFromJSON(json: any): WebhookNewContactPayload; export declare function WebhookNewContactPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookNewContactPayload; export declare function WebhookNewContactPayloadToJSON(value?: WebhookNewContactPayload | null): any; /** * @export * @enum {string} */ export declare enum WebhookNewContactPayloadEventNameEnum { EMAILRECEIVED = "EMAIL_RECEIVED", NEWEMAIL = "NEW_EMAIL", NEWCONTACT = "NEW_CONTACT", NEWATTACHMENT = "NEW_ATTACHMENT", EMAILOPENED = "EMAIL_OPENED", EMAILREAD = "EMAIL_READ" }