Skip to content

cli: add Nylas Agent Account support and managed send parity#51

Merged
qasim-nylas merged 2 commits intomainfrom
qasim/tt-4304
Apr 14, 2026
Merged

cli: add Nylas Agent Account support and managed send parity#51
qasim-nylas merged 2 commits intomainfrom
qasim/tt-4304

Conversation

@qasim-nylas
Copy link
Copy Markdown
Collaborator

@qasim-nylas qasim-nylas commented Apr 14, 2026

Summary

  • add nylas agent command support for create, list, delete, and status
  • hardcode provider=nylas for agent account flows and verify connector readiness before create
  • support --app-password during agent account creation for IMAP/SMTP mail-client access
  • route provider=nylas email sends through the same managed transactional path as provider=inbox
  • block unsupported managed secure-send flows instead of falling back to the wrong endpoint
  • repair stale local grant state after deleting default or malformed managed grants
  • update docs and add unit/integration coverage for the new behavior

Details

Agent Accounts

  • adds a dedicated nylas agent command surface
  • uses the nylas connector path and managed grant APIs for agent account CRUD
  • handles wrapped and flat create responses correctly
  • paginates managed grant listing so list/status/delete-by-email continue to work beyond the first page

App Password Support

  • adds --app-password to nylas agent create
  • validates password requirements locally before calling the API
  • documents mail-client setup expectations for Agent Accounts

Managed Send Parity

  • treats provider=nylas the same as provider=inbox for managed transactional send
  • uses the grant email as the sender for managed-domain sends
  • surfaces grant lookup failures instead of silently falling back to the wrong send path

Local Grant State Repair

  • prevents invalid local grants with empty IDs or emails from being persisted
  • repairs malformed local grant entries on read
  • repairs default_grant state when a default grant is deleted or missing

Testing

  • make ci-full

Jira

@qasim-nylas qasim-nylas requested a review from AaronDDM April 14, 2026 23:23
Copy link
Copy Markdown
Collaborator

@AaronDDM AaronDDM left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@qasim-nylas qasim-nylas merged commit f7644e9 into main Apr 14, 2026
6 checks passed
@qasim-nylas qasim-nylas deleted the qasim/tt-4304 branch April 14, 2026 23:27
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