@fuzdev/fuz_app 0.149.0 → 0.151.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 (650) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/CLAUDE.md +327 -300
  3. package/dist/actions/action_bridge.d.ts +5 -79
  4. package/dist/actions/action_bridge.d.ts.map +1 -1
  5. package/dist/actions/action_bridge.js +4 -74
  6. package/dist/actions/action_codegen.d.ts +8 -166
  7. package/dist/actions/action_codegen.d.ts.map +1 -1
  8. package/dist/actions/action_codegen.js +19 -95
  9. package/dist/actions/action_dispatcher.d.ts +10 -0
  10. package/dist/actions/action_dispatcher.d.ts.map +1 -1
  11. package/dist/actions/action_dispatcher.js +9 -6
  12. package/dist/actions/action_event.d.ts +1 -2
  13. package/dist/actions/action_event.d.ts.map +1 -1
  14. package/dist/actions/action_event.js +7 -13
  15. package/dist/actions/action_event_helpers.d.ts +1 -40
  16. package/dist/actions/action_event_helpers.d.ts.map +1 -1
  17. package/dist/actions/action_event_helpers.js +1 -25
  18. package/dist/actions/action_event_types.d.ts +1 -1
  19. package/dist/actions/action_event_types.d.ts.map +1 -1
  20. package/dist/actions/action_rpc.d.ts +10 -215
  21. package/dist/actions/action_rpc.d.ts.map +1 -1
  22. package/dist/actions/action_rpc.js +56 -111
  23. package/dist/actions/action_spec.d.ts +2 -2
  24. package/dist/actions/action_spec.js +2 -2
  25. package/dist/actions/action_types.d.ts +229 -8
  26. package/dist/actions/action_types.d.ts.map +1 -1
  27. package/dist/actions/action_types.js +56 -5
  28. package/dist/actions/broadcast_api.d.ts +22 -17
  29. package/dist/actions/broadcast_api.d.ts.map +1 -1
  30. package/dist/actions/broadcast_api.js +16 -27
  31. package/dist/actions/cancel.d.ts +4 -13
  32. package/dist/actions/cancel.d.ts.map +1 -1
  33. package/dist/actions/cancel.js +5 -17
  34. package/dist/actions/compile_action_registry.d.ts +1 -2
  35. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  36. package/dist/actions/connection_closer.d.ts +120 -50
  37. package/dist/actions/connection_closer.d.ts.map +1 -1
  38. package/dist/actions/connection_closer.js +139 -31
  39. package/dist/actions/{transports_ws_backend.d.ts → connection_registry.d.ts} +120 -132
  40. package/dist/actions/connection_registry.d.ts.map +1 -0
  41. package/dist/actions/{transports_ws_backend.js → connection_registry.js} +149 -152
  42. package/dist/actions/frontend_rpc_client.d.ts +52 -2
  43. package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
  44. package/dist/actions/frontend_rpc_client.js +42 -4
  45. package/dist/actions/peer_ping.d.ts +7 -9
  46. package/dist/actions/peer_ping.d.ts.map +1 -1
  47. package/dist/actions/peer_ping.js +6 -8
  48. package/dist/actions/peer_request.d.ts +6 -5
  49. package/dist/actions/peer_request.d.ts.map +1 -1
  50. package/dist/actions/peer_request.js +6 -5
  51. package/dist/actions/perform_action.d.ts +36 -28
  52. package/dist/actions/perform_action.d.ts.map +1 -1
  53. package/dist/actions/perform_action.js +60 -31
  54. package/dist/actions/protocol.d.ts +14 -0
  55. package/dist/actions/protocol.d.ts.map +1 -1
  56. package/dist/actions/protocol.js +18 -0
  57. package/dist/actions/register_action_ws.d.ts +137 -292
  58. package/dist/actions/register_action_ws.d.ts.map +1 -1
  59. package/dist/actions/register_action_ws.js +155 -903
  60. package/dist/actions/socket.svelte.d.ts +9 -0
  61. package/dist/actions/socket.svelte.d.ts.map +1 -1
  62. package/dist/actions/socket.svelte.js +16 -5
  63. package/dist/actions/transports.d.ts +88 -34
  64. package/dist/actions/transports.d.ts.map +1 -1
  65. package/dist/actions/transports.js +76 -76
  66. package/dist/actions/transports_http.d.ts +48 -12
  67. package/dist/actions/transports_http.d.ts.map +1 -1
  68. package/dist/actions/transports_http.js +75 -44
  69. package/dist/actions/transports_ws.d.ts +29 -0
  70. package/dist/actions/transports_ws.d.ts.map +1 -1
  71. package/dist/actions/transports_ws.js +34 -8
  72. package/dist/actions/ws_endpoint_spec.d.ts +53 -76
  73. package/dist/actions/ws_endpoint_spec.d.ts.map +1 -1
  74. package/dist/actions/ws_endpoint_spec.js +27 -10
  75. package/dist/actions/ws_outbound_writer.d.ts +3 -3
  76. package/dist/actions/ws_outbound_writer.js +3 -3
  77. package/dist/actions/ws_socket_session.d.ts +321 -0
  78. package/dist/actions/ws_socket_session.d.ts.map +1 -0
  79. package/dist/actions/ws_socket_session.js +783 -0
  80. package/dist/auth/CLAUDE.md +132 -68
  81. package/dist/auth/account_action_specs.d.ts +2 -0
  82. package/dist/auth/account_action_specs.d.ts.map +1 -1
  83. package/dist/auth/account_actions.d.ts +1 -1
  84. package/dist/auth/account_actions.d.ts.map +1 -1
  85. package/dist/auth/account_actions.js +9 -3
  86. package/dist/auth/account_queries.d.ts +10 -0
  87. package/dist/auth/account_queries.d.ts.map +1 -1
  88. package/dist/auth/account_queries.js +27 -17
  89. package/dist/auth/account_routes.d.ts +2 -1
  90. package/dist/auth/account_routes.d.ts.map +1 -1
  91. package/dist/auth/account_routes.js +14 -17
  92. package/dist/auth/account_schema.d.ts +5 -5
  93. package/dist/auth/account_schema.d.ts.map +1 -1
  94. package/dist/auth/account_schema.js +5 -2
  95. package/dist/auth/actor_lookup_actions.d.ts +1 -1
  96. package/dist/auth/actor_lookup_actions.d.ts.map +1 -1
  97. package/dist/auth/actor_lookup_actions.js +1 -1
  98. package/dist/auth/actor_lookup_queries.d.ts +3 -2
  99. package/dist/auth/actor_lookup_queries.d.ts.map +1 -1
  100. package/dist/auth/actor_lookup_queries.js +6 -3
  101. package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
  102. package/dist/auth/actor_search_action_specs.js +2 -1
  103. package/dist/auth/actor_search_actions.d.ts +1 -1
  104. package/dist/auth/actor_search_actions.d.ts.map +1 -1
  105. package/dist/auth/actor_search_actions.js +1 -1
  106. package/dist/auth/actor_search_queries.d.ts +10 -7
  107. package/dist/auth/actor_search_queries.d.ts.map +1 -1
  108. package/dist/auth/actor_search_queries.js +18 -11
  109. package/dist/auth/admin_action_specs.d.ts +4 -4
  110. package/dist/auth/admin_action_specs.d.ts.map +1 -1
  111. package/dist/auth/admin_action_specs.js +7 -5
  112. package/dist/auth/admin_actions.d.ts +1 -1
  113. package/dist/auth/admin_actions.d.ts.map +1 -1
  114. package/dist/auth/admin_actions.js +47 -48
  115. package/dist/auth/all_cell_actions.d.ts +14 -3
  116. package/dist/auth/all_cell_actions.d.ts.map +1 -1
  117. package/dist/auth/all_cell_actions.js +2 -1
  118. package/dist/auth/api_token_queries.d.ts +1 -0
  119. package/dist/auth/api_token_queries.d.ts.map +1 -1
  120. package/dist/auth/api_token_queries.js +1 -0
  121. package/dist/auth/audit_emitter.d.ts +12 -6
  122. package/dist/auth/audit_emitter.d.ts.map +1 -1
  123. package/dist/auth/audit_emitter.js +11 -5
  124. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  125. package/dist/auth/audit_log_route_schema.js +3 -2
  126. package/dist/auth/audit_log_routes.d.ts +20 -11
  127. package/dist/auth/audit_log_routes.d.ts.map +1 -1
  128. package/dist/auth/audit_log_routes.js +49 -29
  129. package/dist/auth/audit_log_schema.d.ts +14 -21
  130. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  131. package/dist/auth/audit_log_schema.js +19 -23
  132. package/dist/auth/bearer_auth.d.ts +7 -4
  133. package/dist/auth/bearer_auth.d.ts.map +1 -1
  134. package/dist/auth/bearer_auth.js +21 -15
  135. package/dist/auth/bootstrap_account.d.ts +25 -1
  136. package/dist/auth/bootstrap_account.d.ts.map +1 -1
  137. package/dist/auth/bootstrap_account.js +37 -4
  138. package/dist/auth/bootstrap_routes.d.ts +3 -2
  139. package/dist/auth/bootstrap_routes.d.ts.map +1 -1
  140. package/dist/auth/bootstrap_routes.js +5 -4
  141. package/dist/auth/cell_action_helpers.d.ts +89 -0
  142. package/dist/auth/cell_action_helpers.d.ts.map +1 -0
  143. package/dist/auth/cell_action_helpers.js +113 -0
  144. package/dist/auth/cell_action_specs.d.ts +215 -15
  145. package/dist/auth/cell_action_specs.d.ts.map +1 -1
  146. package/dist/auth/cell_action_specs.js +103 -16
  147. package/dist/auth/cell_actions.d.ts +58 -27
  148. package/dist/auth/cell_actions.d.ts.map +1 -1
  149. package/dist/auth/cell_actions.js +206 -161
  150. package/dist/auth/cell_audit_actions.d.ts +1 -1
  151. package/dist/auth/cell_audit_actions.d.ts.map +1 -1
  152. package/dist/auth/cell_audit_actions.js +3 -12
  153. package/dist/auth/cell_audit_events.d.ts +1 -1
  154. package/dist/auth/cell_audit_events.d.ts.map +1 -1
  155. package/dist/auth/cell_audit_events.js +3 -2
  156. package/dist/auth/cell_audit_metadata.d.ts +12 -1
  157. package/dist/auth/cell_audit_metadata.d.ts.map +1 -1
  158. package/dist/auth/cell_audit_metadata.js +11 -1
  159. package/dist/auth/cell_field_actions.d.ts +1 -1
  160. package/dist/auth/cell_field_actions.d.ts.map +1 -1
  161. package/dist/auth/cell_field_actions.js +16 -66
  162. package/dist/auth/cell_grant_action_specs.d.ts +9 -2
  163. package/dist/auth/cell_grant_action_specs.d.ts.map +1 -1
  164. package/dist/auth/cell_grant_action_specs.js +10 -3
  165. package/dist/auth/cell_grant_actions.d.ts +105 -11
  166. package/dist/auth/cell_grant_actions.d.ts.map +1 -1
  167. package/dist/auth/cell_grant_actions.js +81 -56
  168. package/dist/auth/cell_grant_audit_metadata.d.ts +6 -3
  169. package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -1
  170. package/dist/auth/cell_grant_audit_metadata.js +7 -4
  171. package/dist/auth/cell_item_actions.d.ts +1 -1
  172. package/dist/auth/cell_item_actions.d.ts.map +1 -1
  173. package/dist/auth/cell_item_actions.js +21 -82
  174. package/dist/auth/cleanup.d.ts +1 -1
  175. package/dist/auth/cleanup.d.ts.map +1 -1
  176. package/dist/auth/cleanup.js +6 -3
  177. package/dist/auth/credential_deadline.d.ts +3 -3
  178. package/dist/auth/credential_deadline.js +3 -3
  179. package/dist/auth/credential_type_schema.d.ts +8 -7
  180. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  181. package/dist/auth/credential_type_schema.js +8 -7
  182. package/dist/auth/daemon_token_middleware.d.ts +12 -6
  183. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  184. package/dist/auth/daemon_token_middleware.js +28 -17
  185. package/dist/auth/deps.d.ts +4 -4
  186. package/dist/auth/fail_floor.d.ts +55 -0
  187. package/dist/auth/fail_floor.d.ts.map +1 -0
  188. package/dist/auth/fail_floor.js +63 -0
  189. package/dist/auth/invite_queries.d.ts +3 -15
  190. package/dist/auth/invite_queries.d.ts.map +1 -1
  191. package/dist/auth/invite_queries.js +3 -21
  192. package/dist/auth/middleware.d.ts +12 -7
  193. package/dist/auth/middleware.d.ts.map +1 -1
  194. package/dist/auth/middleware.js +42 -29
  195. package/dist/auth/migrations.d.ts +5 -33
  196. package/dist/auth/migrations.d.ts.map +1 -1
  197. package/dist/auth/migrations.js +9 -16
  198. package/dist/auth/request_context.d.ts +101 -71
  199. package/dist/auth/request_context.d.ts.map +1 -1
  200. package/dist/auth/request_context.js +137 -140
  201. package/dist/auth/resolved_auth.d.ts +122 -36
  202. package/dist/auth/resolved_auth.d.ts.map +1 -1
  203. package/dist/auth/resolved_auth.js +89 -38
  204. package/dist/auth/role_grant_offer_action_specs.d.ts +117 -16
  205. package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
  206. package/dist/auth/role_grant_offer_action_specs.js +51 -16
  207. package/dist/auth/role_grant_offer_actions.d.ts +22 -11
  208. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  209. package/dist/auth/role_grant_offer_actions.js +72 -19
  210. package/dist/auth/role_grant_offer_notifications.d.ts +6 -5
  211. package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
  212. package/dist/auth/role_grant_offer_notifications.js +4 -3
  213. package/dist/auth/role_grant_offer_queries.d.ts +20 -5
  214. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  215. package/dist/auth/role_grant_offer_queries.js +40 -37
  216. package/dist/auth/role_grant_queries.d.ts +44 -76
  217. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  218. package/dist/auth/role_grant_queries.js +73 -118
  219. package/dist/auth/role_grant_sql.d.ts +42 -0
  220. package/dist/auth/role_grant_sql.d.ts.map +1 -0
  221. package/dist/auth/role_grant_sql.js +54 -0
  222. package/dist/auth/role_schema.d.ts +14 -8
  223. package/dist/auth/role_schema.d.ts.map +1 -1
  224. package/dist/auth/role_schema.js +6 -3
  225. package/dist/auth/scope_kind_schema.d.ts +1 -1
  226. package/dist/auth/scope_kind_schema.js +1 -1
  227. package/dist/auth/self_service_role_actions.d.ts +1 -1
  228. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  229. package/dist/auth/self_service_role_actions.js +21 -1
  230. package/dist/auth/session_queries.d.ts +2 -1
  231. package/dist/auth/session_queries.d.ts.map +1 -1
  232. package/dist/auth/session_queries.js +2 -1
  233. package/dist/auth/signup_routes.d.ts +2 -1
  234. package/dist/auth/signup_routes.d.ts.map +1 -1
  235. package/dist/auth/signup_routes.js +14 -13
  236. package/dist/auth/standard_rpc_actions.d.ts +1 -1
  237. package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
  238. package/dist/auth/token_scope.d.ts +19 -46
  239. package/dist/auth/token_scope.d.ts.map +1 -1
  240. package/dist/auth/token_scope.js +23 -41
  241. package/dist/db/CLAUDE.md +18 -6
  242. package/dist/db/cell_ddl.d.ts +5 -134
  243. package/dist/db/cell_ddl.d.ts.map +1 -1
  244. package/dist/db/cell_ddl.js +28 -17
  245. package/dist/db/cell_field_queries.d.ts +0 -13
  246. package/dist/db/cell_field_queries.d.ts.map +1 -1
  247. package/dist/db/cell_field_queries.js +0 -16
  248. package/dist/db/cell_grant_queries.d.ts +10 -5
  249. package/dist/db/cell_grant_queries.d.ts.map +1 -1
  250. package/dist/db/cell_grant_queries.js +13 -7
  251. package/dist/db/cell_item_queries.d.ts +0 -7
  252. package/dist/db/cell_item_queries.d.ts.map +1 -1
  253. package/dist/db/cell_item_queries.js +0 -10
  254. package/dist/db/cell_queries.d.ts +65 -55
  255. package/dist/db/cell_queries.d.ts.map +1 -1
  256. package/dist/db/cell_queries.js +85 -62
  257. package/dist/db/cell_view_sql.d.ts +1 -6
  258. package/dist/db/cell_view_sql.d.ts.map +1 -1
  259. package/dist/db/cell_view_sql.js +1 -2
  260. package/dist/db/fact_ddl.d.ts +5 -30
  261. package/dist/db/fact_ddl.d.ts.map +1 -1
  262. package/dist/db/fact_ddl.js +14 -13
  263. package/dist/db/fact_store.d.ts +11 -0
  264. package/dist/db/fact_store.d.ts.map +1 -1
  265. package/dist/db/fact_store.js +4 -1
  266. package/dist/db/migrate.d.ts +44 -6
  267. package/dist/db/migrate.d.ts.map +1 -1
  268. package/dist/db/migrate.js +63 -4
  269. package/dist/dev/setup.d.ts +18 -14
  270. package/dist/dev/setup.d.ts.map +1 -1
  271. package/dist/dev/setup.js +42 -39
  272. package/dist/env/dotenv.d.ts +2 -2
  273. package/dist/env/dotenv.js +2 -2
  274. package/dist/env/update_env_variable.d.ts +33 -21
  275. package/dist/env/update_env_variable.d.ts.map +1 -1
  276. package/dist/env/update_env_variable.js +54 -35
  277. package/dist/hono_context.d.ts +15 -90
  278. package/dist/hono_context.d.ts.map +1 -1
  279. package/dist/hono_context.js +9 -56
  280. package/dist/http/CLAUDE.md +35 -20
  281. package/dist/http/auth_shape.d.ts +1 -8
  282. package/dist/http/auth_shape.d.ts.map +1 -1
  283. package/dist/http/auth_shape.js +6 -12
  284. package/dist/http/body_limit.d.ts +3 -1
  285. package/dist/http/body_limit.d.ts.map +1 -1
  286. package/dist/http/body_limit.js +6 -1
  287. package/dist/http/common_routes.d.ts.map +1 -1
  288. package/dist/http/common_routes.js +3 -2
  289. package/dist/http/db_routes.d.ts +3 -3
  290. package/dist/http/db_routes.js +3 -3
  291. package/dist/http/error_schemas.d.ts +1 -2
  292. package/dist/http/error_schemas.d.ts.map +1 -1
  293. package/dist/http/error_schemas.js +1 -2
  294. package/dist/http/health_schema.d.ts +16 -0
  295. package/dist/http/health_schema.d.ts.map +1 -0
  296. package/dist/http/health_schema.js +12 -0
  297. package/dist/http/jsonrpc.d.ts +9 -0
  298. package/dist/http/jsonrpc.d.ts.map +1 -1
  299. package/dist/http/jsonrpc.js +17 -0
  300. package/dist/http/jsonrpc_errors.d.ts +22 -2
  301. package/dist/http/jsonrpc_errors.d.ts.map +1 -1
  302. package/dist/http/jsonrpc_errors.js +70 -23
  303. package/dist/http/jsonrpc_helpers.d.ts +60 -17
  304. package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
  305. package/dist/http/jsonrpc_helpers.js +67 -25
  306. package/dist/http/origin.d.ts +30 -1
  307. package/dist/http/origin.d.ts.map +1 -1
  308. package/dist/http/origin.js +46 -9
  309. package/dist/http/origin_wildcard.d.ts +97 -0
  310. package/dist/http/origin_wildcard.d.ts.map +1 -0
  311. package/dist/http/origin_wildcard.js +142 -0
  312. package/dist/http/pending_effects.d.ts +28 -0
  313. package/dist/http/pending_effects.d.ts.map +1 -1
  314. package/dist/http/pending_effects.js +32 -1
  315. package/dist/http/proxy.d.ts +4 -2
  316. package/dist/http/proxy.d.ts.map +1 -1
  317. package/dist/http/proxy.js +7 -2
  318. package/dist/http/route_spec.d.ts +4 -3
  319. package/dist/http/route_spec.d.ts.map +1 -1
  320. package/dist/http/route_spec.js +54 -45
  321. package/dist/http/surface.d.ts +4 -2
  322. package/dist/http/surface.d.ts.map +1 -1
  323. package/dist/http/surface.js +7 -4
  324. package/dist/http/surface_query.d.ts +9 -50
  325. package/dist/http/surface_query.d.ts.map +1 -1
  326. package/dist/http/surface_query.js +48 -94
  327. package/dist/realtime/audit_log_sse.d.ts +180 -0
  328. package/dist/realtime/audit_log_sse.d.ts.map +1 -0
  329. package/dist/realtime/audit_log_sse.js +154 -0
  330. package/dist/realtime/sse.d.ts +21 -6
  331. package/dist/realtime/sse.d.ts.map +1 -1
  332. package/dist/realtime/sse.js +33 -10
  333. package/dist/realtime/sse_constants.d.ts +29 -2
  334. package/dist/realtime/sse_constants.d.ts.map +1 -1
  335. package/dist/realtime/sse_constants.js +35 -2
  336. package/dist/realtime/{subscriber_registry.d.ts → sse_registry.d.ts} +12 -12
  337. package/dist/realtime/sse_registry.d.ts.map +1 -0
  338. package/dist/realtime/{subscriber_registry.js → sse_registry.js} +4 -4
  339. package/dist/schema_meta.d.ts +52 -1
  340. package/dist/schema_meta.d.ts.map +1 -1
  341. package/dist/schema_meta.js +123 -6
  342. package/dist/sensitivity.d.ts +9 -3
  343. package/dist/sensitivity.d.ts.map +1 -1
  344. package/dist/sensitivity.js +3 -2
  345. package/dist/server/app_backend.d.ts +8 -5
  346. package/dist/server/app_backend.d.ts.map +1 -1
  347. package/dist/server/app_backend.js +6 -12
  348. package/dist/server/app_server.d.ts +73 -54
  349. package/dist/server/app_server.d.ts.map +1 -1
  350. package/dist/server/app_server.js +115 -78
  351. package/dist/server/app_server_context.d.ts +1 -1
  352. package/dist/server/app_server_context.d.ts.map +1 -1
  353. package/dist/server/env.d.ts +24 -20
  354. package/dist/server/env.d.ts.map +1 -1
  355. package/dist/server/env.js +24 -34
  356. package/dist/server/serve_fact_route.d.ts +12 -16
  357. package/dist/server/serve_fact_route.d.ts.map +1 -1
  358. package/dist/server/serve_fact_route.js +59 -34
  359. package/dist/server/static.d.ts.map +1 -1
  360. package/dist/server/static.js +2 -2
  361. package/dist/testing/CLAUDE.md +213 -179
  362. package/dist/testing/admin_integration.d.ts.map +1 -1
  363. package/dist/testing/admin_integration.js +10 -19
  364. package/dist/testing/adversarial_headers.d.ts.map +1 -1
  365. package/dist/testing/adversarial_headers.js +8 -0
  366. package/dist/testing/app_server.d.ts +9 -75
  367. package/dist/testing/app_server.d.ts.map +1 -1
  368. package/dist/testing/app_server.js +31 -112
  369. package/dist/testing/attack_surface.d.ts.map +1 -1
  370. package/dist/testing/attack_surface.js +3 -4
  371. package/dist/testing/audit_completeness.d.ts.map +1 -1
  372. package/dist/testing/audit_completeness.js +4 -5
  373. package/dist/testing/auth_apps.d.ts +3 -3
  374. package/dist/testing/auth_apps.d.ts.map +1 -1
  375. package/dist/testing/auth_apps.js +9 -6
  376. package/dist/testing/connection_closer_helpers.d.ts +8 -16
  377. package/dist/testing/connection_closer_helpers.d.ts.map +1 -1
  378. package/dist/testing/connection_closer_helpers.js +7 -20
  379. package/dist/testing/cross_backend/action_manifest.d.ts +15 -4
  380. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  381. package/dist/testing/cross_backend/action_manifest.js +13 -3
  382. package/dist/testing/cross_backend/action_manifest_parity.d.ts +15 -7
  383. package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
  384. package/dist/testing/cross_backend/action_manifest_parity.js +8 -1
  385. package/dist/testing/cross_backend/actor_lookup.d.ts.map +1 -1
  386. package/dist/testing/cross_backend/actor_lookup.js +27 -0
  387. package/dist/testing/cross_backend/body_size.d.ts.map +1 -1
  388. package/dist/testing/cross_backend/body_size.js +25 -22
  389. package/dist/testing/cross_backend/build_test_backend_paths.d.ts +22 -3
  390. package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -1
  391. package/dist/testing/cross_backend/build_test_backend_paths.js +34 -11
  392. package/dist/testing/cross_backend/capabilities.d.ts +15 -8
  393. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  394. package/dist/testing/cross_backend/cell_gated_create.d.ts.map +1 -1
  395. package/dist/testing/cross_backend/cell_gated_create.js +109 -13
  396. package/dist/testing/cross_backend/cell_grant_role.js +2 -2
  397. package/dist/testing/cross_backend/cell_grant_steward.d.ts +4 -0
  398. package/dist/testing/cross_backend/cell_grant_steward.d.ts.map +1 -0
  399. package/dist/testing/cross_backend/cell_grant_steward.js +120 -0
  400. package/dist/testing/cross_backend/cell_moderate.d.ts +7 -1
  401. package/dist/testing/cross_backend/cell_moderate.d.ts.map +1 -1
  402. package/dist/testing/cross_backend/cell_moderate.js +68 -4
  403. package/dist/testing/cross_backend/cell_ref_admission.d.ts.map +1 -1
  404. package/dist/testing/cross_backend/cell_ref_admission.js +18 -9
  405. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
  406. package/dist/testing/cross_backend/cell_relations.js +21 -0
  407. package/dist/testing/cross_backend/conformance_table.d.ts +6 -1
  408. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  409. package/dist/testing/cross_backend/conformance_table.js +12 -10
  410. package/dist/testing/cross_backend/default_backend_configs.d.ts +18 -4
  411. package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
  412. package/dist/testing/cross_backend/default_backend_configs.js +29 -9
  413. package/dist/testing/cross_backend/default_spine_surface.d.ts +7 -7
  414. package/dist/testing/cross_backend/default_spine_surface.js +2 -2
  415. package/dist/testing/cross_backend/differential.d.ts +7 -0
  416. package/dist/testing/cross_backend/differential.d.ts.map +1 -1
  417. package/dist/testing/cross_backend/differential.js +17 -0
  418. package/dist/testing/cross_backend/expected_schema.json +1 -0
  419. package/dist/testing/cross_backend/fact_serving.d.ts.map +1 -1
  420. package/dist/testing/cross_backend/fact_serving.js +48 -0
  421. package/dist/testing/cross_backend/full_spine_mount.d.ts +3 -4
  422. package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
  423. package/dist/testing/cross_backend/full_spine_mount.js +13 -5
  424. package/dist/testing/cross_backend/origin_scope.d.ts.map +1 -1
  425. package/dist/testing/cross_backend/origin_scope.js +5 -13
  426. package/dist/testing/cross_backend/peer_ping_ws.d.ts.map +1 -1
  427. package/dist/testing/cross_backend/peer_ping_ws.js +29 -4
  428. package/dist/testing/cross_backend/postgres_database.d.ts +32 -0
  429. package/dist/testing/cross_backend/postgres_database.d.ts.map +1 -1
  430. package/dist/testing/cross_backend/postgres_database.js +56 -1
  431. package/dist/testing/cross_backend/query_shape.d.ts.map +1 -1
  432. package/dist/testing/cross_backend/query_shape.js +18 -1
  433. package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
  434. package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +96 -2
  435. package/dist/testing/cross_backend/rpc_success_fixtures.js +2 -2
  436. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
  437. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  438. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts +17 -5
  439. package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
  440. package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +5 -4
  441. package/dist/testing/cross_backend/session_cap.d.ts +8 -0
  442. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  443. package/dist/testing/cross_backend/session_cap.js +66 -2
  444. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  445. package/dist/testing/cross_backend/setup.js +5 -4
  446. package/dist/testing/cross_backend/spine_suites.d.ts +4 -1
  447. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  448. package/dist/testing/cross_backend/spine_suites.js +21 -0
  449. package/dist/testing/cross_backend/spine_surface_constants.d.ts +22 -7
  450. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  451. package/dist/testing/cross_backend/spine_surface_constants.js +22 -7
  452. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  453. package/dist/testing/cross_backend/sse_round_trip.js +4 -3
  454. package/dist/testing/cross_backend/standard.d.ts +6 -12
  455. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  456. package/dist/testing/cross_backend/test_cell_gated_create_authorize.d.ts +18 -19
  457. package/dist/testing/cross_backend/test_cell_gated_create_authorize.d.ts.map +1 -1
  458. package/dist/testing/cross_backend/test_cell_gated_create_authorize.js +66 -42
  459. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts +8 -0
  460. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts.map +1 -0
  461. package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.js +22 -0
  462. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  463. package/dist/testing/cross_backend/testing_backdoor.js +4 -6
  464. package/dist/testing/cross_backend/testing_origin_check.d.ts +1 -1
  465. package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
  466. package/dist/testing/cross_backend/testing_origin_check.js +1 -1
  467. package/dist/testing/cross_backend/testing_reset_actions.d.ts +10 -5
  468. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  469. package/dist/testing/cross_backend/testing_reset_actions.js +7 -6
  470. package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
  471. package/dist/testing/cross_backend/testing_server_bun.js +5 -4
  472. package/dist/testing/cross_backend/testing_server_core.d.ts +6 -7
  473. package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
  474. package/dist/testing/cross_backend/testing_server_core.js +1 -1
  475. package/dist/testing/cross_backend/testing_server_node.d.ts.map +1 -1
  476. package/dist/testing/cross_backend/testing_server_node.js +13 -2
  477. package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
  478. package/dist/testing/cross_backend/token_lifetime.js +68 -0
  479. package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
  480. package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
  481. package/dist/testing/cross_backend/transport_composition.js +48 -6
  482. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +16 -2
  483. package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
  484. package/dist/testing/cross_backend/ts_spine_backend_config.js +11 -8
  485. package/dist/testing/cross_backend/ws_action_rate_limit.d.ts.map +1 -1
  486. package/dist/testing/cross_backend/ws_action_rate_limit.js +30 -12
  487. package/dist/testing/cross_backend/ws_connection_cap.d.ts.map +1 -1
  488. package/dist/testing/cross_backend/ws_connection_cap.js +5 -7
  489. package/dist/testing/cross_backend/ws_endpoint.d.ts +2 -3
  490. package/dist/testing/cross_backend/ws_endpoint.d.ts.map +1 -1
  491. package/dist/testing/cross_backend/ws_envelope.d.ts +17 -0
  492. package/dist/testing/cross_backend/ws_envelope.d.ts.map +1 -0
  493. package/dist/testing/cross_backend/ws_envelope.js +172 -0
  494. package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts +16 -0
  495. package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts.map +1 -1
  496. package/dist/testing/cross_backend/ws_inbound_dispatch.js +8 -4
  497. package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
  498. package/dist/testing/cross_backend/ws_outbound_overflow.js +5 -8
  499. package/dist/testing/cross_backend/ws_role_gated.js +2 -2
  500. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  501. package/dist/testing/cross_backend/ws_round_trip.js +6 -4
  502. package/dist/{cli/daemon.d.ts → testing/daemon_info.d.ts} +15 -47
  503. package/dist/testing/daemon_info.d.ts.map +1 -0
  504. package/dist/testing/daemon_info.js +108 -0
  505. package/dist/testing/daemon_token_rotation.js +1 -1
  506. package/dist/testing/data_exposure.d.ts.map +1 -1
  507. package/dist/testing/data_exposure.js +3 -4
  508. package/dist/testing/db.js +2 -2
  509. package/dist/testing/integration.d.ts.map +1 -1
  510. package/dist/testing/integration.js +35 -65
  511. package/dist/testing/integration_helpers.d.ts +0 -15
  512. package/dist/testing/integration_helpers.d.ts.map +1 -1
  513. package/dist/testing/integration_helpers.js +2 -42
  514. package/dist/testing/middleware.d.ts +20 -12
  515. package/dist/testing/middleware.d.ts.map +1 -1
  516. package/dist/testing/middleware.js +49 -40
  517. package/dist/testing/rate_limiting.d.ts.map +1 -1
  518. package/dist/testing/rate_limiting.js +13 -22
  519. package/dist/testing/resolved_auth.d.ts +30 -0
  520. package/dist/testing/resolved_auth.d.ts.map +1 -0
  521. package/dist/testing/resolved_auth.js +41 -0
  522. package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
  523. package/dist/testing/rpc_envelope_cases.js +3 -0
  524. package/dist/testing/rpc_helpers.d.ts +1 -1
  525. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  526. package/dist/testing/rpc_helpers.js +2 -1
  527. package/dist/testing/sse_round_trip.d.ts +5 -4
  528. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  529. package/dist/testing/sse_round_trip.js +2 -2
  530. package/dist/testing/stubs.d.ts +2 -2
  531. package/dist/testing/stubs.d.ts.map +1 -1
  532. package/dist/testing/stubs.js +24 -21
  533. package/dist/testing/test_origin.d.ts +25 -0
  534. package/dist/testing/test_origin.d.ts.map +1 -0
  535. package/dist/testing/test_origin.js +28 -0
  536. package/dist/testing/transports/raw_http.d.ts +54 -0
  537. package/dist/testing/transports/raw_http.d.ts.map +1 -1
  538. package/dist/testing/transports/raw_http.js +58 -0
  539. package/dist/testing/transports/ws_raw_client.d.ts +8 -0
  540. package/dist/testing/transports/ws_raw_client.d.ts.map +1 -1
  541. package/dist/testing/transports/ws_raw_client.js +13 -0
  542. package/dist/testing/transports/ws_transport.d.ts +15 -2
  543. package/dist/testing/transports/ws_transport.d.ts.map +1 -1
  544. package/dist/testing/transports/ws_transport.js +4 -2
  545. package/dist/testing/ws_round_trip.d.ts +27 -25
  546. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  547. package/dist/testing/ws_round_trip.js +34 -26
  548. package/dist/ui/AccountSessions.svelte +48 -19
  549. package/dist/ui/AccountSessions.svelte.d.ts +2 -17
  550. package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
  551. package/dist/ui/AdminAccounts.svelte +6 -1
  552. package/dist/ui/AdminAuditLog.svelte +61 -22
  553. package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
  554. package/dist/ui/AdminInvites.svelte +1 -1
  555. package/dist/ui/AdminOverview.svelte +76 -37
  556. package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
  557. package/dist/ui/AdminRoleGrantHistory.svelte +6 -1
  558. package/dist/ui/AdminSessions.svelte +1 -1
  559. package/dist/ui/AppShell.svelte +3 -2
  560. package/dist/ui/AppShell.svelte.d.ts +3 -2
  561. package/dist/ui/AppShell.svelte.d.ts.map +1 -1
  562. package/dist/ui/CLAUDE.md +121 -35
  563. package/dist/ui/Datatable.svelte +33 -18
  564. package/dist/ui/Datatable.svelte.d.ts +2 -14
  565. package/dist/ui/Datatable.svelte.d.ts.map +1 -1
  566. package/dist/ui/OpenSignupToggle.svelte +10 -1
  567. package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
  568. package/dist/ui/PopoverButton.svelte +13 -8
  569. package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
  570. package/dist/ui/RoleGrantOfferForm.svelte +3 -2
  571. package/dist/ui/RoleGrantOfferForm.svelte.d.ts +3 -2
  572. package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
  573. package/dist/ui/RoleGrantOfferHistory.svelte +3 -3
  574. package/dist/ui/RoleGrantOfferInbox.svelte +19 -15
  575. package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
  576. package/dist/ui/SurfaceExplorer.svelte +66 -27
  577. package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
  578. package/dist/ui/account_sessions_state.svelte.d.ts +7 -14
  579. package/dist/ui/account_sessions_state.svelte.d.ts.map +1 -1
  580. package/dist/ui/admin_accounts_state.svelte.d.ts +14 -9
  581. package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
  582. package/dist/ui/admin_accounts_state.svelte.js +6 -4
  583. package/dist/ui/admin_invites_state.svelte.d.ts +2 -2
  584. package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
  585. package/dist/ui/admin_rpc_adapters.d.ts +9 -9
  586. package/dist/ui/admin_rpc_adapters.d.ts.map +1 -1
  587. package/dist/ui/admin_rpc_adapters.js +9 -9
  588. package/dist/ui/app_settings_state.svelte.d.ts +2 -2
  589. package/dist/ui/app_settings_state.svelte.d.ts.map +1 -1
  590. package/dist/ui/audit_log_state.svelte.d.ts +70 -13
  591. package/dist/ui/audit_log_state.svelte.d.ts.map +1 -1
  592. package/dist/ui/audit_log_state.svelte.js +239 -47
  593. package/dist/ui/backend_probe.svelte.d.ts +93 -0
  594. package/dist/ui/backend_probe.svelte.d.ts.map +1 -0
  595. package/dist/ui/backend_probe.svelte.js +140 -0
  596. package/dist/ui/format_scope.d.ts +7 -7
  597. package/dist/ui/format_scope.d.ts.map +1 -1
  598. package/dist/ui/format_scope.js +4 -4
  599. package/dist/ui/keyed_async_slot.svelte.d.ts +2 -2
  600. package/dist/ui/keyed_async_slot.svelte.js +2 -2
  601. package/dist/ui/popover.svelte.d.ts +18 -19
  602. package/dist/ui/popover.svelte.d.ts.map +1 -1
  603. package/dist/ui/popover.svelte.js +103 -16
  604. package/dist/ui/role_grant_offers_state.svelte.d.ts +41 -46
  605. package/dist/ui/role_grant_offers_state.svelte.d.ts.map +1 -1
  606. package/dist/ui/role_grant_offers_state.svelte.js +37 -19
  607. package/dist/ui/ui_format.d.ts +17 -0
  608. package/dist/ui/ui_format.d.ts.map +1 -1
  609. package/dist/ui/ui_format.js +20 -0
  610. package/package.json +2 -1
  611. package/dist/actions/register_ws_endpoint.d.ts +0 -79
  612. package/dist/actions/register_ws_endpoint.d.ts.map +0 -1
  613. package/dist/actions/register_ws_endpoint.js +0 -109
  614. package/dist/actions/transports_ws_auth_guard.d.ts +0 -94
  615. package/dist/actions/transports_ws_auth_guard.d.ts.map +0 -1
  616. package/dist/actions/transports_ws_auth_guard.js +0 -138
  617. package/dist/actions/transports_ws_backend.d.ts.map +0 -1
  618. package/dist/cli/args.d.ts +0 -55
  619. package/dist/cli/args.d.ts.map +0 -1
  620. package/dist/cli/args.js +0 -100
  621. package/dist/cli/config.d.ts +0 -47
  622. package/dist/cli/config.d.ts.map +0 -1
  623. package/dist/cli/config.js +0 -77
  624. package/dist/cli/daemon.d.ts.map +0 -1
  625. package/dist/cli/daemon.js +0 -181
  626. package/dist/cli/help.d.ts +0 -124
  627. package/dist/cli/help.d.ts.map +0 -1
  628. package/dist/cli/help.js +0 -215
  629. package/dist/cli/logger.d.ts +0 -46
  630. package/dist/cli/logger.d.ts.map +0 -1
  631. package/dist/cli/logger.js +0 -48
  632. package/dist/cli/util.d.ts +0 -36
  633. package/dist/cli/util.d.ts.map +0 -1
  634. package/dist/cli/util.js +0 -50
  635. package/dist/realtime/sse_auth_guard.d.ts +0 -197
  636. package/dist/realtime/sse_auth_guard.d.ts.map +0 -1
  637. package/dist/realtime/sse_auth_guard.js +0 -238
  638. package/dist/realtime/subscriber_registry.d.ts.map +0 -1
  639. package/dist/testing/bootstrap_success.d.ts +0 -29
  640. package/dist/testing/bootstrap_success.d.ts.map +0 -1
  641. package/dist/testing/bootstrap_success.js +0 -144
  642. package/dist/testing/mock_fs.d.ts +0 -20
  643. package/dist/testing/mock_fs.d.ts.map +0 -1
  644. package/dist/testing/mock_fs.js +0 -28
  645. package/dist/testing/standard.d.ts +0 -122
  646. package/dist/testing/standard.d.ts.map +0 -1
  647. package/dist/testing/standard.js +0 -73
  648. package/dist/testing/testing_rate_limiter.d.ts +0 -65
  649. package/dist/testing/testing_rate_limiter.d.ts.map +0 -1
  650. package/dist/testing/testing_rate_limiter.js +0 -80
@@ -0,0 +1,113 @@
1
+ /**
2
+ * The cell verbs' shared gates and audit emit.
3
+ *
4
+ * Every gate loads the cell, reads its grants where the tier consults them,
5
+ * applies the tier's predicate, and answers a miss and a denial with the same
6
+ * `cell_not_found` 404. A 403 on denial would confirm the row exists, so a
7
+ * caller with no authority could walk ids and read a private cell's existence
8
+ * off the difference; one wire shape for both is the IDOR mask. Each gate
9
+ * returns the loaded row, so a handler that needs it doesn't re-read it.
10
+ *
11
+ * Twins of the Rust `fuz_cell_actions` helpers; `require_viewable_cell`
12
+ * covers both of Rust's authenticated and `_optional_auth` read gates.
13
+ *
14
+ * @module
15
+ */
16
+ import { jsonrpc_errors } from '../http/jsonrpc_errors.js';
17
+ import { query_cell_get } from '../db/cell_queries.js';
18
+ import { query_cell_grant_list_for_cell } from '../db/cell_grant_queries.js';
19
+ import { ERROR_CELL_NOT_FOUND } from './cell_action_specs.js';
20
+ import { can_edit_cell, can_manage_cell, can_view_cell } from './cell_authorize.js';
21
+ /**
22
+ * The 404 every cell gate answers for a miss and a denial alike.
23
+ *
24
+ * @returns the `cell_not_found` JSON-RPC error
25
+ */
26
+ export const cell_not_found_error = () => jsonrpc_errors.not_found('cell', { reason: ERROR_CELL_NOT_FOUND });
27
+ /**
28
+ * The `load → 404 → grants → predicate → 404` sequence the grant-consulting
29
+ * tiers share. Grants are read from the loaded row's id, and only for an
30
+ * authenticated caller: only the public arm of `can_view_cell` admits a
31
+ * `null` caller, so a grant read would be waste.
32
+ */
33
+ const require_admitted_cell = async (deps, auth, cell_id, admits) => {
34
+ const row = await query_cell_get(deps, cell_id);
35
+ if (!row)
36
+ throw cell_not_found_error();
37
+ const grants = auth ? await query_cell_grant_list_for_cell(deps, row.id) : null;
38
+ if (!admits(auth, row, grants))
39
+ throw cell_not_found_error();
40
+ return row;
41
+ };
42
+ /**
43
+ * Load a cell and gate the caller on `can_view_cell`, 404-masking a miss and a
44
+ * denial alike.
45
+ *
46
+ * The read tier: a create's parent, a clone's source, the far endpoint a write
47
+ * links to (so a link is no existence oracle), and the endpoints of the
48
+ * public relation lists, where `auth` may be `null`.
49
+ *
50
+ * @param deps - query deps
51
+ * @param auth - the caller, or `null` when unauthenticated
52
+ * @param cell_id - the cell to load
53
+ * @returns the loaded row
54
+ * @throws the `cell_not_found` 404 on a miss or a denial
55
+ */
56
+ export const require_viewable_cell = (deps, auth, cell_id) => require_admitted_cell(deps, auth, cell_id, can_view_cell);
57
+ /**
58
+ * Load a cell and gate the caller on `can_edit_cell`, 404-masking a miss and a
59
+ * denial alike.
60
+ *
61
+ * The write tier: `cell_update` / `cell_delete`, the source a field write
62
+ * writes, and the parent every item mutation writes.
63
+ *
64
+ * @param deps - query deps
65
+ * @param auth - the caller
66
+ * @param cell_id - the cell to load
67
+ * @returns the loaded row
68
+ * @throws the `cell_not_found` 404 on a miss or a denial
69
+ */
70
+ export const require_editable_cell = (deps, auth, cell_id) => require_admitted_cell(deps, auth, cell_id, can_edit_cell);
71
+ /**
72
+ * Load a cell and gate the caller on `can_manage_cell`, 404-masking a miss and
73
+ * a denial alike.
74
+ *
75
+ * The manage tier: `cell_audit_list`, `cell_grant_create`, `cell_grant_list`.
76
+ * Manage is admin-or-owner and not a grant level, so no grant is read. A
77
+ * viewer or an editor gets the same mask a stranger does: an audit timeline
78
+ * and a share list say who touched the cell, which is more sensitive than the
79
+ * content.
80
+ *
81
+ * @param deps - query deps
82
+ * @param auth - the caller
83
+ * @param cell_id - the cell to load
84
+ * @returns the loaded row
85
+ * @throws the `cell_not_found` 404 on a miss or a denial
86
+ */
87
+ export const require_manageable_cell = async (deps, auth, cell_id) => {
88
+ const row = await query_cell_get(deps, cell_id);
89
+ if (!row || !can_manage_cell(auth, row))
90
+ throw cell_not_found_error();
91
+ return row;
92
+ };
93
+ /**
94
+ * Emit a cell-domain audit event for the caller, with `actor_id`,
95
+ * `account_id`, and `ip` lifted from `auth` and `ctx`. `metadata` is the
96
+ * event's own envelope.
97
+ *
98
+ * @param ctx - the action context
99
+ * @param audit - the bound audit emitter
100
+ * @param auth - the caller
101
+ * @param event_type - the cell event
102
+ * @param metadata - the event's metadata envelope
103
+ * @mutates `audit_log` table - inserts the row through `audit.emit`
104
+ */
105
+ export const emit_cell_audit = (ctx, audit, auth, event_type, metadata) => {
106
+ audit.emit(ctx, {
107
+ event_type,
108
+ actor_id: auth.actor.id,
109
+ account_id: auth.account.id,
110
+ ip: ctx.client_ip,
111
+ metadata
112
+ });
113
+ };
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Cell RPC action specs — the declarative contract for the six generic
3
- * cell verbs. App vocabulary (galleries, posts, events) lives in
2
+ * Cell RPC action specs — the declarative contract for the generic cell
3
+ * verbs. App vocabulary (galleries, posts, events) lives in
4
4
  * client-side helpers; the wire stays generic.
5
5
  *
6
6
  * @module
@@ -107,6 +107,45 @@ export declare const ERROR_CELL_REF_NOT_HELD: "cell_ref_not_held";
107
107
  * `ERROR_CELL_NOT_A_CONTRIBUTION`).
108
108
  */
109
109
  export declare const ERROR_CELL_NOT_A_CONTRIBUTION: "cell_not_a_contribution";
110
+ /**
111
+ * Error reason — `cell_moderate` names a transition the target's `moderation`
112
+ * doesn't allow: an approval of a contribution that is not `'pending'`
113
+ * (approved or rejected already, or never moderated), or a rejection of one
114
+ * that is neither `'pending'` nor `'approved'` (rejected already, or never
115
+ * moderated). A **400** `invalid_params`, answered to a caller holding
116
+ * moderation authority over the governing root (the 404 mask and the 403 come
117
+ * first). Without it an approval would force any reachable contribution public
118
+ * (twin of the Rust `ERROR_CELL_NOT_PENDING`).
119
+ */
120
+ export declare const ERROR_CELL_NOT_PENDING: "cell_not_pending";
121
+ /**
122
+ * Error reason — a policy write (a `cell_create` carrying `policy`, or
123
+ * `cell_policy_set`) targeted a cell with a parent. Only a root carries a
124
+ * contribution policy. A **400** `invalid_params` (twin of the Rust
125
+ * `ERROR_CELL_POLICY_ROOT_ONLY`).
126
+ */
127
+ export declare const ERROR_CELL_POLICY_ROOT_ONLY: "cell_policy_root_only";
128
+ /**
129
+ * Error reason — a non-null policy write found nothing to interpret it: no
130
+ * `authorize_create` is mounted, or the mounted one has no `validate_policy`.
131
+ * The policy is opaque to the spine, so the write is refused rather than
132
+ * stored inert. A **400** `invalid_params` (twin of the Rust
133
+ * `ERROR_CELL_POLICY_UNSUPPORTED`).
134
+ */
135
+ export declare const ERROR_CELL_POLICY_UNSUPPORTED: "cell_policy_unsupported";
136
+ /**
137
+ * Error reason — a `cell_policy_set` caller can view the root but can't manage
138
+ * it (not admin, not the owner — an editor grant included). A **403**
139
+ * `forbidden`; a caller who can't view the root gets the 404 mask first (twin
140
+ * of the Rust `ERROR_CELL_POLICY_MANAGE_ONLY`).
141
+ */
142
+ export declare const ERROR_CELL_POLICY_MANAGE_ONLY: "cell_policy_manage_only";
143
+ /**
144
+ * Error reason — the conventional refusal a `CellCreateAuthorize.validate_policy`
145
+ * throws for a policy it can't interpret. The spine never answers it itself
146
+ * (twin of the Rust `ERROR_CELL_POLICY_INVALID`).
147
+ */
148
+ export declare const ERROR_CELL_POLICY_INVALID: "cell_policy_invalid";
110
149
  /**
111
150
  * Error reason — null-auth `cell_list` caller passed a `created_by`
112
151
  * filter. The filter is a soft account-id enumeration vector ("does
@@ -120,6 +159,14 @@ export declare const ERROR_CELL_LIST_CREATED_BY_REQUIRES_AUTH: "cell_list_create
120
159
  * exist for an authenticated session.
121
160
  */
122
161
  export declare const ERROR_CELL_LIST_SHARED_WITH_REQUIRES_AUTH: "cell_list_shared_with_requires_auth";
162
+ /**
163
+ * A root's contribution policy — any JSON object. Opaque to the spine: the
164
+ * consumer's create authorizer validates it (`CellCreateAuthorize.validate_policy`)
165
+ * and interprets it (`CellCreateAuthorizeInput.root_policy`). Loose for that
166
+ * reason — the keys are the consumer's. Twin of the Rust `CellPolicy`.
167
+ */
168
+ export declare const CellPolicy: z.ZodObject<{}, z.core.$loose>;
169
+ export type CellPolicy = z.infer<typeof CellPolicy>;
123
170
  /**
124
171
  * Wire form for `cell.path`.
125
172
  *
@@ -195,6 +242,7 @@ export declare const CellJson: z.ZodObject<{
195
242
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
196
243
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
197
244
  moderation: z.ZodNullable<z.ZodString>;
245
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
198
246
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
199
247
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
200
248
  created_at: z.ZodString;
@@ -220,6 +268,7 @@ export declare const CellCreateInput: z.ZodObject<{
220
268
  }>>;
221
269
  path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
222
270
  parent_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
271
+ policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
223
272
  acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
224
273
  }, z.core.$strict>;
225
274
  export type CellCreateInput = z.infer<typeof CellCreateInput>;
@@ -240,6 +289,7 @@ export declare const CellCreateOutput: z.ZodObject<{
240
289
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
241
290
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
242
291
  moderation: z.ZodNullable<z.ZodString>;
292
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
243
293
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
244
294
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
245
295
  created_at: z.ZodString;
@@ -291,6 +341,7 @@ export declare const CellGetOutput: z.ZodObject<{
291
341
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
292
342
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
293
343
  moderation: z.ZodNullable<z.ZodString>;
344
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
294
345
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
295
346
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
296
347
  created_at: z.ZodString;
@@ -355,6 +406,7 @@ export declare const CellUpdateOutput: z.ZodObject<{
355
406
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
356
407
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
357
408
  moderation: z.ZodNullable<z.ZodString>;
409
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
358
410
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
359
411
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
360
412
  created_at: z.ZodString;
@@ -437,6 +489,7 @@ export declare const CellListOutput: z.ZodObject<{
437
489
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
438
490
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
439
491
  moderation: z.ZodNullable<z.ZodString>;
492
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
440
493
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
441
494
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
442
495
  created_at: z.ZodString;
@@ -493,6 +546,7 @@ export declare const CellCloneOutput: z.ZodObject<{
493
546
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
494
547
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
495
548
  moderation: z.ZodNullable<z.ZodString>;
549
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
496
550
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
497
551
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
498
552
  created_at: z.ZodString;
@@ -506,8 +560,9 @@ export type CellCloneOutput = z.infer<typeof CellCloneOutput>;
506
560
  * The terminal transition a `cell_moderate` call applies to a gated
507
561
  * contribution's `moderation` lifecycle. The born state (`'pending'`) is set
508
562
  * by the create authorizer, never on the wire; the verb only moves it to a
509
- * terminal state. `'approved'` publishes (also flips `visibility → 'public'`);
510
- * `'rejected'` leaves it private.
563
+ * terminal state. `'approved'` publishes a pending contribution (also flips
564
+ * `visibility → 'public'`); `'rejected'` holds a pending one back or takes an
565
+ * approved one down, leaving visibility as it was.
511
566
  */
512
567
  export declare const CellModerationDecision: z.ZodEnum<{
513
568
  rejected: "rejected";
@@ -515,13 +570,16 @@ export declare const CellModerationDecision: z.ZodEnum<{
515
570
  }>;
516
571
  export type CellModerationDecision = z.infer<typeof CellModerationDecision>;
517
572
  /**
518
- * Input for `cell_moderate` — the `pending → approved | rejected` transition,
519
- * gated on moderation authority over the **governing root** (admin / root
520
- * owner in v1), not the contribution (which the author manages, and could
521
- * otherwise self-approve). 404 when the caller neither views the target nor
522
- * stewards it (a root manager reads a pending or rejected contribution through
523
- * the steward arm); 403 when the caller reaches it but isn't a root manager
524
- * (the author lands here).
573
+ * Input for `cell_moderate` — the `pending → approved | rejected` decision, plus
574
+ * the `approved → rejected` takedown, gated on moderation authority over the
575
+ * **governing root** (admin / root owner in v1), not the contribution (which
576
+ * the author manages, and could otherwise self-approve). 404 when the caller
577
+ * neither views the target nor stewards it (a root manager reads a pending or
578
+ * rejected contribution through the steward arm); 403 when the caller reaches
579
+ * it but isn't a root manager (the author lands here); 400 `cell_not_pending`
580
+ * when a root manager names a transition the contribution's state doesn't
581
+ * allow — approving one that is not pending, or rejecting one already rejected
582
+ * or never moderated.
525
583
  */
526
584
  export declare const CellModerateInput: z.ZodObject<{
527
585
  cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
@@ -549,6 +607,7 @@ export declare const CellModerateOutput: z.ZodObject<{
549
607
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
550
608
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
551
609
  moderation: z.ZodNullable<z.ZodString>;
610
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
552
611
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
553
612
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
554
613
  created_at: z.ZodString;
@@ -558,6 +617,47 @@ export declare const CellModerateOutput: z.ZodObject<{
558
617
  }, z.core.$strict>;
559
618
  }, z.core.$strict>;
560
619
  export type CellModerateOutput = z.infer<typeof CellModerateOutput>;
620
+ /**
621
+ * Input for `cell_policy_set` — replace a root's contribution policy, or clear
622
+ * it with `null`. Manage-tier on the root: 404 when the caller can't view it,
623
+ * 403 `ERROR_CELL_POLICY_MANAGE_ONLY` when they can but don't manage it (an
624
+ * editor grant included), 400 `ERROR_CELL_POLICY_ROOT_ONLY` on a cell with a
625
+ * parent, then the mounted authorizer's validation of a non-null policy
626
+ * (`ERROR_CELL_POLICY_UNSUPPORTED` when none can).
627
+ */
628
+ export declare const CellPolicySetInput: z.ZodObject<{
629
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
630
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
631
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
632
+ }, z.core.$strict>;
633
+ export type CellPolicySetInput = z.infer<typeof CellPolicySetInput>;
634
+ export declare const CellPolicySetOutput: z.ZodObject<{
635
+ cell: z.ZodObject<{
636
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
637
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
638
+ data: z.ZodObject<{
639
+ label: z.ZodOptional<z.ZodString>;
640
+ summary: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$loose>;
642
+ kind: z.ZodNullable<z.ZodString>;
643
+ visibility: z.ZodEnum<{
644
+ private: "private";
645
+ public: "public";
646
+ }>;
647
+ refs: z.ZodNullable<z.ZodArray<z.ZodString & z.ZodType<import("@fuzdev/fuz_util/hash_schemas.js").FactHash, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_util/hash_schemas.js").FactHash, string>>>>;
648
+ parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
649
+ root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
650
+ moderation: z.ZodNullable<z.ZodString>;
651
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
652
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
653
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
654
+ created_at: z.ZodString;
655
+ updated_at: z.ZodNullable<z.ZodString>;
656
+ deleted_at: z.ZodNullable<z.ZodString>;
657
+ grant_count: z.ZodNumber;
658
+ }, z.core.$strict>;
659
+ }, z.core.$strict>;
660
+ export type CellPolicySetOutput = z.infer<typeof CellPolicySetOutput>;
561
661
  export declare const cell_create_action_spec: {
562
662
  method: string;
563
663
  kind: "request_response";
@@ -579,6 +679,7 @@ export declare const cell_create_action_spec: {
579
679
  }>>;
580
680
  path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
581
681
  parent_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
682
+ policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
582
683
  acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
583
684
  }, z.core.$strict>;
584
685
  output: z.ZodObject<{
@@ -598,6 +699,7 @@ export declare const cell_create_action_spec: {
598
699
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
599
700
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
600
701
  moderation: z.ZodNullable<z.ZodString>;
702
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
601
703
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
602
704
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
603
705
  created_at: z.ZodString;
@@ -641,6 +743,7 @@ export declare const cell_get_action_spec: {
641
743
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
642
744
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
643
745
  moderation: z.ZodNullable<z.ZodString>;
746
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
644
747
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
645
748
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
646
749
  created_at: z.ZodString;
@@ -708,6 +811,7 @@ export declare const cell_update_action_spec: {
708
811
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
709
812
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
710
813
  moderation: z.ZodNullable<z.ZodString>;
814
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
711
815
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
712
816
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
713
817
  created_at: z.ZodString;
@@ -790,6 +894,7 @@ export declare const cell_list_action_spec: {
790
894
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
791
895
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
792
896
  moderation: z.ZodNullable<z.ZodString>;
897
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
793
898
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
794
899
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
795
900
  created_at: z.ZodString;
@@ -850,6 +955,7 @@ export declare const cell_clone_action_spec: {
850
955
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
851
956
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
852
957
  moderation: z.ZodNullable<z.ZodString>;
958
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
853
959
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
854
960
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
855
961
  created_at: z.ZodString;
@@ -896,6 +1002,51 @@ export declare const cell_moderate_action_spec: {
896
1002
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
897
1003
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
898
1004
  moderation: z.ZodNullable<z.ZodString>;
1005
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1006
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1007
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1008
+ created_at: z.ZodString;
1009
+ updated_at: z.ZodNullable<z.ZodString>;
1010
+ deleted_at: z.ZodNullable<z.ZodString>;
1011
+ grant_count: z.ZodNumber;
1012
+ }, z.core.$strict>;
1013
+ }, z.core.$strict>;
1014
+ async: true;
1015
+ rate_limit: "account";
1016
+ description: string;
1017
+ };
1018
+ export declare const cell_policy_set_action_spec: {
1019
+ method: string;
1020
+ kind: "request_response";
1021
+ initiator: "frontend";
1022
+ auth: {
1023
+ account: "required";
1024
+ actor: "required";
1025
+ };
1026
+ side_effects: true;
1027
+ input: z.ZodObject<{
1028
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1029
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1030
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1031
+ }, z.core.$strict>;
1032
+ output: z.ZodObject<{
1033
+ cell: z.ZodObject<{
1034
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1035
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
1036
+ data: z.ZodObject<{
1037
+ label: z.ZodOptional<z.ZodString>;
1038
+ summary: z.ZodOptional<z.ZodString>;
1039
+ }, z.core.$loose>;
1040
+ kind: z.ZodNullable<z.ZodString>;
1041
+ visibility: z.ZodEnum<{
1042
+ private: "private";
1043
+ public: "public";
1044
+ }>;
1045
+ refs: z.ZodNullable<z.ZodArray<z.ZodString & z.ZodType<import("@fuzdev/fuz_util/hash_schemas.js").FactHash, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_util/hash_schemas.js").FactHash, string>>>>;
1046
+ parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1047
+ root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1048
+ moderation: z.ZodNullable<z.ZodString>;
1049
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
899
1050
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
900
1051
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
901
1052
  created_at: z.ZodString;
@@ -910,10 +1061,9 @@ export declare const cell_moderate_action_spec: {
910
1061
  };
911
1062
  /**
912
1063
  * All cell-layer action specs — composed by app registries. Bundles the
913
- * seven generic verbs (this module), the three `cell_grant_*` specs, the
914
- * three `cell_field_*` specs, the four `cell_item_*` specs, and the
915
- * `cell_audit_list` spec so codegen + UI clients see a single cell
916
- * namespace.
1064
+ * generic verbs (this module) with the `cell_grant_*`, `cell_field_*`,
1065
+ * `cell_item_*`, and `cell_audit_list` specs so codegen + UI clients see a
1066
+ * single cell namespace.
917
1067
  */
918
1068
  export declare const all_cell_action_specs: readonly [{
919
1069
  method: string;
@@ -936,6 +1086,7 @@ export declare const all_cell_action_specs: readonly [{
936
1086
  }>>;
937
1087
  path: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>>;
938
1088
  parent_id: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>>;
1089
+ policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$loose>>>;
939
1090
  acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
940
1091
  }, z.core.$strict>;
941
1092
  output: z.ZodObject<{
@@ -955,6 +1106,7 @@ export declare const all_cell_action_specs: readonly [{
955
1106
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
956
1107
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
957
1108
  moderation: z.ZodNullable<z.ZodString>;
1109
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
958
1110
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
959
1111
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
960
1112
  created_at: z.ZodString;
@@ -997,6 +1149,7 @@ export declare const all_cell_action_specs: readonly [{
997
1149
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
998
1150
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
999
1151
  moderation: z.ZodNullable<z.ZodString>;
1152
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1000
1153
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1001
1154
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1002
1155
  created_at: z.ZodString;
@@ -1063,6 +1216,7 @@ export declare const all_cell_action_specs: readonly [{
1063
1216
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1064
1217
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1065
1218
  moderation: z.ZodNullable<z.ZodString>;
1219
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1066
1220
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1067
1221
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1068
1222
  created_at: z.ZodString;
@@ -1143,6 +1297,7 @@ export declare const all_cell_action_specs: readonly [{
1143
1297
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1144
1298
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1145
1299
  moderation: z.ZodNullable<z.ZodString>;
1300
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1146
1301
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1147
1302
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1148
1303
  created_at: z.ZodString;
@@ -1202,6 +1357,7 @@ export declare const all_cell_action_specs: readonly [{
1202
1357
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1203
1358
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1204
1359
  moderation: z.ZodNullable<z.ZodString>;
1360
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1205
1361
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1206
1362
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1207
1363
  created_at: z.ZodString;
@@ -1247,6 +1403,50 @@ export declare const all_cell_action_specs: readonly [{
1247
1403
  parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1248
1404
  root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1249
1405
  moderation: z.ZodNullable<z.ZodString>;
1406
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1407
+ created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1408
+ updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1409
+ created_at: z.ZodString;
1410
+ updated_at: z.ZodNullable<z.ZodString>;
1411
+ deleted_at: z.ZodNullable<z.ZodString>;
1412
+ grant_count: z.ZodNumber;
1413
+ }, z.core.$strict>;
1414
+ }, z.core.$strict>;
1415
+ async: true;
1416
+ rate_limit: "account";
1417
+ description: string;
1418
+ }, {
1419
+ method: string;
1420
+ kind: "request_response";
1421
+ initiator: "frontend";
1422
+ auth: {
1423
+ account: "required";
1424
+ actor: "required";
1425
+ };
1426
+ side_effects: true;
1427
+ input: z.ZodObject<{
1428
+ cell_id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1429
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1430
+ acting: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1431
+ }, z.core.$strict>;
1432
+ output: z.ZodObject<{
1433
+ cell: z.ZodObject<{
1434
+ id: z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">;
1435
+ path: z.ZodNullable<z.core.$ZodBranded<z.ZodString, "CellPath", "out">>;
1436
+ data: z.ZodObject<{
1437
+ label: z.ZodOptional<z.ZodString>;
1438
+ summary: z.ZodOptional<z.ZodString>;
1439
+ }, z.core.$loose>;
1440
+ kind: z.ZodNullable<z.ZodString>;
1441
+ visibility: z.ZodEnum<{
1442
+ private: "private";
1443
+ public: "public";
1444
+ }>;
1445
+ refs: z.ZodNullable<z.ZodArray<z.ZodString & z.ZodType<import("@fuzdev/fuz_util/hash_schemas.js").FactHash, string, z.core.$ZodTypeInternals<import("@fuzdev/fuz_util/hash_schemas.js").FactHash, string>>>>;
1446
+ parent_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1447
+ root_id: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1448
+ moderation: z.ZodNullable<z.ZodString>;
1449
+ policy: z.ZodNullable<z.ZodObject<{}, z.core.$loose>>;
1250
1450
  created_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1251
1451
  updated_by: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "Uuid", "out">>;
1252
1452
  created_at: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"cell_action_specs.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/auth/cell_action_specs.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAEN,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAE3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,0BAA0B,EAC1B,6BAA6B,EAC7B,2BAA2B,EAE3B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,4BAA4B,EAC5B,0BAA0B,EAC1B,4BAA4B,EAC5B,0BAA0B,EAE1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEN,2BAA2B,EAC3B,MAAM,8BAA8B,CAAC;AAGtC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc;;;EAAgC,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAO5D,OAAO,EACN,6BAA6B,EAC7B,6BAA6B,EAC7B,2BAA2B,EAC3B,CAAC;AACF,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,CAAC;AAClG,OAAO,EACN,4BAA4B,EAC5B,0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