diff options
author | Eric Bailey <git@esb.lol> | 2025-09-04 11:07:12 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 11:07:12 -0500 |
commit | f8ae0540a062e6346baf9fbf0481f769fb23a120 (patch) | |
tree | fc888e55258169e8e7246a1c099aab78fc7d9c99 /src/storage | |
parent | 625b4e61dbf11c1d485bf8e8265df4d5af0c9657 (diff) | |
download | voidsky-f8ae0540a062e6346baf9fbf0481f769fb23a120.tar.zst |
Provide geo-gated users optional GPS fallback for precise location data (#8973)
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/schema.ts | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/src/storage/schema.ts b/src/storage/schema.ts index a3f2336cf..d562d9fae 100644 --- a/src/storage/schema.ts +++ b/src/storage/schema.ts @@ -7,11 +7,32 @@ export type Device = { fontScale: '-2' | '-1' | '0' | '1' | '2' fontFamily: 'system' | 'theme' lastNuxDialog: string | undefined + + /** + * Geolocation config, fetched from the IP service. This previously did + * double duty as the "status" for geolocation state, but that has since + * moved here to the client. + */ geolocation?: { countryCode: string | undefined - isAgeRestrictedGeo: boolean | undefined - isAgeBlockedGeo: boolean | undefined + regionCode: string | undefined + ageRestrictedGeos: { + countryCode: string + regionCode: string | undefined + }[] + ageBlockedGeos: { + countryCode: string + regionCode: string | undefined + }[] + } + /** + * The GPS-based geolocation, if the user has granted permission. + */ + deviceGeolocation?: { + countryCode: string | undefined + regionCode: string | undefined } + trendingBetaEnabled: boolean devMode: boolean demoMode: boolean |