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