/* * 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 Tags = {}; export type UpdateAllSubscriberNotificationsDto = { /** * Filter notifications by workflow tags (OR for string[], or { and: [{ or: string[] }, ...] } for AND of OR-groups). */ tags?: Tags | undefined; /** * Filter notifications by data attributes (JSON string) */ data?: string | undefined; /** * Context keys for filtering notifications */ contextKeys?: Array | undefined; }; /** @internal */ export type Tags$Outbound = {}; /** @internal */ export const Tags$outboundSchema: z.ZodType = z.object({}); export function tagsToJSON(tags: Tags): string { return JSON.stringify(Tags$outboundSchema.parse(tags)); } /** @internal */ export type UpdateAllSubscriberNotificationsDto$Outbound = { tags?: Tags$Outbound | undefined; data?: string | undefined; contextKeys?: Array | undefined; }; /** @internal */ export const UpdateAllSubscriberNotificationsDto$outboundSchema: z.ZodType< UpdateAllSubscriberNotificationsDto$Outbound, z.ZodTypeDef, UpdateAllSubscriberNotificationsDto > = z.object({ tags: z.lazy(() => Tags$outboundSchema).optional(), data: z.string().optional(), contextKeys: z.array(z.string()).optional(), }); export function updateAllSubscriberNotificationsDtoToJSON( updateAllSubscriberNotificationsDto: UpdateAllSubscriberNotificationsDto, ): string { return JSON.stringify( UpdateAllSubscriberNotificationsDto$outboundSchema.parse( updateAllSubscriberNotificationsDto, ), ); }