/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import { AssetRelationInfo$inboundSchema, AssetRelationInfo$outboundSchema, } from "./assetrelationinfo.js";
/** @internal */
export const AssetRelationsResponse$inboundSchema = z.object({
    failed: z.array(AssetRelationInfo$inboundSchema).optional(),
    success: z.array(AssetRelationInfo$inboundSchema).optional(),
});
/** @internal */
export const AssetRelationsResponse$outboundSchema = z.object({
    failed: z.array(AssetRelationInfo$outboundSchema).optional(),
    success: z.array(AssetRelationInfo$outboundSchema).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AssetRelationsResponse$;
(function (AssetRelationsResponse$) {
    /** @deprecated use `AssetRelationsResponse$inboundSchema` instead. */
    AssetRelationsResponse$.inboundSchema = AssetRelationsResponse$inboundSchema;
    /** @deprecated use `AssetRelationsResponse$outboundSchema` instead. */
    AssetRelationsResponse$.outboundSchema = AssetRelationsResponse$outboundSchema;
})(AssetRelationsResponse$ || (AssetRelationsResponse$ = {}));
export function assetRelationsResponseToJSON(assetRelationsResponse) {
    return JSON.stringify(AssetRelationsResponse$outboundSchema.parse(assetRelationsResponse));
}
export function assetRelationsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssetRelationsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssetRelationsResponse' from JSON`);
}
//# sourceMappingURL=assetrelationsresponse.js.map