/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/**
 * The code indicating the result of the operation.
 */
export const Code = {
    RejectedIds: "rejected_ids",
    InvalidIds: "invalid_ids",
    InternalErrorIds: "internal_error_ids",
    NonExistingIds: "non_existing_ids",
    InvalidRelateToSelfId: "invalid_relate_to_self_id",
    AlreadyExistsIds: "already_exists_ids",
    RelationDoesNotExistIds: "relation_does_not_exist_ids",
    SuccessIds: "success_ids",
};
/** @internal */
export const Code$inboundSchema = z.nativeEnum(Code);
/** @internal */
export const Code$outboundSchema = Code$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var Code$;
(function (Code$) {
    /** @deprecated use `Code$inboundSchema` instead. */
    Code$.inboundSchema = Code$inboundSchema;
    /** @deprecated use `Code$outboundSchema` instead. */
    Code$.outboundSchema = Code$outboundSchema;
})(Code$ || (Code$ = {}));
/** @internal */
export const AssetRelationInfo$inboundSchema = z.object({
    message: z.string().optional(),
    code: Code$inboundSchema.optional(),
    asset: z.string().optional(),
    status: z.number().int().optional(),
});
/** @internal */
export const AssetRelationInfo$outboundSchema = z.object({
    message: z.string().optional(),
    code: Code$outboundSchema.optional(),
    asset: z.string().optional(),
    status: z.number().int().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AssetRelationInfo$;
(function (AssetRelationInfo$) {
    /** @deprecated use `AssetRelationInfo$inboundSchema` instead. */
    AssetRelationInfo$.inboundSchema = AssetRelationInfo$inboundSchema;
    /** @deprecated use `AssetRelationInfo$outboundSchema` instead. */
    AssetRelationInfo$.outboundSchema = AssetRelationInfo$outboundSchema;
})(AssetRelationInfo$ || (AssetRelationInfo$ = {}));
export function assetRelationInfoToJSON(assetRelationInfo) {
    return JSON.stringify(AssetRelationInfo$outboundSchema.parse(assetRelationInfo));
}
export function assetRelationInfoFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AssetRelationInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssetRelationInfo' from JSON`);
}
//# sourceMappingURL=assetrelationinfo.js.map