/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; export type CreateBuildRegistryGlobals = { orgId?: string | undefined; }; export type CreateBuildRegistryRequest = { orgId?: string | undefined; createBuildV3Params: components.CreateBuildV3Params; }; /** @internal */ export type CreateBuildRegistryRequest$Outbound = { orgId?: string | undefined; CreateBuildV3Params: components.CreateBuildV3Params$Outbound; }; /** @internal */ export const CreateBuildRegistryRequest$outboundSchema: z.ZodType< CreateBuildRegistryRequest$Outbound, z.ZodTypeDef, CreateBuildRegistryRequest > = z.object({ orgId: z.string().optional(), createBuildV3Params: components.CreateBuildV3Params$outboundSchema, }).transform((v) => { return remap$(v, { createBuildV3Params: "CreateBuildV3Params", }); }); export function createBuildRegistryRequestToJSON( createBuildRegistryRequest: CreateBuildRegistryRequest, ): string { return JSON.stringify( CreateBuildRegistryRequest$outboundSchema.parse(createBuildRegistryRequest), ); }