/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 916342b231d4
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
export const OwnerType = {
    User: "User",
    Workspace: "Workspace",
};
/** @internal */
export const OwnerType$outboundSchema = z.enum(OwnerType);
/** @internal */
export const CreateLibraryRequest$outboundSchema = z.object({
    name: z.string(),
    description: z.nullable(z.string()).optional(),
    chunkSize: z.nullable(z.int()).optional(),
    ownerType: z.nullable(OwnerType$outboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        chunkSize: "chunk_size",
        ownerType: "owner_type",
    });
});
export function createLibraryRequestToJSON(createLibraryRequest) {
    return JSON.stringify(CreateLibraryRequest$outboundSchema.parse(createLibraryRequest));
}
//# sourceMappingURL=createlibraryrequest.js.map