@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.
- package/README.md +1 -1
- package/dist/actions/CLAUDE.md +327 -300
- package/dist/actions/action_bridge.d.ts +5 -79
- package/dist/actions/action_bridge.d.ts.map +1 -1
- package/dist/actions/action_bridge.js +4 -74
- package/dist/actions/action_codegen.d.ts +8 -166
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +19 -95
- package/dist/actions/action_dispatcher.d.ts +10 -0
- package/dist/actions/action_dispatcher.d.ts.map +1 -1
- package/dist/actions/action_dispatcher.js +9 -6
- package/dist/actions/action_event.d.ts +1 -2
- package/dist/actions/action_event.d.ts.map +1 -1
- package/dist/actions/action_event.js +7 -13
- package/dist/actions/action_event_helpers.d.ts +1 -40
- package/dist/actions/action_event_helpers.d.ts.map +1 -1
- package/dist/actions/action_event_helpers.js +1 -25
- package/dist/actions/action_event_types.d.ts +1 -1
- package/dist/actions/action_event_types.d.ts.map +1 -1
- package/dist/actions/action_rpc.d.ts +10 -215
- package/dist/actions/action_rpc.d.ts.map +1 -1
- package/dist/actions/action_rpc.js +56 -111
- package/dist/actions/action_spec.d.ts +2 -2
- package/dist/actions/action_spec.js +2 -2
- package/dist/actions/action_types.d.ts +229 -8
- package/dist/actions/action_types.d.ts.map +1 -1
- package/dist/actions/action_types.js +56 -5
- package/dist/actions/broadcast_api.d.ts +22 -17
- package/dist/actions/broadcast_api.d.ts.map +1 -1
- package/dist/actions/broadcast_api.js +16 -27
- package/dist/actions/cancel.d.ts +4 -13
- package/dist/actions/cancel.d.ts.map +1 -1
- package/dist/actions/cancel.js +5 -17
- package/dist/actions/compile_action_registry.d.ts +1 -2
- package/dist/actions/compile_action_registry.d.ts.map +1 -1
- package/dist/actions/connection_closer.d.ts +120 -50
- package/dist/actions/connection_closer.d.ts.map +1 -1
- package/dist/actions/connection_closer.js +139 -31
- package/dist/actions/{transports_ws_backend.d.ts → connection_registry.d.ts} +120 -132
- package/dist/actions/connection_registry.d.ts.map +1 -0
- package/dist/actions/{transports_ws_backend.js → connection_registry.js} +149 -152
- package/dist/actions/frontend_rpc_client.d.ts +52 -2
- package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
- package/dist/actions/frontend_rpc_client.js +42 -4
- package/dist/actions/peer_ping.d.ts +7 -9
- package/dist/actions/peer_ping.d.ts.map +1 -1
- package/dist/actions/peer_ping.js +6 -8
- package/dist/actions/peer_request.d.ts +6 -5
- package/dist/actions/peer_request.d.ts.map +1 -1
- package/dist/actions/peer_request.js +6 -5
- package/dist/actions/perform_action.d.ts +36 -28
- package/dist/actions/perform_action.d.ts.map +1 -1
- package/dist/actions/perform_action.js +60 -31
- package/dist/actions/protocol.d.ts +14 -0
- package/dist/actions/protocol.d.ts.map +1 -1
- package/dist/actions/protocol.js +18 -0
- package/dist/actions/register_action_ws.d.ts +137 -292
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/register_action_ws.js +155 -903
- package/dist/actions/socket.svelte.d.ts +9 -0
- package/dist/actions/socket.svelte.d.ts.map +1 -1
- package/dist/actions/socket.svelte.js +16 -5
- package/dist/actions/transports.d.ts +88 -34
- package/dist/actions/transports.d.ts.map +1 -1
- package/dist/actions/transports.js +76 -76
- package/dist/actions/transports_http.d.ts +48 -12
- package/dist/actions/transports_http.d.ts.map +1 -1
- package/dist/actions/transports_http.js +75 -44
- package/dist/actions/transports_ws.d.ts +29 -0
- package/dist/actions/transports_ws.d.ts.map +1 -1
- package/dist/actions/transports_ws.js +34 -8
- package/dist/actions/ws_endpoint_spec.d.ts +53 -76
- package/dist/actions/ws_endpoint_spec.d.ts.map +1 -1
- package/dist/actions/ws_endpoint_spec.js +27 -10
- package/dist/actions/ws_outbound_writer.d.ts +3 -3
- package/dist/actions/ws_outbound_writer.js +3 -3
- package/dist/actions/ws_socket_session.d.ts +321 -0
- package/dist/actions/ws_socket_session.d.ts.map +1 -0
- package/dist/actions/ws_socket_session.js +783 -0
- package/dist/auth/CLAUDE.md +132 -68
- package/dist/auth/account_action_specs.d.ts +2 -0
- package/dist/auth/account_action_specs.d.ts.map +1 -1
- package/dist/auth/account_actions.d.ts +1 -1
- package/dist/auth/account_actions.d.ts.map +1 -1
- package/dist/auth/account_actions.js +9 -3
- package/dist/auth/account_queries.d.ts +10 -0
- package/dist/auth/account_queries.d.ts.map +1 -1
- package/dist/auth/account_queries.js +27 -17
- package/dist/auth/account_routes.d.ts +2 -1
- package/dist/auth/account_routes.d.ts.map +1 -1
- package/dist/auth/account_routes.js +14 -17
- package/dist/auth/account_schema.d.ts +5 -5
- package/dist/auth/account_schema.d.ts.map +1 -1
- package/dist/auth/account_schema.js +5 -2
- package/dist/auth/actor_lookup_actions.d.ts +1 -1
- package/dist/auth/actor_lookup_actions.d.ts.map +1 -1
- package/dist/auth/actor_lookup_actions.js +1 -1
- package/dist/auth/actor_lookup_queries.d.ts +3 -2
- package/dist/auth/actor_lookup_queries.d.ts.map +1 -1
- package/dist/auth/actor_lookup_queries.js +6 -3
- package/dist/auth/actor_search_action_specs.d.ts.map +1 -1
- package/dist/auth/actor_search_action_specs.js +2 -1
- package/dist/auth/actor_search_actions.d.ts +1 -1
- package/dist/auth/actor_search_actions.d.ts.map +1 -1
- package/dist/auth/actor_search_actions.js +1 -1
- package/dist/auth/actor_search_queries.d.ts +10 -7
- package/dist/auth/actor_search_queries.d.ts.map +1 -1
- package/dist/auth/actor_search_queries.js +18 -11
- package/dist/auth/admin_action_specs.d.ts +4 -4
- package/dist/auth/admin_action_specs.d.ts.map +1 -1
- package/dist/auth/admin_action_specs.js +7 -5
- package/dist/auth/admin_actions.d.ts +1 -1
- package/dist/auth/admin_actions.d.ts.map +1 -1
- package/dist/auth/admin_actions.js +47 -48
- package/dist/auth/all_cell_actions.d.ts +14 -3
- package/dist/auth/all_cell_actions.d.ts.map +1 -1
- package/dist/auth/all_cell_actions.js +2 -1
- package/dist/auth/api_token_queries.d.ts +1 -0
- package/dist/auth/api_token_queries.d.ts.map +1 -1
- package/dist/auth/api_token_queries.js +1 -0
- package/dist/auth/audit_emitter.d.ts +12 -6
- package/dist/auth/audit_emitter.d.ts.map +1 -1
- package/dist/auth/audit_emitter.js +11 -5
- package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_route_schema.js +3 -2
- package/dist/auth/audit_log_routes.d.ts +20 -11
- package/dist/auth/audit_log_routes.d.ts.map +1 -1
- package/dist/auth/audit_log_routes.js +49 -29
- package/dist/auth/audit_log_schema.d.ts +14 -21
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +19 -23
- package/dist/auth/bearer_auth.d.ts +7 -4
- package/dist/auth/bearer_auth.d.ts.map +1 -1
- package/dist/auth/bearer_auth.js +21 -15
- package/dist/auth/bootstrap_account.d.ts +25 -1
- package/dist/auth/bootstrap_account.d.ts.map +1 -1
- package/dist/auth/bootstrap_account.js +37 -4
- package/dist/auth/bootstrap_routes.d.ts +3 -2
- package/dist/auth/bootstrap_routes.d.ts.map +1 -1
- package/dist/auth/bootstrap_routes.js +5 -4
- package/dist/auth/cell_action_helpers.d.ts +89 -0
- package/dist/auth/cell_action_helpers.d.ts.map +1 -0
- package/dist/auth/cell_action_helpers.js +113 -0
- package/dist/auth/cell_action_specs.d.ts +215 -15
- package/dist/auth/cell_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_action_specs.js +103 -16
- package/dist/auth/cell_actions.d.ts +58 -27
- package/dist/auth/cell_actions.d.ts.map +1 -1
- package/dist/auth/cell_actions.js +206 -161
- package/dist/auth/cell_audit_actions.d.ts +1 -1
- package/dist/auth/cell_audit_actions.d.ts.map +1 -1
- package/dist/auth/cell_audit_actions.js +3 -12
- package/dist/auth/cell_audit_events.d.ts +1 -1
- package/dist/auth/cell_audit_events.d.ts.map +1 -1
- package/dist/auth/cell_audit_events.js +3 -2
- package/dist/auth/cell_audit_metadata.d.ts +12 -1
- package/dist/auth/cell_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_audit_metadata.js +11 -1
- package/dist/auth/cell_field_actions.d.ts +1 -1
- package/dist/auth/cell_field_actions.d.ts.map +1 -1
- package/dist/auth/cell_field_actions.js +16 -66
- package/dist/auth/cell_grant_action_specs.d.ts +9 -2
- package/dist/auth/cell_grant_action_specs.d.ts.map +1 -1
- package/dist/auth/cell_grant_action_specs.js +10 -3
- package/dist/auth/cell_grant_actions.d.ts +105 -11
- package/dist/auth/cell_grant_actions.d.ts.map +1 -1
- package/dist/auth/cell_grant_actions.js +81 -56
- package/dist/auth/cell_grant_audit_metadata.d.ts +6 -3
- package/dist/auth/cell_grant_audit_metadata.d.ts.map +1 -1
- package/dist/auth/cell_grant_audit_metadata.js +7 -4
- package/dist/auth/cell_item_actions.d.ts +1 -1
- package/dist/auth/cell_item_actions.d.ts.map +1 -1
- package/dist/auth/cell_item_actions.js +21 -82
- package/dist/auth/cleanup.d.ts +1 -1
- package/dist/auth/cleanup.d.ts.map +1 -1
- package/dist/auth/cleanup.js +6 -3
- package/dist/auth/credential_deadline.d.ts +3 -3
- package/dist/auth/credential_deadline.js +3 -3
- package/dist/auth/credential_type_schema.d.ts +8 -7
- package/dist/auth/credential_type_schema.d.ts.map +1 -1
- package/dist/auth/credential_type_schema.js +8 -7
- package/dist/auth/daemon_token_middleware.d.ts +12 -6
- package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
- package/dist/auth/daemon_token_middleware.js +28 -17
- package/dist/auth/deps.d.ts +4 -4
- package/dist/auth/fail_floor.d.ts +55 -0
- package/dist/auth/fail_floor.d.ts.map +1 -0
- package/dist/auth/fail_floor.js +63 -0
- package/dist/auth/invite_queries.d.ts +3 -15
- package/dist/auth/invite_queries.d.ts.map +1 -1
- package/dist/auth/invite_queries.js +3 -21
- package/dist/auth/middleware.d.ts +12 -7
- package/dist/auth/middleware.d.ts.map +1 -1
- package/dist/auth/middleware.js +42 -29
- package/dist/auth/migrations.d.ts +5 -33
- package/dist/auth/migrations.d.ts.map +1 -1
- package/dist/auth/migrations.js +9 -16
- package/dist/auth/request_context.d.ts +101 -71
- package/dist/auth/request_context.d.ts.map +1 -1
- package/dist/auth/request_context.js +137 -140
- package/dist/auth/resolved_auth.d.ts +122 -36
- package/dist/auth/resolved_auth.d.ts.map +1 -1
- package/dist/auth/resolved_auth.js +89 -38
- package/dist/auth/role_grant_offer_action_specs.d.ts +117 -16
- package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_action_specs.js +51 -16
- package/dist/auth/role_grant_offer_actions.d.ts +22 -11
- package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_actions.js +72 -19
- package/dist/auth/role_grant_offer_notifications.d.ts +6 -5
- package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_notifications.js +4 -3
- package/dist/auth/role_grant_offer_queries.d.ts +20 -5
- package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_queries.js +40 -37
- package/dist/auth/role_grant_queries.d.ts +44 -76
- package/dist/auth/role_grant_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_queries.js +73 -118
- package/dist/auth/role_grant_sql.d.ts +42 -0
- package/dist/auth/role_grant_sql.d.ts.map +1 -0
- package/dist/auth/role_grant_sql.js +54 -0
- package/dist/auth/role_schema.d.ts +14 -8
- package/dist/auth/role_schema.d.ts.map +1 -1
- package/dist/auth/role_schema.js +6 -3
- package/dist/auth/scope_kind_schema.d.ts +1 -1
- package/dist/auth/scope_kind_schema.js +1 -1
- package/dist/auth/self_service_role_actions.d.ts +1 -1
- package/dist/auth/self_service_role_actions.d.ts.map +1 -1
- package/dist/auth/self_service_role_actions.js +21 -1
- package/dist/auth/session_queries.d.ts +2 -1
- package/dist/auth/session_queries.d.ts.map +1 -1
- package/dist/auth/session_queries.js +2 -1
- package/dist/auth/signup_routes.d.ts +2 -1
- package/dist/auth/signup_routes.d.ts.map +1 -1
- package/dist/auth/signup_routes.js +14 -13
- package/dist/auth/standard_rpc_actions.d.ts +1 -1
- package/dist/auth/standard_rpc_actions.d.ts.map +1 -1
- package/dist/auth/token_scope.d.ts +19 -46
- package/dist/auth/token_scope.d.ts.map +1 -1
- package/dist/auth/token_scope.js +23 -41
- package/dist/db/CLAUDE.md +18 -6
- package/dist/db/cell_ddl.d.ts +5 -134
- package/dist/db/cell_ddl.d.ts.map +1 -1
- package/dist/db/cell_ddl.js +28 -17
- package/dist/db/cell_field_queries.d.ts +0 -13
- package/dist/db/cell_field_queries.d.ts.map +1 -1
- package/dist/db/cell_field_queries.js +0 -16
- package/dist/db/cell_grant_queries.d.ts +10 -5
- package/dist/db/cell_grant_queries.d.ts.map +1 -1
- package/dist/db/cell_grant_queries.js +13 -7
- package/dist/db/cell_item_queries.d.ts +0 -7
- package/dist/db/cell_item_queries.d.ts.map +1 -1
- package/dist/db/cell_item_queries.js +0 -10
- package/dist/db/cell_queries.d.ts +65 -55
- package/dist/db/cell_queries.d.ts.map +1 -1
- package/dist/db/cell_queries.js +85 -62
- package/dist/db/cell_view_sql.d.ts +1 -6
- package/dist/db/cell_view_sql.d.ts.map +1 -1
- package/dist/db/cell_view_sql.js +1 -2
- package/dist/db/fact_ddl.d.ts +5 -30
- package/dist/db/fact_ddl.d.ts.map +1 -1
- package/dist/db/fact_ddl.js +14 -13
- package/dist/db/fact_store.d.ts +11 -0
- package/dist/db/fact_store.d.ts.map +1 -1
- package/dist/db/fact_store.js +4 -1
- package/dist/db/migrate.d.ts +44 -6
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +63 -4
- package/dist/dev/setup.d.ts +18 -14
- package/dist/dev/setup.d.ts.map +1 -1
- package/dist/dev/setup.js +42 -39
- package/dist/env/dotenv.d.ts +2 -2
- package/dist/env/dotenv.js +2 -2
- package/dist/env/update_env_variable.d.ts +33 -21
- package/dist/env/update_env_variable.d.ts.map +1 -1
- package/dist/env/update_env_variable.js +54 -35
- package/dist/hono_context.d.ts +15 -90
- package/dist/hono_context.d.ts.map +1 -1
- package/dist/hono_context.js +9 -56
- package/dist/http/CLAUDE.md +35 -20
- package/dist/http/auth_shape.d.ts +1 -8
- package/dist/http/auth_shape.d.ts.map +1 -1
- package/dist/http/auth_shape.js +6 -12
- package/dist/http/body_limit.d.ts +3 -1
- package/dist/http/body_limit.d.ts.map +1 -1
- package/dist/http/body_limit.js +6 -1
- package/dist/http/common_routes.d.ts.map +1 -1
- package/dist/http/common_routes.js +3 -2
- package/dist/http/db_routes.d.ts +3 -3
- package/dist/http/db_routes.js +3 -3
- package/dist/http/error_schemas.d.ts +1 -2
- package/dist/http/error_schemas.d.ts.map +1 -1
- package/dist/http/error_schemas.js +1 -2
- package/dist/http/health_schema.d.ts +16 -0
- package/dist/http/health_schema.d.ts.map +1 -0
- package/dist/http/health_schema.js +12 -0
- package/dist/http/jsonrpc.d.ts +9 -0
- package/dist/http/jsonrpc.d.ts.map +1 -1
- package/dist/http/jsonrpc.js +17 -0
- package/dist/http/jsonrpc_errors.d.ts +22 -2
- package/dist/http/jsonrpc_errors.d.ts.map +1 -1
- package/dist/http/jsonrpc_errors.js +70 -23
- package/dist/http/jsonrpc_helpers.d.ts +60 -17
- package/dist/http/jsonrpc_helpers.d.ts.map +1 -1
- package/dist/http/jsonrpc_helpers.js +67 -25
- package/dist/http/origin.d.ts +30 -1
- package/dist/http/origin.d.ts.map +1 -1
- package/dist/http/origin.js +46 -9
- package/dist/http/origin_wildcard.d.ts +97 -0
- package/dist/http/origin_wildcard.d.ts.map +1 -0
- package/dist/http/origin_wildcard.js +142 -0
- package/dist/http/pending_effects.d.ts +28 -0
- package/dist/http/pending_effects.d.ts.map +1 -1
- package/dist/http/pending_effects.js +32 -1
- package/dist/http/proxy.d.ts +4 -2
- package/dist/http/proxy.d.ts.map +1 -1
- package/dist/http/proxy.js +7 -2
- package/dist/http/route_spec.d.ts +4 -3
- package/dist/http/route_spec.d.ts.map +1 -1
- package/dist/http/route_spec.js +54 -45
- package/dist/http/surface.d.ts +4 -2
- package/dist/http/surface.d.ts.map +1 -1
- package/dist/http/surface.js +7 -4
- package/dist/http/surface_query.d.ts +9 -50
- package/dist/http/surface_query.d.ts.map +1 -1
- package/dist/http/surface_query.js +48 -94
- package/dist/realtime/audit_log_sse.d.ts +180 -0
- package/dist/realtime/audit_log_sse.d.ts.map +1 -0
- package/dist/realtime/audit_log_sse.js +154 -0
- package/dist/realtime/sse.d.ts +21 -6
- package/dist/realtime/sse.d.ts.map +1 -1
- package/dist/realtime/sse.js +33 -10
- package/dist/realtime/sse_constants.d.ts +29 -2
- package/dist/realtime/sse_constants.d.ts.map +1 -1
- package/dist/realtime/sse_constants.js +35 -2
- package/dist/realtime/{subscriber_registry.d.ts → sse_registry.d.ts} +12 -12
- package/dist/realtime/sse_registry.d.ts.map +1 -0
- package/dist/realtime/{subscriber_registry.js → sse_registry.js} +4 -4
- package/dist/schema_meta.d.ts +52 -1
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/schema_meta.js +123 -6
- package/dist/sensitivity.d.ts +9 -3
- package/dist/sensitivity.d.ts.map +1 -1
- package/dist/sensitivity.js +3 -2
- package/dist/server/app_backend.d.ts +8 -5
- package/dist/server/app_backend.d.ts.map +1 -1
- package/dist/server/app_backend.js +6 -12
- package/dist/server/app_server.d.ts +73 -54
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +115 -78
- package/dist/server/app_server_context.d.ts +1 -1
- package/dist/server/app_server_context.d.ts.map +1 -1
- package/dist/server/env.d.ts +24 -20
- package/dist/server/env.d.ts.map +1 -1
- package/dist/server/env.js +24 -34
- package/dist/server/serve_fact_route.d.ts +12 -16
- package/dist/server/serve_fact_route.d.ts.map +1 -1
- package/dist/server/serve_fact_route.js +59 -34
- package/dist/server/static.d.ts.map +1 -1
- package/dist/server/static.js +2 -2
- package/dist/testing/CLAUDE.md +213 -179
- package/dist/testing/admin_integration.d.ts.map +1 -1
- package/dist/testing/admin_integration.js +10 -19
- package/dist/testing/adversarial_headers.d.ts.map +1 -1
- package/dist/testing/adversarial_headers.js +8 -0
- package/dist/testing/app_server.d.ts +9 -75
- package/dist/testing/app_server.d.ts.map +1 -1
- package/dist/testing/app_server.js +31 -112
- package/dist/testing/attack_surface.d.ts.map +1 -1
- package/dist/testing/attack_surface.js +3 -4
- package/dist/testing/audit_completeness.d.ts.map +1 -1
- package/dist/testing/audit_completeness.js +4 -5
- package/dist/testing/auth_apps.d.ts +3 -3
- package/dist/testing/auth_apps.d.ts.map +1 -1
- package/dist/testing/auth_apps.js +9 -6
- package/dist/testing/connection_closer_helpers.d.ts +8 -16
- package/dist/testing/connection_closer_helpers.d.ts.map +1 -1
- package/dist/testing/connection_closer_helpers.js +7 -20
- package/dist/testing/cross_backend/action_manifest.d.ts +15 -4
- package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest.js +13 -3
- package/dist/testing/cross_backend/action_manifest_parity.d.ts +15 -7
- package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
- package/dist/testing/cross_backend/action_manifest_parity.js +8 -1
- package/dist/testing/cross_backend/actor_lookup.d.ts.map +1 -1
- package/dist/testing/cross_backend/actor_lookup.js +27 -0
- package/dist/testing/cross_backend/body_size.d.ts.map +1 -1
- package/dist/testing/cross_backend/body_size.js +25 -22
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts +22 -3
- package/dist/testing/cross_backend/build_test_backend_paths.d.ts.map +1 -1
- package/dist/testing/cross_backend/build_test_backend_paths.js +34 -11
- package/dist/testing/cross_backend/capabilities.d.ts +15 -8
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_gated_create.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_gated_create.js +109 -13
- package/dist/testing/cross_backend/cell_grant_role.js +2 -2
- package/dist/testing/cross_backend/cell_grant_steward.d.ts +4 -0
- package/dist/testing/cross_backend/cell_grant_steward.d.ts.map +1 -0
- package/dist/testing/cross_backend/cell_grant_steward.js +120 -0
- package/dist/testing/cross_backend/cell_moderate.d.ts +7 -1
- package/dist/testing/cross_backend/cell_moderate.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_moderate.js +68 -4
- package/dist/testing/cross_backend/cell_ref_admission.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_ref_admission.js +18 -9
- package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
- package/dist/testing/cross_backend/cell_relations.js +21 -0
- package/dist/testing/cross_backend/conformance_table.d.ts +6 -1
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- package/dist/testing/cross_backend/conformance_table.js +12 -10
- package/dist/testing/cross_backend/default_backend_configs.d.ts +18 -4
- package/dist/testing/cross_backend/default_backend_configs.d.ts.map +1 -1
- package/dist/testing/cross_backend/default_backend_configs.js +29 -9
- package/dist/testing/cross_backend/default_spine_surface.d.ts +7 -7
- package/dist/testing/cross_backend/default_spine_surface.js +2 -2
- package/dist/testing/cross_backend/differential.d.ts +7 -0
- package/dist/testing/cross_backend/differential.d.ts.map +1 -1
- package/dist/testing/cross_backend/differential.js +17 -0
- package/dist/testing/cross_backend/expected_schema.json +1 -0
- package/dist/testing/cross_backend/fact_serving.d.ts.map +1 -1
- package/dist/testing/cross_backend/fact_serving.js +48 -0
- package/dist/testing/cross_backend/full_spine_mount.d.ts +3 -4
- package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
- package/dist/testing/cross_backend/full_spine_mount.js +13 -5
- package/dist/testing/cross_backend/origin_scope.d.ts.map +1 -1
- package/dist/testing/cross_backend/origin_scope.js +5 -13
- package/dist/testing/cross_backend/peer_ping_ws.d.ts.map +1 -1
- package/dist/testing/cross_backend/peer_ping_ws.js +29 -4
- package/dist/testing/cross_backend/postgres_database.d.ts +32 -0
- package/dist/testing/cross_backend/postgres_database.d.ts.map +1 -1
- package/dist/testing/cross_backend/postgres_database.js +56 -1
- package/dist/testing/cross_backend/query_shape.d.ts.map +1 -1
- package/dist/testing/cross_backend/query_shape.js +18 -1
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
- package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +96 -2
- package/dist/testing/cross_backend/rpc_success_fixtures.js +2 -2
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
- package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts +17 -5
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/rust_spine_stub_backend_config.js +5 -4
- package/dist/testing/cross_backend/session_cap.d.ts +8 -0
- package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/session_cap.js +66 -2
- package/dist/testing/cross_backend/setup.d.ts.map +1 -1
- package/dist/testing/cross_backend/setup.js +5 -4
- package/dist/testing/cross_backend/spine_suites.d.ts +4 -1
- package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_suites.js +21 -0
- package/dist/testing/cross_backend/spine_surface_constants.d.ts +22 -7
- package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
- package/dist/testing/cross_backend/spine_surface_constants.js +22 -7
- package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/sse_round_trip.js +4 -3
- package/dist/testing/cross_backend/standard.d.ts +6 -12
- package/dist/testing/cross_backend/standard.d.ts.map +1 -1
- package/dist/testing/cross_backend/test_cell_gated_create_authorize.d.ts +18 -19
- package/dist/testing/cross_backend/test_cell_gated_create_authorize.d.ts.map +1 -1
- package/dist/testing/cross_backend/test_cell_gated_create_authorize.js +66 -42
- package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts +8 -0
- package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.d.ts.map +1 -0
- package/dist/testing/cross_backend/test_cell_grant_steward_revoke_authorize.js +22 -0
- package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_backdoor.js +4 -6
- package/dist/testing/cross_backend/testing_origin_check.d.ts +1 -1
- package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_origin_check.js +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.d.ts +10 -5
- package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_reset_actions.js +7 -6
- package/dist/testing/cross_backend/testing_server_bun.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_bun.js +5 -4
- package/dist/testing/cross_backend/testing_server_core.d.ts +6 -7
- package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_core.js +1 -1
- package/dist/testing/cross_backend/testing_server_node.d.ts.map +1 -1
- package/dist/testing/cross_backend/testing_server_node.js +13 -2
- package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
- package/dist/testing/cross_backend/token_lifetime.js +68 -0
- package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
- package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
- package/dist/testing/cross_backend/transport_composition.js +48 -6
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts +16 -2
- package/dist/testing/cross_backend/ts_spine_backend_config.d.ts.map +1 -1
- package/dist/testing/cross_backend/ts_spine_backend_config.js +11 -8
- package/dist/testing/cross_backend/ws_action_rate_limit.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_action_rate_limit.js +30 -12
- package/dist/testing/cross_backend/ws_connection_cap.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_connection_cap.js +5 -7
- package/dist/testing/cross_backend/ws_endpoint.d.ts +2 -3
- package/dist/testing/cross_backend/ws_endpoint.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_envelope.d.ts +17 -0
- package/dist/testing/cross_backend/ws_envelope.d.ts.map +1 -0
- package/dist/testing/cross_backend/ws_envelope.js +172 -0
- package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts +16 -0
- package/dist/testing/cross_backend/ws_inbound_dispatch.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_inbound_dispatch.js +8 -4
- package/dist/testing/cross_backend/ws_outbound_overflow.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_outbound_overflow.js +5 -8
- package/dist/testing/cross_backend/ws_role_gated.js +2 -2
- package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/cross_backend/ws_round_trip.js +6 -4
- package/dist/{cli/daemon.d.ts → testing/daemon_info.d.ts} +15 -47
- package/dist/testing/daemon_info.d.ts.map +1 -0
- package/dist/testing/daemon_info.js +108 -0
- package/dist/testing/daemon_token_rotation.js +1 -1
- package/dist/testing/data_exposure.d.ts.map +1 -1
- package/dist/testing/data_exposure.js +3 -4
- package/dist/testing/db.js +2 -2
- package/dist/testing/integration.d.ts.map +1 -1
- package/dist/testing/integration.js +35 -65
- package/dist/testing/integration_helpers.d.ts +0 -15
- package/dist/testing/integration_helpers.d.ts.map +1 -1
- package/dist/testing/integration_helpers.js +2 -42
- package/dist/testing/middleware.d.ts +20 -12
- package/dist/testing/middleware.d.ts.map +1 -1
- package/dist/testing/middleware.js +49 -40
- package/dist/testing/rate_limiting.d.ts.map +1 -1
- package/dist/testing/rate_limiting.js +13 -22
- package/dist/testing/resolved_auth.d.ts +30 -0
- package/dist/testing/resolved_auth.d.ts.map +1 -0
- package/dist/testing/resolved_auth.js +41 -0
- package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
- package/dist/testing/rpc_envelope_cases.js +3 -0
- package/dist/testing/rpc_helpers.d.ts +1 -1
- package/dist/testing/rpc_helpers.d.ts.map +1 -1
- package/dist/testing/rpc_helpers.js +2 -1
- package/dist/testing/sse_round_trip.d.ts +5 -4
- package/dist/testing/sse_round_trip.d.ts.map +1 -1
- package/dist/testing/sse_round_trip.js +2 -2
- package/dist/testing/stubs.d.ts +2 -2
- package/dist/testing/stubs.d.ts.map +1 -1
- package/dist/testing/stubs.js +24 -21
- package/dist/testing/test_origin.d.ts +25 -0
- package/dist/testing/test_origin.d.ts.map +1 -0
- package/dist/testing/test_origin.js +28 -0
- package/dist/testing/transports/raw_http.d.ts +54 -0
- package/dist/testing/transports/raw_http.d.ts.map +1 -1
- package/dist/testing/transports/raw_http.js +58 -0
- package/dist/testing/transports/ws_raw_client.d.ts +8 -0
- package/dist/testing/transports/ws_raw_client.d.ts.map +1 -1
- package/dist/testing/transports/ws_raw_client.js +13 -0
- package/dist/testing/transports/ws_transport.d.ts +15 -2
- package/dist/testing/transports/ws_transport.d.ts.map +1 -1
- package/dist/testing/transports/ws_transport.js +4 -2
- package/dist/testing/ws_round_trip.d.ts +27 -25
- package/dist/testing/ws_round_trip.d.ts.map +1 -1
- package/dist/testing/ws_round_trip.js +34 -26
- package/dist/ui/AccountSessions.svelte +48 -19
- package/dist/ui/AccountSessions.svelte.d.ts +2 -17
- package/dist/ui/AccountSessions.svelte.d.ts.map +1 -1
- package/dist/ui/AdminAccounts.svelte +6 -1
- package/dist/ui/AdminAuditLog.svelte +61 -22
- package/dist/ui/AdminAuditLog.svelte.d.ts.map +1 -1
- package/dist/ui/AdminInvites.svelte +1 -1
- package/dist/ui/AdminOverview.svelte +76 -37
- package/dist/ui/AdminOverview.svelte.d.ts.map +1 -1
- package/dist/ui/AdminRoleGrantHistory.svelte +6 -1
- package/dist/ui/AdminSessions.svelte +1 -1
- package/dist/ui/AppShell.svelte +3 -2
- package/dist/ui/AppShell.svelte.d.ts +3 -2
- package/dist/ui/AppShell.svelte.d.ts.map +1 -1
- package/dist/ui/CLAUDE.md +121 -35
- package/dist/ui/Datatable.svelte +33 -18
- package/dist/ui/Datatable.svelte.d.ts +2 -14
- package/dist/ui/Datatable.svelte.d.ts.map +1 -1
- package/dist/ui/OpenSignupToggle.svelte +10 -1
- package/dist/ui/OpenSignupToggle.svelte.d.ts.map +1 -1
- package/dist/ui/PopoverButton.svelte +13 -8
- package/dist/ui/PopoverButton.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferForm.svelte +3 -2
- package/dist/ui/RoleGrantOfferForm.svelte.d.ts +3 -2
- package/dist/ui/RoleGrantOfferForm.svelte.d.ts.map +1 -1
- package/dist/ui/RoleGrantOfferHistory.svelte +3 -3
- package/dist/ui/RoleGrantOfferInbox.svelte +19 -15
- package/dist/ui/RoleGrantOfferInbox.svelte.d.ts.map +1 -1
- package/dist/ui/SurfaceExplorer.svelte +66 -27
- package/dist/ui/SurfaceExplorer.svelte.d.ts.map +1 -1
- package/dist/ui/account_sessions_state.svelte.d.ts +7 -14
- package/dist/ui/account_sessions_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_accounts_state.svelte.d.ts +14 -9
- package/dist/ui/admin_accounts_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_accounts_state.svelte.js +6 -4
- package/dist/ui/admin_invites_state.svelte.d.ts +2 -2
- package/dist/ui/admin_invites_state.svelte.d.ts.map +1 -1
- package/dist/ui/admin_rpc_adapters.d.ts +9 -9
- package/dist/ui/admin_rpc_adapters.d.ts.map +1 -1
- package/dist/ui/admin_rpc_adapters.js +9 -9
- package/dist/ui/app_settings_state.svelte.d.ts +2 -2
- package/dist/ui/app_settings_state.svelte.d.ts.map +1 -1
- package/dist/ui/audit_log_state.svelte.d.ts +70 -13
- package/dist/ui/audit_log_state.svelte.d.ts.map +1 -1
- package/dist/ui/audit_log_state.svelte.js +239 -47
- package/dist/ui/backend_probe.svelte.d.ts +93 -0
- package/dist/ui/backend_probe.svelte.d.ts.map +1 -0
- package/dist/ui/backend_probe.svelte.js +140 -0
- package/dist/ui/format_scope.d.ts +7 -7
- package/dist/ui/format_scope.d.ts.map +1 -1
- package/dist/ui/format_scope.js +4 -4
- package/dist/ui/keyed_async_slot.svelte.d.ts +2 -2
- package/dist/ui/keyed_async_slot.svelte.js +2 -2
- package/dist/ui/popover.svelte.d.ts +18 -19
- package/dist/ui/popover.svelte.d.ts.map +1 -1
- package/dist/ui/popover.svelte.js +103 -16
- package/dist/ui/role_grant_offers_state.svelte.d.ts +41 -46
- package/dist/ui/role_grant_offers_state.svelte.d.ts.map +1 -1
- package/dist/ui/role_grant_offers_state.svelte.js +37 -19
- package/dist/ui/ui_format.d.ts +17 -0
- package/dist/ui/ui_format.d.ts.map +1 -1
- package/dist/ui/ui_format.js +20 -0
- package/package.json +2 -1
- package/dist/actions/register_ws_endpoint.d.ts +0 -79
- package/dist/actions/register_ws_endpoint.d.ts.map +0 -1
- package/dist/actions/register_ws_endpoint.js +0 -109
- package/dist/actions/transports_ws_auth_guard.d.ts +0 -94
- package/dist/actions/transports_ws_auth_guard.d.ts.map +0 -1
- package/dist/actions/transports_ws_auth_guard.js +0 -138
- package/dist/actions/transports_ws_backend.d.ts.map +0 -1
- package/dist/cli/args.d.ts +0 -55
- package/dist/cli/args.d.ts.map +0 -1
- package/dist/cli/args.js +0 -100
- package/dist/cli/config.d.ts +0 -47
- package/dist/cli/config.d.ts.map +0 -1
- package/dist/cli/config.js +0 -77
- package/dist/cli/daemon.d.ts.map +0 -1
- package/dist/cli/daemon.js +0 -181
- package/dist/cli/help.d.ts +0 -124
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js +0 -215
- package/dist/cli/logger.d.ts +0 -46
- package/dist/cli/logger.d.ts.map +0 -1
- package/dist/cli/logger.js +0 -48
- package/dist/cli/util.d.ts +0 -36
- package/dist/cli/util.d.ts.map +0 -1
- package/dist/cli/util.js +0 -50
- package/dist/realtime/sse_auth_guard.d.ts +0 -197
- package/dist/realtime/sse_auth_guard.d.ts.map +0 -1
- package/dist/realtime/sse_auth_guard.js +0 -238
- package/dist/realtime/subscriber_registry.d.ts.map +0 -1
- package/dist/testing/bootstrap_success.d.ts +0 -29
- package/dist/testing/bootstrap_success.d.ts.map +0 -1
- package/dist/testing/bootstrap_success.js +0 -144
- package/dist/testing/mock_fs.d.ts +0 -20
- package/dist/testing/mock_fs.d.ts.map +0 -1
- package/dist/testing/mock_fs.js +0 -28
- package/dist/testing/standard.d.ts +0 -122
- package/dist/testing/standard.d.ts.map +0 -1
- package/dist/testing/standard.js +0 -73
- package/dist/testing/testing_rate_limiter.d.ts +0 -65
- package/dist/testing/testing_rate_limiter.d.ts.map +0 -1
- package/dist/testing/testing_rate_limiter.js +0 -80
|
@@ -9,10 +9,12 @@ import type { TestingBackdoorMethod } from './spine_surface_constants.js';
|
|
|
9
9
|
export interface BackendCapabilities {
|
|
10
10
|
/**
|
|
11
11
|
* WebSocket transport is reachable end-to-end. Gates the cross-process
|
|
12
|
-
* WS round-trip suite
|
|
13
|
-
* (`describe_ws_connection_cap_cross_tests`)
|
|
14
|
-
* `
|
|
15
|
-
*
|
|
12
|
+
* WS round-trip suite, the per-account connection-cap suite
|
|
13
|
+
* (`describe_ws_connection_cap_cross_tests`), and the front door's
|
|
14
|
+
* WS-path cases (`describe_transport_composition_cross_tests`) — the
|
|
15
|
+
* upgrade rows, and the rows that ask for no upgrade, which run in-process
|
|
16
|
+
* too; the in-process `describe_ws_round_trip_tests` runs against
|
|
17
|
+
* `register_action_ws` directly and ignores this flag.
|
|
16
18
|
*/
|
|
17
19
|
readonly ws: boolean;
|
|
18
20
|
/**
|
|
@@ -66,10 +68,13 @@ export interface BackendCapabilities {
|
|
|
66
68
|
* `testing_backdoors`, which `describe_spine_cross_suites` requires. Gates
|
|
67
69
|
* `describe_fact_serving_cross_tests`' per-reference read model (cell-scoped
|
|
68
70
|
* admit via a viewable cell, cross-owner-dedup-no-leak, 404-mask),
|
|
69
|
-
* `describe_cell_ref_admission_cross_tests
|
|
71
|
+
* `describe_cell_ref_admission_cross_tests` (its grant, item, and clone
|
|
72
|
+
* cases with `cell_relations`), and the fact cases of the
|
|
70
73
|
* moderation suite. Like cells, the serve route stays off the standard
|
|
71
74
|
* declared surface. The admin bare-hash route is its own flag,
|
|
72
|
-
* `fact_serving_admin_hash`.
|
|
75
|
+
* `fact_serving_admin_hash`. The suite's missing-disk-file case assumes the
|
|
76
|
+
* backend serves external facts from disk: one with X-Accel delivery on
|
|
77
|
+
* hands off with a `200` (nginx would answer the missing file) and fails it.
|
|
73
78
|
*/
|
|
74
79
|
readonly fact_serving: boolean;
|
|
75
80
|
/**
|
|
@@ -111,7 +116,7 @@ export interface BackendCapabilities {
|
|
|
111
116
|
* wrong-shape reply rejection).
|
|
112
117
|
*
|
|
113
118
|
* `true` on fuz_app's own spine presets — the Rust `testing_spine_stub` and
|
|
114
|
-
* the TS spine (`
|
|
119
|
+
* the TS spine (`ConnectionRegistry.request_connection` drives the
|
|
115
120
|
* round-trip, correlated by `register_action_ws`). A `MountFlag`: a backend
|
|
116
121
|
* states `true` once it mounts `peer/ping` on a WS endpoint **and** the HTTP
|
|
117
122
|
* RPC endpoint (the no-transport refusal).
|
|
@@ -166,7 +171,9 @@ export interface BackendCapabilities {
|
|
|
166
171
|
* catches one. `true` only on the reference spine binaries that mount the
|
|
167
172
|
* test policy (the TS spine `full_spine_mount` + the Rust
|
|
168
173
|
* `testing_spine_stub`); consumers and the in-process default app don't
|
|
169
|
-
* mount it.
|
|
174
|
+
* mount it. The same binaries mount the steward-revoke test policy
|
|
175
|
+
* (`test_cell_grant_steward_revoke_authorize`) beside it, so the flag also
|
|
176
|
+
* gates `describe_cell_grant_steward_cross_tests` (with `cell_relations`).
|
|
170
177
|
*/
|
|
171
178
|
readonly cell_gated_create: boolean;
|
|
172
179
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAkD9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IACnC
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAkD9B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAE1E;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IACnC;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B;;;;;;;;OAQG;IACH,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC;IAC1C;;;;;;;;OAQG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB;;;;;;;;OAQG;IACH,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACjC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,uBAAuB,EAAE,OAAO,CAAC;IAC1C;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACjE;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,IAAI,CACjC,mBAAmB,EACjB,IAAI,GACJ,KAAK,GACL,WAAW,GACX,gBAAgB,GAChB,mBAAmB,GACnB,cAAc,GACd,yBAAyB,GACzB,OAAO,GACP,cAAc,GACd,oBAAoB,GACpB,eAAe,CACjB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,mBAAmB,CAAC,CAAC;AAEnG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,EAAE,mBA4BpC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,GAAI,MAAM,OAAO,EAAE,MAAM,MAAM,EAAE,IAAI,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAG,IAMrF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell_gated_create.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_gated_create.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"cell_gated_create.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_gated_create.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAuE9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAQ1E,eAAO,MAAM,sCAAsC,GAClD,SAAS,uCAAuC,KAC9C,IAwkBF,CAAC"}
|
|
@@ -14,9 +14,10 @@ import '../assert_dev_env.js';
|
|
|
14
14
|
* `create_test_cell_gated_create_authorize`, the Rust `testing_spine_stub` via
|
|
15
15
|
* `TestCellGatedCreateAuthorize`): admin bypasses; a non-admin creating a
|
|
16
16
|
* `kind: 'space'` **root** is denied (admin-only); a **contribution** under a
|
|
17
|
-
* space is gated by the space's `
|
|
18
|
-
*
|
|
19
|
-
* stay open. The suite asserts all
|
|
17
|
+
* space is gated by the space's `policy[kind] = {min_role, moderation_required}`
|
|
18
|
+
* (the root's manage-tier `policy` column), with the moderation outcome folded
|
|
19
|
+
* into the verdict; plain parentless creates stay open. The suite asserts all
|
|
20
|
+
* spines agree on:
|
|
20
21
|
*
|
|
21
22
|
* - **root-create admin-only** — a non-admin `space` root → **403**
|
|
22
23
|
* `cell_create_forbidden`; admin → succeeds.
|
|
@@ -37,6 +38,15 @@ import '../assert_dev_env.js';
|
|
|
37
38
|
* - **clone is no side door** — `cell_clone` runs the authorizer for every cell
|
|
38
39
|
* it writes as a parentless create, so a non-admin clone of a viewable
|
|
39
40
|
* `space` root → **403** `cell_create_forbidden`; admin → succeeds.
|
|
41
|
+
* - **the root policy is the manager's** — `cell_policy_set` writes it (the new
|
|
42
|
+
* and the previous policy audited), answers an editor-grant holder **403**
|
|
43
|
+
* `cell_policy_manage_only` and a non-viewer the 404 mask, refuses a
|
|
44
|
+
* contribution `cell_policy_root_only` (as `cell_create` refuses a policy
|
|
45
|
+
* beside a `parent_id`), and passes each policy through the authorizer's
|
|
46
|
+
* validation (`cell_policy_invalid`); an editor rewriting the root's
|
|
47
|
+
* `data.policy` leaves moderation as the column says. The refusal with no
|
|
48
|
+
* authorizer mounted (`cell_policy_unsupported`) can't run here — both spines
|
|
49
|
+
* mount one — and is pinned in-process on each.
|
|
40
50
|
*
|
|
41
51
|
* Gated on `capabilities.cell_gated_create` — `true` only on the reference
|
|
42
52
|
* spine binaries that mount the policy, so it skips for generic consumers and
|
|
@@ -46,7 +56,9 @@ import '../assert_dev_env.js';
|
|
|
46
56
|
* @module
|
|
47
57
|
*/
|
|
48
58
|
import { describe, assert } from 'vitest';
|
|
49
|
-
import { CellCreateOutput } from '../../auth/cell_action_specs.js';
|
|
59
|
+
import { CellCreateOutput, CellGetOutput, CellPolicySetOutput, CellUpdateOutput } from '../../auth/cell_action_specs.js';
|
|
60
|
+
import { CellGrantCreateOutput } from '../../auth/cell_grant_action_specs.js';
|
|
61
|
+
import { list_audit_events } from './audit_cross_helpers.js';
|
|
50
62
|
import { test_if } from './capabilities.js';
|
|
51
63
|
import { cross_rpc_call, error_reason, expect_output } from './cross_rpc.js';
|
|
52
64
|
import { SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
@@ -61,7 +73,7 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
61
73
|
const denied = await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {} }, stranger.create_session_headers());
|
|
62
74
|
assert.ok(!denied.ok, 'a non-admin must not create a space root');
|
|
63
75
|
assert.strictEqual(error_reason(denied), 'cell_create_forbidden');
|
|
64
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
76
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
65
77
|
assert.strictEqual(space.cell.kind, SPACE_CELL_KIND, 'admin creates the space root');
|
|
66
78
|
assert.strictEqual(space.cell.parent_id, null, 'a root is parentless');
|
|
67
79
|
assert.strictEqual(space.cell.root_id, null, 'a root has no governing root');
|
|
@@ -69,7 +81,7 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
69
81
|
});
|
|
70
82
|
test_if(capabilities.cell_gated_create, 'a contribution under a public space: unauthorized → 403, participant → allowed', async () => {
|
|
71
83
|
const fixture = await setup_test();
|
|
72
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
84
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
73
85
|
// A non-participant sees the public space but can't contribute → 403.
|
|
74
86
|
const stranger = await fixture.create_account({ username: 'post_stranger' });
|
|
75
87
|
const forbidden = await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'post', data: {}, parent_id: space.cell.id }, stranger.create_session_headers());
|
|
@@ -86,7 +98,7 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
86
98
|
});
|
|
87
99
|
test_if(capabilities.cell_gated_create, 'moderation is set per `moderation_required` (post → pending+private, react → approved)', async () => {
|
|
88
100
|
const fixture = await setup_test();
|
|
89
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
101
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
90
102
|
const participant = await fixture.create_account({
|
|
91
103
|
username: 'mod_participant',
|
|
92
104
|
roles: [PARTICIPATION_ROLE]
|
|
@@ -103,7 +115,7 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
103
115
|
test_if(capabilities.cell_gated_create, 'a contribution under a hidden (private) space is 404-masked (not 403)', async () => {
|
|
104
116
|
const fixture = await setup_test();
|
|
105
117
|
// A private space — only admin/owner can view it.
|
|
106
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'private' }, fixture.create_session_headers()), CellCreateOutput);
|
|
118
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'private' }, fixture.create_session_headers()), CellCreateOutput);
|
|
107
119
|
const stranger = await fixture.create_account({ username: 'hidden_stranger' });
|
|
108
120
|
const masked = await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'post', data: {}, parent_id: space.cell.id }, stranger.create_session_headers());
|
|
109
121
|
assert.ok(!masked.ok, 'a stranger must not contribute under a hidden space');
|
|
@@ -111,14 +123,14 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
111
123
|
});
|
|
112
124
|
test_if(capabilities.cell_gated_create, 'a deep contribution (comment under a post) resolves policy from the governing root, not the parent', async () => {
|
|
113
125
|
const fixture = await setup_test();
|
|
114
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
126
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
115
127
|
const participant = await fixture.create_account({
|
|
116
128
|
username: 'deep_participant',
|
|
117
129
|
roles: [PARTICIPATION_ROLE]
|
|
118
130
|
});
|
|
119
131
|
// A post lives directly under the space — the shallow case
|
|
120
|
-
// (`root_id === parent_id`), so the handler reuses the parent row
|
|
121
|
-
// `
|
|
132
|
+
// (`root_id === parent_id`), so the handler reuses the parent row's
|
|
133
|
+
// `policy`. The post is gated `moderation_required: true`, so it's
|
|
122
134
|
// born pending + private; the author can still view their own pending
|
|
123
135
|
// cell, so it's a valid parent for the comment below.
|
|
124
136
|
const post = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'post', data: {}, parent_id: space.cell.id }, participant.create_session_headers()), CellCreateOutput);
|
|
@@ -127,7 +139,7 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
127
139
|
// `root_id !== parent_id`, so the handler must read the governing
|
|
128
140
|
// root (the space) *through* the post (the separate in-tx root read),
|
|
129
141
|
// and the authorizer must resolve `policy.comment` from the SPACE's
|
|
130
|
-
//
|
|
142
|
+
// policy, not the post's. This is the only case that exercises the
|
|
131
143
|
// deep-read branch on both spines.
|
|
132
144
|
const comment = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'comment', data: {}, parent_id: post.cell.id }, participant.create_session_headers()), CellCreateOutput);
|
|
133
145
|
assert.strictEqual(comment.cell.parent_id, post.cell.id, 'the immediate parent is the post');
|
|
@@ -137,7 +149,7 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
137
149
|
test_if(capabilities.cell_gated_create, 'a contribution under a soft-deleted root is 404 cell_not_found (the missing-parent shape)', async () => {
|
|
138
150
|
const fixture = await setup_test();
|
|
139
151
|
const admin_headers = fixture.create_session_headers();
|
|
140
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, admin_headers), CellCreateOutput);
|
|
152
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, admin_headers), CellCreateOutput);
|
|
141
153
|
const participant = await fixture.create_account({
|
|
142
154
|
username: 'tombstone_participant',
|
|
143
155
|
roles: [PARTICIPATION_ROLE]
|
|
@@ -155,5 +167,89 @@ export const describe_cell_gated_create_cross_tests = (options) => {
|
|
|
155
167
|
const missing_parent = await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'comment', data: {}, parent_id: '00000000-0000-4000-8000-000000000000' }, participant_headers);
|
|
156
168
|
assert.deepStrictEqual(refused.error, missing_parent.error);
|
|
157
169
|
});
|
|
170
|
+
describe('cell root policy parity', () => {
|
|
171
|
+
test_if(capabilities.cell_gated_create, 'a root takes a policy at create and through cell_policy_set, audited old and new', async () => {
|
|
172
|
+
const fixture = await setup_test();
|
|
173
|
+
const admin_headers = fixture.create_session_headers();
|
|
174
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, admin_headers), CellCreateOutput);
|
|
175
|
+
assert.deepStrictEqual(space.cell.policy, TEST_SPACE_POLICY, 'the create stores the policy');
|
|
176
|
+
// Any viewer reads it.
|
|
177
|
+
const stranger = await fixture.create_account({ username: 'policy_reader' });
|
|
178
|
+
const read = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_get', { id: space.cell.id }, stranger.create_session_headers()), CellGetOutput);
|
|
179
|
+
assert.deepStrictEqual(read.cell.policy, TEST_SPACE_POLICY);
|
|
180
|
+
const opened = { post: { min_role: PARTICIPATION_ROLE, moderation_required: false } };
|
|
181
|
+
const set = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_policy_set', { cell_id: space.cell.id, policy: opened }, admin_headers), CellPolicySetOutput);
|
|
182
|
+
assert.deepStrictEqual(set.cell.policy, opened);
|
|
183
|
+
const participant = await fixture.create_account({
|
|
184
|
+
username: 'policy_participant',
|
|
185
|
+
roles: [PARTICIPATION_ROLE]
|
|
186
|
+
});
|
|
187
|
+
const post = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'post', data: {}, parent_id: space.cell.id }, participant.create_session_headers()), CellCreateOutput);
|
|
188
|
+
assert.strictEqual(post.cell.moderation, 'approved', 'the new policy governs');
|
|
189
|
+
assert.strictEqual(post.cell.policy, null, 'a contribution carries no policy');
|
|
190
|
+
const cleared = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_policy_set', { cell_id: space.cell.id, policy: null }, admin_headers), CellPolicySetOutput);
|
|
191
|
+
assert.strictEqual(cleared.cell.policy, null);
|
|
192
|
+
const events = await list_audit_events(fixture, { event_type: 'cell_policy_set' }, rpc_path);
|
|
193
|
+
assert.deepStrictEqual(events.map((e) => e.metadata).reverse(), [
|
|
194
|
+
{ cell_id: space.cell.id, policy: opened, previous_policy: TEST_SPACE_POLICY },
|
|
195
|
+
{ cell_id: space.cell.id, policy: null, previous_policy: opened }
|
|
196
|
+
], 'each set is audited with the policy it wrote and the one it replaced');
|
|
197
|
+
});
|
|
198
|
+
test_if(capabilities.cell_gated_create, 'a policy is root-only and must pass the authorizer', async () => {
|
|
199
|
+
const fixture = await setup_test();
|
|
200
|
+
const admin_headers = fixture.create_session_headers();
|
|
201
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, admin_headers), CellCreateOutput);
|
|
202
|
+
const react = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'react', data: {}, parent_id: space.cell.id }, admin_headers), CellCreateOutput);
|
|
203
|
+
const on_contribution = await cross_rpc_call(fixture.transport, rpc_path, 'cell_policy_set', { cell_id: react.cell.id, policy: TEST_SPACE_POLICY }, admin_headers);
|
|
204
|
+
assert.ok(!on_contribution.ok);
|
|
205
|
+
assert.strictEqual(error_reason(on_contribution), 'cell_policy_root_only');
|
|
206
|
+
const beside_parent = await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'react', data: {}, parent_id: space.cell.id, policy: TEST_SPACE_POLICY }, admin_headers);
|
|
207
|
+
assert.ok(!beside_parent.ok);
|
|
208
|
+
assert.strictEqual(error_reason(beside_parent), 'cell_policy_root_only');
|
|
209
|
+
for (const bad of [
|
|
210
|
+
{ post: true },
|
|
211
|
+
{ post: { min_role: 1 } },
|
|
212
|
+
{ post: { other: true } }
|
|
213
|
+
]) {
|
|
214
|
+
const refused = await cross_rpc_call(fixture.transport, rpc_path, 'cell_policy_set', { cell_id: space.cell.id, policy: bad }, admin_headers);
|
|
215
|
+
assert.ok(!refused.ok, JSON.stringify(bad));
|
|
216
|
+
assert.strictEqual(error_reason(refused), 'cell_policy_invalid', JSON.stringify(bad));
|
|
217
|
+
const refused_create = await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: bad }, admin_headers);
|
|
218
|
+
assert.strictEqual(error_reason(refused_create), 'cell_policy_invalid', JSON.stringify(bad));
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
test_if(capabilities.cell_gated_create, "an editor-grant holder can't change a root's policy, through the verb or through data", async () => {
|
|
222
|
+
const fixture = await setup_test();
|
|
223
|
+
// A non-admin's root (a parentless non-`space` kind is open), its
|
|
224
|
+
// policy moderating posts.
|
|
225
|
+
const owner = await fixture.create_account({ username: 'policy_owner' });
|
|
226
|
+
const owner_headers = owner.create_session_headers();
|
|
227
|
+
const root = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'forum', data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, owner_headers), CellCreateOutput);
|
|
228
|
+
const editor = await fixture.create_account({ username: 'policy_editor' });
|
|
229
|
+
expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_grant_create', {
|
|
230
|
+
cell_id: root.cell.id,
|
|
231
|
+
level: 'editor',
|
|
232
|
+
principal: { kind: 'actor', actor_id: editor.actor.id }
|
|
233
|
+
}, owner_headers), CellGrantCreateOutput);
|
|
234
|
+
const editor_headers = editor.create_session_headers();
|
|
235
|
+
const opened = { post: { min_role: PARTICIPATION_ROLE, moderation_required: false } };
|
|
236
|
+
const refused = await cross_rpc_call(fixture.transport, rpc_path, 'cell_policy_set', { cell_id: root.cell.id, policy: opened }, editor_headers);
|
|
237
|
+
assert.ok(!refused.ok, 'an editor must not set the policy');
|
|
238
|
+
assert.strictEqual(error_reason(refused), 'cell_policy_manage_only');
|
|
239
|
+
// The editor may rewrite `data` — a `data.policy` is just content.
|
|
240
|
+
const edited = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_update', { cell_id: root.cell.id, data: { policy: opened } }, editor_headers), CellUpdateOutput);
|
|
241
|
+
assert.deepStrictEqual(edited.cell.policy, TEST_SPACE_POLICY, 'a data write leaves the policy');
|
|
242
|
+
const participant = await fixture.create_account({
|
|
243
|
+
username: 'policy_poster',
|
|
244
|
+
roles: [PARTICIPATION_ROLE]
|
|
245
|
+
});
|
|
246
|
+
const post = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'post', data: {}, parent_id: root.cell.id }, participant.create_session_headers()), CellCreateOutput);
|
|
247
|
+
assert.strictEqual(post.cell.moderation, 'pending', "moderation follows the root's policy column, not its `data.policy`");
|
|
248
|
+
// Someone who can't view a private root gets the mask.
|
|
249
|
+
const hidden = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'forum', data: {}, policy: TEST_SPACE_POLICY }, owner_headers), CellCreateOutput);
|
|
250
|
+
const masked = await cross_rpc_call(fixture.transport, rpc_path, 'cell_policy_set', { cell_id: hidden.cell.id, policy: opened }, editor_headers);
|
|
251
|
+
assert.strictEqual(error_reason(masked), 'cell_not_found');
|
|
252
|
+
});
|
|
253
|
+
});
|
|
158
254
|
});
|
|
159
255
|
};
|
|
@@ -21,8 +21,8 @@ import '../assert_dev_env.js';
|
|
|
21
21
|
* holding the suite's `role` — `CELL_EDITOR_ROLE` by default, which has no
|
|
22
22
|
* grant path, so it can't be offered and the bootstrap-cradle seed is the only
|
|
23
23
|
* path. Both legs configure that seed and register `CELL_EDITOR_ROLE` in their
|
|
24
|
-
* role registry; the
|
|
25
|
-
*
|
|
24
|
+
* role registry; the same membership is in the Rust stub's `RoleRegistry`
|
|
25
|
+
* (which the cell spec set also reads). A backend with only the builtin roles passes `ROLE_KEEPER`
|
|
26
26
|
* (no admin reach, so every arm still turns on the grant); `ROLE_ADMIN` is
|
|
27
27
|
* refused, since an admin reaches every cell whatever its grants.
|
|
28
28
|
*
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../assert_dev_env.js';
|
|
2
|
+
import type { RpcPathCapabilityGatedCrossSuiteOptions } from './setup.js';
|
|
3
|
+
export declare const describe_cell_grant_steward_cross_tests: (options: RpcPathCapabilityGatedCrossSuiteOptions) => void;
|
|
4
|
+
//# sourceMappingURL=cell_grant_steward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cell_grant_steward.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_grant_steward.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAiD9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAY1E,eAAO,MAAM,uCAAuC,GACnD,SAAS,uCAAuC,KAC9C,IAgJF,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import '../assert_dev_env.js';
|
|
2
|
+
/**
|
|
3
|
+
* Cross-backend parity suite for the **steward-revoke seam**
|
|
4
|
+
* (`CellGrantRevokeAuthorize`) on `cell_grant_revoke`.
|
|
5
|
+
*
|
|
6
|
+
* Like the creation authorizer, the revoke hook adds no method, column, or wire
|
|
7
|
+
* shape, so the schema-snapshot and action-manifest parity gates are blind to a
|
|
8
|
+
* TS↔Rust divergence in it — the fence, the refusal shape, the audit stamp.
|
|
9
|
+
* This behavioral case is the gate that catches one.
|
|
10
|
+
*
|
|
11
|
+
* Both spines mount the same test policy (the TS spine binary via
|
|
12
|
+
* `test_cell_grant_steward_revoke_authorize`, the Rust `testing_spine_stub` via
|
|
13
|
+
* `TestCellGrantStewardRevokeAuthorize`): a scoped `participant` grant stewards
|
|
14
|
+
* its scope. A cell owner shares a private cell with `participant` at a scope;
|
|
15
|
+
* the suite asserts every spine agrees on:
|
|
16
|
+
*
|
|
17
|
+
* - **the scope's steward revokes** — a non-manager holding `participant` at
|
|
18
|
+
* the grant's scope revokes it: `{ok: true, still_admitted: false}`, the grant
|
|
19
|
+
* gone from the owner's list, and the `cell_grant_revoke` audit row stamped
|
|
20
|
+
* `steward: true`.
|
|
21
|
+
* - **another scope's steward gets the 404 mask** — `cell_grant_not_found`, the
|
|
22
|
+
* same refusal as no hook, and the grant stays.
|
|
23
|
+
* - **a scopeless role grant is fenced off** — a caller holding `participant`
|
|
24
|
+
* globally *and* at a scope still gets the 404 on a grant naming no scope:
|
|
25
|
+
* the spine never asks the hook, which would have admitted the global grant
|
|
26
|
+
* had it been asked with a null scope.
|
|
27
|
+
*
|
|
28
|
+
* Gated on `capabilities.cell_relations` (the grant verbs) and
|
|
29
|
+
* `capabilities.cell_gated_create` (the reference spines' test cell policies,
|
|
30
|
+
* which this one rides beside). The hook's in-process coverage, including the
|
|
31
|
+
* manager, self-revoke, actor-shaped and deleted-cell fences, is
|
|
32
|
+
* `auth/cell_grant_actions.authz.db.test.ts`.
|
|
33
|
+
*
|
|
34
|
+
* @module
|
|
35
|
+
*/
|
|
36
|
+
import { describe, assert } from 'vitest';
|
|
37
|
+
import { CellCreateOutput } from '../../auth/cell_action_specs.js';
|
|
38
|
+
import { CellGrantCreateOutput, CellGrantListOutput, CellGrantRevokeOutput, ERROR_CELL_GRANT_NOT_FOUND } from '../../auth/cell_grant_action_specs.js';
|
|
39
|
+
import { test_if } from './capabilities.js';
|
|
40
|
+
import { cross_rpc_call, error_reason, expect_output } from './cross_rpc.js';
|
|
41
|
+
import { list_audit_events } from './audit_cross_helpers.js';
|
|
42
|
+
import { SPINE_PARTICIPANT_ROLE, SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
43
|
+
/** The scope the shared grant is bound to. */
|
|
44
|
+
const STEWARDED_SCOPE_ID = '55555555-5555-4555-8555-555555555555';
|
|
45
|
+
/** A scope the shared grant isn't bound to. */
|
|
46
|
+
const OTHER_SCOPE_ID = '66666666-6666-4666-8666-666666666666';
|
|
47
|
+
/** The scope kind the test `participant` grants carry. */
|
|
48
|
+
const STEWARD_SCOPE_KIND = 'space';
|
|
49
|
+
export const describe_cell_grant_steward_cross_tests = (options) => {
|
|
50
|
+
const { setup_test, capabilities } = options;
|
|
51
|
+
const rpc_path = options.rpc_path ?? SPINE_RPC_PATH;
|
|
52
|
+
const enabled = capabilities.cell_relations && capabilities.cell_gated_create;
|
|
53
|
+
/** A fresh account holding `participant` at each of `scope_ids` (`null` = global). */
|
|
54
|
+
const create_participant = async (fixture, username, scope_ids) => {
|
|
55
|
+
const account = await fixture.create_account({ username });
|
|
56
|
+
for (const scope_id of scope_ids) {
|
|
57
|
+
const assigned = await cross_rpc_call(fixture.transport, rpc_path, 'role_grant_assign', scope_id === null
|
|
58
|
+
? { to_account_id: account.account.id, role: SPINE_PARTICIPANT_ROLE }
|
|
59
|
+
: {
|
|
60
|
+
to_account_id: account.account.id,
|
|
61
|
+
role: SPINE_PARTICIPANT_ROLE,
|
|
62
|
+
scope_kind: STEWARD_SCOPE_KIND,
|
|
63
|
+
scope_id
|
|
64
|
+
}, fixture.create_session_headers());
|
|
65
|
+
assert.ok(assigned.ok, `role_grant_assign failed: ${JSON.stringify(assigned.error)}`);
|
|
66
|
+
}
|
|
67
|
+
return account;
|
|
68
|
+
};
|
|
69
|
+
/** An owner's private cell shared with `participant`, at `scope_id` when given. */
|
|
70
|
+
const create_shared_cell = async (fixture, scope_id) => {
|
|
71
|
+
const owner = await fixture.create_account({ username: 'steward_cell_owner' });
|
|
72
|
+
const created = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'note', data: {} }, owner.create_session_headers()), CellCreateOutput);
|
|
73
|
+
const granted = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_grant_create', {
|
|
74
|
+
cell_id: created.cell.id,
|
|
75
|
+
level: 'viewer',
|
|
76
|
+
principal: { kind: 'role', role: SPINE_PARTICIPANT_ROLE, scope_id }
|
|
77
|
+
}, owner.create_session_headers()), CellGrantCreateOutput);
|
|
78
|
+
return { owner, cell_id: created.cell.id, grant_id: granted.grant.id };
|
|
79
|
+
};
|
|
80
|
+
const list_grant_ids = async (fixture, owner, cell_id) => expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_grant_list', { cell_id }, owner.create_session_headers()), CellGrantListOutput).grants.map((g) => g.id);
|
|
81
|
+
const revoke = (fixture, caller, grant_id) => cross_rpc_call(fixture.transport, rpc_path, 'cell_grant_revoke', { grant_id }, caller.create_session_headers());
|
|
82
|
+
describe('cell_grant_steward revoke parity', () => {
|
|
83
|
+
test_if(enabled, "the scope's steward revokes, audited steward: true", async () => {
|
|
84
|
+
const fixture = await setup_test();
|
|
85
|
+
const { owner, cell_id, grant_id } = await create_shared_cell(fixture, STEWARDED_SCOPE_ID);
|
|
86
|
+
const steward = await create_participant(fixture, 'steward_of_scope', [STEWARDED_SCOPE_ID]);
|
|
87
|
+
const revoked = expect_output(await revoke(fixture, steward, grant_id), CellGrantRevokeOutput);
|
|
88
|
+
assert.deepStrictEqual(revoked, { ok: true, still_admitted: false });
|
|
89
|
+
assert.notInclude(await list_grant_ids(fixture, owner, cell_id), grant_id);
|
|
90
|
+
const events = await list_audit_events(fixture, { event_type: 'cell_grant_revoke' }, rpc_path);
|
|
91
|
+
const event = events.find((e) => e.metadata?.grant_id === grant_id);
|
|
92
|
+
assert.ok(event, 'the revoke is audited');
|
|
93
|
+
assert.strictEqual(event.metadata?.steward, true);
|
|
94
|
+
assert.notProperty(event.metadata, 'self');
|
|
95
|
+
});
|
|
96
|
+
test_if(enabled, "another scope's steward gets the 404 mask", async () => {
|
|
97
|
+
const fixture = await setup_test();
|
|
98
|
+
const { owner, cell_id, grant_id } = await create_shared_cell(fixture, STEWARDED_SCOPE_ID);
|
|
99
|
+
const outsider = await create_participant(fixture, 'steward_elsewhere', [OTHER_SCOPE_ID]);
|
|
100
|
+
const refused = await revoke(fixture, outsider, grant_id);
|
|
101
|
+
assert.strictEqual(refused.status, 404);
|
|
102
|
+
assert.strictEqual(error_reason(refused), ERROR_CELL_GRANT_NOT_FOUND);
|
|
103
|
+
assert.include(await list_grant_ids(fixture, owner, cell_id), grant_id);
|
|
104
|
+
});
|
|
105
|
+
test_if(enabled, 'a scopeless role grant never reaches the hook', async () => {
|
|
106
|
+
const fixture = await setup_test();
|
|
107
|
+
const { owner, cell_id, grant_id } = await create_shared_cell(fixture, null);
|
|
108
|
+
// a global `participant` grant would satisfy the policy asked with a
|
|
109
|
+
// null scope, so only the fence keeps this caller out
|
|
110
|
+
const caller = await create_participant(fixture, 'steward_global', [
|
|
111
|
+
null,
|
|
112
|
+
STEWARDED_SCOPE_ID
|
|
113
|
+
]);
|
|
114
|
+
const refused = await revoke(fixture, caller, grant_id);
|
|
115
|
+
assert.strictEqual(refused.status, 404);
|
|
116
|
+
assert.strictEqual(error_reason(refused), ERROR_CELL_GRANT_NOT_FOUND);
|
|
117
|
+
assert.include(await list_grant_ids(fixture, owner, cell_id), grant_id);
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
};
|
|
@@ -2,7 +2,8 @@ import '../assert_dev_env.js';
|
|
|
2
2
|
import type { RpcPathCapabilityGatedCrossSuiteOptions } from './setup.js';
|
|
3
3
|
/**
|
|
4
4
|
* Cross-backend parity for the **`cell_moderate` verb** (the `pending →
|
|
5
|
-
* approved | rejected`
|
|
5
|
+
* approved | rejected` decision and the `approved → rejected` takedown) —
|
|
6
|
+
* root-authority-gated.
|
|
6
7
|
*
|
|
7
8
|
* Builds a moderated public space (admin) + a `participant`'s `post` (born
|
|
8
9
|
* `pending` + private under the `moderation_required: true` policy), then
|
|
@@ -20,6 +21,11 @@ import type { RpcPathCapabilityGatedCrossSuiteOptions } from './setup.js';
|
|
|
20
21
|
* - **a cell with no governing root** → `400 cell_not_a_contribution` for any
|
|
21
22
|
* viewer (owner, admin), the cell left unmoderated; a non-viewer gets the
|
|
22
23
|
* `cell_not_found` mask first.
|
|
24
|
+
* - **approval needs a pending contribution, rejection a pending or approved
|
|
25
|
+
* one** → else `400 cell_not_pending`, the cell left as it was: a root owner
|
|
26
|
+
* a private, born-approved contribution was shared with can't publish it by
|
|
27
|
+
* "approving" it; an approved post is not approved again but can be taken
|
|
28
|
+
* down (rejected, visibility untouched); a rejected post is final.
|
|
23
29
|
*
|
|
24
30
|
* And that moderation gates reads — a cell's effective audience is its
|
|
25
31
|
* visibility or grants **and** its moderation admission (unmoderated or
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell_moderate.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_moderate.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA+B9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAQ1E
|
|
1
|
+
{"version":3,"file":"cell_moderate.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_moderate.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA+B9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAQ1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,eAAO,MAAM,kCAAkC,GAC9C,SAAS,uCAAuC,KAC9C,IAunCF,CAAC"}
|
|
@@ -23,7 +23,8 @@ import { SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
|
23
23
|
import { PARTICIPATION_ROLE, SPACE_CELL_KIND, TEST_SPACE_POLICY } from './test_cell_gated_create_authorize.js';
|
|
24
24
|
/**
|
|
25
25
|
* Cross-backend parity for the **`cell_moderate` verb** (the `pending →
|
|
26
|
-
* approved | rejected`
|
|
26
|
+
* approved | rejected` decision and the `approved → rejected` takedown) —
|
|
27
|
+
* root-authority-gated.
|
|
27
28
|
*
|
|
28
29
|
* Builds a moderated public space (admin) + a `participant`'s `post` (born
|
|
29
30
|
* `pending` + private under the `moderation_required: true` policy), then
|
|
@@ -41,6 +42,11 @@ import { PARTICIPATION_ROLE, SPACE_CELL_KIND, TEST_SPACE_POLICY } from './test_c
|
|
|
41
42
|
* - **a cell with no governing root** → `400 cell_not_a_contribution` for any
|
|
42
43
|
* viewer (owner, admin), the cell left unmoderated; a non-viewer gets the
|
|
43
44
|
* `cell_not_found` mask first.
|
|
45
|
+
* - **approval needs a pending contribution, rejection a pending or approved
|
|
46
|
+
* one** → else `400 cell_not_pending`, the cell left as it was: a root owner
|
|
47
|
+
* a private, born-approved contribution was shared with can't publish it by
|
|
48
|
+
* "approving" it; an approved post is not approved again but can be taken
|
|
49
|
+
* down (rejected, visibility untouched); a rejected post is final.
|
|
44
50
|
*
|
|
45
51
|
* And that moderation gates reads — a cell's effective audience is its
|
|
46
52
|
* visibility or grants **and** its moderation admission (unmoderated or
|
|
@@ -102,7 +108,7 @@ export const describe_cell_moderate_cross_tests = (options) => {
|
|
|
102
108
|
// participant's pending post under it, optionally carrying a fact the
|
|
103
109
|
// author put.
|
|
104
110
|
const setup_pending_post_on = async (fixture, post_fact_content) => {
|
|
105
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
111
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
106
112
|
const author = await fixture.create_account({
|
|
107
113
|
username: 'moderate_author',
|
|
108
114
|
roles: [PARTICIPATION_ROLE]
|
|
@@ -118,7 +124,7 @@ export const describe_cell_moderate_cross_tests = (options) => {
|
|
|
118
124
|
// put.
|
|
119
125
|
const setup_stewarded_post_on = async (fixture, post_fact_content) => {
|
|
120
126
|
const root_owner = await fixture.create_account({ username: 'steward_root_owner' });
|
|
121
|
-
const root = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'forum', data: TEST_SPACE_POLICY, visibility: 'public' }, root_owner.create_session_headers()), CellCreateOutput);
|
|
127
|
+
const root = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'forum', data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, root_owner.create_session_headers()), CellCreateOutput);
|
|
122
128
|
const author = await fixture.create_account({
|
|
123
129
|
username: 'steward_author',
|
|
124
130
|
roles: [PARTICIPATION_ROLE]
|
|
@@ -208,6 +214,64 @@ export const describe_cell_moderate_cross_tests = (options) => {
|
|
|
208
214
|
assert.strictEqual(got.cell.moderation, null);
|
|
209
215
|
assert.strictEqual(got.cell.visibility, 'private');
|
|
210
216
|
});
|
|
217
|
+
test_if(capabilities.cell_gated_create, 'a root owner shown a private approved contribution cannot publish it → 400 cell_not_pending', async () => {
|
|
218
|
+
// the contribution is approved at birth (`comment` is unmoderated
|
|
219
|
+
// under the policy), so it was never pending; its author shares it
|
|
220
|
+
// with the root owner, who "approves" it
|
|
221
|
+
const fixture = await setup_test();
|
|
222
|
+
const root_owner = await fixture.create_account({ username: 'not_pending_root_owner' });
|
|
223
|
+
const root = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'forum', data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, root_owner.create_session_headers()), CellCreateOutput);
|
|
224
|
+
const author = await fixture.create_account({
|
|
225
|
+
username: 'not_pending_author',
|
|
226
|
+
roles: [PARTICIPATION_ROLE]
|
|
227
|
+
});
|
|
228
|
+
const author_h = author.create_session_headers();
|
|
229
|
+
const comment = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: 'comment', data: {}, parent_id: root.cell.id, visibility: 'private' }, author_h), CellCreateOutput);
|
|
230
|
+
assert.strictEqual(comment.cell.moderation, 'approved', 'born approved');
|
|
231
|
+
expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_grant_create', {
|
|
232
|
+
cell_id: comment.cell.id,
|
|
233
|
+
level: 'viewer',
|
|
234
|
+
principal: { kind: 'actor', actor_id: root_owner.actor.id }
|
|
235
|
+
}, author_h), CellGrantCreateOutput);
|
|
236
|
+
const refused = await cross_rpc_call(fixture.transport, rpc_path, 'cell_moderate', { cell_id: comment.cell.id, moderation: 'approved' }, root_owner.create_session_headers());
|
|
237
|
+
assert.ok(!refused.ok, 'an approved contribution is not approved again');
|
|
238
|
+
assert.strictEqual(refused.error?.code, JSONRPC_ERROR_CODES.invalid_params);
|
|
239
|
+
assert.strictEqual(error_reason(refused), 'cell_not_pending');
|
|
240
|
+
const after = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_get', { id: comment.cell.id }, author_h), CellGetOutput).cell;
|
|
241
|
+
assert.strictEqual(after.visibility, 'private', 'the refusal publishes nothing');
|
|
242
|
+
assert.strictEqual(after.moderation, 'approved');
|
|
243
|
+
assert.strictEqual(await outcome(fixture, 'cell_get', { id: comment.cell.id }, null), 'cell_not_found', 'still hidden from anon');
|
|
244
|
+
});
|
|
245
|
+
test_if(capabilities.cell_gated_create, 'approval needs a pending post, rejection a pending or approved one → else 400 cell_not_pending', async () => {
|
|
246
|
+
const try_moderate = async (fixture, cell_id, moderation) => outcome(fixture, 'cell_moderate', { cell_id, moderation }, fixture.create_session_headers());
|
|
247
|
+
const state = async (fixture, id) => {
|
|
248
|
+
const { cell } = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_get', { id }, fixture.create_session_headers()), CellGetOutput);
|
|
249
|
+
return [cell.moderation, cell.visibility];
|
|
250
|
+
};
|
|
251
|
+
// approved: approving again is refused; the takedown is not
|
|
252
|
+
{
|
|
253
|
+
const { fixture, post } = await setup_pending_post();
|
|
254
|
+
await moderate(fixture, post.cell.id, 'approved');
|
|
255
|
+
assert.strictEqual(await try_moderate(fixture, post.cell.id, 'approved'), 'cell_not_pending', 'approved, approve');
|
|
256
|
+
assert.deepStrictEqual(await state(fixture, post.cell.id), ['approved', 'public']);
|
|
257
|
+
assert.strictEqual(await try_moderate(fixture, post.cell.id, 'rejected'), 'ok', 'approved, reject');
|
|
258
|
+
// rejected is terminal
|
|
259
|
+
for (const again of ['approved', 'rejected']) {
|
|
260
|
+
assert.strictEqual(await try_moderate(fixture, post.cell.id, again), 'cell_not_pending', `taken down, ${again}`);
|
|
261
|
+
}
|
|
262
|
+
assert.deepStrictEqual(await state(fixture, post.cell.id), ['rejected', 'public']);
|
|
263
|
+
}
|
|
264
|
+
// rejected from pending: neither decision moves it
|
|
265
|
+
{
|
|
266
|
+
const { fixture, post } = await setup_pending_post();
|
|
267
|
+
await moderate(fixture, post.cell.id, 'rejected');
|
|
268
|
+
for (const again of ['approved', 'rejected']) {
|
|
269
|
+
assert.strictEqual(await try_moderate(fixture, post.cell.id, again), 'cell_not_pending', `rejected, ${again}`);
|
|
270
|
+
}
|
|
271
|
+
assert.deepStrictEqual(await state(fixture, post.cell.id), ['rejected', 'private']);
|
|
272
|
+
assert.strictEqual(await outcome(fixture, 'cell_get', { id: post.cell.id }, null), 'cell_not_found');
|
|
273
|
+
}
|
|
274
|
+
});
|
|
211
275
|
});
|
|
212
276
|
describe('moderation gates reads (parity)', () => {
|
|
213
277
|
test_if(capabilities.cell_gated_create, 'a pending post its author flips public stays hidden past the author and admins', async () => {
|
|
@@ -493,7 +557,7 @@ export const describe_cell_moderate_cross_tests = (options) => {
|
|
|
493
557
|
describe('cell_clone runs the creation authorizer (parity)', () => {
|
|
494
558
|
test_if(capabilities.cell_gated_create, 'a non-admin clone of a viewable `space` root → 403, admin clone succeeds', async () => {
|
|
495
559
|
const fixture = await setup_test();
|
|
496
|
-
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
560
|
+
const space = expect_output(await cross_rpc_call(fixture.transport, rpc_path, 'cell_create', { kind: SPACE_CELL_KIND, data: {}, policy: TEST_SPACE_POLICY, visibility: 'public' }, fixture.create_session_headers()), CellCreateOutput);
|
|
497
561
|
// Every cell a clone writes is a parentless create of the source's
|
|
498
562
|
// kind, gated like `cell_create` — so a caller denied a `space` root
|
|
499
563
|
// can't clone one they can see into one they own.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell_ref_admission.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_ref_admission.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"cell_ref_admission.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_ref_admission.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwD9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AA6B1E,eAAO,MAAM,uCAAuC,GACnD,SAAS,uCAAuC,KAC9C,IA2fF,CAAC"}
|