@allyhub/sdk 0.8.0 → 0.9.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 (438) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/NOTICE +46 -49
  3. package/dist/dom.d.ts +1 -209
  4. package/dist/dom.js +1 -1
  5. package/dist/image.d.ts +2 -0
  6. package/dist/image.js +2 -0
  7. package/dist/index.d.ts +1 -21
  8. package/dist/index.js +1 -1
  9. package/dist/media.d.ts +1 -5
  10. package/dist/media.js +1 -1
  11. package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
  12. package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
  13. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
  14. package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
  15. package/dist/node_modules/@allyhub/audio/package.json +1 -1
  16. package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
  17. package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +1 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  20. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  21. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  22. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  30. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  31. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  33. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  34. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  36. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  38. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +20 -82
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  40. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -8
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  42. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  46. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  48. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  50. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  51. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  52. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  53. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  54. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  56. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +46 -42
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  58. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  59. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  60. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  94. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  95. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  96. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  100. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  101. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  102. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  104. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  105. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  106. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  116. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  117. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  119. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  120. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  126. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  127. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  128. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  129. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  131. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  133. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  135. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  137. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  138. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  142. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  143. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  144. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  146. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  147. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  148. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  150. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  151. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  152. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  153. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  154. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  156. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +421 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  162. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  166. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  168. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  174. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  176. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  178. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  179. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  180. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  181. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +285 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  183. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  185. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  186. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  187. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  189. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  190. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  191. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +2 -0
  194. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  195. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
  196. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  198. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  199. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +22 -9
  200. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  201. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  202. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +5 -0
  204. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  205. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  206. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +273 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  210. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
  211. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  212. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  216. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  217. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  219. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  220. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  223. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  225. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  226. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  227. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  228. package/dist/node_modules/@allyhub/protocol/package.json +1 -1
  229. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  230. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  231. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  232. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  233. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  234. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  235. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  236. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  237. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  239. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  240. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  241. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  242. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  243. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  244. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  245. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  246. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  247. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  248. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  249. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  250. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  251. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  252. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  253. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  254. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  257. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +3 -4
  258. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  259. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +76 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  262. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  263. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +6 -6
  265. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -0
  267. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  269. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  270. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  271. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +44 -4
  272. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  273. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  274. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  275. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  276. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  277. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  278. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  279. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +208 -0
  280. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  281. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  282. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  283. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  284. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  285. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  286. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  287. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  288. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  289. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +19 -2
  290. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  291. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  292. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +17 -10
  293. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  294. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  295. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  296. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  297. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  298. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  299. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  300. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  301. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  302. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  303. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  304. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  305. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  306. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  307. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  308. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  309. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  310. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  311. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  312. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  313. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  314. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  315. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  316. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  317. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  318. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  319. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  320. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +22 -430
  321. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  322. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  323. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +6 -12
  324. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  325. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  326. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  327. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  328. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  329. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  330. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  331. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  332. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  333. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  334. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  335. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  336. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  337. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  338. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  339. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  340. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  341. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  342. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  343. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  344. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  345. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  346. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  347. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  348. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  349. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  350. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  351. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  352. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  353. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  354. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  355. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  356. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  357. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  358. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  359. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  360. package/dist/scenery.d.ts +1 -1
  361. package/dist/scenery.js +1 -1
  362. package/dist/sheets.d.ts +1 -1
  363. package/dist/sheets.js +1 -1
  364. package/dist/slides.d.ts +1 -9
  365. package/dist/slides.js +1 -1
  366. package/docs/README.md +8 -6
  367. package/docs/batches.md +5 -5
  368. package/docs/contract.md +2 -2
  369. package/docs/defaults.md +278 -20
  370. package/docs/docs.md +77 -63
  371. package/docs/footage.md +7 -7
  372. package/docs/image.md +165 -0
  373. package/docs/layers.md +22 -13
  374. package/docs/modeling.md +4 -4
  375. package/docs/pictures.md +65 -0
  376. package/docs/project.md +51 -31
  377. package/docs/scenery.md +11 -11
  378. package/docs/sheets.md +26 -25
  379. package/docs/slides.md +73 -65
  380. package/docs/sound.md +3 -3
  381. package/docs/speech.md +8 -8
  382. package/docs/video.md +16 -13
  383. package/docs/websites.md +4 -4
  384. package/package.json +7 -2
  385. package/dist/define.js +0 -2
  386. package/dist/free.js +0 -2
  387. package/dist/input.js +0 -2
  388. package/dist/module.js +0 -2
  389. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  390. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  391. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  392. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  393. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  394. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  395. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  396. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  397. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  398. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  399. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  400. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  401. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  402. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  403. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  404. package/dist/parts.js +0 -2
  405. package/dist/piece.js +0 -2
  406. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  407. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  408. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  409. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  410. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  411. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  412. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  413. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  414. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  415. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  416. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  417. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  418. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  419. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  420. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  421. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  422. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  423. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  424. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  425. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  426. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  427. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  428. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  429. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  430. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  431. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  432. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  433. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  434. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  435. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  436. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
  437. /package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +0 -0
  438. /package/dist/{phone.js → node_modules/@allyhub/video-sdk/dist/phone.js} +0 -0
@@ -1,94 +0,0 @@
1
- import { z } from "zod";
2
- export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
- type: z.ZodLiteral<"quote">;
4
- exact: z.ZodString;
5
- prefix: z.ZodOptional<z.ZodString>;
6
- suffix: z.ZodOptional<z.ZodString>;
7
- }, z.core.$strict>, z.ZodObject<{
8
- type: z.ZodLiteral<"cells">;
9
- range: z.ZodString;
10
- }, z.core.$strict>, z.ZodObject<{
11
- type: z.ZodLiteral<"item">;
12
- }, z.core.$strict>], "type">;
13
- export type Target = z.infer<typeof TargetSchema>;
14
- export declare const AuthorSchema: z.ZodObject<{
15
- kind: z.ZodEnum<{
16
- person: "person";
17
- agent: "agent";
18
- }>;
19
- name: z.ZodString;
20
- }, z.core.$strict>;
21
- export declare const CommentSchema: z.ZodObject<{
22
- id: z.ZodString;
23
- author: z.ZodObject<{
24
- kind: z.ZodEnum<{
25
- person: "person";
26
- agent: "agent";
27
- }>;
28
- name: z.ZodString;
29
- }, z.core.$strict>;
30
- text: z.ZodString;
31
- at: z.ZodISODateTime;
32
- }, z.core.$strict>;
33
- export declare const ThreadSchema: z.ZodObject<{
34
- id: z.ZodString;
35
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
36
- type: z.ZodLiteral<"quote">;
37
- exact: z.ZodString;
38
- prefix: z.ZodOptional<z.ZodString>;
39
- suffix: z.ZodOptional<z.ZodString>;
40
- }, z.core.$strict>, z.ZodObject<{
41
- type: z.ZodLiteral<"cells">;
42
- range: z.ZodString;
43
- }, z.core.$strict>, z.ZodObject<{
44
- type: z.ZodLiteral<"item">;
45
- }, z.core.$strict>], "type">;
46
- resolved: z.ZodDefault<z.ZodBoolean>;
47
- comments: z.ZodArray<z.ZodObject<{
48
- id: z.ZodString;
49
- author: z.ZodObject<{
50
- kind: z.ZodEnum<{
51
- person: "person";
52
- agent: "agent";
53
- }>;
54
- name: z.ZodString;
55
- }, z.core.$strict>;
56
- text: z.ZodString;
57
- at: z.ZodISODateTime;
58
- }, z.core.$strict>>;
59
- }, z.core.$strict>;
60
- export type Thread = z.infer<typeof ThreadSchema>;
61
- export declare const CommentsFileSchema: z.ZodObject<{
62
- $schema: z.ZodOptional<z.ZodString>;
63
- version: z.ZodLiteral<1>;
64
- threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
65
- id: z.ZodString;
66
- target: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
- type: z.ZodLiteral<"quote">;
68
- exact: z.ZodString;
69
- prefix: z.ZodOptional<z.ZodString>;
70
- suffix: z.ZodOptional<z.ZodString>;
71
- }, z.core.$strict>, z.ZodObject<{
72
- type: z.ZodLiteral<"cells">;
73
- range: z.ZodString;
74
- }, z.core.$strict>, z.ZodObject<{
75
- type: z.ZodLiteral<"item">;
76
- }, z.core.$strict>], "type">;
77
- resolved: z.ZodDefault<z.ZodBoolean>;
78
- comments: z.ZodArray<z.ZodObject<{
79
- id: z.ZodString;
80
- author: z.ZodObject<{
81
- kind: z.ZodEnum<{
82
- person: "person";
83
- agent: "agent";
84
- }>;
85
- name: z.ZodString;
86
- }, z.core.$strict>;
87
- text: z.ZodString;
88
- at: z.ZodISODateTime;
89
- }, z.core.$strict>>;
90
- }, z.core.$strict>>>;
91
- }, z.core.$strict>;
92
- export type CommentsFile = z.infer<typeof CommentsFileSchema>;
93
- export declare const COMMENTS_FILE = "comments.json";
94
- //# sourceMappingURL=comments.d.ts.map
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as t}from"zod";import{INSTANT as e,dataFile as r}from"./file.js";export const TargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("quote"),exact:t.string().min(1),prefix:t.string().optional(),suffix:t.string().optional()}),t.strictObject({type:t.literal("cells"),range:t.string().regex(/^[A-Z]+[1-9]\d*(?::[A-Z]+[1-9]\d*)?$/u)}),t.strictObject({type:t.literal("item")})]),AuthorSchema=t.strictObject({kind:t.enum(["person","agent"]),name:t.string().min(1)}),CommentSchema=t.strictObject({id:t.string().min(1),author:AuthorSchema,text:t.string().min(1),at:e}),ThreadSchema=t.strictObject({id:t.string().min(1),target:TargetSchema,resolved:t.boolean().default(!1),comments:t.array(CommentSchema).min(1)}),CommentsFileSchema=r({version:t.literal(1),threads:t.array(ThreadSchema).default([])}),COMMENTS_FILE="comments.json";
@@ -1,227 +0,0 @@
1
- {
2
- "name": "allyhub-pin-onnxruntime-node",
3
- "lockfileVersion": 3,
4
- "requires": true,
5
- "packages": {
6
- "": {
7
- "name": "allyhub-pin-onnxruntime-node",
8
- "dependencies": {
9
- "onnxruntime-node": "1.30.0"
10
- }
11
- },
12
- "node_modules/adm-zip": {
13
- "version": "0.6.1",
14
- "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.1.tgz",
15
- "integrity": "sha512-Xwrja8nx9e5o2N1my4DsKCeKpdrnACyr1wtbPxBDgGzKzKyE9kRtBFA8mWldI+RVlD7CBZNWY/wQ2+ydwOR6kQ==",
16
- "license": "MIT",
17
- "engines": {
18
- "node": ">=14.0"
19
- }
20
- },
21
- "node_modules/define-data-property": {
22
- "version": "1.1.4",
23
- "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz",
24
- "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
25
- "license": "MIT",
26
- "dependencies": {
27
- "es-define-property": "^1.0.0",
28
- "es-errors": "^1.3.0",
29
- "gopd": "^1.0.1"
30
- },
31
- "engines": {
32
- "node": ">= 0.4"
33
- },
34
- "funding": {
35
- "url": "https://github.com/sponsors/ljharb"
36
- }
37
- },
38
- "node_modules/define-properties": {
39
- "version": "1.2.1",
40
- "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz",
41
- "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
42
- "license": "MIT",
43
- "dependencies": {
44
- "define-data-property": "^1.0.1",
45
- "has-property-descriptors": "^1.0.0",
46
- "object-keys": "^1.1.1"
47
- },
48
- "engines": {
49
- "node": ">= 0.4"
50
- },
51
- "funding": {
52
- "url": "https://github.com/sponsors/ljharb"
53
- }
54
- },
55
- "node_modules/es-define-property": {
56
- "version": "1.0.1",
57
- "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
58
- "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
59
- "license": "MIT",
60
- "engines": {
61
- "node": ">= 0.4"
62
- }
63
- },
64
- "node_modules/es-errors": {
65
- "version": "1.3.0",
66
- "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
67
- "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
68
- "license": "MIT",
69
- "engines": {
70
- "node": ">= 0.4"
71
- }
72
- },
73
- "node_modules/escape-string-regexp": {
74
- "version": "4.0.0",
75
- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
76
- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
77
- "license": "MIT",
78
- "engines": {
79
- "node": ">=10"
80
- },
81
- "funding": {
82
- "url": "https://github.com/sponsors/sindresorhus"
83
- }
84
- },
85
- "node_modules/global-agent": {
86
- "version": "4.1.6",
87
- "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-4.1.6.tgz",
88
- "integrity": "sha512-V9u791atI/bS7RryfRTK2oixDWo6/RCrIikjwuQ4kADPRZZml1C6LUJXc7y6qRhaAF8geo3bIvE/siAGJCw38A==",
89
- "license": "BSD-3-Clause",
90
- "dependencies": {
91
- "globalthis": "^1.0.2",
92
- "matcher": "^4.0.0",
93
- "semver": "^7.3.5",
94
- "serialize-error": "^8.1.0"
95
- },
96
- "engines": {
97
- "node": ">=10.0"
98
- }
99
- },
100
- "node_modules/globalthis": {
101
- "version": "1.0.4",
102
- "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz",
103
- "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",
104
- "license": "MIT",
105
- "dependencies": {
106
- "define-properties": "^1.2.1",
107
- "gopd": "^1.0.1"
108
- },
109
- "engines": {
110
- "node": ">= 0.4"
111
- },
112
- "funding": {
113
- "url": "https://github.com/sponsors/ljharb"
114
- }
115
- },
116
- "node_modules/gopd": {
117
- "version": "1.2.0",
118
- "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
119
- "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
120
- "license": "MIT",
121
- "engines": {
122
- "node": ">= 0.4"
123
- },
124
- "funding": {
125
- "url": "https://github.com/sponsors/ljharb"
126
- }
127
- },
128
- "node_modules/has-property-descriptors": {
129
- "version": "1.0.2",
130
- "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
131
- "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
132
- "license": "MIT",
133
- "dependencies": {
134
- "es-define-property": "^1.0.0"
135
- },
136
- "funding": {
137
- "url": "https://github.com/sponsors/ljharb"
138
- }
139
- },
140
- "node_modules/matcher": {
141
- "version": "4.0.0",
142
- "resolved": "https://registry.npmjs.org/matcher/-/matcher-4.0.0.tgz",
143
- "integrity": "sha512-S6x5wmcDmsDRRU/c2dkccDwQPXoFczc5+HpQ2lON8pnvHlnvHAHj5WlLVvw6n6vNyHuVugYrFohYxbS+pvFpKQ==",
144
- "license": "MIT",
145
- "dependencies": {
146
- "escape-string-regexp": "^4.0.0"
147
- },
148
- "engines": {
149
- "node": ">=10"
150
- },
151
- "funding": {
152
- "url": "https://github.com/sponsors/sindresorhus"
153
- }
154
- },
155
- "node_modules/object-keys": {
156
- "version": "1.1.1",
157
- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
158
- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
159
- "license": "MIT",
160
- "engines": {
161
- "node": ">= 0.4"
162
- }
163
- },
164
- "node_modules/onnxruntime-common": {
165
- "version": "1.30.0",
166
- "resolved": "https://registry.npmjs.org/onnxruntime-common/-/onnxruntime-common-1.30.0.tgz",
167
- "integrity": "sha512-7fdVWjAID1dVhH/G8qK3APARunV4VkBFoCQAP7qp4Wkab0mrorvmc+sqiT+mKXOzDqdjN5j+/Z9nb4gzNPWcyA==",
168
- "license": "MIT"
169
- },
170
- "node_modules/onnxruntime-node": {
171
- "version": "1.30.0",
172
- "resolved": "https://registry.npmjs.org/onnxruntime-node/-/onnxruntime-node-1.30.0.tgz",
173
- "integrity": "sha512-twhs1C2C/BFkz1yc5OY0KIU2GUq6DURO7hD4bx5Q2Qy3nAMJwRXW8xU3NVczE29VA9lolLOYepoD8fjTGOfIqw==",
174
- "hasInstallScript": true,
175
- "license": "MIT",
176
- "os": [
177
- "win32",
178
- "darwin",
179
- "linux"
180
- ],
181
- "dependencies": {
182
- "adm-zip": "^0.6.0",
183
- "global-agent": "^4.1.3",
184
- "onnxruntime-common": "1.30.0"
185
- }
186
- },
187
- "node_modules/semver": {
188
- "version": "7.8.5",
189
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz",
190
- "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==",
191
- "license": "ISC",
192
- "bin": {
193
- "semver": "bin/semver.js"
194
- },
195
- "engines": {
196
- "node": ">=10"
197
- }
198
- },
199
- "node_modules/serialize-error": {
200
- "version": "8.1.0",
201
- "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-8.1.0.tgz",
202
- "integrity": "sha512-3NnuWfM6vBYoy5gZFvHiYsVbafvI9vZv/+jlIigFn4oP4zjNPK3LhcY0xSCgeb1a5L8jO71Mit9LlNoi2UfDDQ==",
203
- "license": "MIT",
204
- "dependencies": {
205
- "type-fest": "^0.20.2"
206
- },
207
- "engines": {
208
- "node": ">=10"
209
- },
210
- "funding": {
211
- "url": "https://github.com/sponsors/sindresorhus"
212
- }
213
- },
214
- "node_modules/type-fest": {
215
- "version": "0.20.2",
216
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
217
- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
218
- "license": "(MIT OR CC0-1.0)",
219
- "engines": {
220
- "node": ">=10"
221
- },
222
- "funding": {
223
- "url": "https://github.com/sponsors/sindresorhus"
224
- }
225
- }
226
- }
227
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "allyhub-pin-onnxruntime-node",
3
- "private": true,
4
- "dependencies": {
5
- "onnxruntime-node": "1.30.0"
6
- },
7
- "allyhubSize": 46000000
8
- }
@@ -1,105 +0,0 @@
1
- {
2
- "name": "allyhub-pin-sherpa-onnx-node",
3
- "lockfileVersion": 3,
4
- "requires": true,
5
- "packages": {
6
- "": {
7
- "name": "allyhub-pin-sherpa-onnx-node",
8
- "dependencies": {
9
- "sherpa-onnx-node": "1.13.8"
10
- }
11
- },
12
- "node_modules/sherpa-onnx-darwin-arm64": {
13
- "version": "1.13.8",
14
- "resolved": "https://registry.npmjs.org/sherpa-onnx-darwin-arm64/-/sherpa-onnx-darwin-arm64-1.13.8.tgz",
15
- "integrity": "sha512-FPNgJMgnWVl/KhRTIhG3KL3A4Om63Rn4YKXc9/uHY7SzLcvqLJLc/h7UBWJwduXvv7K18t5NpxHR6XgXn4sjWw==",
16
- "cpu": [
17
- "arm64"
18
- ],
19
- "license": "Apache-2.0",
20
- "optional": true,
21
- "os": [
22
- "darwin"
23
- ]
24
- },
25
- "node_modules/sherpa-onnx-darwin-x64": {
26
- "version": "1.13.8",
27
- "resolved": "https://registry.npmjs.org/sherpa-onnx-darwin-x64/-/sherpa-onnx-darwin-x64-1.13.8.tgz",
28
- "integrity": "sha512-7BLRpjM6w4f9W46/nmkmq8lEKUayhebvcpslCVQ+6QN2uReYlZEMDZlSpXMjme+hUFrPfRz8P3UNq8ep/4d19g==",
29
- "cpu": [
30
- "x64"
31
- ],
32
- "license": "Apache-2.0",
33
- "optional": true,
34
- "os": [
35
- "darwin"
36
- ]
37
- },
38
- "node_modules/sherpa-onnx-linux-arm64": {
39
- "version": "1.13.8",
40
- "resolved": "https://registry.npmjs.org/sherpa-onnx-linux-arm64/-/sherpa-onnx-linux-arm64-1.13.8.tgz",
41
- "integrity": "sha512-Tlg7a70b/Wge3OF8IgTHF9jhSVCsLyKQKhwc4BsJ5A+dL/SrFtGBjzuHp4XeLhiiOT7afCxX5PdSn/D4c8Lnuw==",
42
- "cpu": [
43
- "arm64"
44
- ],
45
- "license": "Apache-2.0",
46
- "optional": true,
47
- "os": [
48
- "linux"
49
- ]
50
- },
51
- "node_modules/sherpa-onnx-linux-x64": {
52
- "version": "1.13.8",
53
- "resolved": "https://registry.npmjs.org/sherpa-onnx-linux-x64/-/sherpa-onnx-linux-x64-1.13.8.tgz",
54
- "integrity": "sha512-6plnhjagsSeTntCgnlag86hWbs/uZE9Crms1LgOb68/1nKsIQjMd+WG519m+aPwT6TrsBOiEMzrx41t8sL5L5g==",
55
- "cpu": [
56
- "x64"
57
- ],
58
- "license": "Apache-2.0",
59
- "optional": true,
60
- "os": [
61
- "linux"
62
- ]
63
- },
64
- "node_modules/sherpa-onnx-node": {
65
- "version": "1.13.8",
66
- "resolved": "https://registry.npmjs.org/sherpa-onnx-node/-/sherpa-onnx-node-1.13.8.tgz",
67
- "integrity": "sha512-MsDMBdhLFTZ1GwvcGSSQhnS7g/EA8OMH6IYysCVUOM7j8Icty9KRc0E6YT1A5fWBsZwRfKOeh88QC95aRvS8ag==",
68
- "license": "Apache-2.0",
69
- "optionalDependencies": {
70
- "sherpa-onnx-darwin-arm64": "^1.13.8",
71
- "sherpa-onnx-darwin-x64": "^1.13.8",
72
- "sherpa-onnx-linux-arm64": "^1.13.8",
73
- "sherpa-onnx-linux-x64": "^1.13.8",
74
- "sherpa-onnx-win-ia32": "^1.13.8",
75
- "sherpa-onnx-win-x64": "^1.13.8"
76
- }
77
- },
78
- "node_modules/sherpa-onnx-win-ia32": {
79
- "version": "1.13.8",
80
- "resolved": "https://registry.npmjs.org/sherpa-onnx-win-ia32/-/sherpa-onnx-win-ia32-1.13.8.tgz",
81
- "integrity": "sha512-H0Ojln9hfvM+pxWqW0cnjB/XK8/JPq4/k0IWu2JpY5Z458M3zv+XC3Hu+wmot3AoH/K1Bgt23n/tTKtPV9x8qg==",
82
- "cpu": [
83
- "ia32"
84
- ],
85
- "license": "Apache-2.0",
86
- "optional": true,
87
- "os": [
88
- "win32"
89
- ]
90
- },
91
- "node_modules/sherpa-onnx-win-x64": {
92
- "version": "1.13.8",
93
- "resolved": "https://registry.npmjs.org/sherpa-onnx-win-x64/-/sherpa-onnx-win-x64-1.13.8.tgz",
94
- "integrity": "sha512-oZF1c9VPOKtMwn83Bboc5XSWL+76BRoyB3eUuVnCknBKxwSULZU2Foia9VHWzU+n4I12rPsP6z6H9Rp1hD9o8g==",
95
- "cpu": [
96
- "x64"
97
- ],
98
- "license": "Apache-2.0",
99
- "optional": true,
100
- "os": [
101
- "win32"
102
- ]
103
- }
104
- }
105
- }
@@ -1,8 +0,0 @@
1
- {
2
- "name": "allyhub-pin-sherpa-onnx-node",
3
- "private": true,
4
- "dependencies": {
5
- "sherpa-onnx-node": "1.13.8"
6
- },
7
- "allyhubSize": 33000000
8
- }
@@ -1,128 +0,0 @@
1
- {
2
- "name": "allyhub-pin-tesseract-js",
3
- "lockfileVersion": 3,
4
- "requires": true,
5
- "packages": {
6
- "": {
7
- "name": "allyhub-pin-tesseract-js",
8
- "dependencies": {
9
- "tesseract.js": "7.0.0",
10
- "tesseract.js-core": "7.0.0"
11
- }
12
- },
13
- "node_modules/bmp-js": {
14
- "version": "0.1.0",
15
- "resolved": "https://registry.npmjs.org/bmp-js/-/bmp-js-0.1.0.tgz",
16
- "integrity": "sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==",
17
- "license": "MIT"
18
- },
19
- "node_modules/idb-keyval": {
20
- "version": "6.3.0",
21
- "resolved": "https://registry.npmjs.org/idb-keyval/-/idb-keyval-6.3.0.tgz",
22
- "integrity": "sha512-um+2dgAWmYsu615EXpWVwSmapJhON0G43t3Ka/EVaohzPQXSMqKEqeDK/oIW3Ow+BXaF2PvSc+oBTFp793A5Ow==",
23
- "license": "Apache-2.0"
24
- },
25
- "node_modules/is-url": {
26
- "version": "1.2.4",
27
- "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz",
28
- "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==",
29
- "license": "MIT"
30
- },
31
- "node_modules/node-fetch": {
32
- "version": "2.7.0",
33
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
34
- "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
35
- "license": "MIT",
36
- "dependencies": {
37
- "whatwg-url": "^5.0.0"
38
- },
39
- "engines": {
40
- "node": "4.x || >=6.0.0"
41
- },
42
- "peerDependencies": {
43
- "encoding": "^0.1.0"
44
- },
45
- "peerDependenciesMeta": {
46
- "encoding": {
47
- "optional": true
48
- }
49
- }
50
- },
51
- "node_modules/opencollective-postinstall": {
52
- "version": "2.0.3",
53
- "resolved": "https://registry.npmjs.org/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz",
54
- "integrity": "sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==",
55
- "license": "MIT",
56
- "bin": {
57
- "opencollective-postinstall": "index.js"
58
- }
59
- },
60
- "node_modules/regenerator-runtime": {
61
- "version": "0.13.11",
62
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
63
- "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==",
64
- "license": "MIT"
65
- },
66
- "node_modules/tesseract.js": {
67
- "version": "7.0.0",
68
- "resolved": "https://registry.npmjs.org/tesseract.js/-/tesseract.js-7.0.0.tgz",
69
- "integrity": "sha512-exPBkd+z+wM1BuMkx/Bjv43OeLBxhL5kKWsz/9JY+DXcXdiBjiAch0V49QR3oAJqCaL5qURE0vx9Eo+G5YE7mA==",
70
- "hasInstallScript": true,
71
- "license": "Apache-2.0",
72
- "dependencies": {
73
- "bmp-js": "^0.1.0",
74
- "idb-keyval": "^6.2.0",
75
- "is-url": "^1.2.4",
76
- "node-fetch": "^2.6.9",
77
- "opencollective-postinstall": "^2.0.3",
78
- "regenerator-runtime": "^0.13.3",
79
- "tesseract.js-core": "^7.0.0",
80
- "wasm-feature-detect": "^1.8.0",
81
- "zlibjs": "^0.3.1"
82
- }
83
- },
84
- "node_modules/tesseract.js-core": {
85
- "version": "7.0.0",
86
- "resolved": "https://registry.npmjs.org/tesseract.js-core/-/tesseract.js-core-7.0.0.tgz",
87
- "integrity": "sha512-WnNH518NzmbSq9zgTPeoF8c+xmilS8rFIl1YKbk/ptuuc7p6cLNELNuPAzcmsYw450ca6bLa8j3t0VAtq435Vw==",
88
- "license": "Apache-2.0"
89
- },
90
- "node_modules/tr46": {
91
- "version": "0.0.3",
92
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
93
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
94
- "license": "MIT"
95
- },
96
- "node_modules/wasm-feature-detect": {
97
- "version": "1.9.0",
98
- "resolved": "https://registry.npmjs.org/wasm-feature-detect/-/wasm-feature-detect-1.9.0.tgz",
99
- "integrity": "sha512-zonE+xlIIYtxPy++L24ow0hAD8CICb4+FgPyROd3buyXIqsJvUEDkBgfCCoXOd1Hu3DUr0GOfnPIdcGV+YpNaA==",
100
- "license": "Apache-2.0"
101
- },
102
- "node_modules/webidl-conversions": {
103
- "version": "3.0.1",
104
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
105
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
106
- "license": "BSD-2-Clause"
107
- },
108
- "node_modules/whatwg-url": {
109
- "version": "5.0.0",
110
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
111
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
112
- "license": "MIT",
113
- "dependencies": {
114
- "tr46": "~0.0.3",
115
- "webidl-conversions": "^3.0.0"
116
- }
117
- },
118
- "node_modules/zlibjs": {
119
- "version": "0.3.1",
120
- "resolved": "https://registry.npmjs.org/zlibjs/-/zlibjs-0.3.1.tgz",
121
- "integrity": "sha512-+J9RrgTKOmlxFSDHo0pI1xM6BLVUv+o0ZT9ANtCxGkjIVCCUdx9alUF8Gm+dGLKbkkkidWIHFDZHDMpfITt4+w==",
122
- "license": "MIT",
123
- "engines": {
124
- "node": "*"
125
- }
126
- }
127
- }
128
- }
@@ -1,9 +0,0 @@
1
- {
2
- "name": "allyhub-pin-tesseract-js",
3
- "private": true,
4
- "dependencies": {
5
- "tesseract.js": "7.0.0",
6
- "tesseract.js-core": "7.0.0"
7
- },
8
- "allyhubSize": 50000000
9
- }
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const FILE_TYPES={mp4:{ext:"mp4",type:"video/mp4"},mov:{ext:"mov",type:"video/quicktime"},webm:{ext:"webm",type:"video/webm"},gif:{ext:"gif",type:"image/gif"},srt:{ext:"srt",type:"application/x-subrip"},vtt:{ext:"vtt",type:"text/vtt"},cover:{ext:"cover.jpg",type:"image/jpeg"},wav:{ext:"wav",type:"audio/wav"},png:{ext:"png",type:"image/png"},pdf:{ext:"pdf",type:"application/pdf"},pptx:{ext:"pptx",type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}};export function isFileType(e){return Object.hasOwn(FILE_TYPES,e)}export function exportFile(e){return e==="png"?{ext:"png.zip",type:"application/zip",zipped:!0}:{...FILE_TYPES[e],zipped:!1}}export const KIND_TYPES={video:["mp4","mov","webm","gif","png","srt","vtt","cover","wav","pdf","pptx"],slides:["pdf","png","pptx","cover"]},DEFAULT_TYPES={video:["mp4"],slides:["pdf"]};export function exportProblem(e,t){const p=KIND_TYPES[e.kind];if(!p.includes(t))return{code:"bad_type",message:`A ${e.kind} output cannot be exported as ${t}.`,hint:`Choose one of: ${p.join(", ")}`};if((t==="srt"||t==="vtt")&&e.speech!==!0)return{code:"no_speech",message:"No part of this output says anything, so it has no captions to export.",hint:'Give parts speech: speech: take("./take.mp4") or say(s("…")).'}}export const MOTION_TYPES=["mp4","mov","webm","gif"],ALPHA_TYPES=["mov","webm","png"];export function exportStem(e){const t=p=>p.replace(/^[. ]+|[. ]+$/gu,"");return t(t(e.normalize("NFC").replace(/[\u0000-\u001f\u007f/\\:*?"<>|]+/gu," ").replace(/\s+/gu," ")).slice(0,120))}
@@ -1,2 +0,0 @@
1
- /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export const PRESETS=["16x9","9x16","1x1","4x5"];export function isPreset(t){return typeof t=="string"&&PRESETS.includes(t)}const s={"16x9":{width:1920,height:1080,orient:"landscape",safe:{top:60,bottom:90,left:80,right:80}},"9x16":{width:1080,height:1920,orient:"portrait",safe:{top:150,bottom:400,left:40,right:140}},"1x1":{width:1080,height:1080,orient:"square",safe:{top:50,bottom:90,left:40,right:40}},"4x5":{width:1080,height:1350,orient:"portrait",safe:{top:60,bottom:120,left:40,right:40}}};export function contentEdges(t,e={}){const{width:n,height:i,orient:o,safe:r}=t,f=Math.min(n,i)/1080,c=e.margin??(o==="landscape"?120:84)*f,a=Math.max(c,r.left,r.right),l=Math.max(a,r.top+(e.topGap??30*f)),p=i-Math.max(a,r.bottom+(e.bottomGap??20*f));return{k:f,pad:a,top:l,bottom:p,left:a,right:n-a}}export function presetInfo(t){return s[t]}export const PROFILES=["tiktok","reels","shorts","meta-feed","amazon","linkedin"];export function isProfile(t){return typeof t=="string"&&PROFILES.includes(t)}const d={tiktok:{name:"tiktok",label:"TikTok",width:1080,height:1920,safe:{top:240,bottom:660,left:120,right:180},maxDuration:600,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1920},maxBytes:5e8,encode:{crf:20,maxKbps:6e3}}},reels:{name:"reels",label:"Instagram Reels",width:1080,height:1920,safe:{top:269,bottom:672,left:65,right:65},maxDuration:180,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1920},maxBytes:4e9,encode:{crf:20,maxKbps:6e3}}},shorts:{name:"shorts",label:"YouTube Shorts",width:1080,height:1920,safe:{top:288,bottom:672,left:48,right:192},maxDuration:180,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1920},maxBytes:256e9,encode:{crf:20,maxKbps:8e3}}},"meta-feed":{name:"meta-feed",label:"Facebook and Instagram feed",width:1080,height:1350,safe:{top:60,bottom:120,left:40,right:40},maxDuration:14460,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1350},maxBytes:4e9,encode:{crf:20,maxKbps:6e3}}},amazon:{name:"amazon",label:"Amazon Sponsored Brands video",width:1920,height:1080,safe:{top:60,bottom:90,left:80,right:80},maxDuration:45,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1920,height:1080},maxBytes:5e8,encode:{crf:20,maxKbps:8e3}}},linkedin:{name:"linkedin",label:"LinkedIn",width:1080,height:1080,safe:{top:50,bottom:90,left:40,right:40},maxDuration:1800,loudness:-14,file:{container:"mp4",video:"h264",audio:"aac",cover:{width:1080,height:1080},maxBytes:2e8,encode:{crf:20,maxKbps:6e3}}}};export function profileInfo(t){return d[t]}export function profileOf(t){return isProfile(t)?d[t]:void 0}export const FPS=30,LOAD_LIMIT=10,SEEK_LIMIT=30,LOAD_WAITS=4,MAX_FPS=120;const u=[24,30,48,60,120];export const FPS_HELP="a whole number from 1 to 120, or an NTSC rate: 23.976, 29.97, 47.952, 59.94 or 119.88 (also written 24000/1001, 30000/1001 …)";export function parseFps(t){if(typeof t=="number"){if(!Number.isFinite(t))return;if(Number.isInteger(t))return t>=1&&t<=MAX_FPS?t:void 0;for(const i of u){const o=i*1e3/1001;if(Math.abs(t-o)<.005)return o}return}if(typeof t!="string")return;const e=t.trim(),n=/^(\d+)\s*\/\s*(\d+)$/.exec(e);if(n){const i=Number(n[1]),o=Number(n[2]);return o===1?parseFps(i):o===1001&&u.some(r=>r*1e3===i)?i/o:void 0}return e!==""&&Number.isFinite(Number(e))?parseFps(Number(e)):void 0}export function fpsRational(t){for(const n of u)if(Math.abs(t-n*1e3/1001)<1e-9)return{num:n*1e3,den:1001,text:`${String(n*1e3)}/1001`};const e=Math.round(t);return{num:e,den:1,text:String(e)}}export function toFrame(t,e=FPS){return Math.floor(t*e+1e-9)/e}export function roundToFrame(t,e=FPS){return Math.round(t*e)/e}const x=/^([1-9]\d{1,3})x([1-9]\d{1,3})$/,g={top:0,bottom:0,left:0,right:0},h=(t,e)=>t>e?"landscape":t<e?"portrait":"square";export function formatName(t){return typeof t=="string"?t:t.format}export function formatEntry(t,e){return t.find(n=>formatName(n)===e)}function b(t,e){const n={...t.safe,...m(e.safe??{})},i=t.profile;return{...t,safe:n,...i?{profile:{...i,safe:n,...e.maxDuration===void 0?{}:{maxDuration:e.maxDuration},...e.loudness===void 0?{}:{loudness:e.loudness}}}:{}}}function m(t){return Object.fromEntries(Object.entries(t).filter(([,e])=>e!==void 0))}export function formatSpecProblem(t){const e=formatInfo(t.format);if(!e)return;const n={...e.safe,...m(t.safe??{})};for(const[i,o]of Object.entries(t.safe??{}))if(o!==void 0&&(!Number.isInteger(o)||o<0))return`safe.${i} is ${String(o)}: covered edges are whole pixels from 0`;if(n.left+n.right>=e.width||n.top+n.bottom>=e.height)return`safe leaves nothing of the ${String(e.width)}×${String(e.height)} frame uncovered`;if(!e.profile&&(t.maxDuration!==void 0||t.loudness!==void 0))return`${t.format} is not a platform profile (${PROFILES.join(", ")}): maxDuration and loudness belong to one; a video's own limit is video(…, { maxDuration }) and its loudness video(…, { master })`}export function formatInfo(t){if(typeof t!="string"){const o=formatInfo(t.format);return o&&b(o,t)}if(isPreset(t))return s[t];if(isProfile(t)){const o=d[t];return{width:o.width,height:o.height,orient:h(o.width,o.height),safe:o.safe,profile:o}}const e=x.exec(t);if(!e)return;const n=Number(e[1]),i=Number(e[2]);if(!(n<64||i<64||n>8192||i>8192))return{width:n,height:i,orient:h(n,i),safe:g}}export function isVideoFormat(t){if(isPreset(t)||isProfile(t))return!0;if(typeof t!="string")return!1;const e=formatInfo(t);return e!==void 0&&e.width%2===0&&e.height%2===0}export function isFormat(t){return typeof t=="string"&&formatInfo(t)!==void 0}export const VIDEO_FORMAT_HELP=`one of ${PRESETS.join(", ")}, a platform profile (${PROFILES.join(", ")}), or WIDTHxHEIGHT in pixels with even sides from 64 to 8192, such as 1280x720`;export function paperOf(t){const e=formatInfo(t)??s["16x9"];return`${String(e.width)}px ${String(e.height)}px`}
@@ -1,37 +0,0 @@
1
- import { type GenFile } from "@allyhub/formats";
2
- /** Where a file fetched from a library came from: the library, its page, its authors and its licence (SPDX). */
3
- export type GenSource = NonNullable<GenFile["source"]>;
4
- /** What a media value says of its record (`MediaInfo.gen`). */
5
- export interface MediaGen {
6
- /** The record's path in the project. */
7
- record: string;
8
- ai: boolean;
9
- tool?: string;
10
- model?: string;
11
- /** When it was made (ISO 8601). */
12
- at?: string;
13
- credits?: number;
14
- /** The input as recorded (the prompt, the settings). */
15
- input?: Record<string, unknown>;
16
- /** What the tool returned about the file, as recorded. */
17
- output?: Record<string, unknown>;
18
- /** The file's sha256 as the record has it. */
19
- sha256?: string;
20
- /** A file fetched from a library: where from, who made it, its licence. */
21
- source?: GenSource;
22
- /**
23
- * Whether that is this file's sha256: false when the record was moved
24
- * beside another file or the file was changed since.
25
- */
26
- matches?: boolean;
27
- }
28
- /**
29
- * A `.gen.json`'s content as a media value's `gen`, or why it cannot be
30
- * read. `sha256` is the media file's own.
31
- */
32
- export declare function mediaGen(record: string, value: unknown, sha256: string): {
33
- gen: MediaGen;
34
- } | {
35
- error: string;
36
- };
37
- //# sourceMappingURL=gen.d.ts.map