/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 7ba6d73e4e5a
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { EntityType$outboundSchema } from "./entitytype.js";
import { ShareEnum$outboundSchema } from "./shareenum.js";
/** @internal */
export const SharingRequest$outboundSchema = z.object({
    orgId: z.nullable(z.string()).optional(),
    level: ShareEnum$outboundSchema,
    shareWithUuid: z.string(),
    shareWithType: EntityType$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        orgId: "org_id",
        shareWithUuid: "share_with_uuid",
        shareWithType: "share_with_type",
    });
});
export function sharingRequestToJSON(sharingRequest) {
    return JSON.stringify(SharingRequest$outboundSchema.parse(sharingRequest));
}
//# sourceMappingURL=sharingrequest.js.map