/*
 * 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 StreamingProfileUpdate$inboundSchema = z.object({
    display_name: z.string().optional(),
    representations: z.string(),
}).transform((v) => {
    return remap$(v, {
        "display_name": "displayName",
    });
});
/** @internal */
export const StreamingProfileUpdate$outboundSchema = z.object({
    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 StreamingProfileUpdate$;
(function (StreamingProfileUpdate$) {
    /** @deprecated use `StreamingProfileUpdate$inboundSchema` instead. */
    StreamingProfileUpdate$.inboundSchema = StreamingProfileUpdate$inboundSchema;
    /** @deprecated use `StreamingProfileUpdate$outboundSchema` instead. */
    StreamingProfileUpdate$.outboundSchema = StreamingProfileUpdate$outboundSchema;
})(StreamingProfileUpdate$ || (StreamingProfileUpdate$ = {}));
export function streamingProfileUpdateToJSON(streamingProfileUpdate) {
    return JSON.stringify(StreamingProfileUpdate$outboundSchema.parse(streamingProfileUpdate));
}
export function streamingProfileUpdateFromJSON(jsonString) {
    return safeParse(jsonString, (x) => StreamingProfileUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StreamingProfileUpdate' from JSON`);
}
//# sourceMappingURL=streamingprofileupdate.js.map