@allyhub/sdk 0.5.0 → 0.7.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 (262) hide show
  1. package/dist/define.d.ts +4 -0
  2. package/dist/define.js +1 -1
  3. package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +1 -1
  4. package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
  5. package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +4 -0
  6. package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
  7. package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
  8. package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
  9. package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
  10. package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
  11. package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
  12. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
  13. package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
  14. package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
  15. package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
  16. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +248 -18
  17. package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
  18. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +1114 -91
  19. package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
  20. package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
  21. package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
  22. package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +4 -0
  23. package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
  24. package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
  25. package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
  26. package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
  27. package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
  28. package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +625 -30
  29. package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
  30. package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
  31. package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
  32. package/dist/node_modules/@allyhub-next/formats/dist/zip.d.ts +17 -0
  33. package/dist/node_modules/@allyhub-next/formats/dist/zip.js +2 -0
  34. package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
  35. package/dist/node_modules/@allyhub-next/ooxml/LICENSE +241 -0
  36. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
  37. package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
  38. package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
  39. package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
  40. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
  41. package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
  42. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
  43. package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
  44. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
  45. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
  46. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
  47. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
  48. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
  49. package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
  50. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
  51. package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
  52. package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
  53. package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
  54. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
  55. package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
  56. package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
  57. package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
  58. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
  59. package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
  60. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
  61. package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
  62. package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
  63. package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
  64. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
  65. package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
  66. package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
  67. package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
  68. package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
  69. package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
  70. package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
  71. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
  72. package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
  73. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
  74. package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
  75. package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +89 -5
  76. package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
  77. package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
  78. package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
  79. package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
  80. package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +23 -0
  81. package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
  82. package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
  83. package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
  84. package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
  85. package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
  86. package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
  87. package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
  88. package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
  89. package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
  90. package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
  91. package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
  92. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
  93. package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
  94. package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
  95. package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
  96. package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
  97. package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
  98. package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
  99. package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
  100. package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
  101. package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
  102. package/dist/node_modules/@allyhub-next/sheet/dist/api/capabilities.js +1 -1
  103. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.d.ts +1 -0
  104. package/dist/node_modules/@allyhub-next/sheet/dist/api/index.js +1 -1
  105. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.d.ts +83 -0
  106. package/dist/node_modules/@allyhub-next/sheet/dist/api/page.js +2 -0
  107. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.d.ts +40 -1
  108. package/dist/node_modules/@allyhub-next/sheet/dist/api/workbook.js +1 -1
  109. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
  110. package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
  111. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
  112. package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
  113. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
  114. package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
  115. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
  116. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
  117. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
  118. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
  119. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
  120. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
  121. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
  122. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
  123. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
  124. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
  125. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
  126. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
  127. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
  128. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
  129. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
  130. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
  131. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
  132. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
  133. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
  134. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
  135. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
  136. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
  137. package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
  138. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
  139. package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
  140. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
  141. package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
  142. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
  143. package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
  144. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
  145. package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
  146. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
  147. package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
  148. package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
  149. package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
  150. package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
  151. package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
  152. package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
  153. package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
  154. package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
  155. package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
  156. package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
  157. package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
  158. package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
  159. package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
  160. package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
  161. package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
  162. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
  163. package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
  164. package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
  165. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
  166. package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
  167. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
  168. package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
  169. package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
  170. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
  171. package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
  172. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +12 -1
  173. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
  174. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
  175. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
  176. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
  177. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
  178. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +6 -1
  179. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
  180. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +44 -2
  181. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
  182. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
  183. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
  184. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
  185. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
  186. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
  187. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
  188. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
  189. package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
  190. package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
  191. package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
  192. package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +121 -44
  193. package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
  194. package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
  195. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +50 -13
  196. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
  197. package/dist/node_modules/@allyhub-next/slides-core/dist/chart-file.js +1 -1
  198. package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
  199. package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
  200. package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
  201. package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
  202. package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
  203. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +188 -5
  204. package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
  205. package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
  206. package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
  207. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
  208. package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
  209. package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -0
  210. package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
  211. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
  212. package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
  213. package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
  214. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
  215. package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
  216. package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +38 -4
  217. package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +27 -1
  218. package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
  219. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +26 -5
  220. package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
  221. package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
  222. package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
  223. package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
  224. package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
  225. package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
  226. package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
  227. package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
  228. package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
  229. package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
  230. package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
  231. package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
  232. package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
  233. package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
  234. package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
  235. package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
  236. package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
  237. package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
  238. package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
  239. package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
  240. package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
  241. package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
  242. package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
  243. package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
  244. package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
  245. package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
  246. package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
  247. package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
  248. package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
  249. package/dist/sheets.d.ts +1 -1
  250. package/dist/sheets.js +1 -1
  251. package/dist/slides.d.ts +3 -1
  252. package/dist/slides.js +1 -1
  253. package/docs/README.md +1 -0
  254. package/docs/contract.md +1 -1
  255. package/docs/defaults.md +25 -2
  256. package/docs/layers.md +1 -1
  257. package/docs/project.md +3 -1
  258. package/docs/sheets.md +29 -3
  259. package/docs/slides.md +18 -14
  260. package/docs/sound.md +1 -1
  261. package/docs/websites.md +57 -0
  262. package/package.json +3 -1
@@ -5,7 +5,7 @@ export declare const RegistryFileSchema: z.ZodObject<{
5
5
  target: z.ZodString;
6
6
  sha256: z.ZodString;
7
7
  content: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strict>;
8
+ }, z.core.$strip>;
9
9
  /**
10
10
  * A CC0 asset an item uses, fetched from its library when the item is
11
11
  * added (never re-hosted): a Poly Haven model, HDRI or texture, at a
@@ -16,7 +16,7 @@ export declare const RegistryAssetSchema: z.ZodObject<{
16
16
  id: z.ZodString;
17
17
  resolution: z.ZodOptional<z.ZodString>;
18
18
  maps: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
- }, z.core.$strict>;
19
+ }, z.core.$strip>;
20
20
  export type RegistryAsset = z.infer<typeof RegistryAssetSchema>;
21
21
  /**
22
22
  * A scenery's baked light, made once on the CPU and laid by every
@@ -30,14 +30,14 @@ export declare const RegistryBakeSchema: z.ZodObject<{
30
30
  sha256: z.ZodString;
31
31
  size: z.ZodNumber;
32
32
  url: z.ZodURL;
33
- }, z.core.$strict>;
33
+ }, z.core.$strip>;
34
34
  export type RegistryBake = z.infer<typeof RegistryBakeSchema>;
35
35
  /** A skill's card in one language: its name, its line, what the composer starts with. */
36
36
  export declare const SkillCardWordsSchema: z.ZodObject<{
37
37
  title: z.ZodString;
38
38
  description: z.ZodString;
39
39
  prompt: z.ZodOptional<z.ZodString>;
40
- }, z.core.$strict>;
40
+ }, z.core.$strip>;
41
41
  export type SkillCardWords = z.infer<typeof SkillCardWordsSchema>;
42
42
  /**
43
43
  * What Studio shows of a skill it offers (a skill's `agents/` card files):
@@ -45,24 +45,20 @@ export type SkillCardWords = z.infer<typeof SkillCardWordsSchema>;
45
45
  * they are written in, by locale; a field a language leaves out is English.
46
46
  */
47
47
  export declare const SkillCardSchema: z.ZodObject<{
48
- category: z.ZodEnum<{
49
- video: "video";
50
- writing: "writing";
51
- research: "research";
52
- }>;
48
+ category: z.ZodString;
53
49
  order: z.ZodNumber;
54
50
  cover: z.ZodOptional<z.ZodString>;
55
51
  words: z.ZodObject<{
56
52
  title: z.ZodString;
57
53
  description: z.ZodString;
58
54
  prompt: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strict>;
55
+ }, z.core.$strip>;
60
56
  languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
61
57
  title: z.ZodOptional<z.ZodString>;
62
58
  description: z.ZodOptional<z.ZodString>;
63
59
  prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
64
- }, z.core.$strict>>>;
65
- }, z.core.$strict>;
60
+ }, z.core.$strip>>>;
61
+ }, z.core.$strip>;
66
62
  export type SkillCard = z.infer<typeof SkillCardSchema>;
67
63
  export declare const RegistryItemSchema: z.ZodObject<{
68
64
  $schema: z.ZodOptional<z.ZodString>;
@@ -86,13 +82,13 @@ export declare const RegistryItemSchema: z.ZodObject<{
86
82
  target: z.ZodString;
87
83
  sha256: z.ZodString;
88
84
  content: z.ZodOptional<z.ZodString>;
89
- }, z.core.$strict>>;
85
+ }, z.core.$strip>>;
90
86
  assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
91
87
  source: z.ZodLiteral<"polyhaven">;
92
88
  id: z.ZodString;
93
89
  resolution: z.ZodOptional<z.ZodString>;
94
90
  maps: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
- }, z.core.$strict>>>;
91
+ }, z.core.$strip>>>;
96
92
  bakes: z.ZodDefault<z.ZodArray<z.ZodObject<{
97
93
  scenery: z.ZodString;
98
94
  digest: z.ZodString;
@@ -100,72 +96,90 @@ export declare const RegistryItemSchema: z.ZodObject<{
100
96
  sha256: z.ZodString;
101
97
  size: z.ZodNumber;
102
98
  url: z.ZodURL;
103
- }, z.core.$strict>>>;
99
+ }, z.core.$strip>>>;
104
100
  categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
105
101
  preview: z.ZodOptional<z.ZodString>;
106
102
  version: z.ZodOptional<z.ZodString>;
107
103
  card: z.ZodOptional<z.ZodObject<{
108
- category: z.ZodEnum<{
109
- video: "video";
110
- writing: "writing";
111
- research: "research";
112
- }>;
104
+ category: z.ZodString;
113
105
  order: z.ZodNumber;
114
106
  cover: z.ZodOptional<z.ZodString>;
115
107
  words: z.ZodObject<{
116
108
  title: z.ZodString;
117
109
  description: z.ZodString;
118
110
  prompt: z.ZodOptional<z.ZodString>;
119
- }, z.core.$strict>;
111
+ }, z.core.$strip>;
120
112
  languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
121
113
  title: z.ZodOptional<z.ZodString>;
122
114
  description: z.ZodOptional<z.ZodString>;
123
115
  prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
124
- }, z.core.$strict>>>;
125
- }, z.core.$strict>>;
126
- }, z.core.$strict>;
116
+ }, z.core.$strip>>>;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>;
127
119
  export type RegistryItem = z.infer<typeof RegistryItemSchema>;
128
120
  /** An item as its file is written: what the schema fills in (`assets`, `bakes`) may be left out. */
129
121
  export type RegistryItemInput = z.input<typeof RegistryItemSchema>;
122
+ /** An item as the index lists it. */
123
+ export declare const RegistryIndexEntrySchema: z.ZodObject<{
124
+ type: z.ZodEnum<{
125
+ "allyhub:component": "allyhub:component";
126
+ "allyhub:template": "allyhub:template";
127
+ "allyhub:scenery": "allyhub:scenery";
128
+ "allyhub:model": "allyhub:model";
129
+ "allyhub:skill": "allyhub:skill";
130
+ "allyhub:lib": "allyhub:lib";
131
+ }>;
132
+ name: z.ZodString;
133
+ version: z.ZodOptional<z.ZodString>;
134
+ card: z.ZodOptional<z.ZodObject<{
135
+ category: z.ZodString;
136
+ order: z.ZodNumber;
137
+ cover: z.ZodOptional<z.ZodString>;
138
+ words: z.ZodObject<{
139
+ title: z.ZodString;
140
+ description: z.ZodString;
141
+ prompt: z.ZodOptional<z.ZodString>;
142
+ }, z.core.$strip>;
143
+ languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
144
+ title: z.ZodOptional<z.ZodString>;
145
+ description: z.ZodOptional<z.ZodString>;
146
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
147
+ }, z.core.$strip>>>;
148
+ }, z.core.$strip>>;
149
+ title: z.ZodString;
150
+ description: z.ZodString;
151
+ categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
152
+ preview: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>;
154
+ export type RegistryIndexEntry = z.infer<typeof RegistryIndexEntrySchema>;
130
155
  export declare const RegistryIndexSchema: z.ZodObject<{
131
156
  $schema: z.ZodOptional<z.ZodString>;
132
157
  name: z.ZodString;
133
158
  homepage: z.ZodOptional<z.ZodURL>;
134
- items: z.ZodArray<z.ZodObject<{
135
- type: z.ZodEnum<{
136
- "allyhub:component": "allyhub:component";
137
- "allyhub:template": "allyhub:template";
138
- "allyhub:scenery": "allyhub:scenery";
139
- "allyhub:model": "allyhub:model";
140
- "allyhub:skill": "allyhub:skill";
141
- "allyhub:lib": "allyhub:lib";
142
- }>;
143
- name: z.ZodString;
144
- title: z.ZodString;
145
- description: z.ZodString;
146
- version: z.ZodOptional<z.ZodString>;
147
- categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
148
- preview: z.ZodOptional<z.ZodString>;
149
- card: z.ZodOptional<z.ZodObject<{
150
- category: z.ZodEnum<{
151
- video: "video";
152
- writing: "writing";
153
- research: "research";
159
+ items: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
160
+ type: "allyhub:component" | "allyhub:template" | "allyhub:scenery" | "allyhub:model" | "allyhub:skill" | "allyhub:lib";
161
+ name: string;
162
+ title: string;
163
+ description: string;
164
+ categories: string[];
165
+ version?: string | undefined;
166
+ card?: {
167
+ category: string;
168
+ order: number;
169
+ words: {
170
+ title: string;
171
+ description: string;
172
+ prompt?: string | undefined;
173
+ };
174
+ languages: Record<string, {
175
+ title?: string | undefined;
176
+ description?: string | undefined;
177
+ prompt?: string | undefined;
154
178
  }>;
155
- order: z.ZodNumber;
156
- cover: z.ZodOptional<z.ZodString>;
157
- words: z.ZodObject<{
158
- title: z.ZodString;
159
- description: z.ZodString;
160
- prompt: z.ZodOptional<z.ZodString>;
161
- }, z.core.$strict>;
162
- languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
163
- title: z.ZodOptional<z.ZodString>;
164
- description: z.ZodOptional<z.ZodString>;
165
- prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
166
- }, z.core.$strict>>>;
167
- }, z.core.$strict>>;
168
- }, z.core.$strict>>;
169
- }, z.core.$strict>;
179
+ cover?: string | undefined;
180
+ } | undefined;
181
+ preview?: string | undefined;
182
+ }[], unknown[]>>;
183
+ }, z.core.$strip>;
170
184
  export type RegistryIndex = z.infer<typeof RegistryIndexSchema>;
171
185
  //# sourceMappingURL=registry.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 t}from"zod";export const REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill","allyhub:lib"];const e=t.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=t.strictObject({path:t.string().min(1),target:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),content:t.string().optional()}),RegistryAssetSchema=t.strictObject({source:t.literal("polyhaven"),id:t.string().min(1),resolution:t.string().min(1).optional(),maps:t.array(t.string().min(1)).optional()}),RegistryBakeSchema=t.strictObject({scenery:t.string().min(1),digest:t.string().regex(/^[0-9a-f]+$/u),renderer:t.string().min(1),sha256:t.string().regex(/^[0-9a-f]{64}$/u),size:t.number().int().positive(),url:t.url()}),SkillCardWordsSchema=t.strictObject({title:t.string().min(1),description:t.string().min(1),prompt:t.string().min(1).optional()}),SkillCardSchema=t.strictObject({category:t.enum(["video","writing","research"]),order:t.number().int().positive(),cover:t.string().optional(),words:SkillCardWordsSchema,languages:t.record(t.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=t.strictObject({$schema:t.string().optional(),name:e,type:t.enum(REGISTRY_TYPES),title:t.string().min(1),description:t.string().min(1),author:t.string().optional(),license:t.string().min(1),dependencies:t.array(t.string()).default([]),registryDependencies:t.array(e).default([]),files:t.array(RegistryFileSchema).min(1),assets:t.array(RegistryAssetSchema).default([]),bakes:t.array(RegistryBakeSchema).default([]),categories:t.array(t.string()).default([]),preview:t.string().optional(),version:t.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexSchema=t.strictObject({$schema:t.string().optional(),name:t.string().min(1),homepage:t.url().optional(),items:t.array(RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}))});
2
+ import{z as e}from"zod";import{readable as r}from"./open.js";export const REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill","allyhub:lib"];const t=e.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=e.object({path:e.string().min(1),target:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),content:e.string().optional()}),RegistryAssetSchema=e.object({source:e.literal("polyhaven"),id:e.string().min(1),resolution:e.string().min(1).optional(),maps:e.array(e.string().min(1)).optional()}),RegistryBakeSchema=e.object({scenery:e.string().min(1),digest:e.string().regex(/^[0-9a-f]+$/u),renderer:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),size:e.number().int().positive(),url:e.url()}),SkillCardWordsSchema=e.object({title:e.string().min(1),description:e.string().min(1),prompt:e.string().min(1).optional()}),SkillCardSchema=e.object({category:e.string().min(1),order:e.number().int().positive(),cover:e.string().optional(),words:SkillCardWordsSchema,languages:e.record(e.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=e.object({$schema:e.string().optional(),name:t,type:e.enum(REGISTRY_TYPES),title:e.string().min(1),description:e.string().min(1),author:e.string().optional(),license:e.string().min(1),dependencies:e.array(e.string()).default([]),registryDependencies:e.array(t).default([]),files:e.array(RegistryFileSchema).min(1),assets:e.array(RegistryAssetSchema).default([]),bakes:e.array(RegistryBakeSchema).default([]),categories:e.array(e.string()).default([]),preview:e.string().optional(),version:e.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexEntrySchema=RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}),RegistryIndexSchema=e.object({$schema:e.string().optional(),name:e.string().min(1),homepage:e.url().optional(),items:r(RegistryIndexEntrySchema)});
@@ -1,5 +1,5 @@
1
1
  export interface ClientRoute {
2
- method: "GET" | "POST" | "PUT" | "DELETE";
2
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3
3
  path: string;
4
4
  }
5
5
  export declare const CLIENT_ROUTES: readonly ClientRoute[];
@@ -1,2 +1,2 @@
1
1
  /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
- import{ACCOUNT_DELETE_PATH as d,ACCOUNT_EXPORT_PATH as m,ACCOUNT_PATH as _,BROWSER_LINK_PATH as O,DEVICES_PATH as o,METADATA_PATH as r}from"./auth.js";import{AUTO_TOP_UP_PATH as e,BILLING_CHECKOUT_PATH as L,BILLING_PLANS_PATH as S,BILLING_PORTAL_PATH as G,BILLING_SUMMARY_PATH as H,BILLING_USAGE_PATH as I,CATALOG_PATH as i,FILES_PATH as T,LLM_MESSAGES_PATH as N,LLM_MODELS_PATH as n}from"./cloud.js";import{MEMBERS_PATH as E,ORGANIZATIONS_PATH as p,ORGANIZATION_PATH as U,STUDIO_OPEN_PATH as s,STUDIO_PATH as a,STUDIO_WAKE_PATH as C}from"./teams.js";export const CLIENT_ROUTES=[{method:"GET",path:r},{method:"GET",path:_},{method:"GET",path:m},{method:"POST",path:d},{method:"GET",path:o},{method:"DELETE",path:`${o}/:id`},{method:"POST",path:O},{method:"GET",path:S},{method:"GET",path:H},{method:"GET",path:I},{method:"POST",path:L},{method:"POST",path:G},{method:"PUT",path:e},{method:"DELETE",path:e},{method:"GET",path:n},{method:"POST",path:N},{method:"GET",path:i},{method:"POST",path:"/api/tools/:name/calls"},{method:"GET",path:"/api/calls/:id"},{method:"POST",path:T},{method:"POST",path:`${T}/:id/done`},{method:"GET",path:`${T}/:id/content`},{method:"GET",path:p},{method:"POST",path:`${p}/:id/restore`},{method:"DELETE",path:U},{method:"GET",path:E},{method:"PUT",path:`${E}/:userId/limit`},{method:"GET",path:a},{method:"DELETE",path:a},{method:"POST",path:s},{method:"PUT",path:C}],probePath=t=>t.path.replace(/:[A-Za-z]+/gu,"probe");export function routeMissing(t,A,P){if(A!==404)return!1;const h=P.error;return h?.code==="not_found"&&h.message===`There is no ${t.method} ${probePath(t)}.`}
2
+ import{ACCOUNT_CALLS as P}from"./account.js";import{ACCOUNT_PATH as S,BROWSER_LINK_PATH as i,METADATA_PATH as r}from"./auth.js";import{CATALOG_PATH as A,FILES_PATH as e,LLM_MESSAGES_PATH as O,LLM_MODELS_PATH as _}from"./cloud.js";import{SHARES_PATH as o}from"./shares.js";import{PROJECTS_PATH as T,SNAPSHOTS_PATH as d,SNAPSHOT_BLOBS_PATH as H}from"./snapshots.js";import{SITES_PATH as t}from"./sites.js";import{ORGANIZATIONS_PATH as n,STUDIO_OPEN_PATH as s,STUDIO_PATH as m,STUDIO_TICKET_PATH as L,STUDIO_WAKE_PATH as G}from"./teams.js";export const CLIENT_ROUTES=[{method:"GET",path:r},{method:"GET",path:S},{method:"POST",path:i},{method:"GET",path:_},{method:"POST",path:O},{method:"GET",path:A},{method:"POST",path:"/api/tools/:name/calls"},{method:"GET",path:"/api/calls/:id"},{method:"POST",path:e},{method:"POST",path:`${e}/:id/done`},{method:"GET",path:`${e}/:id/content`},{method:"GET",path:n},{method:"GET",path:m},{method:"DELETE",path:m},{method:"POST",path:s},{method:"POST",path:L},{method:"PUT",path:G},{method:"POST",path:H},{method:"POST",path:d},{method:"POST",path:`${d}/:id/view`},{method:"GET",path:T},{method:"DELETE",path:`${T}/:id`},{method:"PUT",path:`${T}/:id/executor`},{method:"POST",path:o},{method:"GET",path:o},{method:"PATCH",path:`${o}/:id`},{method:"DELETE",path:`${o}/:id`},{method:"GET",path:"/api/s/:token"},{method:"POST",path:"/api/s/:token/report"},...Object.values(P).map(h=>({method:h.http,path:h.route})),{method:"GET",path:t},{method:"POST",path:t},{method:"GET",path:`${t}/:id`},{method:"DELETE",path:`${t}/:id`},{method:"POST",path:`${t}/:id/deployments`},{method:"POST",path:`${t}/:id/blobs`},{method:"PUT",path:`${t}/:id/live`},{method:"DELETE",path:`${t}/:id/live`},{method:"PUT",path:`${t}/:id/settings`}],probePath=h=>h.path.replace(/:[A-Za-z]+/gu,"probe");export function routeMissing(h,a,E){if(a!==404)return!1;const p=E.error;return p?.code==="not_found"&&p.message===`There is no ${h.method} ${probePath(h)}.`}
@@ -0,0 +1,115 @@
1
+ import { z } from "zod";
2
+ export declare const SHARE_AUDIENCES: readonly ["anyone", "organization"];
3
+ export type ShareAudience = (typeof SHARE_AUDIENCES)[number];
4
+ /** What can be shared alone: what a person reads, watches or pages through. */
5
+ export declare const SHARED_KINDS: readonly ["video", "slides", "doc", "sheet"];
6
+ export declare const SHARE_STATES: readonly ["shared", "revoked", "taken-down"];
7
+ /** A share, as its organization's members see it. */
8
+ export declare const ShareSchema: z.ZodObject<{
9
+ id: z.ZodString;
10
+ projectId: z.ZodString;
11
+ item: z.ZodString;
12
+ audience: z.ZodUnion<readonly [z.ZodEnum<{
13
+ organization: "organization";
14
+ anyone: "anyone";
15
+ }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
16
+ state: z.ZodUnion<readonly [z.ZodEnum<{
17
+ shared: "shared";
18
+ revoked: "revoked";
19
+ "taken-down": "taken-down";
20
+ }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
21
+ url: z.ZodURL;
22
+ createdAt: z.ZodISODateTime;
23
+ reason: z.ZodOptional<z.ZodString>;
24
+ }, z.core.$strip>;
25
+ export type Share = z.infer<typeof ShareSchema>;
26
+ /** `POST { projectId, item, audience }` (a member, or the project's executor): a share made, answered as a `Share`. `GET ?projectId=`: the project's shares. */
27
+ export declare const SHARES_PATH = "/api/shares";
28
+ export declare const ShareCreateSchema: z.ZodObject<{
29
+ projectId: z.ZodString;
30
+ item: z.ZodString;
31
+ audience: z.ZodEnum<{
32
+ organization: "organization";
33
+ anyone: "anyone";
34
+ }>;
35
+ }, z.core.$strict>;
36
+ export type ShareCreate = z.infer<typeof ShareCreateSchema>;
37
+ export declare const SharesResponseSchema: z.ZodObject<{
38
+ shares: z.ZodArray<z.ZodObject<{
39
+ id: z.ZodString;
40
+ projectId: z.ZodString;
41
+ item: z.ZodString;
42
+ audience: z.ZodUnion<readonly [z.ZodEnum<{
43
+ organization: "organization";
44
+ anyone: "anyone";
45
+ }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
46
+ state: z.ZodUnion<readonly [z.ZodEnum<{
47
+ shared: "shared";
48
+ revoked: "revoked";
49
+ "taken-down": "taken-down";
50
+ }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
51
+ url: z.ZodURL;
52
+ createdAt: z.ZodISODateTime;
53
+ reason: z.ZodOptional<z.ZodString>;
54
+ }, z.core.$strip>>;
55
+ }, z.core.$strip>;
56
+ /** `PATCH { audience }`: its audience changed; `DELETE`: revoked. */
57
+ export declare const sharePath: (id: string) => string;
58
+ /** Where a share is seen: the viewer's page on the app's origin. */
59
+ export declare const shareLink: (app: string, token: string) => string;
60
+ /**
61
+ * `GET`, anyone's (a signed-in member's for the organization's audience):
62
+ * what a share shows now, with a read view of the item's latest snapshot.
63
+ * 404 for a token that is not a share or was revoked, 410 when taken down
64
+ * (`TakenDownSchema`), 401 when it is the organization's and the viewer is not
65
+ * signed in, 403 when signed in elsewhere.
66
+ */
67
+ export declare const sharedPath: (token: string) => string;
68
+ export declare const SharedSchema: z.ZodObject<{
69
+ project: z.ZodString;
70
+ item: z.ZodObject<{
71
+ dir: z.ZodString;
72
+ kind: z.ZodUnion<readonly [z.ZodEnum<{
73
+ video: "video";
74
+ slides: "slides";
75
+ doc: "doc";
76
+ sheet: "sheet";
77
+ }>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
78
+ name: z.ZodString;
79
+ }, z.core.$strip>;
80
+ view: z.ZodObject<{
81
+ origin: z.ZodURL;
82
+ expiresAt: z.ZodISODateTime;
83
+ }, z.core.$strip>;
84
+ madeAt: z.ZodISODateTime;
85
+ }, z.core.$strip>;
86
+ export type Shared = z.infer<typeof SharedSchema>;
87
+ /** A taken-down share's 410: the server's error envelope, staff's reason in its `data`. */
88
+ export declare const TakenDownSchema: z.ZodObject<{
89
+ error: z.ZodObject<{
90
+ code: z.ZodLiteral<"gone">;
91
+ data: z.ZodObject<{
92
+ reason: z.ZodString;
93
+ }, z.core.$strip>;
94
+ }, z.core.$strip>;
95
+ }, z.core.$strip>;
96
+ export type TakenDown = z.infer<typeof TakenDownSchema>;
97
+ /** `POST { reason, details, email? }`, anyone's: a share reported to staff. */
98
+ export declare const shareReportPath: (token: string) => string;
99
+ export declare const SHARE_REPORT_REASONS: readonly ["phishing", "malware", "sexual", "violence", "hate", "copyright", "privacy", "other"];
100
+ export declare const ShareReportSchema: z.ZodObject<{
101
+ reason: z.ZodEnum<{
102
+ other: "other";
103
+ phishing: "phishing";
104
+ malware: "malware";
105
+ sexual: "sexual";
106
+ violence: "violence";
107
+ hate: "hate";
108
+ copyright: "copyright";
109
+ privacy: "privacy";
110
+ }>;
111
+ details: z.ZodString;
112
+ email: z.ZodOptional<z.ZodEmail>;
113
+ }, z.core.$strict>;
114
+ export type ShareReport = z.infer<typeof ShareReportSchema>;
115
+ //# sourceMappingURL=shares.d.ts.map
@@ -0,0 +1,2 @@
1
+ /*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
2
+ import{z as e}from"zod";import{openEnum as o}from"./open.js";import{SnapshotViewSchema as n}from"./snapshots.js";export const SHARE_AUDIENCES=["anyone","organization"],SHARED_KINDS=["video","slides","doc","sheet"],SHARE_STATES=["shared","revoked","taken-down"],ShareSchema=e.object({id:e.string().min(1),projectId:e.string().min(1),item:e.string(),audience:o(SHARE_AUDIENCES),state:o(SHARE_STATES),url:e.url(),createdAt:e.iso.datetime(),reason:e.string().optional()}),SHARES_PATH="/api/shares",ShareCreateSchema=e.strictObject({projectId:e.string().min(1),item:e.string(),audience:e.enum(SHARE_AUDIENCES)}),SharesResponseSchema=e.object({shares:e.array(ShareSchema)}),sharePath=t=>`${SHARES_PATH}/${encodeURIComponent(t)}`,shareLink=(t,r)=>`${t.replace(/\/+$/u,"")}/s/${encodeURIComponent(r)}`,sharedPath=t=>`/api/s/${encodeURIComponent(t)}`,SharedSchema=e.object({project:e.string(),item:e.object({dir:e.string(),kind:o(SHARED_KINDS),name:e.string()}),view:n,madeAt:e.iso.datetime()}),TakenDownSchema=e.object({error:e.object({code:e.literal("gone"),data:e.object({reason:e.string()})})}),shareReportPath=t=>`${sharedPath(t)}/report`,SHARE_REPORT_REASONS=["phishing","malware","sexual","violence","hate","copyright","privacy","other"],ShareReportSchema=e.strictObject({reason:e.enum(SHARE_REPORT_REASONS),details:e.string().max(2e3),email:e.email().optional()});