@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,59 @@
1
+ import { z } from "zod";
2
+ /** Exit codes: 0 is success; each other is one kind of failure. */
3
+ export declare const EXIT: {
4
+ readonly ok: 0;
5
+ /** It ran and failed, or found problems (a check). */
6
+ readonly failed: 1;
7
+ /** It was asked wrongly: an unknown option, an invalid value. */
8
+ readonly usage: 2;
9
+ /** A file changed under it, or a place is taken. */
10
+ readonly conflict: 3;
11
+ /** It needs a sign-in, or the account may not. */
12
+ readonly auth: 4;
13
+ /** Something this computer lacks: a tool, a runtime, a permission. */
14
+ readonly platform: 5;
15
+ readonly notFound: 6;
16
+ /** Stopped by the person (SIGINT). */
17
+ readonly interrupted: 130;
18
+ };
19
+ export type ExitCode = (typeof EXIT)[keyof typeof EXIT];
20
+ /** A failure as --json prints it, on stdout, with the exit code. */
21
+ export declare const CliErrorSchema: z.ZodObject<{
22
+ error: z.ZodObject<{
23
+ code: z.ZodString;
24
+ message: z.ZodString;
25
+ hint: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strict>;
27
+ }, z.core.$strict>;
28
+ export type CliError = z.infer<typeof CliErrorSchema>;
29
+ /** A command's name: words in lowercase, `scenery view`. */
30
+ export declare const COMMAND_NAME: RegExp;
31
+ export interface CommandSpec<I extends z.ZodObject = z.ZodObject, O extends z.ZodType = z.ZodType> {
32
+ name: string;
33
+ /** One line, for the list. */
34
+ summary: string;
35
+ /** Arguments and options, each field described; a field in `positional` is an argument. */
36
+ input: I;
37
+ /** Fields of `input` given by position, in order. */
38
+ positional?: readonly (keyof z.infer<I> & string)[];
39
+ /** What --json prints on success. */
40
+ output: O;
41
+ /** Lines of `allyhub help <command>` that show it at work. */
42
+ examples?: readonly string[];
43
+ /** Exposed as an MCP tool by `allyhub mcp` (most are; one that talks to a terminal is not). */
44
+ mcp?: boolean;
45
+ }
46
+ /** A command's spec, checked: its name's form, and that each positional is a field. */
47
+ export declare function command<I extends z.ZodObject, O extends z.ZodType>(spec: CommandSpec<I, O>): CommandSpec<I, O>;
48
+ /** A command as data: what `allyhub help --json` and an MCP tool listing give. */
49
+ export declare function describeCommand(spec: CommandSpec): {
50
+ name: string;
51
+ summary: string;
52
+ positional: string[];
53
+ input: Record<string, unknown>;
54
+ output: Record<string, unknown>;
55
+ examples: string[];
56
+ };
57
+ /** The MCP tool name of a command: `scenery view` is `allyhub_scenery_view`. */
58
+ export declare const toolName: (name: string) => string;
59
+ //# sourceMappingURL=cli.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 o}from"zod";export const EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},CliErrorSchema=o.strictObject({error:o.strictObject({code:o.string().regex(/^[a-z][a-z0-9-]*$/u),message:o.string().min(1),hint:o.string().optional()})}),COMMAND_NAME=/^[a-z][a-z0-9-]*(?: [a-z][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const e=Object.keys(t.input.shape);for(const n of t.positional??[])if(!e.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,r]of Object.entries(t.input.shape))if(!r.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:o.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:o.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export const toolName=t=>`allyhub_${t.replaceAll(/[ -]/gu,"_")}`;
@@ -0,0 +1,272 @@
1
+ import { z } from "zod";
2
+ /** The environment variable that signs in with an API key instead: automation (CI, servers). */
3
+ export declare const API_KEY_ENV = "ALLYHUB_API_KEY";
4
+ /** `GET`: the organization's credits, its plan and its auto top-up. */
5
+ export declare const BILLING_SUMMARY_PATH = "/api/billing/summary";
6
+ export declare const BillingSummarySchema: z.ZodObject<{
7
+ credits: z.ZodNumber;
8
+ held: z.ZodNumber;
9
+ owed: z.ZodNumber;
10
+ plan: z.ZodNullable<z.ZodObject<{
11
+ id: z.ZodString;
12
+ name: z.ZodString;
13
+ interval: z.ZodEnum<{
14
+ month: "month";
15
+ year: "year";
16
+ }>;
17
+ status: z.ZodString;
18
+ renewsAt: z.ZodNullable<z.ZodISODateTime>;
19
+ endsAt: z.ZodNullable<z.ZodISODateTime>;
20
+ }, z.core.$strip>>;
21
+ autoTopUp: z.ZodNullable<z.ZodObject<{
22
+ below: z.ZodNumber;
23
+ amountCents: z.ZodNumber;
24
+ stopped: z.ZodNullable<z.ZodString>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$strip>;
27
+ export type BillingSummary = z.infer<typeof BillingSummarySchema>;
28
+ /** `GET`, open to anyone: the plans offered and their prices, and what a top-up buys. */
29
+ export declare const BILLING_PLANS_PATH = "/api/billing/plans";
30
+ export declare const BillingPlansSchema: z.ZodObject<{
31
+ plans: z.ZodArray<z.ZodObject<{
32
+ id: z.ZodString;
33
+ name: z.ZodString;
34
+ monthlyCredits: z.ZodNumber;
35
+ prices: z.ZodArray<z.ZodObject<{
36
+ interval: z.ZodEnum<{
37
+ month: "month";
38
+ year: "year";
39
+ }>;
40
+ amountCents: z.ZodNumber;
41
+ currency: z.ZodString;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>>;
44
+ topUp: z.ZodObject<{
45
+ currency: z.ZodString;
46
+ creditsPerDollar: z.ZodNumber;
47
+ minCents: z.ZodNumber;
48
+ maxCents: z.ZodNumber;
49
+ }, z.core.$strip>;
50
+ }, z.core.$strip>;
51
+ export type BillingPlans = z.infer<typeof BillingPlansSchema>;
52
+ /** `GET ?days=30&timeZone=Asia/Shanghai`: credits spent each day, the days with none left out. */
53
+ export declare const BILLING_USAGE_PATH = "/api/billing/usage";
54
+ export declare const BillingUsageSchema: z.ZodObject<{
55
+ days: z.ZodArray<z.ZodObject<{
56
+ day: z.ZodISODate;
57
+ credits: z.ZodNumber;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>;
60
+ export type BillingUsage = z.infer<typeof BillingUsageSchema>;
61
+ /** `POST`, an owner's or an admin's: Stripe Checkout for a plan or a top-up; answers `{ url }`. */
62
+ export declare const BILLING_CHECKOUT_PATH = "/api/billing/checkout";
63
+ export declare const CheckoutRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
64
+ plan: z.ZodString;
65
+ interval: z.ZodEnum<{
66
+ month: "month";
67
+ year: "year";
68
+ }>;
69
+ }, z.core.$strict>, z.ZodObject<{
70
+ topUpCents: z.ZodNumber;
71
+ }, z.core.$strict>]>;
72
+ /** `POST`, an owner's or an admin's: Stripe's Customer Portal (change or cancel the plan, the card, invoices); answers `{ url }`. */
73
+ export declare const BILLING_PORTAL_PATH = "/api/billing/portal";
74
+ /**
75
+ * `PUT { below, amountCents }`, an owner's or an admin's: auto top-up on,
76
+ * answered `{ on: true }`, or `{ saveCard: url }`, a Checkout that saves a
77
+ * card first; `DELETE` turns it off.
78
+ */
79
+ export declare const AUTO_TOP_UP_PATH = "/api/billing/auto-top-up";
80
+ export declare const AutoTopUpRequestSchema: z.ZodObject<{
81
+ below: z.ZodNumber;
82
+ amountCents: z.ZodNumber;
83
+ }, z.core.$strict>;
84
+ /** The plan page; `view` opens the plans, or the overview with a top-up. */
85
+ export declare const BILLING_PAGE_PATH = "/plan";
86
+ /** Where Stripe's Checkout lands once paid: a page that embeds the plan page may close then. */
87
+ export declare const BILLING_PAID_PATH = "/plan/paid";
88
+ /** `view` on the plan page: the plans, or the overview with the top-up open. */
89
+ export declare const BILLING_VIEWS: {
90
+ readonly plans: "plans";
91
+ readonly credits: "add-credits";
92
+ };
93
+ /** The language the app shows, which the page shows too (a locale code, `zh-cn`). */
94
+ export declare const BILLING_LANG_PARAM = "lang";
95
+ /** The models the organization may use. */
96
+ export declare const LLM_MODELS_PATH = "/api/llm/models";
97
+ /** Anthropic's Messages API (`POST`), streamed or not. */
98
+ export declare const LLM_MESSAGES_PATH = "/api/llm/v1/messages";
99
+ export declare const ModelCatalogSchema: z.ZodObject<{
100
+ models: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ name: z.ZodString;
103
+ reasoning: z.ZodOptional<z.ZodBoolean>;
104
+ input: z.ZodOptional<z.ZodArray<z.ZodString>>;
105
+ contextWindow: z.ZodOptional<z.ZodNumber>;
106
+ maxOutput: z.ZodOptional<z.ZodNumber>;
107
+ }, z.core.$loose>>;
108
+ defaultModel: z.ZodString;
109
+ }, z.core.$strip>;
110
+ export type ModelCatalog = z.infer<typeof ModelCatalogSchema>;
111
+ /** A JSON Schema document of a tool's input or output. */
112
+ export declare const JsonSchemaSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
113
+ /**
114
+ * One part of a tool's price rule: `credits` per unit of `meter` (per
115
+ * `tiers[input[tierField]]` when the input picks a tier), beyond `free`
116
+ * units. Meters that read the input (`input_count`, `input_block`,
117
+ * `input_value`) count `field`; the others count what the run returned
118
+ * (results, seconds, images…), estimated from `field` or `typical`.
119
+ * Meters are plain strings: the server may add new ones.
120
+ */
121
+ export declare const ToolPricePartSchema: z.ZodObject<{
122
+ meter: z.ZodString;
123
+ credits: z.ZodNumber;
124
+ field: z.ZodOptional<z.ZodString>;
125
+ size: z.ZodOptional<z.ZodNumber>;
126
+ free: z.ZodOptional<z.ZodNumber>;
127
+ tierField: z.ZodOptional<z.ZodString>;
128
+ tiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
129
+ typical: z.ZodOptional<z.ZodNumber>;
130
+ }, z.core.$strip>;
131
+ export type ToolPricePart = z.infer<typeof ToolPricePartSchema>;
132
+ /** What a run is charged, in credits: the base plus each part. */
133
+ export declare const ToolPriceSchema: z.ZodObject<{
134
+ baseCredits: z.ZodNumber;
135
+ parts: z.ZodArray<z.ZodObject<{
136
+ meter: z.ZodString;
137
+ credits: z.ZodNumber;
138
+ field: z.ZodOptional<z.ZodString>;
139
+ size: z.ZodOptional<z.ZodNumber>;
140
+ free: z.ZodOptional<z.ZodNumber>;
141
+ tierField: z.ZodOptional<z.ZodString>;
142
+ tiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
143
+ typical: z.ZodOptional<z.ZodNumber>;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strip>;
146
+ export type ToolPrice = z.infer<typeof ToolPriceSchema>;
147
+ export declare const CATALOG_PATH = "/api/catalog";
148
+ export declare const CatalogWorkSchema: z.ZodObject<{
149
+ id: z.ZodString;
150
+ title: z.ZodString;
151
+ description: z.ZodString;
152
+ }, z.core.$strip>;
153
+ export type CatalogWork = z.infer<typeof CatalogWorkSchema>;
154
+ export declare const CatalogToolSchema: z.ZodObject<{
155
+ name: z.ZodString;
156
+ work: z.ZodString;
157
+ title: z.ZodString;
158
+ description: z.ZodString;
159
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
160
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
161
+ price: z.ZodObject<{
162
+ baseCredits: z.ZodNumber;
163
+ parts: z.ZodArray<z.ZodObject<{
164
+ meter: z.ZodString;
165
+ credits: z.ZodNumber;
166
+ field: z.ZodOptional<z.ZodString>;
167
+ size: z.ZodOptional<z.ZodNumber>;
168
+ free: z.ZodOptional<z.ZodNumber>;
169
+ tierField: z.ZodOptional<z.ZodString>;
170
+ tiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
171
+ typical: z.ZodOptional<z.ZodNumber>;
172
+ }, z.core.$strip>>;
173
+ }, z.core.$strip>;
174
+ long: z.ZodBoolean;
175
+ }, z.core.$strip>;
176
+ export type CatalogTool = z.infer<typeof CatalogToolSchema>;
177
+ export declare const CatalogSchema: z.ZodObject<{
178
+ version: z.ZodString;
179
+ works: z.ZodArray<z.ZodObject<{
180
+ id: z.ZodString;
181
+ title: z.ZodString;
182
+ description: z.ZodString;
183
+ }, z.core.$strip>>;
184
+ tools: z.ZodArray<z.ZodObject<{
185
+ name: z.ZodString;
186
+ work: z.ZodString;
187
+ title: z.ZodString;
188
+ description: z.ZodString;
189
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
190
+ output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
191
+ price: z.ZodObject<{
192
+ baseCredits: z.ZodNumber;
193
+ parts: z.ZodArray<z.ZodObject<{
194
+ meter: z.ZodString;
195
+ credits: z.ZodNumber;
196
+ field: z.ZodOptional<z.ZodString>;
197
+ size: z.ZodOptional<z.ZodNumber>;
198
+ free: z.ZodOptional<z.ZodNumber>;
199
+ tierField: z.ZodOptional<z.ZodString>;
200
+ tiers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
201
+ typical: z.ZodOptional<z.ZodNumber>;
202
+ }, z.core.$strip>>;
203
+ }, z.core.$strip>;
204
+ long: z.ZodBoolean;
205
+ }, z.core.$strip>>;
206
+ }, z.core.$strip>;
207
+ export type Catalog = z.infer<typeof CatalogSchema>;
208
+ /** Where a tool's calls are made (POST). */
209
+ export declare const toolCallsPath: (tool: string) => string;
210
+ /** Where a call is read again (GET). */
211
+ export declare const callPath: (id: string) => string;
212
+ export declare const ToolCallRequestSchema: z.ZodObject<{
213
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
214
+ }, z.core.$strict>;
215
+ export type ToolCallRequest = z.infer<typeof ToolCallRequestSchema>;
216
+ export declare const CALL_STATUS: readonly ["working", "completed", "failed"];
217
+ export declare const ToolCallSchema: z.ZodObject<{
218
+ id: z.ZodString;
219
+ tool: z.ZodString;
220
+ status: z.ZodEnum<{
221
+ failed: "failed";
222
+ working: "working";
223
+ completed: "completed";
224
+ }>;
225
+ output: z.ZodOptional<z.ZodUnknown>;
226
+ error: z.ZodOptional<z.ZodObject<{
227
+ kind: z.ZodString;
228
+ message: z.ZodString;
229
+ }, z.core.$strip>>;
230
+ credits: z.ZodOptional<z.ZodNumber>;
231
+ pollAfterMs: z.ZodOptional<z.ZodNumber>;
232
+ createdAt: z.ZodString;
233
+ endedAt: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strip>;
235
+ export type ToolCall = z.infer<typeof ToolCallSchema>;
236
+ /** The file an in-app path points at, or undefined. */
237
+ export declare function parseAllyFilePath(path: string): {
238
+ id: string;
239
+ name: string;
240
+ } | undefined;
241
+ /** The largest file kept, in bytes. */
242
+ export declare const FILE_MAX_BYTES: number;
243
+ /** `POST { name, size, sha256, contentType }`: a file to keep; answers its id and where to put its bytes, or no `upload` when it is kept already. */
244
+ export declare const FILES_PATH = "/api/files";
245
+ export declare const FileCreateRequestSchema: z.ZodObject<{
246
+ name: z.ZodString;
247
+ size: z.ZodInt;
248
+ sha256: z.ZodString;
249
+ contentType: z.ZodString;
250
+ }, z.core.$strict>;
251
+ export type FileCreateRequest = z.infer<typeof FileCreateRequestSchema>;
252
+ export declare const FileCreatedSchema: z.ZodObject<{
253
+ id: z.ZodString;
254
+ upload: z.ZodNullable<z.ZodObject<{
255
+ url: z.ZodURL;
256
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
257
+ }, z.core.$strip>>;
258
+ }, z.core.$strip>;
259
+ export type FileCreated = z.infer<typeof FileCreatedSchema>;
260
+ /** `POST`: the bytes are put; answers the file once storage has them as asked. */
261
+ export declare const fileDonePath: (fileId: string) => string;
262
+ export declare const UploadedFileSchema: z.ZodObject<{
263
+ id: z.ZodString;
264
+ name: z.ZodString;
265
+ }, z.core.$strip>;
266
+ /** `GET <api>/api/files/<fileId>/content?disposition=…`: a signed URL. */
267
+ export declare const FileContentResponseSchema: z.ZodObject<{
268
+ url: z.ZodURL;
269
+ }, z.core.$strip>;
270
+ /** The path of a file's signed URL: a download, or shown inline (for a provider to fetch). */
271
+ export declare const fileContentPath: (fileId: string, disposition: "attachment" | "inline") => string;
272
+ //# sourceMappingURL=cloud.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 API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",BillingSummarySchema=t.object({credits:t.number(),held:t.number(),owed:t.number(),plan:t.object({id:t.string(),name:t.string(),interval:t.enum(["month","year"]),status:t.string(),renewsAt:t.iso.datetime().nullable(),endsAt:t.iso.datetime().nullable()}).nullable(),autoTopUp:t.object({below:t.number(),amountCents:t.number(),stopped:t.string().nullable()}).nullable()}),BILLING_PLANS_PATH="/api/billing/plans",BillingPlansSchema=t.object({plans:t.array(t.object({id:t.string(),name:t.string(),monthlyCredits:t.number(),prices:t.array(t.object({interval:t.enum(["month","year"]),amountCents:t.number(),currency:t.string()}))})),topUp:t.object({currency:t.string(),creditsPerDollar:t.number(),minCents:t.number(),maxCents:t.number()})}),BILLING_USAGE_PATH="/api/billing/usage",BillingUsageSchema=t.object({days:t.array(t.object({day:t.iso.date(),credits:t.number()}))}),BILLING_CHECKOUT_PATH="/api/billing/checkout",CheckoutRequestSchema=t.union([t.strictObject({plan:t.string(),interval:t.enum(["month","year"])}),t.strictObject({topUpCents:t.number().int()})]),BILLING_PORTAL_PATH="/api/billing/portal",AUTO_TOP_UP_PATH="/api/billing/auto-top-up",AutoTopUpRequestSchema=t.strictObject({below:t.number().nonnegative(),amountCents:t.number().int().positive()}),BILLING_PAGE_PATH="/plan",BILLING_PAID_PATH="/plan/paid",BILLING_VIEWS={plans:"plans",credits:"add-credits"},BILLING_LANG_PARAM="lang",LLM_MODELS_PATH="/api/llm/models",LLM_MESSAGES_PATH="/api/llm/v1/messages",ModelCatalogSchema=t.object({models:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),reasoning:t.boolean().optional(),input:t.array(t.string()).optional(),contextWindow:t.number().int().positive().optional(),maxOutput:t.number().int().positive().optional()})).min(1),defaultModel:t.string().min(1)}),JsonSchemaSchema=t.record(t.string(),t.unknown()),ToolPricePartSchema=t.object({meter:t.string().min(1),credits:t.number().nonnegative(),field:t.string().optional(),size:t.number().int().positive().optional(),free:t.number().int().nonnegative().optional(),tierField:t.string().optional(),tiers:t.record(t.string(),t.number().nonnegative()).optional(),typical:t.number().nonnegative().optional()}),ToolPriceSchema=t.object({baseCredits:t.number().nonnegative(),parts:t.array(ToolPricePartSchema)}),CATALOG_PATH="/api/catalog",CatalogWorkSchema=t.object({id:t.string().min(1),title:t.string().min(1),description:t.string().min(1)}),CatalogToolSchema=t.object({name:t.string().min(1),work:t.string().min(1),title:t.string().min(1),description:t.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,price:ToolPriceSchema,long:t.boolean()}),CatalogSchema=t.object({version:t.string().min(1),works:t.array(CatalogWorkSchema),tools:t.array(CatalogToolSchema)}),toolCallsPath=e=>`/api/tools/${encodeURIComponent(e)}/calls`,callPath=e=>`/api/calls/${encodeURIComponent(e)}`,ToolCallRequestSchema=t.strictObject({input:t.record(t.string(),t.unknown())}),CALL_STATUS=["working","completed","failed"],ToolCallSchema=t.object({id:t.string().min(1),tool:t.string().min(1),status:t.enum(CALL_STATUS),output:t.unknown().optional(),error:t.object({kind:t.string().min(1),message:t.string().min(1)}).optional(),credits:t.number().nonnegative().optional(),pollAfterMs:t.number().int().nonnegative().optional(),createdAt:t.string(),endedAt:t.string().optional()});const i="ally://data-tool-results/";export function parseAllyFilePath(e){if(!e.startsWith(i))return;const[n,o,...r]=e.slice(i.length).split("/");if(!(!n||!o||r.length>0))try{return{id:decodeURIComponent(n),name:decodeURIComponent(o)}}catch{return}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=t.strictObject({name:t.string().min(1).max(255),size:t.int().positive().max(FILE_MAX_BYTES),sha256:t.string().regex(/^[0-9a-f]{64}$/u),contentType:t.string().min(1).max(255)}),FileCreatedSchema=t.object({id:t.string().min(1),upload:t.object({url:t.url(),headers:t.record(t.string(),t.string())}).nullable()}),fileDonePath=e=>`${FILES_PATH}/${encodeURIComponent(e)}/done`,UploadedFileSchema=t.object({id:t.string().min(1),name:t.string()}),FileContentResponseSchema=t.object({url:t.url()}),fileContentPath=(e,n)=>`${FILES_PATH}/${encodeURIComponent(e)}/content?disposition=${n}`;