Skip to content

feat(api): webhooks can subscribe to sessions.navigations.blocked - #260

Merged
kunwar-bot merged 1 commit into
mainfrom
kunwarsodhi/webhook-navigation-blocked-example
Dec 1, 2026
Merged

kunwar-bot merged 1 commit into
mainfrom
kunwarsodhi/webhook-navigation-blocked-example

Conversation

@kunwar-bot

Copy link
Copy Markdown
Contributor

Summary

Adds examples/webhook-navigation-blocked.ts: registers a webhook for sessions.navigations.blocked, the event Browserbase sends for each navigation a session's navigation policy blocks.

The event type reached this SDK in 8e490fe (generated from the API spec), but that commit's subject isn't a conventional commit, so release-please doesn't count it. This PR's squash title, feat(api): webhooks can subscribe to sessions.navigations.blocked, gives the next release its changelog line.

Only examples/ changes; no generated code.

Testing

The API side is live: a webhook registered through POST /v1/webhooks for this event type received a delivery for each blocked navigation, with the session ID, the URL and the decision time.

This example file itself has not been run; CI type-checks it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@kunwar-bot
kunwar-bot requested a review from a team as a code owner December 1, 2026 23:18

@jordin jordin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as browserbase/sdk-python#237, and right. It registers the webhook for sessions.navigations.blocked, prints only the secret's first 6 characters, and says to store the secret. The type check passes, so eventTypes and secret are on the generated type. The feat(api) title gives release-please the changelog line the generated commit 8e490fe didn't.

@kunwar-bot
kunwar-bot merged commit b100c2d into main Dec 1, 2026
10 checks passed
@kunwar-bot
kunwar-bot deleted the kunwarsodhi/webhook-navigation-blocked-example branch December 1, 2026 23:39
@browserbase-stlc-bot browserbase-stlc-bot Bot mentioned this pull request Dec 1, 2026
kunwar-bot pushed a commit that referenced this pull request Dec 1, 2026
Automated Release PR
---


##
[2.30.0](v2.29.0...v2.30.0)
(2026-12-01)


### Features

* **api:** fetch accepts allowedDomains
([#258](#258))
([e9e8798](e9e8798))
* **api:** webhooks can subscribe to sessions.navigations.blocked
([#260](#260))
([b100c2d](b100c2d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: browserbase-stlc-bot[bot] <316693977+browserbase-stlc-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants