"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.CampaignSchemasValue$outboundSchema = exports.CampaignSchemasValue$inboundSchema = exports.campaignSchemasSourceValueFromJSON = exports.campaignSchemasSourceValueToJSON = exports.CampaignSchemasSourceValue$ = exports.CampaignSchemasSourceValue$outboundSchema = exports.CampaignSchemasSourceValue$inboundSchema = exports.campaignSchemas4FromJSON = exports.campaignSchemas4ToJSON = exports.CampaignSchemas4$ = exports.CampaignSchemas4$outboundSchema = exports.CampaignSchemas4$inboundSchema = exports.scheduleTypeFromJSON = exports.scheduleTypeToJSON = exports.ScheduleType$ = exports.ScheduleType$outboundSchema = exports.ScheduleType$inboundSchema = exports.CampaignValue$ = exports.CampaignValue$outboundSchema = exports.CampaignValue$inboundSchema = exports.campaignSourceValueFromJSON = exports.campaignSourceValueToJSON = exports.CampaignSourceValue$ = exports.CampaignSourceValue$outboundSchema = exports.CampaignSourceValue$inboundSchema = exports.campaign4FromJSON = exports.campaign4ToJSON = exports.Campaign4$ = exports.Campaign4$outboundSchema = exports.Campaign4$inboundSchema = exports.draftFromJSON = exports.draftToJSON = exports.Draft$ = exports.Draft$outboundSchema = exports.Draft$inboundSchema = exports.Campaign2$ = exports.Campaign2$outboundSchema = exports.Campaign2$inboundSchema = exports.archivedFromJSON = exports.archivedToJSON = exports.Archived$ = exports.Archived$outboundSchema = exports.Archived$inboundSchema = exports.Two$ = exports.Two$outboundSchema = exports.Two$inboundSchema = exports.CampaignSchemasValue = exports.CampaignValue = exports.Campaign2 = exports.Two = void 0;
exports.campaignFromJSON = exports.campaignToJSON = exports.Campaign$ = exports.Campaign$outboundSchema = exports.Campaign$inboundSchema = exports.campaignStatusFromJSON = exports.campaignStatusToJSON = exports.CampaignStatus$ = exports.CampaignStatus$outboundSchema = exports.CampaignStatus$inboundSchema = exports.CampaignSchemasValue$ = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
const channelsenum_js_1 = require("./channelsenum.js");
const createmessage_js_1 = require("./createmessage.js");
var Two;
(function (Two) {
    Two["True"] = "true";
    Two["False"] = "false";
})(Two || (exports.Two = Two = {}));
var Campaign2;
(function (Campaign2) {
    Campaign2["True"] = "true";
    Campaign2["False"] = "false";
})(Campaign2 || (exports.Campaign2 = Campaign2 = {}));
/**
 * The schedule type of the campaign.
 */
var CampaignValue;
(function (CampaignValue) {
    CampaignValue["Immediate"] = "immediate";
    CampaignValue["Scheduled"] = "scheduled";
    CampaignValue["Recurring"] = "recurring";
    CampaignValue["Custom"] = "custom";
    CampaignValue["Triggered"] = "triggered";
})(CampaignValue || (exports.CampaignValue = CampaignValue = {}));
/**
 * The Status of the campaign.
 */
var CampaignSchemasValue;
(function (CampaignSchemasValue) {
    CampaignSchemasValue["Draft"] = "draft";
    CampaignSchemasValue["Archived"] = "archived";
    CampaignSchemasValue["Live"] = "live";
})(CampaignSchemasValue || (exports.CampaignSchemasValue = CampaignSchemasValue = {}));
/** @internal */
exports.Two$inboundSchema = z.nativeEnum(Two);
/** @internal */
exports.Two$outboundSchema = exports.Two$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Two$;
(function (Two$) {
    /** @deprecated use `Two$inboundSchema` instead. */
    Two$.inboundSchema = exports.Two$inboundSchema;
    /** @deprecated use `Two$outboundSchema` instead. */
    Two$.outboundSchema = exports.Two$outboundSchema;
})(Two$ || (exports.Two$ = Two$ = {}));
/** @internal */
exports.Archived$inboundSchema = z.union([z.boolean(), exports.Two$inboundSchema]);
/** @internal */
exports.Archived$outboundSchema = z.union([z.boolean(), exports.Two$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Archived$;
(function (Archived$) {
    /** @deprecated use `Archived$inboundSchema` instead. */
    Archived$.inboundSchema = exports.Archived$inboundSchema;
    /** @deprecated use `Archived$outboundSchema` instead. */
    Archived$.outboundSchema = exports.Archived$outboundSchema;
})(Archived$ || (exports.Archived$ = Archived$ = {}));
function archivedToJSON(archived) {
    return JSON.stringify(exports.Archived$outboundSchema.parse(archived));
}
exports.archivedToJSON = archivedToJSON;
function archivedFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Archived$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Archived' from JSON`);
}
exports.archivedFromJSON = archivedFromJSON;
/** @internal */
exports.Campaign2$inboundSchema = z
    .nativeEnum(Campaign2);
/** @internal */
exports.Campaign2$outboundSchema = exports.Campaign2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Campaign2$;
(function (Campaign2$) {
    /** @deprecated use `Campaign2$inboundSchema` instead. */
    Campaign2$.inboundSchema = exports.Campaign2$inboundSchema;
    /** @deprecated use `Campaign2$outboundSchema` instead. */
    Campaign2$.outboundSchema = exports.Campaign2$outboundSchema;
})(Campaign2$ || (exports.Campaign2$ = Campaign2$ = {}));
/** @internal */
exports.Draft$inboundSchema = z
    .union([z.boolean(), exports.Campaign2$inboundSchema]);
/** @internal */
exports.Draft$outboundSchema = z.union([z.boolean(), exports.Campaign2$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Draft$;
(function (Draft$) {
    /** @deprecated use `Draft$inboundSchema` instead. */
    Draft$.inboundSchema = exports.Draft$inboundSchema;
    /** @deprecated use `Draft$outboundSchema` instead. */
    Draft$.outboundSchema = exports.Draft$outboundSchema;
})(Draft$ || (exports.Draft$ = Draft$ = {}));
function draftToJSON(draft) {
    return JSON.stringify(exports.Draft$outboundSchema.parse(draft));
}
exports.draftToJSON = draftToJSON;
function draftFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Draft$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Draft' from JSON`);
}
exports.draftFromJSON = draftFromJSON;
/** @internal */
exports.Campaign4$inboundSchema = z.object({});
/** @internal */
exports.Campaign4$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 Campaign4$;
(function (Campaign4$) {
    /** @deprecated use `Campaign4$inboundSchema` instead. */
    Campaign4$.inboundSchema = exports.Campaign4$inboundSchema;
    /** @deprecated use `Campaign4$outboundSchema` instead. */
    Campaign4$.outboundSchema = exports.Campaign4$outboundSchema;
})(Campaign4$ || (exports.Campaign4$ = Campaign4$ = {}));
function campaign4ToJSON(campaign4) {
    return JSON.stringify(exports.Campaign4$outboundSchema.parse(campaign4));
}
exports.campaign4ToJSON = campaign4ToJSON;
function campaign4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Campaign4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Campaign4' from JSON`);
}
exports.campaign4FromJSON = campaign4FromJSON;
/** @internal */
exports.CampaignSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.Campaign4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.CampaignSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.Campaign4$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 CampaignSourceValue$;
(function (CampaignSourceValue$) {
    /** @deprecated use `CampaignSourceValue$inboundSchema` instead. */
    CampaignSourceValue$.inboundSchema = exports.CampaignSourceValue$inboundSchema;
    /** @deprecated use `CampaignSourceValue$outboundSchema` instead. */
    CampaignSourceValue$.outboundSchema = exports.CampaignSourceValue$outboundSchema;
})(CampaignSourceValue$ || (exports.CampaignSourceValue$ = CampaignSourceValue$ = {}));
function campaignSourceValueToJSON(campaignSourceValue) {
    return JSON.stringify(exports.CampaignSourceValue$outboundSchema.parse(campaignSourceValue));
}
exports.campaignSourceValueToJSON = campaignSourceValueToJSON;
function campaignSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CampaignSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignSourceValue' from JSON`);
}
exports.campaignSourceValueFromJSON = campaignSourceValueFromJSON;
/** @internal */
exports.CampaignValue$inboundSchema = z
    .union([
    z.nativeEnum(CampaignValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CampaignValue$outboundSchema = z.union([
    z.nativeEnum(CampaignValue),
    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 CampaignValue$;
(function (CampaignValue$) {
    /** @deprecated use `CampaignValue$inboundSchema` instead. */
    CampaignValue$.inboundSchema = exports.CampaignValue$inboundSchema;
    /** @deprecated use `CampaignValue$outboundSchema` instead. */
    CampaignValue$.outboundSchema = exports.CampaignValue$outboundSchema;
})(CampaignValue$ || (exports.CampaignValue$ = CampaignValue$ = {}));
/** @internal */
exports.ScheduleType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.Campaign4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CampaignValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.ScheduleType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.Campaign4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CampaignValue$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 ScheduleType$;
(function (ScheduleType$) {
    /** @deprecated use `ScheduleType$inboundSchema` instead. */
    ScheduleType$.inboundSchema = exports.ScheduleType$inboundSchema;
    /** @deprecated use `ScheduleType$outboundSchema` instead. */
    ScheduleType$.outboundSchema = exports.ScheduleType$outboundSchema;
})(ScheduleType$ || (exports.ScheduleType$ = ScheduleType$ = {}));
function scheduleTypeToJSON(scheduleType) {
    return JSON.stringify(exports.ScheduleType$outboundSchema.parse(scheduleType));
}
exports.scheduleTypeToJSON = scheduleTypeToJSON;
function scheduleTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ScheduleType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ScheduleType' from JSON`);
}
exports.scheduleTypeFromJSON = scheduleTypeFromJSON;
/** @internal */
exports.CampaignSchemas4$inboundSchema = z.object({});
/** @internal */
exports.CampaignSchemas4$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 CampaignSchemas4$;
(function (CampaignSchemas4$) {
    /** @deprecated use `CampaignSchemas4$inboundSchema` instead. */
    CampaignSchemas4$.inboundSchema = exports.CampaignSchemas4$inboundSchema;
    /** @deprecated use `CampaignSchemas4$outboundSchema` instead. */
    CampaignSchemas4$.outboundSchema = exports.CampaignSchemas4$outboundSchema;
})(CampaignSchemas4$ || (exports.CampaignSchemas4$ = CampaignSchemas4$ = {}));
function campaignSchemas4ToJSON(campaignSchemas4) {
    return JSON.stringify(exports.CampaignSchemas4$outboundSchema.parse(campaignSchemas4));
}
exports.campaignSchemas4ToJSON = campaignSchemas4ToJSON;
function campaignSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CampaignSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignSchemas4' from JSON`);
}
exports.campaignSchemas4FromJSON = campaignSchemas4FromJSON;
/** @internal */
exports.CampaignSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.CampaignSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.CampaignSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.CampaignSchemas4$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 CampaignSchemasSourceValue$;
(function (CampaignSchemasSourceValue$) {
    /** @deprecated use `CampaignSchemasSourceValue$inboundSchema` instead. */
    CampaignSchemasSourceValue$.inboundSchema = exports.CampaignSchemasSourceValue$inboundSchema;
    /** @deprecated use `CampaignSchemasSourceValue$outboundSchema` instead. */
    CampaignSchemasSourceValue$.outboundSchema = exports.CampaignSchemasSourceValue$outboundSchema;
})(CampaignSchemasSourceValue$ || (exports.CampaignSchemasSourceValue$ = CampaignSchemasSourceValue$ = {}));
function campaignSchemasSourceValueToJSON(campaignSchemasSourceValue) {
    return JSON.stringify(exports.CampaignSchemasSourceValue$outboundSchema.parse(campaignSchemasSourceValue));
}
exports.campaignSchemasSourceValueToJSON = campaignSchemasSourceValueToJSON;
function campaignSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CampaignSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignSchemasSourceValue' from JSON`);
}
exports.campaignSchemasSourceValueFromJSON = campaignSchemasSourceValueFromJSON;
/** @internal */
exports.CampaignSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(CampaignSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.CampaignSchemasValue$outboundSchema = z.union([
    z.nativeEnum(CampaignSchemasValue),
    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 CampaignSchemasValue$;
(function (CampaignSchemasValue$) {
    /** @deprecated use `CampaignSchemasValue$inboundSchema` instead. */
    CampaignSchemasValue$.inboundSchema = exports.CampaignSchemasValue$inboundSchema;
    /** @deprecated use `CampaignSchemasValue$outboundSchema` instead. */
    CampaignSchemasValue$.outboundSchema = exports.CampaignSchemasValue$outboundSchema;
})(CampaignSchemasValue$ || (exports.CampaignSchemasValue$ = CampaignSchemasValue$ = {}));
/** @internal */
exports.CampaignStatus$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.CampaignSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CampaignSchemasValue$inboundSchema).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CampaignStatus$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.CampaignSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.CampaignSchemasValue$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 CampaignStatus$;
(function (CampaignStatus$) {
    /** @deprecated use `CampaignStatus$inboundSchema` instead. */
    CampaignStatus$.inboundSchema = exports.CampaignStatus$inboundSchema;
    /** @deprecated use `CampaignStatus$outboundSchema` instead. */
    CampaignStatus$.outboundSchema = exports.CampaignStatus$outboundSchema;
})(CampaignStatus$ || (exports.CampaignStatus$ = CampaignStatus$ = {}));
function campaignStatusToJSON(campaignStatus) {
    return JSON.stringify(exports.CampaignStatus$outboundSchema.parse(campaignStatus));
}
exports.campaignStatusToJSON = campaignStatusToJSON;
function campaignStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CampaignStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CampaignStatus' from JSON`);
}
exports.campaignStatusFromJSON = campaignStatusFromJSON;
/** @internal */
exports.Campaign$inboundSchema = z.object({
    archived: z.nullable(z.union([z.boolean(), exports.Two$inboundSchema])).optional(),
    channels: z.nullable(z.array(channelsenum_js_1.ChannelsEnum$inboundSchema)).optional(),
    created_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    description: z.nullable(z.string()).optional(),
    draft: z.nullable(z.union([z.boolean(), exports.Campaign2$inboundSchema])).optional(),
    first_sent_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    id: z.nullable(z.string()).optional(),
    last_sent_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    messages: z.nullable(z.array(createmessage_js_1.Message$inboundSchema)).optional(),
    name: z.nullable(z.string()).optional(),
    remote_id: z.nullable(z.string()).optional(),
    schedule_type: z.nullable(z.lazy(() => exports.ScheduleType$inboundSchema))
        .optional(),
    status: z.nullable(z.lazy(() => exports.CampaignStatus$inboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "created_at": "createdAt",
        "first_sent_at": "firstSentAt",
        "last_sent_at": "lastSentAt",
        "remote_id": "remoteId",
        "schedule_type": "scheduleType",
        "updated_at": "updatedAt",
    });
});
/** @internal */
exports.Campaign$outboundSchema = z.object({
    archived: z.nullable(z.union([z.boolean(), exports.Two$outboundSchema])).optional(),
    channels: z.nullable(z.array(channelsenum_js_1.ChannelsEnum$outboundSchema)).optional(),
    createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    description: z.nullable(z.string()).optional(),
    draft: z.nullable(z.union([z.boolean(), exports.Campaign2$outboundSchema]))
        .optional(),
    firstSentAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    id: z.nullable(z.string()).optional(),
    lastSentAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    messages: z.nullable(z.array(createmessage_js_1.Message$outboundSchema)).optional(),
    name: z.nullable(z.string()).optional(),
    remoteId: z.nullable(z.string()).optional(),
    scheduleType: z.nullable(z.lazy(() => exports.ScheduleType$outboundSchema))
        .optional(),
    status: z.nullable(z.lazy(() => exports.CampaignStatus$outboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        createdAt: "created_at",
        firstSentAt: "first_sent_at",
        lastSentAt: "last_sent_at",
        remoteId: "remote_id",
        scheduleType: "schedule_type",
        updatedAt: "updated_at",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Campaign$;
(function (Campaign$) {
    /** @deprecated use `Campaign$inboundSchema` instead. */
    Campaign$.inboundSchema = exports.Campaign$inboundSchema;
    /** @deprecated use `Campaign$outboundSchema` instead. */
    Campaign$.outboundSchema = exports.Campaign$outboundSchema;
})(Campaign$ || (exports.Campaign$ = Campaign$ = {}));
function campaignToJSON(campaign) {
    return JSON.stringify(exports.Campaign$outboundSchema.parse(campaign));
}
exports.campaignToJSON = campaignToJSON;
function campaignFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Campaign$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Campaign' from JSON`);
}
exports.campaignFromJSON = campaignFromJSON;
//# sourceMappingURL=campaign.js.map