/*
 * 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 * as components from "../components/index.js";
/** @internal */
export const CreateStreamingProfileGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const CreateStreamingProfileGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateStreamingProfileGlobals$;
(function (CreateStreamingProfileGlobals$) {
    /** @deprecated use `CreateStreamingProfileGlobals$inboundSchema` instead. */
    CreateStreamingProfileGlobals$.inboundSchema = CreateStreamingProfileGlobals$inboundSchema;
    /** @deprecated use `CreateStreamingProfileGlobals$outboundSchema` instead. */
    CreateStreamingProfileGlobals$.outboundSchema = CreateStreamingProfileGlobals$outboundSchema;
})(CreateStreamingProfileGlobals$ || (CreateStreamingProfileGlobals$ = {}));
export function createStreamingProfileGlobalsToJSON(createStreamingProfileGlobals) {
    return JSON.stringify(CreateStreamingProfileGlobals$outboundSchema.parse(createStreamingProfileGlobals));
}
export function createStreamingProfileGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateStreamingProfileGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateStreamingProfileGlobals' from JSON`);
}
/** @internal */
export const CreateStreamingProfileResponse$inboundSchema = z.object({
    data: components.StreamingProfile$inboundSchema,
});
/** @internal */
export const CreateStreamingProfileResponse$outboundSchema = z.object({
    data: components.StreamingProfile$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateStreamingProfileResponse$;
(function (CreateStreamingProfileResponse$) {
    /** @deprecated use `CreateStreamingProfileResponse$inboundSchema` instead. */
    CreateStreamingProfileResponse$.inboundSchema = CreateStreamingProfileResponse$inboundSchema;
    /** @deprecated use `CreateStreamingProfileResponse$outboundSchema` instead. */
    CreateStreamingProfileResponse$.outboundSchema = CreateStreamingProfileResponse$outboundSchema;
})(CreateStreamingProfileResponse$ || (CreateStreamingProfileResponse$ = {}));
export function createStreamingProfileResponseToJSON(createStreamingProfileResponse) {
    return JSON.stringify(CreateStreamingProfileResponse$outboundSchema.parse(createStreamingProfileResponse));
}
export function createStreamingProfileResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateStreamingProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateStreamingProfileResponse' from JSON`);
}
//# sourceMappingURL=createstreamingprofile.js.map