/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; /** * Filter notifications by workflow tags (OR for string[], or { and: [{ or: string[] }, ...] } for AND of OR-groups). */ export type MarkSubscriberNotificationsAsSeenDtoTags = {}; export type MarkSubscriberNotificationsAsSeenDto = { /** * Specific notification IDs to mark as seen */ notificationIds?: Array | undefined; /** * Filter notifications by workflow tags (OR for string[], or { and: [{ or: string[] }, ...] } for AND of OR-groups). */ tags?: MarkSubscriberNotificationsAsSeenDtoTags | undefined; /** * Filter notifications by data attributes (JSON string) */ data?: string | undefined; /** * Context keys for filtering notifications */ contextKeys?: Array | undefined; }; /** @internal */ export type MarkSubscriberNotificationsAsSeenDtoTags$Outbound = {}; /** @internal */ export const MarkSubscriberNotificationsAsSeenDtoTags$outboundSchema: z.ZodType< MarkSubscriberNotificationsAsSeenDtoTags$Outbound, z.ZodTypeDef, MarkSubscriberNotificationsAsSeenDtoTags > = z.object({}); export function markSubscriberNotificationsAsSeenDtoTagsToJSON( markSubscriberNotificationsAsSeenDtoTags: MarkSubscriberNotificationsAsSeenDtoTags, ): string { return JSON.stringify( MarkSubscriberNotificationsAsSeenDtoTags$outboundSchema.parse( markSubscriberNotificationsAsSeenDtoTags, ), ); } /** @internal */ export type MarkSubscriberNotificationsAsSeenDto$Outbound = { notificationIds?: Array | undefined; tags?: MarkSubscriberNotificationsAsSeenDtoTags$Outbound | undefined; data?: string | undefined; contextKeys?: Array | undefined; }; /** @internal */ export const MarkSubscriberNotificationsAsSeenDto$outboundSchema: z.ZodType< MarkSubscriberNotificationsAsSeenDto$Outbound, z.ZodTypeDef, MarkSubscriberNotificationsAsSeenDto > = z.object({ notificationIds: z.array(z.string()).optional(), tags: z.lazy(() => MarkSubscriberNotificationsAsSeenDtoTags$outboundSchema) .optional(), data: z.string().optional(), contextKeys: z.array(z.string()).optional(), }); export function markSubscriberNotificationsAsSeenDtoToJSON( markSubscriberNotificationsAsSeenDto: MarkSubscriberNotificationsAsSeenDto, ): string { return JSON.stringify( MarkSubscriberNotificationsAsSeenDto$outboundSchema.parse( markSubscriberNotificationsAsSeenDto, ), ); }