"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChannelsEnum$ = exports.ChannelsEnum$outboundSchema = exports.ChannelsEnum$inboundSchema = exports.ChannelsEnumValue$ = exports.ChannelsEnumValue$outboundSchema = exports.ChannelsEnumValue$inboundSchema = exports.ChannelsEnumSourceValue$ = exports.ChannelsEnumSourceValue$outboundSchema = exports.ChannelsEnumSourceValue$inboundSchema = exports.ChannelsEnum4$ = exports.ChannelsEnum4$outboundSchema = exports.ChannelsEnum4$inboundSchema = exports.ChannelsEnumValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const enums_js_1 = require("../../types/enums.js");
/**
 * The Channels of the campaign.
 */
var ChannelsEnumValue;
(function (ChannelsEnumValue) {
    ChannelsEnumValue["Email"] = "email";
    ChannelsEnumValue["Sms"] = "sms";
    ChannelsEnumValue["WebPush"] = "web_push";
    ChannelsEnumValue["IosPush"] = "ios_push";
    ChannelsEnumValue["AndroidPush"] = "android_push";
    ChannelsEnumValue["Unknown"] = "unknown";
    ChannelsEnumValue["UnmappedValue"] = "unmapped_value";
})(ChannelsEnumValue || (exports.ChannelsEnumValue = ChannelsEnumValue = {}));
/** @internal */
exports.ChannelsEnum4$inboundSchema = z.object({});
/** @internal */
exports.ChannelsEnum4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ChannelsEnum4$;
(function (ChannelsEnum4$) {
    /** @deprecated use `ChannelsEnum4$inboundSchema` instead. */
    ChannelsEnum4$.inboundSchema = exports.ChannelsEnum4$inboundSchema;
    /** @deprecated use `ChannelsEnum4$outboundSchema` instead. */
    ChannelsEnum4$.outboundSchema = exports.ChannelsEnum4$outboundSchema;
})(ChannelsEnum4$ || (exports.ChannelsEnum4$ = ChannelsEnum4$ = {}));
/** @internal */
exports.ChannelsEnumSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.ChannelsEnum4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.ChannelsEnumSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.ChannelsEnum4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ChannelsEnumSourceValue$;
(function (ChannelsEnumSourceValue$) {
    /** @deprecated use `ChannelsEnumSourceValue$inboundSchema` instead. */
    ChannelsEnumSourceValue$.inboundSchema = exports.ChannelsEnumSourceValue$inboundSchema;
    /** @deprecated use `ChannelsEnumSourceValue$outboundSchema` instead. */
    ChannelsEnumSourceValue$.outboundSchema = exports.ChannelsEnumSourceValue$outboundSchema;
})(ChannelsEnumSourceValue$ || (exports.ChannelsEnumSourceValue$ = ChannelsEnumSourceValue$ = {}));
/** @internal */
exports.ChannelsEnumValue$inboundSchema = z
    .union([
    z.nativeEnum(ChannelsEnumValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.ChannelsEnumValue$outboundSchema = z.union([
    z.nativeEnum(ChannelsEnumValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ChannelsEnumValue$;
(function (ChannelsEnumValue$) {
    /** @deprecated use `ChannelsEnumValue$inboundSchema` instead. */
    ChannelsEnumValue$.inboundSchema = exports.ChannelsEnumValue$inboundSchema;
    /** @deprecated use `ChannelsEnumValue$outboundSchema` instead. */
    ChannelsEnumValue$.outboundSchema = exports.ChannelsEnumValue$outboundSchema;
})(ChannelsEnumValue$ || (exports.ChannelsEnumValue$ = ChannelsEnumValue$ = {}));
/** @internal */
exports.ChannelsEnum$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.ChannelsEnum4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ChannelsEnumValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.ChannelsEnum$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.ChannelsEnum4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.ChannelsEnumValue$outboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var ChannelsEnum$;
(function (ChannelsEnum$) {
    /** @deprecated use `ChannelsEnum$inboundSchema` instead. */
    ChannelsEnum$.inboundSchema = exports.ChannelsEnum$inboundSchema;
    /** @deprecated use `ChannelsEnum$outboundSchema` instead. */
    ChannelsEnum$.outboundSchema = exports.ChannelsEnum$outboundSchema;
})(ChannelsEnum$ || (exports.ChannelsEnum$ = ChannelsEnum$ = {}));
//# sourceMappingURL=channelsenum.js.map