/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; /** * Optional feed identifier or array of feed identifiers */ export type FeedIdentifier = string | Array; /** * Mark all subscriber messages as read, unread, seen or unseen */ export const MarkAs = { Read: "read", Seen: "seen", Unread: "unread", Unseen: "unseen", } as const; /** * Mark all subscriber messages as read, unread, seen or unseen */ export type MarkAs = ClosedEnum; export type MarkAllMessageAsRequestDto = { /** * Optional feed identifier or array of feed identifiers */ feedIdentifier?: string | Array | undefined; /** * Mark all subscriber messages as read, unread, seen or unseen */ markAs: MarkAs; }; /** @internal */ export type FeedIdentifier$Outbound = string | Array; /** @internal */ export const FeedIdentifier$outboundSchema: z.ZodType< FeedIdentifier$Outbound, z.ZodTypeDef, FeedIdentifier > = z.union([z.string(), z.array(z.string())]); export function feedIdentifierToJSON(feedIdentifier: FeedIdentifier): string { return JSON.stringify(FeedIdentifier$outboundSchema.parse(feedIdentifier)); } /** @internal */ export const MarkAs$outboundSchema: z.ZodNativeEnum = z .nativeEnum(MarkAs); /** @internal */ export type MarkAllMessageAsRequestDto$Outbound = { feedIdentifier?: string | Array | undefined; markAs: string; }; /** @internal */ export const MarkAllMessageAsRequestDto$outboundSchema: z.ZodType< MarkAllMessageAsRequestDto$Outbound, z.ZodTypeDef, MarkAllMessageAsRequestDto > = z.object({ feedIdentifier: z.union([z.string(), z.array(z.string())]).optional(), markAs: MarkAs$outboundSchema, }); export function markAllMessageAsRequestDtoToJSON( markAllMessageAsRequestDto: MarkAllMessageAsRequestDto, ): string { return JSON.stringify( MarkAllMessageAsRequestDto$outboundSchema.parse(markAllMessageAsRequestDto), ); }