/* * 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 ConsoleV1MetricsControllerGenReadMetricRequest = { /** * The unique identifier of the metric */ id: string; date: string; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; }; /** * Get metric data on given date response */ export type ConsoleV1MetricsControllerGenReadMetricResponseBody = { /** * 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 ConsoleV1MetricsControllerGenReadMetricRequest$inboundSchema: z.ZodType< ConsoleV1MetricsControllerGenReadMetricRequest, z.ZodTypeDef, unknown > = z .object({ id: z.string(), date: z.string(), "x-respect-review-settings": z.string().optional(), }) .transform((v) => { return remap$(v, { "x-respect-review-settings": "xRespectReviewSettings", }); }); /** @internal */ export type ConsoleV1MetricsControllerGenReadMetricRequest$Outbound = { id: string; date: string; "x-respect-review-settings"?: string | undefined; }; /** @internal */ export const ConsoleV1MetricsControllerGenReadMetricRequest$outboundSchema: z.ZodType< ConsoleV1MetricsControllerGenReadMetricRequest$Outbound, z.ZodTypeDef, ConsoleV1MetricsControllerGenReadMetricRequest > = z .object({ id: z.string(), date: 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 ConsoleV1MetricsControllerGenReadMetricRequest$ { /** @deprecated use `ConsoleV1MetricsControllerGenReadMetricRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1MetricsControllerGenReadMetricRequest$inboundSchema; /** @deprecated use `ConsoleV1MetricsControllerGenReadMetricRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1MetricsControllerGenReadMetricRequest$outboundSchema; /** @deprecated use `ConsoleV1MetricsControllerGenReadMetricRequest$Outbound` instead. */ export type Outbound = ConsoleV1MetricsControllerGenReadMetricRequest$Outbound; } /** @internal */ export const ConsoleV1MetricsControllerGenReadMetricResponseBody$inboundSchema: z.ZodType< ConsoleV1MetricsControllerGenReadMetricResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: z.array(components.MetricValuesDto$inboundSchema), pagination: components.PaginationResponseMetadataDto$inboundSchema, }); /** @internal */ export type ConsoleV1MetricsControllerGenReadMetricResponseBody$Outbound = { message: string; data: Array; pagination: components.PaginationResponseMetadataDto$Outbound; }; /** @internal */ export const ConsoleV1MetricsControllerGenReadMetricResponseBody$outboundSchema: z.ZodType< ConsoleV1MetricsControllerGenReadMetricResponseBody$Outbound, z.ZodTypeDef, ConsoleV1MetricsControllerGenReadMetricResponseBody > = z.object({ message: z.string(), data: z.array(components.MetricValuesDto$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 ConsoleV1MetricsControllerGenReadMetricResponseBody$ { /** @deprecated use `ConsoleV1MetricsControllerGenReadMetricResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1MetricsControllerGenReadMetricResponseBody$inboundSchema; /** @deprecated use `ConsoleV1MetricsControllerGenReadMetricResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1MetricsControllerGenReadMetricResponseBody$outboundSchema; /** @deprecated use `ConsoleV1MetricsControllerGenReadMetricResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1MetricsControllerGenReadMetricResponseBody$Outbound; }