/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const GetResourceRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetResourceRequest$outboundSchema = z.object({
    sourcedId: 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 GetResourceRequest$;
(function (GetResourceRequest$) {
    /** @deprecated use `GetResourceRequest$inboundSchema` instead. */
    GetResourceRequest$.inboundSchema = GetResourceRequest$inboundSchema;
    /** @deprecated use `GetResourceRequest$outboundSchema` instead. */
    GetResourceRequest$.outboundSchema = GetResourceRequest$outboundSchema;
})(GetResourceRequest$ || (GetResourceRequest$ = {}));
export function getResourceRequestToJSON(getResourceRequest) {
    return JSON.stringify(GetResourceRequest$outboundSchema.parse(getResourceRequest));
}
export function getResourceRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourceRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceRequest' from JSON`);
}
/** @internal */
export const GetResourceResponse$inboundSchema = z.object({
    resource: components.Resource$inboundSchema,
});
/** @internal */
export const GetResourceResponse$outboundSchema = z.object({
    resource: components.Resource$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetResourceResponse$;
(function (GetResourceResponse$) {
    /** @deprecated use `GetResourceResponse$inboundSchema` instead. */
    GetResourceResponse$.inboundSchema = GetResourceResponse$inboundSchema;
    /** @deprecated use `GetResourceResponse$outboundSchema` instead. */
    GetResourceResponse$.outboundSchema = GetResourceResponse$outboundSchema;
})(GetResourceResponse$ || (GetResourceResponse$ = {}));
export function getResourceResponseToJSON(getResourceResponse) {
    return JSON.stringify(GetResourceResponse$outboundSchema.parse(getResourceResponse));
}
export function getResourceResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetResourceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetResourceResponse' from JSON`);
}
//# sourceMappingURL=getresource.js.map