Skip to content

TW-5656: add dashboard domains management commands#109

Merged
qasim-nylas merged 1 commit into
mainfrom
feature/TW-5656-dashboard-domains
Jun 19, 2026
Merged

TW-5656: add dashboard domains management commands#109
qasim-nylas merged 1 commit into
mainfrom
feature/TW-5656-dashboard-domains

Conversation

@qasim-nylas

Copy link
Copy Markdown
Collaborator

Summary

Adds nylas dashboard domains for managing Nylas Inbox and Agent Account domains via dashboard-account.

  • list / check / create / show / dns / verify / update / delete subcommands
  • Region inference for existing-domain commands (show/dns/verify/update/delete): when --region is omitted, the domain is resolved by listing domains and matching on ID or address. create still requires --region.
  • New DashboardInboxDomain domain types, port methods, and AccountClient HTTP methods (GET/POST/PATCH/DELETE) refactored behind a shared doRaw helper.
  • Cursor-based pagination surfaced via --page-token and Next: hints.
  • DPoP htu now retains the query string to match the dashboard-account contract for query-bearing endpoints (documented deviation from RFC 9449 §4.2; pre-existing query-less endpoints unaffected).
  • Setup wizard now suggests registering a free Agent Account email domain.

Testing

  • make ci passes (fmt, vet, lint, unit, race, security, vuln, build).
  • New unit/CLI tests cover adapter HTTP ops, service token/refresh/retry, region inference (single/multi-match/ID match/explicit-region normalization), pagination aggregation + rotating-cursor termination, and output modes (JSON/yaml/quiet/empty).

Related docs

Add `nylas dashboard domains` for managing Nylas Inbox and Agent Account
domains via dashboard-account:

- list/check/create/show/dns/verify/update/delete subcommands
- region inference for existing-domain commands (show/dns/verify/update/
  delete) by listing domains when --region is omitted; create still
  requires --region
- DashboardInboxDomain domain types, port methods, and AccountClient
  HTTP methods (GET/POST/PATCH/DELETE) with a shared doRaw helper
- cursor-based pagination surfaced via --page-token / Next hints
- DPoP htu now retains the query string to match the dashboard-account
  contract for query-bearing endpoints
- setup wizard suggests registering a free Agent Account email domain

Docs (COMMANDS.md) and unit/CLI tests included.
@qasim-nylas qasim-nylas requested a review from AaronDDM June 19, 2026 22:21

@AaronDDM AaronDDM left a comment

Copy link
Copy Markdown
Collaborator

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 d388499 into main Jun 19, 2026
7 checks passed
@qasim-nylas qasim-nylas deleted the feature/TW-5656-dashboard-domains branch June 19, 2026 22:54
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