/** @internal NOTE: Internal APIs. Subject to change. Use of these APIs in production applications is not supported. */
import { HttpResponseType, HttpStatusCode, Http } from '../../http';
/** See {@link LayerApi} for documentation.  */
export class BimMessageApiClient {
    _baseApiUrl;
    static _httpResponseType = HttpResponseType.status([HttpStatusCode.Ok]);
    constructor(_baseApiUrl) {
        this._baseApiUrl = _baseApiUrl;
    }
    async sendMailMessage(mailMessage) {
        return await Http.post(`${this._baseApiUrl.toString()}_ps/api/mail/submit`, BimMessageApiClient._httpResponseType.json, {
            body: JSON.stringify(mailMessage),
            headers: {
                Accept: 'application/json',
                'Content-Type': 'application/json'
            }
        });
    }
}
//# sourceMappingURL=BimMessageApiClient.js.map