@solufy/evolution-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
22 lines (19 loc) • 777 B
text/typescript
import { z } from 'zod';
declare const BaseMessageOptionsSchema: z.ZodObject<{
/**
* Number (with country code) or JID to receive the message
*/
number: z.ZodUnion<[z.ZodEffects<z.ZodType<string, z.ZodTypeDef, string>, string, string>, z.ZodType<`${string}@s.whatsapp.net`, z.ZodTypeDef, `${string}@s.whatsapp.net`>, z.ZodType<`${string}@g.us`, z.ZodTypeDef, `${string}@g.us`>]>;
/**
* Time in milliseconds before sending message
*/
delay: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
number: string;
delay?: number | undefined;
}, {
number: string;
delay?: number | undefined;
}>;
type BaseMessageOptions = z.infer<typeof BaseMessageOptionsSchema>;
export { type BaseMessageOptions, BaseMessageOptionsSchema };