/* * 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 ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest = { /** * Name of entity property source */ name: string; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; entityPropertySourcePartialUpdateDto: components.EntityPropertySourcePartialUpdateDto; }; /** * Patch Entity Property Source response */ export type ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody = { /** * A simple string explaining the result of the operation. */ message: string; data: components.EntityPropertySourceDto; }; /** @internal */ export const ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$inboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest, z.ZodTypeDef, unknown > = z .object({ name: z.string(), "x-respect-review-settings": z.string().optional(), EntityPropertySourcePartialUpdateDto: components.EntityPropertySourcePartialUpdateDto$inboundSchema, }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", EntityPropertySourcePartialUpdateDto: "entityPropertySourcePartialUpdateDto", }); }); /** @internal */ export type ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$Outbound = { name: string; "x-respect-review-settings"?: string | undefined; EntityPropertySourcePartialUpdateDto: components.EntityPropertySourcePartialUpdateDto$Outbound; }; /** @internal */ export const ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$outboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$Outbound, z.ZodTypeDef, ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest > = z .object({ name: z.string(), xRespectReviewSettings: z.string().optional(), entityPropertySourcePartialUpdateDto: components.EntityPropertySourcePartialUpdateDto$outboundSchema, }) .transform((v) => { return remap$(v, { xRespectReviewSettings: "x-respect-review-settings", entityPropertySourcePartialUpdateDto: "EntityPropertySourcePartialUpdateDto", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$ { /** @deprecated use `ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$inboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$outboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$Outbound` instead. */ export type Outbound = ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceRequest$Outbound; } /** @internal */ export const ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$inboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: components.EntityPropertySourceDto$inboundSchema, }); /** @internal */ export type ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$Outbound = { message: string; data: components.EntityPropertySourceDto$Outbound; }; /** @internal */ export const ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$outboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$Outbound, z.ZodTypeDef, ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody > = z.object({ message: z.string(), data: components.EntityPropertySourceDto$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$ { /** @deprecated use `ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$inboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$outboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1ExperimentsControllerGenUpdateEntityPropertySourceResponseBody$Outbound; }