"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.InAppMessages$ = exports.InAppMessages$outboundSchema = exports.InAppMessages$inboundSchema = exports.InAppMessagesMessageType$ = exports.InAppMessagesMessageType$outboundSchema = exports.InAppMessagesMessageType$inboundSchema = exports.InAppMessagesValue$ = exports.InAppMessagesValue$outboundSchema = exports.InAppMessagesValue$inboundSchema = exports.InAppMessagesSourceValue$ = exports.InAppMessagesSourceValue$outboundSchema = exports.InAppMessagesSourceValue$inboundSchema = exports.InAppMessages4$ = exports.InAppMessages4$outboundSchema = exports.InAppMessages4$inboundSchema = exports.InAppMessagesMessageContent$ = exports.InAppMessagesMessageContent$outboundSchema = exports.InAppMessagesMessageContent$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
/** @internal */
exports.InAppMessagesMessageContent$inboundSchema = z.object({
    body: z.nullable(z.string()).optional(),
});
/** @internal */
exports.InAppMessagesMessageContent$outboundSchema = z.object({
    body: z.nullable(z.string()).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var InAppMessagesMessageContent$;
(function (InAppMessagesMessageContent$) {
    /** @deprecated use `InAppMessagesMessageContent$inboundSchema` instead. */
    InAppMessagesMessageContent$.inboundSchema = exports.InAppMessagesMessageContent$inboundSchema;
    /** @deprecated use `InAppMessagesMessageContent$outboundSchema` instead. */
    InAppMessagesMessageContent$.outboundSchema = exports.InAppMessagesMessageContent$outboundSchema;
})(InAppMessagesMessageContent$ || (exports.InAppMessagesMessageContent$ = InAppMessagesMessageContent$ = {}));
/** @internal */
exports.InAppMessages4$inboundSchema = z.object({});
/** @internal */
exports.InAppMessages4$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 InAppMessages4$;
(function (InAppMessages4$) {
    /** @deprecated use `InAppMessages4$inboundSchema` instead. */
    InAppMessages4$.inboundSchema = exports.InAppMessages4$inboundSchema;
    /** @deprecated use `InAppMessages4$outboundSchema` instead. */
    InAppMessages4$.outboundSchema = exports.InAppMessages4$outboundSchema;
})(InAppMessages4$ || (exports.InAppMessages4$ = InAppMessages4$ = {}));
/** @internal */
exports.InAppMessagesSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.InAppMessages4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.InAppMessagesSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.InAppMessages4$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 InAppMessagesSourceValue$;
(function (InAppMessagesSourceValue$) {
    /** @deprecated use `InAppMessagesSourceValue$inboundSchema` instead. */
    InAppMessagesSourceValue$.inboundSchema = exports.InAppMessagesSourceValue$inboundSchema;
    /** @deprecated use `InAppMessagesSourceValue$outboundSchema` instead. */
    InAppMessagesSourceValue$.outboundSchema = exports.InAppMessagesSourceValue$outboundSchema;
})(InAppMessagesSourceValue$ || (exports.InAppMessagesSourceValue$ = InAppMessagesSourceValue$ = {}));
/** @internal */
exports.InAppMessagesValue$inboundSchema = z.object({});
/** @internal */
exports.InAppMessagesValue$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 InAppMessagesValue$;
(function (InAppMessagesValue$) {
    /** @deprecated use `InAppMessagesValue$inboundSchema` instead. */
    InAppMessagesValue$.inboundSchema = exports.InAppMessagesValue$inboundSchema;
    /** @deprecated use `InAppMessagesValue$outboundSchema` instead. */
    InAppMessagesValue$.outboundSchema = exports.InAppMessagesValue$outboundSchema;
})(InAppMessagesValue$ || (exports.InAppMessagesValue$ = InAppMessagesValue$ = {}));
/** @internal */
exports.InAppMessagesMessageType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.InAppMessages4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(z.lazy(() => exports.InAppMessagesValue$inboundSchema)).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.InAppMessagesMessageType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.InAppMessages4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(z.lazy(() => exports.InAppMessagesValue$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 InAppMessagesMessageType$;
(function (InAppMessagesMessageType$) {
    /** @deprecated use `InAppMessagesMessageType$inboundSchema` instead. */
    InAppMessagesMessageType$.inboundSchema = exports.InAppMessagesMessageType$inboundSchema;
    /** @deprecated use `InAppMessagesMessageType$outboundSchema` instead. */
    InAppMessagesMessageType$.outboundSchema = exports.InAppMessagesMessageType$outboundSchema;
})(InAppMessagesMessageType$ || (exports.InAppMessagesMessageType$ = InAppMessagesMessageType$ = {}));
/** @internal */
exports.InAppMessages$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    message_content: z.nullable(z.lazy(() => exports.InAppMessagesMessageContent$inboundSchema)).optional(),
    message_type: z.nullable(z.lazy(() => exports.InAppMessagesMessageType$inboundSchema))
        .optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "message_content": "messageContent",
        "message_type": "messageType",
        "remote_id": "remoteId",
    });
});
/** @internal */
exports.InAppMessages$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    messageContent: z.nullable(z.lazy(() => exports.InAppMessagesMessageContent$outboundSchema)).optional(),
    messageType: z.nullable(z.lazy(() => exports.InAppMessagesMessageType$outboundSchema))
        .optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        messageContent: "message_content",
        messageType: "message_type",
        remoteId: "remote_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var InAppMessages$;
(function (InAppMessages$) {
    /** @deprecated use `InAppMessages$inboundSchema` instead. */
    InAppMessages$.inboundSchema = exports.InAppMessages$inboundSchema;
    /** @deprecated use `InAppMessages$outboundSchema` instead. */
    InAppMessages$.outboundSchema = exports.InAppMessages$outboundSchema;
})(InAppMessages$ || (exports.InAppMessages$ = InAppMessages$ = {}));
//# sourceMappingURL=inappmessages.js.map