@glassly/miniapp 0.3.1-beta.527 → 0.3.1-beta.536

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.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The vocabulary of `miniapp.json`: what a manifest may declare under
3
+ * `permissions` and `hardwareRequirements`. The engine types its manifest
4
+ * against these and the CLI validates with them, so an entry added here
5
+ * reaches both without a hand-copied list.
6
+ */
7
+ import { HardwareRequirementLevel, HardwareType } from "./hardware";
8
+ export declare const MANIFEST_PERMISSION_TYPES: readonly ["MICROPHONE", "CAMERA", "CALENDAR", "LOCATION", "BACKGROUND_LOCATION", "READ_NOTIFICATIONS", "DISPLAY_MIRROR", "POST_NOTIFICATIONS", "API_KEYS", "MEMORY", "AI", "SPEAKERS", "MANAGE_MINIAPPS", "PLATFORM_SETTINGS"];
9
+ export type ManifestPermissionType = (typeof MANIFEST_PERMISSION_TYPES)[number];
10
+ /** Every hardware type an author may declare. EXIST is implied by the host. */
11
+ export declare const MANIFEST_HARDWARE_TYPES: readonly [HardwareType.CAMERA, HardwareType.DISPLAY, HardwareType.MICROPHONE, HardwareType.SPEAKER, HardwareType.IMU, HardwareType.BUTTON, HardwareType.LIGHT, HardwareType.WIFI];
12
+ export type ManifestHardwareType = (typeof MANIFEST_HARDWARE_TYPES)[number];
13
+ export declare const MANIFEST_HARDWARE_LEVELS: readonly [HardwareRequirementLevel.REQUIRED, HardwareRequirementLevel.OPTIONAL];
14
+ export type ManifestHardwareLevel = (typeof MANIFEST_HARDWARE_LEVELS)[number];
15
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAC,wBAAwB,EAAE,YAAY,EAAC,MAAM,YAAY,CAAA;AAEjE,eAAO,MAAM,yBAAyB,gOAe5B,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/E,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,mLAS1B,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3E,eAAO,MAAM,wBAAwB,iFAAkF,CAAA;AAEvH,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * The vocabulary of `miniapp.json`: what a manifest may declare under
3
+ * `permissions` and `hardwareRequirements`. The engine types its manifest
4
+ * against these and the CLI validates with them, so an entry added here
5
+ * reaches both without a hand-copied list.
6
+ */
7
+ import { HardwareRequirementLevel, HardwareType } from "./hardware";
8
+ export const MANIFEST_PERMISSION_TYPES = [
9
+ "MICROPHONE",
10
+ "CAMERA",
11
+ "CALENDAR",
12
+ "LOCATION",
13
+ "BACKGROUND_LOCATION",
14
+ "READ_NOTIFICATIONS",
15
+ "DISPLAY_MIRROR",
16
+ "POST_NOTIFICATIONS",
17
+ "API_KEYS",
18
+ "MEMORY",
19
+ "AI",
20
+ "SPEAKERS",
21
+ "MANAGE_MINIAPPS",
22
+ "PLATFORM_SETTINGS",
23
+ ];
24
+ /** Every hardware type an author may declare. EXIST is implied by the host. */
25
+ export const MANIFEST_HARDWARE_TYPES = [
26
+ HardwareType.CAMERA,
27
+ HardwareType.DISPLAY,
28
+ HardwareType.MICROPHONE,
29
+ HardwareType.SPEAKER,
30
+ HardwareType.IMU,
31
+ HardwareType.BUTTON,
32
+ HardwareType.LIGHT,
33
+ HardwareType.WIFI,
34
+ ];
35
+ export const MANIFEST_HARDWARE_LEVELS = [HardwareRequirementLevel.REQUIRED, HardwareRequirementLevel.OPTIONAL];
36
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAC,wBAAwB,EAAE,YAAY,EAAC,MAAM,YAAY,CAAA;AAEjE,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,UAAU;IACV,qBAAqB;IACrB,oBAAoB;IACpB,gBAAgB;IAChB,oBAAoB;IACpB,UAAU;IACV,QAAQ;IACR,IAAI;IACJ,UAAU;IACV,iBAAiB;IACjB,mBAAmB;CACX,CAAA;AAIV,+EAA+E;AAC/E,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,YAAY,CAAC,MAAM;IACnB,YAAY,CAAC,OAAO;IACpB,YAAY,CAAC,UAAU;IACvB,YAAY,CAAC,OAAO;IACpB,YAAY,CAAC,GAAG;IAChB,YAAY,CAAC,MAAM;IACnB,YAAY,CAAC,KAAK;IAClB,YAAY,CAAC,IAAI;CACT,CAAA;AAIV,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,wBAAwB,CAAC,QAAQ,EAAE,wBAAwB,CAAC,QAAQ,CAAU,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glassly/miniapp",
3
- "version": "0.3.1-beta.527",
3
+ "version": "0.3.1-beta.536",
4
4
  "description": "SDK for building Glassly local miniapps (browser/WebView)",
5
5
  "author": "Glassly Labs",
6
6
  "license": "MIT",
@@ -33,6 +33,10 @@
33
33
  "types": "./dist/hardware.d.ts",
34
34
  "default": "./dist/hardware.js"
35
35
  },
36
+ "./manifest": {
37
+ "types": "./dist/manifest.d.ts",
38
+ "default": "./dist/manifest.js"
39
+ },
36
40
  "./known-apps": {
37
41
  "types": "./dist/knownApps.d.ts",
38
42
  "default": "./dist/knownApps.js"
@@ -69,7 +73,7 @@
69
73
  }
70
74
  },
71
75
  "dependencies": {
72
- "@glassly/cloud-protocol": "0.3.1-beta.527",
76
+ "@glassly/cloud-protocol": "0.3.1-beta.536",
73
77
  "eventemitter3": "^5.0.1"
74
78
  },
75
79
  "devDependencies": {
@@ -0,0 +1,44 @@
1
+ /**
2
+ * The vocabulary of `miniapp.json`: what a manifest may declare under
3
+ * `permissions` and `hardwareRequirements`. The engine types its manifest
4
+ * against these and the CLI validates with them, so an entry added here
5
+ * reaches both without a hand-copied list.
6
+ */
7
+ import {HardwareRequirementLevel, HardwareType} from "./hardware"
8
+
9
+ export const MANIFEST_PERMISSION_TYPES = [
10
+ "MICROPHONE",
11
+ "CAMERA",
12
+ "CALENDAR",
13
+ "LOCATION",
14
+ "BACKGROUND_LOCATION",
15
+ "READ_NOTIFICATIONS",
16
+ "DISPLAY_MIRROR",
17
+ "POST_NOTIFICATIONS",
18
+ "API_KEYS",
19
+ "MEMORY",
20
+ "AI",
21
+ "SPEAKERS",
22
+ "MANAGE_MINIAPPS",
23
+ "PLATFORM_SETTINGS",
24
+ ] as const
25
+
26
+ export type ManifestPermissionType = (typeof MANIFEST_PERMISSION_TYPES)[number]
27
+
28
+ /** Every hardware type an author may declare. EXIST is implied by the host. */
29
+ export const MANIFEST_HARDWARE_TYPES = [
30
+ HardwareType.CAMERA,
31
+ HardwareType.DISPLAY,
32
+ HardwareType.MICROPHONE,
33
+ HardwareType.SPEAKER,
34
+ HardwareType.IMU,
35
+ HardwareType.BUTTON,
36
+ HardwareType.LIGHT,
37
+ HardwareType.WIFI,
38
+ ] as const
39
+
40
+ export type ManifestHardwareType = (typeof MANIFEST_HARDWARE_TYPES)[number]
41
+
42
+ export const MANIFEST_HARDWARE_LEVELS = [HardwareRequirementLevel.REQUIRED, HardwareRequirementLevel.OPTIONAL] as const
43
+
44
+ export type ManifestHardwareLevel = (typeof MANIFEST_HARDWARE_LEVELS)[number]