Skip to content

feat(platform): sync webhook events; createHandler answers webhook.test.v2 - #407

Merged
ozsay merged 1 commit into
mainfrom
claude/webhook-test-v2
Dec 6, 2026
Merged

ozsay merged 1 commit into
mainfrom
claude/webhook-test-v2

Conversation

@ozsay

@ozsay ozsay commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Base44 now sends webhook.test.v2 (it names the endpoint's tenant: workspace, app or partner profile) to app and partner endpoints, and will move workspace endpoints to it next. webhook.test.v1 is deprecated from 2026-12-14. Until this ships, createHandler() passes a v2 probe to the callbacks and answers 204 without the challenge, so the endpoint never activates.

  • Syncs the event list from production: adds credits.threshold_reached.v1 and webhook.test.v2, and regenerates the types. webhook.test.v1 is now marked @deprecated. This supersedes Sync Platform SDK webhook events from production #404.
  • createHandler() echoes the challenge for both test events, and neither reaches the callbacks (DeliveredWebhookEvent excludes both).
  • Docs, README and the example handle both test events.
  • Generator: the v2 schema is the first with a nested model, so three fixes:
    • Property titles are no longer exported as type aliases (it would have exported Id).
    • A $ref property keeps its description.
    • Nested models get a description, since the docs build fails on undocumented exports.

Testing

npm test (types, unit, docs, package) and npm run lint pass. A unit test covers the v2 probe, and a type test covers event.data.tenant.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Package Preview Available! (@base44/platform)


Install this PR's preview build with npm:

npm i @base44-preview/platform@0.6.0-pr.407.82433bd

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/platform:

npm i "@base44/platform@npm:@base44-preview/platform@0.6.0-pr.407.82433bd"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/platform": "npm:@base44-preview/platform@0.6.0-pr.407.82433bd"
  }
}

Preview published to npm registry — try new features instantly!

@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

🚀 Package Preview Available!


Install this PR's preview build with npm:

npm i @base44-preview/sdk@0.8.64-pr.407.82433bd

Prefer not to change any import paths? Install using npm alias so your code still imports @base44/sdk:

npm i "@base44/sdk@npm:@base44-preview/sdk@0.8.64-pr.407.82433bd"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.64-pr.407.82433bd"
  }
}

Preview published to npm registry — try new features instantly!

…st.v2

Adds credits.threshold_reached.v1 and webhook.test.v2 from production, marks
webhook.test.v1 deprecated, and has createHandler() echo either test event's
challenge. The generator stops exporting nested-model property titles as type
aliases (`Id`), keeps a $ref property's description, and documents nested models.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ozsay
ozsay force-pushed the claude/webhook-test-v2 branch from 23b617b to 1ad3b1d Compare December 6, 2026 18:04
@ozsay
ozsay merged commit 53907fd into main Dec 6, 2026
9 checks passed
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