UNPKG

tyntec-sdk

Version:

TypeScript SDK for Tyntec Conversations API V3

149 lines (148 loc) 3.79 kB
import { z } from 'zod'; export declare const whatsAppBaseFields: z.ZodObject<{ senderName: z.ZodOptional<z.ZodString>; urlPreviewDisplayed: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { senderName?: string | undefined; urlPreviewDisplayed?: boolean | undefined; }, { senderName?: string | undefined; urlPreviewDisplayed?: boolean | undefined; }>; export declare const mediaContentSchema: z.ZodObject<{ url: z.ZodString; caption: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; privateUrl: z.ZodOptional<z.ZodString>; idFile: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { url: string; type?: string | undefined; caption?: string | undefined; privateUrl?: string | undefined; idFile?: string | undefined; }, { url: string; type?: string | undefined; caption?: string | undefined; privateUrl?: string | undefined; idFile?: string | undefined; }>; export declare const locationContentSchema: z.ZodObject<{ longitude: z.ZodNumber; latitude: z.ZodNumber; name: z.ZodString; address: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; longitude: number; latitude: number; address: string; }, { name: string; longitude: number; latitude: number; address: string; }>; export declare const contactAddressSchema: z.ZodObject<{ city: z.ZodString; country: z.ZodString; countryCode: z.ZodString; street: z.ZodString; type: z.ZodString; zip: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; city: string; country: string; countryCode: string; street: string; zip: string; }, { type: string; city: string; country: string; countryCode: string; street: string; zip: string; }>; export declare const contactNameSchema: z.ZodObject<{ formattedName: z.ZodString; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { formattedName: string; lastName?: string | undefined; }, { formattedName: string; lastName?: string | undefined; }>; export declare const contactSchema: z.ZodObject<{ addresses: z.ZodArray<z.ZodObject<{ city: z.ZodString; country: z.ZodString; countryCode: z.ZodString; street: z.ZodString; type: z.ZodString; zip: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; city: string; country: string; countryCode: string; street: string; zip: string; }, { type: string; city: string; country: string; countryCode: string; street: string; zip: string; }>, "many">; name: z.ZodObject<{ formattedName: z.ZodString; lastName: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { formattedName: string; lastName?: string | undefined; }, { formattedName: string; lastName?: string | undefined; }>; }, "strip", z.ZodTypeAny, { name: { formattedName: string; lastName?: string | undefined; }; addresses: { type: string; city: string; country: string; countryCode: string; street: string; zip: string; }[]; }, { name: { formattedName: string; lastName?: string | undefined; }; addresses: { type: string; city: string; country: string; countryCode: string; street: string; zip: string; }[]; }>; export declare const reactionContentSchema: z.ZodObject<{ messageId: z.ZodString; emoji: z.ZodString; }, "strip", z.ZodTypeAny, { messageId: string; emoji: string; }, { messageId: string; emoji: string; }>;