@glassly/cloud-client 0.3.0-dev.474 → 0.3.0-dev.484
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/modules/core/core.ts +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glassly/cloud-client",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.484",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "bun test"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@glassly/cloud-protocol": "0.3.0-dev.
|
|
15
|
+
"@glassly/cloud-protocol": "0.3.0-dev.484",
|
|
16
16
|
"tweetnacl": "^1.0.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
package/src/modules/core/core.ts
CHANGED
|
@@ -70,6 +70,8 @@ export interface StoreListing {
|
|
|
70
70
|
version: string;
|
|
71
71
|
type: "standard" | "background" | "dashboard";
|
|
72
72
|
alwaysOn: boolean;
|
|
73
|
+
/** Lowest Glassly App version the release runs on; null when the manifest sets none. */
|
|
74
|
+
minHostVersion: string | null;
|
|
73
75
|
permissions: StoreListingPermission[];
|
|
74
76
|
hardwareRequirements: StoreListingHardwareRequirement[];
|
|
75
77
|
/** Authenticated asset URL; fetch through `core.store.fetchAsset`. */
|
|
@@ -103,6 +105,12 @@ export interface StoreCatalogResponse {
|
|
|
103
105
|
listings: StoreListing[];
|
|
104
106
|
}
|
|
105
107
|
|
|
108
|
+
/**
|
|
109
|
+
* `install_once`: installed by default, once. `mandatory`: reinstalled
|
|
110
|
+
* whenever it is missing. Neither updates a miniapp the phone has; the Store
|
|
111
|
+
* does. `keep_updated` is from before the Store had an update path; phones
|
|
112
|
+
* now treat it like `install_once`.
|
|
113
|
+
*/
|
|
106
114
|
export type PreinstalledInstallPolicy =
|
|
107
115
|
| "install_once"
|
|
108
116
|
| "keep_updated"
|
|
@@ -113,6 +121,11 @@ export interface PreinstalledMiniappRegistryEntry {
|
|
|
113
121
|
version: string;
|
|
114
122
|
bundleUrl: string;
|
|
115
123
|
bundleSha256: string;
|
|
124
|
+
/**
|
|
125
|
+
* Installed by default: a phone without a release of it installs it once,
|
|
126
|
+
* and not again after the user uninstalls it. An entry that is neither
|
|
127
|
+
* required nor `mandatory` does nothing.
|
|
128
|
+
*/
|
|
116
129
|
required: boolean;
|
|
117
130
|
installPolicy: PreinstalledInstallPolicy;
|
|
118
131
|
channel: string;
|