@snaptrude/plugin-core 0.0.0-bimsvg-20260928124803

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 (383) hide show
  1. package/AGENTS.md +231 -0
  2. package/CHANGELOG.md +341 -0
  3. package/CLAUDE.md +11 -0
  4. package/api-manifest.json +9120 -0
  5. package/dist/api/analysis/daylight.d.ts +603 -0
  6. package/dist/api/analysis/daylight.d.ts.map +1 -0
  7. package/dist/api/analysis/heatmaps.d.ts +658 -0
  8. package/dist/api/analysis/heatmaps.d.ts.map +1 -0
  9. package/dist/api/analysis/illuminance.d.ts +145 -0
  10. package/dist/api/analysis/illuminance.d.ts.map +1 -0
  11. package/dist/api/analysis/index.d.ts +59 -0
  12. package/dist/api/analysis/index.d.ts.map +1 -0
  13. package/dist/api/analysis/shadows.d.ts +165 -0
  14. package/dist/api/analysis/shadows.d.ts.map +1 -0
  15. package/dist/api/analysis/solar.d.ts +249 -0
  16. package/dist/api/analysis/solar.d.ts.map +1 -0
  17. package/dist/api/analysis/sunlightHours.d.ts +208 -0
  18. package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
  19. package/dist/api/analysis/sunpath.d.ts +80 -0
  20. package/dist/api/analysis/sunpath.d.ts.map +1 -0
  21. package/dist/api/analysis/weather.d.ts +193 -0
  22. package/dist/api/analysis/weather.d.ts.map +1 -0
  23. package/dist/api/core/buildings.d.ts +427 -0
  24. package/dist/api/core/buildings.d.ts.map +1 -0
  25. package/dist/api/core/camera/index.d.ts +261 -0
  26. package/dist/api/core/camera/index.d.ts.map +1 -0
  27. package/dist/api/core/comment/index.d.ts +333 -0
  28. package/dist/api/core/comment/index.d.ts.map +1 -0
  29. package/dist/api/core/geom/create/index.d.ts +1073 -0
  30. package/dist/api/core/geom/create/index.d.ts.map +1 -0
  31. package/dist/api/core/geom/delete/index.d.ts +78 -0
  32. package/dist/api/core/geom/delete/index.d.ts.map +1 -0
  33. package/dist/api/core/geom/index.d.ts +33 -0
  34. package/dist/api/core/geom/index.d.ts.map +1 -0
  35. package/dist/api/core/geom/query/arc.d.ts +169 -0
  36. package/dist/api/core/geom/query/arc.d.ts.map +1 -0
  37. package/dist/api/core/geom/query/brep.d.ts +514 -0
  38. package/dist/api/core/geom/query/brep.d.ts.map +1 -0
  39. package/dist/api/core/geom/query/circle.d.ts +378 -0
  40. package/dist/api/core/geom/query/circle.d.ts.map +1 -0
  41. package/dist/api/core/geom/query/contour.d.ts +450 -0
  42. package/dist/api/core/geom/query/contour.d.ts.map +1 -0
  43. package/dist/api/core/geom/query/curve.d.ts +918 -0
  44. package/dist/api/core/geom/query/curve.d.ts.map +1 -0
  45. package/dist/api/core/geom/query/edge.d.ts +128 -0
  46. package/dist/api/core/geom/query/edge.d.ts.map +1 -0
  47. package/dist/api/core/geom/query/face.d.ts +363 -0
  48. package/dist/api/core/geom/query/face.d.ts.map +1 -0
  49. package/dist/api/core/geom/query/halfedge.d.ts +206 -0
  50. package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
  51. package/dist/api/core/geom/query/index.d.ts +61 -0
  52. package/dist/api/core/geom/query/index.d.ts.map +1 -0
  53. package/dist/api/core/geom/query/profile.d.ts +410 -0
  54. package/dist/api/core/geom/query/profile.d.ts.map +1 -0
  55. package/dist/api/core/geom/query/vertex.d.ts +187 -0
  56. package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
  57. package/dist/api/core/geom/update/contour.d.ts +272 -0
  58. package/dist/api/core/geom/update/contour.d.ts.map +1 -0
  59. package/dist/api/core/geom/update/curve.d.ts +180 -0
  60. package/dist/api/core/geom/update/curve.d.ts.map +1 -0
  61. package/dist/api/core/geom/update/index.d.ts +27 -0
  62. package/dist/api/core/geom/update/index.d.ts.map +1 -0
  63. package/dist/api/core/geom/update/profile.d.ts +329 -0
  64. package/dist/api/core/geom/update/profile.d.ts.map +1 -0
  65. package/dist/api/core/groups.d.ts +485 -0
  66. package/dist/api/core/groups.d.ts.map +1 -0
  67. package/dist/api/core/handles/index.d.ts +210 -0
  68. package/dist/api/core/handles/index.d.ts.map +1 -0
  69. package/dist/api/core/history/index.d.ts +78 -0
  70. package/dist/api/core/history/index.d.ts.map +1 -0
  71. package/dist/api/core/index.d.ts +97 -0
  72. package/dist/api/core/index.d.ts.map +1 -0
  73. package/dist/api/core/io/export/index.d.ts +134 -0
  74. package/dist/api/core/io/export/index.d.ts.map +1 -0
  75. package/dist/api/core/io/import/index.d.ts +455 -0
  76. package/dist/api/core/io/import/index.d.ts.map +1 -0
  77. package/dist/api/core/io/index.d.ts +40 -0
  78. package/dist/api/core/io/index.d.ts.map +1 -0
  79. package/dist/api/core/io/job/index.d.ts +139 -0
  80. package/dist/api/core/io/job/index.d.ts.map +1 -0
  81. package/dist/api/core/io/query/index.d.ts +74 -0
  82. package/dist/api/core/io/query/index.d.ts.map +1 -0
  83. package/dist/api/core/io/terrain/index.d.ts +341 -0
  84. package/dist/api/core/io/terrain/index.d.ts.map +1 -0
  85. package/dist/api/core/io/underlay/index.d.ts +805 -0
  86. package/dist/api/core/io/underlay/index.d.ts.map +1 -0
  87. package/dist/api/core/layers.d.ts +402 -0
  88. package/dist/api/core/layers.d.ts.map +1 -0
  89. package/dist/api/core/math/index.d.ts +18 -0
  90. package/dist/api/core/math/index.d.ts.map +1 -0
  91. package/dist/api/core/math/quat.d.ts +170 -0
  92. package/dist/api/core/math/quat.d.ts.map +1 -0
  93. package/dist/api/core/math/vec3.d.ts +174 -0
  94. package/dist/api/core/math/vec3.d.ts.map +1 -0
  95. package/dist/api/core/mode/index.d.ts +111 -0
  96. package/dist/api/core/mode/index.d.ts.map +1 -0
  97. package/dist/api/core/project/index.d.ts +466 -0
  98. package/dist/api/core/project/index.d.ts.map +1 -0
  99. package/dist/api/core/proposals/index.d.ts +531 -0
  100. package/dist/api/core/proposals/index.d.ts.map +1 -0
  101. package/dist/api/core/storeys/index.d.ts +265 -0
  102. package/dist/api/core/storeys/index.d.ts.map +1 -0
  103. package/dist/api/core/tags.d.ts +860 -0
  104. package/dist/api/core/tags.d.ts.map +1 -0
  105. package/dist/api/core/units/index.d.ts +175 -0
  106. package/dist/api/core/units/index.d.ts.map +1 -0
  107. package/dist/api/core/user.d.ts +44 -0
  108. package/dist/api/core/user.d.ts.map +1 -0
  109. package/dist/api/core/zoom/index.d.ts +49 -0
  110. package/dist/api/core/zoom/index.d.ts.map +1 -0
  111. package/dist/api/design/boolean/index.d.ts +168 -0
  112. package/dist/api/design/boolean/index.d.ts.map +1 -0
  113. package/dist/api/design/create/bulk-items.d.ts +185 -0
  114. package/dist/api/design/create/bulk-items.d.ts.map +1 -0
  115. package/dist/api/design/create/grids.d.ts +132 -0
  116. package/dist/api/design/create/grids.d.ts.map +1 -0
  117. package/dist/api/design/create/index.d.ts +1747 -0
  118. package/dist/api/design/create/index.d.ts.map +1 -0
  119. package/dist/api/design/create/opening-fields.d.ts +37 -0
  120. package/dist/api/design/create/opening-fields.d.ts.map +1 -0
  121. package/dist/api/design/delete/index.d.ts +70 -0
  122. package/dist/api/design/delete/index.d.ts.map +1 -0
  123. package/dist/api/design/dimensions.d.ts +427 -0
  124. package/dist/api/design/dimensions.d.ts.map +1 -0
  125. package/dist/api/design/doors/index.d.ts +470 -0
  126. package/dist/api/design/doors/index.d.ts.map +1 -0
  127. package/dist/api/design/edit/index.d.ts +49 -0
  128. package/dist/api/design/edit/index.d.ts.map +1 -0
  129. package/dist/api/design/erase/index.d.ts +160 -0
  130. package/dist/api/design/erase/index.d.ts.map +1 -0
  131. package/dist/api/design/family.d.ts +611 -0
  132. package/dist/api/design/family.d.ts.map +1 -0
  133. package/dist/api/design/furniture/index.d.ts +296 -0
  134. package/dist/api/design/furniture/index.d.ts.map +1 -0
  135. package/dist/api/design/grids.d.ts +237 -0
  136. package/dist/api/design/grids.d.ts.map +1 -0
  137. package/dist/api/design/index.d.ts +260 -0
  138. package/dist/api/design/index.d.ts.map +1 -0
  139. package/dist/api/design/lock.d.ts +67 -0
  140. package/dist/api/design/lock.d.ts.map +1 -0
  141. package/dist/api/design/materials/index.d.ts +551 -0
  142. package/dist/api/design/materials/index.d.ts.map +1 -0
  143. package/dist/api/design/query/geometry/index.d.ts +252 -0
  144. package/dist/api/design/query/geometry/index.d.ts.map +1 -0
  145. package/dist/api/design/query/grids.d.ts +287 -0
  146. package/dist/api/design/query/grids.d.ts.map +1 -0
  147. package/dist/api/design/query/index.d.ts +1318 -0
  148. package/dist/api/design/query/index.d.ts.map +1 -0
  149. package/dist/api/design/query/referenceLines.d.ts +45 -0
  150. package/dist/api/design/query/referenceLines.d.ts.map +1 -0
  151. package/dist/api/design/query/spaces.d.ts +394 -0
  152. package/dist/api/design/query/spaces.d.ts.map +1 -0
  153. package/dist/api/design/selection/index.d.ts +282 -0
  154. package/dist/api/design/selection/index.d.ts.map +1 -0
  155. package/dist/api/design/shared.d.ts +38 -0
  156. package/dist/api/design/shared.d.ts.map +1 -0
  157. package/dist/api/design/transform/index.d.ts +249 -0
  158. package/dist/api/design/transform/index.d.ts.map +1 -0
  159. package/dist/api/design/types/index.d.ts +181 -0
  160. package/dist/api/design/types/index.d.ts.map +1 -0
  161. package/dist/api/design/update/index.d.ts +803 -0
  162. package/dist/api/design/update/index.d.ts.map +1 -0
  163. package/dist/api/design/visibility.d.ts +126 -0
  164. package/dist/api/design/visibility.d.ts.map +1 -0
  165. package/dist/api/design/windows/index.d.ts +300 -0
  166. package/dist/api/design/windows/index.d.ts.map +1 -0
  167. package/dist/api/entity/buildableEnvelope.d.ts +265 -0
  168. package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
  169. package/dist/api/entity/department.d.ts +1 -0
  170. package/dist/api/entity/department.d.ts.map +1 -0
  171. package/dist/api/entity/index.d.ts +28 -0
  172. package/dist/api/entity/index.d.ts.map +1 -0
  173. package/dist/api/entity/referenceLine.d.ts +210 -0
  174. package/dist/api/entity/referenceLine.d.ts.map +1 -0
  175. package/dist/api/entity/space.d.ts +846 -0
  176. package/dist/api/entity/space.d.ts.map +1 -0
  177. package/dist/api/entity/story.d.ts +476 -0
  178. package/dist/api/entity/story.d.ts.map +1 -0
  179. package/dist/api/index.d.ts +45 -0
  180. package/dist/api/index.d.ts.map +1 -0
  181. package/dist/api/presentation/aiInspiration.d.ts +2400 -0
  182. package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
  183. package/dist/api/presentation/annotate.d.ts +483 -0
  184. package/dist/api/presentation/annotate.d.ts.map +1 -0
  185. package/dist/api/presentation/diagrams.d.ts +184 -0
  186. package/dist/api/presentation/diagrams.d.ts.map +1 -0
  187. package/dist/api/presentation/drawings.d.ts +2900 -0
  188. package/dist/api/presentation/drawings.d.ts.map +1 -0
  189. package/dist/api/presentation/export.d.ts +126 -0
  190. package/dist/api/presentation/export.d.ts.map +1 -0
  191. package/dist/api/presentation/import.d.ts +164 -0
  192. package/dist/api/presentation/import.d.ts.map +1 -0
  193. package/dist/api/presentation/index.d.ts +114 -0
  194. package/dist/api/presentation/index.d.ts.map +1 -0
  195. package/dist/api/presentation/placedViews.d.ts +1232 -0
  196. package/dist/api/presentation/placedViews.d.ts.map +1 -0
  197. package/dist/api/presentation/shapes.d.ts +481 -0
  198. package/dist/api/presentation/shapes.d.ts.map +1 -0
  199. package/dist/api/presentation/sheets.d.ts +643 -0
  200. package/dist/api/presentation/sheets.d.ts.map +1 -0
  201. package/dist/api/presentation/slideshow.d.ts +125 -0
  202. package/dist/api/presentation/slideshow.d.ts.map +1 -0
  203. package/dist/api/presentation/tables.d.ts +81 -0
  204. package/dist/api/presentation/tables.d.ts.map +1 -0
  205. package/dist/api/presentation/viewPresets.d.ts +70 -0
  206. package/dist/api/presentation/viewPresets.d.ts.map +1 -0
  207. package/dist/api/presentation/views.d.ts +741 -0
  208. package/dist/api/presentation/views.d.ts.map +1 -0
  209. package/dist/api/program/adjacency.d.ts +155 -0
  210. package/dist/api/program/adjacency.d.ts.map +1 -0
  211. package/dist/api/program/areas.d.ts +450 -0
  212. package/dist/api/program/areas.d.ts.map +1 -0
  213. package/dist/api/program/classification.d.ts +135 -0
  214. package/dist/api/program/classification.d.ts.map +1 -0
  215. package/dist/api/program/cores.d.ts +78 -0
  216. package/dist/api/program/cores.d.ts.map +1 -0
  217. package/dist/api/program/departments.d.ts +487 -0
  218. package/dist/api/program/departments.d.ts.map +1 -0
  219. package/dist/api/program/index.d.ts +71 -0
  220. package/dist/api/program/index.d.ts.map +1 -0
  221. package/dist/api/program/labels.d.ts +355 -0
  222. package/dist/api/program/labels.d.ts.map +1 -0
  223. package/dist/api/program/layout.d.ts +398 -0
  224. package/dist/api/program/layout.d.ts.map +1 -0
  225. package/dist/api/program/metadata.d.ts +328 -0
  226. package/dist/api/program/metadata.d.ts.map +1 -0
  227. package/dist/api/program/metrics.d.ts +108 -0
  228. package/dist/api/program/metrics.d.ts.map +1 -0
  229. package/dist/api/program/site.d.ts +823 -0
  230. package/dist/api/program/site.d.ts.map +1 -0
  231. package/dist/api/program/spreadsheet.d.ts +2628 -0
  232. package/dist/api/program/spreadsheet.d.ts.map +1 -0
  233. package/dist/api/workspace/index.d.ts +552 -0
  234. package/dist/api/workspace/index.d.ts.map +1 -0
  235. package/dist/errors/codes.d.ts +34 -0
  236. package/dist/errors/codes.d.ts.map +1 -0
  237. package/dist/errors/envelope.d.ts +56 -0
  238. package/dist/errors/envelope.d.ts.map +1 -0
  239. package/dist/errors/index.d.ts +6 -0
  240. package/dist/errors/index.d.ts.map +1 -0
  241. package/dist/errors/plugin-error.d.ts +69 -0
  242. package/dist/errors/plugin-error.d.ts.map +1 -0
  243. package/dist/handles.d.ts +229 -0
  244. package/dist/handles.d.ts.map +1 -0
  245. package/dist/host-utils.d.ts +47 -0
  246. package/dist/host-utils.d.ts.map +1 -0
  247. package/dist/index.cjs +8836 -0
  248. package/dist/index.cjs.map +1 -0
  249. package/dist/index.d.ts +6 -0
  250. package/dist/index.d.ts.map +1 -0
  251. package/dist/index.js +7568 -0
  252. package/dist/index.js.map +1 -0
  253. package/dist/types.d.ts +16 -0
  254. package/dist/types.d.ts.map +1 -0
  255. package/package.json +41 -0
  256. package/scripts/generate-manifest.mjs +238 -0
  257. package/scripts/generate-manifest.test.mjs +292 -0
  258. package/src/api/analysis/daylight.ts +470 -0
  259. package/src/api/analysis/heatmaps.ts +683 -0
  260. package/src/api/analysis/illuminance.ts +155 -0
  261. package/src/api/analysis/index.ts +61 -0
  262. package/src/api/analysis/shadows.ts +183 -0
  263. package/src/api/analysis/solar.ts +237 -0
  264. package/src/api/analysis/sunlightHours.ts +211 -0
  265. package/src/api/analysis/sunpath.ts +83 -0
  266. package/src/api/analysis/weather.ts +179 -0
  267. package/src/api/core/buildings.ts +485 -0
  268. package/src/api/core/camera/index.ts +268 -0
  269. package/src/api/core/comment/index.ts +376 -0
  270. package/src/api/core/geom/create/index.ts +1204 -0
  271. package/src/api/core/geom/delete/index.ts +84 -0
  272. package/src/api/core/geom/index.ts +35 -0
  273. package/src/api/core/geom/query/arc.ts +169 -0
  274. package/src/api/core/geom/query/brep.ts +563 -0
  275. package/src/api/core/geom/query/circle.ts +404 -0
  276. package/src/api/core/geom/query/contour.ts +540 -0
  277. package/src/api/core/geom/query/curve.ts +1078 -0
  278. package/src/api/core/geom/query/edge.ts +130 -0
  279. package/src/api/core/geom/query/face.ts +403 -0
  280. package/src/api/core/geom/query/halfedge.ts +210 -0
  281. package/src/api/core/geom/query/index.ts +63 -0
  282. package/src/api/core/geom/query/profile.ts +473 -0
  283. package/src/api/core/geom/query/vertex.ts +205 -0
  284. package/src/api/core/geom/update/contour.ts +315 -0
  285. package/src/api/core/geom/update/curve.ts +209 -0
  286. package/src/api/core/geom/update/index.ts +29 -0
  287. package/src/api/core/geom/update/profile.ts +377 -0
  288. package/src/api/core/groups.ts +521 -0
  289. package/src/api/core/handles/index.ts +233 -0
  290. package/src/api/core/history/index.ts +84 -0
  291. package/src/api/core/index.ts +99 -0
  292. package/src/api/core/io/export/index.ts +126 -0
  293. package/src/api/core/io/import/index.ts +504 -0
  294. package/src/api/core/io/index.ts +42 -0
  295. package/src/api/core/io/job/index.ts +140 -0
  296. package/src/api/core/io/query/index.ts +71 -0
  297. package/src/api/core/io/terrain/index.ts +360 -0
  298. package/src/api/core/io/underlay/index.ts +705 -0
  299. package/src/api/core/layers.ts +333 -0
  300. package/src/api/core/math/index.ts +20 -0
  301. package/src/api/core/math/quat.ts +172 -0
  302. package/src/api/core/math/vec3.ts +179 -0
  303. package/src/api/core/mode/index.ts +108 -0
  304. package/src/api/core/project/index.ts +479 -0
  305. package/src/api/core/proposals/index.ts +569 -0
  306. package/src/api/core/storeys/index.ts +294 -0
  307. package/src/api/core/tags.ts +911 -0
  308. package/src/api/core/units/index.ts +164 -0
  309. package/src/api/core/user.ts +46 -0
  310. package/src/api/core/zoom/index.ts +51 -0
  311. package/src/api/design/boolean/index.ts +179 -0
  312. package/src/api/design/create/bulk-items.ts +186 -0
  313. package/src/api/design/create/grids.ts +137 -0
  314. package/src/api/design/create/index.ts +1954 -0
  315. package/src/api/design/create/opening-fields.ts +37 -0
  316. package/src/api/design/delete/index.ts +74 -0
  317. package/src/api/design/dimensions.ts +453 -0
  318. package/src/api/design/doors/index.ts +500 -0
  319. package/src/api/design/edit/index.ts +54 -0
  320. package/src/api/design/erase/index.ts +151 -0
  321. package/src/api/design/family.ts +646 -0
  322. package/src/api/design/furniture/index.ts +319 -0
  323. package/src/api/design/grids.ts +237 -0
  324. package/src/api/design/index.ts +274 -0
  325. package/src/api/design/lock.ts +69 -0
  326. package/src/api/design/materials/index.ts +608 -0
  327. package/src/api/design/query/geometry/index.ts +288 -0
  328. package/src/api/design/query/grids.ts +197 -0
  329. package/src/api/design/query/index.ts +1176 -0
  330. package/src/api/design/query/referenceLines.ts +52 -0
  331. package/src/api/design/query/spaces.ts +275 -0
  332. package/src/api/design/selection/index.ts +273 -0
  333. package/src/api/design/shared.ts +40 -0
  334. package/src/api/design/transform/index.ts +254 -0
  335. package/src/api/design/types/index.ts +156 -0
  336. package/src/api/design/update/index.ts +798 -0
  337. package/src/api/design/visibility.ts +143 -0
  338. package/src/api/design/windows/index.ts +333 -0
  339. package/src/api/entity/buildableEnvelope.ts +322 -0
  340. package/src/api/entity/department.ts +0 -0
  341. package/src/api/entity/index.ts +30 -0
  342. package/src/api/entity/referenceLine.ts +235 -0
  343. package/src/api/entity/space.ts +612 -0
  344. package/src/api/entity/story.ts +517 -0
  345. package/src/api/index.ts +47 -0
  346. package/src/api/presentation/aiInspiration.ts +1116 -0
  347. package/src/api/presentation/annotate.ts +417 -0
  348. package/src/api/presentation/diagrams.ts +194 -0
  349. package/src/api/presentation/drawings.ts +529 -0
  350. package/src/api/presentation/export.ts +133 -0
  351. package/src/api/presentation/import.ts +159 -0
  352. package/src/api/presentation/index.ts +129 -0
  353. package/src/api/presentation/placedViews.ts +1203 -0
  354. package/src/api/presentation/shapes.ts +274 -0
  355. package/src/api/presentation/sheets.ts +616 -0
  356. package/src/api/presentation/slideshow.ts +134 -0
  357. package/src/api/presentation/tables.ts +84 -0
  358. package/src/api/presentation/viewPresets.ts +83 -0
  359. package/src/api/presentation/views.ts +698 -0
  360. package/src/api/program/adjacency.ts +164 -0
  361. package/src/api/program/areas.ts +408 -0
  362. package/src/api/program/classification.ts +138 -0
  363. package/src/api/program/cores.ts +83 -0
  364. package/src/api/program/departments.ts +517 -0
  365. package/src/api/program/index.ts +73 -0
  366. package/src/api/program/labels.ts +332 -0
  367. package/src/api/program/layout.ts +422 -0
  368. package/src/api/program/metadata.ts +364 -0
  369. package/src/api/program/metrics.ts +120 -0
  370. package/src/api/program/site.ts +748 -0
  371. package/src/api/program/spreadsheet.ts +2698 -0
  372. package/src/api/workspace/index.ts +612 -0
  373. package/src/errors/codes.ts +136 -0
  374. package/src/errors/envelope.ts +75 -0
  375. package/src/errors/index.ts +21 -0
  376. package/src/errors/plugin-error.ts +134 -0
  377. package/src/handles.ts +282 -0
  378. package/src/host-utils.ts +68 -0
  379. package/src/index.ts +5 -0
  380. package/src/types.ts +16 -0
  381. package/test/errors.test.mjs +184 -0
  382. package/tsconfig.json +22 -0
  383. package/tsup.config.ts +12 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spreadsheet.d.ts","sourceRoot":"","sources":["../../../src/api/program/spreadsheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAG7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,8BAAsB,2BAA2B;;IAG/C;;;OAGG;IACH,SAAgB,SAAS,EAAE,oCAAoC,CAAA;IAE/D;;;OAGG;IACH,SAAgB,QAAQ,EAAE,mCAAmC,CAAA;IAE7D;;;OAGG;IACH,SAAgB,QAAQ,EAAE,mCAAmC,CAAA;IAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;aACa,MAAM,CACpB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,uBAAuB,EAAE,EAClC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,EAAE,EAC7C,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,UAAU,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;QAChC,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAA;KAClC,GACA,eAAe,CAAC,oCAAoC,CAAC;IAExD;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;aACa,aAAa,CAAC,OAAO,CAAC,EAAE;QACtC,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,GAAG,eAAe,CAAC,oCAAoC,CAAC;IAEzD;;;;;;;;;;;;;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AC,KAAK,CAC9D,OAAO,0CAA0C,CAClD,CAAA;AAED,uGAAuG;AACvG,eAAO,MAAM,4CAA4C;;;;;;kBAChB,CAAA;AACzC,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAChE,OAAO,4CAA4C,CACpD,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8CAA8C;;;;;;;;iBAEzD,CAAA;AACF,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAClE,OAAO,8CAA8C,CACtD,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oCAAoC;;;;;iBAK/C,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uDAAuD;;;;;;;iBAElE,CAAA;AACF,MAAM,MAAM,uDAAuD,GAAG,CAAC,CAAC,KAAK,CAC3E,OAAO,uDAAuD,CAC/D,CAAA"}
@@ -0,0 +1,552 @@
1
+ import * as z from "zod";
2
+ import { PluginApiReturn } from "../../types";
3
+ /**
4
+ * `snaptrude.workspace.*` — the dashboard surface: projects and teams outside the
5
+ * open canvas.
6
+ *
7
+ * This namespace reads and creates the containers a design lives in — the
8
+ * project itself and the team it belongs to — mirroring the Snaptrude dashboard.
9
+ * Teams are **read-only** here (no create/invite/delete in v1, a deliberate
10
+ * safety decision); there are no folders in v1. A `projectId` is the project's
11
+ * floorkey. Plan limits are enforced by the backend — a limit rejection surfaces
12
+ * as a normal host error. It also carries the workspace-level mode switches for
13
+ * Present mode ({@linkcode PluginWorkspaceApi.openPresentMode} /
14
+ * {@linkcode PluginWorkspaceApi.closePresentMode}) and Program mode
15
+ * ({@linkcode PluginWorkspaceApi.openProgramMode} /
16
+ * {@linkcode PluginWorkspaceApi.closeProgramMode}).
17
+ *
18
+ * - {@linkcode PluginWorkspaceApi.projects} — Create, copy, list, read & rename projects
19
+ * - {@linkcode PluginWorkspaceApi.teams} — Read teams and their members
20
+ * - {@linkcode PluginWorkspaceApi.openPresentMode} / {@linkcode PluginWorkspaceApi.closePresentMode} — Open/close the Present-mode documentation editor
21
+ * - {@linkcode PluginWorkspaceApi.openProgramMode} / {@linkcode PluginWorkspaceApi.closeProgramMode} — Open/close the Program tab (the spreadsheet the `program.spreadsheet.*` calls run in)
22
+ */
23
+ export declare abstract class PluginWorkspaceApi {
24
+ /** Projects — create, copy, list, read & rename. See {@linkcode PluginWorkspaceProjectsApi}. */
25
+ abstract projects: PluginWorkspaceProjectsApi;
26
+ /** Teams — read teams and their members. See {@linkcode PluginWorkspaceTeamsApi}. */
27
+ abstract teams: PluginWorkspaceTeamsApi;
28
+ /**
29
+ * Open Present mode — the documentation editor the `presentation.*`
30
+ * namespaces operate on.
31
+ *
32
+ * Switches the workspace into Present mode and resolves only once the
33
+ * Present canvas has finished mounting (waits up to ~15s; a mount that
34
+ * never completes is refused with a typed `PRECONDITION_FAILED`), so a
35
+ * `presentation.*` call issued right after this resolves finds Present
36
+ * mode open. Idempotent — resolves immediately when Present mode is
37
+ * already open. Write-gated: switching the mode under the user's feet is
38
+ * approval-controlled by design.
39
+ *
40
+ * @throws `PRECONDITION_FAILED` if the Present canvas does not mount within
41
+ * the timeout.
42
+ *
43
+ * @examplePrompt Open present mode
44
+ * @examplePrompt Switch to the presentation editor
45
+ * @examplePrompt Open the sheets so I can lay out views
46
+ *
47
+ * # Example
48
+ * ```ts
49
+ * await snaptrude.workspace.openPresentMode()
50
+ * const { sheets } = await snaptrude.presentation.sheets.list()
51
+ * ```
52
+ */
53
+ abstract openPresentMode(): PluginApiReturn<void>;
54
+ /**
55
+ * Close Present mode and return to the modeling canvas.
56
+ *
57
+ * Idempotent — a no-op when Present mode is not open. Write-gated, like
58
+ * {@linkcode PluginWorkspaceApi.openPresentMode}.
59
+ *
60
+ * @examplePrompt Close present mode
61
+ * @examplePrompt Exit the presentation editor
62
+ * @examplePrompt Go back to the modeling canvas
63
+ *
64
+ * # Example
65
+ * ```ts
66
+ * await snaptrude.workspace.closePresentMode()
67
+ * ```
68
+ */
69
+ abstract closePresentMode(): PluginApiReturn<void>;
70
+ /**
71
+ * Open Program mode — the Program tab the `program.spreadsheet.*` calls run in.
72
+ *
73
+ * Runs the top bar's own Program-button sequence (remember the preference,
74
+ * open or re-link the paired Program window) and resolves only once that tab
75
+ * has connected to the editor over its channel, so a `program.spreadsheet.*`
76
+ * call issued right after this resolves finds the tab open. The open happens
77
+ * outside a user gesture, so the browser may block the pop-up; the editor
78
+ * then shows its "Allow pop-up to continue" modal and this call keeps waiting
79
+ * (up to ~90s) for the user to confirm. Idempotent — resolves immediately
80
+ * when the Program tab is already connected, and is a no-op when the plugin is
81
+ * itself running in the Program tab. Write-gated.
82
+ *
83
+ * @throws `PRECONDITION_FAILED` if the user dismisses the pop-up modal or the
84
+ * Program tab does not connect within the timeout.
85
+ *
86
+ * @examplePrompt Open program mode
87
+ * @examplePrompt Open the Program tab so I can build a custom sheet
88
+ * @examplePrompt Switch to the program spreadsheet
89
+ *
90
+ * # Example
91
+ * ```ts
92
+ * await snaptrude.workspace.openProgramMode()
93
+ * const { sheets } = await snaptrude.program.spreadsheet.listSheets()
94
+ * ```
95
+ */
96
+ abstract openProgramMode(): PluginApiReturn<void>;
97
+ /**
98
+ * Close the Program tab.
99
+ *
100
+ * Idempotent — a no-op when no Program tab is connected. Write-gated, like
101
+ * {@linkcode PluginWorkspaceApi.openProgramMode}.
102
+ *
103
+ * @throws `PRECONDITION_FAILED` if the tab is still connected after ~15s.
104
+ *
105
+ * @examplePrompt Close program mode
106
+ * @examplePrompt Close the Program tab
107
+ *
108
+ * # Example
109
+ * ```ts
110
+ * await snaptrude.workspace.closeProgramMode()
111
+ * ```
112
+ */
113
+ abstract closeProgramMode(): PluginApiReturn<void>;
114
+ constructor();
115
+ }
116
+ /**
117
+ * `workspace.projects.*` — create, copy, list, read & rename projects.
118
+ *
119
+ * A **project** is a single Snaptrude model, identified by its `projectId`
120
+ * (floorkey). Reads never throw for a miss ({@linkcode PluginWorkspaceProjectsApi.get}
121
+ * returns `null`). Create/copy/rename go through the backend, which enforces plan
122
+ * limits — a rejection surfaces as a normal host error.
123
+ *
124
+ * Accessed via `snaptrude.workspace.projects`.
125
+ */
126
+ export declare abstract class PluginWorkspaceProjectsApi {
127
+ constructor();
128
+ /**
129
+ * Create a new, empty BIM project.
130
+ *
131
+ * Creates the project on the backend and returns its `projectId` (floorkey).
132
+ * Pass `options.teamId` to create it inside a team (otherwise it lands in the
133
+ * user's personal workspace) and `options.unit` to set the default length unit.
134
+ *
135
+ * @param name - Display name of the new project.
136
+ * @param options - Optional `unit` (default length unit) and `teamId` (owning team).
137
+ * @returns The new project's `projectId`.
138
+ * @throws If the backend rejects the create (e.g. a plan project limit).
139
+ *
140
+ * @examplePrompt Create a new project called Tower Study
141
+ * @examplePrompt Start a new project in the Acme team
142
+ * @examplePrompt Make a fresh project using millimeters
143
+ * @examplePrompt Create an empty project for me to work in
144
+ *
145
+ * # Example
146
+ * ```ts
147
+ * const { projectId } = await snaptrude.workspace.projects.create("Tower Study", {
148
+ * teamId: "team_1",
149
+ * unit: "mm",
150
+ * })
151
+ * ```
152
+ */
153
+ abstract create(name: string, options?: {
154
+ unit?: string;
155
+ teamId?: string;
156
+ }): PluginApiReturn<PluginWorkspaceProjectsCreateResult>;
157
+ /**
158
+ * Copy the **current** project into a new project — the dashboard's "Save As".
159
+ *
160
+ * Duplicates the project that is currently open into a new project with the
161
+ * given name, and returns the new `projectId`. Pass `options.teamId` to place
162
+ * the copy in a specific team.
163
+ *
164
+ * @param name - Display name for the copy.
165
+ * @param options - Optional `teamId` (team to place the copy in).
166
+ * @returns The new project's `projectId`.
167
+ * @throws If the backend rejects the copy (e.g. a plan project limit).
168
+ *
169
+ * @examplePrompt Save this project as a new copy called Tower Study v2
170
+ * @examplePrompt Duplicate the current project into the Acme team
171
+ * @examplePrompt Make a copy of this project so I can try changes
172
+ *
173
+ * # Example
174
+ * ```ts
175
+ * const { projectId } = await snaptrude.workspace.projects.copy("Tower Study v2")
176
+ * ```
177
+ */
178
+ abstract copy(name: string, options?: {
179
+ teamId?: string;
180
+ }): PluginApiReturn<PluginWorkspaceProjectsCopyResult>;
181
+ /**
182
+ * List the projects the user can access.
183
+ *
184
+ * Returns a {@linkcode PluginProjectRef} per project. Pass `options.teamId` to
185
+ * scope the list to a single team; omit it for the user's accessible projects.
186
+ *
187
+ * @param options - Optional `teamId` filter.
188
+ * @returns A {@linkcode PluginWorkspaceProjectsListResult} with a `projects`
189
+ * array (empty when there are none).
190
+ *
191
+ * @examplePrompt List all my projects
192
+ * @examplePrompt Show the projects in the Acme team
193
+ * @examplePrompt How many projects do I have?
194
+ * @examplePrompt What projects can I open?
195
+ *
196
+ * # Example
197
+ * ```ts
198
+ * const { projects } = await snaptrude.workspace.projects.list({ teamId: "team_1" })
199
+ * for (const p of projects) console.log(p.id, p.name)
200
+ * ```
201
+ */
202
+ abstract list(options?: {
203
+ teamId?: string;
204
+ }): PluginApiReturn<PluginWorkspaceProjectsListResult>;
205
+ /**
206
+ * Get a single project by id.
207
+ *
208
+ * @param projectId - The project's `projectId` (floorkey).
209
+ * @returns The matching {@linkcode PluginProjectRef}, or `null` if no project
210
+ * has that id / the user cannot access it.
211
+ *
212
+ * @examplePrompt Get the project with this id
213
+ * @examplePrompt Look up a project by its floorkey
214
+ * @examplePrompt What is the name of this project?
215
+ *
216
+ * # Example
217
+ * ```ts
218
+ * const project = await snaptrude.workspace.projects.get("floorkey_123")
219
+ * if (project) console.log(project.name)
220
+ * ```
221
+ */
222
+ abstract get(projectId: string): PluginApiReturn<PluginWorkspaceProjectsGetResult>;
223
+ /**
224
+ * Rename a project.
225
+ *
226
+ * @param projectId - The project's `projectId` (floorkey).
227
+ * @param name - The project's new display name.
228
+ * @returns The renamed project's `projectId`.
229
+ * @throws If no project has the given id or the rename is rejected.
230
+ *
231
+ * @examplePrompt Rename this project to Tower Study Final
232
+ * @examplePrompt Change the name of project floorkey_123
233
+ * @examplePrompt Give this project a new name
234
+ *
235
+ * # Example
236
+ * ```ts
237
+ * const { projectId } = await snaptrude.workspace.projects.rename(
238
+ * "floorkey_123",
239
+ * "Tower Study Final",
240
+ * )
241
+ * ```
242
+ */
243
+ abstract rename(projectId: string, name: string): PluginApiReturn<PluginWorkspaceProjectsRenameResult>;
244
+ }
245
+ /**
246
+ * `workspace.teams.*` — read teams and their members.
247
+ *
248
+ * A **team** is a shared workspace that owns projects and members. **Read-only**
249
+ * in v1: there is no create/invite/delete (a deliberate safety decision). Reads
250
+ * never throw for a miss ({@linkcode PluginWorkspaceTeamsApi.get} returns `null`).
251
+ *
252
+ * Accessed via `snaptrude.workspace.teams`.
253
+ */
254
+ export declare abstract class PluginWorkspaceTeamsApi {
255
+ constructor();
256
+ /**
257
+ * List the teams the user belongs to.
258
+ *
259
+ * @returns A {@linkcode PluginWorkspaceTeamsListResult} with a `teams` array
260
+ * (empty when the user belongs to none).
261
+ *
262
+ * @examplePrompt List all my teams
263
+ * @examplePrompt Which teams am I a member of?
264
+ * @examplePrompt Show every team I can access
265
+ *
266
+ * # Example
267
+ * ```ts
268
+ * const { teams } = await snaptrude.workspace.teams.list()
269
+ * for (const t of teams) console.log(t.id, t.name)
270
+ * ```
271
+ */
272
+ abstract list(): PluginApiReturn<PluginWorkspaceTeamsListResult>;
273
+ /**
274
+ * Get a single team by id.
275
+ *
276
+ * @param teamId - The id of the team to read.
277
+ * @returns The matching {@linkcode PluginTeamRef}, or `null` if no team has that
278
+ * id / the user is not a member.
279
+ *
280
+ * @examplePrompt Get the team with id team_1
281
+ * @examplePrompt Look up a team by its id
282
+ * @examplePrompt What is the name of this team?
283
+ *
284
+ * # Example
285
+ * ```ts
286
+ * const team = await snaptrude.workspace.teams.get("team_1")
287
+ * if (team) console.log(team.name)
288
+ * ```
289
+ */
290
+ abstract get(teamId: string): PluginApiReturn<PluginWorkspaceTeamsGetResult>;
291
+ /**
292
+ * List the members of a team.
293
+ *
294
+ * @param teamId - The id of the team whose members to list.
295
+ * @returns A {@linkcode PluginWorkspaceTeamsListMembersResult} with a `members`
296
+ * array (empty when the team has none / is missing).
297
+ *
298
+ * @examplePrompt List the members of the Acme team
299
+ * @examplePrompt Who is on team_1?
300
+ * @examplePrompt How many people are in this team?
301
+ *
302
+ * # Example
303
+ * ```ts
304
+ * const { members } = await snaptrude.workspace.teams.listMembers("team_1")
305
+ * for (const m of members) console.log(m.name, m.email)
306
+ * ```
307
+ */
308
+ abstract listMembers(teamId: string): PluginApiReturn<PluginWorkspaceTeamsListMembersResult>;
309
+ }
310
+ /**
311
+ * A project reference — a conservative projection of a project, never the raw
312
+ * backend payload.
313
+ *
314
+ * | Property | Type | Description |
315
+ * |---|---|---|
316
+ * | `id` | `string` | The project's `projectId` (floorkey) |
317
+ * | `name` | `string` | Display name |
318
+ * | `teamId` | `string?` | Owning team id (absent for personal projects) |
319
+ * | `createdAt` | `string?` | Creation timestamp (ISO 8601) when known |
320
+ * | `modifiedAt` | `string?` | Last-modified timestamp (ISO 8601) when known |
321
+ */
322
+ export declare const PluginProjectRef: z.ZodObject<{
323
+ id: z.ZodString;
324
+ name: z.ZodString;
325
+ teamId: z.ZodOptional<z.ZodString>;
326
+ createdAt: z.ZodOptional<z.ZodString>;
327
+ modifiedAt: z.ZodOptional<z.ZodString>;
328
+ }, z.core.$strip>;
329
+ export type PluginProjectRef = z.infer<typeof PluginProjectRef>;
330
+ /**
331
+ * A team reference — a conservative projection of a team, never the raw backend
332
+ * payload.
333
+ *
334
+ * | Property | Type | Description |
335
+ * |---|---|---|
336
+ * | `id` | `string` | Stable team id |
337
+ * | `name` | `string` | Display name |
338
+ * | `role` | `string?` | The user's role in the team when known |
339
+ */
340
+ export declare const PluginTeamRef: z.ZodObject<{
341
+ id: z.ZodString;
342
+ name: z.ZodString;
343
+ role: z.ZodOptional<z.ZodString>;
344
+ }, z.core.$strip>;
345
+ export type PluginTeamRef = z.infer<typeof PluginTeamRef>;
346
+ /**
347
+ * A team member reference — a conservative projection of a member, never the raw
348
+ * backend payload.
349
+ *
350
+ * | Property | Type | Description |
351
+ * |---|---|---|
352
+ * | `id` | `string` | Stable user id |
353
+ * | `name` | `string` | Display name |
354
+ * | `email` | `string?` | Email address when known |
355
+ * | `role` | `string?` | The member's role in the team when known |
356
+ */
357
+ export declare const PluginTeamMemberRef: z.ZodObject<{
358
+ id: z.ZodString;
359
+ name: z.ZodString;
360
+ email: z.ZodOptional<z.ZodString>;
361
+ role: z.ZodOptional<z.ZodString>;
362
+ }, z.core.$strip>;
363
+ export type PluginTeamMemberRef = z.infer<typeof PluginTeamMemberRef>;
364
+ /**
365
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.create} (options flattened).
366
+ *
367
+ * | Property | Type | Description |
368
+ * |---|---|---|
369
+ * | `name` | `string` | Display name of the new project |
370
+ * | `unit` | `string?` | Default length unit |
371
+ * | `teamId` | `string?` | Owning team id (personal workspace if omitted) |
372
+ */
373
+ export declare const PluginWorkspaceProjectsCreateArgs: z.ZodObject<{
374
+ name: z.ZodString;
375
+ unit: z.ZodOptional<z.ZodString>;
376
+ teamId: z.ZodOptional<z.ZodString>;
377
+ }, z.core.$strip>;
378
+ export type PluginWorkspaceProjectsCreateArgs = z.infer<typeof PluginWorkspaceProjectsCreateArgs>;
379
+ /**
380
+ * Result of {@linkcode PluginWorkspaceProjectsApi.create}.
381
+ *
382
+ * | Property | Type | Description |
383
+ * |---|---|---|
384
+ * | `projectId` | `string` | The id (floorkey) of the created project |
385
+ */
386
+ export declare const PluginWorkspaceProjectsCreateResult: z.ZodObject<{
387
+ projectId: z.ZodString;
388
+ }, z.core.$strip>;
389
+ export type PluginWorkspaceProjectsCreateResult = z.infer<typeof PluginWorkspaceProjectsCreateResult>;
390
+ /**
391
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.copy} (options flattened).
392
+ *
393
+ * | Property | Type | Description |
394
+ * |---|---|---|
395
+ * | `name` | `string` | Display name for the copy |
396
+ * | `teamId` | `string?` | Team to place the copy in |
397
+ */
398
+ export declare const PluginWorkspaceProjectsCopyArgs: z.ZodObject<{
399
+ name: z.ZodString;
400
+ teamId: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strip>;
402
+ export type PluginWorkspaceProjectsCopyArgs = z.infer<typeof PluginWorkspaceProjectsCopyArgs>;
403
+ /**
404
+ * Result of {@linkcode PluginWorkspaceProjectsApi.copy}.
405
+ *
406
+ * | Property | Type | Description |
407
+ * |---|---|---|
408
+ * | `projectId` | `string` | The id (floorkey) of the copied project |
409
+ */
410
+ export declare const PluginWorkspaceProjectsCopyResult: z.ZodObject<{
411
+ projectId: z.ZodString;
412
+ }, z.core.$strip>;
413
+ export type PluginWorkspaceProjectsCopyResult = z.infer<typeof PluginWorkspaceProjectsCopyResult>;
414
+ /**
415
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.list} (options flattened).
416
+ *
417
+ * | Property | Type | Description |
418
+ * |---|---|---|
419
+ * | `teamId` | `string?` | Scope the list to this team; omit for all accessible projects |
420
+ */
421
+ export declare const PluginWorkspaceProjectsListArgs: z.ZodObject<{
422
+ teamId: z.ZodOptional<z.ZodString>;
423
+ }, z.core.$strip>;
424
+ export type PluginWorkspaceProjectsListArgs = z.infer<typeof PluginWorkspaceProjectsListArgs>;
425
+ /**
426
+ * Result of {@linkcode PluginWorkspaceProjectsApi.list}.
427
+ *
428
+ * | Property | Type | Description |
429
+ * |---|---|---|
430
+ * | `projects` | {@linkcode PluginProjectRef}`[]` | Accessible projects (empty when none) |
431
+ */
432
+ export declare const PluginWorkspaceProjectsListResult: z.ZodObject<{
433
+ projects: z.ZodArray<z.ZodObject<{
434
+ id: z.ZodString;
435
+ name: z.ZodString;
436
+ teamId: z.ZodOptional<z.ZodString>;
437
+ createdAt: z.ZodOptional<z.ZodString>;
438
+ modifiedAt: z.ZodOptional<z.ZodString>;
439
+ }, z.core.$strip>>;
440
+ }, z.core.$strip>;
441
+ export type PluginWorkspaceProjectsListResult = z.infer<typeof PluginWorkspaceProjectsListResult>;
442
+ /**
443
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.get}.
444
+ *
445
+ * | Property | Type | Description |
446
+ * |---|---|---|
447
+ * | `projectId` | `string` | The project's `projectId` (floorkey) |
448
+ */
449
+ export declare const PluginWorkspaceProjectsGetArgs: z.ZodObject<{
450
+ projectId: z.ZodString;
451
+ }, z.core.$strip>;
452
+ export type PluginWorkspaceProjectsGetArgs = z.infer<typeof PluginWorkspaceProjectsGetArgs>;
453
+ /**
454
+ * Result of {@linkcode PluginWorkspaceProjectsApi.get} — the project, or `null`
455
+ * when no project has the given id.
456
+ */
457
+ export declare const PluginWorkspaceProjectsGetResult: z.ZodNullable<z.ZodObject<{
458
+ id: z.ZodString;
459
+ name: z.ZodString;
460
+ teamId: z.ZodOptional<z.ZodString>;
461
+ createdAt: z.ZodOptional<z.ZodString>;
462
+ modifiedAt: z.ZodOptional<z.ZodString>;
463
+ }, z.core.$strip>>;
464
+ export type PluginWorkspaceProjectsGetResult = z.infer<typeof PluginWorkspaceProjectsGetResult>;
465
+ /**
466
+ * Arguments for {@linkcode PluginWorkspaceProjectsApi.rename}.
467
+ *
468
+ * | Property | Type | Description |
469
+ * |---|---|---|
470
+ * | `projectId` | `string` | The project's `projectId` (floorkey) |
471
+ * | `name` | `string` | The project's new display name |
472
+ */
473
+ export declare const PluginWorkspaceProjectsRenameArgs: z.ZodObject<{
474
+ projectId: z.ZodString;
475
+ name: z.ZodString;
476
+ }, z.core.$strip>;
477
+ export type PluginWorkspaceProjectsRenameArgs = z.infer<typeof PluginWorkspaceProjectsRenameArgs>;
478
+ /**
479
+ * Result of {@linkcode PluginWorkspaceProjectsApi.rename}.
480
+ *
481
+ * | Property | Type | Description |
482
+ * |---|---|---|
483
+ * | `projectId` | `string` | The id (floorkey) of the renamed project |
484
+ */
485
+ export declare const PluginWorkspaceProjectsRenameResult: z.ZodObject<{
486
+ projectId: z.ZodString;
487
+ }, z.core.$strip>;
488
+ export type PluginWorkspaceProjectsRenameResult = z.infer<typeof PluginWorkspaceProjectsRenameResult>;
489
+ /**
490
+ * Result of {@linkcode PluginWorkspaceTeamsApi.list}.
491
+ *
492
+ * | Property | Type | Description |
493
+ * |---|---|---|
494
+ * | `teams` | {@linkcode PluginTeamRef}`[]` | The user's teams (empty when none) |
495
+ */
496
+ export declare const PluginWorkspaceTeamsListResult: z.ZodObject<{
497
+ teams: z.ZodArray<z.ZodObject<{
498
+ id: z.ZodString;
499
+ name: z.ZodString;
500
+ role: z.ZodOptional<z.ZodString>;
501
+ }, z.core.$strip>>;
502
+ }, z.core.$strip>;
503
+ export type PluginWorkspaceTeamsListResult = z.infer<typeof PluginWorkspaceTeamsListResult>;
504
+ /**
505
+ * Arguments for {@linkcode PluginWorkspaceTeamsApi.get}.
506
+ *
507
+ * | Property | Type | Description |
508
+ * |---|---|---|
509
+ * | `teamId` | `string` | The id of the team to read |
510
+ */
511
+ export declare const PluginWorkspaceTeamsGetArgs: z.ZodObject<{
512
+ teamId: z.ZodString;
513
+ }, z.core.$strip>;
514
+ export type PluginWorkspaceTeamsGetArgs = z.infer<typeof PluginWorkspaceTeamsGetArgs>;
515
+ /**
516
+ * Result of {@linkcode PluginWorkspaceTeamsApi.get} — the team, or `null` when no
517
+ * team has the given id.
518
+ */
519
+ export declare const PluginWorkspaceTeamsGetResult: z.ZodNullable<z.ZodObject<{
520
+ id: z.ZodString;
521
+ name: z.ZodString;
522
+ role: z.ZodOptional<z.ZodString>;
523
+ }, z.core.$strip>>;
524
+ export type PluginWorkspaceTeamsGetResult = z.infer<typeof PluginWorkspaceTeamsGetResult>;
525
+ /**
526
+ * Arguments for {@linkcode PluginWorkspaceTeamsApi.listMembers}.
527
+ *
528
+ * | Property | Type | Description |
529
+ * |---|---|---|
530
+ * | `teamId` | `string` | The id of the team whose members to list |
531
+ */
532
+ export declare const PluginWorkspaceTeamsListMembersArgs: z.ZodObject<{
533
+ teamId: z.ZodString;
534
+ }, z.core.$strip>;
535
+ export type PluginWorkspaceTeamsListMembersArgs = z.infer<typeof PluginWorkspaceTeamsListMembersArgs>;
536
+ /**
537
+ * Result of {@linkcode PluginWorkspaceTeamsApi.listMembers}.
538
+ *
539
+ * | Property | Type | Description |
540
+ * |---|---|---|
541
+ * | `members` | {@linkcode PluginTeamMemberRef}`[]` | The team's members (empty when none) |
542
+ */
543
+ export declare const PluginWorkspaceTeamsListMembersResult: z.ZodObject<{
544
+ members: z.ZodArray<z.ZodObject<{
545
+ id: z.ZodString;
546
+ name: z.ZodString;
547
+ email: z.ZodOptional<z.ZodString>;
548
+ role: z.ZodOptional<z.ZodString>;
549
+ }, z.core.$strip>>;
550
+ }, z.core.$strip>;
551
+ export type PluginWorkspaceTeamsListMembersResult = z.infer<typeof PluginWorkspaceTeamsListMembersResult>;
552
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/workspace/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,8BAAsB,kBAAkB;IACtC,gGAAgG;IAChG,SAAgB,QAAQ,EAAE,0BAA0B,CAAA;IACpD,qFAAqF;IACrF,SAAgB,KAAK,EAAE,uBAAuB,CAAA;IAE9C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;aACa,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC;IAExD;;;;;;;;;;;;;;OAcG;aACa,gBAAgB,IAAI,eAAe,CAAC,IAAI,CAAC;IAEzD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;aACa,eAAe,IAAI,eAAe,CAAC,IAAI,CAAC;IAExD;;;;;;;;;;;;;;;OAeG;aACa,gBAAgB,IAAI,eAAe,CAAC,IAAI,CAAC;;CAG1D;AAED;;;;;;;;;GASG;AACH,8BAAsB,0BAA0B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* The closed error-code registry — the single source of truth for every error
3
+ * that crosses the plugin wire (host → worker) or is minted client-side.
4
+ *
5
+ * APPEND-ONLY: codes are a published contract; never rename or remove one.
6
+ * Handle-resolution failures deliberately collapse to ONE code
7
+ * (`HANDLE_INVALID`) so error responses cannot be used as an existence /
8
+ * ownership oracle (PLUGIN_HANDLE_MIGRATION_HLD §6). `HANDLE_KIND_MISMATCH`
9
+ * stays distinct because the kind is information the caller already holds.
10
+ */
11
+ export declare const PLUGIN_ERROR_CODES: readonly ["VALIDATION", "INVALID_RPC_FORMAT", "METHOD_NOT_FOUND", "METHOD_NOT_PERMITTED", "HANDLE_INVALID", "HANDLE_KIND_MISMATCH", "RESOURCE_QUOTA_EXCEEDED", "RATE_LIMITED", "PRECONDITION_FAILED", "OPERATION_FAILED", "TIMEOUT", "CALL_TIMEOUT", "TRANSPORT_LOST", "PLUGIN_NOT_READY", "PLUGIN_TERMINATED", "RESULT_NOT_SERIALIZABLE", "RESULT_TOO_LARGE", "BATCH_PARTIAL", "STORY_UPDATE_FAILED", "STORY_HEIGHT_REJECTED", "NO_ACTIVE_STRUCTURE", "NO_ELIGIBLE_ELEMENTS", "PROPOSAL_SWITCH_BLOCKED", "INTERNAL", "UNKNOWN"];
12
+ export type PluginErrorCode = (typeof PLUGIN_ERROR_CODES)[number];
13
+ /**
14
+ * A known code, or a string outside the union — a plugin built against an
15
+ * older SDK may receive codes a newer host appended. Keeps autocomplete for
16
+ * known codes while staying open on the wire (forward compatibility).
17
+ */
18
+ export type WirePluginErrorCode = PluginErrorCode | (string & {});
19
+ export type PluginErrorCategory = "validation" | "not_found" | "permission" | "handle" | "quota" | "timeout" | "transport" | "lifecycle" | "execution" | "internal";
20
+ /**
21
+ * Client-side metadata for a code. NOT carried on the wire — every field is a
22
+ * pure function of the code, and this table ships inside plugin-core, so both
23
+ * endpoints derive it locally.
24
+ */
25
+ export interface CodeMeta {
26
+ /** Family of the code; picks the `PluginError` sugar subclass. */
27
+ category: PluginErrorCategory;
28
+ /** Fallback `hint` when the throw site provides none. */
29
+ hintTemplate?: string;
30
+ }
31
+ export declare const CODE_META: Record<PluginErrorCode, CodeMeta>;
32
+ /** Narrow an arbitrary string to a member of the closed code union. */
33
+ export declare function isPluginErrorCode(value: string): value is PluginErrorCode;
34
+ //# sourceMappingURL=codes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codes.d.ts","sourceRoot":"","sources":["../../src/errors/codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,kgBA0BrB,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,eAAe,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAEjE,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,CAAA;AAEd;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,kEAAkE;IAClE,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,yDAAyD;IACzD,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,eAAe,EAAE,QAAQ,CA2DvD,CAAA;AAED,uEAAuE;AACvE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEzE"}