/* * 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 UpdateAppV1DeprecatedGlobals = { appId?: string | undefined; }; export type UpdateAppV1DeprecatedRequest = { appId?: string | undefined; createAppConfig: components.CreateAppConfig; }; /** @internal */ export type UpdateAppV1DeprecatedRequest$Outbound = { appId?: string | undefined; CreateAppConfig: components.CreateAppConfig$Outbound; }; /** @internal */ export const UpdateAppV1DeprecatedRequest$outboundSchema: z.ZodType< UpdateAppV1DeprecatedRequest$Outbound, z.ZodTypeDef, UpdateAppV1DeprecatedRequest > = z.object({ appId: z.string().optional(), createAppConfig: components.CreateAppConfig$outboundSchema, }).transform((v) => { return remap$(v, { createAppConfig: "CreateAppConfig", }); }); export function updateAppV1DeprecatedRequestToJSON( updateAppV1DeprecatedRequest: UpdateAppV1DeprecatedRequest, ): string { return JSON.stringify( UpdateAppV1DeprecatedRequest$outboundSchema.parse( updateAppV1DeprecatedRequest, ), ); }