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