[_]: feat/update-sdk#52
Conversation
larryrider
commented
May 7, 2026
- Upgrades internxt dependencies
- Updates imports to use specific mail types from @internxt/sdk
|
📝 WalkthroughWalkthroughThis PR upgrades the Internxt SDK from v1.15.12 to v1.16.0 with coordinated API changes. The main change is renaming the Mail export to MailApi in the SDK service layer. All mail-related types are consolidated to import from ChangesSDK Version Upgrade and Mail API Refactor
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Warning
CodeRabbit couldn't request changes on this pull request because it doesn't have sufficient GitHub permissions.
Please grant CodeRabbit Pull requests: Read and write permission and re-run the review.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/hooks/mail/useMailSelection.ts`:
- Line 2: The import of EmailListResponse in useMailSelection.ts uses an
internal deep path (`@internxt/sdk/dist/mail/types`); replace it with the SDK's
public export for that type (e.g., import { EmailListResponse } from the SDK's
documented public module) by checking the SDK's package.json exports or docs and
updating the import to the official public path, or if the SDK doesn't expose it
publicly, create a local type alias/interface for EmailListResponse and import
that instead.
In `@src/types/oauth/index.ts`:
- Around line 14-18: The WebAuthMessage type allows invalid combinations;
replace it with a discriminated union using the discriminator
WEB_AUTH_MESSAGE_TYPES so SUCCESS messages have type:
WEB_AUTH_MESSAGE_TYPES.SUCCESS and a required payload: WebAuthParams (no error),
and ERROR messages have type: WEB_AUTH_MESSAGE_TYPES.ERROR and a required error:
string (no payload). Update the WebAuthMessage declaration to a union of those
two specific shapes (referencing WebAuthMessage, WEB_AUTH_MESSAGE_TYPES, and
WebAuthParams) so the compiler enforces correct payload/error pairing.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 9c734e33-e4c4-46dd-a267-10f4b6499340
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (20)
package.jsonsrc/features/identity-setup/components/SelectMailInput.tsxsrc/features/identity-setup/components/UpdateEmail.tsxsrc/features/identity-setup/index.tsxsrc/features/mail/components/tray/search/components/list/index.tsxsrc/hooks/mail/useEmailSearch.test.tsxsrc/hooks/mail/useEmailSearch.tsxsrc/hooks/mail/useMailSelection.tssrc/hooks/mail/useUnreadByMailbox.test.tssrc/hooks/mail/useUnreadByMailbox.tssrc/services/sdk/index.tssrc/services/sdk/mail/index.tssrc/services/sdk/mail/mail.service.test.tssrc/services/sdk/sdk.service.test.tssrc/services/user/user.service.test.tssrc/store/api/mail/index.tssrc/store/api/mail/mail.api.test.tssrc/test-utils/fixtures.tssrc/types/oauth/index.tssrc/utils/format-emails/index.ts
Deploying mail-web with
|
| Latest commit: |
09d0204
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://851f41fa.mail-web-ea0.pages.dev |
| Branch Preview URL: | https://feat-update-sdk.mail-web-ea0.pages.dev |


