@verisure-italy/whatsapp-provider-types
v1.0.0
Published
Shared contracts for the Verisure Italy WhatsApp Provider
Readme
@verisure-italy/whatsapp-provider-types
Shared Zod contracts and inferred TypeScript types for WhatsApp Provider activation rules, classification requests and results, and immutable audit decisions.
Main exports
activationRuleSchema,createActivationRuleSchema, andreplaceActivationRuleSchemaweeklyScheduleSchemaandtimeSlotSchemawhatsappClassificationRequestSchemaandwhatsappClassificationResultSchemaclassificationDecisionSchema- activation statuses, weekday names, and warning codes
Classification result
const result = whatsappClassificationResultSchema.parse({
match: true,
error: false,
})The schema rejects match: true together with error: true.
Schedule rules
- all seven weekday keys are required;
- at least one weekly slot is required;
- times use
HH:mmminute precision; 24:00is accepted only as an end value;- slots cannot cross midnight or overlap within one weekday;
- adjacent slots are valid because intervals use
[start, end)semantics.
