/*
 * 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";
/** @internal */
export const StreamingProfileCreate$inboundSchema = z.object({
    name: z.string(),
    display_name: z.string().optional(),
    representations: z.string(),
}).transform((v) => {
    return remap$(v, {
        "display_name": "displayName",
    });
});
/** @internal */
export const StreamingProfileCreate$outboundSchema = z.object({
    name: z.string(),
    displayName: z.string().optional(),
    representations: z.string(),
}).transform((v) => {
    return remap$(v, {
        displayName: "display_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var StreamingProfileCreate$;
(function (StreamingProfileCreate$) {
    /** @deprecated use `StreamingProfileCreate$inboundSchema` instead. */
    StreamingProfileCreate$.inboundSchema = StreamingProfileCreate$inboundSchema;
    /** @deprecated use `StreamingProfileCreate$outboundSchema` instead. */
    StreamingProfileCreate$.outboundSchema = StreamingProfileCreate$outboundSchema;
})(StreamingProfileCreate$ || (StreamingProfileCreate$ = {}));
export function streamingProfileCreateToJSON(streamingProfileCreate) {
    return JSON.stringify(StreamingProfileCreate$outboundSchema.parse(streamingProfileCreate));
}
export function streamingProfileCreateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => StreamingProfileCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StreamingProfileCreate' from JSON`);
}
//# sourceMappingURL=streamingprofilecreate.js.map