/*
 * 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 GetOrgRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetOrgRequest$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 GetOrgRequest$;
(function (GetOrgRequest$) {
    /** @deprecated use `GetOrgRequest$inboundSchema` instead. */
    GetOrgRequest$.inboundSchema = GetOrgRequest$inboundSchema;
    /** @deprecated use `GetOrgRequest$outboundSchema` instead. */
    GetOrgRequest$.outboundSchema = GetOrgRequest$outboundSchema;
})(GetOrgRequest$ || (GetOrgRequest$ = {}));
export function getOrgRequestToJSON(getOrgRequest) {
    return JSON.stringify(GetOrgRequest$outboundSchema.parse(getOrgRequest));
}
export function getOrgRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetOrgRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOrgRequest' from JSON`);
}
/** @internal */
export const GetOrgResponse$inboundSchema = z.object({
    org: components.Org$inboundSchema,
});
/** @internal */
export const GetOrgResponse$outboundSchema = z.object({
    org: components.Org$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetOrgResponse$;
(function (GetOrgResponse$) {
    /** @deprecated use `GetOrgResponse$inboundSchema` instead. */
    GetOrgResponse$.inboundSchema = GetOrgResponse$inboundSchema;
    /** @deprecated use `GetOrgResponse$outboundSchema` instead. */
    GetOrgResponse$.outboundSchema = GetOrgResponse$outboundSchema;
})(GetOrgResponse$ || (GetOrgResponse$ = {}));
export function getOrgResponseToJSON(getOrgResponse) {
    return JSON.stringify(GetOrgResponse$outboundSchema.parse(getOrgResponse));
}
export function getOrgResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetOrgResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOrgResponse' from JSON`);
}
//# sourceMappingURL=getorg.js.map