@allyhub/sdk 0.1.0-alpha.8 → 0.2.0-next.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 (370) hide show
  1. package/NOTICE +85 -0
  2. package/client.d.ts +45 -1
  3. package/dist/anim.js +2 -75
  4. package/dist/define.d.ts +10 -4
  5. package/dist/define.js +2 -95
  6. package/dist/dom.d.ts +1 -1
  7. package/dist/dom.js +2 -457
  8. package/dist/fit.js +2 -60
  9. package/dist/free.d.ts +18 -0
  10. package/dist/free.js +2 -0
  11. package/dist/index.d.ts +28 -13
  12. package/dist/index.js +2 -11
  13. package/dist/input.d.ts +306 -0
  14. package/dist/input.js +2 -0
  15. package/dist/media.d.ts +3 -6
  16. package/dist/media.js +2 -27
  17. package/dist/messages.d.ts +3 -2
  18. package/dist/messages.js +2 -2
  19. package/dist/module.d.ts +24 -0
  20. package/dist/module.js +2 -0
  21. package/dist/noise.js +2 -233
  22. package/dist/parts.d.ts +97 -21
  23. package/dist/parts.js +2 -414
  24. package/dist/paths.d.ts +1 -1
  25. package/dist/paths.js +2 -720
  26. package/dist/phone.d.ts +26 -0
  27. package/dist/phone.js +2 -0
  28. package/dist/piece.d.ts +106 -35
  29. package/dist/piece.js +2 -38
  30. package/dist/props.d.ts +1 -1
  31. package/dist/props.js +2 -35
  32. package/dist/scenery.d.ts +2 -0
  33. package/dist/scenery.js +2 -0
  34. package/dist/text.js +2 -38
  35. package/dist/written.d.ts +12 -0
  36. package/dist/written.js +2 -0
  37. package/docs/README.md +18 -0
  38. package/docs/batches.md +148 -0
  39. package/docs/contract.md +51 -0
  40. package/docs/defaults.md +703 -0
  41. package/docs/docs.md +148 -0
  42. package/docs/footage.md +249 -0
  43. package/docs/layers.md +317 -0
  44. package/docs/modeling.md +143 -0
  45. package/docs/project.md +265 -0
  46. package/docs/scenery.md +308 -0
  47. package/docs/sheets.md +119 -0
  48. package/docs/slides.md +111 -0
  49. package/docs/sound.md +170 -0
  50. package/docs/speech.md +289 -0
  51. package/docs/video.md +265 -0
  52. package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
  53. package/node_modules/@allyhub-next/audio/dist/at-cut.js +2 -0
  54. package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
  55. package/node_modules/@allyhub-next/audio/dist/decode.js +2 -0
  56. package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
  57. package/node_modules/@allyhub-next/audio/dist/envelope.js +2 -0
  58. package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
  59. package/node_modules/@allyhub-next/audio/dist/index.js +2 -0
  60. package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
  61. package/node_modules/@allyhub-next/audio/dist/levels.js +2 -0
  62. package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
  63. package/node_modules/@allyhub-next/audio/dist/master.js +2 -0
  64. package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
  65. package/node_modules/@allyhub-next/audio/dist/music.js +2 -0
  66. package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
  67. package/node_modules/@allyhub-next/audio/dist/node/decode.js +2 -0
  68. package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
  69. package/node_modules/@allyhub-next/audio/dist/node/ebur128.js +2 -0
  70. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
  71. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +2 -0
  72. package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
  73. package/node_modules/@allyhub-next/audio/dist/node/index.js +2 -0
  74. package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
  75. package/node_modules/@allyhub-next/audio/dist/node/loudness.js +2 -0
  76. package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
  77. package/node_modules/@allyhub-next/audio/dist/node/master.js +2 -0
  78. package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
  79. package/node_modules/@allyhub-next/audio/dist/node/measure.js +2 -0
  80. package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
  81. package/node_modules/@allyhub-next/audio/dist/node/mix.js +2 -0
  82. package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
  83. package/node_modules/@allyhub-next/audio/dist/plan.js +2 -0
  84. package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
  85. package/node_modules/@allyhub-next/audio/dist/recorded.js +2 -0
  86. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
  87. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.js +2 -0
  88. package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
  89. package/node_modules/@allyhub-next/audio/dist/recording/chain.js +2 -0
  90. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
  91. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.js +2 -0
  92. package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
  93. package/node_modules/@allyhub-next/audio/dist/recording/fft.js +2 -0
  94. package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
  95. package/node_modules/@allyhub-next/audio/dist/recording/filters.js +2 -0
  96. package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
  97. package/node_modules/@allyhub-next/audio/dist/recording/fit.js +2 -0
  98. package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
  99. package/node_modules/@allyhub-next/audio/dist/recording/index.js +2 -0
  100. package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
  101. package/node_modules/@allyhub-next/audio/dist/recording/loudness.js +2 -0
  102. package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
  103. package/node_modules/@allyhub-next/audio/dist/recording/measure.js +2 -0
  104. package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
  105. package/node_modules/@allyhub-next/audio/dist/recording/mic.js +2 -0
  106. package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
  107. package/node_modules/@allyhub-next/audio/dist/recording/noise.js +2 -0
  108. package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
  109. package/node_modules/@allyhub-next/audio/dist/recording/presets.js +2 -0
  110. package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
  111. package/node_modules/@allyhub-next/audio/dist/recording/room.js +2 -0
  112. package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
  113. package/node_modules/@allyhub-next/audio/dist/recording/setup.js +2 -0
  114. package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
  115. package/node_modules/@allyhub-next/audio/dist/recording/vec.js +2 -0
  116. package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
  117. package/node_modules/@allyhub-next/audio/dist/render.js +2 -0
  118. package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
  119. package/node_modules/@allyhub-next/audio/dist/sfx.js +2 -0
  120. package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
  121. package/node_modules/@allyhub-next/audio/dist/shape.js +2 -0
  122. package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
  123. package/node_modules/@allyhub-next/audio/dist/voice.js +2 -0
  124. package/node_modules/@allyhub-next/audio/package.json +17 -0
  125. package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
  126. package/node_modules/@allyhub-next/formats/dist/data/comments.js +2 -0
  127. package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
  128. package/node_modules/@allyhub-next/formats/dist/data/config.js +2 -0
  129. package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
  130. package/node_modules/@allyhub-next/formats/dist/data/edits.js +2 -0
  131. package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
  132. package/node_modules/@allyhub-next/formats/dist/data/elements.js +2 -0
  133. package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
  134. package/node_modules/@allyhub-next/formats/dist/data/faces.js +2 -0
  135. package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
  136. package/node_modules/@allyhub-next/formats/dist/data/file.js +2 -0
  137. package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
  138. package/node_modules/@allyhub-next/formats/dist/data/gen.js +2 -0
  139. package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
  140. package/node_modules/@allyhub-next/formats/dist/data/messages.js +2 -0
  141. package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
  142. package/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
  143. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
  144. package/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
  145. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
  146. package/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
  147. package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
  148. package/node_modules/@allyhub-next/formats/dist/data/words.js +2 -0
  149. package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
  150. package/node_modules/@allyhub-next/formats/dist/index.js +2 -0
  151. package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
  152. package/node_modules/@allyhub-next/formats/dist/items.js +2 -0
  153. package/node_modules/@allyhub-next/formats/dist/layout.d.ts +50 -0
  154. package/node_modules/@allyhub-next/formats/dist/layout.js +5 -0
  155. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
  156. package/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
  157. package/node_modules/@allyhub-next/formats/package.json +14 -0
  158. package/node_modules/@allyhub-next/formats/schemas/comments.schema.json +152 -0
  159. package/node_modules/@allyhub-next/formats/schemas/config.schema.json +43 -0
  160. package/node_modules/@allyhub-next/formats/schemas/edits.schema.json +112 -0
  161. package/node_modules/@allyhub-next/formats/schemas/elements.schema.json +33 -0
  162. package/node_modules/@allyhub-next/formats/schemas/gen.schema.json +97 -0
  163. package/node_modules/@allyhub-next/formats/schemas/interpretation.schema.json +125 -0
  164. package/node_modules/@allyhub-next/formats/schemas/items.json +75 -0
  165. package/node_modules/@allyhub-next/formats/schemas/messages.schema.json +11 -0
  166. package/node_modules/@allyhub-next/formats/schemas/script.schema.json +162 -0
  167. package/node_modules/@allyhub-next/formats/schemas/sheet.schema.json +395 -0
  168. package/node_modules/@allyhub-next/formats/schemas/words.schema.json +63 -0
  169. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
  170. package/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
  171. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
  172. package/node_modules/@allyhub-next/protocol/dist/auth.js +2 -0
  173. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
  174. package/node_modules/@allyhub-next/protocol/dist/cli.js +2 -0
  175. package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +272 -0
  176. package/node_modules/@allyhub-next/protocol/dist/cloud.js +2 -0
  177. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
  178. package/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
  179. package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
  180. package/node_modules/@allyhub-next/protocol/dist/files.js +2 -0
  181. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
  182. package/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
  183. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
  184. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.js +2 -0
  185. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +53 -0
  186. package/node_modules/@allyhub-next/protocol/dist/registry.js +2 -0
  187. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
  188. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
  189. package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
  190. package/node_modules/@allyhub-next/protocol/dist/teams.js +2 -0
  191. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
  192. package/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
  193. package/node_modules/@allyhub-next/protocol/package.json +13 -0
  194. package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
  195. package/node_modules/@allyhub-next/runtimes/dist/bundled.js +2 -0
  196. package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
  197. package/node_modules/@allyhub-next/runtimes/dist/download.js +2 -0
  198. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
  199. package/node_modules/@allyhub-next/runtimes/dist/errors.js +2 -0
  200. package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
  201. package/node_modules/@allyhub-next/runtimes/dist/home.js +2 -0
  202. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
  203. package/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
  204. package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
  205. package/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
  206. package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
  207. package/node_modules/@allyhub-next/runtimes/dist/manifest.js +2 -0
  208. package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
  209. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -0
  210. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  211. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
  212. package/node_modules/@allyhub-next/runtimes/manifest.json +395 -0
  213. package/node_modules/@allyhub-next/runtimes/package.json +14 -0
  214. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +153 -0
  215. package/node_modules/@allyhub-next/scenery/NOTICE +42 -0
  216. package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
  217. package/node_modules/@allyhub-next/scenery/dist/aim.js +2 -0
  218. package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
  219. package/node_modules/@allyhub-next/scenery/dist/bake.js +2 -0
  220. package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
  221. package/node_modules/@allyhub-next/scenery/dist/camera.js +2 -0
  222. package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
  223. package/node_modules/@allyhub-next/scenery/dist/curve.js +2 -0
  224. package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
  225. package/node_modules/@allyhub-next/scenery/dist/define.js +2 -0
  226. package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
  227. package/node_modules/@allyhub-next/scenery/dist/fit.js +2 -0
  228. package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
  229. package/node_modules/@allyhub-next/scenery/dist/glass.js +2 -0
  230. package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
  231. package/node_modules/@allyhub-next/scenery/dist/handheld.js +2 -0
  232. package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
  233. package/node_modules/@allyhub-next/scenery/dist/hull.js +2 -0
  234. package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
  235. package/node_modules/@allyhub-next/scenery/dist/index.js +2 -0
  236. package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
  237. package/node_modules/@allyhub-next/scenery/dist/lens.js +2 -0
  238. package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
  239. package/node_modules/@allyhub-next/scenery/dist/moire.js +93 -0
  240. package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
  241. package/node_modules/@allyhub-next/scenery/dist/motion.js +2 -0
  242. package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
  243. package/node_modules/@allyhub-next/scenery/dist/move.js +2 -0
  244. package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
  245. package/node_modules/@allyhub-next/scenery/dist/noise.js +2 -0
  246. package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
  247. package/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
  248. package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
  249. package/node_modules/@allyhub-next/scenery/dist/report.js +2 -0
  250. package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
  251. package/node_modules/@allyhub-next/scenery/dist/screen-focus.js +2 -0
  252. package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
  253. package/node_modules/@allyhub-next/scenery/dist/screen.js +2 -0
  254. package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
  255. package/node_modules/@allyhub-next/scenery/dist/solve.js +2 -0
  256. package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
  257. package/node_modules/@allyhub-next/scenery/dist/timing.js +2 -0
  258. package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
  259. package/node_modules/@allyhub-next/scenery/dist/vec.js +2 -0
  260. package/node_modules/@allyhub-next/scenery/package.json +13 -0
  261. package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
  262. package/node_modules/@allyhub-next/video-core/dist/anchors.js +2 -0
  263. package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
  264. package/node_modules/@allyhub-next/video-core/dist/audio-types.js +2 -0
  265. package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
  266. package/node_modules/@allyhub-next/video-core/dist/backdrop.js +2 -0
  267. package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
  268. package/node_modules/@allyhub-next/video-core/dist/captions.js +11 -0
  269. package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
  270. package/node_modules/@allyhub-next/video-core/dist/console.js +2 -0
  271. package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
  272. package/node_modules/@allyhub-next/video-core/dist/contrast.js +2 -0
  273. package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
  274. package/node_modules/@allyhub-next/video-core/dist/cut-report.js +2 -0
  275. package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
  276. package/node_modules/@allyhub-next/video-core/dist/edit.js +13 -0
  277. package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
  278. package/node_modules/@allyhub-next/video-core/dist/edits.js +2 -0
  279. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
  280. package/node_modules/@allyhub-next/video-core/dist/export.js +2 -0
  281. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
  282. package/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
  283. package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
  284. package/node_modules/@allyhub-next/video-core/dist/footage-motion.js +2 -0
  285. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
  286. package/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
  287. package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
  288. package/node_modules/@allyhub-next/video-core/dist/gen.js +2 -0
  289. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
  290. package/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
  291. package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
  292. package/node_modules/@allyhub-next/video-core/dist/look.js +2 -0
  293. package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
  294. package/node_modules/@allyhub-next/video-core/dist/marks.js +2 -0
  295. package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
  296. package/node_modules/@allyhub-next/video-core/dist/matrix.js +2 -0
  297. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
  298. package/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
  299. package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
  300. package/node_modules/@allyhub-next/video-core/dist/media.js +2 -0
  301. package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
  302. package/node_modules/@allyhub-next/video-core/dist/messages.js +2 -0
  303. package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
  304. package/node_modules/@allyhub-next/video-core/dist/motion.js +2 -0
  305. package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
  306. package/node_modules/@allyhub-next/video-core/dist/music.js +2 -0
  307. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
  308. package/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
  309. package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
  310. package/node_modules/@allyhub-next/video-core/dist/placement.js +2 -0
  311. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
  312. package/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
  313. package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
  314. package/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
  315. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
  316. package/node_modules/@allyhub-next/video-core/dist/schema.js +2 -0
  317. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
  318. package/node_modules/@allyhub-next/video-core/dist/script-edit.js +2 -0
  319. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
  320. package/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
  321. package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
  322. package/node_modules/@allyhub-next/video-core/dist/seams.js +2 -0
  323. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
  324. package/node_modules/@allyhub-next/video-core/dist/slides.js +2 -0
  325. package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
  326. package/node_modules/@allyhub-next/video-core/dist/sound-under.js +2 -0
  327. package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
  328. package/node_modules/@allyhub-next/video-core/dist/speech.js +5 -0
  329. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
  330. package/node_modules/@allyhub-next/video-core/dist/timeline.js +2 -0
  331. package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
  332. package/node_modules/@allyhub-next/video-core/dist/timing.js +2 -0
  333. package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
  334. package/node_modules/@allyhub-next/video-core/dist/transcript.js +2 -0
  335. package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
  336. package/node_modules/@allyhub-next/video-core/dist/transition.js +2 -0
  337. package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
  338. package/node_modules/@allyhub-next/video-core/dist/voice.js +2 -0
  339. package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
  340. package/node_modules/@allyhub-next/video-core/dist/words.js +2 -0
  341. package/node_modules/@allyhub-next/video-core/package.json +14 -0
  342. package/package.json +52 -41
  343. package/README.md +0 -17
  344. package/dist/anim.d.ts.map +0 -1
  345. package/dist/anim.js.map +0 -1
  346. package/dist/define.d.ts.map +0 -1
  347. package/dist/define.js.map +0 -1
  348. package/dist/dom.d.ts.map +0 -1
  349. package/dist/dom.js.map +0 -1
  350. package/dist/fit.d.ts.map +0 -1
  351. package/dist/fit.js.map +0 -1
  352. package/dist/index.d.ts.map +0 -1
  353. package/dist/index.js.map +0 -1
  354. package/dist/media.d.ts.map +0 -1
  355. package/dist/media.js.map +0 -1
  356. package/dist/messages.d.ts.map +0 -1
  357. package/dist/messages.js.map +0 -1
  358. package/dist/noise.d.ts.map +0 -1
  359. package/dist/noise.js.map +0 -1
  360. package/dist/parts.d.ts.map +0 -1
  361. package/dist/parts.js.map +0 -1
  362. package/dist/paths.d.ts.map +0 -1
  363. package/dist/paths.js.map +0 -1
  364. package/dist/piece.d.ts.map +0 -1
  365. package/dist/piece.js.map +0 -1
  366. package/dist/props.d.ts.map +0 -1
  367. package/dist/props.js.map +0 -1
  368. package/dist/text.d.ts.map +0 -1
  369. package/dist/text.js.map +0 -1
  370. /package/{LICENSE → LICENSE.md} +0 -0
@@ -0,0 +1,45 @@
1
+ import type { MixPlan, SpeechClip, Stereo } from "./plan.js";
2
+ import { type ResolvedVoice, type VoiceSpan } from "./recording/chain.js";
3
+ /** Speech recorded alike: its clips, where its parts play, and its seed. */
4
+ export interface VoiceGroup {
5
+ voice: ResolvedVoice;
6
+ clips: SpeechClip[];
7
+ spans: VoiceSpan[];
8
+ /** The parts recorded so, in film order. */
9
+ parts: string[];
10
+ seed: number;
11
+ }
12
+ /**
13
+ * The plan's speech by how it was recorded (the part's own setting, else
14
+ * the video's): one group per setting, and the clips played as they are
15
+ * (a setting of false, or a plan without one).
16
+ */
17
+ export declare function voiceGroups(plan: MixPlan): {
18
+ groups: VoiceGroup[];
19
+ dry: SpeechClip[];
20
+ };
21
+ /**
22
+ * A clip's source: its two channels, and the speed it was already made at
23
+ * (its second s at s / speed), when it was.
24
+ */
25
+ export interface ClipSource {
26
+ src: Stereo;
27
+ stretched?: number;
28
+ }
29
+ /**
30
+ * Adds a speech clip into a voice's two channels at `rate`, as the mix
31
+ * places it: its stretch of the file at its place and gain, faded 10 ms at
32
+ * each cut or over the plan's equal-power cross-fade. `stretched` is the
33
+ * speed the source was already made at (its second s at s / speed); else
34
+ * a clip with a speed is resampled from the source as recorded.
35
+ */
36
+ export declare function addSpeech(bus: Stereo, src: Stereo, c: SpeechClip, rate: number, stretched?: number): void;
37
+ /** Speech clips summed as the mix places them, before any recording. */
38
+ export declare function sumSpeech(clips: readonly SpeechClip[], duration: number, rate: number, sourceOf: (c: SpeechClip) => ClipSource | undefined): Stereo;
39
+ /**
40
+ * A voice group's sound: its clips summed (each from `sourceOf`, with the
41
+ * speed it was made at, or undefined to leave it out), then played
42
+ * through its setting. What the render's mix and the player both add.
43
+ */
44
+ export declare function playVoice(g: VoiceGroup, duration: number, rate: number, sourceOf: (c: SpeechClip) => ClipSource | undefined): Stereo;
45
+ //# sourceMappingURL=voice.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{equalPower as q}from"./envelope.js";import{recordVoice as D}from"./recording/chain.js";import{hashSeed as G}from"./sfx.js";export function voiceGroups(e){const c=e.voice;if(!c)return{groups:[],dry:[...e.speech]};const n=o=>(o===void 0?void 0:c.parts?.[o])??c.video,r=new Map,f=[],u=o=>{const t=JSON.stringify(o);let i=r.get(t);return i||(i={voice:o,clips:[],spans:[],parts:[],seed:G(`${c.seed}:voice:${t}`)},r.set(t,i)),i};for(const o of e.speech){const t=n(o.part);t===!1?f.push(o):u(t).clips.push(o)}for(const o of c.spans){const t=n(o.part);if(t===!1)continue;const i=u(t);i.spans.push({start:o.start,end:o.end}),i.parts.push(o.part)}return{groups:[...r.values()],dry:f}}export function addSpeech(e,c,n,r,f){const u=Math.round(n.dur*r),o=Math.round(n.at*r),t=10**(n.gainDb/20),i=Math.min(Math.round(.01*r),Math.floor(u/4)),h=s=>s===void 0||s<=0?0:Math.min(Math.round(s*r),Math.floor(u/2)),O=h(n.fadeIn),S=h(n.fadeOut),l=(s,a)=>a>0?q(s/a):i>0&&s<i?s/i:1,b=e[0].length,m=c[0].length,M=f===void 0?n.speed??1:1,g=f===void 0?n.from*r:n.from/f*r;for(let s=0;s<u;s++){const a=o+s;if(a<0||a>=b)continue;const v=M===1?Math.round(g)+s:g+s*M,p=Math.floor(v);if(p<0||p>=m)continue;const A=v-p,F=Math.min(p+1,m-1),V=t*l(s,O)*l(u-1-s,S);for(let d=0;d<2;d++){const y=c[d]??c[0],w=y[p]??0,$=y[F]??0,x=e[d]??e[0];x[a]=(x[a]??0)+(w+($-w)*A)*V}}}export function sumSpeech(e,c,n,r){const f=Math.round(c*n),u=[new Float32Array(f),new Float32Array(f)];for(const o of e){const t=r(o);t&&addSpeech(u,t.src,o,n,t.stretched)}return u}export function playVoice(e,c,n,r){const f=sumSpeech(e.clips,c,n,r);return D(f,e.voice,n,e.seed,e.spans),f}
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@allyhub-next/audio",
3
+ "version": "0.2.0-next.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ },
10
+ "./node": {
11
+ "types": "./dist/node/index.d.ts",
12
+ "default": "./dist/node/index.js"
13
+ }
14
+ },
15
+ "private": true,
16
+ "license": "SEE LICENSE IN LICENSE.md"
17
+ }
@@ -0,0 +1,94 @@
1
+ import { z } from "zod";
2
+ export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ type: z.ZodLiteral<"quote">;
4
+ exact: z.ZodString;
5
+ prefix: z.ZodOptional<z.ZodString>;
6
+ suffix: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strict>, z.ZodObject<{
8
+ type: z.ZodLiteral<"cells">;
9
+ range: z.ZodString;
10
+ }, z.core.$strict>, z.ZodObject<{
11
+ type: z.ZodLiteral<"item">;
12
+ }, z.core.$strict>], "type">;
13
+ export type Target = z.infer<typeof TargetSchema>;
14
+ export declare const AuthorSchema: z.ZodObject<{
15
+ kind: z.ZodEnum<{
16
+ person: "person";
17
+ agent: "agent";
18
+ }>;
19
+ name: z.ZodString;
20
+ }, z.core.$strict>;
21
+ export declare const CommentSchema: z.ZodObject<{
22
+ id: z.ZodString;
23
+ author: z.ZodObject<{
24
+ kind: z.ZodEnum<{
25
+ person: "person";
26
+ agent: "agent";
27
+ }>;
28
+ name: z.ZodString;
29
+ }, z.core.$strict>;
30
+ text: z.ZodString;
31
+ at: z.ZodISODateTime;
32
+ }, z.core.$strict>;
33
+ export declare const ThreadSchema: z.ZodObject<{
34
+ id: z.ZodString;
35
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
36
+ type: z.ZodLiteral<"quote">;
37
+ exact: z.ZodString;
38
+ prefix: z.ZodOptional<z.ZodString>;
39
+ suffix: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ type: z.ZodLiteral<"cells">;
42
+ range: z.ZodString;
43
+ }, z.core.$strict>, z.ZodObject<{
44
+ type: z.ZodLiteral<"item">;
45
+ }, z.core.$strict>], "type">;
46
+ resolved: z.ZodDefault<z.ZodBoolean>;
47
+ comments: z.ZodArray<z.ZodObject<{
48
+ id: z.ZodString;
49
+ author: z.ZodObject<{
50
+ kind: z.ZodEnum<{
51
+ person: "person";
52
+ agent: "agent";
53
+ }>;
54
+ name: z.ZodString;
55
+ }, z.core.$strict>;
56
+ text: z.ZodString;
57
+ at: z.ZodISODateTime;
58
+ }, z.core.$strict>>;
59
+ }, z.core.$strict>;
60
+ export type Thread = z.infer<typeof ThreadSchema>;
61
+ export declare const CommentsFileSchema: z.ZodObject<{
62
+ $schema: z.ZodOptional<z.ZodString>;
63
+ version: z.ZodLiteral<1>;
64
+ threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
65
+ id: z.ZodString;
66
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
+ type: z.ZodLiteral<"quote">;
68
+ exact: z.ZodString;
69
+ prefix: z.ZodOptional<z.ZodString>;
70
+ suffix: z.ZodOptional<z.ZodString>;
71
+ }, z.core.$strict>, z.ZodObject<{
72
+ type: z.ZodLiteral<"cells">;
73
+ range: z.ZodString;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ type: z.ZodLiteral<"item">;
76
+ }, z.core.$strict>], "type">;
77
+ resolved: z.ZodDefault<z.ZodBoolean>;
78
+ comments: z.ZodArray<z.ZodObject<{
79
+ id: z.ZodString;
80
+ author: z.ZodObject<{
81
+ kind: z.ZodEnum<{
82
+ person: "person";
83
+ agent: "agent";
84
+ }>;
85
+ name: z.ZodString;
86
+ }, z.core.$strict>;
87
+ text: z.ZodString;
88
+ at: z.ZodISODateTime;
89
+ }, z.core.$strict>>;
90
+ }, z.core.$strict>>>;
91
+ }, z.core.$strict>;
92
+ export type CommentsFile = z.infer<typeof CommentsFileSchema>;
93
+ export declare const COMMENTS_FILE = "comments.json";
94
+ //# sourceMappingURL=comments.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as t}from"zod";import{INSTANT as e,dataFile as r}from"./file.js";export const TargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("quote"),exact:t.string().min(1),prefix:t.string().optional(),suffix:t.string().optional()}),t.strictObject({type:t.literal("cells"),range:t.string().regex(/^[A-Z]+[1-9]\d*(?::[A-Z]+[1-9]\d*)?$/u)}),t.strictObject({type:t.literal("item")})]),AuthorSchema=t.strictObject({kind:t.enum(["person","agent"]),name:t.string().min(1)}),CommentSchema=t.strictObject({id:t.string().min(1),author:AuthorSchema,text:t.string().min(1),at:e}),ThreadSchema=t.strictObject({id:t.string().min(1),target:TargetSchema,resolved:t.boolean().default(!1),comments:t.array(CommentSchema).min(1)}),CommentsFileSchema=r({version:t.literal(1),threads:t.array(ThreadSchema).default([])}),COMMENTS_FILE="comments.json";
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const ConfigSchema: z.ZodObject<{
3
+ fonts: z.ZodDefault<z.ZodArray<z.ZodString>>;
4
+ text: z.ZodOptional<z.ZodString>;
5
+ locales: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
+ look: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7
+ defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ }, z.core.$strict>;
9
+ export type Config = z.infer<typeof ConfigSchema>;
10
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as n}from"zod";export const ConfigSchema=n.strictObject({fonts:n.array(n.string().min(1)).default([]),text:n.string().optional(),locales:n.array(n.string().min(2)).min(1).optional(),look:n.record(n.string(),n.unknown()).optional(),defaults:n.record(n.string(),n.unknown()).optional()});
@@ -0,0 +1,28 @@
1
+ import { z } from "zod";
2
+ /** The most seconds of room a cut keeps on a side (video-core's parseEditList, which plays the file). */
3
+ export declare const PAD_MAX = 2;
4
+ export declare const EditsFileSchema: z.ZodObject<{
5
+ $schema: z.ZodOptional<z.ZodString>;
6
+ version: z.ZodLiteral<1>;
7
+ take: z.ZodOptional<z.ZodString>;
8
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
+ from: z.ZodInt;
10
+ to: z.ZodInt;
11
+ text: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strict>>>;
13
+ sounds: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
+ from: z.ZodNumber;
15
+ to: z.ZodNumber;
16
+ }, z.core.$strict>>>;
17
+ inWord: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ from: z.ZodNumber;
19
+ to: z.ZodNumber;
20
+ }, z.core.$strict>>>;
21
+ maxPause: z.ZodOptional<z.ZodNumber>;
22
+ pad: z.ZodOptional<z.ZodObject<{
23
+ before: z.ZodOptional<z.ZodNumber>;
24
+ after: z.ZodOptional<z.ZodNumber>;
25
+ }, z.core.$strict>>;
26
+ }, z.core.$strict>;
27
+ export type EditsFile = z.infer<typeof EditsFileSchema>;
28
+ //# sourceMappingURL=edits.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as t}from"zod";import{SECONDS as e,dataFile as n}from"./file.js";const a=t.strictObject({from:e,to:e}).refine(o=>o.to>o.from,{message:"A stretch ends after its start.",path:["to"]});export const PAD_MAX=2;const r=t.number().min(0).max(PAD_MAX);export const EditsFileSchema=n({version:t.literal(1),take:t.string().optional(),remove:t.array(t.strictObject({from:t.int().nonnegative(),to:t.int().nonnegative(),text:t.string().optional()}).refine(o=>o.to>=o.from,{message:"A range ends at or after its start.",path:["to"]})).optional(),sounds:t.array(a).optional(),inWord:t.array(a).optional(),maxPause:t.number().min(.05).max(10).optional(),pad:t.strictObject({before:r.optional(),after:r.optional()}).optional()});
@@ -0,0 +1,6 @@
1
+ import { z } from "zod";
2
+ /** [x, y, width, height] in the picture's pixels. */
3
+ export declare const ElementBoxSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
4
+ export declare const ElementsFileSchema: z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
5
+ export type ElementsFile = z.infer<typeof ElementsFileSchema>;
6
+ //# sourceMappingURL=elements.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as e}from"zod";export const ElementBoxSchema=e.tuple([e.number(),e.number(),e.number().nonnegative(),e.number().nonnegative()]),ElementsFileSchema=e.record(e.string().min(1),ElementBoxSchema);
@@ -0,0 +1,38 @@
1
+ /** A face at a moment of a video: seconds, and its box in the displayed picture's pixels. */
2
+ export interface FaceSample {
3
+ t: number;
4
+ box: [x: number, y: number, w: number, h: number];
5
+ /** The detector's confidence, 0 where the box was filled in between detections. */
6
+ score: number;
7
+ }
8
+ /** One face followed over a video: its id, and a sample per sampled moment from its first detection to its last (gaps filled in). */
9
+ export interface TrackedFace {
10
+ /** Stable over the video: faces are numbered from 0 in the order they first appear. */
11
+ id: number;
12
+ samples: FaceSample[];
13
+ }
14
+ /**
15
+ * Every face of a video, sampled at `fps`, each followed from frame to
16
+ * frame with a stable id and smoothed, and the default speaker. Kept in
17
+ * the media index (.allyhub/cache/index/<sha256>/faces.json).
18
+ */
19
+ export interface FaceTrack {
20
+ version: 2;
21
+ /** The detector, e.g. "yunet-2023mar". */
22
+ model: string;
23
+ /** The displayed picture's pixels the boxes are in. */
24
+ width: number;
25
+ height: number;
26
+ /** Samples per second. */
27
+ fps: number;
28
+ /** Every face found, by id. Empty when no face was found. */
29
+ faces: TrackedFace[];
30
+ /**
31
+ * The default speaker's id: the face chosen as the main face in the most
32
+ * sampled frames, where a frame's main face is the largest, kept through
33
+ * a bigger face passing by. What reads a face without naming one follows
34
+ * it. Absent when no face was found.
35
+ */
36
+ speaker?: number;
37
+ }
38
+ //# sourceMappingURL=faces.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ export{};
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare const SHA256: z.ZodString;
3
+ /** Seconds, from the start of a recording. */
4
+ export declare const SECONDS: z.ZodNumber;
5
+ /** A moment in ISO 8601, with its offset. */
6
+ export declare const INSTANT: z.ZodISODateTime;
7
+ /** A data file's object: strict, with an optional `$schema`. */
8
+ export declare function dataFile<S extends z.ZodRawShape>(shape: S): z.ZodObject<{
9
+ $schema: z.ZodOptional<z.ZodString>;
10
+ } & S extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$strict>;
11
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as t}from"zod";export const SHA256=t.string().regex(/^[0-9a-f]{64}$/u,"A sha256 is 64 lowercase hexadecimal digits."),SECONDS=t.number().nonnegative(),INSTANT=t.iso.datetime({offset:!0});export function dataFile(e){return t.strictObject({$schema:t.string().optional(),...e})}
@@ -0,0 +1,31 @@
1
+ import { z } from "zod";
2
+ declare const Omitted: z.ZodObject<{
3
+ omitted: z.ZodLiteral<true>;
4
+ sha256: z.ZodString;
5
+ bytes: z.ZodInt;
6
+ }, z.core.$strict>;
7
+ export declare const GenFileSchema: z.ZodObject<{
8
+ $schema: z.ZodOptional<z.ZodString>;
9
+ version: z.ZodLiteral<1>;
10
+ ai: z.ZodBoolean;
11
+ tool: z.ZodOptional<z.ZodString>;
12
+ model: z.ZodOptional<z.ZodString>;
13
+ input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
+ inputHash: z.ZodOptional<z.ZodString>;
15
+ output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
+ credits: z.ZodOptional<z.ZodNumber>;
17
+ at: z.ZodISODateTime;
18
+ sha256: z.ZodString;
19
+ bytes: z.ZodInt;
20
+ source: z.ZodOptional<z.ZodObject<{
21
+ library: z.ZodString;
22
+ page: z.ZodURL;
23
+ authors: z.ZodDefault<z.ZodArray<z.ZodString>>;
24
+ license: z.ZodString;
25
+ }, z.core.$strict>>;
26
+ }, z.core.$strict>;
27
+ export type GenFile = z.infer<typeof GenFileSchema>;
28
+ export { Omitted as OmittedValueSchema };
29
+ /** The record of a file: beside it, `.gen.json` added. */
30
+ export declare const genFileFor: (file: string) => string;
31
+ //# sourceMappingURL=gen.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as t}from"zod";import{INSTANT as e,SHA256 as n,dataFile as i}from"./file.js";const r=t.strictObject({omitted:t.literal(!0),sha256:n,bytes:t.int().nonnegative()});export const GenFileSchema=i({version:t.literal(1),ai:t.boolean(),tool:t.string().optional(),model:t.string().optional(),input:t.record(t.string(),t.unknown()).optional(),inputHash:n.optional(),output:t.record(t.string(),t.unknown()).optional(),credits:t.number().nonnegative().optional(),at:e,sha256:n,bytes:t.int().nonnegative(),source:t.strictObject({library:t.string(),page:t.url(),authors:t.array(t.string()).default([]),license:t.string()}).optional()});export{r as OmittedValueSchema};export const genFileFor=o=>`${o}.gen.json`;
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ /** A key: segments of letters, digits, `_` and `-`, joined by dots. */
3
+ export declare const MESSAGE_KEY: RegExp;
4
+ export declare const SpokenSchema: z.ZodObject<{
5
+ display: z.ZodString;
6
+ speak: z.ZodString;
7
+ }, z.core.$strict>;
8
+ /** A message with variants, as a script writes it: one object. */
9
+ export declare const VariantsSchema: z.ZodObject<{
10
+ declarations: z.ZodDefault<z.ZodArray<z.ZodString>>;
11
+ selectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
12
+ match: z.ZodRecord<z.ZodString, z.ZodString>;
13
+ }, z.core.$strict>;
14
+ /** One message in a messages file: a variant message is wrapped in a list, as inlang writes it. */
15
+ export declare const MessageSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
16
+ display: z.ZodString;
17
+ speak: z.ZodString;
18
+ }, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
19
+ declarations: z.ZodDefault<z.ZodArray<z.ZodString>>;
20
+ selectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
21
+ match: z.ZodRecord<z.ZodString, z.ZodString>;
22
+ }, z.core.$strict>], null>]>;
23
+ export type Message = z.infer<typeof MessageSchema>;
24
+ /** assets/text/<locale>.json: the words several items share, by flat key. */
25
+ export declare const MessagesFileSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodTransform<Record<string, string | {
26
+ display: string;
27
+ speak: string;
28
+ } | [{
29
+ declarations: string[];
30
+ selectors: string[];
31
+ match: Record<string, string>;
32
+ }]>, Record<string, unknown>>>;
33
+ export type MessagesFile = z.infer<typeof MessagesFileSchema>;
34
+ //# sourceMappingURL=messages.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as s}from"zod";export const MESSAGE_KEY=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/u,SpokenSchema=s.strictObject({display:s.string(),speak:s.string()}),VariantsSchema=s.strictObject({declarations:s.array(s.string()).default([]),selectors:s.array(s.string()).default([]),match:s.record(s.string(),s.string()).refine(a=>Object.keys(a).length>0,"A match needs at least one case.")}),MessageSchema=s.union([s.string(),SpokenSchema,s.tuple([VariantsSchema])]),MessagesFileSchema=s.record(s.string(),s.unknown()).superRefine((a,e)=>{for(const[t,r]of Object.entries(a)){if(t==="$schema"){typeof r!="string"&&e.addIssue({code:"custom",path:[t],message:"$schema is a string."});continue}MESSAGE_KEY.test(t)||e.addIssue({code:"custom",path:[t],message:`"${t}" is not a message key: letters, digits, _ and -, in segments joined by dots.`});const n=MessageSchema.safeParse(r);n.success||e.addIssue({code:"custom",path:[t],message:Array.isArray(r)?`A message with variants is [{ "declarations": […], "selectors": […], "match": {…} }]: ${n.error.issues.map(o=>o.message).join("; ")}`:"A message is a string, { display, speak }, or [{ declarations, selectors, match }]."})}}).transform(a=>{const e={...a};return delete e.$schema,e});