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