"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
//   protoc-gen-ts_proto  v2.11.8
//   protoc               v4.25.9
// source: io/restorecommerce/notification_req.proto
Object.defineProperty(exports, "__esModule", { value: true });
exports.protoMetadata = exports.NotificationReqServiceDefinition = exports.Log = exports.Email = exports.NotificationReq = exports.Attachment = exports.protobufPackage = void 0;
/* eslint-disable */
const wire_1 = require("@bufbuild/protobuf/wire");
const reference_1 = require("./reference");
const status_1 = require("./status");
exports.protobufPackage = "io.restorecommerce.notification_req";
function createBaseAttachment() {
    return {};
}
exports.Attachment = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.filename !== undefined) {
            writer.uint32(10).string(message.filename);
        }
        if (message.text !== undefined) {
            writer.uint32(18).string(message.text);
        }
        if (message.buffer !== undefined) {
            writer.uint32(26).bytes(message.buffer);
        }
        if (message.path !== undefined) {
            writer.uint32(34).string(message.path);
        }
        if (message.contentType !== undefined) {
            writer.uint32(42).string(message.contentType);
        }
        if (message.contentDisposition !== undefined) {
            writer.uint32(50).string(message.contentDisposition);
        }
        if (message.cid !== undefined) {
            writer.uint32(58).string(message.cid);
        }
        if (message.encoding !== undefined) {
            writer.uint32(66).string(message.encoding);
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseAttachment();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    message.filename = reader.string();
                    continue;
                }
                case 2: {
                    if (tag !== 18) {
                        break;
                    }
                    message.text = reader.string();
                    continue;
                }
                case 3: {
                    if (tag !== 26) {
                        break;
                    }
                    message.buffer = Buffer.from(reader.bytes());
                    continue;
                }
                case 4: {
                    if (tag !== 34) {
                        break;
                    }
                    message.path = reader.string();
                    continue;
                }
                case 5: {
                    if (tag !== 42) {
                        break;
                    }
                    message.contentType = reader.string();
                    continue;
                }
                case 6: {
                    if (tag !== 50) {
                        break;
                    }
                    message.contentDisposition = reader.string();
                    continue;
                }
                case 7: {
                    if (tag !== 58) {
                        break;
                    }
                    message.cid = reader.string();
                    continue;
                }
                case 8: {
                    if (tag !== 66) {
                        break;
                    }
                    message.encoding = reader.string();
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            filename: isSet(object.filename) ? globalThis.String(object.filename) : undefined,
            text: isSet(object.text) ? globalThis.String(object.text) : undefined,
            buffer: isSet(object.buffer) ? Buffer.from(bytesFromBase64(object.buffer)) : undefined,
            path: isSet(object.path) ? globalThis.String(object.path) : undefined,
            contentType: isSet(object.contentType)
                ? globalThis.String(object.contentType)
                : isSet(object.content_type)
                    ? globalThis.String(object.content_type)
                    : undefined,
            contentDisposition: isSet(object.contentDisposition)
                ? globalThis.String(object.contentDisposition)
                : isSet(object.content_disposition)
                    ? globalThis.String(object.content_disposition)
                    : undefined,
            cid: isSet(object.cid) ? globalThis.String(object.cid) : undefined,
            encoding: isSet(object.encoding) ? globalThis.String(object.encoding) : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.filename !== undefined) {
            obj.filename = message.filename;
        }
        if (message.text !== undefined) {
            obj.text = message.text;
        }
        if (message.buffer !== undefined) {
            obj.buffer = base64FromBytes(message.buffer);
        }
        if (message.path !== undefined) {
            obj.path = message.path;
        }
        if (message.contentType !== undefined) {
            obj.contentType = message.contentType;
        }
        if (message.contentDisposition !== undefined) {
            obj.contentDisposition = message.contentDisposition;
        }
        if (message.cid !== undefined) {
            obj.cid = message.cid;
        }
        if (message.encoding !== undefined) {
            obj.encoding = message.encoding;
        }
        return obj;
    },
    create(base) {
        return exports.Attachment.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseAttachment();
        message.filename = object.filename ?? undefined;
        message.text = object.text ?? undefined;
        message.buffer = object.buffer ?? undefined;
        message.path = object.path ?? undefined;
        message.contentType = object.contentType ?? undefined;
        message.contentDisposition = object.contentDisposition ?? undefined;
        message.cid = object.cid ?? undefined;
        message.encoding = object.encoding ?? undefined;
        return message;
    },
};
function createBaseNotificationReq() {
    return {};
}
exports.NotificationReq = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.email !== undefined) {
            exports.Email.encode(message.email, writer.uint32(10).fork()).join();
        }
        if (message.log !== undefined) {
            exports.Log.encode(message.log, writer.uint32(18).fork()).join();
        }
        if (message.subject !== undefined) {
            writer.uint32(26).string(message.subject);
        }
        if (message.body !== undefined) {
            writer.uint32(34).string(message.body);
        }
        if (message.transport !== undefined) {
            writer.uint32(42).string(message.transport);
        }
        if (message.provider !== undefined) {
            writer.uint32(50).string(message.provider);
        }
        if (message.attachments !== undefined && message.attachments.length !== 0) {
            for (const v of message.attachments) {
                exports.Attachment.encode(v, writer.uint32(58).fork()).join();
            }
        }
        if (message.reference !== undefined) {
            reference_1.Reference.encode(message.reference, writer.uint32(66).fork()).join();
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseNotificationReq();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    message.email = exports.Email.decode(reader, reader.uint32());
                    continue;
                }
                case 2: {
                    if (tag !== 18) {
                        break;
                    }
                    message.log = exports.Log.decode(reader, reader.uint32());
                    continue;
                }
                case 3: {
                    if (tag !== 26) {
                        break;
                    }
                    message.subject = reader.string();
                    continue;
                }
                case 4: {
                    if (tag !== 34) {
                        break;
                    }
                    message.body = reader.string();
                    continue;
                }
                case 5: {
                    if (tag !== 42) {
                        break;
                    }
                    message.transport = reader.string();
                    continue;
                }
                case 6: {
                    if (tag !== 50) {
                        break;
                    }
                    message.provider = reader.string();
                    continue;
                }
                case 7: {
                    if (tag !== 58) {
                        break;
                    }
                    if (message.attachments === undefined) {
                        message.attachments = [];
                    }
                    const el = exports.Attachment.decode(reader, reader.uint32());
                    if (el !== undefined) {
                        message.attachments.push(el);
                    }
                    continue;
                }
                case 8: {
                    if (tag !== 66) {
                        break;
                    }
                    message.reference = reference_1.Reference.decode(reader, reader.uint32());
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            email: isSet(object.email) ? exports.Email.fromJSON(object.email) : undefined,
            log: isSet(object.log) ? exports.Log.fromJSON(object.log) : undefined,
            subject: isSet(object.subject) ? globalThis.String(object.subject) : undefined,
            body: isSet(object.body) ? globalThis.String(object.body) : undefined,
            transport: isSet(object.transport) ? globalThis.String(object.transport) : undefined,
            provider: isSet(object.provider) ? globalThis.String(object.provider) : undefined,
            attachments: globalThis.Array.isArray(object?.attachments)
                ? object.attachments.map((e) => exports.Attachment.fromJSON(e))
                : undefined,
            reference: isSet(object.reference) ? reference_1.Reference.fromJSON(object.reference) : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.email !== undefined) {
            obj.email = exports.Email.toJSON(message.email);
        }
        if (message.log !== undefined) {
            obj.log = exports.Log.toJSON(message.log);
        }
        if (message.subject !== undefined) {
            obj.subject = message.subject;
        }
        if (message.body !== undefined) {
            obj.body = message.body;
        }
        if (message.transport !== undefined) {
            obj.transport = message.transport;
        }
        if (message.provider !== undefined) {
            obj.provider = message.provider;
        }
        if (message.attachments?.length) {
            obj.attachments = message.attachments.map((e) => exports.Attachment.toJSON(e));
        }
        if (message.reference !== undefined) {
            obj.reference = reference_1.Reference.toJSON(message.reference);
        }
        return obj;
    },
    create(base) {
        return exports.NotificationReq.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseNotificationReq();
        message.email = (object.email !== undefined && object.email !== null) ? exports.Email.fromPartial(object.email) : undefined;
        message.log = (object.log !== undefined && object.log !== null) ? exports.Log.fromPartial(object.log) : undefined;
        message.subject = object.subject ?? undefined;
        message.body = object.body ?? undefined;
        message.transport = object.transport ?? undefined;
        message.provider = object.provider ?? undefined;
        message.attachments = object.attachments?.map((e) => exports.Attachment.fromPartial(e)) || undefined;
        message.reference = (object.reference !== undefined && object.reference !== null)
            ? reference_1.Reference.fromPartial(object.reference)
            : undefined;
        return message;
    },
};
function createBaseEmail() {
    return {};
}
exports.Email = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.to !== undefined && message.to.length !== 0) {
            for (const v of message.to) {
                writer.uint32(10).string(v);
            }
        }
        if (message.cc !== undefined && message.cc.length !== 0) {
            for (const v of message.cc) {
                writer.uint32(18).string(v);
            }
        }
        if (message.bcc !== undefined && message.bcc.length !== 0) {
            for (const v of message.bcc) {
                writer.uint32(26).string(v);
            }
        }
        if (message.replyto !== undefined) {
            writer.uint32(34).string(message.replyto);
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseEmail();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    if (message.to === undefined) {
                        message.to = [];
                    }
                    const el = reader.string();
                    if (el !== undefined) {
                        message.to.push(el);
                    }
                    continue;
                }
                case 2: {
                    if (tag !== 18) {
                        break;
                    }
                    if (message.cc === undefined) {
                        message.cc = [];
                    }
                    const el = reader.string();
                    if (el !== undefined) {
                        message.cc.push(el);
                    }
                    continue;
                }
                case 3: {
                    if (tag !== 26) {
                        break;
                    }
                    if (message.bcc === undefined) {
                        message.bcc = [];
                    }
                    const el = reader.string();
                    if (el !== undefined) {
                        message.bcc.push(el);
                    }
                    continue;
                }
                case 4: {
                    if (tag !== 34) {
                        break;
                    }
                    message.replyto = reader.string();
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            to: globalThis.Array.isArray(object?.to) ? object.to.map((e) => globalThis.String(e)) : undefined,
            cc: globalThis.Array.isArray(object?.cc) ? object.cc.map((e) => globalThis.String(e)) : undefined,
            bcc: globalThis.Array.isArray(object?.bcc) ? object.bcc.map((e) => globalThis.String(e)) : undefined,
            replyto: isSet(object.replyto) ? globalThis.String(object.replyto) : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.to?.length) {
            obj.to = message.to;
        }
        if (message.cc?.length) {
            obj.cc = message.cc;
        }
        if (message.bcc?.length) {
            obj.bcc = message.bcc;
        }
        if (message.replyto !== undefined) {
            obj.replyto = message.replyto;
        }
        return obj;
    },
    create(base) {
        return exports.Email.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseEmail();
        message.to = object.to?.map((e) => e) || undefined;
        message.cc = object.cc?.map((e) => e) || undefined;
        message.bcc = object.bcc?.map((e) => e) || undefined;
        message.replyto = object.replyto ?? undefined;
        return message;
    },
};
function createBaseLog() {
    return {};
}
exports.Log = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.level !== undefined) {
            writer.uint32(10).string(message.level);
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseLog();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    message.level = reader.string();
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return { level: isSet(object.level) ? globalThis.String(object.level) : undefined };
    },
    toJSON(message) {
        const obj = {};
        if (message.level !== undefined) {
            obj.level = message.level;
        }
        return obj;
    },
    create(base) {
        return exports.Log.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseLog();
        message.level = object.level ?? undefined;
        return message;
    },
};
exports.NotificationReqServiceDefinition = {
    name: "NotificationReqService",
    fullName: "io.restorecommerce.notification_req.NotificationReqService",
    methods: {
        /** direct notifications */
        send: {
            name: "Send",
            requestType: exports.NotificationReq,
            requestStream: false,
            responseType: status_1.OperationStatusObj,
            responseStream: false,
            options: {},
        },
    },
};
exports.protoMetadata = {
    fileDescriptor: {
        "name": "io/restorecommerce/notification_req.proto",
        "package": "io.restorecommerce.notification_req",
        "dependency": ["io/restorecommerce/status.proto", "io/restorecommerce/reference.proto"],
        "publicDependency": [],
        "weakDependency": [],
        "optionDependency": [],
        "messageType": [{
                "name": "Attachment",
                "field": [{
                        "name": "filename",
                        "number": 1,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "filename",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "text",
                        "number": 2,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 1,
                        "jsonName": "text",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "buffer",
                        "number": 3,
                        "label": 1,
                        "type": 12,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 2,
                        "jsonName": "buffer",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "path",
                        "number": 4,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 3,
                        "jsonName": "path",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "content_type",
                        "number": 5,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 4,
                        "jsonName": "contentType",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "content_disposition",
                        "number": 6,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 5,
                        "jsonName": "contentDisposition",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "cid",
                        "number": 7,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 6,
                        "jsonName": "cid",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "encoding",
                        "number": 8,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 7,
                        "jsonName": "encoding",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [
                    { "name": "_filename", "options": undefined },
                    { "name": "_text", "options": undefined },
                    { "name": "_buffer", "options": undefined },
                    { "name": "_path", "options": undefined },
                    { "name": "_content_type", "options": undefined },
                    { "name": "_content_disposition", "options": undefined },
                    { "name": "_cid", "options": undefined },
                    { "name": "_encoding", "options": undefined },
                ],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }, {
                "name": "NotificationReq",
                "field": [{
                        "name": "email",
                        "number": 1,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.notification_req.Email",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "email",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "log",
                        "number": 2,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.notification_req.Log",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "log",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "subject",
                        "number": 3,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 1,
                        "jsonName": "subject",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "body",
                        "number": 4,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 2,
                        "jsonName": "body",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "transport",
                        "number": 5,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 3,
                        "jsonName": "transport",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "provider",
                        "number": 6,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 4,
                        "jsonName": "provider",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "attachments",
                        "number": 7,
                        "label": 3,
                        "type": 11,
                        "typeName": ".io.restorecommerce.notification_req.Attachment",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "attachments",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "reference",
                        "number": 8,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.reference.Reference",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 5,
                        "jsonName": "reference",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [
                    { "name": "channel", "options": undefined },
                    { "name": "_subject", "options": undefined },
                    { "name": "_body", "options": undefined },
                    { "name": "_transport", "options": undefined },
                    { "name": "_provider", "options": undefined },
                    { "name": "_reference", "options": undefined },
                ],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }, {
                "name": "Email",
                "field": [{
                        "name": "to",
                        "number": 1,
                        "label": 3,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "to",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "cc",
                        "number": 2,
                        "label": 3,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "cc",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "bcc",
                        "number": 3,
                        "label": 3,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "bcc",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "replyto",
                        "number": 4,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "replyto",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [{ "name": "_replyto", "options": undefined }],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }, {
                "name": "Log",
                "field": [{
                        "name": "level",
                        "number": 1,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "level",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [{ "name": "_level", "options": undefined }],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }],
        "enumType": [],
        "service": [{
                "name": "NotificationReqService",
                "method": [{
                        "name": "Send",
                        "inputType": ".io.restorecommerce.notification_req.NotificationReq",
                        "outputType": ".io.restorecommerce.status.OperationStatusObj",
                        "options": undefined,
                        "clientStreaming": false,
                        "serverStreaming": false,
                    }],
                "options": undefined,
            }],
        "extension": [],
        "options": undefined,
        "sourceCodeInfo": {
            "location": [{
                    "path": [6, 0, 2, 0],
                    "span": [9, 2, 84],
                    "leadingComments": " direct notifications\n",
                    "trailingComments": " generic fallback\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 0],
                    "span": [13, 0, 25, 1],
                    "leadingComments": " mimics nodemailer properties for easy configuration\n",
                    "trailingComments": "",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 0, 2, 1],
                    "span": [17, 2, 27],
                    "leadingComments": ' the "content" may be on of the following:\n',
                    "trailingComments": " for textual data\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 0, 2, 2],
                    "span": [18, 2, 28],
                    "leadingComments": "",
                    "trailingComments": " for binary data, eg.: images\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 1],
                    "span": [28, 0, 39, 1],
                    "leadingComments": " sendEmail NotificationReq event\n",
                    "trailingComments": "",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 1, 2, 3],
                    "span": [34, 2, 27],
                    "leadingComments": "",
                    "trailingComments": " text/HTML content\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 1, 2, 4],
                    "span": [35, 2, 32],
                    "leadingComments": "",
                    "trailingComments": " 'email', 'log', ... default == 'log'\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 1, 2, 5],
                    "span": [36, 2, 31],
                    "leadingComments": "",
                    "trailingComments": " specific transport provider, eg: 'console' for transport == 'log'\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 2, 2, 0],
                    "span": [42, 2, 25],
                    "leadingComments": "",
                    "trailingComments": " array of to email list\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 2, 2, 1],
                    "span": [43, 2, 26],
                    "leadingComments": "",
                    "trailingComments": " array of cc email list\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 2, 2, 2],
                    "span": [44, 2, 26],
                    "leadingComments": "",
                    "trailingComments": " array of bcc email list\n",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 2, 2, 3],
                    "span": [45, 2, 30],
                    "leadingComments": "",
                    "trailingComments": " if set, the outgoing mail will have this replyTo header set\n",
                    "leadingDetachedComments": [],
                }],
        },
        "syntax": "proto3",
        "edition": 0,
    },
    references: {
        ".io.restorecommerce.notification_req.Attachment": exports.Attachment,
        ".io.restorecommerce.notification_req.NotificationReq": exports.NotificationReq,
        ".io.restorecommerce.notification_req.Email": exports.Email,
        ".io.restorecommerce.notification_req.Log": exports.Log,
    },
    dependencies: [status_1.protoMetadata, reference_1.protoMetadata],
};
function bytesFromBase64(b64) {
    return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
}
function base64FromBytes(arr) {
    return globalThis.Buffer.from(arr).toString("base64");
}
function isSet(value) {
    return value !== null && value !== undefined;
}
//# sourceMappingURL=notification_req.js.map