@glassly/miniapp 0.3.0-dev.1

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.
Files changed (312) hide show
  1. package/README.md +275 -0
  2. package/dist/background/index.d.ts +64 -0
  3. package/dist/background/index.d.ts.map +1 -0
  4. package/dist/background/index.js +26 -0
  5. package/dist/background/index.js.map +1 -0
  6. package/dist/background/register.d.ts +39 -0
  7. package/dist/background/register.d.ts.map +1 -0
  8. package/dist/background/register.js +72 -0
  9. package/dist/background/register.js.map +1 -0
  10. package/dist/dev-reload.d.ts +21 -0
  11. package/dist/dev-reload.d.ts.map +1 -0
  12. package/dist/dev-reload.js +60 -0
  13. package/dist/dev-reload.js.map +1 -0
  14. package/dist/envelope.d.ts +23 -0
  15. package/dist/envelope.d.ts.map +1 -0
  16. package/dist/envelope.js +47 -0
  17. package/dist/envelope.js.map +1 -0
  18. package/dist/globals.d.ts +54 -0
  19. package/dist/globals.d.ts.map +1 -0
  20. package/dist/globals.js +12 -0
  21. package/dist/globals.js.map +1 -0
  22. package/dist/hardware.d.ts +38 -0
  23. package/dist/hardware.d.ts.map +1 -0
  24. package/dist/hardware.js +31 -0
  25. package/dist/hardware.js.map +1 -0
  26. package/dist/index.d.ts +65 -0
  27. package/dist/index.d.ts.map +1 -0
  28. package/dist/index.js +34 -0
  29. package/dist/index.js.map +1 -0
  30. package/dist/modules/actions.d.ts +81 -0
  31. package/dist/modules/actions.d.ts.map +1 -0
  32. package/dist/modules/actions.js +137 -0
  33. package/dist/modules/actions.js.map +1 -0
  34. package/dist/modules/ai.d.ts +211 -0
  35. package/dist/modules/ai.d.ts.map +1 -0
  36. package/dist/modules/ai.js +117 -0
  37. package/dist/modules/ai.js.map +1 -0
  38. package/dist/modules/auth.d.ts +25 -0
  39. package/dist/modules/auth.d.ts.map +1 -0
  40. package/dist/modules/auth.js +52 -0
  41. package/dist/modules/auth.js.map +1 -0
  42. package/dist/modules/base64.d.ts +16 -0
  43. package/dist/modules/base64.d.ts.map +1 -0
  44. package/dist/modules/base64.js +92 -0
  45. package/dist/modules/base64.js.map +1 -0
  46. package/dist/modules/blob.d.ts +161 -0
  47. package/dist/modules/blob.d.ts.map +1 -0
  48. package/dist/modules/blob.js +277 -0
  49. package/dist/modules/blob.js.map +1 -0
  50. package/dist/modules/camera.d.ts +183 -0
  51. package/dist/modules/camera.d.ts.map +1 -0
  52. package/dist/modules/camera.js +119 -0
  53. package/dist/modules/camera.js.map +1 -0
  54. package/dist/modules/cloud.d.ts +34 -0
  55. package/dist/modules/cloud.d.ts.map +1 -0
  56. package/dist/modules/cloud.js +70 -0
  57. package/dist/modules/cloud.js.map +1 -0
  58. package/dist/modules/dashboard.d.ts +24 -0
  59. package/dist/modules/dashboard.d.ts.map +1 -0
  60. package/dist/modules/dashboard.js +39 -0
  61. package/dist/modules/dashboard.js.map +1 -0
  62. package/dist/modules/display.d.ts +167 -0
  63. package/dist/modules/display.d.ts.map +1 -0
  64. package/dist/modules/display.js +83 -0
  65. package/dist/modules/display.js.map +1 -0
  66. package/dist/modules/events.d.ts +178 -0
  67. package/dist/modules/events.d.ts.map +1 -0
  68. package/dist/modules/events.js +168 -0
  69. package/dist/modules/events.js.map +1 -0
  70. package/dist/modules/glasses.d.ts +36 -0
  71. package/dist/modules/glasses.d.ts.map +1 -0
  72. package/dist/modules/glasses.js +52 -0
  73. package/dist/modules/glasses.js.map +1 -0
  74. package/dist/modules/heading.d.ts +16 -0
  75. package/dist/modules/heading.d.ts.map +1 -0
  76. package/dist/modules/heading.js +20 -0
  77. package/dist/modules/heading.js.map +1 -0
  78. package/dist/modules/imu.d.ts +31 -0
  79. package/dist/modules/imu.d.ts.map +1 -0
  80. package/dist/modules/imu.js +40 -0
  81. package/dist/modules/imu.js.map +1 -0
  82. package/dist/modules/input.d.ts +34 -0
  83. package/dist/modules/input.d.ts.map +1 -0
  84. package/dist/modules/input.js +50 -0
  85. package/dist/modules/input.js.map +1 -0
  86. package/dist/modules/keys.d.ts +30 -0
  87. package/dist/modules/keys.d.ts.map +1 -0
  88. package/dist/modules/keys.js +37 -0
  89. package/dist/modules/keys.js.map +1 -0
  90. package/dist/modules/languages.d.ts +42 -0
  91. package/dist/modules/languages.d.ts.map +1 -0
  92. package/dist/modules/languages.js +57 -0
  93. package/dist/modules/languages.js.map +1 -0
  94. package/dist/modules/led.d.ts +35 -0
  95. package/dist/modules/led.d.ts.map +1 -0
  96. package/dist/modules/led.js +39 -0
  97. package/dist/modules/led.js.map +1 -0
  98. package/dist/modules/location.d.ts +27 -0
  99. package/dist/modules/location.d.ts.map +1 -0
  100. package/dist/modules/location.js +35 -0
  101. package/dist/modules/location.js.map +1 -0
  102. package/dist/modules/memory.d.ts +126 -0
  103. package/dist/modules/memory.d.ts.map +1 -0
  104. package/dist/modules/memory.js +141 -0
  105. package/dist/modules/memory.js.map +1 -0
  106. package/dist/modules/mic.d.ts +61 -0
  107. package/dist/modules/mic.d.ts.map +1 -0
  108. package/dist/modules/mic.js +94 -0
  109. package/dist/modules/mic.js.map +1 -0
  110. package/dist/modules/miniapps.d.ts +82 -0
  111. package/dist/modules/miniapps.d.ts.map +1 -0
  112. package/dist/modules/miniapps.js +58 -0
  113. package/dist/modules/miniapps.js.map +1 -0
  114. package/dist/modules/navigation.d.ts +332 -0
  115. package/dist/modules/navigation.d.ts.map +1 -0
  116. package/dist/modules/navigation.js +387 -0
  117. package/dist/modules/navigation.js.map +1 -0
  118. package/dist/modules/permissions.d.ts +58 -0
  119. package/dist/modules/permissions.d.ts.map +1 -0
  120. package/dist/modules/permissions.js +66 -0
  121. package/dist/modules/permissions.js.map +1 -0
  122. package/dist/modules/phone.d.ts +95 -0
  123. package/dist/modules/phone.d.ts.map +1 -0
  124. package/dist/modules/phone.js +110 -0
  125. package/dist/modules/phone.js.map +1 -0
  126. package/dist/modules/pivots/engine.d.ts +169 -0
  127. package/dist/modules/pivots/engine.d.ts.map +1 -0
  128. package/dist/modules/pivots/engine.js +778 -0
  129. package/dist/modules/pivots/engine.js.map +1 -0
  130. package/dist/modules/pivots/geometry.d.ts +84 -0
  131. package/dist/modules/pivots/geometry.d.ts.map +1 -0
  132. package/dist/modules/pivots/geometry.js +371 -0
  133. package/dist/modules/pivots/geometry.js.map +1 -0
  134. package/dist/modules/pivots/instructions.d.ts +139 -0
  135. package/dist/modules/pivots/instructions.d.ts.map +1 -0
  136. package/dist/modules/pivots/instructions.js +281 -0
  137. package/dist/modules/pivots/instructions.js.map +1 -0
  138. package/dist/modules/speaker.d.ts +175 -0
  139. package/dist/modules/speaker.d.ts.map +1 -0
  140. package/dist/modules/speaker.js +249 -0
  141. package/dist/modules/speaker.js.map +1 -0
  142. package/dist/modules/speakers.d.ts +29 -0
  143. package/dist/modules/speakers.d.ts.map +1 -0
  144. package/dist/modules/speakers.js +38 -0
  145. package/dist/modules/speakers.js.map +1 -0
  146. package/dist/modules/storage.d.ts +50 -0
  147. package/dist/modules/storage.d.ts.map +1 -0
  148. package/dist/modules/storage.js +99 -0
  149. package/dist/modules/storage.js.map +1 -0
  150. package/dist/modules/stream.d.ts +133 -0
  151. package/dist/modules/stream.d.ts.map +1 -0
  152. package/dist/modules/stream.js +53 -0
  153. package/dist/modules/stream.js.map +1 -0
  154. package/dist/modules/system.d.ts +71 -0
  155. package/dist/modules/system.d.ts.map +1 -0
  156. package/dist/modules/system.js +65 -0
  157. package/dist/modules/system.js.map +1 -0
  158. package/dist/modules/transcription.d.ts +99 -0
  159. package/dist/modules/transcription.d.ts.map +1 -0
  160. package/dist/modules/transcription.js +126 -0
  161. package/dist/modules/transcription.js.map +1 -0
  162. package/dist/modules/translation.d.ts +65 -0
  163. package/dist/modules/translation.d.ts.map +1 -0
  164. package/dist/modules/translation.js +121 -0
  165. package/dist/modules/translation.js.map +1 -0
  166. package/dist/modules/ui.d.ts +186 -0
  167. package/dist/modules/ui.d.ts.map +1 -0
  168. package/dist/modules/ui.js +289 -0
  169. package/dist/modules/ui.js.map +1 -0
  170. package/dist/protocol.d.ts +384 -0
  171. package/dist/protocol.d.ts.map +1 -0
  172. package/dist/protocol.js +413 -0
  173. package/dist/protocol.js.map +1 -0
  174. package/dist/react/MiniappHeader.d.ts +44 -0
  175. package/dist/react/MiniappHeader.d.ts.map +1 -0
  176. package/dist/react/MiniappHeader.js +32 -0
  177. package/dist/react/MiniappHeader.js.map +1 -0
  178. package/dist/react/MiniappProvider.d.ts +33 -0
  179. package/dist/react/MiniappProvider.d.ts.map +1 -0
  180. package/dist/react/MiniappProvider.js +15 -0
  181. package/dist/react/MiniappProvider.js.map +1 -0
  182. package/dist/react/capsuleHeaderLayout.d.ts +3 -0
  183. package/dist/react/capsuleHeaderLayout.d.ts.map +1 -0
  184. package/dist/react/capsuleHeaderLayout.js +5 -0
  185. package/dist/react/capsuleHeaderLayout.js.map +1 -0
  186. package/dist/react/index.d.ts +13 -0
  187. package/dist/react/index.d.ts.map +1 -0
  188. package/dist/react/index.js +9 -0
  189. package/dist/react/index.js.map +1 -0
  190. package/dist/react/useCapabilities.d.ts +26 -0
  191. package/dist/react/useCapabilities.d.ts.map +1 -0
  192. package/dist/react/useCapabilities.js +27 -0
  193. package/dist/react/useCapabilities.js.map +1 -0
  194. package/dist/react/useCapsuleHeaderStyle.d.ts +27 -0
  195. package/dist/react/useCapsuleHeaderStyle.d.ts.map +1 -0
  196. package/dist/react/useCapsuleHeaderStyle.js +39 -0
  197. package/dist/react/useCapsuleHeaderStyle.js.map +1 -0
  198. package/dist/react/useColorScheme.d.ts +18 -0
  199. package/dist/react/useColorScheme.d.ts.map +1 -0
  200. package/dist/react/useColorScheme.js +24 -0
  201. package/dist/react/useColorScheme.js.map +1 -0
  202. package/dist/react/useConnected.d.ts +17 -0
  203. package/dist/react/useConnected.d.ts.map +1 -0
  204. package/dist/react/useConnected.js +39 -0
  205. package/dist/react/useConnected.js.map +1 -0
  206. package/dist/react/useRpc.d.ts +29 -0
  207. package/dist/react/useRpc.d.ts.map +1 -0
  208. package/dist/react/useRpc.js +82 -0
  209. package/dist/react/useRpc.js.map +1 -0
  210. package/dist/react/useSafeArea.d.ts +21 -0
  211. package/dist/react/useSafeArea.d.ts.map +1 -0
  212. package/dist/react/useSafeArea.js +22 -0
  213. package/dist/react/useSafeArea.js.map +1 -0
  214. package/dist/session.d.ts +355 -0
  215. package/dist/session.d.ts.map +1 -0
  216. package/dist/session.js +688 -0
  217. package/dist/session.js.map +1 -0
  218. package/dist/sub-path-types.test-d.d.ts +40 -0
  219. package/dist/sub-path-types.test-d.d.ts.map +1 -0
  220. package/dist/sub-path-types.test-d.js +37 -0
  221. package/dist/sub-path-types.test-d.js.map +1 -0
  222. package/dist/transport/auto.d.ts +35 -0
  223. package/dist/transport/auto.d.ts.map +1 -0
  224. package/dist/transport/auto.js +124 -0
  225. package/dist/transport/auto.js.map +1 -0
  226. package/dist/transport/dispatch.d.ts +43 -0
  227. package/dist/transport/dispatch.d.ts.map +1 -0
  228. package/dist/transport/dispatch.js +91 -0
  229. package/dist/transport/dispatch.js.map +1 -0
  230. package/dist/transport/local-socket.d.ts +28 -0
  231. package/dist/transport/local-socket.d.ts.map +1 -0
  232. package/dist/transport/local-socket.js +80 -0
  233. package/dist/transport/local-socket.js.map +1 -0
  234. package/dist/transport/mock.d.ts +54 -0
  235. package/dist/transport/mock.d.ts.map +1 -0
  236. package/dist/transport/mock.js +210 -0
  237. package/dist/transport/mock.js.map +1 -0
  238. package/dist/transport/postmessage.d.ts +36 -0
  239. package/dist/transport/postmessage.d.ts.map +1 -0
  240. package/dist/transport/postmessage.js +78 -0
  241. package/dist/transport/postmessage.js.map +1 -0
  242. package/dist/transport/types.d.ts +25 -0
  243. package/dist/transport/types.d.ts.map +1 -0
  244. package/dist/transport/types.js +11 -0
  245. package/dist/transport/types.js.map +1 -0
  246. package/dist/ui/index.d.ts +107 -0
  247. package/dist/ui/index.d.ts.map +1 -0
  248. package/dist/ui/index.js +32 -0
  249. package/dist/ui/index.js.map +1 -0
  250. package/package.json +84 -0
  251. package/src/background/index.ts +177 -0
  252. package/src/background/register.ts +89 -0
  253. package/src/dev-reload.ts +59 -0
  254. package/src/envelope.ts +54 -0
  255. package/src/globals.ts +62 -0
  256. package/src/hardware.ts +40 -0
  257. package/src/index.ts +216 -0
  258. package/src/modules/actions.ts +189 -0
  259. package/src/modules/ai.ts +281 -0
  260. package/src/modules/auth.ts +68 -0
  261. package/src/modules/base64.ts +87 -0
  262. package/src/modules/blob.ts +341 -0
  263. package/src/modules/camera.ts +258 -0
  264. package/src/modules/cloud.ts +94 -0
  265. package/src/modules/dashboard.ts +51 -0
  266. package/src/modules/display.ts +207 -0
  267. package/src/modules/events.ts +318 -0
  268. package/src/modules/glasses.ts +58 -0
  269. package/src/modules/heading.ts +23 -0
  270. package/src/modules/imu.ts +44 -0
  271. package/src/modules/input.ts +66 -0
  272. package/src/modules/keys.ts +46 -0
  273. package/src/modules/languages.ts +72 -0
  274. package/src/modules/led.ts +61 -0
  275. package/src/modules/location.ts +39 -0
  276. package/src/modules/memory.ts +224 -0
  277. package/src/modules/mic.ts +103 -0
  278. package/src/modules/miniapps.ts +103 -0
  279. package/src/modules/navigation.ts +674 -0
  280. package/src/modules/permissions.ts +83 -0
  281. package/src/modules/phone.ts +155 -0
  282. package/src/modules/pivots/engine.ts +863 -0
  283. package/src/modules/pivots/geometry.ts +409 -0
  284. package/src/modules/pivots/instructions.ts +341 -0
  285. package/src/modules/speaker.ts +347 -0
  286. package/src/modules/speakers.ts +40 -0
  287. package/src/modules/storage.ts +109 -0
  288. package/src/modules/stream.ts +168 -0
  289. package/src/modules/system.ts +113 -0
  290. package/src/modules/transcription.ts +180 -0
  291. package/src/modules/translation.ts +156 -0
  292. package/src/modules/ui.ts +481 -0
  293. package/src/protocol.ts +475 -0
  294. package/src/react/MiniappHeader.tsx +114 -0
  295. package/src/react/MiniappProvider.tsx +50 -0
  296. package/src/react/capsuleHeaderLayout.ts +11 -0
  297. package/src/react/index.ts +12 -0
  298. package/src/react/useCapabilities.ts +29 -0
  299. package/src/react/useCapsuleHeaderStyle.ts +55 -0
  300. package/src/react/useColorScheme.ts +26 -0
  301. package/src/react/useConnected.ts +47 -0
  302. package/src/react/useRpc.ts +103 -0
  303. package/src/react/useSafeArea.ts +36 -0
  304. package/src/session.ts +969 -0
  305. package/src/sub-path-types.test-d.ts +60 -0
  306. package/src/transport/auto.ts +143 -0
  307. package/src/transport/dispatch.ts +106 -0
  308. package/src/transport/local-socket.ts +91 -0
  309. package/src/transport/mock.ts +255 -0
  310. package/src/transport/postmessage.ts +95 -0
  311. package/src/transport/types.ts +26 -0
  312. package/src/ui/index.ts +129 -0
@@ -0,0 +1,384 @@
1
+ /**
2
+ * @fileoverview Wire protocol for @glassly/miniapp.
3
+ *
4
+ * Fresh miniapp-naming enum values. No legacy tpa_/app_/applet_ prefixes.
5
+ * These values are the contract between @glassly/miniapp (running in a WebView)
6
+ * and LocalMiniappRuntime (running on the phone).
7
+ *
8
+ * IMPORTANT: This file has NO runtime dependency on @glassly/sdk. The cloud SDK's
9
+ * wire protocol enums live in @glassly/sdk/types/message-types.ts and are used
10
+ * for cloud↔app communication, not phone↔miniapp.
11
+ */
12
+ export declare enum MiniappRequestType {
13
+ /** Handshake: miniapp announces itself and asks phone to bind the session. */
14
+ CONNECT = "miniapp_connect",
15
+ /** Request a fresh miniapp-scoped backend auth token. */
16
+ AUTH_REFRESH = "miniapp_auth_refresh",
17
+ /** Update the set of streams the miniapp is subscribed to. */
18
+ SUBSCRIBE = "miniapp_subscribe",
19
+ /**
20
+ * Push a legacy display layout to the glasses. The SDK no longer emits this
21
+ * (render()/RENDER replaced it); hosts keep accepting it from bundles packed
22
+ * with older SDKs and from cloud-shaped layouts.
23
+ */
24
+ DISPLAY = "miniapp_display",
25
+ /** Render a whole scene of positioned elements (replace-the-frame). */
26
+ RENDER = "miniapp_render",
27
+ /**
28
+ * Feed the device's firmware-rendered navigation UI (capability
29
+ * `hasNativeNavigation`): structured turn-by-turn card fields and
30
+ * pre-rendered map bitmaps. Only accepted while a trip is active.
31
+ */
32
+ NATIVE_NAV = "miniapp_native_nav",
33
+ /** Play an arbitrary audio URL through the phone's audio playback service. */
34
+ PLAY_AUDIO = "miniapp_play_audio",
35
+ /** Stop any audio playback this miniapp initiated. */
36
+ STOP_AUDIO = "miniapp_stop_audio",
37
+ /** Speak text via cloud TTS — phone constructs the URL. */
38
+ SPEAK = "miniapp_speak",
39
+ /**
40
+ * Live PCM output stream to the phone's audio playback service
41
+ * (speaker.createStream). OPEN provisions a native chunk player; WRITE
42
+ * appends base64 PCM (replies with {bufferedMs} for backpressure); CLOSE
43
+ * drains and finishes; ABORT drops immediately.
44
+ */
45
+ SPEAKER_STREAM_OPEN = "miniapp_speaker_stream_open",
46
+ SPEAKER_STREAM_WRITE = "miniapp_speaker_stream_write",
47
+ SPEAKER_STREAM_CLOSE = "miniapp_speaker_stream_close",
48
+ SPEAKER_STREAM_ABORT = "miniapp_speaker_stream_abort",
49
+ /** Control the glasses RGB LED. */
50
+ RGB_LED = "miniapp_rgb_led",
51
+ /** One-shot location poll. */
52
+ LOCATION_POLL = "miniapp_location_poll",
53
+ /** Read a bounded snapshot of phone calendar events. */
54
+ CALENDAR_LIST_EVENTS = "miniapp_calendar_list_events",
55
+ /** Start a turn-by-turn navigation trip. Android only. */
56
+ NAVIGATION_START = "miniapp_navigation_start",
57
+ /** Stop the active navigation trip (if any). */
58
+ NAVIGATION_STOP = "miniapp_navigation_stop",
59
+ /** Dev-only: nudge the simulator off-route to test rerouting. Android sim only. */
60
+ NAVIGATION_DEVIATE = "miniapp_navigation_deviate",
61
+ /** Dev-only: lock simulated locations to the wrong sidewalk for pivot-trigger testing. */
62
+ NAVIGATION_SET_WRONG_SIDEWALK = "miniapp_navigation_set_wrong_sidewalk",
63
+ /** Dev-only: take over the simulator and walk a polyline with crossings stripped. */
64
+ NAVIGATION_SET_SKIP_CROSSINGS = "miniapp_navigation_set_skip_crossings",
65
+ /** Snapshot of the active trip (or null). Lets a miniapp opening mid-trip hydrate. */
66
+ NAVIGATION_GET_STATE = "miniapp_navigation_get_state",
67
+ /** Compute a route without starting a trip. Replaces hand-rolled Directions calls. */
68
+ NAVIGATION_COMPUTE_ROUTE = "miniapp_navigation_compute_route",
69
+ /** Reverse-geocode a coordinate to a short road name + full formatted
70
+ * address. `road` backs the engine's fallback for pivots whose Routes-API
71
+ * instruction didn't include a parseable road; `address` backs UI labels for
72
+ * dropped pins / POI taps. Resolved in the v2 cloud maps service (Mapbox
73
+ * today) via the host bridge — the miniapp never holds a maps token. */
74
+ NAVIGATION_REVERSE_GEOCODE = "miniapp_navigation_reverse_geocode",
75
+ /** Type-ahead place search (autocomplete). Resolved in the v2 cloud maps
76
+ * service (Mapbox Search Box today) via the host bridge — the miniapp never
77
+ * holds a maps token. Pairs with NAVIGATION_PLACE_DETAILS via a sessionToken. */
78
+ NAVIGATION_PLACE_AUTOCOMPLETE = "miniapp_navigation_place_autocomplete",
79
+ /** Resolve an autocomplete suggestion (placeId + sessionToken) to coordinates,
80
+ * in the v2 cloud maps service via the host bridge. */
81
+ NAVIGATION_PLACE_DETAILS = "miniapp_navigation_place_details",
82
+ /** Request nav permission up-front so start() doesn't have to (no dialog under Mapbox). */
83
+ NAVIGATION_REQUEST_PERMISSION = "miniapp_navigation_request_permission",
84
+ /**
85
+ * Read a user-supplied provider API key (Settings > API Keys) by provider
86
+ * name. Requires the API_KEYS manifest permission; the host only serves an
87
+ * allowlisted provider set (see KeysModule) — notably the Soniox key is
88
+ * excluded. Keys are device-local; the value never transits any server.
89
+ */
90
+ KEYS_GET = "miniapp_keys_get",
91
+ /**
92
+ * Run one LLM completion turn through the platform. Requires the AI manifest
93
+ * permission. The host routes to the cloud LLM service, which picks the
94
+ * provider and pays with the platform key — or with the user's own key when
95
+ * they've saved one for that provider (Settings > API Keys), in which case
96
+ * the call isn't metered against their plan.
97
+ *
98
+ * Single-shot or a client-side tool loop: when the model wants a tool run,
99
+ * the result comes back with stopReason "tool_use" and the calls to execute;
100
+ * append the answers and call again. The `webSearch` flag grants the
101
+ * provider's own server-side search tool; other provider server-side tools
102
+ * (Anthropic code_execution / Files API) and streaming are deliberately not
103
+ * exposed — see cloud-v2/packages/protocol/src/llm.ts.
104
+ */
105
+ AI_COMPLETE = "miniapp_ai_complete",
106
+ AI_GENERATE = "miniapp_ai_generate",
107
+ /** Phone-local simple storage. */
108
+ STORAGE_GET = "miniapp_storage_get",
109
+ STORAGE_SET = "miniapp_storage_set",
110
+ STORAGE_DELETE = "miniapp_storage_delete",
111
+ STORAGE_LIST = "miniapp_storage_list",
112
+ STORAGE_CLEAR = "miniapp_storage_clear",
113
+ STORAGE_HAS = "miniapp_storage_has",
114
+ STORAGE_GET_ALL = "miniapp_storage_get_all",
115
+ STORAGE_SET_MULTIPLE = "miniapp_storage_set_multiple",
116
+ STORAGE_FLUSH = "miniapp_storage_flush",
117
+ /**
118
+ * Shared user-level memory timeline (transcript lines + notes + hourly
119
+ * summaries), stored host-side and scoped to the USER — not to this
120
+ * miniapp's storage namespace. Requires the MEMORY manifest permission.
121
+ * The user manages the same timeline in Settings > Memory.
122
+ */
123
+ MEMORY_APPEND_LINE = "miniapp_memory_append_line",
124
+ MEMORY_ADD_NOTE = "miniapp_memory_add_note",
125
+ MEMORY_REMOVE_ENTRY = "miniapp_memory_remove_entry",
126
+ MEMORY_REMOVE_SCOPE = "miniapp_memory_remove_scope",
127
+ MEMORY_SESSION_LIST = "miniapp_memory_session_list",
128
+ MEMORY_QUERY = "miniapp_memory_query",
129
+ MEMORY_WINDOW = "miniapp_memory_window",
130
+ MEMORY_EXPORT_TEXT = "miniapp_memory_export_text",
131
+ MEMORY_SUMMARY_ADD = "miniapp_memory_summary_add",
132
+ MEMORY_SUMMARY_LIST = "miniapp_memory_summary_list",
133
+ MEMORY_PENDING_SUMMARY_HOUR = "miniapp_memory_pending_summary_hour",
134
+ MEMORY_CLEAR = "miniapp_memory_clear",
135
+ /**
136
+ * Resolve an enrolled-speaker id (`spk_…` from TranscriptionData.speakerId)
137
+ * to the user's display name for that speaker. Requires the SPEAKERS
138
+ * manifest permission — names are on-device PII and only cross into a
139
+ * miniapp through this explicit, user-visible gate.
140
+ */
141
+ SPEAKERS_RESOLVE_NAME = "miniapp_speakers_resolve_name",
142
+ /** Write camera FOV settings. */
143
+ CAMERA_FOV = "miniapp_camera_fov",
144
+ /** Pre-warm the glasses camera so the next takePhoto() is near-instant. */
145
+ CAMERA_WARM_UP = "miniapp_camera_warm_up",
146
+ /**
147
+ * Enable/disable raw accelerometer (IMU) streaming on the glasses. The
148
+ * accel stream also auto-enables on subscribe; this is an explicit override
149
+ * for callers who want to control the sensor directly. G2 only today.
150
+ */
151
+ IMU_SET_ENABLED = "miniapp_imu_set_enabled",
152
+ /** Explicitly enable/disable glasses-side VAD (GX8002). Mirrors the app's mic settings toggle. */
153
+ MIC_SET_VAD_ENABLED = "miniapp_mic_set_vad_enabled",
154
+ /** Explicitly enable/disable the center-mic loudness gate ("Barrier"). */
155
+ MIC_SET_LOUDNESS_GATE_ENABLED = "miniapp_mic_set_loudness_gate_enabled",
156
+ /**
157
+ * Enable or disable Wi-Fi ADB (wireless debugging) on Mentra Live.
158
+ * SYSTEM-only — host rejects with NOT_PERMITTED for non-system callers.
159
+ */
160
+ SET_WIFI_ADB_STATE = "miniapp_set_wifi_adb_state",
161
+ /** Share content via the OS share sheet. */
162
+ SHARE = "miniapp_share",
163
+ /** Open a URL in the system browser. */
164
+ OPEN_URL = "miniapp_open_url",
165
+ /** Copy text to the system clipboard. */
166
+ COPY_CLIPBOARD = "miniapp_copy_clipboard",
167
+ /** Download a file (triggers OS share sheet for save location). */
168
+ DOWNLOAD = "miniapp_download",
169
+ /**
170
+ * Open a phone-camera QR scanner overlay. Host must not unmount the miniapp
171
+ * (clearing foreground fires UI_CLOSE and can hang up live sessions).
172
+ */
173
+ SCAN_QR = "miniapp_scan_qr",
174
+ /**
175
+ * Phone-local persistent binary blob storage, scoped to (userId, packageName).
176
+ * Unlike STORAGE_* (small string KV in MMKV), blobs are arbitrary bytes written
177
+ * to the phone filesystem. Large payloads are moved in chunks (BLOB_WRITE /
178
+ * BLOB_READ) so a single bridge message never carries a multi-MB string.
179
+ */
180
+ BLOB_CREATE = "miniapp_blob_create",
181
+ BLOB_WRITE = "miniapp_blob_write",
182
+ BLOB_COMMIT = "miniapp_blob_commit",
183
+ BLOB_ABORT = "miniapp_blob_abort",
184
+ BLOB_GET = "miniapp_blob_get",
185
+ BLOB_LIST = "miniapp_blob_list",
186
+ BLOB_DELETE = "miniapp_blob_delete",
187
+ BLOB_CLEAR = "miniapp_blob_clear",
188
+ BLOB_USAGE = "miniapp_blob_usage",
189
+ BLOB_OPEN_READ = "miniapp_blob_open_read",
190
+ BLOB_READ = "miniapp_blob_read",
191
+ BLOB_CLOSE_READ = "miniapp_blob_close_read",
192
+ /** Download a URL straight into a blob, host-side (no bytes cross the bridge). */
193
+ BLOB_SET_FROM_URL = "miniapp_blob_set_from_url",
194
+ /** Open the OS file picker and import the chosen file into a blob, host-side. */
195
+ BLOB_IMPORT = "miniapp_blob_import",
196
+ /** Share a stored blob from disk via the OS share sheet (no bytes cross the bridge). */
197
+ BLOB_SHARE = "miniapp_blob_share",
198
+ /** Phone → miniapp liveness probe. Miniapp SDK auto-replies with PONG. */
199
+ PING = "miniapp_ping",
200
+ /**
201
+ * Apply transcription configuration (language hints, vocabulary, diarization).
202
+ * Phone forwards to the cloud STT layer. Fire-and-forget; cached client-side
203
+ * so future reconnect logic can re-send.
204
+ */
205
+ TRANSCRIPTION_CONFIG = "miniapp_transcription_config",
206
+ /** Dashboard content update. Noop in v1. */
207
+ DASHBOARD_CONTENT_UPDATE = "miniapp_dashboard_content_update",
208
+ /** Bring the glasses' native dashboard (OS idle screen) to the foreground. */
209
+ SHOW_NATIVE_DASHBOARD = "miniapp_show_native_dashboard",
210
+ PHOTO = "miniapp_photo",
211
+ VIDEO_RECORDING_START = "miniapp_video_recording_start",
212
+ VIDEO_RECORDING_STOP = "miniapp_video_recording_stop",
213
+ STREAM_START = "miniapp_stream_start",
214
+ STREAM_STOP = "miniapp_stream_stop",
215
+ MANAGED_STREAM_START = "miniapp_managed_stream_start",
216
+ MANAGED_STREAM_STOP = "miniapp_managed_stream_stop",
217
+ /** Ask the host to open the glasses Wi-Fi setup flow (mirrors the cloud SDK's requestWifiSetup). */
218
+ REQUEST_WIFI_SETUP = "miniapp_request_wifi_setup",
219
+ /** List installed miniapps (compatibility-filtered, with declared actions). SYSTEM-only. */
220
+ MINIAPPS_LIST = "miniapp_apps_list",
221
+ /** Start another miniapp (user-tap semantics). SYSTEM-only. */
222
+ MINIAPPS_START = "miniapp_apps_start",
223
+ /** Stop another miniapp. SYSTEM-only. */
224
+ MINIAPPS_STOP = "miniapp_apps_stop",
225
+ /** Stop the CALLING miniapp itself. One-shot (no reply) and NOT system-gated. */
226
+ MINIAPPS_STOP_SELF = "miniapp_apps_stop_self",
227
+ /** List every action the caller may invoke across installed miniapps (MCP tools/list analog). */
228
+ ACTIONS_LIST = "miniapp_actions_list",
229
+ /** Invoke a declared action on another miniapp; headless-wakes it if stopped. */
230
+ ACTION_INVOKE = "miniapp_action_invoke",
231
+ /** Target → host: the result of a delivered ACTION_CALL, correlated by callId. */
232
+ ACTION_RESULT = "miniapp_action_result",
233
+ /** Ask the host to stop THIS miniapp (self-close; e.g. after finishing a one-shot action). */
234
+ SYSTEM_EXIT = "miniapp_system_exit"
235
+ }
236
+ export declare enum MiniappResponseType {
237
+ /** Response to CONNECT carrying userId, packageName, capabilities. */
238
+ CONNECT_ACK = "miniapp_connect_ack",
239
+ /** Push: a streamed event for a subscribed stream. */
240
+ EVENT = "miniapp_event",
241
+ /** Response to any request that needs a result (matched by requestId). */
242
+ REQUEST_RESULT = "miniapp_request_result",
243
+ /** Push: glasses capabilities changed. */
244
+ CAPABILITIES_UPDATE = "miniapp_capabilities_update",
245
+ /** Push: miniapp's foreground/background state changed. */
246
+ VISIBILITY_CHANGE = "miniapp_visibility_change",
247
+ /** Push: host color scheme (light/dark) changed. */
248
+ COLOR_SCHEME_CHANGE = "miniapp_color_scheme_change",
249
+ /**
250
+ * Push: speaker playback state transitioned. Per-miniapp; the runtime sends
251
+ * to the owning miniapp only. Carries {state, errorCode?, errorMessage?,
252
+ * durationMs?}. See SpeakerModule.onStateChange().
253
+ */
254
+ SPEAKER_STATE = "miniapp_speaker_state",
255
+ /**
256
+ * Push: manifest-declared permissions changed (e.g. dev miniapp re-scanned
257
+ * with updated manifest). Carries a full PermissionRecord. SDK caches it
258
+ * and fires session.permissions.onUpdate handlers.
259
+ */
260
+ PERMISSIONS_UPDATE = "miniapp_permissions_update",
261
+ /**
262
+ * Push: miniapp-scoped backend auth token changed. Carries a token minted for
263
+ * this packageName only; it is never a Core or runtime access token.
264
+ */
265
+ AUTH_UPDATE = "miniapp_auth_update",
266
+ /** Reply to PING. SDK auto-handles this; developers never see it. */
267
+ PONG = "miniapp_pong",
268
+ /**
269
+ * Host → target: deliver an action call (from another miniapp's
270
+ * session.actions.invoke) to this miniapp's session.actions.handle handler.
271
+ * Carries {callId, actionId, params, callerPackageName}. The SDK runs the
272
+ * handler and replies with an ACTION_RESULT request keyed by callId.
273
+ */
274
+ ACTION_CALL = "miniapp_action_call",
275
+ /**
276
+ * Push: phone is about to tear down the miniapp's session. Gives the SDK
277
+ * a brief window (~50ms grace on the phone side) to fire one last
278
+ * `sendOneShot` before the transport closes — used to flush final
279
+ * cleanup like `display.render([])`. Synchronous handlers only.
280
+ */
281
+ WILL_DISCONNECT = "miniapp_will_disconnect",
282
+ /** Async error not tied to a specific request. */
283
+ ERROR = "miniapp_error"
284
+ }
285
+ export declare enum MiniappStreamType {
286
+ BUTTON_PRESS = "button_press",
287
+ TOUCH_EVENT = "touch_event",
288
+ HEAD_POSITION = "head_position",
289
+ /**
290
+ * Raw accelerometer reading from the glasses IMU — `{x, y, z}` in g, plus a
291
+ * timestamp. G2 only today. A richer combined IMU stream (accel + gyro +
292
+ * magnetometer) is future work; this is the single-sensor precursor.
293
+ */
294
+ ACCEL_DATA = "accel_data",
295
+ GLASSES_BATTERY = "glasses_battery",
296
+ PHONE_BATTERY = "phone_battery",
297
+ GLASSES_CONNECTION = "glasses_connection",
298
+ /** Glasses Wi-Fi state (connected/ssid). Glasses with Wi-Fi only; needed for streaming. */
299
+ GLASSES_WIFI = "glasses_wifi",
300
+ TRANSCRIPTION = "transcription",// language variant: "transcription:en-US"
301
+ TRANSLATION = "translation",// language variant: "translation:en-US"
302
+ AUDIO_CHUNK = "audio_chunk",
303
+ VAD = "vad",
304
+ LOCATION_UPDATE = "location_update",
305
+ /** Compass heading in degrees (0=N, 90=E). */
306
+ HEADING_UPDATE = "heading_update",
307
+ /** Turn-by-turn navigation event (maneuver / rerouting / arrived / error). */
308
+ NAVIGATION_UPDATE = "navigation_update",
309
+ /** Active navigation route polyline — full path, fired once per route build. */
310
+ NAVIGATION_ROUTE = "navigation_route",
311
+ PHONE_NOTIFICATION = "phone_notification",
312
+ /**
313
+ * A previously-posted notification was dismissed by the user.
314
+ *
315
+ * Android-only today. iOS does not expose dismiss callbacks to apps
316
+ * (Apple privacy restriction); subscribing on iOS succeeds but no events
317
+ * fire. See agents/miniapp-speaker-state-and-notif-dismissed-plan.md.
318
+ */
319
+ PHONE_NOTIFICATION_DISMISSED = "phone_notification_dismissed",
320
+ PHOTO_TAKEN = "photo_taken",
321
+ STREAM_STATUS = "stream_status"
322
+ }
323
+ export declare enum MiniappErrorCode {
324
+ /** Request arguments failed host-side validation. */
325
+ INVALID_ARGUMENT = "INVALID_ARGUMENT",
326
+ /** The miniapp subscribed to a stream whose required permission wasn't in its manifest. */
327
+ PERMISSION_NOT_DECLARED = "PERMISSION_NOT_DECLARED",
328
+ /** The required phone OS permission is not currently granted. */
329
+ PERMISSION_DENIED = "PERMISSION_DENIED",
330
+ /** Request routed to a method that isn't supported yet. */
331
+ NOT_IMPLEMENTED = "NOT_IMPLEMENTED",
332
+ /** Request timed out or the session was torn down before it could complete. */
333
+ REQUEST_ABORTED = "REQUEST_ABORTED",
334
+ /** Phone-side code path threw. Check `message`. */
335
+ INTERNAL = "INTERNAL",
336
+ /**
337
+ * The account's free-tier allowance for this feature (e.g. monthly AI
338
+ * credit) is used up. Not retryable this period; the user can upgrade or
339
+ * the miniapp can fall back to a non-cloud path.
340
+ */
341
+ QUOTA_EXCEEDED = "QUOTA_EXCEEDED",
342
+ /** Cloud TTS returned a non-2xx for a SPEAK request. */
343
+ TTS_TEXT_TOO_LONG = "TTS_TEXT_TOO_LONG",
344
+ TTS_INVALID_VOICE = "TTS_INVALID_VOICE",
345
+ TTS_UPSTREAM_ERROR = "TTS_UPSTREAM_ERROR",
346
+ /** `speak({forceLocal: true})` but the on-device offline TTS model isn't downloaded/ready. */
347
+ TTS_LOCAL_UNAVAILABLE = "TTS_LOCAL_UNAVAILABLE",
348
+ /** Not connected / pre-ACK and transport closed. */
349
+ NOT_CONNECTED = "NOT_CONNECTED",
350
+ /**
351
+ * Caller is not a system app — SYSTEM-only APIs (interop list/start/stop/invoke,
352
+ * setWifiAdbState) reject with this code.
353
+ */
354
+ NOT_PERMITTED = "NOT_PERMITTED",
355
+ /** Target miniapp is not installed. */
356
+ APP_NOT_FOUND = "APP_NOT_FOUND",
357
+ /** Target miniapp is incompatible with the connected glasses. */
358
+ APP_NOT_COMPATIBLE = "APP_NOT_COMPATIBLE",
359
+ /** Target miniapp does not declare the requested action. */
360
+ ACTION_NOT_FOUND = "ACTION_NOT_FOUND",
361
+ /** Target connected but never registered a handler for the action (within the buffer window). */
362
+ NO_ACTION_HANDLER = "NO_ACTION_HANDLER",
363
+ /** Target failed to wake / complete its CONNECT handshake for an invoke. */
364
+ WAKE_FAILED = "WAKE_FAILED",
365
+ /** Action handler did not return within the caller's timeout. */
366
+ ACTION_TIMEOUT = "ACTION_TIMEOUT",
367
+ /** Action params or result exceeded the 256 KB size cap. */
368
+ PAYLOAD_TOO_LARGE = "PAYLOAD_TOO_LARGE",
369
+ /** No blob with the given id in this miniapp's namespace. */
370
+ BLOB_NOT_FOUND = "BLOB_NOT_FOUND",
371
+ /** Writing this blob would exceed the per-app blob quota. */
372
+ BLOB_QUOTA_EXCEEDED = "BLOB_QUOTA_EXCEEDED",
373
+ /** Blob is larger than the requested in-memory read can hold. */
374
+ BLOB_TOO_LARGE = "BLOB_TOO_LARGE",
375
+ /** Write/read handle is unknown, already settled, or belongs to another app. */
376
+ BLOB_HANDLE_INVALID = "BLOB_HANDLE_INVALID",
377
+ /** Filesystem write failed (out of disk, permissions, etc.). */
378
+ BLOB_WRITE_FAILED = "BLOB_WRITE_FAILED",
379
+ /** `blob.setFromUrl` could not download the URL (network / non-2xx). */
380
+ BLOB_DOWNLOAD_FAILED = "BLOB_DOWNLOAD_FAILED",
381
+ /** `blob.importFile` failed (not the user cancelling — that resolves to null). */
382
+ BLOB_IMPORT_FAILED = "BLOB_IMPORT_FAILED"
383
+ }
384
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,oBAAY,kBAAkB;IAC5B,8EAA8E;IAC9E,OAAO,oBAAoB;IAE3B,yDAAyD;IACzD,YAAY,yBAAyB;IAErC,8DAA8D;IAC9D,SAAS,sBAAsB;IAE/B;;;;OAIG;IACH,OAAO,oBAAoB;IAE3B,uEAAuE;IACvE,MAAM,mBAAmB;IAEzB;;;;OAIG;IACH,UAAU,uBAAuB;IAEjC,8EAA8E;IAC9E,UAAU,uBAAuB;IAEjC,sDAAsD;IACtD,UAAU,uBAAuB;IAEjC,2DAA2D;IAC3D,KAAK,kBAAkB;IAEvB;;;;;OAKG;IACH,mBAAmB,gCAAgC;IACnD,oBAAoB,iCAAiC;IACrD,oBAAoB,iCAAiC;IACrD,oBAAoB,iCAAiC;IAErD,mCAAmC;IACnC,OAAO,oBAAoB;IAE3B,8BAA8B;IAC9B,aAAa,0BAA0B;IAEvC,wDAAwD;IACxD,oBAAoB,iCAAiC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