/* * 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 UpdateAppGlobals = { appId?: string | undefined; }; export type UpdateAppRequest = { appId?: string | undefined; appConfigWithServiceConfig: components.AppConfigWithServiceConfig; }; /** @internal */ export type UpdateAppRequest$Outbound = { appId?: string | undefined; AppConfigWithServiceConfig: components.AppConfigWithServiceConfig$Outbound; }; /** @internal */ export const UpdateAppRequest$outboundSchema: z.ZodType< UpdateAppRequest$Outbound, z.ZodTypeDef, UpdateAppRequest > = z.object({ appId: z.string().optional(), appConfigWithServiceConfig: components.AppConfigWithServiceConfig$outboundSchema, }).transform((v) => { return remap$(v, { appConfigWithServiceConfig: "AppConfigWithServiceConfig", }); }); export function updateAppRequestToJSON( updateAppRequest: UpdateAppRequest, ): string { return JSON.stringify( UpdateAppRequest$outboundSchema.parse(updateAppRequest), ); }