/*
 * 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 GetStreamingProfileGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const GetStreamingProfileGlobals$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 GetStreamingProfileGlobals$;
(function (GetStreamingProfileGlobals$) {
    /** @deprecated use `GetStreamingProfileGlobals$inboundSchema` instead. */
    GetStreamingProfileGlobals$.inboundSchema = GetStreamingProfileGlobals$inboundSchema;
    /** @deprecated use `GetStreamingProfileGlobals$outboundSchema` instead. */
    GetStreamingProfileGlobals$.outboundSchema = GetStreamingProfileGlobals$outboundSchema;
})(GetStreamingProfileGlobals$ || (GetStreamingProfileGlobals$ = {}));
export function getStreamingProfileGlobalsToJSON(getStreamingProfileGlobals) {
    return JSON.stringify(GetStreamingProfileGlobals$outboundSchema.parse(getStreamingProfileGlobals));
}
export function getStreamingProfileGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStreamingProfileGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStreamingProfileGlobals' from JSON`);
}
/** @internal */
export const GetStreamingProfileRequest$inboundSchema = z.object({
    name: z.string(),
});
/** @internal */
export const GetStreamingProfileRequest$outboundSchema = z.object({
    name: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStreamingProfileRequest$;
(function (GetStreamingProfileRequest$) {
    /** @deprecated use `GetStreamingProfileRequest$inboundSchema` instead. */
    GetStreamingProfileRequest$.inboundSchema = GetStreamingProfileRequest$inboundSchema;
    /** @deprecated use `GetStreamingProfileRequest$outboundSchema` instead. */
    GetStreamingProfileRequest$.outboundSchema = GetStreamingProfileRequest$outboundSchema;
})(GetStreamingProfileRequest$ || (GetStreamingProfileRequest$ = {}));
export function getStreamingProfileRequestToJSON(getStreamingProfileRequest) {
    return JSON.stringify(GetStreamingProfileRequest$outboundSchema.parse(getStreamingProfileRequest));
}
export function getStreamingProfileRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStreamingProfileRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStreamingProfileRequest' from JSON`);
}
/** @internal */
export const GetStreamingProfileResponse$inboundSchema = z.object({
    data: components.StreamingProfile$inboundSchema,
});
/** @internal */
export const GetStreamingProfileResponse$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 GetStreamingProfileResponse$;
(function (GetStreamingProfileResponse$) {
    /** @deprecated use `GetStreamingProfileResponse$inboundSchema` instead. */
    GetStreamingProfileResponse$.inboundSchema = GetStreamingProfileResponse$inboundSchema;
    /** @deprecated use `GetStreamingProfileResponse$outboundSchema` instead. */
    GetStreamingProfileResponse$.outboundSchema = GetStreamingProfileResponse$outboundSchema;
})(GetStreamingProfileResponse$ || (GetStreamingProfileResponse$ = {}));
export function getStreamingProfileResponseToJSON(getStreamingProfileResponse) {
    return JSON.stringify(GetStreamingProfileResponse$outboundSchema.parse(getStreamingProfileResponse));
}
export function getStreamingProfileResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStreamingProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStreamingProfileResponse' from JSON`);
}
//# sourceMappingURL=getstreamingprofile.js.map