"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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PowerPathTestQuestion$ = exports.PowerPathTestQuestion$outboundSchema = exports.PowerPathTestQuestion$inboundSchema = exports.PowerPathTestQuestionResult$ = exports.PowerPathTestQuestionResult$outboundSchema = exports.PowerPathTestQuestionResult$inboundSchema = exports.PowerPathTestQuestionResponse$ = exports.PowerPathTestQuestionResponse$outboundSchema = exports.PowerPathTestQuestionResponse$inboundSchema = exports.PowerPathTestQuestionContent$ = exports.PowerPathTestQuestionContent$outboundSchema = exports.PowerPathTestQuestionContent$inboundSchema = exports.PowerPathTestQuestionDifficulty$ = exports.PowerPathTestQuestionDifficulty$outboundSchema = exports.PowerPathTestQuestionDifficulty$inboundSchema = exports.PowerPathTestQuestionDifficulty = void 0;
exports.powerPathTestQuestionContentToJSON = powerPathTestQuestionContentToJSON;
exports.powerPathTestQuestionContentFromJSON = powerPathTestQuestionContentFromJSON;
exports.powerPathTestQuestionResponseToJSON = powerPathTestQuestionResponseToJSON;
exports.powerPathTestQuestionResponseFromJSON = powerPathTestQuestionResponseFromJSON;
exports.powerPathTestQuestionResultToJSON = powerPathTestQuestionResultToJSON;
exports.powerPathTestQuestionResultFromJSON = powerPathTestQuestionResultFromJSON;
exports.powerPathTestQuestionToJSON = powerPathTestQuestionToJSON;
exports.powerPathTestQuestionFromJSON = powerPathTestQuestionFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The difficulty of the question
 */
exports.PowerPathTestQuestionDifficulty = {
    Easy: "easy",
    Medium: "medium",
    Hard: "hard",
};
/** @internal */
exports.PowerPathTestQuestionDifficulty$inboundSchema = z.nativeEnum(exports.PowerPathTestQuestionDifficulty);
/** @internal */
exports.PowerPathTestQuestionDifficulty$outboundSchema = exports.PowerPathTestQuestionDifficulty$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PowerPathTestQuestionDifficulty$;
(function (PowerPathTestQuestionDifficulty$) {
    /** @deprecated use `PowerPathTestQuestionDifficulty$inboundSchema` instead. */
    PowerPathTestQuestionDifficulty$.inboundSchema = exports.PowerPathTestQuestionDifficulty$inboundSchema;
    /** @deprecated use `PowerPathTestQuestionDifficulty$outboundSchema` instead. */
    PowerPathTestQuestionDifficulty$.outboundSchema = exports.PowerPathTestQuestionDifficulty$outboundSchema;
})(PowerPathTestQuestionDifficulty$ || (exports.PowerPathTestQuestionDifficulty$ = PowerPathTestQuestionDifficulty$ = {}));
/** @internal */
exports.PowerPathTestQuestionContent$inboundSchema = z.object({
    type: z.string().optional(),
    rawXml: z.string(),
});
/** @internal */
exports.PowerPathTestQuestionContent$outboundSchema = z.object({
    type: z.string().optional(),
    rawXml: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PowerPathTestQuestionContent$;
(function (PowerPathTestQuestionContent$) {
    /** @deprecated use `PowerPathTestQuestionContent$inboundSchema` instead. */
    PowerPathTestQuestionContent$.inboundSchema = exports.PowerPathTestQuestionContent$inboundSchema;
    /** @deprecated use `PowerPathTestQuestionContent$outboundSchema` instead. */
    PowerPathTestQuestionContent$.outboundSchema = exports.PowerPathTestQuestionContent$outboundSchema;
})(PowerPathTestQuestionContent$ || (exports.PowerPathTestQuestionContent$ = PowerPathTestQuestionContent$ = {}));
function powerPathTestQuestionContentToJSON(powerPathTestQuestionContent) {
    return JSON.stringify(exports.PowerPathTestQuestionContent$outboundSchema.parse(powerPathTestQuestionContent));
}
function powerPathTestQuestionContentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PowerPathTestQuestionContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PowerPathTestQuestionContent' from JSON`);
}
/** @internal */
exports.PowerPathTestQuestionResponse$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.PowerPathTestQuestionResponse$outboundSchema = z.union([z.string(), z.array(z.string())]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PowerPathTestQuestionResponse$;
(function (PowerPathTestQuestionResponse$) {
    /** @deprecated use `PowerPathTestQuestionResponse$inboundSchema` instead. */
    PowerPathTestQuestionResponse$.inboundSchema = exports.PowerPathTestQuestionResponse$inboundSchema;
    /** @deprecated use `PowerPathTestQuestionResponse$outboundSchema` instead. */
    PowerPathTestQuestionResponse$.outboundSchema = exports.PowerPathTestQuestionResponse$outboundSchema;
})(PowerPathTestQuestionResponse$ || (exports.PowerPathTestQuestionResponse$ = PowerPathTestQuestionResponse$ = {}));
function powerPathTestQuestionResponseToJSON(powerPathTestQuestionResponse) {
    return JSON.stringify(exports.PowerPathTestQuestionResponse$outboundSchema.parse(powerPathTestQuestionResponse));
}
function powerPathTestQuestionResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PowerPathTestQuestionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PowerPathTestQuestionResponse' from JSON`);
}
/** @internal */
exports.PowerPathTestQuestionResult$inboundSchema = z.object({
    score: z.number(),
    feedback: z.string(),
});
/** @internal */
exports.PowerPathTestQuestionResult$outboundSchema = z.object({
    score: z.number(),
    feedback: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PowerPathTestQuestionResult$;
(function (PowerPathTestQuestionResult$) {
    /** @deprecated use `PowerPathTestQuestionResult$inboundSchema` instead. */
    PowerPathTestQuestionResult$.inboundSchema = exports.PowerPathTestQuestionResult$inboundSchema;
    /** @deprecated use `PowerPathTestQuestionResult$outboundSchema` instead. */
    PowerPathTestQuestionResult$.outboundSchema = exports.PowerPathTestQuestionResult$outboundSchema;
})(PowerPathTestQuestionResult$ || (exports.PowerPathTestQuestionResult$ = PowerPathTestQuestionResult$ = {}));
function powerPathTestQuestionResultToJSON(powerPathTestQuestionResult) {
    return JSON.stringify(exports.PowerPathTestQuestionResult$outboundSchema.parse(powerPathTestQuestionResult));
}
function powerPathTestQuestionResultFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PowerPathTestQuestionResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PowerPathTestQuestionResult' from JSON`);
}
/** @internal */
exports.PowerPathTestQuestion$inboundSchema = z.object({
    id: z.string(),
    index: z.number(),
    title: z.string(),
    url: z.string(),
    difficulty: exports.PowerPathTestQuestionDifficulty$inboundSchema.default("medium"),
    content: z.lazy(() => exports.PowerPathTestQuestionContent$inboundSchema).optional(),
    response: z.union([z.string(), z.array(z.string())]).optional(),
    correct: z.boolean().optional(),
    result: z.lazy(() => exports.PowerPathTestQuestionResult$inboundSchema).optional(),
});
/** @internal */
exports.PowerPathTestQuestion$outboundSchema = z.object({
    id: z.string(),
    index: z.number(),
    title: z.string(),
    url: z.string(),
    difficulty: exports.PowerPathTestQuestionDifficulty$outboundSchema.default("medium"),
    content: z.lazy(() => exports.PowerPathTestQuestionContent$outboundSchema).optional(),
    response: z.union([z.string(), z.array(z.string())]).optional(),
    correct: z.boolean().optional(),
    result: z.lazy(() => exports.PowerPathTestQuestionResult$outboundSchema).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var PowerPathTestQuestion$;
(function (PowerPathTestQuestion$) {
    /** @deprecated use `PowerPathTestQuestion$inboundSchema` instead. */
    PowerPathTestQuestion$.inboundSchema = exports.PowerPathTestQuestion$inboundSchema;
    /** @deprecated use `PowerPathTestQuestion$outboundSchema` instead. */
    PowerPathTestQuestion$.outboundSchema = exports.PowerPathTestQuestion$outboundSchema;
})(PowerPathTestQuestion$ || (exports.PowerPathTestQuestion$ = PowerPathTestQuestion$ = {}));
function powerPathTestQuestionToJSON(powerPathTestQuestion) {
    return JSON.stringify(exports.PowerPathTestQuestion$outboundSchema.parse(powerPathTestQuestion));
}
function powerPathTestQuestionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PowerPathTestQuestion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PowerPathTestQuestion' from JSON`);
}
//# sourceMappingURL=powerpathtestquestion.js.map