timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
2k stars 534 forks source link

Document vault_profile partially #733

Closed LexNastin closed 1 year ago

core-hacked commented 1 year ago

Hi, could you also document Vault profile deletion? I though of doing it myself as mentioned in #732 but haven't had the time recently. Would be greatly appreciated!

"USER_RESET_VAULT": {
    "TYPE": "DELETE",
    "URI": "api/1/users/vault_profile",
    "AUTH": true
  },
LexNastin commented 1 year ago

Will do in a couple hours :) (does it literally just clear the vault I assume? any consequences? or you don't know? if so, can check myself)

core-hacked commented 1 year ago

Will do in a couple hours :) (does it literally just clear the vault I assume? any consequences? or you don't know? if so, can check myself)

I haven't tested it yet. Maybe try on a burner account first haha. You never know.

timdorr commented 1 year ago

My guess is this is for CarKey and the Android equivalent. Both rely on their own Wallet implementation, which is all about key exchange and storage, which is what this API is all about. I don't have the spec handy, but I'm guessing they're following CCC's standard.

LexNastin commented 1 year ago

Just requested the spec, and it doesn’t mention the word vault not a single time. And plus - this vault is account wide. If this is possibly even for CarKey, I’d guess that it isn’t directly related.

timdorr commented 1 year ago

It's not about having a "vault" or other kinds of centralized key storage, it's about key exchange with the car for the purposes of opening the vehicle. The storage mechanism for those keys is opaque to the spec. It's about what you do with the keys, which this seems to indicate (hence the ActiveVaultReason enum).

Anyways, this looks good. Thanks!

core-hacked commented 1 year ago

It's not about having a "vault" or other kinds of centralized key storage, it's about key exchange with the car for the purposes of opening the vehicle. The storage mechanism for those keys is opaque to the spec. It's about what you do with the keys, which this seems to indicate (hence the ActiveVaultReason enum).

Anyways, this looks good. Thanks!

Good guesses but I think this is just the Reset Tesla Profile button

image