openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 2.47 kB
JavaScript
import { a as isRequestBodyLimitError, c as requestBodyErrorToText, n as DEFAULT_WEBHOOK_MAX_BODY_BYTES, s as readRequestBodyWithLimit } from "../http-body-D3IMwTJJ.js";
import { p as createAuthRateLimiter } from "../auth-rate-limit-C2k5aTEA.js";
import { n as normalizePluginHttpPath } from "../http-route-overlap-Ck15uOqk.js";
import { n as rawDataToString } from "../ws-C3ckvj65.js";
import { a as createBoundedCounter, i as WEBHOOK_RATE_LIMIT_DEFAULTS, n as WEBHOOK_ANOMALY_COUNTER_DEFAULTS, o as createFixedWindowRateLimiter, r as WEBHOOK_ANOMALY_STATUS_CODES, s as createWebhookAnomalyTracker, t as resolveRequestClientIp } from "../webhook-ingress-CpRSOilv.js";
import { a as createWebhookInFlightLimiter, c as readWebhookBodyOrReject, i as beginWebhookRequestPipelineOrReject, n as WEBHOOK_IN_FLIGHT_DEFAULTS, o as isJsonContentType, r as applyBasicWebhookRequestGuards, s as readJsonWebhookBodyOrReject, t as WEBHOOK_BODY_READ_DEFAULTS } from "../webhook-request-guards-BoKMzZgq.js";
import { r as registerPluginHttpRoute } from "../http-registry-BDq8iS_8.js";
import { c as resolveWebhookPath, d as resolveWebhookTargets, f as withResolvedWebhookRequestPipeline, i as registerWebhookTargetWithPluginRoute, l as resolveWebhookTargetWithAuthOrReject, n as normalizeWebhookPath, o as resolveSingleWebhookTarget, r as registerWebhookTarget, s as resolveSingleWebhookTargetAsync, t as canonicalizeWebhookRouteKey, u as resolveWebhookTargetWithAuthOrRejectSync } from "../webhook-targets-DjIbD8oM.js";
export { DEFAULT_WEBHOOK_MAX_BODY_BYTES, WEBHOOK_ANOMALY_COUNTER_DEFAULTS, WEBHOOK_ANOMALY_STATUS_CODES, WEBHOOK_BODY_READ_DEFAULTS, WEBHOOK_IN_FLIGHT_DEFAULTS, WEBHOOK_RATE_LIMIT_DEFAULTS, applyBasicWebhookRequestGuards, beginWebhookRequestPipelineOrReject, canonicalizeWebhookRouteKey, createAuthRateLimiter, createBoundedCounter, createFixedWindowRateLimiter, createWebhookAnomalyTracker, createWebhookInFlightLimiter, isJsonContentType, isRequestBodyLimitError, normalizePluginHttpPath, normalizeWebhookPath, rawDataToString, readJsonWebhookBodyOrReject, readRequestBodyWithLimit, readWebhookBodyOrReject, registerPluginHttpRoute, registerWebhookTarget, registerWebhookTargetWithPluginRoute, requestBodyErrorToText, resolveRequestClientIp, resolveSingleWebhookTarget, resolveSingleWebhookTargetAsync, resolveWebhookPath, resolveWebhookTargetWithAuthOrReject, resolveWebhookTargetWithAuthOrRejectSync, resolveWebhookTargets, withResolvedWebhookRequestPipeline };