@despia-native/kernel 0.0.0-coming-soon.0 → 0.3.0

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 (661) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +1414 -0
  3. package/README.md +16 -1
  4. package/dist/.dsx-build-stamp.json +7 -0
  5. package/dist/api-cohort.d.ts +27 -0
  6. package/dist/api-cohort.d.ts.map +1 -0
  7. package/dist/api-cohort.js +94 -0
  8. package/dist/api-cohort.js.map +1 -0
  9. package/dist/api.d.ts +454 -0
  10. package/dist/api.d.ts.map +1 -0
  11. package/dist/api.js +2442 -0
  12. package/dist/api.js.map +1 -0
  13. package/dist/app-consts.d.ts +10 -0
  14. package/dist/app-consts.d.ts.map +1 -0
  15. package/dist/app-consts.js +39 -0
  16. package/dist/app-consts.js.map +1 -0
  17. package/dist/app-update.d.ts +12 -0
  18. package/dist/app-update.d.ts.map +1 -0
  19. package/dist/app-update.js +32 -0
  20. package/dist/app-update.js.map +1 -0
  21. package/dist/aria.d.ts +152 -0
  22. package/dist/aria.d.ts.map +1 -0
  23. package/dist/aria.js +524 -0
  24. package/dist/aria.js.map +1 -0
  25. package/dist/audio-core.d.ts +260 -0
  26. package/dist/audio-core.d.ts.map +1 -0
  27. package/dist/audio-core.js +1440 -0
  28. package/dist/audio-core.js.map +1 -0
  29. package/dist/audio-edit.d.ts +100 -0
  30. package/dist/audio-edit.d.ts.map +1 -0
  31. package/dist/audio-edit.js +489 -0
  32. package/dist/audio-edit.js.map +1 -0
  33. package/dist/audio-mix.d.ts +84 -0
  34. package/dist/audio-mix.d.ts.map +1 -0
  35. package/dist/audio-mix.js +393 -0
  36. package/dist/audio-mix.js.map +1 -0
  37. package/dist/auth-proof.d.ts +145 -0
  38. package/dist/auth-proof.d.ts.map +1 -0
  39. package/dist/auth-proof.js +644 -0
  40. package/dist/auth-proof.js.map +1 -0
  41. package/dist/availability-explain.d.ts +3 -0
  42. package/dist/availability-explain.d.ts.map +1 -0
  43. package/dist/availability-explain.js +322 -0
  44. package/dist/availability-explain.js.map +1 -0
  45. package/dist/availability.d.ts +246 -0
  46. package/dist/availability.d.ts.map +1 -0
  47. package/dist/availability.js +615 -0
  48. package/dist/availability.js.map +1 -0
  49. package/dist/background.d.ts +116 -0
  50. package/dist/background.d.ts.map +1 -0
  51. package/dist/background.js +235 -0
  52. package/dist/background.js.map +1 -0
  53. package/dist/boot-tables-flag.d.ts +2 -0
  54. package/dist/boot-tables-flag.d.ts.map +1 -0
  55. package/dist/boot-tables-flag.js +16 -0
  56. package/dist/boot-tables-flag.js.map +1 -0
  57. package/dist/boot-tables.d.ts +40 -0
  58. package/dist/boot-tables.d.ts.map +1 -0
  59. package/dist/boot-tables.js +102 -0
  60. package/dist/boot-tables.js.map +1 -0
  61. package/dist/border-edges.d.ts +5 -0
  62. package/dist/border-edges.d.ts.map +1 -0
  63. package/dist/border-edges.js +47 -0
  64. package/dist/border-edges.js.map +1 -0
  65. package/dist/bus.d.ts +1203 -0
  66. package/dist/bus.d.ts.map +1 -0
  67. package/dist/bus.js +2647 -0
  68. package/dist/bus.js.map +1 -0
  69. package/dist/calendar-core.d.ts +143 -0
  70. package/dist/calendar-core.d.ts.map +1 -0
  71. package/dist/calendar-core.js +372 -0
  72. package/dist/calendar-core.js.map +1 -0
  73. package/dist/call-value.d.ts +16 -0
  74. package/dist/call-value.d.ts.map +1 -0
  75. package/dist/call-value.js +54 -0
  76. package/dist/call-value.js.map +1 -0
  77. package/dist/camera-core.d.ts +222 -0
  78. package/dist/camera-core.d.ts.map +1 -0
  79. package/dist/camera-core.js +980 -0
  80. package/dist/camera-core.js.map +1 -0
  81. package/dist/canvas-core.d.ts +404 -0
  82. package/dist/canvas-core.d.ts.map +1 -0
  83. package/dist/canvas-core.js +2186 -0
  84. package/dist/canvas-core.js.map +1 -0
  85. package/dist/capture-core.d.ts +74 -0
  86. package/dist/capture-core.d.ts.map +1 -0
  87. package/dist/capture-core.js +158 -0
  88. package/dist/capture-core.js.map +1 -0
  89. package/dist/compile/codegen.d.ts +146 -0
  90. package/dist/compile/codegen.d.ts.map +1 -0
  91. package/dist/compile/codegen.js +1949 -0
  92. package/dist/compile/codegen.js.map +1 -0
  93. package/dist/compile/jstier.d.ts +44 -0
  94. package/dist/compile/jstier.d.ts.map +1 -0
  95. package/dist/compile/jstier.js +181 -0
  96. package/dist/compile/jstier.js.map +1 -0
  97. package/dist/compile/tier-door.d.ts +41 -0
  98. package/dist/compile/tier-door.d.ts.map +1 -0
  99. package/dist/compile/tier-door.js +167 -0
  100. package/dist/compile/tier-door.js.map +1 -0
  101. package/dist/compile/tier-realm.d.ts +49 -0
  102. package/dist/compile/tier-realm.d.ts.map +1 -0
  103. package/dist/compile/tier-realm.js +368 -0
  104. package/dist/compile/tier-realm.js.map +1 -0
  105. package/dist/compile/tier.d.ts +23 -0
  106. package/dist/compile/tier.d.ts.map +1 -0
  107. package/dist/compile/tier.js +157 -0
  108. package/dist/compile/tier.js.map +1 -0
  109. package/dist/compose-core.d.ts +86 -0
  110. package/dist/compose-core.d.ts.map +1 -0
  111. package/dist/compose-core.js +112 -0
  112. package/dist/compose-core.js.map +1 -0
  113. package/dist/config-validate.d.ts +31 -0
  114. package/dist/config-validate.d.ts.map +1 -0
  115. package/dist/config-validate.js +147 -0
  116. package/dist/config-validate.js.map +1 -0
  117. package/dist/config-values.d.ts +106 -0
  118. package/dist/config-values.d.ts.map +1 -0
  119. package/dist/config-values.js +340 -0
  120. package/dist/config-values.js.map +1 -0
  121. package/dist/contacts-core.d.ts +127 -0
  122. package/dist/contacts-core.d.ts.map +1 -0
  123. package/dist/contacts-core.js +211 -0
  124. package/dist/contacts-core.js.map +1 -0
  125. package/dist/content-transition.d.ts +58 -0
  126. package/dist/content-transition.d.ts.map +1 -0
  127. package/dist/content-transition.js +94 -0
  128. package/dist/content-transition.js.map +1 -0
  129. package/dist/controls-core.d.ts +227 -0
  130. package/dist/controls-core.d.ts.map +1 -0
  131. package/dist/controls-core.js +652 -0
  132. package/dist/controls-core.js.map +1 -0
  133. package/dist/cookies.d.ts +78 -0
  134. package/dist/cookies.d.ts.map +1 -0
  135. package/dist/cookies.js +265 -0
  136. package/dist/cookies.js.map +1 -0
  137. package/dist/corner-shape-core.d.ts +69 -0
  138. package/dist/corner-shape-core.d.ts.map +1 -0
  139. package/dist/corner-shape-core.js +261 -0
  140. package/dist/corner-shape-core.js.map +1 -0
  141. package/dist/crypto-core.d.ts +57 -0
  142. package/dist/crypto-core.d.ts.map +1 -0
  143. package/dist/crypto-core.js +128 -0
  144. package/dist/crypto-core.js.map +1 -0
  145. package/dist/dataviz.d.ts +436 -0
  146. package/dist/dataviz.d.ts.map +1 -0
  147. package/dist/dataviz.js +956 -0
  148. package/dist/dataviz.js.map +1 -0
  149. package/dist/debug.d.ts +293 -0
  150. package/dist/debug.d.ts.map +1 -0
  151. package/dist/debug.js +767 -0
  152. package/dist/debug.js.map +1 -0
  153. package/dist/device-ownership.d.ts +50 -0
  154. package/dist/device-ownership.d.ts.map +1 -0
  155. package/dist/device-ownership.js +105 -0
  156. package/dist/device-ownership.js.map +1 -0
  157. package/dist/effects.d.ts +86 -0
  158. package/dist/effects.d.ts.map +1 -0
  159. package/dist/effects.js +98 -0
  160. package/dist/effects.js.map +1 -0
  161. package/dist/element.d.ts +108 -0
  162. package/dist/element.d.ts.map +1 -0
  163. package/dist/element.js +63 -0
  164. package/dist/element.js.map +1 -0
  165. package/dist/file-watch.d.ts +16 -0
  166. package/dist/file-watch.d.ts.map +1 -0
  167. package/dist/file-watch.js +49 -0
  168. package/dist/file-watch.js.map +1 -0
  169. package/dist/filepaths.d.ts +72 -0
  170. package/dist/filepaths.d.ts.map +1 -0
  171. package/dist/filepaths.js +271 -0
  172. package/dist/filepaths.js.map +1 -0
  173. package/dist/film.d.ts +264 -0
  174. package/dist/film.d.ts.map +1 -0
  175. package/dist/film.js +313 -0
  176. package/dist/film.js.map +1 -0
  177. package/dist/fonts.d.ts +66 -0
  178. package/dist/fonts.d.ts.map +1 -0
  179. package/dist/fonts.js +135 -0
  180. package/dist/fonts.js.map +1 -0
  181. package/dist/forms.d.ts +191 -0
  182. package/dist/forms.d.ts.map +1 -0
  183. package/dist/forms.js +663 -0
  184. package/dist/forms.js.map +1 -0
  185. package/dist/geo.d.ts +289 -0
  186. package/dist/geo.d.ts.map +1 -0
  187. package/dist/geo.js +460 -0
  188. package/dist/geo.js.map +1 -0
  189. package/dist/handler-announce.d.ts +46 -0
  190. package/dist/handler-announce.d.ts.map +1 -0
  191. package/dist/handler-announce.js +96 -0
  192. package/dist/handler-announce.js.map +1 -0
  193. package/dist/handoff.d.ts +71 -0
  194. package/dist/handoff.d.ts.map +1 -0
  195. package/dist/handoff.js +250 -0
  196. package/dist/handoff.js.map +1 -0
  197. package/dist/identity-durability.d.ts +76 -0
  198. package/dist/identity-durability.d.ts.map +1 -0
  199. package/dist/identity-durability.js +150 -0
  200. package/dist/identity-durability.js.map +1 -0
  201. package/dist/image-core.d.ts +240 -0
  202. package/dist/image-core.d.ts.map +1 -0
  203. package/dist/image-core.js +618 -0
  204. package/dist/image-core.js.map +1 -0
  205. package/dist/image-schemes.d.ts +10 -0
  206. package/dist/image-schemes.d.ts.map +1 -0
  207. package/dist/image-schemes.js +28 -0
  208. package/dist/image-schemes.js.map +1 -0
  209. package/dist/index.d.ts +143 -0
  210. package/dist/index.d.ts.map +1 -0
  211. package/dist/index.js +299 -0
  212. package/dist/index.js.map +1 -0
  213. package/dist/ink-core.d.ts +53 -0
  214. package/dist/ink-core.d.ts.map +1 -0
  215. package/dist/ink-core.js +119 -0
  216. package/dist/ink-core.js.map +1 -0
  217. package/dist/input.d.ts +148 -0
  218. package/dist/input.d.ts.map +1 -0
  219. package/dist/input.js +358 -0
  220. package/dist/input.js.map +1 -0
  221. package/dist/integrity.d.ts +63 -0
  222. package/dist/integrity.d.ts.map +1 -0
  223. package/dist/integrity.js +150 -0
  224. package/dist/integrity.js.map +1 -0
  225. package/dist/intents.d.ts +95 -0
  226. package/dist/intents.d.ts.map +1 -0
  227. package/dist/intents.js +282 -0
  228. package/dist/intents.js.map +1 -0
  229. package/dist/interpolate-core.d.ts +37 -0
  230. package/dist/interpolate-core.d.ts.map +1 -0
  231. package/dist/interpolate-core.js +443 -0
  232. package/dist/interpolate-core.js.map +1 -0
  233. package/dist/jse/color.d.ts +12 -0
  234. package/dist/jse/color.d.ts.map +1 -0
  235. package/dist/jse/color.js +196 -0
  236. package/dist/jse/color.js.map +1 -0
  237. package/dist/jse/core.d.ts +54 -0
  238. package/dist/jse/core.d.ts.map +1 -0
  239. package/dist/jse/core.js +1519 -0
  240. package/dist/jse/core.js.map +1 -0
  241. package/dist/jse/dispatch.d.ts +28 -0
  242. package/dist/jse/dispatch.d.ts.map +1 -0
  243. package/dist/jse/dispatch.js +116 -0
  244. package/dist/jse/dispatch.js.map +1 -0
  245. package/dist/jse/highlight-grammar.d.ts +15 -0
  246. package/dist/jse/highlight-grammar.d.ts.map +1 -0
  247. package/dist/jse/highlight-grammar.js +161 -0
  248. package/dist/jse/highlight-grammar.js.map +1 -0
  249. package/dist/jse/highlight-grammars.generated.d.ts +2 -0
  250. package/dist/jse/highlight-grammars.generated.d.ts.map +1 -0
  251. package/dist/jse/highlight-grammars.generated.js +4 -0
  252. package/dist/jse/highlight-grammars.generated.js.map +1 -0
  253. package/dist/jse/highlight.d.ts +37 -0
  254. package/dist/jse/highlight.d.ts.map +1 -0
  255. package/dist/jse/highlight.js +323 -0
  256. package/dist/jse/highlight.js.map +1 -0
  257. package/dist/jse/jse.d.ts +674 -0
  258. package/dist/jse/jse.d.ts.map +1 -0
  259. package/dist/jse/jse.js +5841 -0
  260. package/dist/jse/jse.js.map +1 -0
  261. package/dist/jse/pathmatch.d.ts +10 -0
  262. package/dist/jse/pathmatch.d.ts.map +1 -0
  263. package/dist/jse/pathmatch.js +73 -0
  264. package/dist/jse/pathmatch.js.map +1 -0
  265. package/dist/jse/regex.d.ts +33 -0
  266. package/dist/jse/regex.d.ts.map +1 -0
  267. package/dist/jse/regex.js +375 -0
  268. package/dist/jse/regex.js.map +1 -0
  269. package/dist/jse/stdlib.d.ts +8 -0
  270. package/dist/jse/stdlib.d.ts.map +1 -0
  271. package/dist/jse/stdlib.js +765 -0
  272. package/dist/jse/stdlib.js.map +1 -0
  273. package/dist/jse/tokens.d.ts +102 -0
  274. package/dist/jse/tokens.d.ts.map +1 -0
  275. package/dist/jse/tokens.js +982 -0
  276. package/dist/jse/tokens.js.map +1 -0
  277. package/dist/jse/values.d.ts +206 -0
  278. package/dist/jse/values.d.ts.map +1 -0
  279. package/dist/jse/values.js +846 -0
  280. package/dist/jse/values.js.map +1 -0
  281. package/dist/keyboard.d.ts +196 -0
  282. package/dist/keyboard.d.ts.map +1 -0
  283. package/dist/keyboard.js +186 -0
  284. package/dist/keyboard.js.map +1 -0
  285. package/dist/label-choices.d.ts +3 -0
  286. package/dist/label-choices.d.ts.map +1 -0
  287. package/dist/label-choices.js +168 -0
  288. package/dist/label-choices.js.map +1 -0
  289. package/dist/language.d.ts +33 -0
  290. package/dist/language.d.ts.map +1 -0
  291. package/dist/language.js +50 -0
  292. package/dist/language.js.map +1 -0
  293. package/dist/length-units.d.ts +30 -0
  294. package/dist/length-units.d.ts.map +1 -0
  295. package/dist/length-units.js +83 -0
  296. package/dist/length-units.js.map +1 -0
  297. package/dist/lightsensor.d.ts +48 -0
  298. package/dist/lightsensor.d.ts.map +1 -0
  299. package/dist/lightsensor.js +97 -0
  300. package/dist/lightsensor.js.map +1 -0
  301. package/dist/link-refresh.d.ts +27 -0
  302. package/dist/link-refresh.d.ts.map +1 -0
  303. package/dist/link-refresh.js +166 -0
  304. package/dist/link-refresh.js.map +1 -0
  305. package/dist/link.d.ts +57 -0
  306. package/dist/link.d.ts.map +1 -0
  307. package/dist/link.js +333 -0
  308. package/dist/link.js.map +1 -0
  309. package/dist/linkpreview.d.ts +114 -0
  310. package/dist/linkpreview.d.ts.map +1 -0
  311. package/dist/linkpreview.js +439 -0
  312. package/dist/linkpreview.js.map +1 -0
  313. package/dist/list-presence.d.ts +32 -0
  314. package/dist/list-presence.d.ts.map +1 -0
  315. package/dist/list-presence.js +48 -0
  316. package/dist/list-presence.js.map +1 -0
  317. package/dist/live-stream.d.ts +27 -0
  318. package/dist/live-stream.d.ts.map +1 -0
  319. package/dist/live-stream.js +274 -0
  320. package/dist/live-stream.js.map +1 -0
  321. package/dist/livelogs.d.ts +134 -0
  322. package/dist/livelogs.d.ts.map +1 -0
  323. package/dist/livelogs.js +409 -0
  324. package/dist/livelogs.js.map +1 -0
  325. package/dist/logs.d.ts +80 -0
  326. package/dist/logs.d.ts.map +1 -0
  327. package/dist/logs.js +206 -0
  328. package/dist/logs.js.map +1 -0
  329. package/dist/mcp/apps.d.ts +82 -0
  330. package/dist/mcp/apps.d.ts.map +1 -0
  331. package/dist/mcp/apps.js +219 -0
  332. package/dist/mcp/apps.js.map +1 -0
  333. package/dist/mcp/entities.d.ts +25 -0
  334. package/dist/mcp/entities.d.ts.map +1 -0
  335. package/dist/mcp/entities.js +71 -0
  336. package/dist/mcp/entities.js.map +1 -0
  337. package/dist/mcp/result.d.ts +73 -0
  338. package/dist/mcp/result.d.ts.map +1 -0
  339. package/dist/mcp/result.js +119 -0
  340. package/dist/mcp/result.js.map +1 -0
  341. package/dist/mcp/webmcp.d.ts +162 -0
  342. package/dist/mcp/webmcp.d.ts.map +1 -0
  343. package/dist/mcp/webmcp.js +214 -0
  344. package/dist/mcp/webmcp.js.map +1 -0
  345. package/dist/mcp.d.ts +5 -0
  346. package/dist/mcp.d.ts.map +1 -0
  347. package/dist/mcp.js +14 -0
  348. package/dist/mcp.js.map +1 -0
  349. package/dist/media-core.d.ts +191 -0
  350. package/dist/media-core.d.ts.map +1 -0
  351. package/dist/media-core.js +446 -0
  352. package/dist/media-core.js.map +1 -0
  353. package/dist/media-timeline-core.d.ts +94 -0
  354. package/dist/media-timeline-core.d.ts.map +1 -0
  355. package/dist/media-timeline-core.js +620 -0
  356. package/dist/media-timeline-core.js.map +1 -0
  357. package/dist/message.d.ts +42 -0
  358. package/dist/message.d.ts.map +1 -0
  359. package/dist/message.js +582 -0
  360. package/dist/message.js.map +1 -0
  361. package/dist/missing-element.d.ts +29 -0
  362. package/dist/missing-element.d.ts.map +1 -0
  363. package/dist/missing-element.js +76 -0
  364. package/dist/missing-element.js.map +1 -0
  365. package/dist/motion-core.d.ts +160 -0
  366. package/dist/motion-core.d.ts.map +1 -0
  367. package/dist/motion-core.js +752 -0
  368. package/dist/motion-core.js.map +1 -0
  369. package/dist/motion-pose.d.ts +65 -0
  370. package/dist/motion-pose.d.ts.map +1 -0
  371. package/dist/motion-pose.js +143 -0
  372. package/dist/motion-pose.js.map +1 -0
  373. package/dist/motion.d.ts +132 -0
  374. package/dist/motion.d.ts.map +1 -0
  375. package/dist/motion.js +260 -0
  376. package/dist/motion.js.map +1 -0
  377. package/dist/mount-core.d.ts +203 -0
  378. package/dist/mount-core.d.ts.map +1 -0
  379. package/dist/mount-core.js +437 -0
  380. package/dist/mount-core.js.map +1 -0
  381. package/dist/net-core.d.ts +110 -0
  382. package/dist/net-core.d.ts.map +1 -0
  383. package/dist/net-core.js +225 -0
  384. package/dist/net-core.js.map +1 -0
  385. package/dist/notify.d.ts +399 -0
  386. package/dist/notify.d.ts.map +1 -0
  387. package/dist/notify.js +964 -0
  388. package/dist/notify.js.map +1 -0
  389. package/dist/orientation-binding.d.ts +39 -0
  390. package/dist/orientation-binding.d.ts.map +1 -0
  391. package/dist/orientation-binding.js +64 -0
  392. package/dist/orientation-binding.js.map +1 -0
  393. package/dist/orientation.d.ts +55 -0
  394. package/dist/orientation.d.ts.map +1 -0
  395. package/dist/orientation.js +89 -0
  396. package/dist/orientation.js.map +1 -0
  397. package/dist/ota.d.ts +52 -0
  398. package/dist/ota.d.ts.map +1 -0
  399. package/dist/ota.js +122 -0
  400. package/dist/ota.js.map +1 -0
  401. package/dist/passkeys.d.ts +91 -0
  402. package/dist/passkeys.d.ts.map +1 -0
  403. package/dist/passkeys.js +307 -0
  404. package/dist/passkeys.js.map +1 -0
  405. package/dist/payment.d.ts +85 -0
  406. package/dist/payment.d.ts.map +1 -0
  407. package/dist/payment.js +270 -0
  408. package/dist/payment.js.map +1 -0
  409. package/dist/pending-presenter.d.ts +31 -0
  410. package/dist/pending-presenter.d.ts.map +1 -0
  411. package/dist/pending-presenter.js +119 -0
  412. package/dist/pending-presenter.js.map +1 -0
  413. package/dist/permission-core.d.ts +59 -0
  414. package/dist/permission-core.d.ts.map +1 -0
  415. package/dist/permission-core.js +102 -0
  416. package/dist/permission-core.js.map +1 -0
  417. package/dist/persist.d.ts +169 -0
  418. package/dist/persist.d.ts.map +1 -0
  419. package/dist/persist.js +361 -0
  420. package/dist/persist.js.map +1 -0
  421. package/dist/phase-plan.d.ts +114 -0
  422. package/dist/phase-plan.d.ts.map +1 -0
  423. package/dist/phase-plan.js +837 -0
  424. package/dist/phase-plan.js.map +1 -0
  425. package/dist/playback-core.d.ts +64 -0
  426. package/dist/playback-core.d.ts.map +1 -0
  427. package/dist/playback-core.js +176 -0
  428. package/dist/playback-core.js.map +1 -0
  429. package/dist/player-sources.d.ts +12 -0
  430. package/dist/player-sources.d.ts.map +1 -0
  431. package/dist/player-sources.js +44 -0
  432. package/dist/player-sources.js.map +1 -0
  433. package/dist/proxy-denylist.d.ts +11 -0
  434. package/dist/proxy-denylist.d.ts.map +1 -0
  435. package/dist/proxy-denylist.js +44 -0
  436. package/dist/proxy-denylist.js.map +1 -0
  437. package/dist/public-config.d.ts +20 -0
  438. package/dist/public-config.d.ts.map +1 -0
  439. package/dist/public-config.js +109 -0
  440. package/dist/public-config.js.map +1 -0
  441. package/dist/qoe-core.d.ts +72 -0
  442. package/dist/qoe-core.d.ts.map +1 -0
  443. package/dist/qoe-core.js +113 -0
  444. package/dist/qoe-core.js.map +1 -0
  445. package/dist/reactive-request.d.ts +80 -0
  446. package/dist/reactive-request.d.ts.map +1 -0
  447. package/dist/reactive-request.js +192 -0
  448. package/dist/reactive-request.js.map +1 -0
  449. package/dist/read-cache.d.ts +129 -0
  450. package/dist/read-cache.d.ts.map +1 -0
  451. package/dist/read-cache.js +566 -0
  452. package/dist/read-cache.js.map +1 -0
  453. package/dist/recorder-core.d.ts +57 -0
  454. package/dist/recorder-core.d.ts.map +1 -0
  455. package/dist/recorder-core.js +136 -0
  456. package/dist/recorder-core.js.map +1 -0
  457. package/dist/ref.d.ts +41 -0
  458. package/dist/ref.d.ts.map +1 -0
  459. package/dist/ref.js +98 -0
  460. package/dist/ref.js.map +1 -0
  461. package/dist/refusal.d.ts +82 -0
  462. package/dist/refusal.d.ts.map +1 -0
  463. package/dist/refusal.js +218 -0
  464. package/dist/refusal.js.map +1 -0
  465. package/dist/region-insets.d.ts +61 -0
  466. package/dist/region-insets.d.ts.map +1 -0
  467. package/dist/region-insets.js +67 -0
  468. package/dist/region-insets.js.map +1 -0
  469. package/dist/rive-core.d.ts +323 -0
  470. package/dist/rive-core.d.ts.map +1 -0
  471. package/dist/rive-core.js +677 -0
  472. package/dist/rive-core.js.map +1 -0
  473. package/dist/runner.d.ts +595 -0
  474. package/dist/runner.d.ts.map +1 -0
  475. package/dist/runner.js +4094 -0
  476. package/dist/runner.js.map +1 -0
  477. package/dist/scene/a11y.d.ts +11 -0
  478. package/dist/scene/a11y.d.ts.map +1 -0
  479. package/dist/scene/a11y.js +67 -0
  480. package/dist/scene/a11y.js.map +1 -0
  481. package/dist/scene/anim.d.ts +149 -0
  482. package/dist/scene/anim.d.ts.map +1 -0
  483. package/dist/scene/anim.js +396 -0
  484. package/dist/scene/anim.js.map +1 -0
  485. package/dist/scene/bind.d.ts +33 -0
  486. package/dist/scene/bind.d.ts.map +1 -0
  487. package/dist/scene/bind.js +66 -0
  488. package/dist/scene/bind.js.map +1 -0
  489. package/dist/scene/collide.d.ts +56 -0
  490. package/dist/scene/collide.d.ts.map +1 -0
  491. package/dist/scene/collide.js +146 -0
  492. package/dist/scene/collide.js.map +1 -0
  493. package/dist/scene/frame.d.ts +22 -0
  494. package/dist/scene/frame.d.ts.map +1 -0
  495. package/dist/scene/frame.js +57 -0
  496. package/dist/scene/frame.js.map +1 -0
  497. package/dist/scene/gltf.d.ts +79 -0
  498. package/dist/scene/gltf.d.ts.map +1 -0
  499. package/dist/scene/gltf.js +409 -0
  500. package/dist/scene/gltf.js.map +1 -0
  501. package/dist/scene/ir.d.ts +293 -0
  502. package/dist/scene/ir.d.ts.map +1 -0
  503. package/dist/scene/ir.js +692 -0
  504. package/dist/scene/ir.js.map +1 -0
  505. package/dist/scene/math.d.ts +50 -0
  506. package/dist/scene/math.d.ts.map +1 -0
  507. package/dist/scene/math.js +180 -0
  508. package/dist/scene/math.js.map +1 -0
  509. package/dist/scene/orbit.d.ts +19 -0
  510. package/dist/scene/orbit.d.ts.map +1 -0
  511. package/dist/scene/orbit.js +60 -0
  512. package/dist/scene/orbit.js.map +1 -0
  513. package/dist/scene/physics.d.ts +228 -0
  514. package/dist/scene/physics.d.ts.map +1 -0
  515. package/dist/scene/physics.js +1500 -0
  516. package/dist/scene/physics.js.map +1 -0
  517. package/dist/scene/registry.d.ts +85 -0
  518. package/dist/scene/registry.d.ts.map +1 -0
  519. package/dist/scene/registry.js +75 -0
  520. package/dist/scene/registry.js.map +1 -0
  521. package/dist/scene/skin.d.ts +82 -0
  522. package/dist/scene/skin.d.ts.map +1 -0
  523. package/dist/scene/skin.js +351 -0
  524. package/dist/scene/skin.js.map +1 -0
  525. package/dist/scene/sprite.d.ts +36 -0
  526. package/dist/scene/sprite.d.ts.map +1 -0
  527. package/dist/scene/sprite.js +107 -0
  528. package/dist/scene/sprite.js.map +1 -0
  529. package/dist/scene/viewer.d.ts +96 -0
  530. package/dist/scene/viewer.d.ts.map +1 -0
  531. package/dist/scene/viewer.js +235 -0
  532. package/dist/scene/viewer.js.map +1 -0
  533. package/dist/scoped-slots.d.ts +9 -0
  534. package/dist/scoped-slots.d.ts.map +1 -0
  535. package/dist/scoped-slots.js +42 -0
  536. package/dist/scoped-slots.js.map +1 -0
  537. package/dist/screen.d.ts +109 -0
  538. package/dist/screen.d.ts.map +1 -0
  539. package/dist/screen.js +309 -0
  540. package/dist/screen.js.map +1 -0
  541. package/dist/scroll.d.ts +525 -0
  542. package/dist/scroll.d.ts.map +1 -0
  543. package/dist/scroll.js +1226 -0
  544. package/dist/scroll.js.map +1 -0
  545. package/dist/settings-plane.d.ts +58 -0
  546. package/dist/settings-plane.d.ts.map +1 -0
  547. package/dist/settings-plane.js +86 -0
  548. package/dist/settings-plane.js.map +1 -0
  549. package/dist/share-inbox.d.ts +56 -0
  550. package/dist/share-inbox.d.ts.map +1 -0
  551. package/dist/share-inbox.js +114 -0
  552. package/dist/share-inbox.js.map +1 -0
  553. package/dist/shared-transition.d.ts +152 -0
  554. package/dist/shared-transition.d.ts.map +1 -0
  555. package/dist/shared-transition.js +257 -0
  556. package/dist/shared-transition.js.map +1 -0
  557. package/dist/sheet-content-padding.d.ts +24 -0
  558. package/dist/sheet-content-padding.d.ts.map +1 -0
  559. package/dist/sheet-content-padding.js +32 -0
  560. package/dist/sheet-content-padding.js.map +1 -0
  561. package/dist/shot-devices.d.ts +36 -0
  562. package/dist/shot-devices.d.ts.map +1 -0
  563. package/dist/shot-devices.js +90 -0
  564. package/dist/shot-devices.js.map +1 -0
  565. package/dist/shot-guards.d.ts +100 -0
  566. package/dist/shot-guards.d.ts.map +1 -0
  567. package/dist/shot-guards.js +260 -0
  568. package/dist/shot-guards.js.map +1 -0
  569. package/dist/shot-scope.d.ts +140 -0
  570. package/dist/shot-scope.d.ts.map +1 -0
  571. package/dist/shot-scope.js +302 -0
  572. package/dist/shot-scope.js.map +1 -0
  573. package/dist/slot-partition.d.ts +9 -0
  574. package/dist/slot-partition.d.ts.map +1 -0
  575. package/dist/slot-partition.js +38 -0
  576. package/dist/slot-partition.js.map +1 -0
  577. package/dist/snackbar.d.ts +165 -0
  578. package/dist/snackbar.d.ts.map +1 -0
  579. package/dist/snackbar.js +220 -0
  580. package/dist/snackbar.js.map +1 -0
  581. package/dist/socket.d.ts +96 -0
  582. package/dist/socket.d.ts.map +1 -0
  583. package/dist/socket.js +370 -0
  584. package/dist/socket.js.map +1 -0
  585. package/dist/spotlight.d.ts +77 -0
  586. package/dist/spotlight.d.ts.map +1 -0
  587. package/dist/spotlight.js +174 -0
  588. package/dist/spotlight.js.map +1 -0
  589. package/dist/state-primitive.d.ts +37 -0
  590. package/dist/state-primitive.d.ts.map +1 -0
  591. package/dist/state-primitive.js +91 -0
  592. package/dist/state-primitive.js.map +1 -0
  593. package/dist/store-query.d.ts +25 -0
  594. package/dist/store-query.d.ts.map +1 -0
  595. package/dist/store-query.js +88 -0
  596. package/dist/store-query.js.map +1 -0
  597. package/dist/store-value.d.ts +48 -0
  598. package/dist/store-value.d.ts.map +1 -0
  599. package/dist/store-value.js +264 -0
  600. package/dist/store-value.js.map +1 -0
  601. package/dist/store-versioning.d.ts +70 -0
  602. package/dist/store-versioning.d.ts.map +1 -0
  603. package/dist/store-versioning.js +188 -0
  604. package/dist/store-versioning.js.map +1 -0
  605. package/dist/store.d.ts +282 -0
  606. package/dist/store.d.ts.map +1 -0
  607. package/dist/store.js +1144 -0
  608. package/dist/store.js.map +1 -0
  609. package/dist/strings.d.ts +141 -0
  610. package/dist/strings.d.ts.map +1 -0
  611. package/dist/strings.js +581 -0
  612. package/dist/strings.js.map +1 -0
  613. package/dist/telemetry.d.ts +95 -0
  614. package/dist/telemetry.d.ts.map +1 -0
  615. package/dist/telemetry.js +255 -0
  616. package/dist/telemetry.js.map +1 -0
  617. package/dist/transform-core.d.ts +228 -0
  618. package/dist/transform-core.d.ts.map +1 -0
  619. package/dist/transform-core.js +921 -0
  620. package/dist/transform-core.js.map +1 -0
  621. package/dist/transition-core.d.ts +58 -0
  622. package/dist/transition-core.d.ts.map +1 -0
  623. package/dist/transition-core.js +352 -0
  624. package/dist/transition-core.js.map +1 -0
  625. package/dist/trim-trailing.d.ts +3 -0
  626. package/dist/trim-trailing.d.ts.map +1 -0
  627. package/dist/trim-trailing.js +14 -0
  628. package/dist/trim-trailing.js.map +1 -0
  629. package/dist/upload.d.ts +51 -0
  630. package/dist/upload.d.ts.map +1 -0
  631. package/dist/upload.js +68 -0
  632. package/dist/upload.js.map +1 -0
  633. package/dist/vendor-face.d.ts +44 -0
  634. package/dist/vendor-face.d.ts.map +1 -0
  635. package/dist/vendor-face.js +80 -0
  636. package/dist/vendor-face.js.map +1 -0
  637. package/dist/vendor-session.d.ts +166 -0
  638. package/dist/vendor-session.d.ts.map +1 -0
  639. package/dist/vendor-session.js +423 -0
  640. package/dist/vendor-session.js.map +1 -0
  641. package/dist/vendor-surface.d.ts +290 -0
  642. package/dist/vendor-surface.d.ts.map +1 -0
  643. package/dist/vendor-surface.js +439 -0
  644. package/dist/vendor-surface.js.map +1 -0
  645. package/dist/version-rules.generated.d.ts +17 -0
  646. package/dist/version-rules.generated.d.ts.map +1 -0
  647. package/dist/version-rules.generated.js +99 -0
  648. package/dist/version-rules.generated.js.map +1 -0
  649. package/dist/view-transition-core.d.ts +99 -0
  650. package/dist/view-transition-core.d.ts.map +1 -0
  651. package/dist/view-transition-core.js +127 -0
  652. package/dist/view-transition-core.js.map +1 -0
  653. package/dist/view-transition-door.d.ts +26 -0
  654. package/dist/view-transition-door.d.ts.map +1 -0
  655. package/dist/view-transition-door.js +88 -0
  656. package/dist/view-transition-door.js.map +1 -0
  657. package/dist/window-identity.d.ts +3 -0
  658. package/dist/window-identity.d.ts.map +1 -0
  659. package/dist/window-identity.js +27 -0
  660. package/dist/window-identity.js.map +1 -0
  661. package/package.json +141 -2
@@ -0,0 +1,225 @@
1
+ //
2
+ // net-core.ts — the shared Core/Net core: the classification fold, the online split, the
3
+ // radio-family map, the probe verdict and the transition debounce. The law is the corpus,
4
+ // OpenSource/Conformance/net/{status,transitions}.json (parity/F05-net.md); the Kotlin twin is
5
+ // :core NetCore.kt and the Swift twin is Engine/Swift/NetCore.swift.
6
+ //
7
+ // Everything platform-shaped lives OUTSIDE this file. NWPathMonitor (iOS),
8
+ // ConnectivityManager.registerDefaultNetworkCallback (Android) and navigator.connection (web)
9
+ // each read their own platform and hand the neutral snapshot in; the module publishes the
10
+ // context vars and fires the `change` broadcast on the way out. Keeping the DECISION separate
11
+ // from the PLUMBING is what lets one corpus judge three renderers.
12
+ //
13
+ /** The reported link vocabulary. `unknown` is the pre-first-update value only. */
14
+ export const NET_TYPES = [
15
+ "wifi", "cellular", "ethernet", "vpn", "other", "none", "unknown",
16
+ ];
17
+ /** Interface-name prefixes that mean "this is a tunnel". A VPN rides ON TOP of wifi or
18
+ * cellular, so reporting the transport underneath would hide the thing the app asked about. */
19
+ export const NET_TUNNEL_PREFIXES = ["utun", "ipsec", "ppp", "tap", "tun"];
20
+ /** What the module publishes before the first path update lands: optimistic, so a page never
21
+ * flashes an offline banner on the way to learning the truth. */
22
+ export const NET_UNKNOWN = {
23
+ reachable: true, type: "unknown", expensive: false, constrained: false, validated: true,
24
+ };
25
+ function isTunnel(name) {
26
+ const lower = name.trim().toLowerCase();
27
+ return NET_TUNNEL_PREFIXES.some((prefix) => lower.startsWith(prefix));
28
+ }
29
+ /**
30
+ * The classification fold: a raw path snapshot in, the reported link facts out.
31
+ *
32
+ * 1. VPN wins over the transport underneath (a tunnel rides on top of wifi or cellular).
33
+ * 2. An unsatisfied path is `none` and nothing else is inspected — a metered flag on a link
34
+ * that is down is not a fact about anything.
35
+ * 3. `expensive` is the METERED flag, never `type === "cellular"`: a personal hotspot over
36
+ * wifi is metered, and cellular on an unlimited plan is not.
37
+ * 4. `constrained` is the user's data-saving setting and is independent of everything else.
38
+ */
39
+ export function classifyPath(input) {
40
+ if (!input.satisfied) {
41
+ return { reachable: false, type: "none", expensive: false, constrained: false, validated: false };
42
+ }
43
+ const interfaces = input.interfaces ?? [];
44
+ const transports = (input.transports ?? []).map((entry) => String(entry ?? "").trim().toLowerCase());
45
+ let type;
46
+ if (interfaces.some(isTunnel) || transports.includes("vpn"))
47
+ type = "vpn";
48
+ else if (transports.includes("wifi"))
49
+ type = "wifi";
50
+ else if (transports.includes("cellular"))
51
+ type = "cellular";
52
+ else if (transports.includes("ethernet"))
53
+ type = "ethernet";
54
+ else
55
+ type = "other";
56
+ return {
57
+ reachable: true,
58
+ type,
59
+ expensive: input.metered === true,
60
+ constrained: input.dataSaver === true,
61
+ validated: true,
62
+ };
63
+ }
64
+ /** `online` is `reachable` AND the last probe verdict — the entire reason the two fields exist
65
+ * separately. An interface can be up while a captive portal eats every request. */
66
+ export function isOnline(snapshot, probeFailed) {
67
+ return snapshot.reachable && snapshot.validated && !probeFailed;
68
+ }
69
+ /** The app-scoped `offline` condition the module publishes (availability.md v2.1 D9): present
70
+ * exactly while `online` is false, null (clear it) when `online` is true. Every member whose
71
+ * manifest declares `errors.offline` is not ready while it stands, on every renderer. */
72
+ export function netOfflineCondition(online) {
73
+ return online ? null : { scope: "app", setting: "network" };
74
+ }
75
+ /** Radio family token -> reported generation. The module normalises its own platform constant
76
+ * (CTRadioAccessTechnologyLTE, TelephonyManager.NETWORK_TYPE_LTE, connection.effectiveType)
77
+ * down to one of these tokens; anything unrecognised reports empty rather than a guess. */
78
+ const RADIO_FAMILIES = {
79
+ gprs: "2g", edge: "2g", cdma: "2g", cdma1x: "2g", "1xrtt": "2g", iden: "2g", gsm: "2g",
80
+ wcdma: "3g", umts: "3g", hsdpa: "3g", hsupa: "3g", hspa: "3g", hspap: "3g",
81
+ evdo0: "3g", evdoa: "3g", evdob: "3g", cdmaevdorev0: "3g", cdmaevdoreva: "3g",
82
+ cdmaevdorevb: "3g", ehrpd: "3g", tdscdma: "3g",
83
+ lte: "4g", iwlan: "4g",
84
+ nr: "5g", nrnsa: "5g",
85
+ };
86
+ /** Empty unless the link is cellular AND the platform volunteered the family without a
87
+ * permission prompt. A withheld family is empty, never a guess. */
88
+ export function radioGeneration(type, radio) {
89
+ if (type !== "cellular")
90
+ return "";
91
+ const token = String(radio ?? "").trim().toLowerCase();
92
+ if (token === "")
93
+ return "";
94
+ return RADIO_FAMILIES[token] ?? "";
95
+ }
96
+ /** The host a redirect points at, or null when the Location names none (which includes a
97
+ * relative Location, whose host is by definition the requested one). */
98
+ function redirectHost(location) {
99
+ const marker = location.indexOf("://");
100
+ if (marker < 0)
101
+ return null;
102
+ let rest = location.slice(marker + 3);
103
+ const slash = rest.search(/[/?#]/);
104
+ if (slash >= 0)
105
+ rest = rest.slice(0, slash);
106
+ const at = rest.lastIndexOf("@");
107
+ if (at >= 0)
108
+ rest = rest.slice(at + 1);
109
+ // One colon is a port; several is an IPv6 literal, which keeps its colons.
110
+ if ((rest.match(/:/g) ?? []).length === 1) {
111
+ const colon = rest.lastIndexOf(":");
112
+ const port = rest.slice(colon + 1);
113
+ if (port !== "" && /^[0-9]+$/.test(port))
114
+ rest = rest.slice(0, colon);
115
+ }
116
+ return rest.toLowerCase();
117
+ }
118
+ /**
119
+ * The reachability verdict from ONE completed request.
120
+ *
121
+ * Redirects are never followed, so the response IS the 3xx and its Location is readable: a
122
+ * redirect to another host is the captive-portal signature, while a same-host redirect (an http
123
+ * to https upgrade) is a normal, reachable answer. 4xx and 5xx mean a server answered but the
124
+ * app is not served, and status 0 is a dead transport — an ANSWER, never a throw.
125
+ */
126
+ export function probeReachable(status, requestHost, location) {
127
+ if (status < 200 || status >= 400)
128
+ return false;
129
+ if (status < 300)
130
+ return true;
131
+ const target = String(location ?? "").trim();
132
+ if (target === "")
133
+ return false;
134
+ const host = redirectHost(target);
135
+ if (host === null)
136
+ return true;
137
+ return host === String(requestHost ?? "").trim().toLowerCase();
138
+ }
139
+ export function netSnapshotsEqual(a, b) {
140
+ return a.reachable === b.reachable && a.type === b.type && a.expensive === b.expensive
141
+ && a.constrained === b.constrained && a.validated === b.validated;
142
+ }
143
+ /**
144
+ * The transition debounce.
145
+ *
146
+ * Interfaces flap: a wifi to cellular handoff drops through `none` for a few hundred
147
+ * milliseconds, and an undebounced stream turns that into three events and two banner flashes.
148
+ *
149
+ * 1. The FIRST update after launch is applied immediately and announces nothing — there was
150
+ * no earlier state to change from, and waiting half a second to learn the truth at launch
151
+ * would be its own bug.
152
+ * 2. After that a candidate must hold for `debounceMs` before it is published.
153
+ * 3. A candidate that returns to the settled value inside the window cancels it outright, so
154
+ * a flap produces no event at all.
155
+ * 4. A settled transition emits exactly ONE change, carrying the new facts plus `previous`.
156
+ * 5. A settled transition clears the probe verdict: a new link deserves a fresh one.
157
+ *
158
+ * The clock is the CALLER'S. The module drives it from a real timer, the corpus runner drives
159
+ * it from a timeline, and the machine cannot tell the difference.
160
+ */
161
+ export class NetDebounce {
162
+ debounceMs;
163
+ #settled;
164
+ #hasSettled = false;
165
+ #probeFailed = false;
166
+ #pending = null;
167
+ #events = [];
168
+ constructor(debounceMs, initial = NET_UNKNOWN) {
169
+ this.debounceMs = Math.max(0, debounceMs);
170
+ this.#settled = initial;
171
+ }
172
+ get settled() { return this.#settled; }
173
+ get probeFailed() { return this.#probeFailed; }
174
+ get online() { return isOnline(this.#settled, this.#probeFailed); }
175
+ /** When the pending candidate is due, or null when nothing is pending. The module arms one
176
+ * timer on this; nothing else needs to know the window exists. */
177
+ get pendingDeadline() { return this.#pending === null ? null : this.#pending.deadline; }
178
+ /** Commit a pending candidate whose window has closed. Idempotent. */
179
+ advance(now) {
180
+ const pending = this.#pending;
181
+ if (pending === null || pending.deadline > now)
182
+ return;
183
+ this.#pending = null;
184
+ if (netSnapshotsEqual(pending.candidate, this.#settled))
185
+ return;
186
+ const previous = this.#settled.type;
187
+ this.#settled = pending.candidate;
188
+ this.#probeFailed = false;
189
+ this.#events.push({
190
+ at: pending.deadline,
191
+ previous,
192
+ snapshot: pending.candidate,
193
+ online: isOnline(pending.candidate, false),
194
+ });
195
+ }
196
+ /** A path update from the platform. */
197
+ path(now, candidate) {
198
+ this.advance(now);
199
+ if (!this.#hasSettled) {
200
+ this.#hasSettled = true;
201
+ this.#settled = candidate;
202
+ this.#pending = null;
203
+ return;
204
+ }
205
+ this.#pending = null;
206
+ if (netSnapshotsEqual(candidate, this.#settled))
207
+ return;
208
+ this.#pending = { candidate, deadline: now + this.debounceMs };
209
+ if (this.debounceMs === 0)
210
+ this.advance(now);
211
+ }
212
+ /** A completed probe's verdict. It moves `online` without touching the link facts, and
213
+ * without announcing a transition: the link did not change, only what it is worth. */
214
+ probe(now, failed) {
215
+ this.advance(now);
216
+ this.#probeFailed = failed;
217
+ }
218
+ /** Take the transitions recorded since the last drain. */
219
+ drain() {
220
+ const out = this.#events;
221
+ this.#events = [];
222
+ return out;
223
+ }
224
+ }
225
+ //# sourceMappingURL=net-core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"net-core.js","sourceRoot":"","sources":["../src/net-core.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,0FAA0F;AAC1F,2FAA2F;AAC3F,gGAAgG;AAChG,sEAAsE;AACtE,EAAE;AACF,4EAA4E;AAC5E,+FAA+F;AAC/F,2FAA2F;AAC3F,+FAA+F;AAC/F,oEAAoE;AACpE,EAAE;AAEF,kFAAkF;AAClF,MAAM,CAAC,MAAM,SAAS,GAAsB;IAC1C,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS;CAClE,CAAC;AAEF;gGACgG;AAChG,MAAM,CAAC,MAAM,mBAAmB,GAAsB,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAiB7F;kEACkE;AAClE,MAAM,CAAC,MAAM,WAAW,GAAgB;IACtC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI;CACxF,CAAC;AAWF,SAAS,QAAQ,CAAC,IAAY;IAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACxC,OAAO,mBAAmB,CAAC,IAAI,CAA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AE,CAAC;YACtB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,OAAO;QACT,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,iBAAiB,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC;YAAE,OAAO;QACxD,IAAI,CAAC,QAAQ,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/D,IAAI,IAAI,CAAC,UAAU,KAAK,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IAED;2FACuF;IACvF,KAAK,CAAC,GAAW,EAAE,MAAe;QAChC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAClB,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;IAC7B,CAAC;IAED,0DAA0D;IAC1D,KAAK;QACH,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,OAAO,GAAG,CAAC;IACb,CAAC;CACF"}
@@ -0,0 +1,399 @@
1
+ /** The authorization statuses, as the module reports them (never a platform enum). */
2
+ export declare const NOTIFY_STATUSES: readonly string[];
3
+ /** The option vocabulary, exact case. `provisional` is an option like the rest so that quiet
4
+ * authorization is one flag rather than a second API. */
5
+ export declare const NOTIFY_OPTIONS: readonly string[];
6
+ /** What a request that names no option at all asks for. */
7
+ export declare const NOTIFY_DEFAULT_OPTIONS: readonly string[];
8
+ /** What each platform can actually honour. Anything else is dropped AND REPORTED - an app
9
+ * that asked for critical alerts and got ordinary ones has to be able to find that out. */
10
+ export declare const NOTIFY_PLATFORM_OPTIONS: {
11
+ readonly [platform: string]: readonly string[];
12
+ };
13
+ /** POST_NOTIFICATIONS became a runtime permission here. Below it there is nothing to ask. */
14
+ export declare const NOTIFY_ANDROID_RUNTIME_PERMISSION_SDK = 33;
15
+ export interface NotifyPermissionState {
16
+ readonly status: string;
17
+ /** True once the OS has shown the full-authorization dialog. It shows it once. */
18
+ readonly promptShown: boolean;
19
+ /** Apple grants the critical-alerts entitlement by application; without it the option is
20
+ * accepted by the API and silently does nothing. */
21
+ readonly criticalEntitled?: boolean;
22
+ }
23
+ export interface NotifyPermissionRequest {
24
+ readonly provisional?: boolean;
25
+ readonly critical?: boolean;
26
+ readonly alert?: boolean;
27
+ readonly sound?: boolean;
28
+ readonly badge?: boolean;
29
+ readonly carPlay?: boolean;
30
+ readonly announcement?: boolean;
31
+ }
32
+ export interface NotifyPermissionPlan {
33
+ /** prompt = show the dialog · authorize = the QUIET provisional grant, no dialog ·
34
+ * settle = answer with what is already held · refuse = a typed error. */
35
+ readonly action: "prompt" | "authorize" | "settle" | "refuse";
36
+ readonly prompted: boolean;
37
+ readonly quiet: boolean;
38
+ /** True when this prompt is the provisional -> full conversion. */
39
+ readonly escalation: boolean;
40
+ readonly options: readonly string[];
41
+ readonly dropped: readonly string[];
42
+ readonly status?: string;
43
+ readonly error?: string;
44
+ }
45
+ /** `provisional` and `critical` are MODIFIERS, not content: they say HOW the authorization is
46
+ * obtained and how loud it may be, not what the notification is allowed to do. So naming one
47
+ * does not suppress the default alert/badge/sound - `{ provisional: true }` means "the usual
48
+ * notification, delivered quietly", which is the only reading an author ever intends. */
49
+ export declare const NOTIFY_MODIFIER_OPTIONS: readonly string[];
50
+ /**
51
+ * Decide what a `permission(...)` call should do.
52
+ *
53
+ * The whole ladder in one function. `status` never reaches here: reading is a different verb
54
+ * and it must never be able to prompt.
55
+ */
56
+ export declare function notifyPermissionPlan(request: NotifyPermissionRequest, state: NotifyPermissionState, platform: string, sdk?: number): NotifyPermissionPlan;
57
+ /**
58
+ * Fold the OS's answer to a prompt back into the state.
59
+ *
60
+ * A DECLINED ESCALATION IS NOT A LOST GRANT: an app that was delivering quietly and asked for
61
+ * more must still be delivering quietly afterwards. The naive `granted ? granted : denied`
62
+ * throws away a working feature to record the refusal of a different one, and the user never
63
+ * sees another notification.
64
+ */
65
+ export declare function notifyApplyPermission(state: NotifyPermissionState, plan: {
66
+ readonly action: string;
67
+ readonly escalation?: boolean;
68
+ }, granted: boolean): NotifyPermissionState;
69
+ export interface NotifyObserved {
70
+ readonly state: NotifyPermissionState;
71
+ readonly changed: boolean;
72
+ /** True exactly when the status moved. A permission event on every foreground is noise. */
73
+ readonly broadcast: boolean;
74
+ }
75
+ /**
76
+ * THE SETTINGS-CHANGED-WHILE-BACKGROUNDED TRANSITION.
77
+ *
78
+ * The user turns notifications off (or on) in Settings while the app is not running. A module
79
+ * that trusts its cached status then prompts into a void forever, or tells a settings screen
80
+ * that notifications are on when they are not. The OS reading always wins.
81
+ *
82
+ * `undetermined` from the OS means the app was reinstalled, so the spent-prompt memory resets
83
+ * with it - otherwise the module would believe it had already burned a dialog it now has back.
84
+ */
85
+ export declare function notifyObservePermission(state: NotifyPermissionState, osStatus: string): NotifyObserved;
86
+ export interface NotifyZoneTransition {
87
+ readonly at: number;
88
+ readonly offset: number;
89
+ }
90
+ /** A zone is a base offset in MINUTES plus the instants at which it changes. Ordered by `at`. */
91
+ export interface NotifyZoneRules {
92
+ readonly base: number;
93
+ readonly transitions: readonly NotifyZoneTransition[];
94
+ }
95
+ export declare const NOTIFY_UTC: NotifyZoneRules;
96
+ export declare function notifyOffsetAt(zone: NotifyZoneRules, instant: number): number;
97
+ /** An instant, expressed as the epoch-ms value that PRINTS as local time when read as UTC. */
98
+ export declare function notifyToWall(zone: NotifyZoneRules, instant: number): number;
99
+ /**
100
+ * A wall-clock value back to an instant.
101
+ *
102
+ * THE TWO CASES DATE MATH DIES ON:
103
+ * GAP (spring forward) - the wall time does not exist. Answer the first instant that does,
104
+ * i.e. the transition itself. A daily reminder that silently skips a day once a year is
105
+ * worse than one that runs half an hour late once a year.
106
+ * OVERLAP (fall back) - the wall time happens twice. Answer the EARLIER instant, once.
107
+ * Firing on both is a duplicate; firing on the second is an hour late.
108
+ */
109
+ export declare function notifyFromWall(zone: NotifyZoneRules, wall: number): number | null;
110
+ export interface NotifyCivil {
111
+ readonly year: number;
112
+ readonly month: number;
113
+ readonly day: number;
114
+ readonly hour: number;
115
+ readonly minute: number;
116
+ }
117
+ export declare function notifyDaysInMonth(year: number, month: number): number;
118
+ /** Days from 1970-01-01 to year-month-day, Howard Hinnant's civil_from_days inverted. */
119
+ export declare function notifyDaysFromCivil(year: number, month: number, day: number): number;
120
+ export declare function notifyCivilFromDays(days: number): {
121
+ year: number;
122
+ month: number;
123
+ day: number;
124
+ };
125
+ /** 0 = Sunday. 1970-01-01 was a Thursday. */
126
+ export declare function notifyWeekday(days: number): number;
127
+ export declare function notifyWallOf(civil: NotifyCivil): number;
128
+ export declare function notifyCivilOf(wall: number): NotifyCivil;
129
+ /** The cron search is BOUNDED. A bound is what makes `0 12 30 2 *` answer "never" instead of
130
+ * hanging a scheduler on a date that does not exist. A shade over four years, so the leap-day
131
+ * case is inside it. */
132
+ export declare const NOTIFY_CRON_SEARCH_DAYS = 1600;
133
+ export interface NotifyCronSpec {
134
+ readonly minutes: readonly number[];
135
+ readonly hours: readonly number[];
136
+ readonly daysOfMonth: readonly number[];
137
+ readonly months: readonly number[];
138
+ readonly daysOfWeek: readonly number[];
139
+ readonly domRestricted: boolean;
140
+ readonly dowRestricted: boolean;
141
+ }
142
+ export declare function notifyParseCron(expression: string): NotifyCronSpec | null;
143
+ export declare const NOTIFY_REPEAT_UNITS: readonly string[];
144
+ export interface NotifyTrigger {
145
+ readonly at?: string | number;
146
+ readonly in?: number;
147
+ readonly cron?: string;
148
+ readonly repeats?: string;
149
+ }
150
+ export type NotifyFirePlan = {
151
+ readonly ok: true;
152
+ readonly kind: "once" | "repeating";
153
+ readonly fires: readonly number[];
154
+ readonly exhausted: boolean;
155
+ } | {
156
+ readonly ok: false;
157
+ readonly error: "invalid_trigger";
158
+ };
159
+ /** Only the shape the module accepts on the wire: an epoch-ms number, or an ISO-8601 instant
160
+ * with an explicit zone. A bare local date and time with no zone is refused rather than guessed at, because
161
+ * the guess is exactly the bug this whole file exists to prevent. */
162
+ export declare function notifyParseInstant(value: string | number): number | null;
163
+ /**
164
+ * Resolve a trigger to its next `count` fire instants.
165
+ *
166
+ * WALL CLOCK VERSUS INTERVAL, the distinction the corpus exists to pin: `hourly` is an
167
+ * INTERVAL - exactly 3600000 ms apart, straight through a DST transition. Every other unit is
168
+ * WALL CLOCK - a 09:00 daily reminder is still 09:00 the day the clocks move, so the gap
169
+ * between those two fires is 23 or 25 hours. Both are correct; they are different.
170
+ */
171
+ export declare function notifyFireTimes(trigger: NotifyTrigger, from: number, zone: NotifyZoneRules | null | undefined, count: number): NotifyFirePlan;
172
+ export interface NotifyImportance {
173
+ readonly word: string;
174
+ readonly android: number;
175
+ readonly ios: string;
176
+ readonly headsUp: boolean;
177
+ readonly sound: boolean;
178
+ }
179
+ /** Six words, exact case. `android` is the real NotificationManager constant; `ios` is the
180
+ * UNNotificationInterruptionLevel the same intent maps to. `critical` is deliberately absent
181
+ * from the iOS column: it needs an Apple entitlement, and a channel word must never be the
182
+ * thing that silently asks for one. */
183
+ export declare const NOTIFY_IMPORTANCE: readonly NotifyImportance[];
184
+ export declare const NOTIFY_DEFAULT_IMPORTANCE = "default";
185
+ /** Channels arrived in Android 8. Below it a channel id is meaningless, not an error. */
186
+ export declare const NOTIFY_ANDROID_CHANNEL_SDK = 26;
187
+ export type NotifyImportanceResolution = {
188
+ readonly ok: true;
189
+ readonly value: NotifyImportance;
190
+ } | {
191
+ readonly ok: false;
192
+ readonly error: "invalid_argument";
193
+ };
194
+ export declare function notifyImportance(word: string | null | undefined): NotifyImportanceResolution;
195
+ export interface NotifyChannelState {
196
+ readonly importance: string;
197
+ /** The user changed this channel's importance themselves. Android then ignores the app. */
198
+ readonly userSet?: boolean;
199
+ readonly blocked?: boolean;
200
+ }
201
+ export type NotifyChannelFold = {
202
+ readonly ok: true;
203
+ readonly importance: string;
204
+ readonly created: boolean;
205
+ readonly changed: boolean;
206
+ readonly lockedByUser: boolean;
207
+ readonly blocked: boolean;
208
+ } | {
209
+ readonly ok: false;
210
+ readonly error: "invalid_argument";
211
+ };
212
+ /**
213
+ * What a `channels.set` will ACTUALLY produce.
214
+ *
215
+ * THE RULE EVERY LIBRARY GETS WRONG: once a channel exists, Android lets the app LOWER its
216
+ * importance and silently ignores every attempt to raise it, and it remembers a user's own
217
+ * choice forever - deleting and recreating the id does not reset it. So this is not an update,
218
+ * it is a negotiation, and the answer says what the channel will be rather than what was asked
219
+ * for. `lockedByUser` is what a settings screen needs in order to say "you turned this down"
220
+ * instead of rendering a control that does nothing.
221
+ */
222
+ export declare function notifyChannelFold(existing: NotifyChannelState | null | undefined, requested: string | null | undefined): NotifyChannelFold;
223
+ export type NotifyChannelRequirement = {
224
+ readonly ok: true;
225
+ readonly channel: string | null;
226
+ } | {
227
+ readonly ok: false;
228
+ readonly error: "channel_required";
229
+ readonly channel: string;
230
+ };
231
+ /** The module's own channel, created at first use so that an app which never thinks about
232
+ * channels still works. */
233
+ export declare const NOTIFY_DEFAULT_CHANNEL = "default";
234
+ /**
235
+ * Can this notification be posted.
236
+ *
237
+ * On Android 8+ a post to a channel that was never created is DROPPED BY THE OS - no
238
+ * exception, no log line, no callback. That is the number-one cause of "push does not
239
+ * arrive". Refuse first, and NAME THE ID.
240
+ */
241
+ export declare function notifyChannelRequired(platform: string, sdk: number, channel: string | null | undefined, known: readonly string[]): NotifyChannelRequirement;
242
+ /** The four words, canonical order - which is the order they are reported in, never sorted. */
243
+ export declare const NOTIFY_PRESENTATION_WORDS: readonly string[];
244
+ /** `banner` is what the platforms call it in their own settings UI. */
245
+ export declare const NOTIFY_PRESENTATION_ALIASES: {
246
+ readonly [word: string]: string;
247
+ };
248
+ export type NotifyPresentation = {
249
+ readonly ok: true;
250
+ readonly present: readonly string[];
251
+ readonly suppressed: boolean;
252
+ readonly headsUp: boolean;
253
+ readonly dropped: readonly string[];
254
+ readonly degraded: readonly string[];
255
+ } | {
256
+ readonly ok: false;
257
+ readonly error: "invalid_argument";
258
+ };
259
+ /**
260
+ * What a notification does while the app is open.
261
+ *
262
+ * THE DEFAULT IS NOTHING, on every platform, and it surprises every author. iOS makes it a
263
+ * delegate callback nobody implements; Android makes it a channel-importance question; the
264
+ * browser shows the notification but the page usually never hears about it. One word decides
265
+ * it everywhere.
266
+ */
267
+ export declare function notifyPresentation(configured: readonly string[] | null | undefined, claimed: boolean, platform: string, importance?: string | null): NotifyPresentation;
268
+ /** The platform constants for "the user tapped the notification body". Normalised AWAY, so
269
+ * that `if (payload.actionId)` means what it reads like. */
270
+ export declare const NOTIFY_DEFAULT_ACTION_IDS: readonly string[];
271
+ export declare const NOTIFY_DISMISS_ACTION_IDS: readonly string[];
272
+ export interface NotifyRawOpen {
273
+ readonly id?: string;
274
+ readonly actionId?: string;
275
+ readonly userText?: string;
276
+ readonly data?: Record<string, unknown>;
277
+ }
278
+ export interface NotifyOpenPayload {
279
+ readonly kind: "opened" | "dismissed";
280
+ readonly id: string;
281
+ readonly data: Record<string, unknown>;
282
+ readonly coldStart: boolean;
283
+ readonly actionId?: string;
284
+ readonly userText?: string;
285
+ }
286
+ /** One tap arrives in four envelope shapes - plain, action button, text-input action, and a
287
+ * COLD START where the app was not running. All four end up here, or an app routes three of
288
+ * them and loses the fourth. */
289
+ export declare function notifyOpenPayload(raw: NotifyRawOpen, coldStart: boolean): NotifyOpenPayload;
290
+ export declare const NOTIFY_PATH_BYTES = 8192;
291
+ export declare const NOTIFY_URL_BYTES = 8192;
292
+ export declare const NOTIFY_EVENT_BYTES = 65536;
293
+ export interface NotifyRoutingRecord {
294
+ readonly path: string | null;
295
+ readonly url: string | null;
296
+ }
297
+ /**
298
+ * The record `Mandatory/PushRouting` already consumes for a VENDOR open, produced for a
299
+ * first-party one.
300
+ *
301
+ * The bounds are restated rather than skipped: a first-party payload must not be the one that
302
+ * gets to bypass the checks a Firebase payload goes through. A field that fails a bound is
303
+ * dropped; the OPEN still happens, because losing the whole event over a bad deep link is a
304
+ * worse failure than losing the deep link.
305
+ */
306
+ export declare function notifyRoutingRecord(payload: {
307
+ readonly data?: Record<string, unknown>;
308
+ }): NotifyRoutingRecord;
309
+ /** What every lane renders for one `dsx_notify` payload. Invalid parts are dropped and named
310
+ * in `reports`; the notification itself is never dropped. */
311
+ export interface NotifyRichPlan {
312
+ style: "messaging" | "picture" | "plain";
313
+ id: string;
314
+ title: string;
315
+ body: string;
316
+ subtitle: string;
317
+ person: {
318
+ id: string;
319
+ name: string;
320
+ avatar: string;
321
+ } | null;
322
+ thread: string;
323
+ group: boolean;
324
+ conversationTitle: string;
325
+ interruption: string;
326
+ channel: string;
327
+ sound: string;
328
+ media: {
329
+ url: string;
330
+ type: string;
331
+ } | null;
332
+ reply: {
333
+ url: string;
334
+ token: string;
335
+ placeholder: string;
336
+ label: string;
337
+ } | null;
338
+ data: {
339
+ [k: string]: unknown;
340
+ };
341
+ reports: string[];
342
+ }
343
+ export declare const NOTIFY_RICH_INTERRUPTIONS: readonly string[];
344
+ export declare const NOTIFY_RICH_MEDIA_TYPES: readonly string[];
345
+ export declare const NOTIFY_RICH_ALGORITHMS: readonly string[];
346
+ type Obj = {
347
+ [k: string]: unknown;
348
+ };
349
+ /**
350
+ * The plan for a payload whose encrypted part (if any) is already opened. `sounds` is the list
351
+ * of package resource references the project declared as notification sounds. Returns null for
352
+ * anything that is not a version 1 `dsx_notify` payload.
353
+ */
354
+ export declare function notifyRichPlan(payload: unknown, sounds: readonly string[], reports?: readonly string[]): NotifyRichPlan | null;
355
+ /** AES-GCM open: key, iv and ct (ciphertext followed by its 16 byte tag), all raw bytes. Returns
356
+ * the plaintext, or null when the tag does not verify. Each lane supplies its own crypto. */
357
+ export type NotifyAesGcmOpen = (key: Uint8Array, iv: Uint8Array, ct: Uint8Array) => Uint8Array | null | Promise<Uint8Array | null>;
358
+ /**
359
+ * Open the encrypted part and plan the result. The plaintext fields replace the outer ones; when
360
+ * the key id is unknown, the algorithm unregistered or the tag fails, the outer fields are the
361
+ * fallback and the reason is reported.
362
+ */
363
+ export declare function notifyRichResolve(payload: unknown, sounds: readonly string[], keys: {
364
+ [kid: string]: string;
365
+ }, open: NotifyAesGcmOpen): Promise<NotifyRichPlan | null>;
366
+ /** OneSignal's APNs shape (aps alert, custom.i, custom.a, att) as a `dsx_notify` payload, so one
367
+ * extension renders both. Null when the push carries no OneSignal `custom` block. */
368
+ export declare function notifyRichFromOneSignal(raw: unknown): Obj | null;
369
+ /** Java keywords and literals: R.raw.<name> must compile, so none of them is a resource name. */
370
+ export declare const NOTIFY_SOUND_RESERVED: readonly string[];
371
+ /** A file name as its Android raw resource name (the Core/Alarms lookup rule), or null. */
372
+ export declare function notifySoundResourceName(file: string): string | null;
373
+ export interface NotifySoundResource {
374
+ readonly file: string;
375
+ readonly resource: string;
376
+ }
377
+ export interface NotifySoundError {
378
+ readonly code: "sound_name_invalid" | "sound_collision";
379
+ readonly resource: string | null;
380
+ readonly files: readonly string[];
381
+ }
382
+ export interface NotifySoundResources {
383
+ readonly ok: boolean;
384
+ readonly resources: readonly NotifySoundResource[];
385
+ readonly errors: readonly NotifySoundError[];
386
+ }
387
+ /** The build-time plan over one folder set: every file to its resource, refusals by name. */
388
+ export declare function notifySoundResources(files: readonly string[]): NotifySoundResources;
389
+ export interface NotifySoundSource {
390
+ readonly kind: "default" | "silent" | "package" | "raw";
391
+ readonly resource: string | null;
392
+ readonly ref: string | null;
393
+ readonly iosFile: string | null;
394
+ readonly report: "sound_undeclared" | null;
395
+ }
396
+ /** What a `sound` argument plays: declared package reference, then a shipped raw resource. */
397
+ export declare function notifySoundSource(sound: string | null | undefined, declared: readonly string[], rawShipped: (resource: string) => boolean): NotifySoundSource;
398
+ export {};
399
+ //# sourceMappingURL=notify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["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