/*
 * 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 UpdateStreamingProfileGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const UpdateStreamingProfileGlobals$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 UpdateStreamingProfileGlobals$;
(function (UpdateStreamingProfileGlobals$) {
    /** @deprecated use `UpdateStreamingProfileGlobals$inboundSchema` instead. */
    UpdateStreamingProfileGlobals$.inboundSchema = UpdateStreamingProfileGlobals$inboundSchema;
    /** @deprecated use `UpdateStreamingProfileGlobals$outboundSchema` instead. */
    UpdateStreamingProfileGlobals$.outboundSchema = UpdateStreamingProfileGlobals$outboundSchema;
})(UpdateStreamingProfileGlobals$ || (UpdateStreamingProfileGlobals$ = {}));
export function updateStreamingProfileGlobalsToJSON(updateStreamingProfileGlobals) {
    return JSON.stringify(UpdateStreamingProfileGlobals$outboundSchema.parse(updateStreamingProfileGlobals));
}
export function updateStreamingProfileGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateStreamingProfileGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateStreamingProfileGlobals' from JSON`);
}
/** @internal */
export const UpdateStreamingProfileRequest$inboundSchema = z.object({
    name: z.string(),
    streaming_profile_update: components.StreamingProfileUpdate$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "streaming_profile_update": "streamingProfileUpdate",
    });
});
/** @internal */
export const UpdateStreamingProfileRequest$outboundSchema = z.object({
    name: z.string(),
    streamingProfileUpdate: components.StreamingProfileUpdate$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        streamingProfileUpdate: "streaming_profile_update",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var UpdateStreamingProfileRequest$;
(function (UpdateStreamingProfileRequest$) {
    /** @deprecated use `UpdateStreamingProfileRequest$inboundSchema` instead. */
    UpdateStreamingProfileRequest$.inboundSchema = UpdateStreamingProfileRequest$inboundSchema;
    /** @deprecated use `UpdateStreamingProfileRequest$outboundSchema` instead. */
    UpdateStreamingProfileRequest$.outboundSchema = UpdateStreamingProfileRequest$outboundSchema;
})(UpdateStreamingProfileRequest$ || (UpdateStreamingProfileRequest$ = {}));
export function updateStreamingProfileRequestToJSON(updateStreamingProfileRequest) {
    return JSON.stringify(UpdateStreamingProfileRequest$outboundSchema.parse(updateStreamingProfileRequest));
}
export function updateStreamingProfileRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateStreamingProfileRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateStreamingProfileRequest' from JSON`);
}
/** @internal */
export const UpdateStreamingProfileResponse$inboundSchema = z.object({
    message: z.string(),
    data: components.StreamingProfile$inboundSchema,
});
/** @internal */
export const UpdateStreamingProfileResponse$outboundSchema = z.object({
    message: z.string(),
    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 UpdateStreamingProfileResponse$;
(function (UpdateStreamingProfileResponse$) {
    /** @deprecated use `UpdateStreamingProfileResponse$inboundSchema` instead. */
    UpdateStreamingProfileResponse$.inboundSchema = UpdateStreamingProfileResponse$inboundSchema;
    /** @deprecated use `UpdateStreamingProfileResponse$outboundSchema` instead. */
    UpdateStreamingProfileResponse$.outboundSchema = UpdateStreamingProfileResponse$outboundSchema;
})(UpdateStreamingProfileResponse$ || (UpdateStreamingProfileResponse$ = {}));
export function updateStreamingProfileResponseToJSON(updateStreamingProfileResponse) {
    return JSON.stringify(UpdateStreamingProfileResponse$outboundSchema.parse(updateStreamingProfileResponse));
}
export function updateStreamingProfileResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateStreamingProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateStreamingProfileResponse' from JSON`);
}
//# sourceMappingURL=updatestreamingprofile.js.map