* Move Key Connector check to subclass
* Move authService.logout call to main program
* Move Key Connector migration check to unlock command
* Use get/setConvertAccountRequired flag
* Move Key Connector convert to own command, set usesKeyConnector after conversion
* Remove KC conversion check from syncCommand, fix callback
* Make class service private
* Fix naming convention
* Update jslib and deps
* - Add passwordenv parameter to unlock command
- Add passwordfile parameter to unlock command
- Adapt help message
* Remove newline
* Add warning if passwordenv var not found
* Appease the linter
* Refactor
* Undo last commit
Rationale: the notes object is a freeform plain-text field that's
prominently displayed in Web Vault. It is also useful for the CLI users
as discussed before in issues #81 and #196. I have some use cases
planned myself.
I was rather surprised this wasn't supported already, but the
implementation is simple and cannot really break any existing
functionality so here it is.
* Update dependencies
* Remove types which are no longer needed
* Bump jslib
* Revert pkg to 4.5.1 since 5.0.0 does not compile on linux.
* Bump pkg-fetch in build pipeline
* If error is of unkown type, create and error response from it.
* Update src/commands/send/receive.command.ts
simplify error handling
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
* Use send.bitwarden.com
still need compatibiltiy with /#/send/id/key, but adding on
compability with #id/key
* Fix create links pointing to vault with wrong hash
* Fix Url
* Remove Get file capability
This needs to be removed because the SendFileResponse no longer contains
a url to download the file from. Instead, a GetDownloadLink method
must be used. That method increments access count, which is not
desirable for the owner of the Send. The cleanest approach is to remove
the capability, which also matches Web client's behavior
* jslib updates
* Use GetDownloadData method to receive download Url
* Update jslib
* Add list all sends and filter by search term
* Add get send templates
* Add AccessUrl to send responses
* Add Send to Get command
* Add missing command options to login
These options are already coded to work in the command, but commander
did not know about the options.
* Upgrade Commander to 7.0.0
This is needed to enable the subcommand chaining required by Send.
This commit also adds get send and send receive functionality. get send
will be moved to send get along with send list and any other send commands.
* Use api url for send access url
* Move send commands to send subcommands
* Use webvault access url everywhere
Production instances all have api url located at `baseUrl/api`.
Receive command will parse the webvault url and alter it to an api url.
* Move create and receive commands to send directory
* Separate program concerns
program holds authentication/general program concerns
vault.program holds commands related to the vault
send.program holds commands related to Bitwarden Send
* Fix up imports and lint items
* Add edit command
* Use browser-hrtime
* Add send examples to help text
* Clean up receive help text
* correct help text
* Add delete command
* Code review Cleanup
* Scheme on send receive help text
* PR review items
Move buffer to array buffer to jslib
delete with server
some formatting fixes
* Add remove password command
This is the simplest way to enable removing passwords without
resorting to weird type parsing of piped in Send JSONs in edit
* Default hidden to false like web
* Do not allow password updates that aren't strings or are empty
* Delete appveyor.yml.flagged-for-delete
* Correctly order imports and include tslint rule
* fix npm globbing problem
https://stackoverflow.com/a/34594501
globs work differently in package.json. Encasing the globs in
single quotes expands them in shell rather than in npm
* Remove double slash in path
* Trigger github rebuild