@allyhub/sdk 0.8.0 → 0.10.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 (497) hide show
  1. package/CHANGELOG.md +19 -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 +4 -1
  18. package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
  19. package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
  20. package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
  21. package/dist/node_modules/@allyhub/chart/package.json +1 -1
  22. package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
  23. package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
  24. package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
  25. package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
  26. package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
  27. package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
  28. package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
  29. package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
  30. package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
  31. package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
  32. package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
  33. package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
  34. package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
  35. package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
  36. package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
  37. package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
  38. package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
  39. package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
  40. package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
  41. package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
  42. package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
  43. package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
  44. package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
  45. package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
  46. package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
  47. package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
  48. package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
  49. package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
  50. package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
  51. package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
  52. package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
  53. package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
  54. package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
  55. package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
  56. package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
  57. package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
  58. package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
  59. package/dist/node_modules/@allyhub/formats/package.json +1 -1
  60. package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
  61. package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
  62. package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
  63. package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
  64. package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
  65. package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
  66. package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
  67. package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
  68. package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
  69. package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
  70. package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
  71. package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
  72. package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
  73. package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
  74. package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
  75. package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
  76. package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
  77. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
  78. package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
  79. package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
  80. package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
  81. package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
  82. package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
  83. package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
  84. package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
  85. package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
  86. package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
  87. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
  88. package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
  89. package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
  90. package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
  91. package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
  92. package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
  93. package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
  94. package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
  95. package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
  96. package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
  97. package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
  98. package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
  99. package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
  100. package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
  101. package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
  102. package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
  103. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
  104. package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
  105. package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
  106. package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
  107. package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
  108. package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
  109. package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
  110. package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
  111. package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
  112. package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
  113. package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
  114. package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
  115. package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
  116. package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
  117. package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
  118. package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
  119. package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
  120. package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
  121. package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
  122. package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
  123. package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
  124. package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
  125. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
  126. package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
  127. package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
  128. package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
  129. package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
  130. package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
  131. package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
  132. package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
  133. package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
  134. package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
  135. package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
  136. package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
  137. package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
  138. package/dist/node_modules/@allyhub/measure/package.json +13 -0
  139. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
  140. package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
  141. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
  142. package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
  143. package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
  144. package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
  145. package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
  146. package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
  147. package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
  148. package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
  149. package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
  150. package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
  151. package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
  152. package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
  153. package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
  154. package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
  155. package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
  156. package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
  157. package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
  158. package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
  159. package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
  160. package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
  161. package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
  162. package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
  163. package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
  164. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
  165. package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
  166. package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
  167. package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
  168. package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
  169. package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
  170. package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
  171. package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
  172. package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
  173. package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
  174. package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
  175. package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
  176. package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
  177. package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
  178. package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
  179. package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
  180. package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
  181. package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
  182. package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
  183. package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
  184. package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
  185. package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
  186. package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
  187. package/dist/node_modules/@allyhub/piece/package.json +18 -0
  188. package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
  189. package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
  190. package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
  191. package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
  192. package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
  193. package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
  194. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
  195. package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
  196. package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
  197. package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
  198. package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
  199. package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
  200. package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
  201. package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
  202. package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
  203. package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
  204. package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
  205. package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
  206. package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
  207. package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
  208. package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
  209. package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
  210. package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
  211. package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
  212. package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
  213. package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
  214. package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
  215. package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
  216. package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
  217. package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
  218. package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
  219. package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
  220. package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
  221. package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
  222. package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
  223. package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
  224. package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
  225. package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
  226. package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
  227. package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
  228. package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
  229. package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
  230. package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
  231. package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
  232. package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
  233. package/dist/node_modules/@allyhub/protocol/package.json +5 -1
  234. package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
  235. package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
  236. package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
  237. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
  238. package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
  239. package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
  240. package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
  241. package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
  242. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
  243. package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
  244. package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
  245. package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
  246. package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
  247. package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
  248. package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
  249. package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
  250. package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
  251. package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
  252. package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
  253. package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
  254. package/dist/node_modules/@allyhub/scenery/package.json +1 -1
  255. package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
  256. package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
  257. package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
  258. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
  259. package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
  260. package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
  261. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
  262. package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
  263. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
  264. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
  265. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
  266. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
  267. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
  268. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
  269. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
  270. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
  271. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
  272. package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
  273. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
  274. package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
  275. package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
  276. package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
  277. package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
  278. package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
  279. package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
  280. package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
  281. package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
  282. package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
  283. package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
  284. package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
  285. package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
  286. package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
  287. package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
  288. package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
  289. package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
  290. package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
  291. package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
  292. package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
  293. package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
  294. package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
  295. package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
  296. package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
  297. package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
  298. package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
  299. package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
  300. package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
  301. package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
  302. package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
  303. package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
  304. package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
  305. package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
  306. package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
  307. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
  308. package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
  309. package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
  310. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
  311. package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
  312. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
  313. package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
  314. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
  315. package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
  316. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
  317. package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
  318. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
  319. package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
  320. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
  321. package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
  322. package/dist/node_modules/@allyhub/sheet/package.json +5 -1
  323. package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
  324. package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
  325. package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
  326. package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
  327. package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
  328. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
  329. package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
  330. package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
  331. package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
  332. package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
  333. package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
  334. package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
  335. package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
  336. package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
  337. package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
  338. package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
  339. package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
  340. package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
  341. package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
  342. package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
  343. package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
  344. package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
  345. package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
  346. package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
  347. package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
  348. package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
  349. package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
  350. package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
  351. package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
  352. package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
  353. package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
  354. package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
  355. package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
  356. package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
  357. package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
  358. package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
  359. package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
  360. package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
  361. package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
  362. package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
  363. package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
  364. package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
  365. package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
  366. package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
  367. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
  368. package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
  369. package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
  370. package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
  371. package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
  372. package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
  373. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
  374. package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
  375. package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
  376. package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
  377. package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
  378. package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
  379. package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
  380. package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
  381. package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
  382. package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
  383. package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
  384. package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
  385. package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
  386. package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
  387. package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
  388. package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
  389. package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
  390. package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
  391. package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
  392. package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
  393. package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
  394. package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
  395. package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
  396. package/dist/node_modules/@allyhub/video-core/package.json +1 -1
  397. package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
  398. package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
  399. package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
  400. package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
  401. package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
  402. package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
  403. package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
  404. package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
  405. package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
  406. package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
  407. package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
  408. package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
  409. package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
  410. package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
  411. package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
  412. package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
  413. package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
  414. package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
  415. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
  416. package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
  417. package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
  418. package/dist/scenery.d.ts +1 -1
  419. package/dist/scenery.js +1 -1
  420. package/dist/sheets.d.ts +1 -1
  421. package/dist/sheets.js +1 -1
  422. package/dist/slides.d.ts +1 -9
  423. package/dist/slides.js +1 -1
  424. package/docs/README.md +10 -6
  425. package/docs/batches.md +5 -5
  426. package/docs/canvas.md +28 -0
  427. package/docs/contract.md +2 -2
  428. package/docs/defaults.md +298 -22
  429. package/docs/docs.md +80 -66
  430. package/docs/footage.md +7 -7
  431. package/docs/image.md +165 -0
  432. package/docs/layers.md +22 -13
  433. package/docs/modeling.md +4 -4
  434. package/docs/pictures.md +65 -0
  435. package/docs/project.md +51 -31
  436. package/docs/scenery.md +14 -15
  437. package/docs/sheets.md +46 -28
  438. package/docs/slides.md +121 -67
  439. package/docs/sound.md +3 -3
  440. package/docs/speech.md +8 -8
  441. package/docs/video.md +16 -13
  442. package/docs/websites.md +4 -4
  443. package/docs/x.md +73 -0
  444. package/package.json +7 -2
  445. package/dist/define.js +0 -2
  446. package/dist/free.js +0 -2
  447. package/dist/input.js +0 -2
  448. package/dist/module.js +0 -2
  449. package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
  450. package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
  451. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
  452. package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
  453. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
  454. package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
  455. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
  456. package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
  457. package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
  458. package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
  459. package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
  460. package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
  461. package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
  462. package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
  463. package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
  464. package/dist/parts.js +0 -2
  465. package/dist/phone.js +0 -2
  466. package/dist/piece.js +0 -2
  467. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
  468. /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
  469. /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
  470. /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
  471. /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
  472. /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
  473. /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
  474. /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
  475. /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
  476. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
  477. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
  478. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
  479. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
  480. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
  481. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
  482. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
  483. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
  484. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
  485. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
  486. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
  487. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
  488. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
  489. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
  490. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
  491. /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
  492. /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
  493. /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
  494. /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
  495. /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
  496. /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
  497. /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
@@ -11,42 +11,39 @@ export declare const FRAME_METHODS: {
11
11
  }, z.core.$strict>>;
12
12
  }, z.core.$strict>>;
13
13
  readonly "note/locate": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
14
- mark: z.ZodObject<{
15
- anchor: z.ZodString;
16
- shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
17
- kind: z.ZodLiteral<"box">;
18
- rect: z.ZodObject<{
19
- x: z.ZodNumber;
20
- y: z.ZodNumber;
21
- width: z.ZodNumber;
22
- height: z.ZodNumber;
23
- }, z.core.$strict>;
24
- }, z.core.$strict>, z.ZodObject<{
25
- kind: z.ZodLiteral<"round">;
26
- rect: z.ZodObject<{
27
- x: z.ZodNumber;
28
- y: z.ZodNumber;
29
- width: z.ZodNumber;
30
- height: z.ZodNumber;
31
- }, z.core.$strict>;
32
- }, z.core.$strict>, z.ZodObject<{
33
- kind: z.ZodLiteral<"arrow">;
34
- from: z.ZodObject<{
35
- x: z.ZodNumber;
36
- y: z.ZodNumber;
37
- }, z.core.$strict>;
38
- to: z.ZodObject<{
39
- x: z.ZodNumber;
40
- y: z.ZodNumber;
41
- }, z.core.$strict>;
42
- }, z.core.$strict>, z.ZodObject<{
43
- kind: z.ZodLiteral<"line">;
44
- points: z.ZodArray<z.ZodObject<{
45
- x: z.ZodNumber;
46
- y: z.ZodNumber;
47
- }, z.core.$strict>>;
48
- }, z.core.$strict>], "kind">;
49
- }, z.core.$strict>;
14
+ shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
15
+ kind: z.ZodLiteral<"box">;
16
+ rect: z.ZodObject<{
17
+ x: z.ZodNumber;
18
+ y: z.ZodNumber;
19
+ width: z.ZodNumber;
20
+ height: z.ZodNumber;
21
+ }, z.core.$strict>;
22
+ }, z.core.$strict>, z.ZodObject<{
23
+ kind: z.ZodLiteral<"round">;
24
+ rect: z.ZodObject<{
25
+ x: z.ZodNumber;
26
+ y: z.ZodNumber;
27
+ width: z.ZodNumber;
28
+ height: z.ZodNumber;
29
+ }, z.core.$strict>;
30
+ }, z.core.$strict>, z.ZodObject<{
31
+ kind: z.ZodLiteral<"arrow">;
32
+ from: z.ZodObject<{
33
+ x: z.ZodNumber;
34
+ y: z.ZodNumber;
35
+ }, z.core.$strict>;
36
+ to: z.ZodObject<{
37
+ x: z.ZodNumber;
38
+ y: z.ZodNumber;
39
+ }, z.core.$strict>;
40
+ }, z.core.$strict>, z.ZodObject<{
41
+ kind: z.ZodLiteral<"line">;
42
+ points: z.ZodArray<z.ZodObject<{
43
+ x: z.ZodNumber;
44
+ y: z.ZodNumber;
45
+ }, z.core.$strict>>;
46
+ }, z.core.$strict>], "kind">;
50
47
  }, z.core.$strict>, z.ZodObject<{
51
48
  elements: z.ZodArray<z.ZodObject<{
52
49
  name: z.ZodString;
@@ -56,21 +53,19 @@ export declare const FRAME_METHODS: {
56
53
  endLine: z.ZodOptional<z.ZodInt>;
57
54
  }, z.core.$strict>>;
58
55
  text: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strict>>;
60
- where: z.ZodOptional<z.ZodString>;
61
- }, z.core.$strict>>;
62
- readonly "note/pictures": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
63
- anchors: z.ZodArray<z.ZodString>;
64
- region: z.ZodOptional<z.ZodObject<{
65
- anchor: z.ZodString;
66
- rect: z.ZodObject<{
67
- x: z.ZodNumber;
68
- y: z.ZodNumber;
56
+ regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
57
+ in: z.ZodString;
58
+ file: z.ZodOptional<z.ZodString>;
69
59
  width: z.ZodNumber;
70
60
  height: z.ZodNumber;
71
- }, z.core.$strict>;
61
+ path: z.ZodString;
62
+ area: z.ZodBoolean;
63
+ scale: z.ZodNumber;
64
+ }, z.core.$strict>>>;
72
65
  }, z.core.$strict>>;
73
- }, z.core.$strict>, z.ZodObject<{
66
+ where: z.ZodOptional<z.ZodString>;
67
+ }, z.core.$strict>>;
68
+ readonly "note/pictures": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
74
69
  pictures: z.ZodArray<z.ZodObject<{
75
70
  rect: z.ZodOptional<z.ZodObject<{
76
71
  x: z.ZodNumber;
@@ -81,169 +76,36 @@ export declare const FRAME_METHODS: {
81
76
  mime: z.ZodString;
82
77
  data: z.ZodString;
83
78
  }, z.core.$strict>>;
84
- placements: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
85
- x: z.ZodNumber;
86
- y: z.ZodNumber;
87
- sx: z.ZodNumber;
88
- sy: z.ZodNumber;
89
- clip: z.ZodObject<{
90
- x: z.ZodNumber;
91
- y: z.ZodNumber;
92
- width: z.ZodNumber;
93
- height: z.ZodNumber;
94
- }, z.core.$strict>;
95
- }, z.core.$strict>>>;
96
- }, z.core.$strict>>;
97
- readonly "note/where": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
98
- anchors: z.ZodArray<z.ZodString>;
99
- }, z.core.$strict>, z.ZodObject<{
100
- placements: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
101
- x: z.ZodNumber;
102
- y: z.ZodNumber;
103
- sx: z.ZodNumber;
104
- sy: z.ZodNumber;
105
- clip: z.ZodObject<{
79
+ uncovered: z.ZodArray<z.ZodObject<{
80
+ name: z.ZodString;
81
+ rect: z.ZodObject<{
106
82
  x: z.ZodNumber;
107
83
  y: z.ZodNumber;
108
84
  width: z.ZodNumber;
109
85
  height: z.ZodNumber;
110
86
  }, z.core.$strict>;
111
- }, z.core.$strict>>>;
112
- }, z.core.$strict>>;
113
- readonly "note/show": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
114
- anchor: z.ZodString;
115
- at: z.ZodObject<{
116
- x: z.ZodNumber;
117
- y: z.ZodNumber;
118
- }, z.core.$strict>;
119
- }, z.core.$strict>, z.ZodObject<{
120
- shown: z.ZodBoolean;
87
+ }, z.core.$strict>>;
121
88
  }, z.core.$strict>>;
122
89
  readonly "note/release": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
123
90
  };
124
91
  /** What the window tells the page. */
125
92
  export declare const WINDOW_NOTIFICATIONS: {
126
- readonly "note/mode": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
127
- catch: z.ZodBoolean;
128
- cursor: z.ZodString;
129
- nudge: z.ZodBoolean;
130
- }, z.core.$strict>>;
131
93
  readonly "editor/command": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
132
- command: z.ZodEnum<{
133
- export: "export";
134
- }>;
94
+ command: z.ZodString;
135
95
  open: z.ZodOptional<z.ZodBoolean>;
136
96
  }, z.core.$strict>>;
137
97
  };
138
- export declare const NoteInputSchema: z.ZodObject<{
139
- anchor: z.ZodOptional<z.ZodObject<{
140
- id: z.ZodString;
141
- placement: z.ZodNullable<z.ZodObject<{
142
- x: z.ZodNumber;
143
- y: z.ZodNumber;
144
- sx: z.ZodNumber;
145
- sy: z.ZodNumber;
146
- clip: z.ZodObject<{
147
- x: z.ZodNumber;
148
- y: z.ZodNumber;
149
- width: z.ZodNumber;
150
- height: z.ZodNumber;
151
- }, z.core.$strict>;
152
- }, z.core.$strict>>;
153
- }, z.core.$strict>>;
154
- shift: z.ZodBoolean;
155
- alt: z.ZodBoolean;
156
- meta: z.ZodBoolean;
157
- ctrl: z.ZodBoolean;
158
- type: z.ZodEnum<{
159
- cancel: "cancel";
160
- down: "down";
161
- move: "move";
162
- up: "up";
163
- double: "double";
164
- }>;
165
- x: z.ZodNumber;
166
- y: z.ZodNumber;
167
- buttons: z.ZodInt;
168
- }, z.core.$strict>;
169
- export type NoteInput = z.infer<typeof NoteInputSchema>;
170
- export declare const NoteKeySchema: z.ZodObject<{
171
- shift: z.ZodBoolean;
172
- alt: z.ZodBoolean;
173
- meta: z.ZodBoolean;
174
- ctrl: z.ZodBoolean;
175
- type: z.ZodEnum<{
176
- down: "down";
177
- up: "up";
178
- }>;
179
- key: z.ZodString;
180
- code: z.ZodString;
181
- repeat: z.ZodBoolean;
182
- }, z.core.$strict>;
183
- export type NoteKey = z.infer<typeof NoteKeySchema>;
184
98
  /** What the page tells the window. */
185
99
  export declare const FRAME_NOTIFICATIONS: {
186
100
  readonly "note/ready": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
187
101
  readonly "note/gone": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
188
- readonly "note/input": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
189
- events: z.ZodArray<z.ZodObject<{
190
- anchor: z.ZodOptional<z.ZodObject<{
191
- id: z.ZodString;
192
- placement: z.ZodNullable<z.ZodObject<{
193
- x: z.ZodNumber;
194
- y: z.ZodNumber;
195
- sx: z.ZodNumber;
196
- sy: z.ZodNumber;
197
- clip: z.ZodObject<{
198
- x: z.ZodNumber;
199
- y: z.ZodNumber;
200
- width: z.ZodNumber;
201
- height: z.ZodNumber;
202
- }, z.core.$strict>;
203
- }, z.core.$strict>>;
204
- }, z.core.$strict>>;
205
- shift: z.ZodBoolean;
206
- alt: z.ZodBoolean;
207
- meta: z.ZodBoolean;
208
- ctrl: z.ZodBoolean;
209
- type: z.ZodEnum<{
210
- cancel: "cancel";
211
- down: "down";
212
- move: "move";
213
- up: "up";
214
- double: "double";
215
- }>;
216
- x: z.ZodNumber;
217
- y: z.ZodNumber;
218
- buttons: z.ZodInt;
219
- }, z.core.$strict>>;
220
- }, z.core.$strict>>;
221
- readonly "note/key": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
222
- shift: z.ZodBoolean;
223
- alt: z.ZodBoolean;
224
- meta: z.ZodBoolean;
225
- ctrl: z.ZodBoolean;
226
- type: z.ZodEnum<{
227
- down: "down";
228
- up: "up";
229
- }>;
102
+ readonly "window/key": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
230
103
  key: z.ZodString;
231
104
  code: z.ZodString;
232
- repeat: z.ZodBoolean;
233
- }, z.core.$strict>>;
234
- readonly "note/moved": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
235
- placements: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
236
- x: z.ZodNumber;
237
- y: z.ZodNumber;
238
- sx: z.ZodNumber;
239
- sy: z.ZodNumber;
240
- clip: z.ZodObject<{
241
- x: z.ZodNumber;
242
- y: z.ZodNumber;
243
- width: z.ZodNumber;
244
- height: z.ZodNumber;
245
- }, z.core.$strict>;
246
- }, z.core.$strict>>>;
105
+ meta: z.ZodBoolean;
106
+ ctrl: z.ZodBoolean;
107
+ shift: z.ZodBoolean;
108
+ alt: z.ZodBoolean;
247
109
  }, z.core.$strict>>;
248
110
  readonly "agent/ask": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
249
111
  text: z.ZodString;
@@ -260,19 +122,15 @@ export declare const FRAME_NOTIFICATIONS: {
260
122
  readonly "edit/request": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
261
123
  readonly "editor/place": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
262
124
  item: z.ZodString;
263
- place: z.ZodUnion<readonly [z.ZodObject<{
264
- t: z.ZodNumber;
265
- }, z.core.$strict>, z.ZodObject<{
266
- slide: z.ZodString;
267
- }, z.core.$strict>]>;
125
+ place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
268
126
  }, z.core.$strict>>;
269
127
  readonly "export/state": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
270
128
  at: z.ZodEnum<{
271
129
  failed: "failed";
272
130
  running: "running";
273
131
  idle: "idle";
274
- done: "done";
275
132
  queued: "queued";
133
+ done: "done";
276
134
  }>;
277
135
  percent: z.ZodOptional<z.ZodNumber>;
278
136
  open: z.ZodOptional<z.ZodBoolean>;
@@ -286,5 +144,15 @@ export declare const FRAME_NOTIFICATIONS: {
286
144
  }>;
287
145
  message: z.ZodOptional<z.ZodString>;
288
146
  }, z.core.$strict>>;
147
+ readonly "agent/here": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
148
+ agent: z.ZodOptional<z.ZodObject<{
149
+ name: z.ZodString;
150
+ doing: z.ZodEnum<{
151
+ looking: "looking";
152
+ editing: "editing";
153
+ }>;
154
+ }, z.core.$strict>>;
155
+ following: z.ZodBoolean;
156
+ }, z.core.$strict>>;
289
157
  };
290
158
  //# sourceMappingURL=frame.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{z as e}from"zod";import{EDITOR_STATES as a,ExportStateSchema as i,PlaceSchema as c}from"./editor.js";import{PathSchema as h}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{AnchoredShapeSchema as m,HeldSchema as p,NoteElementSchema as d,NotePictureSchema as l,NoteRectSchema as r,NotePlacementSchema as g,NotePlacementsSchema as s,NotePointSchema as w}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({}),p,"Holds what moves by itself and starts catching presses for Note mode; says what is on show."),"note/locate":o(e.strictObject({mark:m}),e.strictObject({elements:e.array(d),where:e.string().optional()}),"What a mark is on, while it is on show. Empty is an answer: the mark's place still goes."),"note/pictures":o(e.strictObject({anchors:e.array(e.string().min(1)),region:e.strictObject({anchor:e.string().min(1),rect:r}).optional()}),e.strictObject({pictures:e.array(l),placements:s}),"The page as it shows now, drawn without the window's marks, and what its editor draws better, each at its rect."),"note/where":o(e.strictObject({anchors:e.array(e.string().min(1))}),e.strictObject({placements:s}),"Where anchors are now, which the page goes on telling as they move."),"note/show":o(e.strictObject({anchor:e.string().min(1),at:w}),e.strictObject({shown:e.boolean()}),"Brings a point of an anchor back on show: scrolls to it, turns to its slide, goes to its moment."),"note/release":o(e.strictObject({}),e.strictObject({}),"Note mode is over: presses go to the editor again. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"note/mode":t(e.strictObject({catch:e.boolean(),cursor:e.string().min(1),nudge:e.boolean()}),"How the page treats input while Note mode holds it."),"editor/command":t(e.strictObject({command:e.enum(["export"]),open:e.boolean().optional()}),"A shortcut the window took, or its header's Export, for the editor to do as its own.")};const n={shift:e.boolean(),alt:e.boolean(),meta:e.boolean(),ctrl:e.boolean()};export const NoteInputSchema=e.strictObject({type:e.enum(["down","move","up","cancel","double"]),x:e.number(),y:e.number(),buttons:e.int().nonnegative(),...n,anchor:e.strictObject({id:e.string().min(1),placement:g}).optional()}),NoteKeySchema=e.strictObject({type:e.enum(["down","up"]),key:e.string(),code:e.string(),repeat:e.boolean(),...n}),FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"note/input":t(e.strictObject({events:e.array(NoteInputSchema).min(1)}),"Presses the page caught while Note mode holds it, in order; a pen's moves come together."),"note/key":t(NoteKeySchema,"A key the page caught while held."),"note/moved":t(e.strictObject({placements:s}),"Anchors that moved, and where they are now: once a frame at most, only those the page has named."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:r.optional()}),"The person asked for Note mode from the editor (Mark up); `from` is what they pressed, in the page's viewport, for the bar to come out of."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person tried to change what a read-only page shows, or the page needs the machine: the window offers to wake it."),"editor/place":t(e.strictObject({item:h,place:c}),"Where the person is in an item, so the window opens it there again."),"export/state":t(i,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(a),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header.")};
2
+ import{z as e}from"zod";import{EDITOR_STATES as r,ExportStateSchema as i,PlaceSchema as a}from"./editor.js";import{AgentHereSchema as n}from"./presence.js";import{PathSchema as h}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{HeldSchema as c,NoteFoundSchema as d,NotePictureSchema as m,NoteRectSchema as s,NoteShapeSchema as p}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({}),c,"Holds what moves by itself while the person marks a picture of it; says what is on show."),"note/locate":o(e.strictObject({shape:p}),d,"What a mark is on: the editor's answer and every inset's under it, innermost first. Empty is an answer: the mark's place still goes."),"note/pictures":o(e.strictObject({}),e.strictObject({pictures:e.array(m),uncovered:e.array(e.strictObject({name:e.string(),rect:s}))}),"The page as it shows now, drawn without the window's marks, then its insets' pictures, each at its rect, outermost first."),"note/release":o(e.strictObject({}),e.strictObject({}),"The person is done marking. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own.")},FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"window/key":t(e.strictObject({key:e.string(),code:e.string(),meta:e.boolean(),ctrl:e.boolean(),shift:e.boolean(),alt:e.boolean()}),"A key with ⌘ or Ctrl pressed in the page that its editor did not take: the window's shortcut (⌘⇧M, ⌘K), heard where the keys are in the page. A desktop shell's menu hears them itself, so a page framed there tells none."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:s.optional()}),"The person asked for Mark up from the editor: the window shows its tools; `from` is what they pressed, in the page's viewport."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person tried to change what a read-only page shows, or the page needs the machine: the window offers to wake it."),"editor/place":t(e.strictObject({item:h,place:a}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"export/state":t(i,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(r),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(n,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ /** A picture: WebP unless said. */
3
+ export declare const ImageSchema: z.ZodObject<{
4
+ mime: z.ZodString;
5
+ data: z.ZodBase64;
6
+ }, z.core.$strict>;
7
+ export type Image = z.infer<typeof ImageSchema>;
8
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as e}from"zod";export const ImageSchema=e.strictObject({mime:e.string().regex(/^image\//u),data:e.base64()});
@@ -1,6 +1,8 @@
1
1
  export * from "./jsonrpc.js";
2
2
  export * from "./files.js";
3
3
  export * from "./editor.js";
4
+ export * from "./presence.js";
5
+ export * from "./kinds.js";
4
6
  export * from "./notes.js";
5
7
  export * from "./frame.js";
6
8
  export * from "./tools.js";
@@ -14,10 +16,14 @@ export * from "./app.js";
14
16
  export * from "./routes.js";
15
17
  export * from "./blobs.js";
16
18
  export * from "./sites.js";
19
+ export * from "./mail.js";
17
20
  export * from "./snapshots.js";
18
21
  export * from "./sources.js";
19
22
  export * from "./shares.js";
20
23
  export * from "./account.js";
21
24
  export * from "./open.js";
25
+ export * from "./browser-bridge.js";
22
26
  export * from "./jobs.js";
27
+ export * from "./peer.js";
28
+ export * from "./shape.js";
23
29
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./jobs.js";
2
+ export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./presence.js";export*from"./kinds.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./mail.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./browser-bridge.js";export*from"./jobs.js";export*from"./peer.js";export*from"./shape.js";
@@ -15,12 +15,12 @@ export type JobFailureReason = (typeof JOB_FAILURES)[number];
15
15
  export declare const JobAboutSchema: z.ZodObject<{
16
16
  kind: z.ZodEnum<{
17
17
  studio: "studio";
18
- agent: "agent";
19
18
  project: "project";
19
+ agent: "agent";
20
20
  piece: "piece";
21
- website: "website";
22
21
  plugin: "plugin";
23
22
  skill: "skill";
23
+ website: "website";
24
24
  }>;
25
25
  id: z.ZodString;
26
26
  }, z.core.$strict>;
@@ -30,12 +30,12 @@ export declare const JobSchema: z.ZodObject<{
30
30
  about: z.ZodObject<{
31
31
  kind: z.ZodEnum<{
32
32
  studio: "studio";
33
- agent: "agent";
34
33
  project: "project";
34
+ agent: "agent";
35
35
  piece: "piece";
36
- website: "website";
37
36
  plugin: "plugin";
38
37
  skill: "skill";
38
+ website: "website";
39
39
  }>;
40
40
  id: z.ZodString;
41
41
  }, z.core.$strict>;
@@ -43,9 +43,9 @@ export declare const JobSchema: z.ZodObject<{
43
43
  update: "update";
44
44
  install: "install";
45
45
  start: "start";
46
- export: "export";
47
46
  download: "download";
48
47
  wake: "wake";
48
+ export: "export";
49
49
  publish: "publish";
50
50
  }>;
51
51
  name: z.ZodOptional<z.ZodString>;
@@ -53,8 +53,8 @@ export declare const JobSchema: z.ZodObject<{
53
53
  failed: "failed";
54
54
  running: "running";
55
55
  paused: "paused";
56
- done: "done";
57
56
  queued: "queued";
57
+ done: "done";
58
58
  cancelled: "cancelled";
59
59
  }>;
60
60
  completed: z.ZodNumber;
@@ -0,0 +1,98 @@
1
+ import type { FileEditorSpec, KindSpec } from "@allyhub/formats";
2
+ import { z } from "zod";
3
+ /** What a kind's editor offers to export: the file types, the first the default; those that may come with one; how they are made. */
4
+ export declare const ExportOfferSchema: z.ZodObject<{
5
+ types: z.ZodArray<z.ZodString>;
6
+ extras: z.ZodArray<z.ZodString>;
7
+ options: z.ZodArray<z.ZodObject<{
8
+ name: z.ZodString;
9
+ only: z.ZodArray<z.ZodString>;
10
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
11
+ }, z.core.$strip>>;
12
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
13
+ }, z.core.$strip>;
14
+ export type ExportOffer = z.infer<typeof ExportOfferSchema>;
15
+ /** An item's kind, its name in the person's language: HostContext's `item.kindInfo`. */
16
+ export declare const KindInfoSchema: z.ZodObject<{
17
+ noun: z.ZodString;
18
+ icon: z.ZodOptional<z.ZodString>;
19
+ color: z.ZodOptional<z.ZodString>;
20
+ editor: z.ZodOptional<z.ZodString>;
21
+ exports: z.ZodOptional<z.ZodObject<{
22
+ types: z.ZodArray<z.ZodString>;
23
+ extras: z.ZodArray<z.ZodString>;
24
+ options: z.ZodArray<z.ZodObject<{
25
+ name: z.ZodString;
26
+ only: z.ZodArray<z.ZodString>;
27
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ }, z.core.$strip>>;
29
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
30
+ }, z.core.$strip>>;
31
+ share: z.ZodOptional<z.ZodBoolean>;
32
+ name: z.ZodString;
33
+ }, z.core.$strip>;
34
+ export type KindInfo = z.infer<typeof KindInfoSchema>;
35
+ /**
36
+ * An item's kind as a listing of items gives it: its name in every
37
+ * language its manifest has, for the page to choose from. A listing is
38
+ * answered without the person's language, and recorded once into a
39
+ * snapshot that anyone a share reaches reads in theirs.
40
+ */
41
+ export declare const ListedKindSchema: z.ZodObject<{
42
+ noun: z.ZodString;
43
+ icon: z.ZodOptional<z.ZodString>;
44
+ color: z.ZodOptional<z.ZodString>;
45
+ editor: z.ZodOptional<z.ZodString>;
46
+ exports: z.ZodOptional<z.ZodObject<{
47
+ types: z.ZodArray<z.ZodString>;
48
+ extras: z.ZodArray<z.ZodString>;
49
+ options: z.ZodArray<z.ZodObject<{
50
+ name: z.ZodString;
51
+ only: z.ZodArray<z.ZodString>;
52
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
53
+ }, z.core.$strip>>;
54
+ names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
55
+ }, z.core.$strip>>;
56
+ share: z.ZodOptional<z.ZodBoolean>;
57
+ name: z.ZodRecord<z.ZodString, z.ZodString>;
58
+ plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
59
+ starter: z.ZodOptional<z.ZodObject<{
60
+ files: z.ZodRecord<z.ZodString, z.ZodString>;
61
+ entry: z.ZodString;
62
+ }, z.core.$strip>>;
63
+ }, z.core.$strip>;
64
+ export type ListedKind = z.infer<typeof ListedKindSchema>;
65
+ /** A kind of the kind table as a listing gives it to page code. */
66
+ export declare function listedKind(spec: KindSpec): ListedKind;
67
+ /**
68
+ * What a listing gives of a file an editor opens by its name, in a listed
69
+ * kind's shape: its name and heading, its sign and colour, and the editor
70
+ * (no starter, no Export, no Share: a file of a pattern is no item).
71
+ */
72
+ export declare function listedFileEditor(spec: FileEditorSpec): ListedKind;
73
+ /** A listed kind's name in a language: English where its manifest has none in it, its noun where it has none at all. */
74
+ export declare const kindNameIn: (listed: ListedKind, locale: string) => string;
75
+ /** A listed kind's heading over its items in a language: its plural, else its name. */
76
+ export declare const kindPluralIn: (listed: ListedKind, locale: string) => string;
77
+ /**
78
+ * A new item's files from its kind's starter, in the order they are
79
+ * written, each a path inside its folder, and the one the project's list
80
+ * names (`work/add`): `{{locale}}` in a path or a text is `locale`,
81
+ * `{{name}}` in a path or a text is `name` (as a file is named: a module
82
+ * names its files by it), `{{title}}` in a text is `title` (a JSON string
83
+ * in a YAML or JSON file, which YAML reads back).
84
+ */
85
+ export declare function starterFiles(starter: NonNullable<ListedKind["starter"]>, title: string, locale: string, name: string): {
86
+ files: {
87
+ path: string;
88
+ text: string;
89
+ }[];
90
+ entry: string;
91
+ };
92
+ /**
93
+ * An item's kind for HostContext, its name in the person's language; a
94
+ * kind its listing did not describe (a snapshot recorded before kinds were
95
+ * listed) is named by its id and offers nothing.
96
+ */
97
+ export declare function kindInfoIn(kind: string | undefined, listed: ListedKind | undefined, locale: string): KindInfo;
98
+ //# sourceMappingURL=kinds.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 r}from"zod";const s=r.object({name:r.string().min(1),only:r.array(r.string().min(1)),values:r.array(r.string().min(1)).optional()});export const ExportOfferSchema=r.object({types:r.array(r.string().min(1)),extras:r.array(r.string().min(1)),options:r.array(s),names:r.record(r.string(),r.record(r.string(),r.string())).optional()});const u={noun:r.string().min(1),icon:r.string().min(1).optional(),color:r.string().min(1).optional(),editor:r.string().min(1).optional(),exports:ExportOfferSchema.optional(),share:r.boolean().optional()};export const KindInfoSchema=r.object({name:r.string().min(1),...u}),ListedKindSchema=r.object({name:r.record(r.string(),r.string().min(1)),plural:r.record(r.string(),r.string().min(1)).optional(),starter:r.object({files:r.record(r.string().min(1),r.string()),entry:r.string().min(1)}).optional(),...u});export function listedKind(n){return{name:n.name??{en:n.noun},...n.plural===void 0?{}:{plural:{...n.plural}},...n.starter===void 0?{}:{starter:{files:{...n.starter.files},entry:n.starter.entry}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},...n.editor===void 0?{}:{editor:n.editor},...n.exports===void 0?{}:{exports:{types:[...n.exports.types],extras:[...n.exports.extras],options:n.exports.options.map(o=>({name:o.name,only:[...o.only],...o.values===void 0?{}:{values:[...o.values]}})),...n.exports.names===void 0?{}:{names:Object.fromEntries(Object.entries(n.exports.names).map(([o,e])=>[o,{...e}]))}}},...n.share===void 0?{}:{share:n.share}}}export function listedFileEditor(n){return{name:{...n.name},...n.plural===void 0?{}:{plural:{...n.plural}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},editor:n.id}}export const kindNameIn=(n,o)=>n.name[o]??n.name.en??n.noun,kindPluralIn=(n,o)=>n.plural?.[o]??n.plural?.en??kindNameIn(n,o);const f=/\.(ya?ml|json)$/u;export function starterFiles(n,o,e,i){const a=t=>t.replaceAll("{{locale}}",e).replaceAll("{{name}}",i);return{files:Object.entries(n.files).map(([t,d])=>{const l=a(t),m=f.test(l)?JSON.stringify(o):o;return{path:l,text:d.replaceAll("{{locale}}",e).replaceAll("{{name}}",i).replaceAll("{{title}}",()=>m)}}),entry:a(n.entry)}}export function kindInfoIn(n,o,e){return o===void 0?{name:n??"file",noun:n??"file"}:{name:kindNameIn(o,e),noun:o.noun,...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.editor===void 0?{}:{editor:o.editor},...o.exports===void 0?{}:{exports:o.exports},...o.share===void 0?{}:{share:o.share}}}