"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetStreamingProfileResponse$ = exports.GetStreamingProfileResponse$outboundSchema = exports.GetStreamingProfileResponse$inboundSchema = exports.GetStreamingProfileRequest$ = exports.GetStreamingProfileRequest$outboundSchema = exports.GetStreamingProfileRequest$inboundSchema = exports.GetStreamingProfileGlobals$ = exports.GetStreamingProfileGlobals$outboundSchema = exports.GetStreamingProfileGlobals$inboundSchema = void 0;
exports.getStreamingProfileGlobalsToJSON = getStreamingProfileGlobalsToJSON;
exports.getStreamingProfileGlobalsFromJSON = getStreamingProfileGlobalsFromJSON;
exports.getStreamingProfileRequestToJSON = getStreamingProfileRequestToJSON;
exports.getStreamingProfileRequestFromJSON = getStreamingProfileRequestFromJSON;
exports.getStreamingProfileResponseToJSON = getStreamingProfileResponseToJSON;
exports.getStreamingProfileResponseFromJSON = getStreamingProfileResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.GetStreamingProfileGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
exports.GetStreamingProfileGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var GetStreamingProfileGlobals$;
(function (GetStreamingProfileGlobals$) {
    /** @deprecated use `GetStreamingProfileGlobals$inboundSchema` instead. */
    GetStreamingProfileGlobals$.inboundSchema = exports.GetStreamingProfileGlobals$inboundSchema;
    /** @deprecated use `GetStreamingProfileGlobals$outboundSchema` instead. */
    GetStreamingProfileGlobals$.outboundSchema = exports.GetStreamingProfileGlobals$outboundSchema;
})(GetStreamingProfileGlobals$ || (exports.GetStreamingProfileGlobals$ = GetStreamingProfileGlobals$ = {}));
function getStreamingProfileGlobalsToJSON(getStreamingProfileGlobals) {
    return JSON.stringify(exports.GetStreamingProfileGlobals$outboundSchema.parse(getStreamingProfileGlobals));
}
function getStreamingProfileGlobalsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStreamingProfileGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStreamingProfileGlobals' from JSON`);
}
/** @internal */
exports.GetStreamingProfileRequest$inboundSchema = z.object({
    name: z.string(),
});
/** @internal */
exports.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.
 */
var GetStreamingProfileRequest$;
(function (GetStreamingProfileRequest$) {
    /** @deprecated use `GetStreamingProfileRequest$inboundSchema` instead. */
    GetStreamingProfileRequest$.inboundSchema = exports.GetStreamingProfileRequest$inboundSchema;
    /** @deprecated use `GetStreamingProfileRequest$outboundSchema` instead. */
    GetStreamingProfileRequest$.outboundSchema = exports.GetStreamingProfileRequest$outboundSchema;
})(GetStreamingProfileRequest$ || (exports.GetStreamingProfileRequest$ = GetStreamingProfileRequest$ = {}));
function getStreamingProfileRequestToJSON(getStreamingProfileRequest) {
    return JSON.stringify(exports.GetStreamingProfileRequest$outboundSchema.parse(getStreamingProfileRequest));
}
function getStreamingProfileRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStreamingProfileRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStreamingProfileRequest' from JSON`);
}
/** @internal */
exports.GetStreamingProfileResponse$inboundSchema = z.object({
    data: components.StreamingProfile$inboundSchema,
});
/** @internal */
exports.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.
 */
var GetStreamingProfileResponse$;
(function (GetStreamingProfileResponse$) {
    /** @deprecated use `GetStreamingProfileResponse$inboundSchema` instead. */
    GetStreamingProfileResponse$.inboundSchema = exports.GetStreamingProfileResponse$inboundSchema;
    /** @deprecated use `GetStreamingProfileResponse$outboundSchema` instead. */
    GetStreamingProfileResponse$.outboundSchema = exports.GetStreamingProfileResponse$outboundSchema;
})(GetStreamingProfileResponse$ || (exports.GetStreamingProfileResponse$ = GetStreamingProfileResponse$ = {}));
function getStreamingProfileResponseToJSON(getStreamingProfileResponse) {
    return JSON.stringify(exports.GetStreamingProfileResponse$outboundSchema.parse(getStreamingProfileResponse));
}
function getStreamingProfileResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStreamingProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStreamingProfileResponse' from JSON`);
}
//# sourceMappingURL=getstreamingprofile.js.map