Skip to content

Sync Platform SDK webhook events from production - #404

Open
ozsay wants to merge 1 commit into
mainfrom
claude/sync-credits-threshold-webhook-1350f5
Open

ozsay wants to merge 1 commit into
mainfrom
claude/sync-credits-threshold-webhook-1350f5

Conversation

@ozsay

@ozsay ozsay commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Ran the Platform SDK webhook-types sync by hand, because the hourly sync-webhook-events.yml workflow isn't working right now. I used the same steps as the workflow: npm ci, sync:webhooks against https://app.base44.com/api/v1/outbound-webhooks/openapi.json, then generate:webhooks.

What changed

  • New event credits.threshold_reached.v1. It's a beta, workspace-audience event, sent when a workspace's monthly message or integration credit budget reaches 50, 75, 90 or 100% of its limit. This adds the CreditsThresholdReachedV1Data type, its WebhookEventMap entry, and its entry in WEBHOOK_EVENT_TYPES.
  • Existing event app.published.v1 changed. Production's schema now has two new optional fields, is_first_publish?: boolean and visibility? (private_with_login | workspace_with_login | public_with_login | public_without_login, open-ended). They're additive and optional, so nothing breaks, but this change wasn't part of the planned sync.

Only packages/platform/scripts/webhook-event-types.json and packages/platform/src/server/modules/webhooks.events.generated.ts changed. webhook-deprecations.json stayed the same.

Checks

  • npm run create-docs -w @base44/platform passed.
  • npm test -w @base44/platform passed (9/9).

When I checked, there was no open bot PR from bot/platform-webhook-events-sync.

Note: the generator writes the WebhookEventMap entry comment from only the first line of the event description, so the new entry's one-line comment stops mid-sentence. chat.turn_started.v1 already has the same problem. I left it as generated.

🤖 Generated with Claude Code

Adds credits.threshold_reached.v1 and picks up the new optional
is_first_publish and visibility fields on app.published.v1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 1, 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.404.4b4f47a

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.404.4b4f47a"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/platform": "npm:@base44-preview/platform@0.6.0-pr.404.4b4f47a"
  }
}

Preview published to npm registry — try new features instantly!

@github-actions

github-actions Bot commented Dec 1, 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.404.4b4f47a

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.404.4b4f47a"

Or add it to your package.json dependencies:

{
  "dependencies": {
    "@base44/sdk": "npm:@base44-preview/sdk@0.8.64-pr.404.4b4f47a"
  }
}

Preview published to npm registry — try new features instantly!

This branch has not been deployed

No deployments
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.

1 participant