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