@samva/webhooks 0.26.0 → 0.28.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.
- package/dist/effect.js +2 -2
- package/dist/{json-schemas.gen-Cfvr6mQA.js → json-schemas.gen-kztbWC65.js} +109 -52
- package/dist/promise.js +2 -2
- package/dist/{protocol-DcQIkEck.js → protocol-D6Od0Usw.js} +359 -361
- package/dist/protocol.js +1 -1
- package/dist/schemas.gen.d.ts +74 -30
- package/dist/schemas.gen.js +49 -30
- package/dist/types.gen.d.ts +45 -15
- package/package.json +5 -5
|
@@ -34,306 +34,304 @@ 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, "
|
|
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
38
|
const validate592 = (value) => validate593(value) || validate6(value);
|
|
39
|
-
const validate593 = (value) => isObject(value) && isObject(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);
|
|
40
42
|
const validate597 = (value) => validate598(value) || validate6(value);
|
|
41
|
-
const validate598 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const validate616 = (value) => validate617(value) ||
|
|
51
|
-
const validate617 = (value) =>
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const validate649 = (value) => validate650(value) ||
|
|
61
|
-
const validate650 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "
|
|
62
|
-
const
|
|
63
|
-
const
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
const
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const validate670 = (value) =>
|
|
77
|
-
const
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
const
|
|
88
|
-
const validate690 = (value) =>
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
const
|
|
95
|
-
const
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
const
|
|
105
|
-
const
|
|
106
|
-
const
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const validate756 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "
|
|
110
|
-
const
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const
|
|
115
|
-
const
|
|
116
|
-
const
|
|
117
|
-
const
|
|
118
|
-
const
|
|
119
|
-
const
|
|
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"]));
|
|
58
|
+
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 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"]));
|
|
120
122
|
const validate800 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate801);
|
|
121
|
-
const validate801 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "
|
|
122
|
-
const
|
|
123
|
-
const
|
|
124
|
-
const
|
|
125
|
-
const
|
|
126
|
-
const validate813 = (value) => isObject(value) && isObject(value) && (!Object.hasOwn(value, "
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
const validate827 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
const
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
const
|
|
142
|
-
const
|
|
143
|
-
const
|
|
144
|
-
const
|
|
145
|
-
const
|
|
146
|
-
const
|
|
147
|
-
const
|
|
148
|
-
const
|
|
149
|
-
const
|
|
150
|
-
const
|
|
151
|
-
const
|
|
152
|
-
const
|
|
153
|
-
const
|
|
154
|
-
const
|
|
155
|
-
const
|
|
156
|
-
const
|
|
157
|
-
const
|
|
158
|
-
const
|
|
159
|
-
const
|
|
160
|
-
const
|
|
161
|
-
const
|
|
162
|
-
const
|
|
163
|
-
const
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
const
|
|
168
|
-
const validate1053 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1054(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1022(value["data"]));
|
|
169
|
-
const validate1054 = (value) => typeof value === "string" && value === "contact.unsubscribed";
|
|
170
|
-
const validate1087 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1088(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1022(value["data"]));
|
|
171
|
-
const validate1088 = (value) => typeof value === "string" && value === "contact.resubscribed";
|
|
172
|
-
const validate1121 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1122(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1124(value["data"]));
|
|
173
|
-
const validate1122 = (value) => typeof value === "string" && value === "contact.consent_changed";
|
|
174
|
-
const validate1124 = (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") || validate846(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate945(value["contactId"])) && (!Object.hasOwn(value, "identity") || validate1127(value["identity"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate1132(value["status"])) && (!Object.hasOwn(value, "previousStatus") || validate1133(value["previousStatus"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "capturedAt") || validate2(value["capturedAt"]));
|
|
175
|
-
const validate1127 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && (!Object.hasOwn(value, "id") || validate1128(value["id"])) && (!Object.hasOwn(value, "type") || validate955(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"]));
|
|
176
|
-
const validate1128 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^cident_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
177
|
-
const validate1132 = (value) => typeof value === "string" && (value === "opted_in" || value === "opted_out");
|
|
178
|
-
const validate1133 = (value) => validate1132(value) || validate6(value);
|
|
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"]));
|
|
126
|
+
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") || validate958(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) => validate8(value) || validate6(value);
|
|
155
|
+
const validate958 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate959);
|
|
156
|
+
const validate959 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && Object.hasOwn(value, "verified") && (!Object.hasOwn(value, "type") || validate960(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"])) && (!Object.hasOwn(value, "verified") || validate33(value["verified"]));
|
|
157
|
+
const validate960 = (value) => typeof value === "string" && (value === "email" || value === "phone");
|
|
158
|
+
const validate972 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate973(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate949(value["data"]));
|
|
159
|
+
const validate973 = (value) => typeof value === "string" && value === "contact.updated";
|
|
160
|
+
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") || validate949(value["data"]));
|
|
161
|
+
const validate999 = (value) => typeof value === "string" && value === "contact.deleted";
|
|
162
|
+
const validate1024 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1025(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1027(value["data"]));
|
|
163
|
+
const validate1025 = (value) => typeof value === "string" && value === "contact.subscribed";
|
|
164
|
+
const validate1027 = (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") || validate1033(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 validate1033 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^unsub_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
166
|
+
const validate1062 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1063(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1027(value["data"]));
|
|
167
|
+
const validate1063 = (value) => typeof value === "string" && value === "contact.unsubscribed";
|
|
168
|
+
const validate1100 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1101(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1027(value["data"]));
|
|
169
|
+
const validate1101 = (value) => typeof value === "string" && value === "contact.resubscribed";
|
|
179
170
|
const validate1138 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1139(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1141(value["data"]));
|
|
180
|
-
const validate1139 = (value) => typeof value === "string" && value === "
|
|
181
|
-
const validate1141 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "
|
|
182
|
-
const
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
const
|
|
186
|
-
const
|
|
187
|
-
const
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
const
|
|
192
|
-
const
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
const
|
|
199
|
-
const
|
|
200
|
-
const
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
const
|
|
204
|
-
const
|
|
205
|
-
const
|
|
206
|
-
const
|
|
207
|
-
const
|
|
208
|
-
const
|
|
209
|
-
const
|
|
210
|
-
const
|
|
211
|
-
const
|
|
212
|
-
const
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
const
|
|
216
|
-
const
|
|
217
|
-
const
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
const
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
const
|
|
224
|
-
const
|
|
225
|
-
const
|
|
226
|
-
const
|
|
227
|
-
const
|
|
228
|
-
const
|
|
229
|
-
const validate1331 = (value) =>
|
|
230
|
-
const validate1332 = (value) =>
|
|
231
|
-
const
|
|
232
|
-
const
|
|
233
|
-
const
|
|
234
|
-
const
|
|
235
|
-
const
|
|
236
|
-
const
|
|
237
|
-
const
|
|
238
|
-
const
|
|
239
|
-
const
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
const
|
|
245
|
-
const
|
|
246
|
-
const
|
|
247
|
-
const
|
|
248
|
-
const
|
|
249
|
-
const
|
|
250
|
-
const
|
|
251
|
-
const
|
|
252
|
-
const
|
|
253
|
-
const
|
|
254
|
-
const
|
|
255
|
-
const
|
|
256
|
-
const
|
|
257
|
-
const
|
|
258
|
-
const
|
|
259
|
-
const
|
|
260
|
-
const
|
|
261
|
-
const
|
|
262
|
-
const
|
|
263
|
-
const
|
|
264
|
-
const
|
|
265
|
-
const
|
|
266
|
-
const
|
|
267
|
-
const
|
|
268
|
-
const
|
|
269
|
-
const
|
|
270
|
-
const
|
|
271
|
-
const
|
|
272
|
-
const
|
|
273
|
-
const
|
|
274
|
-
const
|
|
275
|
-
const
|
|
276
|
-
const
|
|
277
|
-
const
|
|
278
|
-
const
|
|
279
|
-
const
|
|
280
|
-
const
|
|
281
|
-
const
|
|
282
|
-
const
|
|
283
|
-
const
|
|
284
|
-
const
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
const
|
|
290
|
-
const
|
|
291
|
-
const
|
|
292
|
-
const
|
|
293
|
-
const
|
|
294
|
-
const
|
|
295
|
-
const
|
|
296
|
-
const
|
|
297
|
-
const
|
|
298
|
-
const
|
|
299
|
-
const
|
|
300
|
-
const
|
|
301
|
-
const
|
|
302
|
-
const
|
|
303
|
-
const validate1594 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "
|
|
304
|
-
const validate1595 = (value) => typeof value === "string" &&
|
|
305
|
-
const
|
|
306
|
-
const
|
|
307
|
-
const
|
|
308
|
-
const
|
|
309
|
-
const
|
|
310
|
-
const
|
|
311
|
-
const
|
|
312
|
-
const
|
|
313
|
-
const
|
|
314
|
-
const
|
|
315
|
-
const
|
|
316
|
-
const
|
|
317
|
-
const
|
|
318
|
-
const
|
|
319
|
-
const
|
|
320
|
-
const
|
|
321
|
-
const
|
|
322
|
-
const
|
|
323
|
-
const
|
|
324
|
-
const
|
|
325
|
-
const
|
|
326
|
-
const
|
|
327
|
-
const
|
|
328
|
-
const
|
|
329
|
-
const
|
|
330
|
-
const
|
|
331
|
-
const
|
|
332
|
-
const
|
|
333
|
-
const
|
|
334
|
-
const
|
|
335
|
-
const
|
|
336
|
-
const
|
|
171
|
+
const validate1139 = (value) => typeof value === "string" && value === "contact.consent_changed";
|
|
172
|
+
const validate1141 = (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") || validate1144(value["identity"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate1149(value["status"])) && (!Object.hasOwn(value, "previousStatus") || validate1150(value["previousStatus"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "capturedAt") || validate2(value["capturedAt"]));
|
|
173
|
+
const validate1144 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && (!Object.hasOwn(value, "id") || validate1145(value["id"])) && (!Object.hasOwn(value, "type") || validate960(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"]));
|
|
174
|
+
const validate1145 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^cident_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
175
|
+
const validate1149 = (value) => typeof value === "string" && (value === "opted_in" || value === "opted_out");
|
|
176
|
+
const validate1150 = (value) => validate1149(value) || validate6(value);
|
|
177
|
+
const validate1155 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1156(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1158(value["data"]));
|
|
178
|
+
const validate1156 = (value) => typeof value === "string" && value === "conversation.created";
|
|
179
|
+
const validate1158 = (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") || validate1159(value["conversationId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "title") || validate953(value["title"])) && (!Object.hasOwn(value, "channels") || validate1166(value["channels"])) && (!Object.hasOwn(value, "primaryChannel") || validate7(value["primaryChannel"])) && (!Object.hasOwn(value, "status") || validate1169(value["status"])) && (!Object.hasOwn(value, "primaryContactId") || validate1170(value["primaryContactId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
|
|
180
|
+
const validate1159 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
181
|
+
const validate1166 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate7);
|
|
182
|
+
const validate1169 = (value) => typeof value === "string" && (value === "active" || value === "waiting" || value === "resolved" || value === "escalated" || value === "archived");
|
|
183
|
+
const validate1170 = (value) => validate1171(value) || validate6(value);
|
|
184
|
+
const validate1171 = (value) => validate950(value) || validate6(value);
|
|
185
|
+
const validate1177 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1178(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1158(value["data"]));
|
|
186
|
+
const validate1178 = (value) => typeof value === "string" && value === "conversation.updated";
|
|
187
|
+
const validate1199 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1200(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1158(value["data"]));
|
|
188
|
+
const validate1200 = (value) => typeof value === "string" && value === "conversation.archived";
|
|
189
|
+
const validate1221 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1222(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1224(value["data"]));
|
|
190
|
+
const validate1222 = (value) => typeof value === "string" && value === "webhook.created";
|
|
191
|
+
const validate1224 = (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") || validate1225(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") || validate1235(value["status"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
|
|
192
|
+
const validate1225 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
193
|
+
const validate1235 = (value) => typeof value === "string" && (value === "active" || value === "disabled");
|
|
194
|
+
const validate1238 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1239(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1224(value["data"]));
|
|
195
|
+
const validate1239 = (value) => typeof value === "string" && value === "webhook.updated";
|
|
196
|
+
const validate1255 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1256(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1224(value["data"]));
|
|
197
|
+
const validate1256 = (value) => typeof value === "string" && value === "webhook.deleted";
|
|
198
|
+
const validate1272 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1273(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
|
|
199
|
+
const validate1273 = (value) => typeof value === "string" && value === "webhook.test";
|
|
200
|
+
const validate1276 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1277(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1279(value["data"]));
|
|
201
|
+
const validate1277 = (value) => typeof value === "string" && value === "domain.updated";
|
|
202
|
+
const validate1279 = (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") || validate1280(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "previousPhase") || validate1283(value["previousPhase"])) && (!Object.hasOwn(value, "phase") || validate1283(value["phase"])) && (!Object.hasOwn(value, "dns") || validate1285(value["dns"])) && (!Object.hasOwn(value, "provider") || validate1292(value["provider"])) && (!Object.hasOwn(value, "operationId") || validate1302(value["operationId"])) && (!Object.hasOwn(value, "checkedAt") || validate8(value["checkedAt"])) && (!Object.hasOwn(value, "nextCheckAt") || validate8(value["nextCheckAt"])) && (!Object.hasOwn(value, "failure") || validate1311(value["failure"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
|
|
203
|
+
const validate1280 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
204
|
+
const validate1283 = (value) => typeof value === "string" && (value === "dns-setup" || value === "provisioning" || value === "verifying" || value === "ready" || value === "degraded" || value === "failed");
|
|
205
|
+
const validate1285 = (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") || validate1287(value["total"])) && (!Object.hasOwn(value, "satisfied") || validate1287(value["satisfied"])) && (!Object.hasOwn(value, "missing") || validate1287(value["missing"])) && (!Object.hasOwn(value, "mismatch") || validate1287(value["mismatch"])) && (!Object.hasOwn(value, "unknown") || validate1287(value["unknown"]));
|
|
206
|
+
const validate1287 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= -9007199254740991 && typeof value === "number" && value <= 9007199254740991;
|
|
207
|
+
const validate1292 = (value) => validate1293(value) || validate6(value);
|
|
208
|
+
const validate1293 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "identity") && (!Object.hasOwn(value, "identity") || validate1294(value["identity"])) && (!Object.hasOwn(value, "dkim") || validate1295(value["dkim"])) && (!Object.hasOwn(value, "mailFrom") || validate1295(value["mailFrom"]));
|
|
209
|
+
const validate1294 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "unknown");
|
|
210
|
+
const validate1295 = (value) => validate1294(value) || validate6(value);
|
|
211
|
+
const validate1302 = (value) => validate1303(value) || validate6(value);
|
|
212
|
+
const validate1303 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^op_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
213
|
+
const validate1311 = (value) => validate1312(value) || validate6(value);
|
|
214
|
+
const validate1312 = (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"]));
|
|
215
|
+
const validate1318 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1319(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1321(value["data"]));
|
|
216
|
+
const validate1319 = (value) => typeof value === "string" && value === "domain.warming.updated";
|
|
217
|
+
const validate1321 = (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") || validate1326(value["reason"])) && (!Object.hasOwn(value, "status") || validate1327(value["status"])) && (!Object.hasOwn(value, "holdReason") || validate8(value["holdReason"])) && (!Object.hasOwn(value, "batch") || validate1331(value["batch"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
|
|
218
|
+
const validate1326 = (value) => typeof value === "string" && (value === "plan-created" || value === "policy-updated" || value === "window-opened" || value === "window-cancelled" || value === "paused" || value === "resumed" || value === "held" || value === "completed");
|
|
219
|
+
const validate1327 = (value) => typeof value === "string" && (value === "active" || value === "paused" || value === "completed");
|
|
220
|
+
const validate1331 = (value) => validate1332(value) || validate6(value);
|
|
221
|
+
const validate1332 = (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"]));
|
|
222
|
+
const validate1342 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1343(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1345(value["data"]));
|
|
223
|
+
const validate1343 = (value) => typeof value === "string" && value === "template.registration.updated";
|
|
224
|
+
const validate1345 = (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") || validate1346(value["id"])) && (!Object.hasOwn(value, "templateId") || validate1347(value["templateId"])) && (!Object.hasOwn(value, "publicationId") || validate1348(value["publicationId"])) && (!Object.hasOwn(value, "target") || validate1349(value["target"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "language") || validate2(value["language"])) && (!Object.hasOwn(value, "status") || validate1359(value["status"])) && (!Object.hasOwn(value, "category") || validate1360(value["category"])) && (!Object.hasOwn(value, "providerCategory") || validate1361(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") || validate1359(value["previousStatus"]));
|
|
225
|
+
const validate1346 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
226
|
+
const validate1347 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
227
|
+
const validate1348 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tpub_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
228
|
+
const validate1349 = (value) => validate1350(value) || validate1353(value);
|
|
229
|
+
const validate1350 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "wabaId") && (!Object.hasOwn(value, "provider") || validate1351(value["provider"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"]));
|
|
230
|
+
const validate1351 = (value) => typeof value === "string" && value === "whatsapp";
|
|
231
|
+
const validate1353 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "entityId") && Object.hasOwn(value, "headerId") && (!Object.hasOwn(value, "provider") || validate1354(value["provider"])) && (!Object.hasOwn(value, "entityId") || validate2(value["entityId"])) && (!Object.hasOwn(value, "headerId") || validate2(value["headerId"]));
|
|
232
|
+
const validate1354 = (value) => typeof value === "string" && value === "dlt";
|
|
233
|
+
const validate1359 = (value) => typeof value === "string" && (value === "draft" || value === "submitted" || value === "approved" || value === "rejected" || value === "paused" || value === "disabled");
|
|
234
|
+
const validate1360 = (value) => typeof value === "string" && (value === "marketing" || value === "utility" || value === "authentication" || value === "transactional" || value === "service_implicit" || value === "service_explicit" || value === "promotional");
|
|
235
|
+
const validate1361 = (value) => validate1360(value) || validate6(value);
|
|
236
|
+
const validate1378 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1379(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1381(value["data"]));
|
|
237
|
+
const validate1379 = (value) => typeof value === "string" && value === "flow.registration.updated";
|
|
238
|
+
const validate1381 = (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") || validate1382(value["id"])) && (!Object.hasOwn(value, "flowId") || validate746(value["flowId"])) && (!Object.hasOwn(value, "versionId") || validate752(value["versionId"])) && (!Object.hasOwn(value, "versionNumber") || validate1287(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") || validate1391(value["status"])) && (!Object.hasOwn(value, "validationErrors") || validate1392(value["validationErrors"])) && (!Object.hasOwn(value, "endpointAlerts") || validate1399(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") || validate1417(value["previousStatus"]));
|
|
239
|
+
const validate1382 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wafreg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
240
|
+
const validate1391 = (value) => typeof value === "string" && (value === "draft" || value === "published" || value === "throttled" || value === "blocked" || value === "deprecated");
|
|
241
|
+
const validate1392 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1393);
|
|
242
|
+
const validate1393 = (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") || validate1287(value["line"])) && (!Object.hasOwn(value, "column") || validate1287(value["column"]));
|
|
243
|
+
const validate1399 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1400);
|
|
244
|
+
const validate1400 = (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"]));
|
|
245
|
+
const validate1417 = (value) => validate1391(value) || validate6(value);
|
|
246
|
+
const validate1420 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1421(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1423(value["data"]));
|
|
247
|
+
const validate1421 = (value) => typeof value === "string" && value === "whatsapp.number.connected";
|
|
248
|
+
const validate1423 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "businessAccountId") || validate1428(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") || validate1433(value["verificationStatus"])) && (!Object.hasOwn(value, "reconnected") || validate33(value["reconnected"])) && (!Object.hasOwn(value, "setupLink") || validate1435(value["setupLink"]));
|
|
249
|
+
const validate1425 = (value) => validate1426(value) || validate6(value);
|
|
250
|
+
const validate1426 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^ns_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
251
|
+
const validate1428 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^waba_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
252
|
+
const validate1433 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "suspended");
|
|
253
|
+
const validate1435 = (value) => validate1436(value) || validate6(value);
|
|
254
|
+
const validate1436 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "metadata") && (!Object.hasOwn(value, "id") || validate1437(value["id"])) && (!Object.hasOwn(value, "metadata") || validate1438(value["metadata"]));
|
|
255
|
+
const validate1437 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wasl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
256
|
+
const validate1438 = (value) => isObject(value) && isObject(value);
|
|
257
|
+
const validate1440 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1441(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1443(value["data"]));
|
|
258
|
+
const validate1441 = (value) => typeof value === "string" && value === "mailbox.message.received";
|
|
259
|
+
const validate1443 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "message") || validate1448(value["message"])) && (!Object.hasOwn(value, "thread") || validate1482(value["thread"]));
|
|
260
|
+
const validate1448 = (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") || validate1455(value["channel"])) && (!Object.hasOwn(value, "threadId") || validate1456(value["threadId"])) && (!Object.hasOwn(value, "from") || validate1457(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") || validate1475(value["attachments"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
|
|
261
|
+
const validate1455 = (value) => typeof value === "string" && (value === "email" || value === "whatsapp" || value === "sms");
|
|
262
|
+
const validate1456 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^thread_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
263
|
+
const validate1457 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "address") && (!Object.hasOwn(value, "address") || validate2(value["address"])) && (!Object.hasOwn(value, "name") || validate8(value["name"]));
|
|
264
|
+
const validate1475 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1476);
|
|
265
|
+
const validate1476 = (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") || validate1477(value["id"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"])) && (!Object.hasOwn(value, "contentType") || validate2(value["contentType"])) && (!Object.hasOwn(value, "size") || validate15(value["size"]));
|
|
266
|
+
const validate1477 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
267
|
+
const validate1482 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "preview") && (!Object.hasOwn(value, "id") || validate1456(value["id"])) && (!Object.hasOwn(value, "endpointId") || validate1484(value["endpointId"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "preview") || validate8(value["preview"]));
|
|
268
|
+
const validate1484 = (value) => validate1485(value) || validate6(value);
|
|
269
|
+
const validate1485 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
270
|
+
const validate1493 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1494(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1496(value["data"]));
|
|
271
|
+
const validate1494 = (value) => typeof value === "string" && value === "mailbox.message.sent";
|
|
272
|
+
const validate1496 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "actionId") || validate1501(value["actionId"])) && (!Object.hasOwn(value, "state") || validate1502(value["state"])) && (!Object.hasOwn(value, "acceptedAt") || validate2(value["acceptedAt"])) && (!Object.hasOwn(value, "actor") || validate1504(value["actor"])) && (!Object.hasOwn(value, "message") || validate1448(value["message"]));
|
|
273
|
+
const validate1501 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxact_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
274
|
+
const validate1502 = (value) => typeof value === "string" && value === "completed";
|
|
275
|
+
const validate1504 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "id") && Object.hasOwn(value, "source") && (!Object.hasOwn(value, "kind") || validate1505(value["kind"])) && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "displayName") || validate8(value["displayName"])) && (!Object.hasOwn(value, "source") || validate1510(value["source"]));
|
|
276
|
+
const validate1505 = (value) => typeof value === "string" && (value === "user" || value === "apiKey" || value === "extension" || value === "externalAgent" || value === "samvaAgent" || value === "system");
|
|
277
|
+
const validate1510 = (value) => typeof value === "string" && (value === "humanUi" || value === "externalApi" || value === "externalAgent" || value === "extension" || value === "samvaManagedAgent" || value === "system");
|
|
278
|
+
const validate1545 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1546(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1548(value["data"]));
|
|
279
|
+
const validate1546 = (value) => typeof value === "string" && value === "mailbox.action.pending_approval";
|
|
280
|
+
const validate1548 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1553(value["action"])) && (!Object.hasOwn(value, "draft") || validate1583(value["draft"])) && (!Object.hasOwn(value, "tool") || validate1593(value["tool"]));
|
|
281
|
+
const validate1553 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "proposedBy") && Object.hasOwn(value, "createdAt") && (!Object.hasOwn(value, "id") || validate1501(value["id"])) && (!Object.hasOwn(value, "type") || validate1555(value["type"])) && (!Object.hasOwn(value, "state") || validate1556(value["state"])) && (!Object.hasOwn(value, "decision") || validate1557(value["decision"])) && (!Object.hasOwn(value, "threadId") || validate1569(value["threadId"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "proposedBy") || validate1504(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
|
|
282
|
+
const validate1555 = (value) => typeof value === "string" && (value === "sendMessage" || value === "reply" || value === "updateDraft" || value === "createNote" || value === "assignThread" || value === "changeThreadState" || value === "call" || value === "extensionRequest" || value === "toolCall");
|
|
283
|
+
const validate1556 = (value) => typeof value === "string" && value === "approvalRequired";
|
|
284
|
+
const validate1557 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "outcome") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "policyId") && Object.hasOwn(value, "source") && Object.hasOwn(value, "decidedAt") && (!Object.hasOwn(value, "outcome") || validate1558(value["outcome"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "policyId") || validate1562(value["policyId"])) && (!Object.hasOwn(value, "source") || validate1565(value["source"])) && (!Object.hasOwn(value, "decidedAt") || validate2(value["decidedAt"]));
|
|
285
|
+
const validate1558 = (value) => typeof value === "string" && (value === "allow" || value === "requireApproval" || value === "deny");
|
|
286
|
+
const validate1562 = (value) => validate1563(value) || validate6(value);
|
|
287
|
+
const validate1563 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
288
|
+
const validate1565 = (value) => validate1566(value) || validate6(value);
|
|
289
|
+
const validate1566 = (value) => typeof value === "string" && (value === "grant" || value === "installation" || value === "policy");
|
|
290
|
+
const validate1569 = (value) => validate1456(value) || validate6(value);
|
|
291
|
+
const validate1583 = (value) => validate1584(value) || validate6(value);
|
|
292
|
+
const validate1584 = (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"]));
|
|
293
|
+
const validate1593 = (value) => validate1594(value) || validate6(value);
|
|
294
|
+
const validate1594 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "name") && Object.hasOwn(value, "argumentsHash") && Object.hasOwn(value, "arguments") && (!Object.hasOwn(value, "name") || validate1595(value["name"])) && (!Object.hasOwn(value, "argumentsHash") || validate1596(value["argumentsHash"])) && (!Object.hasOwn(value, "arguments") || validate12(value["arguments"]));
|
|
295
|
+
const validate1595 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 128;
|
|
296
|
+
const validate1596 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^[0-9a-f]{64}$", "u")).test(value);
|
|
297
|
+
const validate1599 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1600(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1602(value["data"]));
|
|
298
|
+
const validate1600 = (value) => typeof value === "string" && value === "mailbox.action.resolved";
|
|
299
|
+
const validate1602 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1607(value["action"])) && (!Object.hasOwn(value, "resolution") || validate1621(value["resolution"]));
|
|
300
|
+
const validate1607 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "threadId") && Object.hasOwn(value, "proposedBy") && Object.hasOwn(value, "createdAt") && (!Object.hasOwn(value, "id") || validate1501(value["id"])) && (!Object.hasOwn(value, "type") || validate1555(value["type"])) && (!Object.hasOwn(value, "threadId") || validate1569(value["threadId"])) && (!Object.hasOwn(value, "proposedBy") || validate1504(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
|
|
301
|
+
const validate1621 = (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") || validate1622(value["outcome"])) && (!Object.hasOwn(value, "actor") || validate1504(value["actor"])) && (!Object.hasOwn(value, "resolvedAt") || validate2(value["resolvedAt"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"]));
|
|
302
|
+
const validate1622 = (value) => typeof value === "string" && (value === "approved" || value === "denied" || value === "cancelled");
|
|
303
|
+
const validate1634 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1635(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1637(value["data"]));
|
|
304
|
+
const validate1635 = (value) => typeof value === "string" && value === "mailbox.message.quarantined";
|
|
305
|
+
const validate1637 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "disposition") || validate1642(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate1643(value["reason"])) && (!Object.hasOwn(value, "source") || validate1644(value["source"])) && (!Object.hasOwn(value, "message") || validate1645(value["message"]));
|
|
306
|
+
const validate1642 = (value) => typeof value === "string" && (value === "quarantined" || value === "isolated");
|
|
307
|
+
const validate1643 = (value) => typeof value === "string" && (value === "spam" || value === "dmarc" || value === "virus" || value === "virus_unscanned" || value === "phishing" || value === "fraud" || value === "prompt_injection");
|
|
308
|
+
const validate1644 = (value) => typeof value === "string" && (value === "receipt" || value === "classifier");
|
|
309
|
+
const validate1645 = (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") || validate1457(value["from"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "receivedAt") || validate2(value["receivedAt"]));
|
|
310
|
+
const validate1656 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1657(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1659(value["data"]));
|
|
311
|
+
const validate1657 = (value) => typeof value === "string" && value === "mailbox.message.released";
|
|
312
|
+
const validate1659 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "releasedBy") || validate1504(value["releasedBy"])) && (!Object.hasOwn(value, "reason") || validate1643(value["reason"])) && (!Object.hasOwn(value, "message") || validate1448(value["message"])) && (!Object.hasOwn(value, "thread") || validate1482(value["thread"]));
|
|
313
|
+
const validate1717 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1718(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1720(value["data"]));
|
|
314
|
+
const validate1718 = (value) => typeof value === "string" && value === "mailbox.message.discarded";
|
|
315
|
+
const validate1720 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "discardedBy") || validate1504(value["discardedBy"])) && (!Object.hasOwn(value, "disposition") || validate1642(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate1643(value["reason"])) && (!Object.hasOwn(value, "message") || validate1645(value["message"]));
|
|
316
|
+
const validate1745 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1746(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1748(value["data"]));
|
|
317
|
+
const validate1746 = (value) => typeof value === "string" && value === "mailbox.message.delivered";
|
|
318
|
+
const validate1748 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1456(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1501(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate1455(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1759(value["status"]));
|
|
319
|
+
const validate1759 = (value) => typeof value === "string" && value === "delivered";
|
|
320
|
+
const validate1760 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1761(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1763(value["data"]));
|
|
321
|
+
const validate1761 = (value) => typeof value === "string" && value === "mailbox.message.read";
|
|
322
|
+
const validate1763 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1456(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1501(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate1455(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1774(value["status"]));
|
|
323
|
+
const validate1774 = (value) => typeof value === "string" && value === "read";
|
|
324
|
+
const validate1775 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1776(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1778(value["data"]));
|
|
325
|
+
const validate1776 = (value) => typeof value === "string" && value === "mailbox.message.failed";
|
|
326
|
+
const validate1778 = (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") || validate1425(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1456(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1501(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate1455(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1789(value["status"])) && (!Object.hasOwn(value, "error") || validate1790(value["error"]));
|
|
327
|
+
const validate1789 = (value) => typeof value === "string" && value === "failed";
|
|
328
|
+
const validate1790 = (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"]));
|
|
329
|
+
const validate1797 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1798(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1800(value["data"]));
|
|
330
|
+
const validate1798 = (value) => typeof value === "string" && value === "journey.webhook";
|
|
331
|
+
const validate1800 = (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") || validate1802(value["journeyId"])) && (!Object.hasOwn(value, "journeyVersion") || validate1287(value["journeyVersion"])) && (!Object.hasOwn(value, "runId") || validate1804(value["runId"])) && (!Object.hasOwn(value, "nodeId") || validate2(value["nodeId"])) && (!Object.hasOwn(value, "contact") || validate1806(value["contact"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
|
|
332
|
+
const validate1802 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
333
|
+
const validate1804 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
|
|
334
|
+
const validate1806 = (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"]));
|
|
337
335
|
/** Narrow an event to a structurally valid payload known to this package. */
|
|
338
336
|
const isKnownEvent = (value) => {
|
|
339
337
|
switch (value.type) {
|
|
@@ -344,38 +342,38 @@ const isKnownEvent = (value) => {
|
|
|
344
342
|
case "message.bounced": return validate344(value);
|
|
345
343
|
case "message.complained": return validate426(value);
|
|
346
344
|
case "message.received": return validate508(value);
|
|
347
|
-
case "message.opened": return
|
|
348
|
-
case "message.clicked": return
|
|
349
|
-
case "contact.created": return
|
|
350
|
-
case "contact.updated": return
|
|
351
|
-
case "contact.deleted": return
|
|
352
|
-
case "contact.subscribed": return
|
|
353
|
-
case "contact.unsubscribed": return
|
|
354
|
-
case "contact.resubscribed": return
|
|
355
|
-
case "contact.consent_changed": return
|
|
356
|
-
case "conversation.created": return
|
|
357
|
-
case "conversation.updated": return
|
|
358
|
-
case "conversation.archived": return
|
|
359
|
-
case "webhook.created": return
|
|
360
|
-
case "webhook.updated": return
|
|
361
|
-
case "webhook.deleted": return
|
|
362
|
-
case "webhook.test": return
|
|
363
|
-
case "domain.updated": return
|
|
364
|
-
case "domain.warming.updated": return
|
|
365
|
-
case "template.registration.updated": return
|
|
366
|
-
case "flow.registration.updated": return
|
|
367
|
-
case "whatsapp.number.connected": return
|
|
368
|
-
case "mailbox.message.received": return
|
|
369
|
-
case "mailbox.message.sent": return
|
|
370
|
-
case "mailbox.action.pending_approval": return
|
|
371
|
-
case "mailbox.action.resolved": return
|
|
372
|
-
case "mailbox.message.quarantined": return
|
|
373
|
-
case "mailbox.message.released": return
|
|
374
|
-
case "mailbox.message.discarded": return
|
|
375
|
-
case "mailbox.message.delivered": return
|
|
376
|
-
case "mailbox.message.read": return
|
|
377
|
-
case "mailbox.message.failed": return
|
|
378
|
-
case "journey.webhook": return
|
|
345
|
+
case "message.opened": return validate846(value);
|
|
346
|
+
case "message.clicked": return validate894(value);
|
|
347
|
+
case "contact.created": return validate946(value);
|
|
348
|
+
case "contact.updated": return validate972(value);
|
|
349
|
+
case "contact.deleted": return validate998(value);
|
|
350
|
+
case "contact.subscribed": return validate1024(value);
|
|
351
|
+
case "contact.unsubscribed": return validate1062(value);
|
|
352
|
+
case "contact.resubscribed": return validate1100(value);
|
|
353
|
+
case "contact.consent_changed": return validate1138(value);
|
|
354
|
+
case "conversation.created": return validate1155(value);
|
|
355
|
+
case "conversation.updated": return validate1177(value);
|
|
356
|
+
case "conversation.archived": return validate1199(value);
|
|
357
|
+
case "webhook.created": return validate1221(value);
|
|
358
|
+
case "webhook.updated": return validate1238(value);
|
|
359
|
+
case "webhook.deleted": return validate1255(value);
|
|
360
|
+
case "webhook.test": return validate1272(value);
|
|
361
|
+
case "domain.updated": return validate1276(value);
|
|
362
|
+
case "domain.warming.updated": return validate1318(value);
|
|
363
|
+
case "template.registration.updated": return validate1342(value);
|
|
364
|
+
case "flow.registration.updated": return validate1378(value);
|
|
365
|
+
case "whatsapp.number.connected": return validate1420(value);
|
|
366
|
+
case "mailbox.message.received": return validate1440(value);
|
|
367
|
+
case "mailbox.message.sent": return validate1493(value);
|
|
368
|
+
case "mailbox.action.pending_approval": return validate1545(value);
|
|
369
|
+
case "mailbox.action.resolved": return validate1599(value);
|
|
370
|
+
case "mailbox.message.quarantined": return validate1634(value);
|
|
371
|
+
case "mailbox.message.released": return validate1656(value);
|
|
372
|
+
case "mailbox.message.discarded": return validate1717(value);
|
|
373
|
+
case "mailbox.message.delivered": return validate1745(value);
|
|
374
|
+
case "mailbox.message.read": return validate1760(value);
|
|
375
|
+
case "mailbox.message.failed": return validate1775(value);
|
|
376
|
+
case "journey.webhook": return validate1797(value);
|
|
379
377
|
default: return false;
|
|
380
378
|
}
|
|
381
379
|
};
|
|
@@ -389,38 +387,38 @@ const validateEvent = (value) => {
|
|
|
389
387
|
case "message.bounced": return validate344(value);
|
|
390
388
|
case "message.complained": return validate426(value);
|
|
391
389
|
case "message.received": return validate508(value);
|
|
392
|
-
case "message.opened": return
|
|
393
|
-
case "message.clicked": return
|
|
394
|
-
case "contact.created": return
|
|
395
|
-
case "contact.updated": return
|
|
396
|
-
case "contact.deleted": return
|
|
397
|
-
case "contact.subscribed": return
|
|
398
|
-
case "contact.unsubscribed": return
|
|
399
|
-
case "contact.resubscribed": return
|
|
400
|
-
case "contact.consent_changed": return
|
|
401
|
-
case "conversation.created": return
|
|
402
|
-
case "conversation.updated": return
|
|
403
|
-
case "conversation.archived": return
|
|
404
|
-
case "webhook.created": return
|
|
405
|
-
case "webhook.updated": return
|
|
406
|
-
case "webhook.deleted": return
|
|
407
|
-
case "webhook.test": return
|
|
408
|
-
case "domain.updated": return
|
|
409
|
-
case "domain.warming.updated": return
|
|
410
|
-
case "template.registration.updated": return
|
|
411
|
-
case "flow.registration.updated": return
|
|
412
|
-
case "whatsapp.number.connected": return
|
|
413
|
-
case "mailbox.message.received": return
|
|
414
|
-
case "mailbox.message.sent": return
|
|
415
|
-
case "mailbox.action.pending_approval": return
|
|
416
|
-
case "mailbox.action.resolved": return
|
|
417
|
-
case "mailbox.message.quarantined": return
|
|
418
|
-
case "mailbox.message.released": return
|
|
419
|
-
case "mailbox.message.discarded": return
|
|
420
|
-
case "mailbox.message.delivered": return
|
|
421
|
-
case "mailbox.message.read": return
|
|
422
|
-
case "mailbox.message.failed": return
|
|
423
|
-
case "journey.webhook": return
|
|
390
|
+
case "message.opened": return validate846(value);
|
|
391
|
+
case "message.clicked": return validate894(value);
|
|
392
|
+
case "contact.created": return validate946(value);
|
|
393
|
+
case "contact.updated": return validate972(value);
|
|
394
|
+
case "contact.deleted": return validate998(value);
|
|
395
|
+
case "contact.subscribed": return validate1024(value);
|
|
396
|
+
case "contact.unsubscribed": return validate1062(value);
|
|
397
|
+
case "contact.resubscribed": return validate1100(value);
|
|
398
|
+
case "contact.consent_changed": return validate1138(value);
|
|
399
|
+
case "conversation.created": return validate1155(value);
|
|
400
|
+
case "conversation.updated": return validate1177(value);
|
|
401
|
+
case "conversation.archived": return validate1199(value);
|
|
402
|
+
case "webhook.created": return validate1221(value);
|
|
403
|
+
case "webhook.updated": return validate1238(value);
|
|
404
|
+
case "webhook.deleted": return validate1255(value);
|
|
405
|
+
case "webhook.test": return validate1272(value);
|
|
406
|
+
case "domain.updated": return validate1276(value);
|
|
407
|
+
case "domain.warming.updated": return validate1318(value);
|
|
408
|
+
case "template.registration.updated": return validate1342(value);
|
|
409
|
+
case "flow.registration.updated": return validate1378(value);
|
|
410
|
+
case "whatsapp.number.connected": return validate1420(value);
|
|
411
|
+
case "mailbox.message.received": return validate1440(value);
|
|
412
|
+
case "mailbox.message.sent": return validate1493(value);
|
|
413
|
+
case "mailbox.action.pending_approval": return validate1545(value);
|
|
414
|
+
case "mailbox.action.resolved": return validate1599(value);
|
|
415
|
+
case "mailbox.message.quarantined": return validate1634(value);
|
|
416
|
+
case "mailbox.message.released": return validate1656(value);
|
|
417
|
+
case "mailbox.message.discarded": return validate1717(value);
|
|
418
|
+
case "mailbox.message.delivered": return validate1745(value);
|
|
419
|
+
case "mailbox.message.read": return validate1760(value);
|
|
420
|
+
case "mailbox.message.failed": return validate1775(value);
|
|
421
|
+
case "journey.webhook": return validate1797(value);
|
|
424
422
|
default: return true;
|
|
425
423
|
}
|
|
426
424
|
};
|
|
@@ -751,4 +749,4 @@ const readWebhookHeaders = (headers) => requireHeaders({
|
|
|
751
749
|
//#endregion
|
|
752
750
|
export { WebhookTimestampError as _, encodeWebhookSignature as a, signWebhook as c, webhookSignedContent as d, InvalidWebhookHeadersError as f, WebhookSignatureError as g, WebhookCryptoError as h, WEBHOOK_TIMESTAMP_HEADER as i, verifyWebhookAt as l, MalformedWebhookPayloadError as m, WEBHOOK_ID_HEADER as n, generateWebhookSecret as o, InvalidWebhookSecretError as p, WEBHOOK_SIGNATURE_HEADER as r, readWebhookHeaders as s, DEFAULT_TOLERANCE_SECONDS as t, verifyWebhookAtWithPublicKeys as u, WebhookVerificationError as v, isKnownEvent as y };
|
|
753
751
|
|
|
754
|
-
//# sourceMappingURL=protocol-
|
|
752
|
+
//# sourceMappingURL=protocol-D6Od0Usw.js.map
|