@solufy/evolution-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
55 lines (52 loc) • 1.85 kB
TypeScript
import * as libphonenumber_js from 'libphonenumber-js';
import { z } from 'zod';
import { ChatId } from '../../../types/tags.js';
declare const FindAllChatsResponseSchema: z.ZodEffects<z.ZodArray<z.ZodObject<{
id: z.ZodString;
remoteJid: z.ZodString;
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
labels: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
pushName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
profilePicUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
id: string;
remoteJid: string;
createdAt: Date;
updatedAt: Date;
name?: string | null | undefined;
labels?: string[] | null | undefined;
pushName?: string | null | undefined;
profilePicUrl?: string | null | undefined;
}, {
id: string;
remoteJid: string;
createdAt: Date;
updatedAt: Date;
name?: string | null | undefined;
labels?: string[] | null | undefined;
pushName?: string | null | undefined;
profilePicUrl?: string | null | undefined;
}>, "many">, {
id: ChatId;
jid: `${string}@s.whatsapp.net` | `${string}@g.us`;
phoneNumber: libphonenumber_js.E164Number;
name: string | undefined;
labels: string[] | undefined;
createdAt: Date;
updatedAt: Date;
pushName: string | undefined;
pictureUrl: string | undefined;
}[], {
id: string;
remoteJid: string;
createdAt: Date;
updatedAt: Date;
name?: string | null | undefined;
labels?: string[] | null | undefined;
pushName?: string | null | undefined;
profilePicUrl?: string | null | undefined;
}[]>;
type FindAllChatsResponse = z.infer<typeof FindAllChatsResponseSchema>;
export { type FindAllChatsResponse, FindAllChatsResponseSchema, FindAllChatsResponseSchema as ResponseSchema };