feat: Extend webhook support for scope_expression and payload (#2874)

* add: scope_expression and payload columns for v1_webhook

* refactor: insert or update sql cmds for v1_webhook

* feat: update api clients, openapi schema for new webhook body

* refactor: receiver and transformer for v1 webhook

* add: python sdk changes

* feat: ts sdk changes

* feat: add FE for webhook new params

* fix: scope expression empty payload

* add: support for scope and payload for go client

* fix: lint

* fix: error message UI on webhook

* fix: lint

* fix: migraiton conflict, build failure

* fix: error handling

* update docs, add tests

* fix: lint, test file name
This commit is contained in:
Jishnu
2026-02-04 23:14:52 +05:30
committed by GitHub
parent 911750a367
commit ed43cae0a2
29 changed files with 1621 additions and 415 deletions
+4
View File
@@ -576,6 +576,8 @@ CREATE TABLE v1_incoming_webhook (
-- CEL expression that creates an event key
-- from the payload of the webhook
event_key_expression TEXT NOT NULL,
scope_expression TEXT,
static_payload JSONB,
auth_method v1_incoming_webhook_auth_type NOT NULL,
@@ -622,6 +624,8 @@ CREATE TABLE v1_incoming_webhook (
)
),
CHECK (LENGTH(event_key_expression) > 0),
-- Optional: prevent empty string but allow NULL
CHECK (scope_expression IS NULL OR LENGTH(scope_expression) > 0),
CHECK (LENGTH(name) > 0)
);