UNPKG

@solufy/evolution-sdk

Version:

Unofficial SDK for the Evolution Whatsapp API v2

33 lines (30 loc) 1.19 kB
import * as libphonenumber_js from 'libphonenumber-js'; import { z } from 'zod'; declare const CheckOptionsSchema: z.ZodArray<z.ZodEffects<z.ZodType<string, z.ZodTypeDef, string>, string, string>, "many">; declare const CheckBodySchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodType<string, z.ZodTypeDef, string>, string, string>, "many">, { numbers: string[]; }, string[]>; declare const CheckResponseSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{ exists: z.ZodBoolean; jid: z.ZodString; number: z.ZodString; }, "strip", z.ZodTypeAny, { number: string; exists: boolean; jid: string; }, { number: string; exists: boolean; jid: string; }>, "many">, { exists: boolean; jid: `${string}@s.whatsapp.net`; number: libphonenumber_js.E164Number; }[], { number: string; exists: boolean; jid: string; }[]>; type CheckOptions = z.infer<typeof CheckOptionsSchema>; type CheckResponse = z.infer<typeof CheckResponseSchema>; export { CheckBodySchema as BodySchema, CheckBodySchema, type CheckOptions, CheckOptionsSchema, type CheckResponse, CheckResponseSchema, CheckOptionsSchema as OptionsSchema, CheckResponseSchema as ResponseSchema };