/* * 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 ConsoleV1TargetAppControllerGenListRequest = { /** * Results per page */ limit?: any | undefined; /** * Page number */ page?: any | undefined; /** * Optional header to respect review settings for mutation endpoints. */ xRespectReviewSettings?: string | undefined; }; /** * List Target Apps Success */ export type ConsoleV1TargetAppControllerGenListResponseBody = { /** * 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 ConsoleV1TargetAppControllerGenListRequest$inboundSchema: z.ZodType< ConsoleV1TargetAppControllerGenListRequest, 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 ConsoleV1TargetAppControllerGenListRequest$Outbound = { limit?: any | undefined; page?: any | undefined; "x-respect-review-settings"?: string | undefined; }; /** @internal */ export const ConsoleV1TargetAppControllerGenListRequest$outboundSchema: z.ZodType< ConsoleV1TargetAppControllerGenListRequest$Outbound, z.ZodTypeDef, ConsoleV1TargetAppControllerGenListRequest > = 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 ConsoleV1TargetAppControllerGenListRequest$ { /** @deprecated use `ConsoleV1TargetAppControllerGenListRequest$inboundSchema` instead. */ export const inboundSchema = ConsoleV1TargetAppControllerGenListRequest$inboundSchema; /** @deprecated use `ConsoleV1TargetAppControllerGenListRequest$outboundSchema` instead. */ export const outboundSchema = ConsoleV1TargetAppControllerGenListRequest$outboundSchema; /** @deprecated use `ConsoleV1TargetAppControllerGenListRequest$Outbound` instead. */ export type Outbound = ConsoleV1TargetAppControllerGenListRequest$Outbound; } /** @internal */ export const ConsoleV1TargetAppControllerGenListResponseBody$inboundSchema: z.ZodType< ConsoleV1TargetAppControllerGenListResponseBody, z.ZodTypeDef, unknown > = z.object({ message: z.string(), data: z.array(components.TargetAppDto$inboundSchema), pagination: components.PaginationResponseMetadataDto$inboundSchema, }); /** @internal */ export type ConsoleV1TargetAppControllerGenListResponseBody$Outbound = { message: string; data: Array; pagination: components.PaginationResponseMetadataDto$Outbound; }; /** @internal */ export const ConsoleV1TargetAppControllerGenListResponseBody$outboundSchema: z.ZodType< ConsoleV1TargetAppControllerGenListResponseBody$Outbound, z.ZodTypeDef, ConsoleV1TargetAppControllerGenListResponseBody > = z.object({ message: z.string(), data: z.array(components.TargetAppDto$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 ConsoleV1TargetAppControllerGenListResponseBody$ { /** @deprecated use `ConsoleV1TargetAppControllerGenListResponseBody$inboundSchema` instead. */ export const inboundSchema = ConsoleV1TargetAppControllerGenListResponseBody$inboundSchema; /** @deprecated use `ConsoleV1TargetAppControllerGenListResponseBody$outboundSchema` instead. */ export const outboundSchema = ConsoleV1TargetAppControllerGenListResponseBody$outboundSchema; /** @deprecated use `ConsoleV1TargetAppControllerGenListResponseBody$Outbound` instead. */ export type Outbound = ConsoleV1TargetAppControllerGenListResponseBody$Outbound; }