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