/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { Source$inboundSchema, Source$outboundSchema, } from "./source.js";
/** @internal */
export const BaseAnalyzeRequest$inboundSchema = z.object({
    source: Source$inboundSchema,
    async: z.boolean().optional(),
    notification_url: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "notification_url": "notificationUrl",
    });
});
/** @internal */
export const BaseAnalyzeRequest$outboundSchema = z.object({
    source: Source$outboundSchema,
    async: z.boolean().optional(),
    notificationUrl: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        notificationUrl: "notification_url",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var BaseAnalyzeRequest$;
(function (BaseAnalyzeRequest$) {
    /** @deprecated use `BaseAnalyzeRequest$inboundSchema` instead. */
    BaseAnalyzeRequest$.inboundSchema = BaseAnalyzeRequest$inboundSchema;
    /** @deprecated use `BaseAnalyzeRequest$outboundSchema` instead. */
    BaseAnalyzeRequest$.outboundSchema = BaseAnalyzeRequest$outboundSchema;
})(BaseAnalyzeRequest$ || (BaseAnalyzeRequest$ = {}));
export function baseAnalyzeRequestToJSON(baseAnalyzeRequest) {
    return JSON.stringify(BaseAnalyzeRequest$outboundSchema.parse(baseAnalyzeRequest));
}
export function baseAnalyzeRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => BaseAnalyzeRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BaseAnalyzeRequest' from JSON`);
}
//# sourceMappingURL=baseanalyzerequest.js.map