tyntec-sdk
Version:
TypeScript SDK for Tyntec Conversations API V3
6,536 lines • 257 kB
TypeScript
import { z } from 'zod';
export declare const templateCategorySchema: z.ZodEnum<["AUTHENTICATION", "MARKETING", "UTILITY"]>;
export declare const templateStatusSchema: z.ZodEnum<["APPROVED", "PENDING", "REJECTED", "DISABLED", "DELETED"]>;
export declare const componentTypeSchema: z.ZodEnum<["HEADER", "BODY", "FOOTER", "BUTTONS", "CAROUSEL"]>;
export declare const languageCodeSchema: z.ZodString;
export declare const templateHeaderComponentRequestSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>;
export declare const templateBodyComponentRequestSchema: z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>;
export declare const templateFooterComponentRequestSchema: z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodOptional<z.ZodString>;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}>;
export declare const templateManagementButtonSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>;
export declare const templateButtonsComponentRequestSchema: z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>;
export declare const templateCarouselComponentRequestSchema: z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}>;
export declare const componentRequestSchema: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodOptional<z.ZodString>;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}>]>;
export declare const localizationRequestSchema: z.ZodObject<{
language: z.ZodString;
components: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodOptional<z.ZodString>;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
}, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
}>;
export declare const whatsAppTemplateRequestSchema: z.ZodObject<{
name: z.ZodString;
category: z.ZodEnum<["AUTHENTICATION", "MARKETING", "UTILITY"]>;
allowCategoryChange: z.ZodOptional<z.ZodBoolean>;
localizations: z.ZodArray<z.ZodObject<{
language: z.ZodString;
components: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodOptional<z.ZodString>;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}, {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"TEXT">;
text: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}, {
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
}>, z.ZodObject<{
type: z.ZodEnum<["IMAGE", "VIDEO", "DOCUMENT"]>;
example: z.ZodObject<{
url: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
}, {
url: string;
}>;
}, "strip", z.ZodTypeAny, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}, {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
}>, z.ZodObject<{
type: z.ZodLiteral<"LOCATION">;
}, "strip", z.ZodTypeAny, {
type: "LOCATION";
}, {
type: "LOCATION";
}>]>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodOptional<z.ZodString>;
addSecurityRecommendation: z.ZodOptional<z.ZodBoolean>;
example: z.ZodOptional<z.ZodObject<{
texts: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
texts: string[];
}, {
texts: string[];
}>>;
}, "strip", z.ZodTypeAny, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}, {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"QUICK_REPLY">;
text: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY";
}, {
text: string;
type: "QUICK_REPLY";
}>, z.ZodObject<{
type: z.ZodLiteral<"URL">;
text: z.ZodString;
url: z.ZodString;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}, {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"PHONE_NUMBER">;
text: z.ZodString;
phoneNumber: z.ZodString;
}, "strip", z.ZodTypeAny, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}, {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"OTP">;
otpType: z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>;
text: z.ZodOptional<z.ZodString>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}, {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FLOW">;
text: z.ZodString;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodEnum<["navigate", "data_exchange"]>>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}, {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
}, {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
}>, "many">;
}, "strip", z.ZodTypeAny, {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
localizations: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
}[];
allowCategoryChange?: boolean | undefined;
}, {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
localizations: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
type: "FOOTER";
text?: string | undefined;
codeExpirationMinutes?: number | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
} | {
type: "IMAGE" | "VIDEO" | "DOCUMENT";
example: {
url: string;
};
} | {
type: "LOCATION";
} | {
type: "BODY";
text?: string | undefined;
example?: {
texts: string[];
} | undefined;
addSecurityRecommendation?: boolean | undefined;
} | {
buttons: ({
text: string;
type: "QUICK_REPLY";
} | {
text: string;
type: "URL";
url: string;
example?: string[] | undefined;
} | {
text: string;
type: "PHONE_NUMBER";
phoneNumber: string;
} | {
type: "OTP";
otpType: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP";
text?: string | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
} | {
text: string;
type: "FLOW";
flowId?: string | undefined;
flowAction?: "navigate" | "data_exchange" | undefined;
navigateScreen?: string | undefined;
})[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
}[];
allowCategoryChange?: boolean | undefined;
}>;
export declare const templatePatchRequestSchema: z.ZodObject<{
category: z.ZodOptional<z.ZodEnum<["AUTHENTICATION", "MARKETING", "UTILITY"]>>;
}, "strip", z.ZodTypeAny, {
category?: "AUTHENTICATION" | "MARKETING" | "UTILITY" | undefined;
}, {
category?: "AUTHENTICATION" | "MARKETING" | "UTILITY" | undefined;
}>;
export declare const templateHeaderComponentResponseSchema: z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>;
export declare const templateBodyComponentResponseSchema: z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>;
export declare const templateFooterComponentResponseSchema: z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodString;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}>;
export declare const buttonResponseSchema: z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>;
export declare const templateButtonsComponentResponseSchema: z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>;
export declare const carouselCardComponentResponseSchema: z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}>;
export declare const templateCarouselComponentResponseSchema: z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}>;
export declare const componentResponseSchema: z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodString;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}>]>;
export declare const localizationResponseSchema: z.ZodObject<{
language: z.ZodString;
status: z.ZodEnum<["APPROVED", "PENDING", "REJECTED", "DISABLED", "DELETED"]>;
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodString;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}>]>, "many">;
rejectionReason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}, {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}>;
export declare const whatsAppTemplateResponseSchema: z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
name: z.ZodString;
category: z.ZodEnum<["AUTHENTICATION", "MARKETING", "UTILITY"]>;
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING", "REJECTED", "DISABLED", "DELETED"]>>;
language: z.ZodOptional<z.ZodString>;
localizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
language: z.ZodString;
status: z.ZodEnum<["APPROVED", "PENDING", "REJECTED", "DISABLED", "DELETED"]>;
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodString;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}>]>, "many">;
rejectionReason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}, {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}>, "many">>;
rejectionReason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
status?: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED" | undefined;
language?: string | undefined;
localizations?: {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}[] | undefined;
rejectionReason?: string | undefined;
id?: string | undefined;
}, {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
status?: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED" | undefined;
language?: string | undefined;
localizations?: {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}[] | undefined;
rejectionReason?: string | undefined;
id?: string | undefined;
}>;
export declare const whatsAppTemplatesSchema: z.ZodObject<{
templates: z.ZodArray<z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
name: z.ZodString;
category: z.ZodEnum<["AUTHENTICATION", "MARKETING", "UTILITY"]>;
status: z.ZodOptional<z.ZodEnum<["APPROVED", "PENDING", "REJECTED", "DISABLED", "DELETED"]>>;
language: z.ZodOptional<z.ZodString>;
localizations: z.ZodOptional<z.ZodArray<z.ZodObject<{
language: z.ZodString;
status: z.ZodEnum<["APPROVED", "PENDING", "REJECTED", "DISABLED", "DELETED"]>;
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"FOOTER">;
text: z.ZodString;
codeExpirationMinutes: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}, {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>, z.ZodObject<{
type: z.ZodLiteral<"CAROUSEL">;
cards: z.ZodArray<z.ZodObject<{
components: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodEnum<["TEXT", "IMAGE", "VIDEO", "DOCUMENT", "LOCATION"]>;
text: z.ZodOptional<z.ZodString>;
format: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodObject<{
headerText: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
headerHandle: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}, {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}, {
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BODY">;
text: z.ZodString;
example: z.ZodOptional<z.ZodObject<{
bodyText: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
}, "strip", z.ZodTypeAny, {
bodyText: string[][];
}, {
bodyText: string[][];
}>>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}, {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"BUTTONS">;
buttons: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["QUICK_REPLY", "URL", "PHONE_NUMBER", "OTP", "FLOW"]>;
text: z.ZodString;
url: z.ZodOptional<z.ZodString>;
phoneNumber: z.ZodOptional<z.ZodString>;
example: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
otpType: z.ZodOptional<z.ZodEnum<["COPY_CODE", "ONE_TAP", "ZERO_TAP"]>>;
autofillButtonText: z.ZodOptional<z.ZodString>;
packageName: z.ZodOptional<z.ZodString>;
signatureHash: z.ZodOptional<z.ZodString>;
flowId: z.ZodOptional<z.ZodString>;
flowAction: z.ZodOptional<z.ZodString>;
navigateScreen: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}, {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}, {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}, {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}>, "many">;
}, "strip", z.ZodTypeAny, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}, {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
}>]>, "many">;
rejectionReason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}, {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}>, "many">>;
rejectionReason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
status?: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED" | undefined;
language?: string | undefined;
localizations?: {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}[] | undefined;
rejectionReason?: string | undefined;
id?: string | undefined;
}, {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
status?: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED" | undefined;
language?: string | undefined;
localizations?: {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}[] | undefined;
rejectionReason?: string | undefined;
id?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
templates: {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
status?: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED" | undefined;
language?: string | undefined;
localizations?: {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}[] | undefined;
rejectionReason?: string | undefined;
id?: string | undefined;
}[];
}, {
templates: {
name: string;
category: "AUTHENTICATION" | "MARKETING" | "UTILITY";
status?: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED" | undefined;
language?: string | undefined;
localizations?: {
status: "APPROVED" | "PENDING" | "REJECTED" | "DISABLED" | "DELETED";
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
text: string;
type: "FOOTER";
codeExpirationMinutes?: number | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
} | {
type: "CAROUSEL";
cards: {
components: ({
type: "TEXT" | "IMAGE" | "VIDEO" | "DOCUMENT" | "LOCATION";
text?: string | undefined;
example?: {
headerText?: string[] | undefined;
headerHandle?: string[] | undefined;
} | undefined;
format?: string | undefined;
} | {
text: string;
type: "BODY";
example?: {
bodyText: string[][];
} | undefined;
} | {
buttons: {
text: string;
type: "QUICK_REPLY" | "URL" | "PHONE_NUMBER" | "OTP" | "FLOW";
url?: string | undefined;
example?: string[] | undefined;
phoneNumber?: string | undefined;
otpType?: "COPY_CODE" | "ONE_TAP" | "ZERO_TAP" | undefined;
autofillButtonText?: string | undefined;
packageName?: string | undefined;
signatureHash?: string | undefined;
flowId?: string | undefined;
flowAction?: string | undefined;
navigateScreen?: string | undefined;
}[];
type: "BUTTONS";
})[];
}[];
})[];
language: string;
rejectionReason?: string | undefined;
}[] | undefined;
rejectionReason?: string | undefined;
id?: string | undefined;
}[];
}>;