TW-5401: add missing Nylas v3 CLI commands from developer.nylas.com audit#104
Merged
Conversation
…udit Audited the Nylas v3 API surface against the CLI and added the highest-value missing commands: - email clean: clean conversation (PUT /messages/clean) - email move: move a message to a folder, or --archive - calendar resources: list bookable room/equipment resources - calendar events import: bulk-export events (migration/backup) - notetaker leave: make an active notetaker leave its meeting - notetaker update: update a scheduled notetaker (join time, name, settings) - scheduler group-events: list/create/update/delete/import group events Also fix common.StripHTML to handle block-level tags that carry attributes (e.g. <p class>, <br class/>), which previously joined adjacent lines. Unit + integration tests added for every command. scheduler group-events was built from the Nylas OpenAPI spec (no SDK coverage yet); notetaker history was dropped after verifying it is not a real endpoint.
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.
Summary
Audited the Nylas v3 API surface (developer.nylas.com) against the CLI and added the highest-value missing commands, closing coverage gaps across email, calendar, notetaker, and scheduler.
New commands
Email
nylas email clean— clean conversation: strip quoted replies/signatures (PUT /messages/clean)nylas email move— move a message to a folder, or--archiveCalendar
nylas calendar resources(aliasrooms) — list bookable room/equipment resources (GET /resources)nylas calendar events import— bulk-export events for migration/backup (GET /events/import)Notetaker
nylas notetaker leave— make an active notetaker leave its meeting (keeps the recording)nylas notetaker update— update a scheduled notetaker (join time, name, recording/transcription settings)Scheduler
nylas scheduler group-events(aliasge) — list / create / update / delete / import group events (grant + configuration scoped)Also
common.StripHTMLto handle block-level tags that carry attributes (e.g.<p class>,<br class/>) — previously they were stripped without a separator, joining adjacent lines.Notes
scheduler group-eventswas built from the Nylas OpenAPI spec — it shipped May 2025 and has no SDK coverage yet.notetaker historyafter verifying it is not a real v3 endpoint (absent from the Java/Node/Python SDKs).dashboard apikeys deletewas intentionally left out of scope.Test plan
integration) for all 7 commands — help/guard checks plus live-API smoke tests, creds-gated with graceful skips.make cigreen (fmt / vet / lint / unit / race / security / vuln / build).TestSlack_Workflow/list_users(Slackusers.listrate-limit, E007 — no Slack files changed in this PR).Related docs
cli.nylas.com (areas affected)
developer.nylas.com (API references in help text)