/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../../lib/primitives.js"; export type UpdateTopicTimestampRequestBody = { timestamp: string; }; export type UpdateTopicTimestampRequest = { apiKey: string; apiUsername: string; requestBody?: UpdateTopicTimestampRequestBody | undefined; id: string; }; /** * topic updated */ export type UpdateTopicTimestampResponseBody = { success?: string | undefined; }; /** @internal */ export const UpdateTopicTimestampRequestBody$inboundSchema: z.ZodType< UpdateTopicTimestampRequestBody, z.ZodTypeDef, unknown > = z.object({ timestamp: z.string(), }); /** @internal */ export type UpdateTopicTimestampRequestBody$Outbound = { timestamp: string; }; /** @internal */ export const UpdateTopicTimestampRequestBody$outboundSchema: z.ZodType< UpdateTopicTimestampRequestBody$Outbound, z.ZodTypeDef, UpdateTopicTimestampRequestBody > = z.object({ timestamp: z.string(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace UpdateTopicTimestampRequestBody$ { /** @deprecated use `UpdateTopicTimestampRequestBody$inboundSchema` instead. */ export const inboundSchema = UpdateTopicTimestampRequestBody$inboundSchema; /** @deprecated use `UpdateTopicTimestampRequestBody$outboundSchema` instead. */ export const outboundSchema = UpdateTopicTimestampRequestBody$outboundSchema; /** @deprecated use `UpdateTopicTimestampRequestBody$Outbound` instead. */ export type Outbound = UpdateTopicTimestampRequestBody$Outbound; } /** @internal */ export const UpdateTopicTimestampRequest$inboundSchema: z.ZodType< UpdateTopicTimestampRequest, z.ZodTypeDef, unknown > = z.object({ "Api-Key": z.string(), "Api-Username": z.string(), RequestBody: z.lazy(() => UpdateTopicTimestampRequestBody$inboundSchema) .optional(), id: z.string(), }).transform((v) => { return remap$(v, { "Api-Key": "apiKey", "Api-Username": "apiUsername", "RequestBody": "requestBody", }); }); /** @internal */ export type UpdateTopicTimestampRequest$Outbound = { "Api-Key": string; "Api-Username": string; RequestBody?: UpdateTopicTimestampRequestBody$Outbound | undefined; id: string; }; /** @internal */ export const UpdateTopicTimestampRequest$outboundSchema: z.ZodType< UpdateTopicTimestampRequest$Outbound, z.ZodTypeDef, UpdateTopicTimestampRequest > = z.object({ apiKey: z.string(), apiUsername: z.string(), requestBody: z.lazy(() => UpdateTopicTimestampRequestBody$outboundSchema) .optional(), id: z.string(), }).transform((v) => { return remap$(v, { apiKey: "Api-Key", apiUsername: "Api-Username", requestBody: "RequestBody", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace UpdateTopicTimestampRequest$ { /** @deprecated use `UpdateTopicTimestampRequest$inboundSchema` instead. */ export const inboundSchema = UpdateTopicTimestampRequest$inboundSchema; /** @deprecated use `UpdateTopicTimestampRequest$outboundSchema` instead. */ export const outboundSchema = UpdateTopicTimestampRequest$outboundSchema; /** @deprecated use `UpdateTopicTimestampRequest$Outbound` instead. */ export type Outbound = UpdateTopicTimestampRequest$Outbound; } /** @internal */ export const UpdateTopicTimestampResponseBody$inboundSchema: z.ZodType< UpdateTopicTimestampResponseBody, z.ZodTypeDef, unknown > = z.object({ success: z.string().optional(), }); /** @internal */ export type UpdateTopicTimestampResponseBody$Outbound = { success?: string | undefined; }; /** @internal */ export const UpdateTopicTimestampResponseBody$outboundSchema: z.ZodType< UpdateTopicTimestampResponseBody$Outbound, z.ZodTypeDef, UpdateTopicTimestampResponseBody > = z.object({ success: z.string().optional(), }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace UpdateTopicTimestampResponseBody$ { /** @deprecated use `UpdateTopicTimestampResponseBody$inboundSchema` instead. */ export const inboundSchema = UpdateTopicTimestampResponseBody$inboundSchema; /** @deprecated use `UpdateTopicTimestampResponseBody$outboundSchema` instead. */ export const outboundSchema = UpdateTopicTimestampResponseBody$outboundSchema; /** @deprecated use `UpdateTopicTimestampResponseBody$Outbound` instead. */ export type Outbound = UpdateTopicTimestampResponseBody$Outbound; }