Add a `sublime.license_info()` endpoint.
Problem description
Currently, certain information about licenses is not available to the users. Some things I am looking at it
- License purchase date
- License expiration date (License purchase date + 3 years)
- Is the current build supported by the license.
There can be more, but I am not sure what information is encrypted along with the license. This can atleast give the users some information about their license if they happen to loose emails or just generic license information which is good to know
Preferred solution
Add a sublime.license_info() API that returns information about the license that is deemed safe i.e. malicious packages cannot misuse it. I am not sure if even 1, 2, 3 is deemed safe to expose, so maybe this issue is a good place to discuss it. If it's deemed, such an API endpoint can potentially be misused, happy to close it as well 🙂
Alternatives
None
Additional Information
None
Given that the dev build 4135 adds purchased date information in the About popup, I'd leave this to the devs to see if they still find this a usable addition
I personally am more interested in when the license will be expired or whether ST is in a licensed status.
Such as an API providing:
- purchased date
- expired date
- license status: upgrade required / valid / no license
- the following may be too detailed but welcomed
- license user name
- license seats