mailslurp-client
Version:
Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.
104 lines (103 loc) • 3.33 kB
TypeScript
/**
* 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://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.
*/
/**
* NEW_SMS webhook payload. Sent to your webhook url endpoint via HTTP POST when an sms is received by the phone number that your webhook is attached to. Use the SMS ID to fetch the full SMS details.
* @export
* @interface WebhookNewSmsPayload
*/
export interface WebhookNewSmsPayload {
/**
* Idempotent message ID. Store this ID locally or in a database to prevent message duplication.
* @type {string}
* @memberof WebhookNewSmsPayload
*/
messageId: string;
/**
* ID of webhook entity being triggered
* @type {string}
* @memberof WebhookNewSmsPayload
*/
webhookId: string;
/**
* Name of the event type webhook is being triggered for.
* @type {string}
* @memberof WebhookNewSmsPayload
*/
eventName: WebhookNewSmsPayloadEventNameEnum;
/**
* Name of the webhook being triggered
* @type {string}
* @memberof WebhookNewSmsPayload
*/
webhookName?: string | null;
/**
* ID of SMS message
* @type {string}
* @memberof WebhookNewSmsPayload
*/
smsId: string;
/**
* User ID of event
* @type {string}
* @memberof WebhookNewSmsPayload
*/
userId: string;
/**
* ID of phone number receiving SMS
* @type {string}
* @memberof WebhookNewSmsPayload
*/
phoneNumber: string;
/**
* Recipient phone number
* @type {string}
* @memberof WebhookNewSmsPayload
*/
toNumber: string;
/**
* Sender phone number
* @type {string}
* @memberof WebhookNewSmsPayload
*/
fromNumber: string;
/**
* SMS message body
* @type {string}
* @memberof WebhookNewSmsPayload
*/
body: string;
/**
* SMS has been read
* @type {boolean}
* @memberof WebhookNewSmsPayload
*/
read: boolean;
}
/**
* @export
* @enum {string}
*/
export declare enum WebhookNewSmsPayloadEventNameEnum {
EMAIL_RECEIVED = "EMAIL_RECEIVED",
NEW_EMAIL = "NEW_EMAIL",
NEW_CONTACT = "NEW_CONTACT",
NEW_ATTACHMENT = "NEW_ATTACHMENT",
EMAIL_OPENED = "EMAIL_OPENED",
EMAIL_READ = "EMAIL_READ",
DELIVERY_STATUS = "DELIVERY_STATUS",
BOUNCE = "BOUNCE",
BOUNCE_RECIPIENT = "BOUNCE_RECIPIENT",
NEW_SMS = "NEW_SMS"
}
export declare function WebhookNewSmsPayloadFromJSON(json: any): WebhookNewSmsPayload;
export declare function WebhookNewSmsPayloadFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookNewSmsPayload;
export declare function WebhookNewSmsPayloadToJSON(value?: WebhookNewSmsPayload | null): any;