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