Releases: spatie/there-there-cli
Releases · spatie/there-there-cli
0.7.1
What's new
there-there loginnow links to the correct API token page. The printed URL pointed at/app/settings/user/api-tokens, which returned a 404. It now points at/settings/account/api-tokens.- Failed logins surface the real error. Any non-2xx response previously printed
Invalid API token., even when the token was valid and the server returned a different error. Genuine 401s still sayInvalid API token.; everything else now shows the server's status and message.
0.6.0
What's new
show-ticketnow returnsinline_images[]on each message. These are images embedded inside the email body (typically bug screenshots customers paste in). Each item exposesid,name,mime_type,size,content_id,url(matches the<img src>inbody_html), anddownload_url. The bytes can be fetched with the same Bearer token the CLI uses; the skill docs include acurlrecipe.- OpenAPI spec sync: picked up the
trigger_typeenum on automation rules (on_new_ticket,on_inbound_message) which had drifted from the API.
0.5.0
What's Changed
- API alignment: updated to the new data-wrapped response format used by the There There API (single resources are now returned under a
datakey). - Multi-workspace tokens: the CLI now stores a workspace id per profile and attaches an
X-Workspace-Idheader to every request, so tokens scoped to multiple workspaces work correctly. - Expanded command set: the bundled OpenAPI spec now covers all current endpoints (contacts CUD, tags CRUD, teams, members invite/remove, quick replies, saved views, workflows, brains, brain articles, etc.).
- TLS security: certificate verification is now enabled by default for remote hosts. It's only disabled for local development (
localhost,127.0.0.1,::1, and*.test). Previous versions disabled verification unconditionally. - Credential file permissions:
~/.there-there/config.jsonis now written with0600permissions since it contains API tokens. - Internal cleanup: simpler
CredentialStore, a shared Pest helper, and extra tests covering the new behaviors.
0.4.0
What's new
Profile support for multiple workspaces
You can now store credentials for multiple workspaces using named profiles.
# Log in to multiple workspaces
there-there login --profile=spatie
there-there login --profile=ohdear
# List all profiles
there-there profiles
# Switch the default profile
there-there use spatie
# Run a command against a specific profile
there-there list-tickets --profile=ohdearWhen logging in without --profile, the profile is automatically named after the workspace.
New commands
there-there profileslists all configured profilesthere-there use {profile}switches the default profile
Updated commands
loginaccepts--profileto name the profilelogoutaccepts--profileto remove a specific profile, or--allto remove all- All commands accept
--profileto override the active profile for that invocation