"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.AssetRelationInfo$ = exports.AssetRelationInfo$outboundSchema = exports.AssetRelationInfo$inboundSchema = exports.Code$ = exports.Code$outboundSchema = exports.Code$inboundSchema = exports.Code = void 0;
exports.assetRelationInfoToJSON = assetRelationInfoToJSON;
exports.assetRelationInfoFromJSON = assetRelationInfoFromJSON;
const z = __importStar(require("zod"));
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The code indicating the result of the operation.
 */
exports.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 */
exports.Code$inboundSchema = z.nativeEnum(exports.Code);
/** @internal */
exports.Code$outboundSchema = exports.Code$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var Code$;
(function (Code$) {
    /** @deprecated use `Code$inboundSchema` instead. */
    Code$.inboundSchema = exports.Code$inboundSchema;
    /** @deprecated use `Code$outboundSchema` instead. */
    Code$.outboundSchema = exports.Code$outboundSchema;
})(Code$ || (exports.Code$ = Code$ = {}));
/** @internal */
exports.AssetRelationInfo$inboundSchema = z.object({
    message: z.string().optional(),
    code: exports.Code$inboundSchema.optional(),
    asset: z.string().optional(),
    status: z.number().int().optional(),
});
/** @internal */
exports.AssetRelationInfo$outboundSchema = z.object({
    message: z.string().optional(),
    code: exports.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.
 */
var AssetRelationInfo$;
(function (AssetRelationInfo$) {
    /** @deprecated use `AssetRelationInfo$inboundSchema` instead. */
    AssetRelationInfo$.inboundSchema = exports.AssetRelationInfo$inboundSchema;
    /** @deprecated use `AssetRelationInfo$outboundSchema` instead. */
    AssetRelationInfo$.outboundSchema = exports.AssetRelationInfo$outboundSchema;
})(AssetRelationInfo$ || (exports.AssetRelationInfo$ = AssetRelationInfo$ = {}));
function assetRelationInfoToJSON(assetRelationInfo) {
    return JSON.stringify(exports.AssetRelationInfo$outboundSchema.parse(assetRelationInfo));
}
function assetRelationInfoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssetRelationInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssetRelationInfo' from JSON`);
}
//# sourceMappingURL=assetrelationinfo.js.map