/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { remap as remap$ } from "../../lib/primitives.js"; import * as components from "../components/index.js"; import * as z from "zod"; export type ConsoleV1LayersControllerGenPartialUpdateRequest = { /** * id */ id: string; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; layerPartialUpdateContractDto: components.LayerPartialUpdateContractDto; }; /** * Partial update layer response */ export type ConsoleV1LayersControllerGenPartialUpdateResponseBody = { /** * A simple string explaining the result of the operation. */ message: string; data: components.LayerContractDto; }; /** @internal */ export const ConsoleV1LayersControllerGenPartialUpdateRequest$inboundSchema: z.ZodType< ConsoleV1LayersControllerGenPartialUpdateRequest, z.ZodTypeDef, unknown > = z .object({ id: z.string(), "x-respect-review-settings": z.string().optional(), LayerPartialUpdateContractDto: components.LayerPartialUpdateContractDto$inboundSchema, }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", LayerPartialUpdateContractDto: "layerPartialUpdateContractDto", }); }); /** @internal */ export type ConsoleV1LayersControllerGenPartialUpdateRequest$Outbound = { id: string; "x-respect-review-settings"?: string | undefined; LayerPartialUpdateContractDto: components.LayerPartialUpdateContractDto$Outbound; }; /** @internal */ export const ConsoleV1LayersControllerGenPartialUpdateRequest$outboundSchema: z.ZodType< ConsoleV1LayersControllerGenPartialUpdateRequest$Outbound, z.ZodTypeDef, ConsoleV1LayersControllerGenPartialUpdateRequest > = z .object({ id: z.string(), xRespectReviewSettings: z.string().optional(), layerPartialUpdateContractDto: components.LayerPartialUpdateContractDto$outboundSchema, }) .transform((v) => { return remap$(v, { xRespectReviewSettings: "x-respect-review-settings", layerPartialUpdateContractDto: "LayerPartialUpdateContractDto", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1LayersControllerGenPartialUpdateRequest$ { /** @deprecated use `ConsoleV1LayersControllerGenPartialUpdateRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1LayersControllerGenPartialUpdateRequest$inboundSchema; /** @deprecated use `ConsoleV1LayersControllerGenPartialUpdateRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1LayersControllerGenPartialUpdateRequest$outboundSchema; /** @deprecated use `ConsoleV1LayersControllerGenPartialUpdateRequest$Outbound` instead. */ export type Outbound = ConsoleV1LayersControllerGenPartialUpdateRequest$Outbound; } /** @internal */ export const ConsoleV1LayersControllerGenPartialUpdateResponseBody$inboundSchema: z.ZodType< ConsoleV1LayersControllerGenPartialUpdateResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: components.LayerContractDto$inboundSchema, }); /** @internal */ export type ConsoleV1LayersControllerGenPartialUpdateResponseBody$Outbound = { message: string; data: components.LayerContractDto$Outbound; }; /** @internal */ export const ConsoleV1LayersControllerGenPartialUpdateResponseBody$outboundSchema: z.ZodType< ConsoleV1LayersControllerGenPartialUpdateResponseBody$Outbound, z.ZodTypeDef, ConsoleV1LayersControllerGenPartialUpdateResponseBody > = z.object({ message: z.string(), data: components.LayerContractDto$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1LayersControllerGenPartialUpdateResponseBody$ { /** @deprecated use `ConsoleV1LayersControllerGenPartialUpdateResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1LayersControllerGenPartialUpdateResponseBody$inboundSchema; /** @deprecated use `ConsoleV1LayersControllerGenPartialUpdateResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1LayersControllerGenPartialUpdateResponseBody$outboundSchema; /** @deprecated use `ConsoleV1LayersControllerGenPartialUpdateResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1LayersControllerGenPartialUpdateResponseBody$Outbound; }