@samva/webhooks 0.43.2 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,323 +34,325 @@ const validate426 = (value) => isObject(value) && isObject(value) && Object.hasO
34
34
  const validate427 = (value) => typeof value === "string" && value === "message.complained";
35
35
  const validate508 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate509(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate511(value["data"]));
36
36
  const validate509 = (value) => typeof value === "string" && value === "message.received";
37
- const validate511 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "channel") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "organizationId") && (!Object.hasOwn(value, "mailboxId") || validate4(value["mailboxId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate8(value["status"])) && (!Object.hasOwn(value, "metadata") || validate11(value["metadata"])) && (!Object.hasOwn(value, "cost") || validate14(value["cost"])) && (!Object.hasOwn(value, "recipient") || validate8(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate8(value["occurredAt"])) && (!Object.hasOwn(value, "failureReason") || validate8(value["failureReason"])) && (!Object.hasOwn(value, "errorCode") || validate8(value["errorCode"])) && (!Object.hasOwn(value, "conversationId") || validate8(value["conversationId"])) && (!Object.hasOwn(value, "isBillable") || validate32(value["isBillable"])) && (!Object.hasOwn(value, "messageType") || validate8(value["messageType"])) && (!Object.hasOwn(value, "templateCategory") || validate38(value["templateCategory"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "toEmails") || validate44(value["toEmails"])) && (!Object.hasOwn(value, "providerMessageId") || validate8(value["providerMessageId"])) && (!Object.hasOwn(value, "waId") || validate8(value["waId"])) && (!Object.hasOwn(value, "hasAttachments") || validate32(value["hasAttachments"])) && (!Object.hasOwn(value, "isAutoReply") || validate32(value["isAutoReply"])) && (!Object.hasOwn(value, "segments") || validate14(value["segments"])) && (!Object.hasOwn(value, "to") || validate8(value["to"])) && (!Object.hasOwn(value, "from") || validate8(value["from"])) && (!Object.hasOwn(value, "body") || validate8(value["body"])) && (!Object.hasOwn(value, "direction") || validate72(value["direction"])) && (!Object.hasOwn(value, "errorMessage") || validate8(value["errorMessage"])) && (!Object.hasOwn(value, "parts") || validate14(value["parts"])) && (!Object.hasOwn(value, "carrier") || validate8(value["carrier"])) && (!Object.hasOwn(value, "campaign") || validate592(value["campaign"])) && (!Object.hasOwn(value, "whatsapp") || validate597(value["whatsapp"])) && (!Object.hasOwn(value, "messageId") || validate2(value["messageId"])) && (!Object.hasOwn(value, "organizationId") || validate2(value["organizationId"]));
38
- const validate592 = (value) => validate593(value) || validate6(value);
39
- const validate593 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "campaignId") && Object.hasOwn(value, "runId") && (!Object.hasOwn(value, "campaignId") || validate594(value["campaignId"])) && (!Object.hasOwn(value, "runId") || validate595(value["runId"]));
40
- const validate594 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^camp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
41
- const validate595 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^crun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
42
- const validate597 = (value) => validate598(value) || validate6(value);
43
- const validate598 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "text") || validate8(value["text"])) && (!Object.hasOwn(value, "template") || validate602(value["template"])) && (!Object.hasOwn(value, "interactive") || validate654(value["interactive"])) && (!Object.hasOwn(value, "media") || validate754(value["media"])) && (!Object.hasOwn(value, "reaction") || validate777(value["reaction"])) && (!Object.hasOwn(value, "location") || validate785(value["location"])) && (!Object.hasOwn(value, "contacts") || validate791(value["contacts"])) && (!Object.hasOwn(value, "reply") || validate827(value["reply"])) && (!Object.hasOwn(value, "flowResponse") || validate832(value["flowResponse"])) && (!Object.hasOwn(value, "context") || validate838(value["context"]));
44
- const validate602 = (value) => validate603(value) || validate6(value);
45
- const validate603 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "name") && Object.hasOwn(value, "language") && Object.hasOwn(value, "components") && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "language") || validate2(value["language"])) && (!Object.hasOwn(value, "components") || validate606(value["components"]));
46
- const validate606 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate607);
47
- const validate607 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "parameters") && (!Object.hasOwn(value, "type") || validate608(value["type"])) && (!Object.hasOwn(value, "sub_type") || validate609(value["sub_type"])) && (!Object.hasOwn(value, "index") || validate8(value["index"])) && (!Object.hasOwn(value, "parameters") || validate615(value["parameters"]));
48
- const validate608 = (value) => typeof value === "string" && (value === "header" || value === "body" || value === "footer" || value === "button");
49
- const validate609 = (value) => validate610(value) || validate6(value);
50
- const validate610 = (value) => typeof value === "string" && (value === "url" || value === "quick_reply" || value === "copy_code" || value === "flow");
51
- const validate615 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate616);
52
- const validate616 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && (!Object.hasOwn(value, "type") || validate617(value["type"])) && (!Object.hasOwn(value, "text") || validate8(value["text"])) && (!Object.hasOwn(value, "currency") || validate621(value["currency"])) && (!Object.hasOwn(value, "date_time") || validate627(value["date_time"])) && (!Object.hasOwn(value, "image") || validate631(value["image"])) && (!Object.hasOwn(value, "document") || validate635(value["document"])) && (!Object.hasOwn(value, "video") || validate631(value["video"])) && (!Object.hasOwn(value, "coupon_code") || validate8(value["coupon_code"])) && (!Object.hasOwn(value, "action") || validate649(value["action"]));
53
- const validate617 = (value) => typeof value === "string" && (value === "text" || value === "currency" || value === "date_time" || value === "image" || value === "document" || value === "video" || value === "coupon_code" || value === "action");
54
- const validate621 = (value) => validate622(value) || validate6(value);
55
- const validate622 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "fallback_value") && Object.hasOwn(value, "code") && Object.hasOwn(value, "amount_1000") && (!Object.hasOwn(value, "fallback_value") || validate2(value["fallback_value"])) && (!Object.hasOwn(value, "code") || validate2(value["code"])) && (!Object.hasOwn(value, "amount_1000") || validate15(value["amount_1000"]));
56
- const validate627 = (value) => validate628(value) || validate6(value);
57
- const validate628 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "fallback_value") && (!Object.hasOwn(value, "fallback_value") || validate2(value["fallback_value"]));
37
+ const validate511 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "channel") && Object.hasOwn(value, "disposition") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "organizationId") && (!Object.hasOwn(value, "mailboxId") || validate4(value["mailboxId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate8(value["status"])) && (!Object.hasOwn(value, "metadata") || validate11(value["metadata"])) && (!Object.hasOwn(value, "cost") || validate14(value["cost"])) && (!Object.hasOwn(value, "recipient") || validate8(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate8(value["occurredAt"])) && (!Object.hasOwn(value, "failureReason") || validate8(value["failureReason"])) && (!Object.hasOwn(value, "errorCode") || validate8(value["errorCode"])) && (!Object.hasOwn(value, "conversationId") || validate8(value["conversationId"])) && (!Object.hasOwn(value, "isBillable") || validate32(value["isBillable"])) && (!Object.hasOwn(value, "messageType") || validate8(value["messageType"])) && (!Object.hasOwn(value, "templateCategory") || validate38(value["templateCategory"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "toEmails") || validate44(value["toEmails"])) && (!Object.hasOwn(value, "providerMessageId") || validate8(value["providerMessageId"])) && (!Object.hasOwn(value, "waId") || validate8(value["waId"])) && (!Object.hasOwn(value, "hasAttachments") || validate32(value["hasAttachments"])) && (!Object.hasOwn(value, "isAutoReply") || validate32(value["isAutoReply"])) && (!Object.hasOwn(value, "segments") || validate14(value["segments"])) && (!Object.hasOwn(value, "to") || validate8(value["to"])) && (!Object.hasOwn(value, "from") || validate8(value["from"])) && (!Object.hasOwn(value, "body") || validate8(value["body"])) && (!Object.hasOwn(value, "direction") || validate72(value["direction"])) && (!Object.hasOwn(value, "errorMessage") || validate8(value["errorMessage"])) && (!Object.hasOwn(value, "parts") || validate14(value["parts"])) && (!Object.hasOwn(value, "carrier") || validate8(value["carrier"])) && (!Object.hasOwn(value, "disposition") || validate592(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate593(value["reason"])) && (!Object.hasOwn(value, "campaign") || validate596(value["campaign"])) && (!Object.hasOwn(value, "whatsapp") || validate601(value["whatsapp"])) && (!Object.hasOwn(value, "messageId") || validate2(value["messageId"])) && (!Object.hasOwn(value, "organizationId") || validate2(value["organizationId"]));
38
+ const validate592 = (value) => typeof value === "string" && (value === "delivered" || value === "quarantined" || value === "isolated");
39
+ const validate593 = (value) => validate594(value) || validate6(value);
40
+ const validate594 = (value) => typeof value === "string" && (value === "spam" || value === "dmarc" || value === "virus" || value === "virus_unscanned" || value === "verdict_missing" || value === "phishing" || value === "fraud" || value === "prompt_injection");
41
+ const validate596 = (value) => validate597(value) || validate6(value);
42
+ const validate597 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "campaignId") && Object.hasOwn(value, "runId") && (!Object.hasOwn(value, "campaignId") || validate598(value["campaignId"])) && (!Object.hasOwn(value, "runId") || validate599(value["runId"]));
43
+ const validate598 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^camp_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
44
+ const validate599 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^crun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
45
+ const validate601 = (value) => validate602(value) || validate6(value);
46
+ const validate602 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "text") || validate8(value["text"])) && (!Object.hasOwn(value, "template") || validate606(value["template"])) && (!Object.hasOwn(value, "interactive") || validate658(value["interactive"])) && (!Object.hasOwn(value, "media") || validate758(value["media"])) && (!Object.hasOwn(value, "reaction") || validate781(value["reaction"])) && (!Object.hasOwn(value, "location") || validate789(value["location"])) && (!Object.hasOwn(value, "contacts") || validate795(value["contacts"])) && (!Object.hasOwn(value, "reply") || validate831(value["reply"])) && (!Object.hasOwn(value, "flowResponse") || validate836(value["flowResponse"])) && (!Object.hasOwn(value, "context") || validate842(value["context"]));
47
+ const validate606 = (value) => validate607(value) || validate6(value);
48
+ const validate607 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "name") && Object.hasOwn(value, "language") && Object.hasOwn(value, "components") && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "language") || validate2(value["language"])) && (!Object.hasOwn(value, "components") || validate610(value["components"]));
49
+ const validate610 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate611);
50
+ const validate611 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "parameters") && (!Object.hasOwn(value, "type") || validate612(value["type"])) && (!Object.hasOwn(value, "sub_type") || validate613(value["sub_type"])) && (!Object.hasOwn(value, "index") || validate8(value["index"])) && (!Object.hasOwn(value, "parameters") || validate619(value["parameters"]));
51
+ const validate612 = (value) => typeof value === "string" && (value === "header" || value === "body" || value === "footer" || value === "button");
52
+ const validate613 = (value) => validate614(value) || validate6(value);
53
+ const validate614 = (value) => typeof value === "string" && (value === "url" || value === "quick_reply" || value === "copy_code" || value === "flow");
54
+ const validate619 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate620);
55
+ const validate620 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && (!Object.hasOwn(value, "type") || validate621(value["type"])) && (!Object.hasOwn(value, "text") || validate8(value["text"])) && (!Object.hasOwn(value, "currency") || validate625(value["currency"])) && (!Object.hasOwn(value, "date_time") || validate631(value["date_time"])) && (!Object.hasOwn(value, "image") || validate635(value["image"])) && (!Object.hasOwn(value, "document") || validate639(value["document"])) && (!Object.hasOwn(value, "video") || validate635(value["video"])) && (!Object.hasOwn(value, "coupon_code") || validate8(value["coupon_code"])) && (!Object.hasOwn(value, "action") || validate653(value["action"]));
56
+ const validate621 = (value) => typeof value === "string" && (value === "text" || value === "currency" || value === "date_time" || value === "image" || value === "document" || value === "video" || value === "coupon_code" || value === "action");
57
+ const validate625 = (value) => validate626(value) || validate6(value);
58
+ const validate626 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "fallback_value") && Object.hasOwn(value, "code") && Object.hasOwn(value, "amount_1000") && (!Object.hasOwn(value, "fallback_value") || validate2(value["fallback_value"])) && (!Object.hasOwn(value, "code") || validate2(value["code"])) && (!Object.hasOwn(value, "amount_1000") || validate15(value["amount_1000"]));
58
59
  const validate631 = (value) => validate632(value) || validate6(value);
59
- const validate632 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "link") && (!Object.hasOwn(value, "link") || validate2(value["link"]));
60
+ const validate632 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "fallback_value") && (!Object.hasOwn(value, "fallback_value") || validate2(value["fallback_value"]));
60
61
  const validate635 = (value) => validate636(value) || validate6(value);
61
- const validate636 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "link") && (!Object.hasOwn(value, "link") || validate2(value["link"])) && (!Object.hasOwn(value, "filename") || validate8(value["filename"]));
62
- const validate649 = (value) => validate650(value) || validate6(value);
63
- const validate650 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "flow_token") && (!Object.hasOwn(value, "flow_token") || validate2(value["flow_token"]));
64
- const validate654 = (value) => validate655(value) || validate690(value) || validate706(value) || validate739(value);
65
- const validate655 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "buttons") && (!Object.hasOwn(value, "type") || validate656(value["type"])) && (!Object.hasOwn(value, "header") || validate657(value["header"])) && (!Object.hasOwn(value, "body") || validate684(value["body"])) && (!Object.hasOwn(value, "footer") || validate660(value["footer"])) && (!Object.hasOwn(value, "buttons") || validate686(value["buttons"]));
66
- const validate656 = (value) => typeof value === "string" && value === "buttons";
67
- const validate657 = (value) => validate658(value) || validate661(value) || validate668(value) || validate675(value);
68
- const validate658 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "text") && (!Object.hasOwn(value, "type") || validate659(value["type"])) && (!Object.hasOwn(value, "text") || validate660(value["text"]));
69
- const validate659 = (value) => typeof value === "string" && value === "text";
70
- const validate660 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 60;
71
- const validate661 = (value) => validate662(value) || validate665(value);
72
- const validate662 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate663(value["type"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
73
- const validate663 = (value) => typeof value === "string" && value === "image";
74
- const validate665 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate663(value["type"])) && (!Object.hasOwn(value, "mediaId") || validate667(value["mediaId"]));
75
- const validate667 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^media_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
76
- const validate668 = (value) => validate669(value) || validate672(value);
77
- const validate669 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate670(value["type"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
78
- const validate670 = (value) => typeof value === "string" && value === "video";
79
- const validate672 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate670(value["type"])) && (!Object.hasOwn(value, "mediaId") || validate667(value["mediaId"]));
80
- const validate675 = (value) => validate676(value) || validate680(value);
81
- const validate676 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate677(value["type"])) && (!Object.hasOwn(value, "filename") || validate678(value["filename"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
82
- const validate677 = (value) => typeof value === "string" && value === "document";
83
- const validate678 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 255;
84
- const validate680 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate677(value["type"])) && (!Object.hasOwn(value, "filename") || validate678(value["filename"])) && (!Object.hasOwn(value, "mediaId") || validate667(value["mediaId"]));
85
- const validate684 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 1024;
86
- const validate686 = (value) => Array.isArray(value) && Array.isArray(value) && value.length >= 1 && Array.isArray(value) && value.length <= 3 && Array.isArray(value) && value.every(validate687);
87
- const validate687 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "title") && (!Object.hasOwn(value, "id") || validate688(value["id"])) && (!Object.hasOwn(value, "title") || validate689(value["title"]));
88
- const validate688 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 256;
89
- const validate689 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 20;
90
- const validate690 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "button") && Object.hasOwn(value, "sections") && (!Object.hasOwn(value, "type") || validate691(value["type"])) && (!Object.hasOwn(value, "header") || validate658(value["header"])) && (!Object.hasOwn(value, "body") || validate695(value["body"])) && (!Object.hasOwn(value, "footer") || validate660(value["footer"])) && (!Object.hasOwn(value, "button") || validate689(value["button"])) && (!Object.hasOwn(value, "sections") || validate698(value["sections"]));
91
- const validate691 = (value) => typeof value === "string" && value === "list";
92
- const validate695 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 4096;
93
- const validate698 = (value) => Array.isArray(value) && Array.isArray(value) && value.length >= 1 && Array.isArray(value) && value.length <= 10 && Array.isArray(value) && value.every(validate699);
94
- const validate699 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "rows") && (!Object.hasOwn(value, "title") || validate700(value["title"])) && (!Object.hasOwn(value, "rows") || validate701(value["rows"]));
95
- const validate700 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 24;
96
- const validate701 = (value) => Array.isArray(value) && Array.isArray(value) && value.length >= 1 && Array.isArray(value) && value.every(validate702);
97
- const validate702 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "title") && (!Object.hasOwn(value, "id") || validate703(value["id"])) && (!Object.hasOwn(value, "title") || validate700(value["title"])) && (!Object.hasOwn(value, "description") || validate705(value["description"]));
98
- const validate703 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 200;
99
- const validate705 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 72;
100
- const validate706 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "displayText") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate707(value["type"])) && (!Object.hasOwn(value, "header") || validate657(value["header"])) && (!Object.hasOwn(value, "body") || validate684(value["body"])) && (!Object.hasOwn(value, "footer") || validate660(value["footer"])) && (!Object.hasOwn(value, "displayText") || validate689(value["displayText"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
101
- const validate707 = (value) => typeof value === "string" && value === "cta_url";
102
- const validate739 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "flowId") && Object.hasOwn(value, "cta") && Object.hasOwn(value, "flowVersionId") && Object.hasOwn(value, "providerFlowId") && (!Object.hasOwn(value, "type") || validate740(value["type"])) && (!Object.hasOwn(value, "header") || validate658(value["header"])) && (!Object.hasOwn(value, "body") || validate684(value["body"])) && (!Object.hasOwn(value, "footer") || validate660(value["footer"])) && (!Object.hasOwn(value, "flowId") || validate746(value["flowId"])) && (!Object.hasOwn(value, "cta") || validate747(value["cta"])) && (!Object.hasOwn(value, "token") || validate684(value["token"])) && (!Object.hasOwn(value, "action") || validate749(value["action"])) && (!Object.hasOwn(value, "screen") || validate750(value["screen"])) && (!Object.hasOwn(value, "data") || validate12(value["data"])) && (!Object.hasOwn(value, "flowVersionId") || validate752(value["flowVersionId"])) && (!Object.hasOwn(value, "providerFlowId") || validate2(value["providerFlowId"]));
103
- const validate740 = (value) => typeof value === "string" && value === "flow";
104
- const validate746 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^waflow_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
105
- const validate747 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 30;
106
- const validate749 = (value) => typeof value === "string" && (value === "navigate" || value === "data_exchange");
107
- const validate750 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^[A-Za-z_]{1,100}$", "u")).test(value);
108
- const validate752 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
109
- const validate754 = (value) => validate755(value) || validate6(value);
110
- const validate755 = (value) => validate756(value) || validate761(value) || validate766(value);
111
- const validate756 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate757(value["type"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "caption") || validate2(value["caption"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"]));
112
- const validate757 = (value) => typeof value === "string" && (value === "image" || value === "video" || value === "audio" || value === "document" || value === "sticker");
113
- const validate761 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate757(value["type"])) && (!Object.hasOwn(value, "mediaId") || validate667(value["mediaId"])) && (!Object.hasOwn(value, "caption") || validate2(value["caption"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"]));
114
- const validate766 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "providerMediaId") && (!Object.hasOwn(value, "type") || validate757(value["type"])) && (!Object.hasOwn(value, "providerMediaId") || validate2(value["providerMediaId"])) && (!Object.hasOwn(value, "mimeType") || validate8(value["mimeType"])) && (!Object.hasOwn(value, "caption") || validate8(value["caption"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"]));
115
- const validate777 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "providerMessageId") && Object.hasOwn(value, "emoji") && (!Object.hasOwn(value, "messageId") || validate778(value["messageId"])) && (!Object.hasOwn(value, "providerMessageId") || validate2(value["providerMessageId"])) && (!Object.hasOwn(value, "emoji") || validate8(value["emoji"]));
116
- const validate778 = (value) => validate779(value) || validate6(value);
117
- const validate779 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^msg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
118
- const validate785 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "latitude") && Object.hasOwn(value, "longitude") && (!Object.hasOwn(value, "latitude") || validate15(value["latitude"])) && (!Object.hasOwn(value, "longitude") || validate15(value["longitude"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "address") || validate2(value["address"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
119
- const validate791 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate792);
120
- const validate792 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "name") || validate793(value["name"])) && (!Object.hasOwn(value, "phones") || validate800(value["phones"])) && (!Object.hasOwn(value, "emails") || validate805(value["emails"])) && (!Object.hasOwn(value, "urls") || validate809(value["urls"])) && (!Object.hasOwn(value, "org") || validate813(value["org"])) && (!Object.hasOwn(value, "addresses") || validate817(value["addresses"])) && (!Object.hasOwn(value, "birthday") || validate2(value["birthday"]));
121
- const validate793 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "formattedName") || validate2(value["formattedName"])) && (!Object.hasOwn(value, "firstName") || validate2(value["firstName"])) && (!Object.hasOwn(value, "lastName") || validate2(value["lastName"])) && (!Object.hasOwn(value, "middleName") || validate2(value["middleName"])) && (!Object.hasOwn(value, "prefix") || validate2(value["prefix"])) && (!Object.hasOwn(value, "suffix") || validate2(value["suffix"]));
122
- const validate800 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate801);
123
- const validate801 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "phone") || validate2(value["phone"])) && (!Object.hasOwn(value, "type") || validate2(value["type"])) && (!Object.hasOwn(value, "waId") || validate2(value["waId"]));
124
- const validate805 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate806);
125
- const validate806 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "email") || validate2(value["email"])) && (!Object.hasOwn(value, "type") || validate2(value["type"]));
62
+ const validate636 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "link") && (!Object.hasOwn(value, "link") || validate2(value["link"]));
63
+ const validate639 = (value) => validate640(value) || validate6(value);
64
+ const validate640 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "link") && (!Object.hasOwn(value, "link") || validate2(value["link"])) && (!Object.hasOwn(value, "filename") || validate8(value["filename"]));
65
+ const validate653 = (value) => validate654(value) || validate6(value);
66
+ const validate654 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "flow_token") && (!Object.hasOwn(value, "flow_token") || validate2(value["flow_token"]));
67
+ const validate658 = (value) => validate659(value) || validate694(value) || validate710(value) || validate743(value);
68
+ const validate659 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "buttons") && (!Object.hasOwn(value, "type") || validate660(value["type"])) && (!Object.hasOwn(value, "header") || validate661(value["header"])) && (!Object.hasOwn(value, "body") || validate688(value["body"])) && (!Object.hasOwn(value, "footer") || validate664(value["footer"])) && (!Object.hasOwn(value, "buttons") || validate690(value["buttons"]));
69
+ const validate660 = (value) => typeof value === "string" && value === "buttons";
70
+ const validate661 = (value) => validate662(value) || validate665(value) || validate672(value) || validate679(value);
71
+ const validate662 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "text") && (!Object.hasOwn(value, "type") || validate663(value["type"])) && (!Object.hasOwn(value, "text") || validate664(value["text"]));
72
+ const validate663 = (value) => typeof value === "string" && value === "text";
73
+ const validate664 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 60;
74
+ const validate665 = (value) => validate666(value) || validate669(value);
75
+ const validate666 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate667(value["type"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
76
+ const validate667 = (value) => typeof value === "string" && value === "image";
77
+ const validate669 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate667(value["type"])) && (!Object.hasOwn(value, "mediaId") || validate671(value["mediaId"]));
78
+ const validate671 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^media_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
79
+ const validate672 = (value) => validate673(value) || validate676(value);
80
+ const validate673 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate674(value["type"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
81
+ const validate674 = (value) => typeof value === "string" && value === "video";
82
+ const validate676 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate674(value["type"])) && (!Object.hasOwn(value, "mediaId") || validate671(value["mediaId"]));
83
+ const validate679 = (value) => validate680(value) || validate684(value);
84
+ const validate680 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate681(value["type"])) && (!Object.hasOwn(value, "filename") || validate682(value["filename"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
85
+ const validate681 = (value) => typeof value === "string" && value === "document";
86
+ const validate682 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 255;
87
+ const validate684 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate681(value["type"])) && (!Object.hasOwn(value, "filename") || validate682(value["filename"])) && (!Object.hasOwn(value, "mediaId") || validate671(value["mediaId"]));
88
+ const validate688 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 1024;
89
+ const validate690 = (value) => Array.isArray(value) && Array.isArray(value) && value.length >= 1 && Array.isArray(value) && value.length <= 3 && Array.isArray(value) && value.every(validate691);
90
+ const validate691 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "title") && (!Object.hasOwn(value, "id") || validate692(value["id"])) && (!Object.hasOwn(value, "title") || validate693(value["title"]));
91
+ const validate692 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 256;
92
+ const validate693 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 20;
93
+ const validate694 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "button") && Object.hasOwn(value, "sections") && (!Object.hasOwn(value, "type") || validate695(value["type"])) && (!Object.hasOwn(value, "header") || validate662(value["header"])) && (!Object.hasOwn(value, "body") || validate699(value["body"])) && (!Object.hasOwn(value, "footer") || validate664(value["footer"])) && (!Object.hasOwn(value, "button") || validate693(value["button"])) && (!Object.hasOwn(value, "sections") || validate702(value["sections"]));
94
+ const validate695 = (value) => typeof value === "string" && value === "list";
95
+ const validate699 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 4096;
96
+ const validate702 = (value) => Array.isArray(value) && Array.isArray(value) && value.length >= 1 && Array.isArray(value) && value.length <= 10 && Array.isArray(value) && value.every(validate703);
97
+ const validate703 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "rows") && (!Object.hasOwn(value, "title") || validate704(value["title"])) && (!Object.hasOwn(value, "rows") || validate705(value["rows"]));
98
+ const validate704 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 24;
99
+ const validate705 = (value) => Array.isArray(value) && Array.isArray(value) && value.length >= 1 && Array.isArray(value) && value.every(validate706);
100
+ const validate706 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "title") && (!Object.hasOwn(value, "id") || validate707(value["id"])) && (!Object.hasOwn(value, "title") || validate704(value["title"])) && (!Object.hasOwn(value, "description") || validate709(value["description"]));
101
+ const validate707 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 200;
102
+ const validate709 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 72;
103
+ const validate710 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "displayText") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate711(value["type"])) && (!Object.hasOwn(value, "header") || validate661(value["header"])) && (!Object.hasOwn(value, "body") || validate688(value["body"])) && (!Object.hasOwn(value, "footer") || validate664(value["footer"])) && (!Object.hasOwn(value, "displayText") || validate693(value["displayText"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
104
+ const validate711 = (value) => typeof value === "string" && value === "cta_url";
105
+ const validate743 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "body") && Object.hasOwn(value, "flowId") && Object.hasOwn(value, "cta") && Object.hasOwn(value, "flowVersionId") && Object.hasOwn(value, "providerFlowId") && (!Object.hasOwn(value, "type") || validate744(value["type"])) && (!Object.hasOwn(value, "header") || validate662(value["header"])) && (!Object.hasOwn(value, "body") || validate688(value["body"])) && (!Object.hasOwn(value, "footer") || validate664(value["footer"])) && (!Object.hasOwn(value, "flowId") || validate750(value["flowId"])) && (!Object.hasOwn(value, "cta") || validate751(value["cta"])) && (!Object.hasOwn(value, "token") || validate688(value["token"])) && (!Object.hasOwn(value, "action") || validate753(value["action"])) && (!Object.hasOwn(value, "screen") || validate754(value["screen"])) && (!Object.hasOwn(value, "data") || validate12(value["data"])) && (!Object.hasOwn(value, "flowVersionId") || validate756(value["flowVersionId"])) && (!Object.hasOwn(value, "providerFlowId") || validate2(value["providerFlowId"]));
106
+ const validate744 = (value) => typeof value === "string" && value === "flow";
107
+ const validate750 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^waflow_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
108
+ const validate751 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 30;
109
+ const validate753 = (value) => typeof value === "string" && (value === "navigate" || value === "data_exchange");
110
+ const validate754 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^[A-Za-z_]{1,100}$", "u")).test(value);
111
+ const validate756 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wafver_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
112
+ const validate758 = (value) => validate759(value) || validate6(value);
113
+ const validate759 = (value) => validate760(value) || validate765(value) || validate770(value);
114
+ const validate760 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "url") && (!Object.hasOwn(value, "type") || validate761(value["type"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "caption") || validate2(value["caption"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"]));
115
+ const validate761 = (value) => typeof value === "string" && (value === "image" || value === "video" || value === "audio" || value === "document" || value === "sticker");
116
+ const validate765 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "mediaId") && (!Object.hasOwn(value, "type") || validate761(value["type"])) && (!Object.hasOwn(value, "mediaId") || validate671(value["mediaId"])) && (!Object.hasOwn(value, "caption") || validate2(value["caption"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"]));
117
+ const validate770 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "providerMediaId") && (!Object.hasOwn(value, "type") || validate761(value["type"])) && (!Object.hasOwn(value, "providerMediaId") || validate2(value["providerMediaId"])) && (!Object.hasOwn(value, "mimeType") || validate8(value["mimeType"])) && (!Object.hasOwn(value, "caption") || validate8(value["caption"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"]));
118
+ const validate781 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "providerMessageId") && Object.hasOwn(value, "emoji") && (!Object.hasOwn(value, "messageId") || validate782(value["messageId"])) && (!Object.hasOwn(value, "providerMessageId") || validate2(value["providerMessageId"])) && (!Object.hasOwn(value, "emoji") || validate8(value["emoji"]));
119
+ const validate782 = (value) => validate783(value) || validate6(value);
120
+ const validate783 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^msg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
121
+ const validate789 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "latitude") && Object.hasOwn(value, "longitude") && (!Object.hasOwn(value, "latitude") || validate15(value["latitude"])) && (!Object.hasOwn(value, "longitude") || validate15(value["longitude"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "address") || validate2(value["address"])) && (!Object.hasOwn(value, "url") || validate2(value["url"]));
122
+ const validate795 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate796);
123
+ const validate796 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "name") || validate797(value["name"])) && (!Object.hasOwn(value, "phones") || validate804(value["phones"])) && (!Object.hasOwn(value, "emails") || validate809(value["emails"])) && (!Object.hasOwn(value, "urls") || validate813(value["urls"])) && (!Object.hasOwn(value, "org") || validate817(value["org"])) && (!Object.hasOwn(value, "addresses") || validate821(value["addresses"])) && (!Object.hasOwn(value, "birthday") || validate2(value["birthday"]));
124
+ const validate797 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "formattedName") || validate2(value["formattedName"])) && (!Object.hasOwn(value, "firstName") || validate2(value["firstName"])) && (!Object.hasOwn(value, "lastName") || validate2(value["lastName"])) && (!Object.hasOwn(value, "middleName") || validate2(value["middleName"])) && (!Object.hasOwn(value, "prefix") || validate2(value["prefix"])) && (!Object.hasOwn(value, "suffix") || validate2(value["suffix"]));
125
+ const validate804 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate805);
126
+ const validate805 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "phone") || validate2(value["phone"])) && (!Object.hasOwn(value, "type") || validate2(value["type"])) && (!Object.hasOwn(value, "waId") || validate2(value["waId"]));
126
127
  const validate809 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate810);
127
- const validate810 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "type") || validate2(value["type"]));
128
- const validate813 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "company") || validate2(value["company"])) && (!Object.hasOwn(value, "department") || validate2(value["department"])) && (!Object.hasOwn(value, "title") || validate2(value["title"]));
129
- const validate817 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate818);
130
- const validate818 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "street") || validate2(value["street"])) && (!Object.hasOwn(value, "city") || validate2(value["city"])) && (!Object.hasOwn(value, "state") || validate2(value["state"])) && (!Object.hasOwn(value, "zip") || validate2(value["zip"])) && (!Object.hasOwn(value, "country") || validate2(value["country"])) && (!Object.hasOwn(value, "countryCode") || validate2(value["countryCode"])) && (!Object.hasOwn(value, "type") || validate2(value["type"]));
131
- const validate827 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "id") && Object.hasOwn(value, "title") && (!Object.hasOwn(value, "type") || validate828(value["type"])) && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "title") || validate2(value["title"])) && (!Object.hasOwn(value, "description") || validate2(value["description"]));
132
- const validate828 = (value) => typeof value === "string" && (value === "button" || value === "list" || value === "template_button");
133
- const validate832 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "flowToken") && Object.hasOwn(value, "response") && (!Object.hasOwn(value, "flowToken") || validate8(value["flowToken"])) && (!Object.hasOwn(value, "response") || validate12(value["response"])) && (!Object.hasOwn(value, "body") || validate2(value["body"]));
134
- const validate838 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "providerMessageId") && (!Object.hasOwn(value, "messageId") || validate778(value["messageId"])) && (!Object.hasOwn(value, "providerMessageId") || validate2(value["providerMessageId"]));
135
- const validate846 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate847(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate849(value["data"]));
136
- const validate847 = (value) => typeof value === "string" && value === "message.opened";
137
- const validate849 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "deliveryId") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "firstOpen") && Object.hasOwn(value, "machine") && Object.hasOwn(value, "machineReason") && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "channel") || validate852(value["channel"])) && (!Object.hasOwn(value, "deliveryId") || validate853(value["deliveryId"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "userAgent") || validate8(value["userAgent"])) && (!Object.hasOwn(value, "ipAddress") || validate8(value["ipAddress"])) && (!Object.hasOwn(value, "firstOpen") || validate33(value["firstOpen"])) && (!Object.hasOwn(value, "machine") || validate33(value["machine"])) && (!Object.hasOwn(value, "machineReason") || validate864(value["machineReason"])) && (!Object.hasOwn(value, "country") || validate8(value["country"])) && (!Object.hasOwn(value, "city") || validate8(value["city"])) && (!Object.hasOwn(value, "asn") || validate14(value["asn"])) && (!Object.hasOwn(value, "code") || validate8(value["code"])) && (!Object.hasOwn(value, "linkIndex") || validate14(value["linkIndex"])) && (!Object.hasOwn(value, "destinationUrl") || validate8(value["destinationUrl"])) && (!Object.hasOwn(value, "metadata") || validate11(value["metadata"])) && (!Object.hasOwn(value, "campaignId") || validate888(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate891(value["campaignRunId"]));
138
- const validate851 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^org_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
139
- const validate852 = (value) => typeof value === "string" && value === "email";
140
- const validate853 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
141
- const validate864 = (value) => validate865(value) || validate6(value);
142
- const validate865 = (value) => typeof value === "string" && (value === "google-image-proxy" || value === "apple-mail-privacy" || value === "scanner-user-agent" || value === "scanner-asn" || value === "too-fast");
143
- const validate888 = (value) => validate594(value) || validate6(value);
144
- const validate891 = (value) => validate595(value) || validate6(value);
145
- const validate894 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate895(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate897(value["data"]));
146
- const validate895 = (value) => typeof value === "string" && value === "message.clicked";
147
- const validate897 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "deliveryId") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "url") && Object.hasOwn(value, "linkTags") && Object.hasOwn(value, "firstClick") && Object.hasOwn(value, "machine") && Object.hasOwn(value, "machineReason") && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "channel") || validate852(value["channel"])) && (!Object.hasOwn(value, "deliveryId") || validate853(value["deliveryId"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "userAgent") || validate8(value["userAgent"])) && (!Object.hasOwn(value, "ipAddress") || validate8(value["ipAddress"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "linkTags") || validate911(value["linkTags"])) && (!Object.hasOwn(value, "firstClick") || validate33(value["firstClick"])) && (!Object.hasOwn(value, "machine") || validate33(value["machine"])) && (!Object.hasOwn(value, "machineReason") || validate864(value["machineReason"])) && (!Object.hasOwn(value, "country") || validate8(value["country"])) && (!Object.hasOwn(value, "city") || validate8(value["city"])) && (!Object.hasOwn(value, "asn") || validate14(value["asn"])) && (!Object.hasOwn(value, "code") || validate8(value["code"])) && (!Object.hasOwn(value, "linkIndex") || validate14(value["linkIndex"])) && (!Object.hasOwn(value, "destinationUrl") || validate8(value["destinationUrl"])) && (!Object.hasOwn(value, "metadata") || validate11(value["metadata"])) && (!Object.hasOwn(value, "campaignId") || validate888(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate891(value["campaignRunId"]));
148
- const validate911 = (value) => isObject(value) && isObject(value) && Object.entries(value).every(([key, item]) => validate45(item));
149
- const validate946 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate947(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate949(value["data"]));
150
- const validate947 = (value) => typeof value === "string" && value === "contact.created";
151
- const validate949 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "status") && Object.hasOwn(value, "name") && Object.hasOwn(value, "identities") && Object.hasOwn(value, "tags") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "contactId") || validate950(value["contactId"])) && (!Object.hasOwn(value, "status") || validate951(value["status"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "displayName") || validate953(value["displayName"])) && (!Object.hasOwn(value, "identities") || validate957(value["identities"])) && (!Object.hasOwn(value, "tags") || validate45(value["tags"])) && (!Object.hasOwn(value, "externalId") || validate953(value["externalId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
152
- const validate950 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^contact_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
153
- const validate951 = (value) => typeof value === "string" && (value === "active" || value === "paused" || value === "blocked" || value === "archived");
154
- const validate953 = (value) => validate2(value) || validate6(value) || validate6(value);
155
- const validate957 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate958);
156
- const validate958 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && Object.hasOwn(value, "verified") && (!Object.hasOwn(value, "type") || validate959(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"])) && (!Object.hasOwn(value, "verified") || validate33(value["verified"]));
157
- const validate959 = (value) => typeof value === "string" && (value === "email" || value === "phone");
158
- const validate970 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate971(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate949(value["data"]));
159
- const validate971 = (value) => typeof value === "string" && value === "contact.updated";
160
- const validate994 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate995(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate949(value["data"]));
161
- const validate995 = (value) => typeof value === "string" && value === "contact.deleted";
162
- const validate1018 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1019(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1021(value["data"]));
163
- const validate1019 = (value) => typeof value === "string" && value === "contact.subscribed";
164
- const validate1021 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "topicId") && Object.hasOwn(value, "topicName") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "source") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate950(value["contactId"])) && (!Object.hasOwn(value, "email") || validate8(value["email"])) && (!Object.hasOwn(value, "topicId") || validate1027(value["topicId"])) && (!Object.hasOwn(value, "topicName") || validate2(value["topicName"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "consentIp") || validate8(value["consentIp"])) && (!Object.hasOwn(value, "consentSource") || validate8(value["consentSource"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "formKey") || validate8(value["formKey"])) && (!Object.hasOwn(value, "page") || validate8(value["page"])) && (!Object.hasOwn(value, "referrer") || validate8(value["referrer"])) && (!Object.hasOwn(value, "messageId") || validate778(value["messageId"])) && (!Object.hasOwn(value, "campaignId") || validate888(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate891(value["campaignRunId"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
165
- const validate1027 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tpc_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
166
- const validate1056 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1057(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1021(value["data"]));
167
- const validate1057 = (value) => typeof value === "string" && value === "contact.unsubscribed";
168
- const validate1094 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1095(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1021(value["data"]));
169
- const validate1095 = (value) => typeof value === "string" && value === "contact.resubscribed";
170
- const validate1132 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1133(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1135(value["data"]));
171
- const validate1133 = (value) => typeof value === "string" && value === "contact.consent_changed";
172
- const validate1135 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "identity") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "status") && Object.hasOwn(value, "previousStatus") && Object.hasOwn(value, "source") && Object.hasOwn(value, "capturedAt") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate950(value["contactId"])) && (!Object.hasOwn(value, "identity") || validate1138(value["identity"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate1143(value["status"])) && (!Object.hasOwn(value, "previousStatus") || validate1144(value["previousStatus"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "capturedAt") || validate2(value["capturedAt"]));
173
- const validate1138 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && (!Object.hasOwn(value, "id") || validate1139(value["id"])) && (!Object.hasOwn(value, "type") || validate959(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"]));
174
- const validate1139 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^cident_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
175
- const validate1143 = (value) => typeof value === "string" && (value === "opted_in" || value === "opted_out");
176
- const validate1144 = (value) => validate1143(value) || validate6(value);
177
- const validate1149 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1150(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1152(value["data"]));
178
- const validate1150 = (value) => typeof value === "string" && value === "conversation.created";
179
- const validate1152 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "conversationId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channels") && Object.hasOwn(value, "primaryChannel") && Object.hasOwn(value, "status") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "conversationId") || validate1153(value["conversationId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "title") || validate953(value["title"])) && (!Object.hasOwn(value, "channels") || validate1159(value["channels"])) && (!Object.hasOwn(value, "primaryChannel") || validate7(value["primaryChannel"])) && (!Object.hasOwn(value, "status") || validate1162(value["status"])) && (!Object.hasOwn(value, "primaryContactId") || validate1163(value["primaryContactId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
180
- const validate1153 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
181
- const validate1159 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate7);
182
- const validate1162 = (value) => typeof value === "string" && (value === "active" || value === "waiting" || value === "resolved" || value === "escalated" || value === "archived");
183
- const validate1163 = (value) => validate950(value) || validate6(value) || validate6(value);
184
- const validate1169 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1170(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1152(value["data"]));
185
- const validate1170 = (value) => typeof value === "string" && value === "conversation.updated";
186
- const validate1189 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1190(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1152(value["data"]));
187
- const validate1190 = (value) => typeof value === "string" && value === "conversation.archived";
188
- const validate1209 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1210(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1212(value["data"]));
189
- const validate1210 = (value) => typeof value === "string" && value === "webhook.created";
190
- const validate1212 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "webhookId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "name") && Object.hasOwn(value, "url") && Object.hasOwn(value, "eventTypes") && Object.hasOwn(value, "channels") && Object.hasOwn(value, "status") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "webhookId") || validate1213(value["webhookId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "eventTypes") || validate45(value["eventTypes"])) && (!Object.hasOwn(value, "channels") || validate44(value["channels"])) && (!Object.hasOwn(value, "status") || validate1223(value["status"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
191
- const validate1213 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
192
- const validate1223 = (value) => typeof value === "string" && (value === "active" || value === "disabled");
193
- const validate1226 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1227(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1212(value["data"]));
194
- const validate1227 = (value) => typeof value === "string" && value === "webhook.updated";
195
- const validate1243 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1244(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1212(value["data"]));
196
- const validate1244 = (value) => typeof value === "string" && value === "webhook.deleted";
197
- const validate1260 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1261(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
198
- const validate1261 = (value) => typeof value === "string" && value === "webhook.test";
199
- const validate1264 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1265(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1267(value["data"]));
200
- const validate1265 = (value) => typeof value === "string" && value === "domain.updated";
201
- const validate1267 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "domainId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "domain") && Object.hasOwn(value, "previousPhase") && Object.hasOwn(value, "phase") && Object.hasOwn(value, "dns") && Object.hasOwn(value, "provider") && Object.hasOwn(value, "operationId") && Object.hasOwn(value, "checkedAt") && Object.hasOwn(value, "nextCheckAt") && Object.hasOwn(value, "failure") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "domainId") || validate1268(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "previousPhase") || validate1271(value["previousPhase"])) && (!Object.hasOwn(value, "phase") || validate1271(value["phase"])) && (!Object.hasOwn(value, "dns") || validate1273(value["dns"])) && (!Object.hasOwn(value, "provider") || validate1280(value["provider"])) && (!Object.hasOwn(value, "operationId") || validate1290(value["operationId"])) && (!Object.hasOwn(value, "checkedAt") || validate8(value["checkedAt"])) && (!Object.hasOwn(value, "nextCheckAt") || validate8(value["nextCheckAt"])) && (!Object.hasOwn(value, "failure") || validate1299(value["failure"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
202
- const validate1268 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
203
- const validate1271 = (value) => typeof value === "string" && (value === "dns-setup" || value === "provisioning" || value === "verifying" || value === "ready" || value === "degraded" || value === "failed");
204
- const validate1273 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "observed") && Object.hasOwn(value, "total") && Object.hasOwn(value, "satisfied") && Object.hasOwn(value, "missing") && Object.hasOwn(value, "mismatch") && Object.hasOwn(value, "unknown") && (!Object.hasOwn(value, "observed") || validate33(value["observed"])) && (!Object.hasOwn(value, "total") || validate1275(value["total"])) && (!Object.hasOwn(value, "satisfied") || validate1275(value["satisfied"])) && (!Object.hasOwn(value, "missing") || validate1275(value["missing"])) && (!Object.hasOwn(value, "mismatch") || validate1275(value["mismatch"])) && (!Object.hasOwn(value, "unknown") || validate1275(value["unknown"]));
205
- const validate1275 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= -9007199254740991 && typeof value === "number" && value <= 9007199254740991;
206
- const validate1280 = (value) => validate1281(value) || validate6(value);
207
- const validate1281 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "identity") && (!Object.hasOwn(value, "identity") || validate1282(value["identity"])) && (!Object.hasOwn(value, "dkim") || validate1283(value["dkim"])) && (!Object.hasOwn(value, "mailFrom") || validate1283(value["mailFrom"]));
208
- const validate1282 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "unknown");
209
- const validate1283 = (value) => validate1282(value) || validate6(value);
210
- const validate1290 = (value) => validate1291(value) || validate6(value);
211
- const validate1291 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^op_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
212
- const validate1299 = (value) => validate1300(value) || validate6(value);
213
- const validate1300 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "code") && Object.hasOwn(value, "message") && Object.hasOwn(value, "failedAt") && (!Object.hasOwn(value, "code") || validate2(value["code"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "failedAt") || validate2(value["failedAt"]));
214
- const validate1306 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1307(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1309(value["data"]));
215
- const validate1307 = (value) => typeof value === "string" && value === "domain.warming.updated";
216
- const validate1309 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "domainId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "domain") && Object.hasOwn(value, "planId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "status") && Object.hasOwn(value, "holdReason") && Object.hasOwn(value, "batch") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "domainId") || validate2(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate2(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "planId") || validate2(value["planId"])) && (!Object.hasOwn(value, "reason") || validate1314(value["reason"])) && (!Object.hasOwn(value, "status") || validate1315(value["status"])) && (!Object.hasOwn(value, "holdReason") || validate8(value["holdReason"])) && (!Object.hasOwn(value, "batch") || validate1319(value["batch"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
217
- const validate1314 = (value) => typeof value === "string" && (value === "plan-created" || value === "policy-updated" || value === "window-opened" || value === "window-cancelled" || value === "paused" || value === "resumed" || value === "held" || value === "completed");
218
- const validate1315 = (value) => typeof value === "string" && (value === "active" || value === "paused" || value === "completed");
219
- const validate1319 = (value) => validate1320(value) || validate6(value);
220
- const validate1320 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "sequence") && Object.hasOwn(value, "startsAt") && Object.hasOwn(value, "endsAt") && Object.hasOwn(value, "allowanceRecipients") && Object.hasOwn(value, "dailyGrowthPercent") && Object.hasOwn(value, "targetDailyRecipients") && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "sequence") || validate15(value["sequence"])) && (!Object.hasOwn(value, "startsAt") || validate2(value["startsAt"])) && (!Object.hasOwn(value, "endsAt") || validate2(value["endsAt"])) && (!Object.hasOwn(value, "allowanceRecipients") || validate15(value["allowanceRecipients"])) && (!Object.hasOwn(value, "dailyGrowthPercent") || validate15(value["dailyGrowthPercent"])) && (!Object.hasOwn(value, "targetDailyRecipients") || validate15(value["targetDailyRecipients"]));
221
- const validate1330 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1331(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1333(value["data"]));
222
- const validate1331 = (value) => typeof value === "string" && value === "email.sending.paused";
223
- const validate1333 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "channel") || validate852(value["channel"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
224
- const validate1335 = (value) => validate1336(value) || validate6(value);
225
- const validate1336 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^ns_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
226
- const validate1340 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1341(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1333(value["data"]));
227
- const validate1341 = (value) => typeof value === "string" && value === "email.sending.resumed";
228
- const validate1350 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1351(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1353(value["data"]));
229
- const validate1351 = (value) => typeof value === "string" && value === "template.registration.updated";
230
- const validate1353 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "templateId") && Object.hasOwn(value, "publicationId") && Object.hasOwn(value, "target") && Object.hasOwn(value, "name") && Object.hasOwn(value, "language") && Object.hasOwn(value, "status") && Object.hasOwn(value, "category") && Object.hasOwn(value, "providerCategory") && Object.hasOwn(value, "providerTemplateId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "submittedAt") && Object.hasOwn(value, "statusChangedAt") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "previousStatus") && (!Object.hasOwn(value, "id") || validate1354(value["id"])) && (!Object.hasOwn(value, "templateId") || validate1355(value["templateId"])) && (!Object.hasOwn(value, "publicationId") || validate1356(value["publicationId"])) && (!Object.hasOwn(value, "target") || validate1357(value["target"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "language") || validate2(value["language"])) && (!Object.hasOwn(value, "status") || validate1367(value["status"])) && (!Object.hasOwn(value, "category") || validate1368(value["category"])) && (!Object.hasOwn(value, "providerCategory") || validate1369(value["providerCategory"])) && (!Object.hasOwn(value, "providerTemplateId") || validate8(value["providerTemplateId"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "submittedAt") || validate8(value["submittedAt"])) && (!Object.hasOwn(value, "statusChangedAt") || validate2(value["statusChangedAt"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "previousStatus") || validate1367(value["previousStatus"]));
231
- const validate1354 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
232
- const validate1355 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
233
- const validate1356 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tpub_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
234
- const validate1357 = (value) => validate1358(value) || validate1361(value);
235
- const validate1358 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "wabaId") && (!Object.hasOwn(value, "provider") || validate1359(value["provider"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"]));
236
- const validate1359 = (value) => typeof value === "string" && value === "whatsapp";
237
- const validate1361 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "entityId") && Object.hasOwn(value, "headerId") && (!Object.hasOwn(value, "provider") || validate1362(value["provider"])) && (!Object.hasOwn(value, "entityId") || validate2(value["entityId"])) && (!Object.hasOwn(value, "headerId") || validate2(value["headerId"]));
238
- const validate1362 = (value) => typeof value === "string" && value === "dlt";
239
- const validate1367 = (value) => typeof value === "string" && (value === "draft" || value === "submitted" || value === "approved" || value === "rejected" || value === "paused" || value === "disabled");
240
- const validate1368 = (value) => typeof value === "string" && (value === "marketing" || value === "utility" || value === "authentication" || value === "transactional" || value === "service_implicit" || value === "service_explicit" || value === "promotional");
241
- const validate1369 = (value) => validate1368(value) || validate6(value);
242
- const validate1386 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1387(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1389(value["data"]));
243
- const validate1387 = (value) => typeof value === "string" && value === "flow.registration.updated";
244
- const validate1389 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "flowId") && Object.hasOwn(value, "versionId") && Object.hasOwn(value, "versionNumber") && Object.hasOwn(value, "wabaId") && Object.hasOwn(value, "providerFlowId") && Object.hasOwn(value, "name") && Object.hasOwn(value, "status") && Object.hasOwn(value, "validationErrors") && Object.hasOwn(value, "endpointAlerts") && Object.hasOwn(value, "publishedAt") && Object.hasOwn(value, "statusChangedAt") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "previousStatus") && (!Object.hasOwn(value, "id") || validate1390(value["id"])) && (!Object.hasOwn(value, "flowId") || validate746(value["flowId"])) && (!Object.hasOwn(value, "versionId") || validate752(value["versionId"])) && (!Object.hasOwn(value, "versionNumber") || validate1275(value["versionNumber"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"])) && (!Object.hasOwn(value, "providerFlowId") || validate8(value["providerFlowId"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "status") || validate1399(value["status"])) && (!Object.hasOwn(value, "validationErrors") || validate1400(value["validationErrors"])) && (!Object.hasOwn(value, "endpointAlerts") || validate1407(value["endpointAlerts"])) && (!Object.hasOwn(value, "publishedAt") || validate8(value["publishedAt"])) && (!Object.hasOwn(value, "statusChangedAt") || validate2(value["statusChangedAt"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "previousStatus") || validate1425(value["previousStatus"]));
245
- const validate1390 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wafreg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
246
- const validate1399 = (value) => typeof value === "string" && (value === "draft" || value === "published" || value === "throttled" || value === "blocked" || value === "deprecated");
247
- const validate1400 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1401);
248
- const validate1401 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "error") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "error") || validate2(value["error"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "path") || validate2(value["path"])) && (!Object.hasOwn(value, "line") || validate1275(value["line"])) && (!Object.hasOwn(value, "column") || validate1275(value["column"]));
249
- const validate1407 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1408);
250
- const validate1408 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "message") && Object.hasOwn(value, "value") && Object.hasOwn(value, "threshold") && Object.hasOwn(value, "activatedAt") && (!Object.hasOwn(value, "kind") || validate2(value["kind"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "value") || validate14(value["value"])) && (!Object.hasOwn(value, "threshold") || validate14(value["threshold"])) && (!Object.hasOwn(value, "activatedAt") || validate2(value["activatedAt"]));
251
- const validate1425 = (value) => validate1399(value) || validate6(value);
252
- const validate1428 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1429(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1431(value["data"]));
253
- const validate1429 = (value) => typeof value === "string" && value === "whatsapp.number.connected";
254
- const validate1431 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "businessAccountId") && Object.hasOwn(value, "phoneNumber") && Object.hasOwn(value, "phoneNumberId") && Object.hasOwn(value, "whatsappBusinessAccountId") && Object.hasOwn(value, "displayName") && Object.hasOwn(value, "verificationStatus") && Object.hasOwn(value, "reconnected") && Object.hasOwn(value, "setupLink") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "businessAccountId") || validate1436(value["businessAccountId"])) && (!Object.hasOwn(value, "phoneNumber") || validate2(value["phoneNumber"])) && (!Object.hasOwn(value, "phoneNumberId") || validate2(value["phoneNumberId"])) && (!Object.hasOwn(value, "whatsappBusinessAccountId") || validate2(value["whatsappBusinessAccountId"])) && (!Object.hasOwn(value, "displayName") || validate2(value["displayName"])) && (!Object.hasOwn(value, "verificationStatus") || validate1441(value["verificationStatus"])) && (!Object.hasOwn(value, "reconnected") || validate33(value["reconnected"])) && (!Object.hasOwn(value, "setupLink") || validate1443(value["setupLink"]));
255
- const validate1436 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^waba_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
256
- const validate1441 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "suspended");
257
- const validate1443 = (value) => validate1444(value) || validate6(value);
258
- const validate1444 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "metadata") && (!Object.hasOwn(value, "id") || validate1445(value["id"])) && (!Object.hasOwn(value, "metadata") || validate1446(value["metadata"]));
259
- const validate1445 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wasl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
260
- const validate1446 = (value) => isObject(value) && isObject(value);
261
- const validate1448 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1449(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1451(value["data"]));
262
- const validate1449 = (value) => typeof value === "string" && value === "mailbox.message.received";
263
- const validate1451 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "message") && Object.hasOwn(value, "thread") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "message") || validate1456(value["message"])) && (!Object.hasOwn(value, "thread") || validate1490(value["thread"]));
264
- const validate1456 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "from") && Object.hasOwn(value, "to") && Object.hasOwn(value, "cc") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "text") && Object.hasOwn(value, "replyText") && Object.hasOwn(value, "attachments") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "id") || validate779(value["id"])) && (!Object.hasOwn(value, "campaign") || validate592(value["campaign"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "threadId") || validate1464(value["threadId"])) && (!Object.hasOwn(value, "from") || validate1465(value["from"])) && (!Object.hasOwn(value, "to") || validate45(value["to"])) && (!Object.hasOwn(value, "cc") || validate45(value["cc"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "text") || validate8(value["text"])) && (!Object.hasOwn(value, "replyText") || validate8(value["replyText"])) && (!Object.hasOwn(value, "attachments") || validate1483(value["attachments"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
265
- const validate1464 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^thread_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
266
- const validate1465 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "address") && (!Object.hasOwn(value, "address") || validate2(value["address"])) && (!Object.hasOwn(value, "name") || validate8(value["name"]));
267
- const validate1483 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1484);
268
- const validate1484 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "filename") && Object.hasOwn(value, "contentType") && Object.hasOwn(value, "size") && (!Object.hasOwn(value, "id") || validate1485(value["id"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"])) && (!Object.hasOwn(value, "contentType") || validate2(value["contentType"])) && (!Object.hasOwn(value, "size") || validate15(value["size"]));
269
- const validate1485 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
270
- const validate1490 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "preview") && (!Object.hasOwn(value, "id") || validate1464(value["id"])) && (!Object.hasOwn(value, "endpointId") || validate1492(value["endpointId"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "preview") || validate8(value["preview"]));
271
- const validate1492 = (value) => validate1493(value) || validate6(value);
272
- const validate1493 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
273
- const validate1501 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1502(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1504(value["data"]));
274
- const validate1502 = (value) => typeof value === "string" && value === "mailbox.message.sent";
275
- const validate1504 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "actor") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "actionId") || validate1509(value["actionId"])) && (!Object.hasOwn(value, "state") || validate1510(value["state"])) && (!Object.hasOwn(value, "acceptedAt") || validate2(value["acceptedAt"])) && (!Object.hasOwn(value, "actor") || validate1512(value["actor"])) && (!Object.hasOwn(value, "message") || validate1456(value["message"]));
276
- const validate1509 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxact_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
277
- const validate1510 = (value) => typeof value === "string" && value === "completed";
278
- const validate1512 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "id") && Object.hasOwn(value, "source") && (!Object.hasOwn(value, "kind") || validate1513(value["kind"])) && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "displayName") || validate8(value["displayName"])) && (!Object.hasOwn(value, "source") || validate1518(value["source"]));
279
- const validate1513 = (value) => typeof value === "string" && (value === "user" || value === "apiKey" || value === "extension" || value === "externalAgent" || value === "samvaAgent" || value === "system");
280
- const validate1518 = (value) => typeof value === "string" && (value === "humanUi" || value === "externalApi" || value === "externalAgent" || value === "extension" || value === "samvaManagedAgent" || value === "system");
281
- const validate1553 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1554(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1556(value["data"]));
282
- const validate1554 = (value) => typeof value === "string" && value === "mailbox.action.pending_approval";
283
- const validate1556 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "action") && Object.hasOwn(value, "draft") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1561(value["action"])) && (!Object.hasOwn(value, "draft") || validate1631(value["draft"])) && (!Object.hasOwn(value, "tool") || validate1641(value["tool"]));
284
- const validate1561 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "reviewRound") && Object.hasOwn(value, "decision") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "proposedBy") && Object.hasOwn(value, "createdAt") && (!Object.hasOwn(value, "id") || validate1509(value["id"])) && (!Object.hasOwn(value, "type") || validate1563(value["type"])) && (!Object.hasOwn(value, "reviewRound") || validate1564(value["reviewRound"])) && (!Object.hasOwn(value, "state") || validate1565(value["state"])) && (!Object.hasOwn(value, "decision") || validate1566(value["decision"])) && (!Object.hasOwn(value, "threadId") || validate1617(value["threadId"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "proposedBy") || validate1512(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
285
- const validate1563 = (value) => typeof value === "string" && (value === "sendMessage" || value === "reply" || value === "updateDraft" || value === "createNote" || value === "assignThread" || value === "changeThreadState" || value === "call" || value === "extensionRequest" || value === "toolCall" || value === "handoff");
286
- const validate1564 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value <= 9007199254740991 && typeof value === "number" && value > 0;
287
- const validate1565 = (value) => typeof value === "string" && value === "approvalRequired";
288
- const validate1566 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "reviewRound") && Object.hasOwn(value, "requirement") && Object.hasOwn(value, "decider") && Object.hasOwn(value, "outcome") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "scopes") && (!Object.hasOwn(value, "id") || validate1567(value["id"])) && (!Object.hasOwn(value, "reviewRound") || validate1564(value["reviewRound"])) && (!Object.hasOwn(value, "requirement") || validate1569(value["requirement"])) && (!Object.hasOwn(value, "decider") || validate1570(value["decider"])) && (!Object.hasOwn(value, "outcome") || validate1571(value["outcome"])) && (!Object.hasOwn(value, "reason") || validate1572(value["reason"])) && (!Object.hasOwn(value, "scopes") || validate1573(value["scopes"])) && (!Object.hasOwn(value, "rule") || validate1577(value["rule"])) && (!Object.hasOwn(value, "guard") || validate1584(value["guard"])) && (!Object.hasOwn(value, "guardReason") || validate1584(value["guardReason"])) && (!Object.hasOwn(value, "resolution") || validate1590(value["resolution"]));
289
- const validate1567 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^pdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
290
- const validate1569 = (value) => typeof value === "string" && (value === "run" || value === "model" || value === "person" || value === "never");
291
- const validate1570 = (value) => typeof value === "string" && (value === "rule" || value === "model" || value === "person" || value === "agent");
292
- const validate1571 = (value) => typeof value === "string" && (value === "allow" || value === "hold" || value === "refuse");
293
- const validate1572 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1;
294
- const validate1573 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1574);
295
- const validate1574 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "id") && (!Object.hasOwn(value, "kind") || validate1575(value["kind"])) && (!Object.hasOwn(value, "id") || validate1572(value["id"]));
296
- const validate1575 = (value) => typeof value === "string" && (value === "organization" || value === "integration" || value === "mailbox" || value === "agent" || value === "apiKey");
297
- const validate1577 = (value) => validate1578(value) || validate6(value);
298
- const validate1578 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "scope") && Object.hasOwn(value, "index") && (!Object.hasOwn(value, "scope") || validate1574(value["scope"])) && (!Object.hasOwn(value, "index") || validate1582(value["index"]));
299
- const validate1582 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= 0 && typeof value === "number" && value <= 9007199254740991;
300
- const validate1584 = (value) => validate1572(value) || validate6(value);
301
- const validate1590 = (value) => validate1591(value) || validate6(value);
302
- const validate1591 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "by") && Object.hasOwn(value, "at") && Object.hasOwn(value, "as") && (!Object.hasOwn(value, "by") || validate1592(value["by"])) && (!Object.hasOwn(value, "at") || validate2(value["at"])) && (!Object.hasOwn(value, "as") || validate1594(value["as"])) && (!Object.hasOwn(value, "diff") || validate1595(value["diff"]));
303
- const validate1592 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
304
- const validate1594 = (value) => typeof value === "string" && (value === "approved" || value === "edited" || value === "denied" || value === "alwaysAllowed");
305
- const validate1595 = (value) => validate1596(value) || validate6(value);
306
- const validate1596 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "text") || validate1597(value["text"])) && (!Object.hasOwn(value, "html") || validate1597(value["html"]));
307
- const validate1597 = (value) => validate1598(value) || validate6(value);
308
- const validate1598 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "before") && Object.hasOwn(value, "after") && (!Object.hasOwn(value, "before") || validate8(value["before"])) && (!Object.hasOwn(value, "after") || validate8(value["after"]));
309
- const validate1617 = (value) => validate1464(value) || validate6(value);
310
- const validate1631 = (value) => validate1632(value) || validate6(value);
311
- const validate1632 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "to") && Object.hasOwn(value, "cc") && Object.hasOwn(value, "subject") && (!Object.hasOwn(value, "to") || validate45(value["to"])) && (!Object.hasOwn(value, "cc") || validate45(value["cc"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"]));
312
- const validate1641 = (value) => validate1642(value) || validate6(value);
313
- const validate1642 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "name") && Object.hasOwn(value, "argumentsHash") && Object.hasOwn(value, "arguments") && (!Object.hasOwn(value, "name") || validate1643(value["name"])) && (!Object.hasOwn(value, "argumentsHash") || validate1644(value["argumentsHash"])) && (!Object.hasOwn(value, "arguments") || validate12(value["arguments"]));
314
- const validate1643 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 128;
315
- const validate1644 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^[0-9a-f]{64}$", "u")).test(value);
316
- const validate1647 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1648(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1650(value["data"]));
317
- const validate1648 = (value) => typeof value === "string" && value === "mailbox.action.resolved";
318
- const validate1650 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "action") && Object.hasOwn(value, "resolution") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1655(value["action"])) && (!Object.hasOwn(value, "resolution") || validate1670(value["resolution"]));
319
- const validate1655 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "reviewRound") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "proposedBy") && Object.hasOwn(value, "createdAt") && (!Object.hasOwn(value, "id") || validate1509(value["id"])) && (!Object.hasOwn(value, "type") || validate1563(value["type"])) && (!Object.hasOwn(value, "reviewRound") || validate1564(value["reviewRound"])) && (!Object.hasOwn(value, "threadId") || validate1617(value["threadId"])) && (!Object.hasOwn(value, "proposedBy") || validate1512(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
320
- const validate1670 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "outcome") && Object.hasOwn(value, "actor") && Object.hasOwn(value, "resolvedAt") && Object.hasOwn(value, "reason") && (!Object.hasOwn(value, "outcome") || validate1671(value["outcome"])) && (!Object.hasOwn(value, "actor") || validate1512(value["actor"])) && (!Object.hasOwn(value, "resolvedAt") || validate2(value["resolvedAt"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"]));
321
- const validate1671 = (value) => typeof value === "string" && (value === "approved" || value === "denied" || value === "cancelled");
322
- const validate1683 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1684(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1686(value["data"]));
323
- const validate1684 = (value) => typeof value === "string" && value === "mailbox.message.quarantined";
324
- const validate1686 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "disposition") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "source") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "disposition") || validate1691(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate1692(value["reason"])) && (!Object.hasOwn(value, "source") || validate1693(value["source"])) && (!Object.hasOwn(value, "message") || validate1694(value["message"]));
325
- const validate1691 = (value) => typeof value === "string" && (value === "quarantined" || value === "isolated");
326
- const validate1692 = (value) => typeof value === "string" && (value === "spam" || value === "dmarc" || value === "virus" || value === "virus_unscanned" || value === "phishing" || value === "fraud" || value === "prompt_injection");
327
- const validate1693 = (value) => typeof value === "string" && (value === "receipt" || value === "classifier");
328
- const validate1694 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "from") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "receivedAt") && (!Object.hasOwn(value, "id") || validate779(value["id"])) && (!Object.hasOwn(value, "from") || validate1465(value["from"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "receivedAt") || validate2(value["receivedAt"]));
329
- const validate1705 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1706(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1708(value["data"]));
330
- const validate1706 = (value) => typeof value === "string" && value === "mailbox.message.released";
331
- const validate1708 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "releasedBy") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "message") && Object.hasOwn(value, "thread") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "releasedBy") || validate1512(value["releasedBy"])) && (!Object.hasOwn(value, "reason") || validate1692(value["reason"])) && (!Object.hasOwn(value, "message") || validate1456(value["message"])) && (!Object.hasOwn(value, "thread") || validate1490(value["thread"]));
332
- const validate1766 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1767(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1769(value["data"]));
333
- const validate1767 = (value) => typeof value === "string" && value === "mailbox.message.discarded";
334
- const validate1769 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "discardedBy") && Object.hasOwn(value, "disposition") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "discardedBy") || validate1512(value["discardedBy"])) && (!Object.hasOwn(value, "disposition") || validate1691(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate1692(value["reason"])) && (!Object.hasOwn(value, "message") || validate1694(value["message"]));
335
- const validate1794 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1795(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1797(value["data"]));
336
- const validate1795 = (value) => typeof value === "string" && value === "mailbox.message.delivered";
337
- const validate1797 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "status") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1464(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1509(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1808(value["status"]));
338
- const validate1808 = (value) => typeof value === "string" && value === "delivered";
339
- const validate1809 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1810(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1812(value["data"]));
340
- const validate1810 = (value) => typeof value === "string" && value === "mailbox.message.read";
341
- const validate1812 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "status") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1464(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1509(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1823(value["status"]));
342
- const validate1823 = (value) => typeof value === "string" && value === "read";
343
- const validate1824 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1825(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1827(value["data"]));
344
- const validate1825 = (value) => typeof value === "string" && value === "mailbox.message.failed";
345
- const validate1827 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "status") && Object.hasOwn(value, "error") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1335(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1464(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1509(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1838(value["status"])) && (!Object.hasOwn(value, "error") || validate1839(value["error"]));
346
- const validate1838 = (value) => typeof value === "string" && value === "failed";
347
- const validate1839 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "code") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "code") || validate8(value["code"])) && (!Object.hasOwn(value, "message") || validate8(value["message"]));
348
- const validate1846 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1847(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1849(value["data"]));
349
- const validate1847 = (value) => typeof value === "string" && value === "journey.webhook";
350
- const validate1849 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "journeyId") && Object.hasOwn(value, "journeyVersion") && Object.hasOwn(value, "runId") && Object.hasOwn(value, "nodeId") && Object.hasOwn(value, "contact") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "journeyId") || validate1851(value["journeyId"])) && (!Object.hasOwn(value, "journeyVersion") || validate1275(value["journeyVersion"])) && (!Object.hasOwn(value, "runId") || validate1853(value["runId"])) && (!Object.hasOwn(value, "nodeId") || validate2(value["nodeId"])) && (!Object.hasOwn(value, "contact") || validate1855(value["contact"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
351
- const validate1851 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
352
- const validate1853 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
353
- const validate1855 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "externalId") && Object.hasOwn(value, "email") && (!Object.hasOwn(value, "id") || validate950(value["id"])) && (!Object.hasOwn(value, "externalId") || validate8(value["externalId"])) && (!Object.hasOwn(value, "email") || validate8(value["email"]));
128
+ const validate810 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "email") || validate2(value["email"])) && (!Object.hasOwn(value, "type") || validate2(value["type"]));
129
+ const validate813 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate814);
130
+ const validate814 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "type") || validate2(value["type"]));
131
+ const validate817 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "company") || validate2(value["company"])) && (!Object.hasOwn(value, "department") || validate2(value["department"])) && (!Object.hasOwn(value, "title") || validate2(value["title"]));
132
+ const validate821 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate822);
133
+ const validate822 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "street") || validate2(value["street"])) && (!Object.hasOwn(value, "city") || validate2(value["city"])) && (!Object.hasOwn(value, "state") || validate2(value["state"])) && (!Object.hasOwn(value, "zip") || validate2(value["zip"])) && (!Object.hasOwn(value, "country") || validate2(value["country"])) && (!Object.hasOwn(value, "countryCode") || validate2(value["countryCode"])) && (!Object.hasOwn(value, "type") || validate2(value["type"]));
134
+ const validate831 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "id") && Object.hasOwn(value, "title") && (!Object.hasOwn(value, "type") || validate832(value["type"])) && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "title") || validate2(value["title"])) && (!Object.hasOwn(value, "description") || validate2(value["description"]));
135
+ const validate832 = (value) => typeof value === "string" && (value === "button" || value === "list" || value === "template_button");
136
+ const validate836 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "flowToken") && Object.hasOwn(value, "response") && (!Object.hasOwn(value, "flowToken") || validate8(value["flowToken"])) && (!Object.hasOwn(value, "response") || validate12(value["response"])) && (!Object.hasOwn(value, "body") || validate2(value["body"]));
137
+ const validate842 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "providerMessageId") && (!Object.hasOwn(value, "messageId") || validate782(value["messageId"])) && (!Object.hasOwn(value, "providerMessageId") || validate2(value["providerMessageId"]));
138
+ const validate850 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate851(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate853(value["data"]));
139
+ const validate851 = (value) => typeof value === "string" && value === "message.opened";
140
+ const validate853 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "deliveryId") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "firstOpen") && Object.hasOwn(value, "machine") && Object.hasOwn(value, "machineReason") && (!Object.hasOwn(value, "messageId") || validate783(value["messageId"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "channel") || validate856(value["channel"])) && (!Object.hasOwn(value, "deliveryId") || validate857(value["deliveryId"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "userAgent") || validate8(value["userAgent"])) && (!Object.hasOwn(value, "ipAddress") || validate8(value["ipAddress"])) && (!Object.hasOwn(value, "firstOpen") || validate33(value["firstOpen"])) && (!Object.hasOwn(value, "machine") || validate33(value["machine"])) && (!Object.hasOwn(value, "machineReason") || validate868(value["machineReason"])) && (!Object.hasOwn(value, "country") || validate8(value["country"])) && (!Object.hasOwn(value, "city") || validate8(value["city"])) && (!Object.hasOwn(value, "asn") || validate14(value["asn"])) && (!Object.hasOwn(value, "code") || validate8(value["code"])) && (!Object.hasOwn(value, "linkIndex") || validate14(value["linkIndex"])) && (!Object.hasOwn(value, "destinationUrl") || validate8(value["destinationUrl"])) && (!Object.hasOwn(value, "metadata") || validate11(value["metadata"])) && (!Object.hasOwn(value, "campaignId") || validate892(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate895(value["campaignRunId"]));
141
+ const validate855 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^org_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
142
+ const validate856 = (value) => typeof value === "string" && value === "email";
143
+ const validate857 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mdel_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
144
+ const validate868 = (value) => validate869(value) || validate6(value);
145
+ const validate869 = (value) => typeof value === "string" && (value === "google-image-proxy" || value === "apple-mail-privacy" || value === "scanner-user-agent" || value === "scanner-asn" || value === "too-fast");
146
+ const validate892 = (value) => validate598(value) || validate6(value);
147
+ const validate895 = (value) => validate599(value) || validate6(value);
148
+ const validate898 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate899(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate901(value["data"]));
149
+ const validate899 = (value) => typeof value === "string" && value === "message.clicked";
150
+ const validate901 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "deliveryId") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "url") && Object.hasOwn(value, "linkTags") && Object.hasOwn(value, "firstClick") && Object.hasOwn(value, "machine") && Object.hasOwn(value, "machineReason") && (!Object.hasOwn(value, "messageId") || validate783(value["messageId"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "channel") || validate856(value["channel"])) && (!Object.hasOwn(value, "deliveryId") || validate857(value["deliveryId"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "userAgent") || validate8(value["userAgent"])) && (!Object.hasOwn(value, "ipAddress") || validate8(value["ipAddress"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "linkTags") || validate915(value["linkTags"])) && (!Object.hasOwn(value, "firstClick") || validate33(value["firstClick"])) && (!Object.hasOwn(value, "machine") || validate33(value["machine"])) && (!Object.hasOwn(value, "machineReason") || validate868(value["machineReason"])) && (!Object.hasOwn(value, "country") || validate8(value["country"])) && (!Object.hasOwn(value, "city") || validate8(value["city"])) && (!Object.hasOwn(value, "asn") || validate14(value["asn"])) && (!Object.hasOwn(value, "code") || validate8(value["code"])) && (!Object.hasOwn(value, "linkIndex") || validate14(value["linkIndex"])) && (!Object.hasOwn(value, "destinationUrl") || validate8(value["destinationUrl"])) && (!Object.hasOwn(value, "metadata") || validate11(value["metadata"])) && (!Object.hasOwn(value, "campaignId") || validate892(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate895(value["campaignRunId"]));
151
+ const validate915 = (value) => isObject(value) && isObject(value) && Object.entries(value).every(([key, item]) => validate45(item));
152
+ const validate950 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate951(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate953(value["data"]));
153
+ const validate951 = (value) => typeof value === "string" && value === "contact.created";
154
+ const validate953 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "status") && Object.hasOwn(value, "name") && Object.hasOwn(value, "identities") && Object.hasOwn(value, "tags") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "contactId") || validate954(value["contactId"])) && (!Object.hasOwn(value, "status") || validate955(value["status"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "displayName") || validate957(value["displayName"])) && (!Object.hasOwn(value, "identities") || validate961(value["identities"])) && (!Object.hasOwn(value, "tags") || validate45(value["tags"])) && (!Object.hasOwn(value, "externalId") || validate957(value["externalId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
155
+ const validate954 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^contact_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
156
+ const validate955 = (value) => typeof value === "string" && (value === "active" || value === "paused" || value === "blocked" || value === "archived");
157
+ const validate957 = (value) => validate2(value) || validate6(value) || validate6(value);
158
+ const validate961 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate962);
159
+ const validate962 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && Object.hasOwn(value, "verified") && (!Object.hasOwn(value, "type") || validate963(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"])) && (!Object.hasOwn(value, "verified") || validate33(value["verified"]));
160
+ const validate963 = (value) => typeof value === "string" && (value === "email" || value === "phone");
161
+ const validate974 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate975(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate953(value["data"]));
162
+ const validate975 = (value) => typeof value === "string" && value === "contact.updated";
163
+ const validate998 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate999(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate953(value["data"]));
164
+ const validate999 = (value) => typeof value === "string" && value === "contact.deleted";
165
+ const validate1022 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1023(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1025(value["data"]));
166
+ const validate1023 = (value) => typeof value === "string" && value === "contact.subscribed";
167
+ const validate1025 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "topicId") && Object.hasOwn(value, "topicName") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "source") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate954(value["contactId"])) && (!Object.hasOwn(value, "email") || validate8(value["email"])) && (!Object.hasOwn(value, "topicId") || validate1031(value["topicId"])) && (!Object.hasOwn(value, "topicName") || validate2(value["topicName"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "consentIp") || validate8(value["consentIp"])) && (!Object.hasOwn(value, "consentSource") || validate8(value["consentSource"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "formKey") || validate8(value["formKey"])) && (!Object.hasOwn(value, "page") || validate8(value["page"])) && (!Object.hasOwn(value, "referrer") || validate8(value["referrer"])) && (!Object.hasOwn(value, "messageId") || validate782(value["messageId"])) && (!Object.hasOwn(value, "campaignId") || validate892(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate895(value["campaignRunId"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
168
+ const validate1031 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tpc_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
169
+ const validate1060 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1061(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1025(value["data"]));
170
+ const validate1061 = (value) => typeof value === "string" && value === "contact.unsubscribed";
171
+ const validate1098 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1099(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1025(value["data"]));
172
+ const validate1099 = (value) => typeof value === "string" && value === "contact.resubscribed";
173
+ const validate1136 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1137(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1139(value["data"]));
174
+ const validate1137 = (value) => typeof value === "string" && value === "contact.consent_changed";
175
+ const validate1139 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "identity") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "status") && Object.hasOwn(value, "previousStatus") && Object.hasOwn(value, "source") && Object.hasOwn(value, "capturedAt") && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate954(value["contactId"])) && (!Object.hasOwn(value, "identity") || validate1142(value["identity"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate1147(value["status"])) && (!Object.hasOwn(value, "previousStatus") || validate1148(value["previousStatus"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "capturedAt") || validate2(value["capturedAt"]));
176
+ const validate1142 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && (!Object.hasOwn(value, "id") || validate1143(value["id"])) && (!Object.hasOwn(value, "type") || validate963(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"]));
177
+ const validate1143 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^cident_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
178
+ const validate1147 = (value) => typeof value === "string" && (value === "opted_in" || value === "opted_out");
179
+ const validate1148 = (value) => validate1147(value) || validate6(value);
180
+ const validate1153 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1154(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1156(value["data"]));
181
+ const validate1154 = (value) => typeof value === "string" && value === "conversation.created";
182
+ const validate1156 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "conversationId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channels") && Object.hasOwn(value, "primaryChannel") && Object.hasOwn(value, "status") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "conversationId") || validate1157(value["conversationId"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "title") || validate957(value["title"])) && (!Object.hasOwn(value, "channels") || validate1163(value["channels"])) && (!Object.hasOwn(value, "primaryChannel") || validate7(value["primaryChannel"])) && (!Object.hasOwn(value, "status") || validate1166(value["status"])) && (!Object.hasOwn(value, "primaryContactId") || validate1167(value["primaryContactId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
183
+ const validate1157 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
184
+ const validate1163 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate7);
185
+ const validate1166 = (value) => typeof value === "string" && (value === "active" || value === "waiting" || value === "resolved" || value === "escalated" || value === "archived");
186
+ const validate1167 = (value) => validate954(value) || validate6(value) || validate6(value);
187
+ const validate1173 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1174(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1156(value["data"]));
188
+ const validate1174 = (value) => typeof value === "string" && value === "conversation.updated";
189
+ const validate1193 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1194(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1156(value["data"]));
190
+ const validate1194 = (value) => typeof value === "string" && value === "conversation.archived";
191
+ const validate1213 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1214(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1216(value["data"]));
192
+ const validate1214 = (value) => typeof value === "string" && value === "webhook.created";
193
+ const validate1216 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "webhookId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "name") && Object.hasOwn(value, "url") && Object.hasOwn(value, "eventTypes") && Object.hasOwn(value, "channels") && Object.hasOwn(value, "status") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "webhookId") || validate1217(value["webhookId"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "eventTypes") || validate45(value["eventTypes"])) && (!Object.hasOwn(value, "channels") || validate44(value["channels"])) && (!Object.hasOwn(value, "status") || validate1227(value["status"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
194
+ const validate1217 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
195
+ const validate1227 = (value) => typeof value === "string" && (value === "active" || value === "disabled");
196
+ const validate1230 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1231(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1216(value["data"]));
197
+ const validate1231 = (value) => typeof value === "string" && value === "webhook.updated";
198
+ const validate1247 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1248(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1216(value["data"]));
199
+ const validate1248 = (value) => typeof value === "string" && value === "webhook.deleted";
200
+ const validate1264 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1265(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
201
+ const validate1265 = (value) => typeof value === "string" && value === "webhook.test";
202
+ const validate1268 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1269(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1271(value["data"]));
203
+ const validate1269 = (value) => typeof value === "string" && value === "domain.updated";
204
+ const validate1271 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "domainId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "domain") && Object.hasOwn(value, "previousPhase") && Object.hasOwn(value, "phase") && Object.hasOwn(value, "dns") && Object.hasOwn(value, "provider") && Object.hasOwn(value, "operationId") && Object.hasOwn(value, "checkedAt") && Object.hasOwn(value, "nextCheckAt") && Object.hasOwn(value, "failure") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "domainId") || validate1272(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "previousPhase") || validate1275(value["previousPhase"])) && (!Object.hasOwn(value, "phase") || validate1275(value["phase"])) && (!Object.hasOwn(value, "dns") || validate1277(value["dns"])) && (!Object.hasOwn(value, "provider") || validate1284(value["provider"])) && (!Object.hasOwn(value, "operationId") || validate1294(value["operationId"])) && (!Object.hasOwn(value, "checkedAt") || validate8(value["checkedAt"])) && (!Object.hasOwn(value, "nextCheckAt") || validate8(value["nextCheckAt"])) && (!Object.hasOwn(value, "failure") || validate1303(value["failure"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
205
+ const validate1272 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
206
+ const validate1275 = (value) => typeof value === "string" && (value === "dns-setup" || value === "provisioning" || value === "verifying" || value === "ready" || value === "degraded" || value === "failed");
207
+ const validate1277 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "observed") && Object.hasOwn(value, "total") && Object.hasOwn(value, "satisfied") && Object.hasOwn(value, "missing") && Object.hasOwn(value, "mismatch") && Object.hasOwn(value, "unknown") && (!Object.hasOwn(value, "observed") || validate33(value["observed"])) && (!Object.hasOwn(value, "total") || validate1279(value["total"])) && (!Object.hasOwn(value, "satisfied") || validate1279(value["satisfied"])) && (!Object.hasOwn(value, "missing") || validate1279(value["missing"])) && (!Object.hasOwn(value, "mismatch") || validate1279(value["mismatch"])) && (!Object.hasOwn(value, "unknown") || validate1279(value["unknown"]));
208
+ const validate1279 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= -9007199254740991 && typeof value === "number" && value <= 9007199254740991;
209
+ const validate1284 = (value) => validate1285(value) || validate6(value);
210
+ const validate1285 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "identity") && (!Object.hasOwn(value, "identity") || validate1286(value["identity"])) && (!Object.hasOwn(value, "dkim") || validate1287(value["dkim"])) && (!Object.hasOwn(value, "mailFrom") || validate1287(value["mailFrom"]));
211
+ const validate1286 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "unknown");
212
+ const validate1287 = (value) => validate1286(value) || validate6(value);
213
+ const validate1294 = (value) => validate1295(value) || validate6(value);
214
+ const validate1295 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^op_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
215
+ const validate1303 = (value) => validate1304(value) || validate6(value);
216
+ const validate1304 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "code") && Object.hasOwn(value, "message") && Object.hasOwn(value, "failedAt") && (!Object.hasOwn(value, "code") || validate2(value["code"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "failedAt") || validate2(value["failedAt"]));
217
+ const validate1310 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1311(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1313(value["data"]));
218
+ const validate1311 = (value) => typeof value === "string" && value === "domain.warming.updated";
219
+ const validate1313 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "domainId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "domain") && Object.hasOwn(value, "planId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "status") && Object.hasOwn(value, "holdReason") && Object.hasOwn(value, "batch") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "domainId") || validate2(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate2(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "planId") || validate2(value["planId"])) && (!Object.hasOwn(value, "reason") || validate1318(value["reason"])) && (!Object.hasOwn(value, "status") || validate1319(value["status"])) && (!Object.hasOwn(value, "holdReason") || validate8(value["holdReason"])) && (!Object.hasOwn(value, "batch") || validate1323(value["batch"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
220
+ const validate1318 = (value) => typeof value === "string" && (value === "plan-created" || value === "policy-updated" || value === "window-opened" || value === "window-cancelled" || value === "paused" || value === "resumed" || value === "held" || value === "completed");
221
+ const validate1319 = (value) => typeof value === "string" && (value === "active" || value === "paused" || value === "completed");
222
+ const validate1323 = (value) => validate1324(value) || validate6(value);
223
+ const validate1324 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "sequence") && Object.hasOwn(value, "startsAt") && Object.hasOwn(value, "endsAt") && Object.hasOwn(value, "allowanceRecipients") && Object.hasOwn(value, "dailyGrowthPercent") && Object.hasOwn(value, "targetDailyRecipients") && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "sequence") || validate15(value["sequence"])) && (!Object.hasOwn(value, "startsAt") || validate2(value["startsAt"])) && (!Object.hasOwn(value, "endsAt") || validate2(value["endsAt"])) && (!Object.hasOwn(value, "allowanceRecipients") || validate15(value["allowanceRecipients"])) && (!Object.hasOwn(value, "dailyGrowthPercent") || validate15(value["dailyGrowthPercent"])) && (!Object.hasOwn(value, "targetDailyRecipients") || validate15(value["targetDailyRecipients"]));
224
+ const validate1334 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1335(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1337(value["data"]));
225
+ const validate1335 = (value) => typeof value === "string" && value === "email.sending.paused";
226
+ const validate1337 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "channel") || validate856(value["channel"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
227
+ const validate1339 = (value) => validate1340(value) || validate6(value);
228
+ const validate1340 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^ns_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
229
+ const validate1344 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1345(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1337(value["data"]));
230
+ const validate1345 = (value) => typeof value === "string" && value === "email.sending.resumed";
231
+ const validate1354 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1355(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1357(value["data"]));
232
+ const validate1355 = (value) => typeof value === "string" && value === "template.registration.updated";
233
+ const validate1357 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "templateId") && Object.hasOwn(value, "publicationId") && Object.hasOwn(value, "target") && Object.hasOwn(value, "name") && Object.hasOwn(value, "language") && Object.hasOwn(value, "status") && Object.hasOwn(value, "category") && Object.hasOwn(value, "providerCategory") && Object.hasOwn(value, "providerTemplateId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "submittedAt") && Object.hasOwn(value, "statusChangedAt") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "previousStatus") && (!Object.hasOwn(value, "id") || validate1358(value["id"])) && (!Object.hasOwn(value, "templateId") || validate1359(value["templateId"])) && (!Object.hasOwn(value, "publicationId") || validate1360(value["publicationId"])) && (!Object.hasOwn(value, "target") || validate1361(value["target"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "language") || validate2(value["language"])) && (!Object.hasOwn(value, "status") || validate1371(value["status"])) && (!Object.hasOwn(value, "category") || validate1372(value["category"])) && (!Object.hasOwn(value, "providerCategory") || validate1373(value["providerCategory"])) && (!Object.hasOwn(value, "providerTemplateId") || validate8(value["providerTemplateId"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "submittedAt") || validate8(value["submittedAt"])) && (!Object.hasOwn(value, "statusChangedAt") || validate2(value["statusChangedAt"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "previousStatus") || validate1371(value["previousStatus"]));
234
+ const validate1358 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
235
+ const validate1359 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
236
+ const validate1360 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tpub_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
237
+ const validate1361 = (value) => validate1362(value) || validate1365(value);
238
+ const validate1362 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "wabaId") && (!Object.hasOwn(value, "provider") || validate1363(value["provider"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"]));
239
+ const validate1363 = (value) => typeof value === "string" && value === "whatsapp";
240
+ const validate1365 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "entityId") && Object.hasOwn(value, "headerId") && (!Object.hasOwn(value, "provider") || validate1366(value["provider"])) && (!Object.hasOwn(value, "entityId") || validate2(value["entityId"])) && (!Object.hasOwn(value, "headerId") || validate2(value["headerId"]));
241
+ const validate1366 = (value) => typeof value === "string" && value === "dlt";
242
+ const validate1371 = (value) => typeof value === "string" && (value === "draft" || value === "submitted" || value === "approved" || value === "rejected" || value === "paused" || value === "disabled");
243
+ const validate1372 = (value) => typeof value === "string" && (value === "marketing" || value === "utility" || value === "authentication" || value === "transactional" || value === "service_implicit" || value === "service_explicit" || value === "promotional");
244
+ const validate1373 = (value) => validate1372(value) || validate6(value);
245
+ const validate1390 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1391(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1393(value["data"]));
246
+ const validate1391 = (value) => typeof value === "string" && value === "flow.registration.updated";
247
+ const validate1393 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "flowId") && Object.hasOwn(value, "versionId") && Object.hasOwn(value, "versionNumber") && Object.hasOwn(value, "wabaId") && Object.hasOwn(value, "providerFlowId") && Object.hasOwn(value, "name") && Object.hasOwn(value, "status") && Object.hasOwn(value, "validationErrors") && Object.hasOwn(value, "endpointAlerts") && Object.hasOwn(value, "publishedAt") && Object.hasOwn(value, "statusChangedAt") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "previousStatus") && (!Object.hasOwn(value, "id") || validate1394(value["id"])) && (!Object.hasOwn(value, "flowId") || validate750(value["flowId"])) && (!Object.hasOwn(value, "versionId") || validate756(value["versionId"])) && (!Object.hasOwn(value, "versionNumber") || validate1279(value["versionNumber"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"])) && (!Object.hasOwn(value, "providerFlowId") || validate8(value["providerFlowId"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "status") || validate1403(value["status"])) && (!Object.hasOwn(value, "validationErrors") || validate1404(value["validationErrors"])) && (!Object.hasOwn(value, "endpointAlerts") || validate1411(value["endpointAlerts"])) && (!Object.hasOwn(value, "publishedAt") || validate8(value["publishedAt"])) && (!Object.hasOwn(value, "statusChangedAt") || validate2(value["statusChangedAt"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"])) && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "previousStatus") || validate1429(value["previousStatus"]));
248
+ const validate1394 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wafreg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
249
+ const validate1403 = (value) => typeof value === "string" && (value === "draft" || value === "published" || value === "throttled" || value === "blocked" || value === "deprecated");
250
+ const validate1404 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1405);
251
+ const validate1405 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "error") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "error") || validate2(value["error"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "path") || validate2(value["path"])) && (!Object.hasOwn(value, "line") || validate1279(value["line"])) && (!Object.hasOwn(value, "column") || validate1279(value["column"]));
252
+ const validate1411 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1412);
253
+ const validate1412 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "message") && Object.hasOwn(value, "value") && Object.hasOwn(value, "threshold") && Object.hasOwn(value, "activatedAt") && (!Object.hasOwn(value, "kind") || validate2(value["kind"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "value") || validate14(value["value"])) && (!Object.hasOwn(value, "threshold") || validate14(value["threshold"])) && (!Object.hasOwn(value, "activatedAt") || validate2(value["activatedAt"]));
254
+ const validate1429 = (value) => validate1403(value) || validate6(value);
255
+ const validate1432 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1433(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1435(value["data"]));
256
+ const validate1433 = (value) => typeof value === "string" && value === "whatsapp.number.connected";
257
+ const validate1435 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "businessAccountId") && Object.hasOwn(value, "phoneNumber") && Object.hasOwn(value, "phoneNumberId") && Object.hasOwn(value, "whatsappBusinessAccountId") && Object.hasOwn(value, "displayName") && Object.hasOwn(value, "verificationStatus") && Object.hasOwn(value, "reconnected") && Object.hasOwn(value, "setupLink") && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "businessAccountId") || validate1440(value["businessAccountId"])) && (!Object.hasOwn(value, "phoneNumber") || validate2(value["phoneNumber"])) && (!Object.hasOwn(value, "phoneNumberId") || validate2(value["phoneNumberId"])) && (!Object.hasOwn(value, "whatsappBusinessAccountId") || validate2(value["whatsappBusinessAccountId"])) && (!Object.hasOwn(value, "displayName") || validate2(value["displayName"])) && (!Object.hasOwn(value, "verificationStatus") || validate1445(value["verificationStatus"])) && (!Object.hasOwn(value, "reconnected") || validate33(value["reconnected"])) && (!Object.hasOwn(value, "setupLink") || validate1447(value["setupLink"]));
258
+ const validate1440 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^waba_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
259
+ const validate1445 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "suspended");
260
+ const validate1447 = (value) => validate1448(value) || validate6(value);
261
+ const validate1448 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "metadata") && (!Object.hasOwn(value, "id") || validate1449(value["id"])) && (!Object.hasOwn(value, "metadata") || validate1450(value["metadata"]));
262
+ const validate1449 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wasl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
263
+ const validate1450 = (value) => isObject(value) && isObject(value);
264
+ const validate1452 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1453(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1455(value["data"]));
265
+ const validate1453 = (value) => typeof value === "string" && value === "mailbox.message.received";
266
+ const validate1455 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "message") && Object.hasOwn(value, "thread") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "message") || validate1460(value["message"])) && (!Object.hasOwn(value, "thread") || validate1494(value["thread"]));
267
+ const validate1460 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "from") && Object.hasOwn(value, "to") && Object.hasOwn(value, "cc") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "text") && Object.hasOwn(value, "replyText") && Object.hasOwn(value, "attachments") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "id") || validate783(value["id"])) && (!Object.hasOwn(value, "campaign") || validate596(value["campaign"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "threadId") || validate1468(value["threadId"])) && (!Object.hasOwn(value, "from") || validate1469(value["from"])) && (!Object.hasOwn(value, "to") || validate45(value["to"])) && (!Object.hasOwn(value, "cc") || validate45(value["cc"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "text") || validate8(value["text"])) && (!Object.hasOwn(value, "replyText") || validate8(value["replyText"])) && (!Object.hasOwn(value, "attachments") || validate1487(value["attachments"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
268
+ const validate1468 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^thread_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
269
+ const validate1469 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "address") && (!Object.hasOwn(value, "address") || validate2(value["address"])) && (!Object.hasOwn(value, "name") || validate8(value["name"]));
270
+ const validate1487 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1488);
271
+ const validate1488 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "filename") && Object.hasOwn(value, "contentType") && Object.hasOwn(value, "size") && (!Object.hasOwn(value, "id") || validate1489(value["id"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"])) && (!Object.hasOwn(value, "contentType") || validate2(value["contentType"])) && (!Object.hasOwn(value, "size") || validate15(value["size"]));
272
+ const validate1489 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
273
+ const validate1494 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "preview") && (!Object.hasOwn(value, "id") || validate1468(value["id"])) && (!Object.hasOwn(value, "endpointId") || validate1496(value["endpointId"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "preview") || validate8(value["preview"]));
274
+ const validate1496 = (value) => validate1497(value) || validate6(value);
275
+ const validate1497 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
276
+ const validate1505 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1506(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1508(value["data"]));
277
+ const validate1506 = (value) => typeof value === "string" && value === "mailbox.message.sent";
278
+ const validate1508 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "actor") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "actionId") || validate1513(value["actionId"])) && (!Object.hasOwn(value, "state") || validate1514(value["state"])) && (!Object.hasOwn(value, "acceptedAt") || validate2(value["acceptedAt"])) && (!Object.hasOwn(value, "actor") || validate1516(value["actor"])) && (!Object.hasOwn(value, "message") || validate1460(value["message"]));
279
+ const validate1513 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxact_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
280
+ const validate1514 = (value) => typeof value === "string" && value === "completed";
281
+ const validate1516 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "id") && Object.hasOwn(value, "source") && (!Object.hasOwn(value, "kind") || validate1517(value["kind"])) && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "displayName") || validate8(value["displayName"])) && (!Object.hasOwn(value, "source") || validate1522(value["source"]));
282
+ const validate1517 = (value) => typeof value === "string" && (value === "user" || value === "apiKey" || value === "extension" || value === "externalAgent" || value === "samvaAgent" || value === "system");
283
+ const validate1522 = (value) => typeof value === "string" && (value === "humanUi" || value === "externalApi" || value === "externalAgent" || value === "extension" || value === "samvaManagedAgent" || value === "system");
284
+ const validate1557 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1558(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1560(value["data"]));
285
+ const validate1558 = (value) => typeof value === "string" && value === "mailbox.action.pending_approval";
286
+ const validate1560 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "action") && Object.hasOwn(value, "draft") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1565(value["action"])) && (!Object.hasOwn(value, "draft") || validate1635(value["draft"])) && (!Object.hasOwn(value, "tool") || validate1645(value["tool"]));
287
+ const validate1565 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "reviewRound") && Object.hasOwn(value, "decision") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "proposedBy") && Object.hasOwn(value, "createdAt") && (!Object.hasOwn(value, "id") || validate1513(value["id"])) && (!Object.hasOwn(value, "type") || validate1567(value["type"])) && (!Object.hasOwn(value, "reviewRound") || validate1568(value["reviewRound"])) && (!Object.hasOwn(value, "state") || validate1569(value["state"])) && (!Object.hasOwn(value, "decision") || validate1570(value["decision"])) && (!Object.hasOwn(value, "threadId") || validate1621(value["threadId"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "proposedBy") || validate1516(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
288
+ const validate1567 = (value) => typeof value === "string" && (value === "sendMessage" || value === "reply" || value === "updateDraft" || value === "createNote" || value === "assignThread" || value === "changeThreadState" || value === "call" || value === "extensionRequest" || value === "toolCall" || value === "handoff");
289
+ const validate1568 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value <= 9007199254740991 && typeof value === "number" && value > 0;
290
+ const validate1569 = (value) => typeof value === "string" && value === "approvalRequired";
291
+ const validate1570 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "reviewRound") && Object.hasOwn(value, "requirement") && Object.hasOwn(value, "decider") && Object.hasOwn(value, "outcome") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "scopes") && (!Object.hasOwn(value, "id") || validate1571(value["id"])) && (!Object.hasOwn(value, "reviewRound") || validate1568(value["reviewRound"])) && (!Object.hasOwn(value, "requirement") || validate1573(value["requirement"])) && (!Object.hasOwn(value, "decider") || validate1574(value["decider"])) && (!Object.hasOwn(value, "outcome") || validate1575(value["outcome"])) && (!Object.hasOwn(value, "reason") || validate1576(value["reason"])) && (!Object.hasOwn(value, "scopes") || validate1577(value["scopes"])) && (!Object.hasOwn(value, "rule") || validate1581(value["rule"])) && (!Object.hasOwn(value, "guard") || validate1588(value["guard"])) && (!Object.hasOwn(value, "guardReason") || validate1588(value["guardReason"])) && (!Object.hasOwn(value, "resolution") || validate1594(value["resolution"]));
292
+ const validate1571 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^pdec_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
293
+ const validate1573 = (value) => typeof value === "string" && (value === "run" || value === "model" || value === "person" || value === "never");
294
+ const validate1574 = (value) => typeof value === "string" && (value === "rule" || value === "model" || value === "person" || value === "agent");
295
+ const validate1575 = (value) => typeof value === "string" && (value === "allow" || value === "hold" || value === "refuse");
296
+ const validate1576 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1;
297
+ const validate1577 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1578);
298
+ const validate1578 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "id") && (!Object.hasOwn(value, "kind") || validate1579(value["kind"])) && (!Object.hasOwn(value, "id") || validate1576(value["id"]));
299
+ const validate1579 = (value) => typeof value === "string" && (value === "organization" || value === "integration" || value === "mailbox" || value === "agent" || value === "apiKey");
300
+ const validate1581 = (value) => validate1582(value) || validate6(value);
301
+ const validate1582 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "scope") && Object.hasOwn(value, "index") && (!Object.hasOwn(value, "scope") || validate1578(value["scope"])) && (!Object.hasOwn(value, "index") || validate1586(value["index"]));
302
+ const validate1586 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= 0 && typeof value === "number" && value <= 9007199254740991;
303
+ const validate1588 = (value) => validate1576(value) || validate6(value);
304
+ const validate1594 = (value) => validate1595(value) || validate6(value);
305
+ const validate1595 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "by") && Object.hasOwn(value, "at") && Object.hasOwn(value, "as") && (!Object.hasOwn(value, "by") || validate1596(value["by"])) && (!Object.hasOwn(value, "at") || validate2(value["at"])) && (!Object.hasOwn(value, "as") || validate1598(value["as"])) && (!Object.hasOwn(value, "diff") || validate1599(value["diff"]));
306
+ const validate1596 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^user_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
307
+ const validate1598 = (value) => typeof value === "string" && (value === "approved" || value === "edited" || value === "denied" || value === "alwaysAllowed");
308
+ const validate1599 = (value) => validate1600(value) || validate6(value);
309
+ const validate1600 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "text") || validate1601(value["text"])) && (!Object.hasOwn(value, "html") || validate1601(value["html"]));
310
+ const validate1601 = (value) => validate1602(value) || validate6(value);
311
+ const validate1602 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "before") && Object.hasOwn(value, "after") && (!Object.hasOwn(value, "before") || validate8(value["before"])) && (!Object.hasOwn(value, "after") || validate8(value["after"]));
312
+ const validate1621 = (value) => validate1468(value) || validate6(value);
313
+ const validate1635 = (value) => validate1636(value) || validate6(value);
314
+ const validate1636 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "to") && Object.hasOwn(value, "cc") && Object.hasOwn(value, "subject") && (!Object.hasOwn(value, "to") || validate45(value["to"])) && (!Object.hasOwn(value, "cc") || validate45(value["cc"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"]));
315
+ const validate1645 = (value) => validate1646(value) || validate6(value);
316
+ const validate1646 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "name") && Object.hasOwn(value, "argumentsHash") && Object.hasOwn(value, "arguments") && (!Object.hasOwn(value, "name") || validate1647(value["name"])) && (!Object.hasOwn(value, "argumentsHash") || validate1648(value["argumentsHash"])) && (!Object.hasOwn(value, "arguments") || validate12(value["arguments"]));
317
+ const validate1647 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 128;
318
+ const validate1648 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^[0-9a-f]{64}$", "u")).test(value);
319
+ const validate1651 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1652(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1654(value["data"]));
320
+ const validate1652 = (value) => typeof value === "string" && value === "mailbox.action.resolved";
321
+ const validate1654 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "action") && Object.hasOwn(value, "resolution") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1659(value["action"])) && (!Object.hasOwn(value, "resolution") || validate1674(value["resolution"]));
322
+ const validate1659 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "reviewRound") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "proposedBy") && Object.hasOwn(value, "createdAt") && (!Object.hasOwn(value, "id") || validate1513(value["id"])) && (!Object.hasOwn(value, "type") || validate1567(value["type"])) && (!Object.hasOwn(value, "reviewRound") || validate1568(value["reviewRound"])) && (!Object.hasOwn(value, "threadId") || validate1621(value["threadId"])) && (!Object.hasOwn(value, "proposedBy") || validate1516(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
323
+ const validate1674 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "outcome") && Object.hasOwn(value, "actor") && Object.hasOwn(value, "resolvedAt") && Object.hasOwn(value, "reason") && (!Object.hasOwn(value, "outcome") || validate1675(value["outcome"])) && (!Object.hasOwn(value, "actor") || validate1516(value["actor"])) && (!Object.hasOwn(value, "resolvedAt") || validate2(value["resolvedAt"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"]));
324
+ const validate1675 = (value) => typeof value === "string" && (value === "approved" || value === "denied" || value === "cancelled");
325
+ const validate1687 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1688(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1690(value["data"]));
326
+ const validate1688 = (value) => typeof value === "string" && value === "mailbox.message.quarantined";
327
+ const validate1690 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "disposition") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "source") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "disposition") || validate1695(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate594(value["reason"])) && (!Object.hasOwn(value, "source") || validate1697(value["source"])) && (!Object.hasOwn(value, "message") || validate1698(value["message"]));
328
+ const validate1695 = (value) => typeof value === "string" && (value === "quarantined" || value === "isolated");
329
+ const validate1697 = (value) => typeof value === "string" && (value === "receipt" || value === "classifier");
330
+ const validate1698 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "from") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "receivedAt") && (!Object.hasOwn(value, "id") || validate783(value["id"])) && (!Object.hasOwn(value, "from") || validate1469(value["from"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "receivedAt") || validate2(value["receivedAt"]));
331
+ const validate1709 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1710(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1712(value["data"]));
332
+ const validate1710 = (value) => typeof value === "string" && value === "mailbox.message.released";
333
+ const validate1712 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "releasedBy") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "message") && Object.hasOwn(value, "thread") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "releasedBy") || validate1516(value["releasedBy"])) && (!Object.hasOwn(value, "reason") || validate594(value["reason"])) && (!Object.hasOwn(value, "message") || validate1460(value["message"])) && (!Object.hasOwn(value, "thread") || validate1494(value["thread"]));
334
+ const validate1770 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1771(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1773(value["data"]));
335
+ const validate1771 = (value) => typeof value === "string" && value === "mailbox.message.discarded";
336
+ const validate1773 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "discardedBy") && Object.hasOwn(value, "disposition") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "discardedBy") || validate1516(value["discardedBy"])) && (!Object.hasOwn(value, "disposition") || validate1695(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate594(value["reason"])) && (!Object.hasOwn(value, "message") || validate1698(value["message"]));
337
+ const validate1798 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1799(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1801(value["data"]));
338
+ const validate1799 = (value) => typeof value === "string" && value === "mailbox.message.delivered";
339
+ const validate1801 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "status") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1468(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1513(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate783(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1812(value["status"]));
340
+ const validate1812 = (value) => typeof value === "string" && value === "delivered";
341
+ const validate1813 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1814(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1816(value["data"]));
342
+ const validate1814 = (value) => typeof value === "string" && value === "mailbox.message.read";
343
+ const validate1816 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "status") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1468(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1513(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate783(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1827(value["status"]));
344
+ const validate1827 = (value) => typeof value === "string" && value === "read";
345
+ const validate1828 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1829(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1831(value["data"]));
346
+ const validate1829 = (value) => typeof value === "string" && value === "mailbox.message.failed";
347
+ const validate1831 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "mailboxId") && Object.hasOwn(value, "namespaceId") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "actionId") && Object.hasOwn(value, "messageId") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "recipient") && Object.hasOwn(value, "occurredAt") && Object.hasOwn(value, "status") && Object.hasOwn(value, "error") && (!Object.hasOwn(value, "mailboxId") || validate5(value["mailboxId"])) && (!Object.hasOwn(value, "namespaceId") || validate1339(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1468(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1513(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate783(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1842(value["status"])) && (!Object.hasOwn(value, "error") || validate1843(value["error"]));
348
+ const validate1842 = (value) => typeof value === "string" && value === "failed";
349
+ const validate1843 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "code") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "code") || validate8(value["code"])) && (!Object.hasOwn(value, "message") || validate8(value["message"]));
350
+ const validate1850 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1851(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1853(value["data"]));
351
+ const validate1851 = (value) => typeof value === "string" && value === "journey.webhook";
352
+ const validate1853 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "journeyId") && Object.hasOwn(value, "journeyVersion") && Object.hasOwn(value, "runId") && Object.hasOwn(value, "nodeId") && Object.hasOwn(value, "contact") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "organizationId") || validate855(value["organizationId"])) && (!Object.hasOwn(value, "journeyId") || validate1855(value["journeyId"])) && (!Object.hasOwn(value, "journeyVersion") || validate1279(value["journeyVersion"])) && (!Object.hasOwn(value, "runId") || validate1857(value["runId"])) && (!Object.hasOwn(value, "nodeId") || validate2(value["nodeId"])) && (!Object.hasOwn(value, "contact") || validate1859(value["contact"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
353
+ const validate1855 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
354
+ const validate1857 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
355
+ const validate1859 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "externalId") && Object.hasOwn(value, "email") && (!Object.hasOwn(value, "id") || validate954(value["id"])) && (!Object.hasOwn(value, "externalId") || validate8(value["externalId"])) && (!Object.hasOwn(value, "email") || validate8(value["email"]));
354
356
  /** Narrow an event to a structurally valid payload known to this package. */
355
357
  const isKnownEvent = (value) => {
356
358
  switch (value.type) {
@@ -361,40 +363,40 @@ const isKnownEvent = (value) => {
361
363
  case "message.bounced": return validate344(value);
362
364
  case "message.complained": return validate426(value);
363
365
  case "message.received": return validate508(value);
364
- case "message.opened": return validate846(value);
365
- case "message.clicked": return validate894(value);
366
- case "contact.created": return validate946(value);
367
- case "contact.updated": return validate970(value);
368
- case "contact.deleted": return validate994(value);
369
- case "contact.subscribed": return validate1018(value);
370
- case "contact.unsubscribed": return validate1056(value);
371
- case "contact.resubscribed": return validate1094(value);
372
- case "contact.consent_changed": return validate1132(value);
373
- case "conversation.created": return validate1149(value);
374
- case "conversation.updated": return validate1169(value);
375
- case "conversation.archived": return validate1189(value);
376
- case "webhook.created": return validate1209(value);
377
- case "webhook.updated": return validate1226(value);
378
- case "webhook.deleted": return validate1243(value);
379
- case "webhook.test": return validate1260(value);
380
- case "domain.updated": return validate1264(value);
381
- case "domain.warming.updated": return validate1306(value);
382
- case "email.sending.paused": return validate1330(value);
383
- case "email.sending.resumed": return validate1340(value);
384
- case "template.registration.updated": return validate1350(value);
385
- case "flow.registration.updated": return validate1386(value);
386
- case "whatsapp.number.connected": return validate1428(value);
387
- case "mailbox.message.received": return validate1448(value);
388
- case "mailbox.message.sent": return validate1501(value);
389
- case "mailbox.action.pending_approval": return validate1553(value);
390
- case "mailbox.action.resolved": return validate1647(value);
391
- case "mailbox.message.quarantined": return validate1683(value);
392
- case "mailbox.message.released": return validate1705(value);
393
- case "mailbox.message.discarded": return validate1766(value);
394
- case "mailbox.message.delivered": return validate1794(value);
395
- case "mailbox.message.read": return validate1809(value);
396
- case "mailbox.message.failed": return validate1824(value);
397
- case "journey.webhook": return validate1846(value);
366
+ case "message.opened": return validate850(value);
367
+ case "message.clicked": return validate898(value);
368
+ case "contact.created": return validate950(value);
369
+ case "contact.updated": return validate974(value);
370
+ case "contact.deleted": return validate998(value);
371
+ case "contact.subscribed": return validate1022(value);
372
+ case "contact.unsubscribed": return validate1060(value);
373
+ case "contact.resubscribed": return validate1098(value);
374
+ case "contact.consent_changed": return validate1136(value);
375
+ case "conversation.created": return validate1153(value);
376
+ case "conversation.updated": return validate1173(value);
377
+ case "conversation.archived": return validate1193(value);
378
+ case "webhook.created": return validate1213(value);
379
+ case "webhook.updated": return validate1230(value);
380
+ case "webhook.deleted": return validate1247(value);
381
+ case "webhook.test": return validate1264(value);
382
+ case "domain.updated": return validate1268(value);
383
+ case "domain.warming.updated": return validate1310(value);
384
+ case "email.sending.paused": return validate1334(value);
385
+ case "email.sending.resumed": return validate1344(value);
386
+ case "template.registration.updated": return validate1354(value);
387
+ case "flow.registration.updated": return validate1390(value);
388
+ case "whatsapp.number.connected": return validate1432(value);
389
+ case "mailbox.message.received": return validate1452(value);
390
+ case "mailbox.message.sent": return validate1505(value);
391
+ case "mailbox.action.pending_approval": return validate1557(value);
392
+ case "mailbox.action.resolved": return validate1651(value);
393
+ case "mailbox.message.quarantined": return validate1687(value);
394
+ case "mailbox.message.released": return validate1709(value);
395
+ case "mailbox.message.discarded": return validate1770(value);
396
+ case "mailbox.message.delivered": return validate1798(value);
397
+ case "mailbox.message.read": return validate1813(value);
398
+ case "mailbox.message.failed": return validate1828(value);
399
+ case "journey.webhook": return validate1850(value);
398
400
  default: return false;
399
401
  }
400
402
  };
@@ -408,40 +410,40 @@ const validateEvent = (value) => {
408
410
  case "message.bounced": return validate344(value);
409
411
  case "message.complained": return validate426(value);
410
412
  case "message.received": return validate508(value);
411
- case "message.opened": return validate846(value);
412
- case "message.clicked": return validate894(value);
413
- case "contact.created": return validate946(value);
414
- case "contact.updated": return validate970(value);
415
- case "contact.deleted": return validate994(value);
416
- case "contact.subscribed": return validate1018(value);
417
- case "contact.unsubscribed": return validate1056(value);
418
- case "contact.resubscribed": return validate1094(value);
419
- case "contact.consent_changed": return validate1132(value);
420
- case "conversation.created": return validate1149(value);
421
- case "conversation.updated": return validate1169(value);
422
- case "conversation.archived": return validate1189(value);
423
- case "webhook.created": return validate1209(value);
424
- case "webhook.updated": return validate1226(value);
425
- case "webhook.deleted": return validate1243(value);
426
- case "webhook.test": return validate1260(value);
427
- case "domain.updated": return validate1264(value);
428
- case "domain.warming.updated": return validate1306(value);
429
- case "email.sending.paused": return validate1330(value);
430
- case "email.sending.resumed": return validate1340(value);
431
- case "template.registration.updated": return validate1350(value);
432
- case "flow.registration.updated": return validate1386(value);
433
- case "whatsapp.number.connected": return validate1428(value);
434
- case "mailbox.message.received": return validate1448(value);
435
- case "mailbox.message.sent": return validate1501(value);
436
- case "mailbox.action.pending_approval": return validate1553(value);
437
- case "mailbox.action.resolved": return validate1647(value);
438
- case "mailbox.message.quarantined": return validate1683(value);
439
- case "mailbox.message.released": return validate1705(value);
440
- case "mailbox.message.discarded": return validate1766(value);
441
- case "mailbox.message.delivered": return validate1794(value);
442
- case "mailbox.message.read": return validate1809(value);
443
- case "mailbox.message.failed": return validate1824(value);
444
- case "journey.webhook": return validate1846(value);
413
+ case "message.opened": return validate850(value);
414
+ case "message.clicked": return validate898(value);
415
+ case "contact.created": return validate950(value);
416
+ case "contact.updated": return validate974(value);
417
+ case "contact.deleted": return validate998(value);
418
+ case "contact.subscribed": return validate1022(value);
419
+ case "contact.unsubscribed": return validate1060(value);
420
+ case "contact.resubscribed": return validate1098(value);
421
+ case "contact.consent_changed": return validate1136(value);
422
+ case "conversation.created": return validate1153(value);
423
+ case "conversation.updated": return validate1173(value);
424
+ case "conversation.archived": return validate1193(value);
425
+ case "webhook.created": return validate1213(value);
426
+ case "webhook.updated": return validate1230(value);
427
+ case "webhook.deleted": return validate1247(value);
428
+ case "webhook.test": return validate1264(value);
429
+ case "domain.updated": return validate1268(value);
430
+ case "domain.warming.updated": return validate1310(value);
431
+ case "email.sending.paused": return validate1334(value);
432
+ case "email.sending.resumed": return validate1344(value);
433
+ case "template.registration.updated": return validate1354(value);
434
+ case "flow.registration.updated": return validate1390(value);
435
+ case "whatsapp.number.connected": return validate1432(value);
436
+ case "mailbox.message.received": return validate1452(value);
437
+ case "mailbox.message.sent": return validate1505(value);
438
+ case "mailbox.action.pending_approval": return validate1557(value);
439
+ case "mailbox.action.resolved": return validate1651(value);
440
+ case "mailbox.message.quarantined": return validate1687(value);
441
+ case "mailbox.message.released": return validate1709(value);
442
+ case "mailbox.message.discarded": return validate1770(value);
443
+ case "mailbox.message.delivered": return validate1798(value);
444
+ case "mailbox.message.read": return validate1813(value);
445
+ case "mailbox.message.failed": return validate1828(value);
446
+ case "journey.webhook": return validate1850(value);
445
447
  default: return true;
446
448
  }
447
449
  };
@@ -720,4 +722,4 @@ const readWebhookHeaders = (headers) => requireHeaders({
720
722
  });
721
723
  export { generateWebhookSecret as a, verifyWebhookAt as c, MalformedWebhookPayloadError as d, WebhookCryptoError as f, isKnownEvent as g, WebhookVerificationError as h, WEBHOOK_TIMESTAMP_HEADER as i, InvalidWebhookHeadersError as l, WebhookTimestampError as m, WEBHOOK_ID_HEADER as n, readWebhookHeaders as o, WebhookSignatureError as p, WEBHOOK_SIGNATURE_HEADER as r, signWebhook as s, DEFAULT_TOLERANCE_SECONDS as t, InvalidWebhookSecretError as u };
722
724
 
723
- //# sourceMappingURL=protocol-Cup4zTAh.js.map
725
+ //# sourceMappingURL=protocol-CwzHnoqu.js.map