/* * 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 ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest = { /** * Results per page */ limit?: any | undefined; /** * Page number */ page?: any | undefined; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; }; /** * List Assignment Sources response */ export type ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody = { /** * A simple string explaining the result of the operation. */ message: string; data: Array; /** * Pagination metadata for checking if there is next page for example. */ pagination: components.PaginationResponseMetadataDto; }; /** @internal */ export const ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$inboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest, z.ZodTypeDef, unknown > = z .object({ limit: z.any().optional(), page: z.any().optional(), "x-respect-review-settings": z.string().optional(), }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", }); }); /** @internal */ export type ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$Outbound = { limit?: any | undefined; page?: any | undefined; "x-respect-review-settings"?: string | undefined; }; /** @internal */ export const ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$outboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$Outbound, z.ZodTypeDef, ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest > = z .object({ limit: z.any().optional(), page: z.any().optional(), xRespectReviewSettings: z.string().optional(), }) .transform((v) => { return remap$(v, { xRespectReviewSettings: "x-respect-review-settings", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$ { /** @deprecated use `ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$inboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$outboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$Outbound` instead. */ export type Outbound = ConsoleV1ExperimentsControllerGenListAssignmentSourcesRequest$Outbound; } /** @internal */ export const ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$inboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: z.array(components.AssignmentSourceContractDto$inboundSchema), pagination: components.PaginationResponseMetadataDto$inboundSchema, }); /** @internal */ export type ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$Outbound = { message: string; data: Array; pagination: components.PaginationResponseMetadataDto$Outbound; }; /** @internal */ export const ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$outboundSchema: z.ZodType< ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$Outbound, z.ZodTypeDef, ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody > = z.object({ message: z.string(), data: z.array(components.AssignmentSourceContractDto$outboundSchema), pagination: components.PaginationResponseMetadataDto$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$ { /** @deprecated use `ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$inboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$outboundSchema; /** @deprecated use `ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1ExperimentsControllerGenListAssignmentSourcesResponseBody$Outbound; }