@samva/webhooks 0.30.0 → 0.32.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.
@@ -148,190 +148,189 @@ const validate897 = (value) => isObject(value) && isObject(value) && Object.hasO
148
148
  const validate911 = (value) => isObject(value) && isObject(value) && Object.entries(value).every(([key, item]) => validate45(item));
149
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
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"]));
151
+ const validate949 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "status") && Object.hasOwn(value, "name") && Object.hasOwn(value, "identities") && Object.hasOwn(value, "tags") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "contactId") || validate950(value["contactId"])) && (!Object.hasOwn(value, "status") || validate951(value["status"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "displayName") || validate953(value["displayName"])) && (!Object.hasOwn(value, "identities") || validate957(value["identities"])) && (!Object.hasOwn(value, "tags") || validate45(value["tags"])) && (!Object.hasOwn(value, "externalId") || validate953(value["externalId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
152
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
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";
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"]));
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"]));
154
+ const validate953 = (value) => validate2(value) || validate6(value) || validate6(value);
155
+ const validate957 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate958);
156
+ const validate958 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && Object.hasOwn(value, "verified") && (!Object.hasOwn(value, "type") || validate959(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"])) && (!Object.hasOwn(value, "verified") || validate33(value["verified"]));
157
+ const validate959 = (value) => typeof value === "string" && (value === "email" || value === "phone");
158
+ const validate970 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate971(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate949(value["data"]));
159
+ const validate971 = (value) => typeof value === "string" && value === "contact.updated";
160
+ const validate994 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate995(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate949(value["data"]));
161
+ const validate995 = (value) => typeof value === "string" && value === "contact.deleted";
162
+ const validate1018 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1019(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1021(value["data"]));
163
+ const validate1019 = (value) => typeof value === "string" && value === "contact.subscribed";
164
+ const validate1021 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "topicId") && Object.hasOwn(value, "topicName") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "source") && Object.hasOwn(value, "occurredAt") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate950(value["contactId"])) && (!Object.hasOwn(value, "email") || validate8(value["email"])) && (!Object.hasOwn(value, "topicId") || validate1027(value["topicId"])) && (!Object.hasOwn(value, "topicName") || validate2(value["topicName"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "consentIp") || validate8(value["consentIp"])) && (!Object.hasOwn(value, "consentSource") || validate8(value["consentSource"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "formKey") || validate8(value["formKey"])) && (!Object.hasOwn(value, "page") || validate8(value["page"])) && (!Object.hasOwn(value, "referrer") || validate8(value["referrer"])) && (!Object.hasOwn(value, "messageId") || validate778(value["messageId"])) && (!Object.hasOwn(value, "campaignId") || validate888(value["campaignId"])) && (!Object.hasOwn(value, "campaignRunId") || validate891(value["campaignRunId"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
165
+ const validate1027 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^unsub_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
166
+ const validate1056 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1057(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1021(value["data"]));
167
+ const validate1057 = (value) => typeof value === "string" && value === "contact.unsubscribed";
168
+ const validate1094 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1095(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1021(value["data"]));
169
+ const validate1095 = (value) => typeof value === "string" && value === "contact.resubscribed";
170
+ const validate1132 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1133(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1135(value["data"]));
171
+ const validate1133 = (value) => typeof value === "string" && value === "contact.consent_changed";
172
+ const validate1135 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "contactId") && Object.hasOwn(value, "identity") && Object.hasOwn(value, "channel") && Object.hasOwn(value, "status") && Object.hasOwn(value, "previousStatus") && Object.hasOwn(value, "source") && Object.hasOwn(value, "capturedAt") && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "contactId") || validate950(value["contactId"])) && (!Object.hasOwn(value, "identity") || validate1138(value["identity"])) && (!Object.hasOwn(value, "channel") || validate7(value["channel"])) && (!Object.hasOwn(value, "status") || validate1143(value["status"])) && (!Object.hasOwn(value, "previousStatus") || validate1144(value["previousStatus"])) && (!Object.hasOwn(value, "source") || validate2(value["source"])) && (!Object.hasOwn(value, "capturedAt") || validate2(value["capturedAt"]));
173
+ const validate1138 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "type") && Object.hasOwn(value, "identifier") && (!Object.hasOwn(value, "id") || validate1139(value["id"])) && (!Object.hasOwn(value, "type") || validate959(value["type"])) && (!Object.hasOwn(value, "identifier") || validate2(value["identifier"]));
174
+ const validate1139 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^cident_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
175
+ const validate1143 = (value) => typeof value === "string" && (value === "opted_in" || value === "opted_out");
176
+ const validate1144 = (value) => validate1143(value) || validate6(value);
177
+ const validate1149 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1150(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1152(value["data"]));
178
+ const validate1150 = (value) => typeof value === "string" && value === "conversation.created";
179
+ const validate1152 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "conversationId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "channels") && Object.hasOwn(value, "primaryChannel") && Object.hasOwn(value, "status") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "conversationId") || validate1153(value["conversationId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "title") || validate953(value["title"])) && (!Object.hasOwn(value, "channels") || validate1159(value["channels"])) && (!Object.hasOwn(value, "primaryChannel") || validate7(value["primaryChannel"])) && (!Object.hasOwn(value, "status") || validate1162(value["status"])) && (!Object.hasOwn(value, "primaryContactId") || validate1163(value["primaryContactId"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
180
+ const validate1153 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^conv_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
181
+ const validate1159 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate7);
182
+ const validate1162 = (value) => typeof value === "string" && (value === "active" || value === "waiting" || value === "resolved" || value === "escalated" || value === "archived");
183
+ const validate1163 = (value) => validate950(value) || validate6(value) || validate6(value);
184
+ const validate1169 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1170(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1152(value["data"]));
185
+ const validate1170 = (value) => typeof value === "string" && value === "conversation.updated";
186
+ const validate1189 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1190(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1152(value["data"]));
187
+ const validate1190 = (value) => typeof value === "string" && value === "conversation.archived";
188
+ const validate1209 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1210(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1212(value["data"]));
189
+ const validate1210 = (value) => typeof value === "string" && value === "webhook.created";
190
+ const validate1212 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "webhookId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "name") && Object.hasOwn(value, "url") && Object.hasOwn(value, "eventTypes") && Object.hasOwn(value, "channels") && Object.hasOwn(value, "status") && Object.hasOwn(value, "createdAt") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "webhookId") || validate1213(value["webhookId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "url") || validate2(value["url"])) && (!Object.hasOwn(value, "eventTypes") || validate45(value["eventTypes"])) && (!Object.hasOwn(value, "channels") || validate44(value["channels"])) && (!Object.hasOwn(value, "status") || validate1223(value["status"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
191
+ const validate1213 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
192
+ const validate1223 = (value) => typeof value === "string" && (value === "active" || value === "disabled");
193
+ const validate1226 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1227(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1212(value["data"]));
194
+ const validate1227 = (value) => typeof value === "string" && value === "webhook.updated";
195
+ const validate1243 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1244(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1212(value["data"]));
196
+ const validate1244 = (value) => typeof value === "string" && value === "webhook.deleted";
197
+ const validate1260 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1261(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
198
+ const validate1261 = (value) => typeof value === "string" && value === "webhook.test";
199
+ const validate1264 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1265(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1267(value["data"]));
200
+ const validate1265 = (value) => typeof value === "string" && value === "domain.updated";
201
+ const validate1267 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "domainId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "domain") && Object.hasOwn(value, "previousPhase") && Object.hasOwn(value, "phase") && Object.hasOwn(value, "dns") && Object.hasOwn(value, "provider") && Object.hasOwn(value, "operationId") && Object.hasOwn(value, "checkedAt") && Object.hasOwn(value, "nextCheckAt") && Object.hasOwn(value, "failure") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "domainId") || validate1268(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate851(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "previousPhase") || validate1271(value["previousPhase"])) && (!Object.hasOwn(value, "phase") || validate1271(value["phase"])) && (!Object.hasOwn(value, "dns") || validate1273(value["dns"])) && (!Object.hasOwn(value, "provider") || validate1280(value["provider"])) && (!Object.hasOwn(value, "operationId") || validate1290(value["operationId"])) && (!Object.hasOwn(value, "checkedAt") || validate8(value["checkedAt"])) && (!Object.hasOwn(value, "nextCheckAt") || validate8(value["nextCheckAt"])) && (!Object.hasOwn(value, "failure") || validate1299(value["failure"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
202
+ const validate1268 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^dom_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
203
+ const validate1271 = (value) => typeof value === "string" && (value === "dns-setup" || value === "provisioning" || value === "verifying" || value === "ready" || value === "degraded" || value === "failed");
204
+ const validate1273 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "observed") && Object.hasOwn(value, "total") && Object.hasOwn(value, "satisfied") && Object.hasOwn(value, "missing") && Object.hasOwn(value, "mismatch") && Object.hasOwn(value, "unknown") && (!Object.hasOwn(value, "observed") || validate33(value["observed"])) && (!Object.hasOwn(value, "total") || validate1275(value["total"])) && (!Object.hasOwn(value, "satisfied") || validate1275(value["satisfied"])) && (!Object.hasOwn(value, "missing") || validate1275(value["missing"])) && (!Object.hasOwn(value, "mismatch") || validate1275(value["mismatch"])) && (!Object.hasOwn(value, "unknown") || validate1275(value["unknown"]));
205
+ const validate1275 = (value) => typeof value === "number" && Number.isInteger(value) && typeof value === "number" && value >= -9007199254740991 && typeof value === "number" && value <= 9007199254740991;
206
+ const validate1280 = (value) => validate1281(value) || validate6(value);
207
+ const validate1281 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "identity") && (!Object.hasOwn(value, "identity") || validate1282(value["identity"])) && (!Object.hasOwn(value, "dkim") || validate1283(value["dkim"])) && (!Object.hasOwn(value, "mailFrom") || validate1283(value["mailFrom"]));
208
+ const validate1282 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "unknown");
209
+ const validate1283 = (value) => validate1282(value) || validate6(value);
210
+ const validate1290 = (value) => validate1291(value) || validate6(value);
211
+ const validate1291 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^op_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
212
+ const validate1299 = (value) => validate1300(value) || validate6(value);
213
+ const validate1300 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "code") && Object.hasOwn(value, "message") && Object.hasOwn(value, "failedAt") && (!Object.hasOwn(value, "code") || validate2(value["code"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "failedAt") || validate2(value["failedAt"]));
214
+ const validate1306 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1307(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1309(value["data"]));
215
+ const validate1307 = (value) => typeof value === "string" && value === "domain.warming.updated";
216
+ const validate1309 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "domainId") && Object.hasOwn(value, "organizationId") && Object.hasOwn(value, "domain") && Object.hasOwn(value, "planId") && Object.hasOwn(value, "reason") && Object.hasOwn(value, "status") && Object.hasOwn(value, "holdReason") && Object.hasOwn(value, "batch") && Object.hasOwn(value, "updatedAt") && (!Object.hasOwn(value, "domainId") || validate2(value["domainId"])) && (!Object.hasOwn(value, "organizationId") || validate2(value["organizationId"])) && (!Object.hasOwn(value, "domain") || validate2(value["domain"])) && (!Object.hasOwn(value, "planId") || validate2(value["planId"])) && (!Object.hasOwn(value, "reason") || validate1314(value["reason"])) && (!Object.hasOwn(value, "status") || validate1315(value["status"])) && (!Object.hasOwn(value, "holdReason") || validate8(value["holdReason"])) && (!Object.hasOwn(value, "batch") || validate1319(value["batch"])) && (!Object.hasOwn(value, "updatedAt") || validate2(value["updatedAt"]));
217
+ const validate1314 = (value) => typeof value === "string" && (value === "plan-created" || value === "policy-updated" || value === "window-opened" || value === "window-cancelled" || value === "paused" || value === "resumed" || value === "held" || value === "completed");
218
+ const validate1315 = (value) => typeof value === "string" && (value === "active" || value === "paused" || value === "completed");
219
+ const validate1319 = (value) => validate1320(value) || validate6(value);
220
+ const validate1320 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "sequence") && Object.hasOwn(value, "startsAt") && Object.hasOwn(value, "endsAt") && Object.hasOwn(value, "allowanceRecipients") && Object.hasOwn(value, "dailyGrowthPercent") && Object.hasOwn(value, "targetDailyRecipients") && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "sequence") || validate15(value["sequence"])) && (!Object.hasOwn(value, "startsAt") || validate2(value["startsAt"])) && (!Object.hasOwn(value, "endsAt") || validate2(value["endsAt"])) && (!Object.hasOwn(value, "allowanceRecipients") || validate15(value["allowanceRecipients"])) && (!Object.hasOwn(value, "dailyGrowthPercent") || validate15(value["dailyGrowthPercent"])) && (!Object.hasOwn(value, "targetDailyRecipients") || validate15(value["targetDailyRecipients"]));
221
+ const validate1330 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1331(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1333(value["data"]));
222
+ const validate1331 = (value) => typeof value === "string" && value === "template.registration.updated";
223
+ const validate1333 = (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") || validate1334(value["id"])) && (!Object.hasOwn(value, "templateId") || validate1335(value["templateId"])) && (!Object.hasOwn(value, "publicationId") || validate1336(value["publicationId"])) && (!Object.hasOwn(value, "target") || validate1337(value["target"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "language") || validate2(value["language"])) && (!Object.hasOwn(value, "status") || validate1347(value["status"])) && (!Object.hasOwn(value, "category") || validate1348(value["category"])) && (!Object.hasOwn(value, "providerCategory") || validate1349(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") || validate1347(value["previousStatus"]));
224
+ const validate1334 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^treg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
225
+ const validate1335 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tmpl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
226
+ const validate1336 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^tpub_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
227
+ const validate1337 = (value) => validate1338(value) || validate1341(value);
228
+ const validate1338 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "wabaId") && (!Object.hasOwn(value, "provider") || validate1339(value["provider"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"]));
229
+ const validate1339 = (value) => typeof value === "string" && value === "whatsapp";
230
+ const validate1341 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "provider") && Object.hasOwn(value, "entityId") && Object.hasOwn(value, "headerId") && (!Object.hasOwn(value, "provider") || validate1342(value["provider"])) && (!Object.hasOwn(value, "entityId") || validate2(value["entityId"])) && (!Object.hasOwn(value, "headerId") || validate2(value["headerId"]));
231
+ const validate1342 = (value) => typeof value === "string" && value === "dlt";
232
+ const validate1347 = (value) => typeof value === "string" && (value === "draft" || value === "submitted" || value === "approved" || value === "rejected" || value === "paused" || value === "disabled");
233
+ const validate1348 = (value) => typeof value === "string" && (value === "marketing" || value === "utility" || value === "authentication" || value === "transactional" || value === "service_implicit" || value === "service_explicit" || value === "promotional");
234
+ const validate1349 = (value) => validate1348(value) || validate6(value);
235
+ const validate1366 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1367(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1369(value["data"]));
236
+ const validate1367 = (value) => typeof value === "string" && value === "flow.registration.updated";
237
+ const validate1369 = (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") || validate1370(value["id"])) && (!Object.hasOwn(value, "flowId") || validate746(value["flowId"])) && (!Object.hasOwn(value, "versionId") || validate752(value["versionId"])) && (!Object.hasOwn(value, "versionNumber") || validate1275(value["versionNumber"])) && (!Object.hasOwn(value, "wabaId") || validate2(value["wabaId"])) && (!Object.hasOwn(value, "providerFlowId") || validate8(value["providerFlowId"])) && (!Object.hasOwn(value, "name") || validate2(value["name"])) && (!Object.hasOwn(value, "status") || validate1379(value["status"])) && (!Object.hasOwn(value, "validationErrors") || validate1380(value["validationErrors"])) && (!Object.hasOwn(value, "endpointAlerts") || validate1387(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") || validate1405(value["previousStatus"]));
238
+ const validate1370 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wafreg_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
239
+ const validate1379 = (value) => typeof value === "string" && (value === "draft" || value === "published" || value === "throttled" || value === "blocked" || value === "deprecated");
240
+ const validate1380 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1381);
241
+ const validate1381 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "error") && Object.hasOwn(value, "message") && (!Object.hasOwn(value, "error") || validate2(value["error"])) && (!Object.hasOwn(value, "message") || validate2(value["message"])) && (!Object.hasOwn(value, "path") || validate2(value["path"])) && (!Object.hasOwn(value, "line") || validate1275(value["line"])) && (!Object.hasOwn(value, "column") || validate1275(value["column"]));
242
+ const validate1387 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1388);
243
+ const validate1388 = (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"]));
244
+ const validate1405 = (value) => validate1379(value) || validate6(value);
245
+ const validate1408 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1409(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1411(value["data"]));
246
+ const validate1409 = (value) => typeof value === "string" && value === "whatsapp.number.connected";
247
+ const validate1411 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "businessAccountId") || validate1416(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") || validate1421(value["verificationStatus"])) && (!Object.hasOwn(value, "reconnected") || validate33(value["reconnected"])) && (!Object.hasOwn(value, "setupLink") || validate1423(value["setupLink"]));
248
+ const validate1413 = (value) => validate1414(value) || validate6(value);
249
+ const validate1414 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^ns_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
250
+ const validate1416 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^waba_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
251
+ const validate1421 = (value) => typeof value === "string" && (value === "pending" || value === "verified" || value === "failed" || value === "suspended");
252
+ const validate1423 = (value) => validate1424(value) || validate6(value);
253
+ const validate1424 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "metadata") && (!Object.hasOwn(value, "id") || validate1425(value["id"])) && (!Object.hasOwn(value, "metadata") || validate1426(value["metadata"]));
254
+ const validate1425 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^wasl_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
255
+ const validate1426 = (value) => isObject(value) && isObject(value);
256
+ const validate1428 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1429(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1431(value["data"]));
257
+ const validate1429 = (value) => typeof value === "string" && value === "mailbox.message.received";
258
+ const validate1431 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "message") || validate1436(value["message"])) && (!Object.hasOwn(value, "thread") || validate1470(value["thread"]));
259
+ const validate1436 = (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") || validate1443(value["channel"])) && (!Object.hasOwn(value, "threadId") || validate1444(value["threadId"])) && (!Object.hasOwn(value, "from") || validate1445(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") || validate1463(value["attachments"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"]));
260
+ const validate1443 = (value) => typeof value === "string" && (value === "email" || value === "whatsapp" || value === "sms");
261
+ const validate1444 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^thread_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
262
+ const validate1445 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "address") && (!Object.hasOwn(value, "address") || validate2(value["address"])) && (!Object.hasOwn(value, "name") || validate8(value["name"]));
263
+ const validate1463 = (value) => Array.isArray(value) && Array.isArray(value) && value.every(validate1464);
264
+ const validate1464 = (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") || validate1465(value["id"])) && (!Object.hasOwn(value, "filename") || validate2(value["filename"])) && (!Object.hasOwn(value, "contentType") || validate2(value["contentType"])) && (!Object.hasOwn(value, "size") || validate15(value["size"]));
265
+ const validate1465 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^att_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
266
+ const validate1470 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "id") && Object.hasOwn(value, "subject") && Object.hasOwn(value, "preview") && (!Object.hasOwn(value, "id") || validate1444(value["id"])) && (!Object.hasOwn(value, "endpointId") || validate1472(value["endpointId"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "preview") || validate8(value["preview"]));
267
+ const validate1472 = (value) => validate1473(value) || validate6(value);
268
+ const validate1473 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxep_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
269
+ const validate1481 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1482(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1484(value["data"]));
270
+ const validate1482 = (value) => typeof value === "string" && value === "mailbox.message.sent";
271
+ const validate1484 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "actionId") || validate1489(value["actionId"])) && (!Object.hasOwn(value, "state") || validate1490(value["state"])) && (!Object.hasOwn(value, "acceptedAt") || validate2(value["acceptedAt"])) && (!Object.hasOwn(value, "actor") || validate1492(value["actor"])) && (!Object.hasOwn(value, "message") || validate1436(value["message"]));
272
+ const validate1489 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxact_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
273
+ const validate1490 = (value) => typeof value === "string" && value === "completed";
274
+ const validate1492 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "kind") && Object.hasOwn(value, "id") && Object.hasOwn(value, "source") && (!Object.hasOwn(value, "kind") || validate1493(value["kind"])) && (!Object.hasOwn(value, "id") || validate2(value["id"])) && (!Object.hasOwn(value, "displayName") || validate8(value["displayName"])) && (!Object.hasOwn(value, "source") || validate1498(value["source"]));
275
+ const validate1493 = (value) => typeof value === "string" && (value === "user" || value === "apiKey" || value === "extension" || value === "externalAgent" || value === "samvaAgent" || value === "system");
276
+ const validate1498 = (value) => typeof value === "string" && (value === "humanUi" || value === "externalApi" || value === "externalAgent" || value === "extension" || value === "samvaManagedAgent" || value === "system");
277
+ const validate1533 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1534(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1536(value["data"]));
278
+ const validate1534 = (value) => typeof value === "string" && value === "mailbox.action.pending_approval";
279
+ const validate1536 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1541(value["action"])) && (!Object.hasOwn(value, "draft") || validate1571(value["draft"])) && (!Object.hasOwn(value, "tool") || validate1581(value["tool"]));
280
+ const validate1541 = (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") || validate1489(value["id"])) && (!Object.hasOwn(value, "type") || validate1543(value["type"])) && (!Object.hasOwn(value, "state") || validate1544(value["state"])) && (!Object.hasOwn(value, "decision") || validate1545(value["decision"])) && (!Object.hasOwn(value, "threadId") || validate1557(value["threadId"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "proposedBy") || validate1492(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
281
+ const validate1543 = (value) => typeof value === "string" && (value === "sendMessage" || value === "reply" || value === "updateDraft" || value === "createNote" || value === "assignThread" || value === "changeThreadState" || value === "call" || value === "extensionRequest" || value === "toolCall");
282
+ const validate1544 = (value) => typeof value === "string" && value === "approvalRequired";
283
+ const validate1545 = (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") || validate1546(value["outcome"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"])) && (!Object.hasOwn(value, "policyId") || validate1550(value["policyId"])) && (!Object.hasOwn(value, "source") || validate1553(value["source"])) && (!Object.hasOwn(value, "decidedAt") || validate2(value["decidedAt"]));
284
+ const validate1546 = (value) => typeof value === "string" && (value === "allow" || value === "requireApproval" || value === "deny");
285
+ const validate1550 = (value) => validate1551(value) || validate6(value);
286
+ const validate1551 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^mbxpol_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
287
+ const validate1553 = (value) => validate1554(value) || validate6(value);
288
+ const validate1554 = (value) => typeof value === "string" && (value === "grant" || value === "installation" || value === "policy");
289
+ const validate1557 = (value) => validate1444(value) || validate6(value);
290
+ const validate1571 = (value) => validate1572(value) || validate6(value);
291
+ const validate1572 = (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"]));
292
+ const validate1581 = (value) => validate1582(value) || validate6(value);
293
+ const validate1582 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "name") && Object.hasOwn(value, "argumentsHash") && Object.hasOwn(value, "arguments") && (!Object.hasOwn(value, "name") || validate1583(value["name"])) && (!Object.hasOwn(value, "argumentsHash") || validate1584(value["argumentsHash"])) && (!Object.hasOwn(value, "arguments") || validate12(value["arguments"]));
294
+ const validate1583 = (value) => typeof value === "string" && typeof value === "string" && Array.from(value).length >= 1 && typeof value === "string" && Array.from(value).length <= 128;
295
+ const validate1584 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^[0-9a-f]{64}$", "u")).test(value);
296
+ const validate1587 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1588(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1590(value["data"]));
297
+ const validate1588 = (value) => typeof value === "string" && value === "mailbox.action.resolved";
298
+ const validate1590 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "action") || validate1595(value["action"])) && (!Object.hasOwn(value, "resolution") || validate1609(value["resolution"]));
299
+ const validate1595 = (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") || validate1489(value["id"])) && (!Object.hasOwn(value, "type") || validate1543(value["type"])) && (!Object.hasOwn(value, "threadId") || validate1557(value["threadId"])) && (!Object.hasOwn(value, "proposedBy") || validate1492(value["proposedBy"])) && (!Object.hasOwn(value, "createdAt") || validate2(value["createdAt"]));
300
+ const validate1609 = (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") || validate1610(value["outcome"])) && (!Object.hasOwn(value, "actor") || validate1492(value["actor"])) && (!Object.hasOwn(value, "resolvedAt") || validate2(value["resolvedAt"])) && (!Object.hasOwn(value, "reason") || validate8(value["reason"]));
301
+ const validate1610 = (value) => typeof value === "string" && (value === "approved" || value === "denied" || value === "cancelled");
302
+ const validate1622 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1623(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1625(value["data"]));
303
+ const validate1623 = (value) => typeof value === "string" && value === "mailbox.message.quarantined";
304
+ const validate1625 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "disposition") || validate1630(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate1631(value["reason"])) && (!Object.hasOwn(value, "source") || validate1632(value["source"])) && (!Object.hasOwn(value, "message") || validate1633(value["message"]));
305
+ const validate1630 = (value) => typeof value === "string" && (value === "quarantined" || value === "isolated");
306
+ const validate1631 = (value) => typeof value === "string" && (value === "spam" || value === "dmarc" || value === "virus" || value === "virus_unscanned" || value === "phishing" || value === "fraud" || value === "prompt_injection");
307
+ const validate1632 = (value) => typeof value === "string" && (value === "receipt" || value === "classifier");
308
+ const validate1633 = (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") || validate1445(value["from"])) && (!Object.hasOwn(value, "subject") || validate8(value["subject"])) && (!Object.hasOwn(value, "receivedAt") || validate2(value["receivedAt"]));
309
+ const validate1644 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1645(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1647(value["data"]));
310
+ const validate1645 = (value) => typeof value === "string" && value === "mailbox.message.released";
311
+ const validate1647 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "releasedBy") || validate1492(value["releasedBy"])) && (!Object.hasOwn(value, "reason") || validate1631(value["reason"])) && (!Object.hasOwn(value, "message") || validate1436(value["message"])) && (!Object.hasOwn(value, "thread") || validate1470(value["thread"]));
312
+ const validate1705 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1706(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1708(value["data"]));
313
+ const validate1706 = (value) => typeof value === "string" && value === "mailbox.message.discarded";
314
+ const validate1708 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "discardedBy") || validate1492(value["discardedBy"])) && (!Object.hasOwn(value, "disposition") || validate1630(value["disposition"])) && (!Object.hasOwn(value, "reason") || validate1631(value["reason"])) && (!Object.hasOwn(value, "message") || validate1633(value["message"]));
315
+ const validate1733 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1734(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1736(value["data"]));
316
+ const validate1734 = (value) => typeof value === "string" && value === "mailbox.message.delivered";
317
+ const validate1736 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1444(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1489(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate1443(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1747(value["status"]));
318
+ const validate1747 = (value) => typeof value === "string" && value === "delivered";
319
+ const validate1748 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1749(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1751(value["data"]));
320
+ const validate1749 = (value) => typeof value === "string" && value === "mailbox.message.read";
321
+ const validate1751 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1444(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1489(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate1443(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1762(value["status"]));
322
+ const validate1762 = (value) => typeof value === "string" && value === "read";
323
+ const validate1763 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1764(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1766(value["data"]));
324
+ const validate1764 = (value) => typeof value === "string" && value === "mailbox.message.failed";
325
+ const validate1766 = (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") || validate1413(value["namespaceId"])) && (!Object.hasOwn(value, "threadId") || validate1444(value["threadId"])) && (!Object.hasOwn(value, "actionId") || validate1489(value["actionId"])) && (!Object.hasOwn(value, "messageId") || validate779(value["messageId"])) && (!Object.hasOwn(value, "channel") || validate1443(value["channel"])) && (!Object.hasOwn(value, "recipient") || validate2(value["recipient"])) && (!Object.hasOwn(value, "occurredAt") || validate2(value["occurredAt"])) && (!Object.hasOwn(value, "status") || validate1777(value["status"])) && (!Object.hasOwn(value, "error") || validate1778(value["error"]));
326
+ const validate1777 = (value) => typeof value === "string" && value === "failed";
327
+ const validate1778 = (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"]));
328
+ const validate1785 = (value) => isObject(value) && isObject(value) && Object.hasOwn(value, "type") && Object.hasOwn(value, "timestamp") && Object.hasOwn(value, "data") && (!Object.hasOwn(value, "type") || validate1786(value["type"])) && (!Object.hasOwn(value, "timestamp") || validate2(value["timestamp"])) && (!Object.hasOwn(value, "data") || validate1788(value["data"]));
329
+ const validate1786 = (value) => typeof value === "string" && value === "journey.webhook";
330
+ const validate1788 = (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") || validate1790(value["journeyId"])) && (!Object.hasOwn(value, "journeyVersion") || validate1275(value["journeyVersion"])) && (!Object.hasOwn(value, "runId") || validate1792(value["runId"])) && (!Object.hasOwn(value, "nodeId") || validate2(value["nodeId"])) && (!Object.hasOwn(value, "contact") || validate1794(value["contact"])) && (!Object.hasOwn(value, "data") || validate12(value["data"]));
331
+ const validate1790 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrny_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
332
+ const validate1792 = (value) => typeof value === "string" && typeof value === "string" && (/* @__PURE__ */ new RegExp("^jrun_[0-9a-hjkmnp-tv-z]{16,24}$", "u")).test(value);
333
+ const validate1794 = (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"]));
335
334
  /** Narrow an event to a structurally valid payload known to this package. */
336
335
  const isKnownEvent = (value) => {
337
336
  switch (value.type) {
@@ -345,35 +344,35 @@ const isKnownEvent = (value) => {
345
344
  case "message.opened": return validate846(value);
346
345
  case "message.clicked": return validate894(value);
347
346
  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);
347
+ case "contact.updated": return validate970(value);
348
+ case "contact.deleted": return validate994(value);
349
+ case "contact.subscribed": return validate1018(value);
350
+ case "contact.unsubscribed": return validate1056(value);
351
+ case "contact.resubscribed": return validate1094(value);
352
+ case "contact.consent_changed": return validate1132(value);
353
+ case "conversation.created": return validate1149(value);
354
+ case "conversation.updated": return validate1169(value);
355
+ case "conversation.archived": return validate1189(value);
356
+ case "webhook.created": return validate1209(value);
357
+ case "webhook.updated": return validate1226(value);
358
+ case "webhook.deleted": return validate1243(value);
359
+ case "webhook.test": return validate1260(value);
360
+ case "domain.updated": return validate1264(value);
361
+ case "domain.warming.updated": return validate1306(value);
362
+ case "template.registration.updated": return validate1330(value);
363
+ case "flow.registration.updated": return validate1366(value);
364
+ case "whatsapp.number.connected": return validate1408(value);
365
+ case "mailbox.message.received": return validate1428(value);
366
+ case "mailbox.message.sent": return validate1481(value);
367
+ case "mailbox.action.pending_approval": return validate1533(value);
368
+ case "mailbox.action.resolved": return validate1587(value);
369
+ case "mailbox.message.quarantined": return validate1622(value);
370
+ case "mailbox.message.released": return validate1644(value);
371
+ case "mailbox.message.discarded": return validate1705(value);
372
+ case "mailbox.message.delivered": return validate1733(value);
373
+ case "mailbox.message.read": return validate1748(value);
374
+ case "mailbox.message.failed": return validate1763(value);
375
+ case "journey.webhook": return validate1785(value);
377
376
  default: return false;
378
377
  }
379
378
  };
@@ -390,35 +389,35 @@ const validateEvent = (value) => {
390
389
  case "message.opened": return validate846(value);
391
390
  case "message.clicked": return validate894(value);
392
391
  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);
392
+ case "contact.updated": return validate970(value);
393
+ case "contact.deleted": return validate994(value);
394
+ case "contact.subscribed": return validate1018(value);
395
+ case "contact.unsubscribed": return validate1056(value);
396
+ case "contact.resubscribed": return validate1094(value);
397
+ case "contact.consent_changed": return validate1132(value);
398
+ case "conversation.created": return validate1149(value);
399
+ case "conversation.updated": return validate1169(value);
400
+ case "conversation.archived": return validate1189(value);
401
+ case "webhook.created": return validate1209(value);
402
+ case "webhook.updated": return validate1226(value);
403
+ case "webhook.deleted": return validate1243(value);
404
+ case "webhook.test": return validate1260(value);
405
+ case "domain.updated": return validate1264(value);
406
+ case "domain.warming.updated": return validate1306(value);
407
+ case "template.registration.updated": return validate1330(value);
408
+ case "flow.registration.updated": return validate1366(value);
409
+ case "whatsapp.number.connected": return validate1408(value);
410
+ case "mailbox.message.received": return validate1428(value);
411
+ case "mailbox.message.sent": return validate1481(value);
412
+ case "mailbox.action.pending_approval": return validate1533(value);
413
+ case "mailbox.action.resolved": return validate1587(value);
414
+ case "mailbox.message.quarantined": return validate1622(value);
415
+ case "mailbox.message.released": return validate1644(value);
416
+ case "mailbox.message.discarded": return validate1705(value);
417
+ case "mailbox.message.delivered": return validate1733(value);
418
+ case "mailbox.message.read": return validate1748(value);
419
+ case "mailbox.message.failed": return validate1763(value);
420
+ case "journey.webhook": return validate1785(value);
422
421
  default: return true;
423
422
  }
424
423
  };
@@ -746,4 +745,4 @@ const readWebhookHeaders = (headers) => requireHeaders({
746
745
  });
747
746
  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 };
748
747
 
749
- //# sourceMappingURL=protocol-Dxbwh-ml.js.map
748
+ //# sourceMappingURL=protocol-Di63Knu8.js.map