/* * 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 PatchAppGlobals = { appId?: string | undefined; }; export type PatchAppRequest = { appId?: string | undefined; partialAppConfigWithServiceConfig: components.PartialAppConfigWithServiceConfig; }; /** @internal */ export type PatchAppRequest$Outbound = { appId?: string | undefined; Partial_AppConfigWithServiceConfig_: components.PartialAppConfigWithServiceConfig$Outbound; }; /** @internal */ export const PatchAppRequest$outboundSchema: z.ZodType< PatchAppRequest$Outbound, z.ZodTypeDef, PatchAppRequest > = z.object({ appId: z.string().optional(), partialAppConfigWithServiceConfig: components.PartialAppConfigWithServiceConfig$outboundSchema, }).transform((v) => { return remap$(v, { partialAppConfigWithServiceConfig: "Partial_AppConfigWithServiceConfig_", }); }); export function patchAppRequestToJSON( patchAppRequest: PatchAppRequest, ): string { return JSON.stringify(PatchAppRequest$outboundSchema.parse(patchAppRequest)); }