@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
|
@@ -11,6 +11,7 @@ import { FACT_DROP_TABLES } from '../../db/fact_ddl.js';
|
|
|
11
11
|
import { create_testing_action_manifest_action, create_testing_actions, create_testing_shorten_credential_expiry_action } from './testing_reset_actions.js';
|
|
12
12
|
import { create_testing_origin_check_action } from './testing_origin_check.js';
|
|
13
13
|
import { test_cell_gated_create_authorize } from './test_cell_gated_create_authorize.js';
|
|
14
|
+
import { test_cell_grant_steward_revoke_authorize } from './test_cell_grant_steward_revoke_authorize.js';
|
|
14
15
|
import { spine_roles, spine_session_options } from './default_spine_surface.js';
|
|
15
16
|
import { SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
16
17
|
/**
|
|
@@ -56,11 +57,18 @@ export const build_full_spine_rpc_actions = (deps, options) => {
|
|
|
56
57
|
// Mount the directory-model `cell_gated_create` test policy (twin of the
|
|
57
58
|
// Rust stub's `TestCellGatedCreateAuthorize`) so the cross-backend
|
|
58
59
|
// authorizer-parity suite has a known gate: `kind: 'space'` roots are
|
|
59
|
-
// admin-only, contributions are gated by the root's `
|
|
60
|
-
//
|
|
61
|
-
//
|
|
62
|
-
//
|
|
63
|
-
|
|
60
|
+
// admin-only, contributions are gated by the root's `policy`, and plain
|
|
61
|
+
// parentless creates stay open (the other cell suites are unaffected).
|
|
62
|
+
// The handler hands the governing root's `policy` to the (pure)
|
|
63
|
+
// authorizer, whose `validate_policy` accepts or refuses each policy
|
|
64
|
+
// write. Beside it the steward-revoke test policy (twin of the Rust
|
|
65
|
+
// stub's `TestCellGrantStewardRevokeAuthorize`): a scoped `participant`
|
|
66
|
+
// grant stewards its scope, for the `cell_grant_steward` cross suite.
|
|
67
|
+
...create_all_cell_actions({
|
|
68
|
+
...deps,
|
|
69
|
+
authorize_create: test_cell_gated_create_authorize,
|
|
70
|
+
authorize_grant_revoke: test_cell_grant_steward_revoke_authorize
|
|
71
|
+
}, { roles: spine_roles }),
|
|
64
72
|
...create_actor_lookup_actions(deps),
|
|
65
73
|
...create_actor_search_actions(deps),
|
|
66
74
|
// the origin conformance table's probe — kept out of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"origin_scope.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/origin_scope.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"origin_scope.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/origin_scope.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA+C9B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,YAAY,CAAC;AASnE,iDAAiD;AACjD,MAAM,WAAW,2BAA4B,SAAQ,gCAAgC;IACpF,oFAAoF;IACpF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,eAAO,MAAM,iCAAiC,GAAI,SAAS,2BAA2B,KAAG,IA+FxF,CAAC"}
|
|
@@ -40,7 +40,7 @@ import '../assert_dev_env.js';
|
|
|
40
40
|
*/
|
|
41
41
|
import { describe, assert, test } from 'vitest';
|
|
42
42
|
import { ERROR_FORBIDDEN_ORIGIN, ERROR_PAYLOAD_TOO_LARGE } from '../../http/error_schemas.js';
|
|
43
|
-
import {
|
|
43
|
+
import { raw_http_send_head } from '../transports/raw_http.js';
|
|
44
44
|
import { test_if } from './capabilities.js';
|
|
45
45
|
import { SPINE_BODY_LIMIT_DEFAULT_BYTES } from './spine_surface_constants.js';
|
|
46
46
|
/** An origin no spine test server allows. */
|
|
@@ -110,19 +110,11 @@ export const describe_origin_scope_cross_tests = (options) => {
|
|
|
110
110
|
}
|
|
111
111
|
else {
|
|
112
112
|
// the head alone, declaring the length: the 413 must not wait on a body byte
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
`content-type: application/json\r\n` +
|
|
118
|
-
`content-length: ${over}\r\n` +
|
|
119
|
-
`\r\n`;
|
|
120
|
-
const { received } = await raw_http_exchange(base_url, request, {
|
|
121
|
-
read_timeout_ms: RAW_HTTP_READ_TIMEOUT_MS,
|
|
122
|
-
until: 'response'
|
|
113
|
+
const response = await raw_http_send_head(base_url, {
|
|
114
|
+
path: UNROUTED_PATH,
|
|
115
|
+
headers: { origin: FOREIGN_ORIGIN, 'content-type': 'application/json' },
|
|
116
|
+
content_length: over
|
|
123
117
|
});
|
|
124
|
-
const response = raw_http_parse_response(received);
|
|
125
|
-
assert.ok(response, `no whole response; received: ${received.slice(0, 200)}`);
|
|
126
118
|
status = response.status;
|
|
127
119
|
text = response.body;
|
|
128
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peer_ping_ws.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/peer_ping_ws.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAiD9B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAEzD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"peer_ping_ws.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/peer_ping_ws.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAiD9B,OAAO,EAAE,KAAK,mBAAmB,EAAW,MAAM,mBAAmB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,YAAY,CAAC;AAEzD,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AA0B1E,uDAAuD;AACvD,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC9D,8EAA8E;IAC9E,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,iFAAiF;IACjF,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;CAC3C;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,SAAS,qBAAqB,KAAG,IAiQ5E,CAAC"}
|
|
@@ -28,7 +28,7 @@ import '../assert_dev_env.js';
|
|
|
28
28
|
*
|
|
29
29
|
* Gated on `capabilities.peer_request`, which a backend declares once it
|
|
30
30
|
* mounts `peer/ping` on a WS endpoint and the HTTP RPC endpoint — the TS
|
|
31
|
-
* spine binaries (`
|
|
31
|
+
* spine binaries (`ConnectionRegistry.request_connection`) and the
|
|
32
32
|
* Rust spine both do. Cross-process only: `create_ws_transport` needs a real bound
|
|
33
33
|
* socket, so wire it from a `*.cross.test.ts`.
|
|
34
34
|
*
|
|
@@ -53,6 +53,11 @@ const PEER_PING_METHOD = 'peer/ping';
|
|
|
53
53
|
const REASON_PEER_TIMEOUT = 'peer_timeout';
|
|
54
54
|
const REASON_PEER_PING_INVALID_REPLY = 'peer_ping_invalid_reply';
|
|
55
55
|
const REASON_PEER_NO_TRANSPORT = 'peer_no_transport';
|
|
56
|
+
/**
|
|
57
|
+
* The server-side deadline of the per-connection isolation case — generous,
|
|
58
|
+
* so the forged reply and the barrier behind it land inside it under load.
|
|
59
|
+
*/
|
|
60
|
+
const ISOLATION_DEADLINE_MS = 5000;
|
|
56
61
|
/** A reply payload that satisfies the Rust `PingResponse` shape. */
|
|
57
62
|
const valid_reply = (nonce) => ({ nonce, protocol_version: 1 });
|
|
58
63
|
/**
|
|
@@ -182,9 +187,21 @@ export const describe_peer_ping_ws_tests = (options) => {
|
|
|
182
187
|
const ws_a = await open_ws(fixture);
|
|
183
188
|
const ws_b = await open_ws(fixture, echo_responder);
|
|
184
189
|
try {
|
|
185
|
-
// A invokes peer/ping
|
|
186
|
-
//
|
|
187
|
-
|
|
190
|
+
// A invokes peer/ping; don't await yet — observe the
|
|
191
|
+
// server→client request first. The deadline is long enough
|
|
192
|
+
// that B's forged reply below is processed well inside it,
|
|
193
|
+
// so A's timeout can only come from isolation.
|
|
194
|
+
const ping_promise = ping_raw(ws_a, 6, {
|
|
195
|
+
nonce: 1,
|
|
196
|
+
timeout_ms: ISOLATION_DEADLINE_MS
|
|
197
|
+
});
|
|
198
|
+
let a_answered = false;
|
|
199
|
+
void ping_promise.then(() => {
|
|
200
|
+
a_answered = true;
|
|
201
|
+
},
|
|
202
|
+
// a failure elsewhere closes the socket under this wait; that case's
|
|
203
|
+
// own error is the one to report
|
|
204
|
+
() => { });
|
|
188
205
|
// The server-initiated request A received (id "sN", nonce 1).
|
|
189
206
|
const inbound = await ws_a.wait_for((m) => is_jsonrpc_request(m) && m.method === PEER_PING_METHOD, 5000);
|
|
190
207
|
// B replies for A's id — a cross-connection echo. Correct
|
|
@@ -194,9 +211,17 @@ export const describe_peer_ping_ws_tests = (options) => {
|
|
|
194
211
|
id: inbound.id,
|
|
195
212
|
result: valid_reply(inbound.params.nonce)
|
|
196
213
|
});
|
|
214
|
+
// The barrier: a round-trip on B the server answers only after
|
|
215
|
+
// reading the forged reply ahead of it on the same socket, so
|
|
216
|
+
// once it lands the forged reply has been processed.
|
|
217
|
+
const barrier = await ws_b.request(7, PEER_PING_METHOD, { nonce: 7 }, 8000);
|
|
218
|
+
assert.strictEqual(barrier.nonce, 7);
|
|
219
|
+
const answered_before_barrier = a_answered;
|
|
197
220
|
const frame = await ping_promise;
|
|
198
221
|
assert.ok('error' in frame, "B's cross-connection reply must not resolve A's request");
|
|
199
222
|
assert.strictEqual(error_reason(frame), REASON_PEER_TIMEOUT);
|
|
223
|
+
assert.ok(!answered_before_barrier, `A's ${ISOLATION_DEADLINE_MS}ms deadline ran out before B's forged reply was ` +
|
|
224
|
+
'processed, so the timeout proves nothing about isolation');
|
|
200
225
|
}
|
|
201
226
|
finally {
|
|
202
227
|
await ws_a.close();
|
|
@@ -82,4 +82,36 @@ export declare const ensure_database: (database: string, server_url?: string, de
|
|
|
82
82
|
* @returns whether the URL named a Postgres database to ensure
|
|
83
83
|
*/
|
|
84
84
|
export declare const ensure_database_for_url: (database_url: string, deps?: EnsureDatabaseDeps) => boolean;
|
|
85
|
+
/** Options for `empty_owned_database`. */
|
|
86
|
+
export interface EmptyOwnedDatabaseOptions {
|
|
87
|
+
/**
|
|
88
|
+
* The one database name the call may empty — the setup's own. A URL naming
|
|
89
|
+
* any other database is refused before anything connects.
|
|
90
|
+
*/
|
|
91
|
+
readonly owned_name: string;
|
|
92
|
+
/** Prefixes every error message, naming the setup (e.g. `'schema parity setup'`). */
|
|
93
|
+
readonly label: string;
|
|
94
|
+
/**
|
|
95
|
+
* Appended to the fix a connect failure suggests — another way to reach a
|
|
96
|
+
* usable server, such as the env var that points the setup elsewhere.
|
|
97
|
+
*/
|
|
98
|
+
readonly hint?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Drop and recreate the `public` schema of a database a setup owns, so a
|
|
102
|
+
* backend that does not wipe its own database migrates and bootstraps from
|
|
103
|
+
* nothing on every run — bootstrap refuses a database that already holds an
|
|
104
|
+
* account.
|
|
105
|
+
*
|
|
106
|
+
* The wipe takes everything, so it is tied to `owned_name`, the one database
|
|
107
|
+
* the setup owns, rather than to whatever URL reaches it. Create the database
|
|
108
|
+
* first (`ensure_database_for_url`); a missing one, a server that cannot be
|
|
109
|
+
* reached and a role that cannot connect all fail with what to check.
|
|
110
|
+
*
|
|
111
|
+
* @param database_url - a `postgres://` URL naming the owned database
|
|
112
|
+
* @param options - the owned name, the setup's label, and an optional hint
|
|
113
|
+
* @throws Error when the URL names another database, or when the database
|
|
114
|
+
* cannot be emptied (with what to check)
|
|
115
|
+
*/
|
|
116
|
+
export declare const empty_owned_database: (database_url: string, options: EmptyOwnedDatabaseOptions) => Promise<void>;
|
|
85
117
|
//# sourceMappingURL=postgres_database.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgres_database.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/postgres_database.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"postgres_database.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/postgres_database.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAoB9B,8DAA8D;AAC9D,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAAyC,CAAC;AAEjG;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,KAAG,OACyB,CAAC;AAExE;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAAI,cAAc,MAAM,EAAE,UAAU,MAAM,KAAG,MAI3E,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GAAI,YAAY,MAAM,KAAG,MACtB,CAAC;AAE5C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,GAAI,cAAc,MAAM,KAAG,MAK1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,EAAE,UAAU,MAAM,KAAG,OACrB,CAAC;AAE1D,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IAClC,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAMD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,eAAe,GAC3B,UAAU,MAAM,EAChB,aAAa,MAAM,EACnB,OAAM,kBAAiD,KACrD,OAyBF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,GACnC,cAAc,MAAM,EACpB,OAAO,kBAAkB,KACvB,OAMF,CAAC;AAEF,0CAA0C;AAC1C,MAAM,WAAW,yBAAyB;IACzC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,qFAAqF;IACrF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,oBAAoB,GAChC,cAAc,MAAM,EACpB,SAAS,yBAAyB,KAChC,OAAO,CAAC,IAAI,CAqCd,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import '../assert_dev_env.js';
|
|
2
2
|
/**
|
|
3
3
|
* Postgres database helpers for cross-backend global setups — creating the
|
|
4
|
-
* database a backend's URL names,
|
|
4
|
+
* database a backend's URL names, emptying one a setup owns, and printing
|
|
5
|
+
* such a URL safely.
|
|
5
6
|
*
|
|
6
7
|
* The harness never creates a database by itself: a setup opts in
|
|
7
8
|
* (`create_cross_backend_global_setup`'s `ensure_databases`, or a call to
|
|
@@ -11,6 +12,8 @@ import '../assert_dev_env.js';
|
|
|
11
12
|
* @module
|
|
12
13
|
*/
|
|
13
14
|
import { execFileSync } from 'node:child_process';
|
|
15
|
+
import { create_db } from '../../db/create_db.js';
|
|
16
|
+
import { pg_error_code } from '../../db/pg_error.js';
|
|
14
17
|
/** The URL protocols a Postgres connection string carries. */
|
|
15
18
|
export const POSTGRES_URL_PROTOCOLS = new Set(['postgres:', 'postgresql:']);
|
|
16
19
|
/**
|
|
@@ -138,3 +141,55 @@ export const ensure_database_for_url = (database_url, deps) => {
|
|
|
138
141
|
ensure_database(database, database_url, deps);
|
|
139
142
|
return true;
|
|
140
143
|
};
|
|
144
|
+
/** A connection failure's text — a refused connection carries a `code` and an empty message. */
|
|
145
|
+
const describe_connect_error = (error) => (error instanceof Error && error.message) || pg_error_code(error) || String(error);
|
|
146
|
+
/**
|
|
147
|
+
* Drop and recreate the `public` schema of a database a setup owns, so a
|
|
148
|
+
* backend that does not wipe its own database migrates and bootstraps from
|
|
149
|
+
* nothing on every run — bootstrap refuses a database that already holds an
|
|
150
|
+
* account.
|
|
151
|
+
*
|
|
152
|
+
* The wipe takes everything, so it is tied to `owned_name`, the one database
|
|
153
|
+
* the setup owns, rather than to whatever URL reaches it. Create the database
|
|
154
|
+
* first (`ensure_database_for_url`); a missing one, a server that cannot be
|
|
155
|
+
* reached and a role that cannot connect all fail with what to check.
|
|
156
|
+
*
|
|
157
|
+
* @param database_url - a `postgres://` URL naming the owned database
|
|
158
|
+
* @param options - the owned name, the setup's label, and an optional hint
|
|
159
|
+
* @throws Error when the URL names another database, or when the database
|
|
160
|
+
* cannot be emptied (with what to check)
|
|
161
|
+
*/
|
|
162
|
+
export const empty_owned_database = async (database_url, options) => {
|
|
163
|
+
const { owned_name, label, hint } = options;
|
|
164
|
+
const database = decodeURIComponent(new URL(database_url).pathname.slice(1));
|
|
165
|
+
if (database !== owned_name) {
|
|
166
|
+
throw new Error(`${label}: refusing to empty database "${database}" — only "${owned_name}" is wiped`);
|
|
167
|
+
}
|
|
168
|
+
try {
|
|
169
|
+
// inside the `try`, so a connect error thrown here gets the fix too
|
|
170
|
+
const { db, close } = await create_db(database_url);
|
|
171
|
+
try {
|
|
172
|
+
// loaded here, not at module load: `../db.ts` pulls in `vitest`, which a
|
|
173
|
+
// global setup that only ensures databases must not load
|
|
174
|
+
const { reset_public_schema } = await import('../db.js');
|
|
175
|
+
await reset_public_schema(db);
|
|
176
|
+
}
|
|
177
|
+
finally {
|
|
178
|
+
await close();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
// 3D000 invalid_catalog_name — the server answered, the database is missing
|
|
183
|
+
const maintenance_url = redact_database_url(to_maintenance_database_url(database_url));
|
|
184
|
+
const fix = pg_error_code(error) === '3D000'
|
|
185
|
+
? `the database does not exist and \`createdb\` did not create it — run ` +
|
|
186
|
+
`\`createdb --maintenance-db=${maintenance_url} ${owned_name}\` to see why ` +
|
|
187
|
+
`(the URL's role needs to be allowed to create databases), or create it ` +
|
|
188
|
+
`there as another role`
|
|
189
|
+
: `check that Postgres is running there and that the URL's role can connect ` +
|
|
190
|
+
`and owns the database` +
|
|
191
|
+
(hint ? `, ${hint}` : '');
|
|
192
|
+
throw new Error(`${label}: the Postgres database ${redact_database_url(database_url)} could not be ` +
|
|
193
|
+
`emptied: ${describe_connect_error(error)}. To fix: ${fix}.`, { cause: error });
|
|
194
|
+
}
|
|
195
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query_shape.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/query_shape.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"query_shape.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/query_shape.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAyC9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAG1E;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,uCAAuC,CAAC;AAYjF,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IAwKtF,CAAC"}
|
|
@@ -18,7 +18,8 @@ import '../assert_dev_env.js';
|
|
|
18
18
|
* - **the JSON-RPC GET endpoint** — `method` / `id` / `params` read
|
|
19
19
|
* first-wins; a duplicated `method` must dispatch the first one on every
|
|
20
20
|
* backend (a last-wins reader dispatches a different method per backend on
|
|
21
|
-
* the same request).
|
|
21
|
+
* the same request). Every response the GET handler writes — a dispatched
|
|
22
|
+
* answer and its own query refusal alike — is `Cache-Control: no-store`.
|
|
22
23
|
* - **`GET /api/facts/:hash`** (gated on `capabilities.fact_serving_admin_hash`) —
|
|
23
24
|
* strict query schema: unknown keys and a malformed `acting` are 400
|
|
24
25
|
* `invalid_query_params` even for an anonymous caller (query precedes the
|
|
@@ -36,6 +37,12 @@ import { account_verify_action_spec } from '../../auth/account_action_specs.js';
|
|
|
36
37
|
import { ERROR_INVALID_QUERY_PARAMS } from '../../http/error_schemas.js';
|
|
37
38
|
import { test_if } from './capabilities.js';
|
|
38
39
|
import { SPINE_ACCOUNT_STATUS_PATH, SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
40
|
+
/**
|
|
41
|
+
* The `Cache-Control` every RPC `GET` response carries — the value of
|
|
42
|
+
* `actions/action_rpc.ts`'s `RPC_GET_CACHE_CONTROL` and the Rust spine's,
|
|
43
|
+
* spelled out so this suite imports no server module.
|
|
44
|
+
*/
|
|
45
|
+
const RPC_GET_CACHE_CONTROL_EXPECTED = 'no-store';
|
|
39
46
|
/** A well-formed blake3 hash that references no stored fact. */
|
|
40
47
|
const MISSING_HASH = `blake3:${'a'.repeat(64)}`;
|
|
41
48
|
export const describe_query_shape_cross_tests = (options) => {
|
|
@@ -101,10 +108,20 @@ export const describe_query_shape_cross_tests = (options) => {
|
|
|
101
108
|
// reader dispatches the missing method (method_not_found) with id 8.
|
|
102
109
|
const res = await fixture.transport(`${rpc_path}?method=${method}&method=definitely_missing_method&id=7&id=8`, { method: 'GET', headers: fixture.create_session_headers() });
|
|
103
110
|
assert.strictEqual(res.status, 200);
|
|
111
|
+
assert.strictEqual(res.headers.get('cache-control'), RPC_GET_CACHE_CONTROL_EXPECTED, 'a GET read is no-store');
|
|
104
112
|
const body = (await res.json());
|
|
105
113
|
assert.strictEqual(body.id, 7, 'first id occurrence must win');
|
|
106
114
|
assert.ok(body.result !== undefined, 'first method occurrence must dispatch');
|
|
107
115
|
});
|
|
116
|
+
test('rpc GET: the handler refusal is no-store too', async () => {
|
|
117
|
+
const fixture = await setup_test();
|
|
118
|
+
const res = await fixture.transport(`${rpc_path}?id=1`, {
|
|
119
|
+
method: 'GET',
|
|
120
|
+
headers: fixture.create_session_headers()
|
|
121
|
+
});
|
|
122
|
+
assert.strictEqual(res.status, 400);
|
|
123
|
+
assert.strictEqual(res.headers.get('cache-control'), RPC_GET_CACHE_CONTROL_EXPECTED, 'a missing-method refusal is no-store');
|
|
124
|
+
});
|
|
108
125
|
test_if(capabilities.fact_serving_admin_hash, 'bare-hash facts: unknown query key → 400 invalid_query_params, even anonymous', async () => {
|
|
109
126
|
const fixture = await setup_test();
|
|
110
127
|
// Authed admin (the keeper): the strict query schema refuses the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role_grant_offer_lifecycle.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/role_grant_offer_lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"role_grant_offer_lifecycle.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/role_grant_offer_lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAuE9B,OAAO,KAAK,EAAE,wBAAwB,EAAe,MAAM,YAAY,CAAC;AAMxE,qEAAqE;AACrE,MAAM,WAAW,uCAAwC,SAAQ,wBAAwB;IACxF;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,+CAA+C,GAC3D,SAAS,uCAAuC,KAC9C,IA+aF,CAAC"}
|
|
@@ -14,9 +14,19 @@ import '../assert_dev_env.js';
|
|
|
14
14
|
* (`docs/security.md` §"404-over-403 is the general mask"), and the offer is
|
|
15
15
|
* left pending. The scope check comes before the terminal check, so a
|
|
16
16
|
* stranger learns nothing of an offer's state either.
|
|
17
|
+
* - **a decline or retract answers the terminal offer** — the offer as the
|
|
18
|
+
* history then lists it, `declined_at` (with any `decline_reason`) or
|
|
19
|
+
* `retracted_at` stamped, as `accept` answers its own.
|
|
17
20
|
* - **already decided → 400** `invalid_request` with reason
|
|
18
21
|
* `role_grant_offer_terminal` — a decline or retract after an accept, a
|
|
19
22
|
* second decline, a second retract, and either one after the other.
|
|
23
|
+
* - **a grantor's lost authority ends its pending offers.** Revoking a
|
|
24
|
+
* grantor's grant, or deleting its account, supersedes every pending offer
|
|
25
|
+
* it made — gone from the recipient's inbox, an accept answers
|
|
26
|
+
* `role_grant_offer_terminal`, and a `role_grant_offer_supersede` row records
|
|
27
|
+
* it (`role_grant_revoked` with the grant as cause, `account_deleted` with
|
|
28
|
+
* the account). The keeper's own `admin` grant refuses a revoke, 403
|
|
29
|
+
* `cannot_revoke_keeper_admin`.
|
|
20
30
|
* - **one audit row per success, none per refusal.** A decline writes
|
|
21
31
|
* `role_grant_offer_decline` attributed to the recipient and targeting the
|
|
22
32
|
* grantor, a retract `role_grant_offer_retract` attributed to the grantor
|
|
@@ -37,11 +47,14 @@ import '../assert_dev_env.js';
|
|
|
37
47
|
*/
|
|
38
48
|
import { assert, describe, test } from 'vitest';
|
|
39
49
|
import { rpc_call } from '../rpc_helpers.js';
|
|
40
|
-
import { ERROR_ROLE_GRANT_OFFER_NOT_FOUND, ERROR_ROLE_GRANT_OFFER_TERMINAL } from '../../auth/role_grant_offer_action_specs.js';
|
|
50
|
+
import { ERROR_CANNOT_REVOKE_KEEPER_ADMIN, ERROR_ROLE_GRANT_OFFER_NOT_FOUND, ERROR_ROLE_GRANT_OFFER_TERMINAL, RoleGrantOfferDeclineOutput, RoleGrantOfferHistoryOutput, RoleGrantOfferRetractOutput } from '../../auth/role_grant_offer_action_specs.js';
|
|
51
|
+
import { AdminAccountListOutput } from '../../auth/admin_action_specs.js';
|
|
52
|
+
import { ROLE_ADMIN } from '../../auth/role_schema.js';
|
|
53
|
+
import { expect_output } from './cross_rpc.js';
|
|
41
54
|
import { JSONRPC_INVALID_REQUEST } from '../../http/jsonrpc.js';
|
|
42
55
|
import { JSONRPC_ERROR_CODES } from '../../http/jsonrpc_errors.js';
|
|
43
56
|
import { assert_audit_metadata_fields, list_audit_events } from './audit_cross_helpers.js';
|
|
44
|
-
import { create_pending_role_grant_offer } from './role_grant_cross_helpers.js';
|
|
57
|
+
import { create_active_role_grant, create_pending_role_grant_offer } from './role_grant_cross_helpers.js';
|
|
45
58
|
import { SPINE_PARTICIPANT_ROLE, SPINE_RPC_PATH } from './spine_surface_constants.js';
|
|
46
59
|
/** A well-formed UUID that names no offer. */
|
|
47
60
|
const NIL_UUID = '00000000-0000-0000-0000-000000000000';
|
|
@@ -109,6 +122,25 @@ export const describe_role_grant_offer_lifecycle_cross_tests = (options) => {
|
|
|
109
122
|
assert.ok(await is_pending(fixture, recipient, offer.id), 'the refusals leave it pending');
|
|
110
123
|
assert_ok(await retract(fixture, offer.id, fixture.create_session_headers()), 'retract');
|
|
111
124
|
});
|
|
125
|
+
test('a decline and a retract answer the terminal offer, as the history lists it', async () => {
|
|
126
|
+
const fixture = await setup_test();
|
|
127
|
+
const recipient = await fixture.create_account({ username: 'lifecycle_answered' });
|
|
128
|
+
const grantor_headers = fixture.create_session_headers();
|
|
129
|
+
const to_decline = await create_offer(fixture, recipient);
|
|
130
|
+
const { offer: declined } = expect_output(await decline(fixture, to_decline.id, recipient.create_session_headers(), 'not now'), RoleGrantOfferDeclineOutput);
|
|
131
|
+
assert.strictEqual(declined.id, to_decline.id);
|
|
132
|
+
assert.ok(declined.declined_at, 'the declined offer carries declined_at');
|
|
133
|
+
assert.strictEqual(declined.decline_reason, 'not now');
|
|
134
|
+
assert.strictEqual(declined.retracted_at, null);
|
|
135
|
+
const to_retract = await create_offer(fixture, recipient);
|
|
136
|
+
const { offer: retracted } = expect_output(await retract(fixture, to_retract.id, grantor_headers), RoleGrantOfferRetractOutput);
|
|
137
|
+
assert.strictEqual(retracted.id, to_retract.id);
|
|
138
|
+
assert.ok(retracted.retracted_at, 'the retracted offer carries retracted_at');
|
|
139
|
+
assert.strictEqual(retracted.declined_at, null);
|
|
140
|
+
const { offers } = expect_output(await rpc(fixture, 'role_grant_offer_history', {}, grantor_headers), RoleGrantOfferHistoryOutput);
|
|
141
|
+
assert.deepStrictEqual(offers.find((o) => o.id === declined.id), declined);
|
|
142
|
+
assert.deepStrictEqual(offers.find((o) => o.id === retracted.id), retracted);
|
|
143
|
+
});
|
|
112
144
|
test('a decline or retract after accept → 400 role_grant_offer_terminal; a stranger still gets 404', async () => {
|
|
113
145
|
const fixture = await setup_test();
|
|
114
146
|
const recipient = await fixture.create_account({ username: 'lifecycle_accepted' });
|
|
@@ -200,4 +232,66 @@ export const describe_role_grant_offer_lifecycle_cross_tests = (options) => {
|
|
|
200
232
|
assert.strictEqual(after.retracts.length, before.retracts.length, 'no retract row added');
|
|
201
233
|
});
|
|
202
234
|
});
|
|
235
|
+
describe("a grantor's lost authority ends its pending offers", () => {
|
|
236
|
+
/** A grantor holding a global `admin` grant (offer authority) and its id. */
|
|
237
|
+
const setup_grantor = async (fixture, username) => {
|
|
238
|
+
const grantor = await fixture.create_account({ username });
|
|
239
|
+
const grant_id = await create_active_role_grant(fixture, grantor, {
|
|
240
|
+
role: ROLE_ADMIN,
|
|
241
|
+
rpc_path
|
|
242
|
+
});
|
|
243
|
+
return { grantor, grant_id };
|
|
244
|
+
};
|
|
245
|
+
/** The pending `role` offer `grantor` makes to `recipient`. */
|
|
246
|
+
const offer_from = (fixture, grantor, recipient) => create_pending_role_grant_offer(fixture, recipient.account.id, grantor.create_session_headers(), { role, rpc_path });
|
|
247
|
+
const assert_superseded = async (fixture, recipient, offer_id, cause) => {
|
|
248
|
+
assert.ok(!(await is_pending(fixture, recipient, offer_id)), 'gone from the recipient inbox');
|
|
249
|
+
assert_terminal(await accept(fixture, offer_id, recipient.create_session_headers()), 'an accept of the superseded offer');
|
|
250
|
+
const rows = (await list_audit_events(fixture, { event_type: 'role_grant_offer_supersede' }, rpc_path)).filter((e) => e.metadata?.offer_id === offer_id);
|
|
251
|
+
assert.strictEqual(rows.length, 1, 'one role_grant_offer_supersede row');
|
|
252
|
+
assert_audit_metadata_fields(fixture, rows[0].metadata, {
|
|
253
|
+
offer_id,
|
|
254
|
+
role,
|
|
255
|
+
scope_id: null,
|
|
256
|
+
...cause
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
test("revoking the grantor's grant supersedes its pending offers", async () => {
|
|
260
|
+
const fixture = await setup_test();
|
|
261
|
+
const { grantor, grant_id } = await setup_grantor(fixture, 'lost_authority_revoked');
|
|
262
|
+
const recipient = await fixture.create_account({ username: 'lost_authority_to' });
|
|
263
|
+
const offer = await offer_from(fixture, grantor, recipient);
|
|
264
|
+
// another grantor's offer to the same recipient is the control
|
|
265
|
+
const control = await create_offer(fixture, recipient);
|
|
266
|
+
assert_ok(await rpc(fixture, 'role_grant_revoke', { actor_id: grantor.actor.id, role_grant_id: grant_id }, fixture.create_session_headers()), 'revoke');
|
|
267
|
+
await assert_superseded(fixture, recipient, offer.id, {
|
|
268
|
+
reason: 'role_grant_revoked',
|
|
269
|
+
cause_id: grant_id
|
|
270
|
+
});
|
|
271
|
+
assert.ok(await is_pending(fixture, recipient, control.id), "the keeper's offer stays");
|
|
272
|
+
});
|
|
273
|
+
test("deleting the grantor's account supersedes its pending offers", async () => {
|
|
274
|
+
const fixture = await setup_test();
|
|
275
|
+
const { grantor } = await setup_grantor(fixture, 'lost_authority_deleted');
|
|
276
|
+
const recipient = await fixture.create_account({ username: 'lost_authority_del_to' });
|
|
277
|
+
const offer = await offer_from(fixture, grantor, recipient);
|
|
278
|
+
assert_ok(await rpc(fixture, 'account_delete', { account_id: grantor.account.id }, fixture.create_session_headers()), 'account_delete');
|
|
279
|
+
await assert_superseded(fixture, recipient, offer.id, {
|
|
280
|
+
reason: 'account_deleted',
|
|
281
|
+
cause_id: grantor.account.id
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
test("the keeper's admin grant refuses a revoke → 403 cannot_revoke_keeper_admin", async () => {
|
|
285
|
+
const fixture = await setup_test();
|
|
286
|
+
const listed = expect_output(await rpc(fixture, 'admin_account_list', {}, fixture.create_session_headers()), AdminAccountListOutput);
|
|
287
|
+
const keeper = listed.accounts.find((a) => a.account.id === fixture.account.id);
|
|
288
|
+
const keeper_admin = keeper?.role_grants.find((g) => g.role === ROLE_ADMIN && g.scope_id === null);
|
|
289
|
+
assert.ok(keeper_admin, "the keeper's global admin grant");
|
|
290
|
+
const refused = await rpc(fixture, 'role_grant_revoke', { actor_id: fixture.actor.id, role_grant_id: keeper_admin.id }, fixture.create_session_headers());
|
|
291
|
+
assert.ok(!refused.ok, 'the keeper keeps its admin grant');
|
|
292
|
+
assert.strictEqual(refused.status, 403);
|
|
293
|
+
assert.strictEqual(refused.error.code, JSONRPC_ERROR_CODES.forbidden);
|
|
294
|
+
assert.deepStrictEqual(refused.error.data, { reason: ERROR_CANNOT_REVOKE_KEEPER_ADMIN });
|
|
295
|
+
});
|
|
296
|
+
});
|
|
203
297
|
};
|
|
@@ -13,8 +13,8 @@ import '../assert_dev_env.js';
|
|
|
13
13
|
* Spine-generic: the fixtures use only standard RPC actions and the builtin
|
|
14
14
|
* `ROLE_ADMIN`, so any consumer mounting `create_standard_rpc_actions` can
|
|
15
15
|
* pass the map to `describe_standard_cross_process_tests` (as
|
|
16
|
-
* `rpc_success_fixtures`)
|
|
17
|
-
* `
|
|
16
|
+
* `rpc_success_fixtures`) or `describe_rpc_round_trip_tests` (as
|
|
17
|
+
* `success_fixtures`). Each fixture mints
|
|
18
18
|
* its own accounts and calls as one of them, so none touches or calls as the
|
|
19
19
|
* suite's shared identities.
|
|
20
20
|
*
|
|
@@ -20,7 +20,7 @@ import '../assert_dev_env.js';
|
|
|
20
20
|
*
|
|
21
21
|
* @module
|
|
22
22
|
*/
|
|
23
|
-
import type { RpcAction } from '../../actions/
|
|
23
|
+
import type { RpcAction } from '../../actions/action_types.js';
|
|
24
24
|
import type { ActionSpecUnion } from '../../actions/action_spec.js';
|
|
25
25
|
import type { RoleSchemaResult } from '../../auth/role_schema.js';
|
|
26
26
|
import type { SessionOptions } from '../../auth/session_cookie.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAMnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,wDAAyD,CAAC;AAU3F,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,uFAAuF;IACvF,QAAQ,CAAC,KAAK,CAAC,EAAE,gBAAgB,CAAC;IAClC;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAChG,gEAAgE;IAChE,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACpD,SAAS,oCAAoC,KAC3C,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,eAAe,CAAC,CA+BpD,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,mCAAmC,KAC1C,cAeA,CAAC"}
|
|
@@ -32,7 +32,8 @@ export interface SpineStubBackendConfigOptions {
|
|
|
32
32
|
readonly database_url?: string;
|
|
33
33
|
/**
|
|
34
34
|
* Backend name — labels the spawn in errors and logs, and names its
|
|
35
|
-
* directory under `os.tmpdir()` (`
|
|
35
|
+
* directory under `os.tmpdir()` (`default_test_backend_paths`, namespaced
|
|
36
|
+
* by the running repo), which holds
|
|
36
37
|
* the bootstrap token, the daemon token and the fact store. Default
|
|
37
38
|
* `RUST_SPINE_STUB_DEFAULT_NAME`. Give each stub spawned alongside another its own name, so
|
|
38
39
|
* those files don't collide.
|
|
@@ -54,10 +55,10 @@ export interface SpineStubBackendConfigOptions {
|
|
|
54
55
|
readonly enable_login_rate_limit?: boolean;
|
|
55
56
|
/**
|
|
56
57
|
* Comma-separated trusted-proxy allowlist passed as `FUZ_TRUSTED_PROXIES`
|
|
57
|
-
* (e.g. `'127.0.0.1,::1'`). Unset
|
|
58
|
-
*
|
|
59
|
-
* loopback
|
|
60
|
-
*
|
|
58
|
+
* (e.g. `'127.0.0.1,::1'`). Unset, the stub trusts the loopback set
|
|
59
|
+
* (`127.0.0.1`, `::1`), as the TS spine binary does unconditionally, so a
|
|
60
|
+
* loopback caller's `X-Forwarded-For` names the client; `','` trusts none.
|
|
61
|
+
* The login-security project passes the loopback set explicitly.
|
|
61
62
|
*/
|
|
62
63
|
readonly trusted_proxies?: string;
|
|
63
64
|
/**
|
|
@@ -75,6 +76,17 @@ export interface SpineStubBackendConfigOptions {
|
|
|
75
76
|
* otherwise. Mirrors `TsSpineBackendConfigOptions.action_rate_limit_max_attempts`.
|
|
76
77
|
*/
|
|
77
78
|
readonly action_rate_limit_max_attempts?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Replace the audit stream's keep-alive interval
|
|
81
|
+
* (`FUZ_AUDIT_SSE_KEEP_ALIVE_MS`). Mirrors
|
|
82
|
+
* `TsSpineBackendConfigOptions.audit_sse_keep_alive_ms`.
|
|
83
|
+
*/
|
|
84
|
+
readonly audit_sse_keep_alive_ms?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Replace the WS endpoints' receive timeout (`FUZ_WS_RECEIVE_TIMEOUT_MS`).
|
|
87
|
+
* Mirrors `TsSpineBackendConfigOptions.ws_receive_timeout_ms`.
|
|
88
|
+
*/
|
|
89
|
+
readonly ws_receive_timeout_ms?: number;
|
|
78
90
|
}
|
|
79
91
|
/**
|
|
80
92
|
* Build the `BackendConfig` for `testing_spine_stub`. Resolves the binary
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rust_spine_stub_backend_config.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_stub_backend_config.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"rust_spine_stub_backend_config.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_stub_backend_config.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAwC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAezD,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,oCAAoC,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,6CAA6C,CAAC;AAE3F;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,6CAA6C,CAAC;AAoCnG,kGAAkG;AAClG,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAEjD,8EAA8E;AAC9E,eAAO,MAAM,4BAA4B,eAAe,CAAC;AAEzD,0FAA0F;AAC1F,eAAO,MAAM,oCAAoC,sDACG,CAAC;AAErD,MAAM,WAAW,6BAA6B;IAC7C,8DAA8D;IAC9D,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;;;OAOG;IACH,QAAQ,CAAC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAC3C;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC;;;;;;OAMG;IACH,QAAQ,CAAC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAC5C;;;;;OAKG;IACH,QAAQ,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACjD;;;;OAIG;IACH,QAAQ,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAC1C;;;OAGG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CACxC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,GAC1C,UAAS,6BAAkC,KACzC,aAoDF,CAAC"}
|
|
@@ -35,9 +35,9 @@ import '../assert_dev_env.js';
|
|
|
35
35
|
* @module
|
|
36
36
|
*/
|
|
37
37
|
import { fileURLToPath } from 'node:url';
|
|
38
|
-
import {
|
|
38
|
+
import { default_test_backend_paths } from './build_test_backend_paths.js';
|
|
39
39
|
import { LOGIN_RATE_LIMIT_ENABLED_ENV, SPINE_EXPECTED_SCHEMA_URL, TESTING_BACKDOOR_METHODS } from './spine_surface_constants.js';
|
|
40
|
-
import { action_rate_limit_env, make_default_rust_backend_config, rust_default_capabilities } from './default_backend_configs.js';
|
|
40
|
+
import { action_rate_limit_env, make_default_rust_backend_config, rust_default_capabilities, timing_env } from './default_backend_configs.js';
|
|
41
41
|
/** Env var naming the prebuilt `testing_spine_stub` binary. Required when `binary_path` is omitted. */
|
|
42
42
|
export const RUST_SPINE_STUB_BIN_ENV = 'FUZ_TESTING_RUST_SPINE_STUB_BIN';
|
|
43
43
|
/**
|
|
@@ -112,7 +112,7 @@ export const rust_spine_stub_backend_config = (options = {}) => {
|
|
|
112
112
|
'`testing_spine_stub` binary (build it with `cargo build -p testing_spine_stub --profile cross-test`) ' +
|
|
113
113
|
'or pass `binary_path`.');
|
|
114
114
|
}
|
|
115
|
-
const paths =
|
|
115
|
+
const paths = default_test_backend_paths(name);
|
|
116
116
|
return make_default_rust_backend_config({
|
|
117
117
|
name,
|
|
118
118
|
port,
|
|
@@ -141,7 +141,8 @@ export const rust_spine_stub_backend_config = (options = {}) => {
|
|
|
141
141
|
// resolved `X-Forwarded-For` IP. The stub reads both directly.
|
|
142
142
|
...(enable_login_rate_limit ? { [LOGIN_RATE_LIMIT_ENABLED_ENV]: 'true' } : {}),
|
|
143
143
|
...(trusted_proxies !== undefined ? { FUZ_TRUSTED_PROXIES: trusted_proxies } : {}),
|
|
144
|
-
...action_rate_limit_env(options)
|
|
144
|
+
...action_rate_limit_env(options),
|
|
145
|
+
...timing_env(options)
|
|
145
146
|
}
|
|
146
147
|
});
|
|
147
148
|
};
|
|
@@ -15,12 +15,20 @@ export interface SessionCapCrossTestOptions {
|
|
|
15
15
|
readonly login_path?: string;
|
|
16
16
|
/** REST account-status route path. Default `/api/account/status`. */
|
|
17
17
|
readonly status_path?: string;
|
|
18
|
+
/** JSON-RPC endpoint path, for the session-list case. Default `SPINE_RPC_PATH`. */
|
|
19
|
+
readonly rpc_path?: string;
|
|
18
20
|
/**
|
|
19
21
|
* Where the backend's WebSocket endpoint is, for the case that an evicted
|
|
20
22
|
* session's socket is closed. Pass it when the backend has a WS transport
|
|
21
23
|
* (`capabilities.ws`); omitted, that case is skipped.
|
|
22
24
|
*/
|
|
23
25
|
readonly ws?: WsEndpointTarget;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the `ws` endpoint mounts the self-service account actions
|
|
28
|
+
* (`capabilities.ws_account_actions`), so the session-list case also lists
|
|
29
|
+
* over a socket. Default `false`.
|
|
30
|
+
*/
|
|
31
|
+
readonly ws_account_actions?: boolean;
|
|
24
32
|
/**
|
|
25
33
|
* The roles the account whose socket the `ws` case watches is created with, for a
|
|
26
34
|
* backend whose WS upgrade requires a role (an admin-gated `/api/ws`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session_cap.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/session_cap.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"session_cap.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/session_cap.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAkE9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,gDAAgD;AAChD,MAAM,WAAW,0BAA0B;IAC1C,2EAA2E;IAC3E,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,qEAAqE;IACrE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,mFAAmF;IACnF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC;IAC/B;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,gCAAgC,GAAI,SAAS,0BAA0B,KAAG,IA2MtF,CAAC"}
|