Repository navigation
Conversation
commit: |
klotty
approved these changes
Sep 29, 2026
klotty
left a comment
There was a problem hiding this comment.
cubic analysis
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Linked issue analysis
Linked issue: MES-1787: add the inbox webhook events to the Node.js SDK
| Status | Acceptance criteria | Notes |
|---|---|---|
| ✅ | Add all 14 specified `inbox.*` event names to `WebhookEvent` and `WebhookEventPayload`, with payloads narrowing by `type`. | The diff adds all 14 event names and corresponding event interfaces to the payload union. |
| ✅ | Include shared inbox payload fields, with non-applicable IDs and objects optional rather than nullable. | The shared data type includes `source`, `inbox_id`, and optional ID/object properties. |
| ✅ | Include the specified event-specific fields for folder updates, assignments, unassignments, and label updates. | Each of the four event interfaces adds the fields and value types described in the issue. |
| ✅ | Use the specified public SDK object types where available, omitting `html` and `text` from email and draft payloads. | The diff reuses inbox thread, message, and draft types, omitting `html` and `text` from message and draft; it defines a separate inbox shape. |
| Match the issue's per-event mapping of which IDs and objects appear. | The shared data type makes every listed ID and object optional for every inbox event; the diff does not encode distinct per-event applicability from the referenced table. |
Auto-approved: Adds 14 inbox.* webhook event names and matching payload interfaces to the SDK webhook types, fixing typechecking for events the API already accepts. The change is type-only with a preview version bump, so its impact is bounded and clearly beneficial.
Re-trigger cubic
joaopcm
marked this pull request as ready for review
September 29, 2026 16:46
joaopcm
requested review from
fabiokubo and
isabellaaquino
and removed request for
a team and
fabiokubo
September 29, 2026 16:46
isabellaaquino
approved these changes
Sep 29, 2026
joaopcm
deleted the
feature/mes-1787-add-the-inbox-webhook-events-to-the-nodejs-sdk
branch
September 29, 2026 19:24
isabellaaquino
pushed a commit
that referenced
this pull request
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WebhookEventis missing the 14inbox.*types the API already accepts, so this doesn't typecheck:this adds them to
WebhookEvent, and adds a payload type per event toWebhookEventPayload, so the result ofverify()narrows ontype.every inbox event's
datahassourceandinbox_id, plus optionalthread_id,email_id,draft_id,thread,email,draftandinbox. keys that don't apply are left out, not sent asnull. on top of that:inbox.thread.folder.updated:from,toinbox.thread.assigned:assignee_email,assigned_by_email,previous_assignee_emailinbox.thread.unassigned:previous_assignee_emailinbox.thread.labels.updated:added,removedthread,emailanddraftreuseInboxThreadSummary,InboxMessageandInboxDraft, withhtmlandtextdropped from the last two.inboxhas its own type, since the webhook sendsobject,domain_id,receiving_addressandcreated_at, andInboxhas none of those.the shapes come from
packages/inboxes/src/api/*.tsandapps/inbox-events-webhooks-consumer/src/deliver.tsin the monorepo.this targets
preview-inboxesbecause the inbox types only exist there, and bumps to6.28.1-preview-inboxes.2.pnpm lint,pnpm typecheckandpnpm testpass. I also typechecked a throwaway file that narrowsWebhookEventPayloadon a few inbox events and expectsdata.email.htmlto be an error. no live call, there was no API key in this checkout.not in this PR: the API also accepts
topic.*andcontact.topics.updated, andWebhookEventdoesn't have those either.Summary by cubic
Adds the 14
inbox.*webhook event types toWebhookEventandWebhookEventPayload, so creating webhooks with inbox events typechecks andverify()narrows the payload ontype.htmlandtextfrom email and draft.from/to, assignments send assignee fields, and label changes sendadded/removed.null, so they're optional keys.6.28.1-preview-inboxes.2.Written for commit e645c6a. Summary will update on new commits.