@allyhub/sdk 0.1.0-alpha.8 → 0.2.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (365) hide show
  1. package/LICENSE.md +241 -0
  2. package/NOTICE +85 -0
  3. package/client.d.ts +45 -1
  4. package/dist/anim.js +2 -75
  5. package/dist/define.d.ts +10 -4
  6. package/dist/define.js +2 -95
  7. package/dist/dom.d.ts +1 -1
  8. package/dist/dom.js +2 -457
  9. package/dist/fit.js +2 -60
  10. package/dist/free.d.ts +18 -0
  11. package/dist/free.js +2 -0
  12. package/dist/index.d.ts +28 -13
  13. package/dist/index.js +2 -11
  14. package/dist/input.d.ts +306 -0
  15. package/dist/input.js +2 -0
  16. package/dist/media.d.ts +3 -6
  17. package/dist/media.js +2 -27
  18. package/dist/messages.d.ts +3 -2
  19. package/dist/messages.js +2 -2
  20. package/dist/module.d.ts +24 -0
  21. package/dist/module.js +2 -0
  22. package/dist/noise.js +2 -233
  23. package/dist/parts.d.ts +98 -22
  24. package/dist/parts.js +2 -414
  25. package/dist/paths.d.ts +1 -1
  26. package/dist/paths.js +2 -720
  27. package/dist/phone.d.ts +26 -0
  28. package/dist/phone.js +2 -0
  29. package/dist/piece.d.ts +106 -35
  30. package/dist/piece.js +2 -38
  31. package/dist/props.d.ts +1 -1
  32. package/dist/props.js +2 -35
  33. package/dist/scenery.d.ts +2 -0
  34. package/dist/scenery.js +2 -0
  35. package/dist/text.js +2 -38
  36. package/dist/written.d.ts +12 -0
  37. package/dist/written.js +2 -0
  38. package/docs/README.md +18 -0
  39. package/docs/batches.md +148 -0
  40. package/docs/contract.md +51 -0
  41. package/docs/defaults.md +703 -0
  42. package/docs/docs.md +148 -0
  43. package/docs/footage.md +249 -0
  44. package/docs/layers.md +317 -0
  45. package/docs/modeling.md +143 -0
  46. package/docs/project.md +265 -0
  47. package/docs/scenery.md +308 -0
  48. package/docs/sheets.md +119 -0
  49. package/docs/slides.md +111 -0
  50. package/docs/sound.md +170 -0
  51. package/docs/speech.md +289 -0
  52. package/docs/video.md +265 -0
  53. package/node_modules/@allyhub-next/audio/LICENSE +241 -0
  54. package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
  55. package/node_modules/@allyhub-next/audio/dist/at-cut.js +2 -0
  56. package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
  57. package/node_modules/@allyhub-next/audio/dist/decode.js +2 -0
  58. package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
  59. package/node_modules/@allyhub-next/audio/dist/envelope.js +2 -0
  60. package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
  61. package/node_modules/@allyhub-next/audio/dist/index.js +2 -0
  62. package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
  63. package/node_modules/@allyhub-next/audio/dist/levels.js +2 -0
  64. package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
  65. package/node_modules/@allyhub-next/audio/dist/master.js +2 -0
  66. package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
  67. package/node_modules/@allyhub-next/audio/dist/music.js +2 -0
  68. package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
  69. package/node_modules/@allyhub-next/audio/dist/node/decode.js +2 -0
  70. package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
  71. package/node_modules/@allyhub-next/audio/dist/node/ebur128.js +2 -0
  72. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
  73. package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +2 -0
  74. package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
  75. package/node_modules/@allyhub-next/audio/dist/node/index.js +2 -0
  76. package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
  77. package/node_modules/@allyhub-next/audio/dist/node/loudness.js +2 -0
  78. package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
  79. package/node_modules/@allyhub-next/audio/dist/node/master.js +2 -0
  80. package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
  81. package/node_modules/@allyhub-next/audio/dist/node/measure.js +2 -0
  82. package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
  83. package/node_modules/@allyhub-next/audio/dist/node/mix.js +2 -0
  84. package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
  85. package/node_modules/@allyhub-next/audio/dist/plan.js +2 -0
  86. package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
  87. package/node_modules/@allyhub-next/audio/dist/recorded.js +2 -0
  88. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
  89. package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.js +2 -0
  90. package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
  91. package/node_modules/@allyhub-next/audio/dist/recording/chain.js +2 -0
  92. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
  93. package/node_modules/@allyhub-next/audio/dist/recording/dynamics.js +2 -0
  94. package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
  95. package/node_modules/@allyhub-next/audio/dist/recording/fft.js +2 -0
  96. package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
  97. package/node_modules/@allyhub-next/audio/dist/recording/filters.js +2 -0
  98. package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
  99. package/node_modules/@allyhub-next/audio/dist/recording/fit.js +2 -0
  100. package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
  101. package/node_modules/@allyhub-next/audio/dist/recording/index.js +2 -0
  102. package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
  103. package/node_modules/@allyhub-next/audio/dist/recording/loudness.js +2 -0
  104. package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
  105. package/node_modules/@allyhub-next/audio/dist/recording/measure.js +2 -0
  106. package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
  107. package/node_modules/@allyhub-next/audio/dist/recording/mic.js +2 -0
  108. package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
  109. package/node_modules/@allyhub-next/audio/dist/recording/noise.js +2 -0
  110. package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
  111. package/node_modules/@allyhub-next/audio/dist/recording/presets.js +2 -0
  112. package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
  113. package/node_modules/@allyhub-next/audio/dist/recording/room.js +2 -0
  114. package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
  115. package/node_modules/@allyhub-next/audio/dist/recording/setup.js +2 -0
  116. package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
  117. package/node_modules/@allyhub-next/audio/dist/recording/vec.js +2 -0
  118. package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
  119. package/node_modules/@allyhub-next/audio/dist/render.js +2 -0
  120. package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
  121. package/node_modules/@allyhub-next/audio/dist/sfx.js +2 -0
  122. package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
  123. package/node_modules/@allyhub-next/audio/dist/shape.js +2 -0
  124. package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
  125. package/node_modules/@allyhub-next/audio/dist/voice.js +2 -0
  126. package/node_modules/@allyhub-next/audio/package.json +17 -0
  127. package/node_modules/@allyhub-next/formats/LICENSE +241 -0
  128. package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
  129. package/node_modules/@allyhub-next/formats/dist/data/comments.js +2 -0
  130. package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
  131. package/node_modules/@allyhub-next/formats/dist/data/config.js +2 -0
  132. package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
  133. package/node_modules/@allyhub-next/formats/dist/data/edits.js +2 -0
  134. package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
  135. package/node_modules/@allyhub-next/formats/dist/data/elements.js +2 -0
  136. package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
  137. package/node_modules/@allyhub-next/formats/dist/data/faces.js +2 -0
  138. package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
  139. package/node_modules/@allyhub-next/formats/dist/data/file.js +2 -0
  140. package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
  141. package/node_modules/@allyhub-next/formats/dist/data/gen.js +2 -0
  142. package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
  143. package/node_modules/@allyhub-next/formats/dist/data/messages.js +2 -0
  144. package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
  145. package/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
  146. package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
  147. package/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
  148. package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
  149. package/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
  150. package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
  151. package/node_modules/@allyhub-next/formats/dist/data/words.js +2 -0
  152. package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
  153. package/node_modules/@allyhub-next/formats/dist/index.js +2 -0
  154. package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
  155. package/node_modules/@allyhub-next/formats/dist/items.js +2 -0
  156. package/node_modules/@allyhub-next/formats/dist/layout.d.ts +50 -0
  157. package/node_modules/@allyhub-next/formats/dist/layout.js +5 -0
  158. package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
  159. package/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
  160. package/node_modules/@allyhub-next/formats/package.json +14 -0
  161. package/node_modules/@allyhub-next/protocol/LICENSE +241 -0
  162. package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
  163. package/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
  164. package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
  165. package/node_modules/@allyhub-next/protocol/dist/auth.js +2 -0
  166. package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
  167. package/node_modules/@allyhub-next/protocol/dist/cli.js +2 -0
  168. package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +274 -0
  169. package/node_modules/@allyhub-next/protocol/dist/cloud.js +2 -0
  170. package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
  171. package/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
  172. package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
  173. package/node_modules/@allyhub-next/protocol/dist/files.js +2 -0
  174. package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
  175. package/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
  176. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
  177. package/node_modules/@allyhub-next/protocol/dist/jsonrpc.js +2 -0
  178. package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +53 -0
  179. package/node_modules/@allyhub-next/protocol/dist/registry.js +2 -0
  180. package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
  181. package/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
  182. package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
  183. package/node_modules/@allyhub-next/protocol/dist/teams.js +2 -0
  184. package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
  185. package/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
  186. package/node_modules/@allyhub-next/protocol/package.json +13 -0
  187. package/node_modules/@allyhub-next/runtimes/LICENSE +241 -0
  188. package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
  189. package/node_modules/@allyhub-next/runtimes/dist/bundled.js +2 -0
  190. package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
  191. package/node_modules/@allyhub-next/runtimes/dist/download.js +2 -0
  192. package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
  193. package/node_modules/@allyhub-next/runtimes/dist/errors.js +2 -0
  194. package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
  195. package/node_modules/@allyhub-next/runtimes/dist/home.js +2 -0
  196. package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
  197. package/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
  198. package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
  199. package/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
  200. package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
  201. package/node_modules/@allyhub-next/runtimes/dist/manifest.js +2 -0
  202. package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
  203. package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -0
  204. package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
  205. package/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
  206. package/node_modules/@allyhub-next/runtimes/manifest.json +395 -0
  207. package/node_modules/@allyhub-next/runtimes/package.json +14 -0
  208. package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +153 -0
  209. package/node_modules/@allyhub-next/scenery/LICENSE +241 -0
  210. package/node_modules/@allyhub-next/scenery/NOTICE +42 -0
  211. package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
  212. package/node_modules/@allyhub-next/scenery/dist/aim.js +2 -0
  213. package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
  214. package/node_modules/@allyhub-next/scenery/dist/bake.js +2 -0
  215. package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
  216. package/node_modules/@allyhub-next/scenery/dist/camera.js +2 -0
  217. package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
  218. package/node_modules/@allyhub-next/scenery/dist/curve.js +2 -0
  219. package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
  220. package/node_modules/@allyhub-next/scenery/dist/define.js +2 -0
  221. package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
  222. package/node_modules/@allyhub-next/scenery/dist/fit.js +2 -0
  223. package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
  224. package/node_modules/@allyhub-next/scenery/dist/glass.js +2 -0
  225. package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
  226. package/node_modules/@allyhub-next/scenery/dist/handheld.js +2 -0
  227. package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
  228. package/node_modules/@allyhub-next/scenery/dist/hull.js +2 -0
  229. package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
  230. package/node_modules/@allyhub-next/scenery/dist/index.js +2 -0
  231. package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
  232. package/node_modules/@allyhub-next/scenery/dist/lens.js +2 -0
  233. package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
  234. package/node_modules/@allyhub-next/scenery/dist/moire.js +93 -0
  235. package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
  236. package/node_modules/@allyhub-next/scenery/dist/motion.js +2 -0
  237. package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
  238. package/node_modules/@allyhub-next/scenery/dist/move.js +2 -0
  239. package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
  240. package/node_modules/@allyhub-next/scenery/dist/noise.js +2 -0
  241. package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
  242. package/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
  243. package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
  244. package/node_modules/@allyhub-next/scenery/dist/report.js +2 -0
  245. package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
  246. package/node_modules/@allyhub-next/scenery/dist/screen-focus.js +2 -0
  247. package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
  248. package/node_modules/@allyhub-next/scenery/dist/screen.js +2 -0
  249. package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
  250. package/node_modules/@allyhub-next/scenery/dist/solve.js +2 -0
  251. package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
  252. package/node_modules/@allyhub-next/scenery/dist/timing.js +2 -0
  253. package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
  254. package/node_modules/@allyhub-next/scenery/dist/vec.js +2 -0
  255. package/node_modules/@allyhub-next/scenery/package.json +13 -0
  256. package/node_modules/@allyhub-next/video-core/LICENSE +241 -0
  257. package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
  258. package/node_modules/@allyhub-next/video-core/dist/anchors.js +2 -0
  259. package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
  260. package/node_modules/@allyhub-next/video-core/dist/audio-types.js +2 -0
  261. package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
  262. package/node_modules/@allyhub-next/video-core/dist/backdrop.js +2 -0
  263. package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
  264. package/node_modules/@allyhub-next/video-core/dist/captions.js +11 -0
  265. package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
  266. package/node_modules/@allyhub-next/video-core/dist/console.js +2 -0
  267. package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
  268. package/node_modules/@allyhub-next/video-core/dist/contrast.js +2 -0
  269. package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
  270. package/node_modules/@allyhub-next/video-core/dist/cut-report.js +2 -0
  271. package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
  272. package/node_modules/@allyhub-next/video-core/dist/edit.js +13 -0
  273. package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
  274. package/node_modules/@allyhub-next/video-core/dist/edits.js +2 -0
  275. package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
  276. package/node_modules/@allyhub-next/video-core/dist/export.js +2 -0
  277. package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
  278. package/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
  279. package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
  280. package/node_modules/@allyhub-next/video-core/dist/footage-motion.js +2 -0
  281. package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
  282. package/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
  283. package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
  284. package/node_modules/@allyhub-next/video-core/dist/gen.js +2 -0
  285. package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
  286. package/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
  287. package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
  288. package/node_modules/@allyhub-next/video-core/dist/look.js +2 -0
  289. package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
  290. package/node_modules/@allyhub-next/video-core/dist/marks.js +2 -0
  291. package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
  292. package/node_modules/@allyhub-next/video-core/dist/matrix.js +2 -0
  293. package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
  294. package/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
  295. package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
  296. package/node_modules/@allyhub-next/video-core/dist/media.js +2 -0
  297. package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
  298. package/node_modules/@allyhub-next/video-core/dist/messages.js +2 -0
  299. package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
  300. package/node_modules/@allyhub-next/video-core/dist/motion.js +2 -0
  301. package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
  302. package/node_modules/@allyhub-next/video-core/dist/music.js +2 -0
  303. package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
  304. package/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
  305. package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
  306. package/node_modules/@allyhub-next/video-core/dist/placement.js +2 -0
  307. package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
  308. package/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
  309. package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
  310. package/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
  311. package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
  312. package/node_modules/@allyhub-next/video-core/dist/schema.js +2 -0
  313. package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
  314. package/node_modules/@allyhub-next/video-core/dist/script-edit.js +2 -0
  315. package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
  316. package/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
  317. package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
  318. package/node_modules/@allyhub-next/video-core/dist/seams.js +2 -0
  319. package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
  320. package/node_modules/@allyhub-next/video-core/dist/slides.js +2 -0
  321. package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
  322. package/node_modules/@allyhub-next/video-core/dist/sound-under.js +2 -0
  323. package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
  324. package/node_modules/@allyhub-next/video-core/dist/speech.js +5 -0
  325. package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
  326. package/node_modules/@allyhub-next/video-core/dist/timeline.js +2 -0
  327. package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
  328. package/node_modules/@allyhub-next/video-core/dist/timing.js +2 -0
  329. package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
  330. package/node_modules/@allyhub-next/video-core/dist/transcript.js +2 -0
  331. package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
  332. package/node_modules/@allyhub-next/video-core/dist/transition.js +2 -0
  333. package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
  334. package/node_modules/@allyhub-next/video-core/dist/voice.js +2 -0
  335. package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
  336. package/node_modules/@allyhub-next/video-core/dist/words.js +2 -0
  337. package/node_modules/@allyhub-next/video-core/package.json +14 -0
  338. package/package.json +52 -41
  339. package/README.md +0 -17
  340. package/dist/anim.d.ts.map +0 -1
  341. package/dist/anim.js.map +0 -1
  342. package/dist/define.d.ts.map +0 -1
  343. package/dist/define.js.map +0 -1
  344. package/dist/dom.d.ts.map +0 -1
  345. package/dist/dom.js.map +0 -1
  346. package/dist/fit.d.ts.map +0 -1
  347. package/dist/fit.js.map +0 -1
  348. package/dist/index.d.ts.map +0 -1
  349. package/dist/index.js.map +0 -1
  350. package/dist/media.d.ts.map +0 -1
  351. package/dist/media.js.map +0 -1
  352. package/dist/messages.d.ts.map +0 -1
  353. package/dist/messages.js.map +0 -1
  354. package/dist/noise.d.ts.map +0 -1
  355. package/dist/noise.js.map +0 -1
  356. package/dist/parts.d.ts.map +0 -1
  357. package/dist/parts.js.map +0 -1
  358. package/dist/paths.d.ts.map +0 -1
  359. package/dist/paths.js.map +0 -1
  360. package/dist/piece.d.ts.map +0 -1
  361. package/dist/piece.js.map +0 -1
  362. package/dist/props.d.ts.map +0 -1
  363. package/dist/props.js.map +0 -1
  364. package/dist/text.d.ts.map +0 -1
  365. package/dist/text.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ import { z } from "zod";
2
+ export declare const REGISTRY_TYPES: readonly ["allyhub:component", "allyhub:template", "allyhub:scenery", "allyhub:model"];
3
+ export declare const RegistryFileSchema: z.ZodObject<{
4
+ path: z.ZodString;
5
+ target: z.ZodString;
6
+ sha256: z.ZodString;
7
+ content: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strict>;
9
+ export declare const RegistryItemSchema: z.ZodObject<{
10
+ $schema: z.ZodOptional<z.ZodString>;
11
+ name: z.ZodString;
12
+ type: z.ZodEnum<{
13
+ "allyhub:component": "allyhub:component";
14
+ "allyhub:template": "allyhub:template";
15
+ "allyhub:scenery": "allyhub:scenery";
16
+ "allyhub:model": "allyhub:model";
17
+ }>;
18
+ title: z.ZodString;
19
+ description: z.ZodString;
20
+ author: z.ZodOptional<z.ZodString>;
21
+ license: z.ZodString;
22
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
23
+ registryDependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
24
+ files: z.ZodArray<z.ZodObject<{
25
+ path: z.ZodString;
26
+ target: z.ZodString;
27
+ sha256: z.ZodString;
28
+ content: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strict>>;
30
+ categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
31
+ preview: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strict>;
33
+ export type RegistryItem = z.infer<typeof RegistryItemSchema>;
34
+ export declare const RegistryIndexSchema: z.ZodObject<{
35
+ $schema: z.ZodOptional<z.ZodString>;
36
+ name: z.ZodString;
37
+ homepage: z.ZodOptional<z.ZodURL>;
38
+ items: z.ZodArray<z.ZodObject<{
39
+ type: z.ZodEnum<{
40
+ "allyhub:component": "allyhub:component";
41
+ "allyhub:template": "allyhub:template";
42
+ "allyhub:scenery": "allyhub:scenery";
43
+ "allyhub:model": "allyhub:model";
44
+ }>;
45
+ name: z.ZodString;
46
+ title: z.ZodString;
47
+ description: z.ZodString;
48
+ preview: z.ZodOptional<z.ZodString>;
49
+ categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
50
+ }, z.core.$strict>>;
51
+ }, z.core.$strict>;
52
+ export type RegistryIndex = z.infer<typeof RegistryIndexSchema>;
53
+ //# sourceMappingURL=registry.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 REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model"];const e=t.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=t.strictObject({path:t.string().min(1),target:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),content:t.string().optional()}),RegistryItemSchema=t.strictObject({$schema:t.string().optional(),name:e,type:t.enum(REGISTRY_TYPES),title:t.string().min(1),description:t.string().min(1),author:t.string().optional(),license:t.string().min(1),dependencies:t.array(t.string()).default([]),registryDependencies:t.array(e).default([]),files:t.array(RegistryFileSchema).min(1),categories:t.array(t.string()).default([]),preview:t.string().optional()}),RegistryIndexSchema=t.strictObject({$schema:t.string().optional(),name:t.string().min(1),homepage:t.url().optional(),items:t.array(RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0}))});
@@ -0,0 +1,93 @@
1
+ import { z } from "zod";
2
+ /** `${process.platform}-${process.arch}`. */
3
+ export declare const PLATFORMS: readonly ["darwin-arm64", "darwin-x64", "linux-x64", "linux-arm64", "win32-x64"];
4
+ export type Platform = (typeof PLATFORMS)[number];
5
+ export declare const RuntimeFileSchema: z.ZodObject<{
6
+ url: z.ZodURL;
7
+ sha256: z.ZodString;
8
+ size: z.ZodInt;
9
+ unpack: z.ZodDefault<z.ZodEnum<{
10
+ none: "none";
11
+ zip: "zip";
12
+ tgz: "tgz";
13
+ }>>;
14
+ name: z.ZodOptional<z.ZodString>;
15
+ check: z.ZodDefault<z.ZodArray<z.ZodObject<{
16
+ path: z.ZodString;
17
+ sha256: z.ZodString;
18
+ }, z.core.$strict>>>;
19
+ executable: z.ZodDefault<z.ZodBoolean>;
20
+ bins: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
21
+ }, z.core.$strict>;
22
+ export type RuntimeFile = z.infer<typeof RuntimeFileSchema>;
23
+ export declare const RuntimeSchema: z.ZodObject<{
24
+ about: z.ZodString;
25
+ version: z.ZodString;
26
+ license: z.ZodString;
27
+ homepage: z.ZodOptional<z.ZodURL>;
28
+ platforms: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
29
+ "darwin-arm64": "darwin-arm64";
30
+ "darwin-x64": "darwin-x64";
31
+ "linux-x64": "linux-x64";
32
+ "linux-arm64": "linux-arm64";
33
+ "win32-x64": "win32-x64";
34
+ }>, z.ZodLiteral<"any">]> & z.core.$partial, z.ZodArray<z.ZodObject<{
35
+ url: z.ZodURL;
36
+ sha256: z.ZodString;
37
+ size: z.ZodInt;
38
+ unpack: z.ZodDefault<z.ZodEnum<{
39
+ none: "none";
40
+ zip: "zip";
41
+ tgz: "tgz";
42
+ }>>;
43
+ name: z.ZodOptional<z.ZodString>;
44
+ check: z.ZodDefault<z.ZodArray<z.ZodObject<{
45
+ path: z.ZodString;
46
+ sha256: z.ZodString;
47
+ }, z.core.$strict>>>;
48
+ executable: z.ZodDefault<z.ZodBoolean>;
49
+ bins: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
50
+ }, z.core.$strict>>>;
51
+ }, z.core.$strict>;
52
+ export type Runtime = z.infer<typeof RuntimeSchema>;
53
+ export declare const RuntimeManifestSchema: z.ZodObject<{
54
+ $schema: z.ZodOptional<z.ZodString>;
55
+ version: z.ZodLiteral<1>;
56
+ runtimes: z.ZodRecord<z.ZodString, z.ZodObject<{
57
+ about: z.ZodString;
58
+ version: z.ZodString;
59
+ license: z.ZodString;
60
+ homepage: z.ZodOptional<z.ZodURL>;
61
+ platforms: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
62
+ "darwin-arm64": "darwin-arm64";
63
+ "darwin-x64": "darwin-x64";
64
+ "linux-x64": "linux-x64";
65
+ "linux-arm64": "linux-arm64";
66
+ "win32-x64": "win32-x64";
67
+ }>, z.ZodLiteral<"any">]> & z.core.$partial, z.ZodArray<z.ZodObject<{
68
+ url: z.ZodURL;
69
+ sha256: z.ZodString;
70
+ size: z.ZodInt;
71
+ unpack: z.ZodDefault<z.ZodEnum<{
72
+ none: "none";
73
+ zip: "zip";
74
+ tgz: "tgz";
75
+ }>>;
76
+ name: z.ZodOptional<z.ZodString>;
77
+ check: z.ZodDefault<z.ZodArray<z.ZodObject<{
78
+ path: z.ZodString;
79
+ sha256: z.ZodString;
80
+ }, z.core.$strict>>>;
81
+ executable: z.ZodDefault<z.ZodBoolean>;
82
+ bins: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
83
+ }, z.core.$strict>>>;
84
+ }, z.core.$strict>>;
85
+ }, z.core.$strict>;
86
+ export type RuntimeManifest = z.infer<typeof RuntimeManifestSchema>;
87
+ /** The platform this process runs on, if AllyHub has runtimes for it. */
88
+ export declare function platformOf(platform: string, arch: string): Platform | undefined;
89
+ /** The programs a runtime's files hold, by name. */
90
+ export declare function binsOf(files: readonly RuntimeFile[]): Record<string, string>;
91
+ /** A runtime's files on a platform: its own, else every platform's. */
92
+ export declare function filesFor(runtime: Runtime, platform: Platform): RuntimeFile[] | undefined;
93
+ //# sourceMappingURL=runtimes.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 PLATFORMS=["darwin-arm64","darwin-x64","linux-x64","linux-arm64","win32-x64"];const s=t.string().regex(/^[0-9a-f]{64}$/u),i=t.string().min(1).refine(e=>!e.startsWith("/")&&!e.split(/[\\/]/u).includes(".."),{message:"A path stays inside the runtime's folder."});export const RuntimeFileSchema=t.strictObject({url:t.url({protocol:/^https$/u}),sha256:s,size:t.int().positive(),unpack:t.enum(["none","zip","tgz"]).default("none"),name:i.optional(),check:t.array(t.strictObject({path:i,sha256:s})).default([]),executable:t.boolean().default(!1),bins:t.record(t.string().regex(/^[a-z0-9][a-z0-9-]*$/u),i).default({})}),RuntimeSchema=t.strictObject({about:t.string().min(1),version:t.string().min(1),license:t.string().min(1),homepage:t.url().optional(),platforms:t.partialRecord(t.union([t.enum(PLATFORMS),t.literal("any")]),t.array(RuntimeFileSchema).min(1))}),RuntimeManifestSchema=t.strictObject({$schema:t.string().optional(),version:t.literal(1),runtimes:t.record(t.string().regex(/^[a-z0-9][a-z0-9-]*$/u),RuntimeSchema)});export function platformOf(e,n){const r=`${e}-${n}`;return PLATFORMS.includes(r)?r:void 0}export function binsOf(e){return Object.assign({},...e.map(n=>n.bins))}export function filesFor(e,n){return e.platforms[n]??e.platforms.any}
@@ -0,0 +1,67 @@
1
+ import { z } from "zod";
2
+ /** `GET`: the organizations the person is in, their own first. */
3
+ export declare const ORGANIZATIONS_PATH = "/api/organizations";
4
+ export declare const OrganizationsSchema: z.ZodObject<{
5
+ organizations: z.ZodArray<z.ZodObject<{
6
+ id: z.ZodString;
7
+ name: z.ZodString;
8
+ slug: z.ZodString;
9
+ kind: z.ZodEnum<{
10
+ personal: "personal";
11
+ team: "team";
12
+ }>;
13
+ role: z.ZodString;
14
+ dissolvedAt: z.ZodNullable<z.ZodISODateTime>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ export type Organizations = z.infer<typeof OrganizationsSchema>;
18
+ /** `GET`: the members of the organization the request acts in; a member sees their own row alone. */
19
+ export declare const MEMBERS_PATH = "/api/organization/members";
20
+ export declare const MembersSchema: z.ZodObject<{
21
+ members: z.ZodArray<z.ZodObject<{
22
+ userId: z.ZodString;
23
+ email: z.ZodString;
24
+ name: z.ZodString;
25
+ role: z.ZodString;
26
+ limit: z.ZodNullable<z.ZodNumber>;
27
+ used: z.ZodNumber;
28
+ }, z.core.$strip>>;
29
+ }, z.core.$strip>;
30
+ export type Members = z.infer<typeof MembersSchema>;
31
+ /** `PUT { monthly }`, an owner's or an admin's: a member's limit in credits a month, null for none. */
32
+ export declare const memberLimitPath: (userId: string) => string;
33
+ export declare const MemberLimitSchema: z.ZodObject<{
34
+ monthly: z.ZodNullable<z.ZodNumber>;
35
+ }, z.core.$strict>;
36
+ /** `POST`: the person's own credits moved into the team the request acts in; answers `{ moved }`. */
37
+ export declare const MOVE_CREDITS_PATH = "/api/organization/credits/move";
38
+ /** `DELETE`, its owner's: the team the request acts in dissolved. */
39
+ export declare const ORGANIZATION_PATH = "/api/organization";
40
+ /** `POST`, its owner's: a dissolved team restored, within 30 days. */
41
+ export declare const restorePath: (id: string) => string;
42
+ /** `GET`: the person's cloud Studio, if any, and what an hour of it costs; `DELETE`: it gone. */
43
+ export declare const STUDIO_PATH = "/api/studio";
44
+ export declare const StudioSchema: z.ZodObject<{
45
+ studio: z.ZodNullable<z.ZodObject<{
46
+ state: z.ZodEnum<{
47
+ running: "running";
48
+ paused: "paused";
49
+ }>;
50
+ organizationId: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ creditsPerHour: z.ZodNumber;
53
+ }, z.core.$strip>;
54
+ export type StudioInfo = z.infer<typeof StudioSchema>;
55
+ /** `POST`, a browser's: the Studio made or woken, answered `{ url }`, its page with a ticket. */
56
+ export declare const STUDIO_OPEN_PATH = "/api/studio/open";
57
+ /**
58
+ * `PUT { at }`, a cloud Studio's own Host's (its API key): when its next
59
+ * scheduled task is due, null for none. A paused Studio is woken then, its
60
+ * Host runs the task as it would on a computer, and it pauses again once
61
+ * idle.
62
+ */
63
+ export declare const STUDIO_WAKE_PATH = "/api/studio/wake";
64
+ export declare const StudioWakeSchema: z.ZodObject<{
65
+ at: z.ZodNullable<z.ZodISODateTime>;
66
+ }, z.core.$strict>;
67
+ //# sourceMappingURL=teams.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 ORGANIZATIONS_PATH="/api/organizations",OrganizationsSchema=t.object({organizations:t.array(t.object({id:t.string(),name:t.string(),slug:t.string(),kind:t.enum(["personal","team"]),role:t.string(),dissolvedAt:t.iso.datetime().nullable()}))}),MEMBERS_PATH="/api/organization/members",MembersSchema=t.object({members:t.array(t.object({userId:t.string(),email:t.string(),name:t.string(),role:t.string(),limit:t.number().nullable(),used:t.number()}))}),memberLimitPath=e=>`${MEMBERS_PATH}/${encodeURIComponent(e)}/limit`,MemberLimitSchema=t.strictObject({monthly:t.number().nonnegative().nullable()}),MOVE_CREDITS_PATH="/api/organization/credits/move",ORGANIZATION_PATH="/api/organization",restorePath=e=>`${ORGANIZATIONS_PATH}/${encodeURIComponent(e)}/restore`,STUDIO_PATH="/api/studio",StudioSchema=t.object({studio:t.object({state:t.enum(["running","paused"]),organizationId:t.string()}).nullable(),creditsPerHour:t.number()}),STUDIO_OPEN_PATH="/api/studio/open",STUDIO_WAKE_PATH="/api/studio/wake",StudioWakeSchema=t.strictObject({at:t.iso.datetime().nullable()});
@@ -0,0 +1,345 @@
1
+ import { z } from "zod";
2
+ import { type ClientOf, type MethodSpec } from "./jsonrpc.js";
3
+ /** A picture: WebP unless said. */
4
+ export declare const ImageSchema: z.ZodObject<{
5
+ mime: z.ZodString;
6
+ data: z.ZodBase64;
7
+ }, z.core.$strict>;
8
+ export type Image = z.infer<typeof ImageSchema>;
9
+ /** A problem of the check (video-core's `Problem`): an objective error, by rule. */
10
+ export declare const ProblemSchema: z.ZodObject<{
11
+ code: z.ZodString;
12
+ level: z.ZodEnum<{
13
+ error: "error";
14
+ warn: "warn";
15
+ }>;
16
+ message: z.ZodString;
17
+ piece: z.ZodOptional<z.ZodString>;
18
+ part: z.ZodOptional<z.ZodString>;
19
+ t: z.ZodOptional<z.ZodNumber>;
20
+ }, z.core.$loose>;
21
+ /** A fact of the check (video-core's `Fact`): a measurement for the agent to judge. */
22
+ export declare const FactSchema: z.ZodObject<{
23
+ kind: z.ZodString;
24
+ data: z.ZodUnknown;
25
+ }, z.core.$loose>;
26
+ /** A version's film plan (video-core's `Timeline`). */
27
+ export declare const TimelineSchema: z.ZodObject<{
28
+ fps: z.ZodNumber;
29
+ width: z.ZodNumber;
30
+ height: z.ZodNumber;
31
+ duration: z.ZodNumber;
32
+ parts: z.ZodArray<z.ZodUnknown>;
33
+ }, z.core.$loose>;
34
+ export declare const CHECK_STATES: readonly ["off", "waiting", "running", "done", "failed"];
35
+ /** The check the server runs after edits, as it stands. */
36
+ export declare const CheckStateSchema: z.ZodObject<{
37
+ status: z.ZodEnum<{
38
+ off: "off";
39
+ waiting: "waiting";
40
+ running: "running";
41
+ done: "done";
42
+ failed: "failed";
43
+ }>;
44
+ revision: z.ZodInt;
45
+ problems: z.ZodArray<z.ZodObject<{
46
+ code: z.ZodString;
47
+ level: z.ZodEnum<{
48
+ error: "error";
49
+ warn: "warn";
50
+ }>;
51
+ message: z.ZodString;
52
+ piece: z.ZodOptional<z.ZodString>;
53
+ part: z.ZodOptional<z.ZodString>;
54
+ t: z.ZodOptional<z.ZodNumber>;
55
+ }, z.core.$loose>>;
56
+ facts: z.ZodArray<z.ZodObject<{
57
+ kind: z.ZodString;
58
+ data: z.ZodUnknown;
59
+ }, z.core.$loose>>;
60
+ versions: z.ZodOptional<z.ZodObject<{
61
+ total: z.ZodInt;
62
+ loaded: z.ZodInt;
63
+ reused: z.ZodInt;
64
+ }, z.core.$strict>>;
65
+ error: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strict>;
67
+ export type CheckState = z.infer<typeof CheckStateSchema>;
68
+ export declare const EXPORT_STATES: readonly ["queued", "running", "done", "failed", "cancelled"];
69
+ /** An export the person asked for, one at a time. */
70
+ export declare const ExportJobSchema: z.ZodObject<{
71
+ id: z.ZodString;
72
+ item: z.ZodString;
73
+ versions: z.ZodArray<z.ZodString>;
74
+ types: z.ZodArray<z.ZodString>;
75
+ state: z.ZodEnum<{
76
+ running: "running";
77
+ done: "done";
78
+ failed: "failed";
79
+ queued: "queued";
80
+ cancelled: "cancelled";
81
+ }>;
82
+ progress: z.ZodNumber;
83
+ files: z.ZodArray<z.ZodString>;
84
+ error: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strict>;
86
+ export type ExportJob = z.infer<typeof ExportJobSchema>;
87
+ /** Where indexing a video the project uses is (a face track, a person matte). */
88
+ export declare const IndexJobSchema: z.ZodObject<{
89
+ file: z.ZodString;
90
+ status: z.ZodEnum<{
91
+ running: "running";
92
+ done: "done";
93
+ failed: "failed";
94
+ }>;
95
+ message: z.ZodString;
96
+ share: z.ZodOptional<z.ZodNumber>;
97
+ }, z.core.$strict>;
98
+ export type IndexJob = z.infer<typeof IndexJobSchema>;
99
+ export declare const PROJECT_TOOLS: {
100
+ readonly "project/items": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
101
+ items: z.ZodArray<z.ZodObject<{
102
+ kind: z.ZodEnum<{
103
+ video: "video";
104
+ slides: "slides";
105
+ doc: "doc";
106
+ sheet: "sheet";
107
+ scenery: "scenery";
108
+ website: "website";
109
+ }>;
110
+ dir: z.ZodString;
111
+ entry: z.ZodString;
112
+ title: z.ZodOptional<z.ZodString>;
113
+ }, z.core.$strict>>;
114
+ folder: z.ZodString;
115
+ name: z.ZodString;
116
+ revision: z.ZodInt;
117
+ }, z.core.$strict>>;
118
+ readonly "video/versions": MethodSpec<z.ZodObject<{
119
+ item: z.ZodString;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ piece: z.ZodString;
122
+ kind: z.ZodEnum<{
123
+ video: "video";
124
+ slides: "slides";
125
+ }>;
126
+ title: z.ZodOptional<z.ZodString>;
127
+ width: z.ZodNumber;
128
+ height: z.ZodNumber;
129
+ versions: z.ZodArray<z.ZodObject<{
130
+ key: z.ZodString;
131
+ lang: z.ZodOptional<z.ZodString>;
132
+ }, z.core.$strict>>;
133
+ }, z.core.$strict>>;
134
+ readonly "video/stage": MethodSpec<z.ZodObject<{
135
+ start: z.ZodOptional<z.ZodObject<{
136
+ t: z.ZodOptional<z.ZodNumber>;
137
+ part: z.ZodOptional<z.ZodString>;
138
+ offset: z.ZodOptional<z.ZodNumber>;
139
+ dur: z.ZodOptional<z.ZodNumber>;
140
+ }, z.core.$strict>>;
141
+ play: z.ZodOptional<z.ZodBoolean>;
142
+ chrome: z.ZodOptional<z.ZodBoolean>;
143
+ item: z.ZodString;
144
+ version: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strict>, z.ZodObject<{
146
+ url: z.ZodString;
147
+ probe: z.ZodString;
148
+ }, z.core.$strict>>;
149
+ readonly "video/timeline": MethodSpec<z.ZodObject<{
150
+ item: z.ZodString;
151
+ version: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strict>, z.ZodObject<{
153
+ timeline: z.ZodObject<{
154
+ fps: z.ZodNumber;
155
+ width: z.ZodNumber;
156
+ height: z.ZodNumber;
157
+ duration: z.ZodNumber;
158
+ parts: z.ZodArray<z.ZodUnknown>;
159
+ }, z.core.$loose>;
160
+ text: z.ZodArray<z.ZodUnknown>;
161
+ }, z.core.$strict>>;
162
+ readonly "video/still": MethodSpec<z.ZodObject<{
163
+ t: z.ZodOptional<z.ZodNumber>;
164
+ item: z.ZodString;
165
+ version: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$strict>, z.ZodObject<{
167
+ t: z.ZodNumber;
168
+ image: z.ZodObject<{
169
+ mime: z.ZodString;
170
+ data: z.ZodBase64;
171
+ }, z.core.$strict>;
172
+ width: z.ZodInt;
173
+ height: z.ZodInt;
174
+ duration: z.ZodNumber;
175
+ }, z.core.$strict>>;
176
+ readonly "check/results": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
177
+ status: z.ZodEnum<{
178
+ off: "off";
179
+ waiting: "waiting";
180
+ running: "running";
181
+ done: "done";
182
+ failed: "failed";
183
+ }>;
184
+ revision: z.ZodInt;
185
+ problems: z.ZodArray<z.ZodObject<{
186
+ code: z.ZodString;
187
+ level: z.ZodEnum<{
188
+ error: "error";
189
+ warn: "warn";
190
+ }>;
191
+ message: z.ZodString;
192
+ piece: z.ZodOptional<z.ZodString>;
193
+ part: z.ZodOptional<z.ZodString>;
194
+ t: z.ZodOptional<z.ZodNumber>;
195
+ }, z.core.$loose>>;
196
+ facts: z.ZodArray<z.ZodObject<{
197
+ kind: z.ZodString;
198
+ data: z.ZodUnknown;
199
+ }, z.core.$loose>>;
200
+ versions: z.ZodOptional<z.ZodObject<{
201
+ total: z.ZodInt;
202
+ loaded: z.ZodInt;
203
+ reused: z.ZodInt;
204
+ }, z.core.$strict>>;
205
+ error: z.ZodOptional<z.ZodString>;
206
+ }, z.core.$strict>>;
207
+ readonly "check/run": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
208
+ readonly "export/start": MethodSpec<z.ZodObject<{
209
+ item: z.ZodString;
210
+ versions: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
+ types: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ }, z.core.$strict>, z.ZodObject<{
213
+ job: z.ZodObject<{
214
+ id: z.ZodString;
215
+ item: z.ZodString;
216
+ versions: z.ZodArray<z.ZodString>;
217
+ types: z.ZodArray<z.ZodString>;
218
+ state: z.ZodEnum<{
219
+ running: "running";
220
+ done: "done";
221
+ failed: "failed";
222
+ queued: "queued";
223
+ cancelled: "cancelled";
224
+ }>;
225
+ progress: z.ZodNumber;
226
+ files: z.ZodArray<z.ZodString>;
227
+ error: z.ZodOptional<z.ZodString>;
228
+ }, z.core.$strict>;
229
+ }, z.core.$strict>>;
230
+ readonly "export/cancel": MethodSpec<z.ZodObject<{
231
+ job: z.ZodString;
232
+ }, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
233
+ readonly "export/list": MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
234
+ jobs: z.ZodArray<z.ZodObject<{
235
+ id: z.ZodString;
236
+ item: z.ZodString;
237
+ versions: z.ZodArray<z.ZodString>;
238
+ types: z.ZodArray<z.ZodString>;
239
+ state: z.ZodEnum<{
240
+ running: "running";
241
+ done: "done";
242
+ failed: "failed";
243
+ queued: "queued";
244
+ cancelled: "cancelled";
245
+ }>;
246
+ progress: z.ZodNumber;
247
+ files: z.ZodArray<z.ZodString>;
248
+ error: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strict>>;
250
+ }, z.core.$strict>>;
251
+ readonly "scenery/viewer": MethodSpec<z.ZodObject<{
252
+ item: z.ZodString;
253
+ camera: z.ZodOptional<z.ZodObject<{
254
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
255
+ target: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
256
+ }, z.core.$strict>>;
257
+ }, z.core.$strict>, z.ZodObject<{
258
+ url: z.ZodString;
259
+ probe: z.ZodString;
260
+ }, z.core.$strict>>;
261
+ };
262
+ export type ProjectToolName = keyof typeof PROJECT_TOOLS;
263
+ /**
264
+ * What a person can do in an editor, an agent can do too
265
+ * (docs/editors.md): for each tool, the CLI command that does the same
266
+ * through the same package function, or the files an agent reads or
267
+ * writes instead. Every tool has its line; the CLI's tests check that
268
+ * each command named is one.
269
+ */
270
+ export declare const AGENT_DOES: Record<ProjectToolName, {
271
+ command: string;
272
+ } | {
273
+ files: string;
274
+ }>;
275
+ /** The project's tools, as typed calls. */
276
+ export type ToolsClient = ClientOf<typeof PROJECT_TOOLS>;
277
+ /** A tool's spec, by name. */
278
+ export declare function toolSpec(name: string): MethodSpec | undefined;
279
+ export declare const TOOL_NOTIFICATIONS: {
280
+ readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
281
+ revision: z.ZodInt;
282
+ }, z.core.$strict>>;
283
+ readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
284
+ status: z.ZodEnum<{
285
+ off: "off";
286
+ waiting: "waiting";
287
+ running: "running";
288
+ done: "done";
289
+ failed: "failed";
290
+ }>;
291
+ revision: z.ZodInt;
292
+ problems: z.ZodArray<z.ZodObject<{
293
+ code: z.ZodString;
294
+ level: z.ZodEnum<{
295
+ error: "error";
296
+ warn: "warn";
297
+ }>;
298
+ message: z.ZodString;
299
+ piece: z.ZodOptional<z.ZodString>;
300
+ part: z.ZodOptional<z.ZodString>;
301
+ t: z.ZodOptional<z.ZodNumber>;
302
+ }, z.core.$loose>>;
303
+ facts: z.ZodArray<z.ZodObject<{
304
+ kind: z.ZodString;
305
+ data: z.ZodUnknown;
306
+ }, z.core.$loose>>;
307
+ versions: z.ZodOptional<z.ZodObject<{
308
+ total: z.ZodInt;
309
+ loaded: z.ZodInt;
310
+ reused: z.ZodInt;
311
+ }, z.core.$strict>>;
312
+ error: z.ZodOptional<z.ZodString>;
313
+ }, z.core.$strict>>;
314
+ readonly "export/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
315
+ job: z.ZodObject<{
316
+ id: z.ZodString;
317
+ item: z.ZodString;
318
+ versions: z.ZodArray<z.ZodString>;
319
+ types: z.ZodArray<z.ZodString>;
320
+ state: z.ZodEnum<{
321
+ running: "running";
322
+ done: "done";
323
+ failed: "failed";
324
+ queued: "queued";
325
+ cancelled: "cancelled";
326
+ }>;
327
+ progress: z.ZodNumber;
328
+ files: z.ZodArray<z.ZodString>;
329
+ error: z.ZodOptional<z.ZodString>;
330
+ }, z.core.$strict>;
331
+ }, z.core.$strict>>;
332
+ readonly "index/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
333
+ jobs: z.ZodArray<z.ZodObject<{
334
+ file: z.ZodString;
335
+ status: z.ZodEnum<{
336
+ running: "running";
337
+ done: "done";
338
+ failed: "failed";
339
+ }>;
340
+ message: z.ZodString;
341
+ share: z.ZodOptional<z.ZodNumber>;
342
+ }, z.core.$strict>>;
343
+ }, z.core.$strict>>;
344
+ };
345
+ //# sourceMappingURL=tools.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";import{KINDS as c}from"@allyhub-next/formats";import{PathSchema as n}from"./files.js";import{method as t,notification as r}from"./jsonrpc.js";const i={item:n,version:e.string().optional()};export const ImageSchema=e.strictObject({mime:e.string().regex(/^image\//u),data:e.base64()}),ProblemSchema=e.looseObject({code:e.string(),level:e.enum(["error","warn"]),message:e.string(),piece:e.string().optional(),part:e.string().optional(),t:e.number().optional()}),FactSchema=e.looseObject({kind:e.string(),data:e.unknown()}),TimelineSchema=e.looseObject({fps:e.number(),width:e.number(),height:e.number(),duration:e.number(),parts:e.array(e.unknown())}),CHECK_STATES=["off","waiting","running","done","failed"],CheckStateSchema=e.strictObject({status:e.enum(CHECK_STATES),revision:e.int().nonnegative(),problems:e.array(ProblemSchema),facts:e.array(FactSchema),versions:e.strictObject({total:e.int(),loaded:e.int(),reused:e.int()}).optional(),error:e.string().optional()}),EXPORT_STATES=["queued","running","done","failed","cancelled"],ExportJobSchema=e.strictObject({id:e.string(),item:n,versions:e.array(e.string()),types:e.array(e.string()),state:e.enum(EXPORT_STATES),progress:e.number().min(0).max(1),files:e.array(n),error:e.string().optional()}),IndexJobSchema=e.strictObject({file:n,status:e.enum(["running","done","failed"]),message:e.string(),share:e.number().min(0).max(1).optional()});const s=e.tuple([e.number(),e.number(),e.number()]),a=e.strictObject({url:e.string(),probe:e.string()});export const PROJECT_TOOLS={"project/items":t(e.strictObject({}),e.strictObject({items:e.array(e.strictObject({kind:e.enum(c),dir:n,entry:n,title:e.string().optional()})),folder:e.string(),name:e.string(),revision:e.int().nonnegative()}),"The project's items, as the build finds them."),"video/versions":t(e.strictObject({item:n}),e.strictObject({piece:e.string(),kind:e.enum(["video","slides"]),title:e.string().optional(),width:e.number(),height:e.number(),versions:e.array(e.strictObject({key:e.string(),lang:e.string().optional()}))}),"A video's or a deck's versions, one per language: what its stage, its timeline and its exports are asked for."),"video/stage":t(e.strictObject({...i,start:e.strictObject({t:e.number().nonnegative().optional(),part:e.string().optional(),offset:e.number().nonnegative().optional(),dur:e.number().positive().optional()}).optional(),play:e.boolean().optional(),chrome:e.boolean().optional()}),a,"The address of a version's stage page, for a sandboxed frame: it plays the piece and talks to its parent by postMessage."),"video/timeline":t(e.strictObject(i),e.strictObject({timeline:TimelineSchema,text:e.array(e.unknown())}),"A version's timeline, drawn nowhere."),"video/still":t(e.strictObject({...i,t:e.number().nonnegative().optional()}),e.strictObject({t:e.number(),image:ImageSchema,width:e.int().positive(),height:e.int().positive(),duration:e.number().nonnegative()}),"A moment of a version as the render draws it, as a picture."),"check/results":t(e.strictObject({}),CheckStateSchema,"The check run after edits, as it stands."),"check/run":t(e.strictObject({}),e.strictObject({}),"Runs the check again now."),"export/start":t(e.strictObject({item:n,versions:e.array(e.string()).optional(),types:e.array(e.string().min(1)).max(10).optional()}),e.strictObject({job:ExportJobSchema}),"Exports an item (its versions, as file types) into .allyhub/out/; `export/changed` says how it goes."),"export/cancel":t(e.strictObject({job:e.string()}),e.strictObject({}),"Stops an export."),"export/list":t(e.strictObject({}),e.strictObject({jobs:e.array(ExportJobSchema)}),"The exports asked for since the server started."),"scenery/viewer":t(e.strictObject({item:n,camera:e.strictObject({position:s,target:s}).optional()}),a,"The address of a scenery's viewer page, for a sandboxed frame: it tells what the person does by postMessage.")},AGENT_DOES={"project/items":{files:"the project's folder"},"video/versions":{command:"inspect combos"},"video/stage":{command:"frames"},"video/timeline":{command:"inspect timeline"},"video/still":{command:"frames"},"check/results":{command:"inspect"},"check/run":{command:"check"},"export/start":{command:"render"},"export/cancel":{command:"render"},"export/list":{files:".allyhub/out/"},"scenery/viewer":{command:"scenery view"}};export function toolSpec(o){return Object.hasOwn(PROJECT_TOOLS,o)?PROJECT_TOOLS[o]:void 0}export const TOOL_NOTIFICATIONS={"project/changed":r(e.strictObject({revision:e.int().nonnegative()}),"The build saw a change: a stage or a timeline asked for now is the new one's."),"check/changed":r(CheckStateSchema,"The check started, ended or failed."),"export/changed":r(e.strictObject({job:ExportJobSchema}),"An export moved on."),"index/changed":r(e.strictObject({jobs:e.array(IndexJobSchema)}),"Making what the media index lacks moved on.")};
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@allyhub-next/protocol",
3
+ "version": "0.2.0-next.1",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "private": true,
12
+ "license": "SEE LICENSE IN LICENSE.md"
13
+ }