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