@fuzdev/fuz_app 0.150.0 → 0.152.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 +324 -299
- package/dist/actions/action_bridge.d.ts +5 -86
- package/dist/actions/action_bridge.d.ts.map +1 -1
- package/dist/actions/action_bridge.js +4 -84
- 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_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 -34
- 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 -298
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/register_action_ws.js +155 -923
- 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 +52 -75
- 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 +70 -44
- 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_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 +5 -5
- package/dist/auth/actor_search_queries.d.ts.map +1 -1
- package/dist/auth/actor_search_queries.js +7 -7
- package/dist/auth/admin_action_specs.d.ts.map +1 -1
- package/dist/auth/admin_action_specs.js +3 -1
- 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 +12 -42
- package/dist/auth/all_cell_actions.d.ts +6 -4
- package/dist/auth/all_cell_actions.d.ts.map +1 -1
- package/dist/auth/all_cell_actions.js +1 -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 +3 -3
- package/dist/auth/audit_emitter.js +2 -2
- 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 +13 -21
- package/dist/auth/audit_log_schema.d.ts.map +1 -1
- package/dist/auth/audit_log_schema.js +10 -18
- 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/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_actions.d.ts +22 -13
- package/dist/auth/cell_actions.d.ts.map +1 -1
- package/dist/auth/cell_actions.js +105 -167
- 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_metadata.d.ts +1 -1
- package/dist/auth/cell_audit_metadata.js +1 -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 +2 -2
- package/dist/auth/cell_grant_action_specs.js +3 -3
- package/dist/auth/cell_grant_actions.d.ts +73 -11
- package/dist/auth/cell_grant_actions.d.ts.map +1 -1
- package/dist/auth/cell_grant_actions.js +63 -55
- 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 +5 -5
- package/dist/auth/credential_type_schema.js +5 -5
- 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 +99 -14
- package/dist/auth/role_grant_offer_action_specs.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_action_specs.js +26 -13
- package/dist/auth/role_grant_offer_actions.d.ts +13 -7
- package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_actions.js +14 -12
- package/dist/auth/role_grant_offer_notifications.d.ts +3 -3
- package/dist/auth/role_grant_offer_notifications.js +1 -1
- package/dist/auth/role_grant_offer_queries.d.ts +0 -5
- package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_offer_queries.js +9 -41
- package/dist/auth/role_grant_queries.d.ts +17 -67
- package/dist/auth/role_grant_queries.d.ts.map +1 -1
- package/dist/auth/role_grant_queries.js +34 -106
- 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/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 +1 -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 +9 -4
- package/dist/db/cell_ddl.d.ts +5 -142
- package/dist/db/cell_ddl.d.ts.map +1 -1
- package/dist/db/cell_ddl.js +17 -16
- 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 +12 -48
- package/dist/db/cell_queries.d.ts.map +1 -1
- package/dist/db/cell_queries.js +24 -55
- 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/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_errors.d.ts +22 -2
- package/dist/http/jsonrpc_errors.d.ts.map +1 -1
- package/dist/http/jsonrpc_errors.js +41 -3
- 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/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 +1 -1
- package/dist/http/surface.d.ts.map +1 -1
- 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 +30 -10
- package/dist/schema_meta.d.ts.map +1 -1
- package/dist/schema_meta.js +85 -21
- 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 +62 -51
- package/dist/server/app_server.d.ts.map +1 -1
- package/dist/server/app_server.js +84 -71
- 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 +179 -158
- 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 -77
- 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/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 +13 -7
- package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
- 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_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 +1 -1
- package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
- 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/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 +9 -2
- 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 +23 -1
- 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_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 +45 -3
- 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 +9 -8
- 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 -96
- package/dist/actions/transports_ws_auth_guard.d.ts.map +0 -1
- package/dist/actions/transports_ws_auth_guard.js +0 -141
- 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 -239
- 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
|
@@ -1,99 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Bridge
|
|
2
|
+
* Bridge from a notification `ActionSpec` to the SSE `EventSpec` it pushes as.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Request/response actions are served by the RPC and WS dispatchers
|
|
5
|
+
* (`actions/action_rpc.ts`, `actions/register_action_ws.ts`), never as REST
|
|
6
|
+
* routes.
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
import type {
|
|
11
|
-
import type { ActionSpec, ActionSideEffects } from './action_spec.js';
|
|
12
|
-
import type { RouteSpec, RouteMethod, RouteHandler } from '../http/route_spec.js';
|
|
13
|
-
import { type RouteAuth } from '../http/auth_shape.js';
|
|
10
|
+
import type { ActionSpec } from './action_spec.js';
|
|
14
11
|
import type { EventSpec } from '../realtime/sse.js';
|
|
15
|
-
import type { RouteErrorSchemas } from '../http/error_schemas.js';
|
|
16
|
-
/** Options for deriving a `RouteSpec` from an `ActionSpec`. */
|
|
17
|
-
export interface ActionRouteOptions {
|
|
18
|
-
path: string;
|
|
19
|
-
handler: RouteHandler;
|
|
20
|
-
/** URL path parameter schema. Use `z.strictObject()` with string fields matching `:param` segments. */
|
|
21
|
-
params?: z.ZodObject;
|
|
22
|
-
/** URL query parameter schema. Use `z.strictObject()` with string fields. */
|
|
23
|
-
query?: z.ZodObject;
|
|
24
|
-
/** Override the default HTTP method (default: `side_effects` → POST, else GET). */
|
|
25
|
-
http_method?: RouteMethod;
|
|
26
|
-
/**
|
|
27
|
-
* Override the route's auth shape — defaults to the action spec's `auth`
|
|
28
|
-
* (the canonical shape from `http/auth_shape.ts` is shared verbatim between
|
|
29
|
-
* action specs and route specs, so no mapping is needed).
|
|
30
|
-
*
|
|
31
|
-
* The bridge fills in `required_scope` on whichever shape it ends up with,
|
|
32
|
-
* so an override still gets the token-scope gate; declare `required_scope`
|
|
33
|
-
* here to name a different capability (e.g. `surface:<name>` when the
|
|
34
|
-
* bridged route is a stream rather than a request/response call — see the
|
|
35
|
-
* token-scope note on `create_action_route_spec`).
|
|
36
|
-
*
|
|
37
|
-
* Overriding to *widen* (admitting a credential the action's own gate
|
|
38
|
-
* refused) makes this route the consumer's to audit, not the spine's.
|
|
39
|
-
*/
|
|
40
|
-
auth?: RouteAuth;
|
|
41
|
-
/** Handler-specific error schemas (HTTP status code → Zod schema). Transport-specific — not on ActionSpec. */
|
|
42
|
-
errors?: RouteErrorSchemas;
|
|
43
|
-
}
|
|
44
12
|
/** Options for deriving an `EventSpec` from an `ActionSpec`. */
|
|
45
13
|
export interface ActionEventOptions {
|
|
46
14
|
channel?: string;
|
|
47
15
|
}
|
|
48
|
-
/** Derive the default HTTP method from side effects. */
|
|
49
|
-
export declare const derive_http_method: (side_effects: ActionSideEffects) => RouteMethod;
|
|
50
|
-
/**
|
|
51
|
-
* Derive a `RouteSpec` from an `ActionSpec` and options.
|
|
52
|
-
*
|
|
53
|
-
* Only `request_response` actions (which require non-null `auth`) can become routes.
|
|
54
|
-
* `remote_notification` actions (auth null) should use `create_action_event_spec`.
|
|
55
|
-
* `local_call` actions are not for HTTP transport.
|
|
56
|
-
*
|
|
57
|
-
* Error schemas are transport-specific (keyed by HTTP status codes) and belong
|
|
58
|
-
* on the options, not the action spec. Action specs define the contract;
|
|
59
|
-
* transport concerns like HTTP error codes are added at the bridge layer.
|
|
60
|
-
*
|
|
61
|
-
* **The bridge carries the token-scope gate across for you.** A bridged route
|
|
62
|
-
* runs `options.handler` through the REST pipeline and never reaches
|
|
63
|
-
* `perform_action`, so the dispatcher's per-method scope check cannot fire on
|
|
64
|
-
* it — which would leave a bearer-reachable route that a **narrowed** api token
|
|
65
|
-
* walks straight through. So the derived spec declares
|
|
66
|
-
* `auth.required_scope: 'rpc:<method>'`, and `fuz_auth_guard_resolver` mounts
|
|
67
|
-
* the same refusal ahead of the role gate. A token that lists the method
|
|
68
|
-
* reaches the bridged route; one that doesn't gets the 403 it would have gotten
|
|
69
|
-
* over RPC.
|
|
70
|
-
*
|
|
71
|
-
* Per-method rather than rule 3's blanket refusal because a bridged route
|
|
72
|
-
* *has* a method identity — which is exactly what the non-RPC surfaces rule 3
|
|
73
|
-
* covers (the db browser, a bare-hash read, a stream) do not, and why that rule
|
|
74
|
-
* is all-or-nothing there. **Bridge something with no request/response shape —
|
|
75
|
-
* an SSE stream, a file download — and rule 3's reasoning applies instead**:
|
|
76
|
-
* pass `options.auth` with `required_scope: 'surface:<name>'`, naming your own
|
|
77
|
-
* surface. See `docs/security.md` §Token scoping.
|
|
78
|
-
*
|
|
79
|
-
* Skipped for a public action (`account: 'none', actor: 'none'`), where the
|
|
80
|
-
* same holder reaches the route by dropping the credential, so the guard would
|
|
81
|
-
* enforce nothing — the shape `fuz_auth_guard_resolver` refuses outright.
|
|
82
|
-
*
|
|
83
|
-
* **A rate-limited action is refused.** The action limiters run in
|
|
84
|
-
* `perform_action`, which a bridged route never reaches, and a route spec has
|
|
85
|
-
* no limiter of its own — so bridging a `rate_limit` action would serve it
|
|
86
|
-
* unthrottled beside the throttled RPC and WS paths, a way around its budget.
|
|
87
|
-
* Serve it over RPC or WS instead.
|
|
88
|
-
*
|
|
89
|
-
* @param spec - the action spec (must have non-null `auth`)
|
|
90
|
-
* @param options - HTTP-specific options (path, handler, optional overrides)
|
|
91
|
-
* @returns a `RouteSpec` ready for `apply_route_specs`
|
|
92
|
-
* @throws Error if `spec.auth` is null (only `request_response` actions can
|
|
93
|
-
* become routes; notifications and local calls cannot)
|
|
94
|
-
* @throws Error if `spec.rate_limit` is set (the bridged route would be unthrottled)
|
|
95
|
-
*/
|
|
96
|
-
export declare const create_action_route_spec: (spec: ActionSpec, options: ActionRouteOptions) => RouteSpec;
|
|
97
16
|
/**
|
|
98
17
|
* Derive an `EventSpec` from an `ActionSpec`.
|
|
99
18
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action_bridge.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/action_bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"action_bridge.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/action_bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,gEAAgE;AAChE,MAAM,WAAW,kBAAkB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GACpC,MAAM,UAAU,EAChB,UAAU,kBAAkB,KAC1B,SAcF,CAAC"}
|
|
@@ -1,92 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Bridge
|
|
2
|
+
* Bridge from a notification `ActionSpec` to the SSE `EventSpec` it pushes as.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Request/response actions are served by the RPC and WS dispatchers
|
|
5
|
+
* (`actions/action_rpc.ts`, `actions/register_action_ws.ts`), never as REST
|
|
6
|
+
* routes.
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
import { token_scope_method_capability } from '../auth/token_scope.js';
|
|
11
|
-
import { is_public_auth } from '../http/auth_shape.js';
|
|
12
|
-
/** Derive the default HTTP method from side effects. */
|
|
13
|
-
export const derive_http_method = (side_effects) => {
|
|
14
|
-
return side_effects ? 'POST' : 'GET';
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Derive a `RouteSpec` from an `ActionSpec` and options.
|
|
18
|
-
*
|
|
19
|
-
* Only `request_response` actions (which require non-null `auth`) can become routes.
|
|
20
|
-
* `remote_notification` actions (auth null) should use `create_action_event_spec`.
|
|
21
|
-
* `local_call` actions are not for HTTP transport.
|
|
22
|
-
*
|
|
23
|
-
* Error schemas are transport-specific (keyed by HTTP status codes) and belong
|
|
24
|
-
* on the options, not the action spec. Action specs define the contract;
|
|
25
|
-
* transport concerns like HTTP error codes are added at the bridge layer.
|
|
26
|
-
*
|
|
27
|
-
* **The bridge carries the token-scope gate across for you.** A bridged route
|
|
28
|
-
* runs `options.handler` through the REST pipeline and never reaches
|
|
29
|
-
* `perform_action`, so the dispatcher's per-method scope check cannot fire on
|
|
30
|
-
* it — which would leave a bearer-reachable route that a **narrowed** api token
|
|
31
|
-
* walks straight through. So the derived spec declares
|
|
32
|
-
* `auth.required_scope: 'rpc:<method>'`, and `fuz_auth_guard_resolver` mounts
|
|
33
|
-
* the same refusal ahead of the role gate. A token that lists the method
|
|
34
|
-
* reaches the bridged route; one that doesn't gets the 403 it would have gotten
|
|
35
|
-
* over RPC.
|
|
36
|
-
*
|
|
37
|
-
* Per-method rather than rule 3's blanket refusal because a bridged route
|
|
38
|
-
* *has* a method identity — which is exactly what the non-RPC surfaces rule 3
|
|
39
|
-
* covers (the db browser, a bare-hash read, a stream) do not, and why that rule
|
|
40
|
-
* is all-or-nothing there. **Bridge something with no request/response shape —
|
|
41
|
-
* an SSE stream, a file download — and rule 3's reasoning applies instead**:
|
|
42
|
-
* pass `options.auth` with `required_scope: 'surface:<name>'`, naming your own
|
|
43
|
-
* surface. See `docs/security.md` §Token scoping.
|
|
44
|
-
*
|
|
45
|
-
* Skipped for a public action (`account: 'none', actor: 'none'`), where the
|
|
46
|
-
* same holder reaches the route by dropping the credential, so the guard would
|
|
47
|
-
* enforce nothing — the shape `fuz_auth_guard_resolver` refuses outright.
|
|
48
|
-
*
|
|
49
|
-
* **A rate-limited action is refused.** The action limiters run in
|
|
50
|
-
* `perform_action`, which a bridged route never reaches, and a route spec has
|
|
51
|
-
* no limiter of its own — so bridging a `rate_limit` action would serve it
|
|
52
|
-
* unthrottled beside the throttled RPC and WS paths, a way around its budget.
|
|
53
|
-
* Serve it over RPC or WS instead.
|
|
54
|
-
*
|
|
55
|
-
* @param spec - the action spec (must have non-null `auth`)
|
|
56
|
-
* @param options - HTTP-specific options (path, handler, optional overrides)
|
|
57
|
-
* @returns a `RouteSpec` ready for `apply_route_specs`
|
|
58
|
-
* @throws Error if `spec.auth` is null (only `request_response` actions can
|
|
59
|
-
* become routes; notifications and local calls cannot)
|
|
60
|
-
* @throws Error if `spec.rate_limit` is set (the bridged route would be unthrottled)
|
|
61
|
-
*/
|
|
62
|
-
export const create_action_route_spec = (spec, options) => {
|
|
63
|
-
if (spec.auth === null) {
|
|
64
|
-
throw new Error(`Cannot derive route spec from action '${spec.method}': auth is null (only request_response actions with non-null auth can become routes)`);
|
|
65
|
-
}
|
|
66
|
-
if (spec.rate_limit) {
|
|
67
|
-
throw new Error(`Cannot derive route spec from action '${spec.method}': it declares rate_limit '${spec.rate_limit}', which a bridged route would not enforce (serve it over RPC or WS instead)`);
|
|
68
|
-
}
|
|
69
|
-
const auth = options.auth ?? spec.auth;
|
|
70
|
-
// Carry the dispatcher's per-method scope gate across — see the token-scope
|
|
71
|
-
// note above. An explicit capability wins; a public route has no credential
|
|
72
|
-
// to narrow, and the resolver rejects the gate on that shape anyway.
|
|
73
|
-
const derives_scope_gate = auth.required_scope === undefined && !is_public_auth(auth);
|
|
74
|
-
return {
|
|
75
|
-
method: options.http_method ?? derive_http_method(spec.side_effects),
|
|
76
|
-
path: options.path,
|
|
77
|
-
auth: derives_scope_gate
|
|
78
|
-
? { ...auth, required_scope: token_scope_method_capability(spec.method) }
|
|
79
|
-
: auth,
|
|
80
|
-
handler: options.handler,
|
|
81
|
-
description: spec.description,
|
|
82
|
-
...(options.params ? { params: options.params } : {}),
|
|
83
|
-
...(options.query ? { query: options.query } : {}),
|
|
84
|
-
input: spec.input,
|
|
85
|
-
output: spec.output,
|
|
86
|
-
...(options.errors ? { errors: options.errors } : {}),
|
|
87
|
-
transaction: spec.side_effects
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
10
|
/**
|
|
91
11
|
* Derive an `EventSpec` from an `ActionSpec`.
|
|
92
12
|
*
|
|
@@ -89,12 +89,6 @@ export declare class ImportBuilder {
|
|
|
89
89
|
}
|
|
90
90
|
/** Phases an executor can handle for the given spec — kind + initiator → set of phases. */
|
|
91
91
|
export declare const get_executor_phases: (spec: ActionSpecUnion, executor: "frontend" | "backend") => Array<ActionEventPhase>;
|
|
92
|
-
/** Default `collections_path` — every consumer's gen producers point at the sibling `action_collections.ts`. */
|
|
93
|
-
export declare const DEFAULT_COLLECTIONS_PATH = "./action_collections.ts";
|
|
94
|
-
/** Default `specs_module` — sibling `action_specs.ts` namespace bundled by the consumer. */
|
|
95
|
-
export declare const DEFAULT_SPECS_MODULE = "./action_specs.ts";
|
|
96
|
-
/** Default `metatypes_path` — sibling `action_metatypes.ts` carrying the generated `ActionMethod`. */
|
|
97
|
-
export declare const DEFAULT_METATYPES_PATH = "./action_metatypes.ts";
|
|
98
92
|
/**
|
|
99
93
|
* Gets the handler return type for a specific phase and spec. Adds an
|
|
100
94
|
* `ActionOutputs` import (from `collections_path`) when the phase carries an
|
|
@@ -123,27 +117,6 @@ export declare const generate_phase_handlers: (spec: ActionSpecUnion, executor:
|
|
|
123
117
|
action_event_type?: string;
|
|
124
118
|
collections_path?: string;
|
|
125
119
|
}) => string;
|
|
126
|
-
/** "DO NOT EDIT" banner naming the gen producer. */
|
|
127
|
-
export declare const create_banner: (origin_path: string) => string;
|
|
128
|
-
/**
|
|
129
|
-
* Derive the exported spec identifier for a method. Method names that aren't
|
|
130
|
-
* legal JS identifiers — e.g. the `/` in the `peer/ping` protocol action — have
|
|
131
|
-
* each run of illegal characters collapsed to a single `_`, so `peer/ping`
|
|
132
|
-
* resolves to `peer_ping_action_spec` (the export in `actions/peer_ping.ts`).
|
|
133
|
-
* Already-valid names pass through unchanged.
|
|
134
|
-
*/
|
|
135
|
-
export declare const to_action_spec_identifier: (method: string) => string;
|
|
136
|
-
export declare const to_action_spec_input_identifier: (method: string) => string;
|
|
137
|
-
export declare const to_action_spec_output_identifier: (method: string) => string;
|
|
138
|
-
/**
|
|
139
|
-
* Render a method name as an object/interface property key — bare when it's a
|
|
140
|
-
* valid JS identifier, single-quoted otherwise. Method names like `peer/ping`
|
|
141
|
-
* aren't legal as bare keys, so quoting keeps the emitted `ActionSpecs` /
|
|
142
|
-
* `ActionInputs` / `FrontendActionsApi` members valid TypeScript. Pairs with
|
|
143
|
-
* the bracketed indexed-access form (`ActionInputs['peer/ping']`) used for
|
|
144
|
-
* value/type lookups, which already accepts the raw method string.
|
|
145
|
-
*/
|
|
146
|
-
export declare const to_action_property_key: (method: string) => string;
|
|
147
120
|
/**
|
|
148
121
|
* Whether a caller may omit an action's input: its schema accepts `undefined`,
|
|
149
122
|
* or accepts `{}` (what an omitted input is validated as) and is not marked
|
|
@@ -155,83 +128,8 @@ export declare const to_action_property_key: (method: string) => string;
|
|
|
155
128
|
* @returns whether the typed surface makes the input optional
|
|
156
129
|
*/
|
|
157
130
|
export declare const action_input_is_optional: (spec: Pick<ActionSpecUnion, "input">) => boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Generates one method line of the typed `FrontendActionsApi` interface for a
|
|
160
|
-
* single spec. Encapsulates the input/options/return-type signature shape so
|
|
161
|
-
* the surface evolves in one place when fields like `signal` or
|
|
162
|
-
* `transport_name` are added to per-call options.
|
|
163
|
-
*
|
|
164
|
-
* Async methods (`request_response`, `remote_notification`, async
|
|
165
|
-
* `local_call`) get an optional second `options?: RpcClientCallOptions` arg
|
|
166
|
-
* (`{signal?, transport_name?, queue?}`) and a `Promise<Result<...>>` return
|
|
167
|
-
* type. Sync `local_call` methods omit the options arg — `signal` can't
|
|
168
|
-
* cooperatively interrupt a synchronous handler and there's no transport to
|
|
169
|
-
* select. `remote_notification` is async because
|
|
170
|
-
* `create_remote_notification_method` returns a Promise that resolves to a
|
|
171
|
-
* `Result<{value: void}>` (success) or `Result<{error}>` (transport send
|
|
172
|
-
* failure). Earlier emit shapes declared notifications as `=> void` —
|
|
173
|
-
* regenerate consumer typed clients to pick up the corrected return.
|
|
174
|
-
*
|
|
175
|
-
* Registers exactly the imports the emitted line references on `imports`:
|
|
176
|
-
* `ActionInputs` (when the spec has input), `ActionOutputs` (always),
|
|
177
|
-
* `RpcClientCallOptions` (async only), and `Result` + `JsonrpcErrorObject`
|
|
178
|
-
* (any return shape that wraps the value in `Result<{value}, {error}>` —
|
|
179
|
-
* every async method, plus sync `local_call` when `sync_returns_value:
|
|
180
|
-
* false`). Mirrors the leaf-level pattern `get_handler_return_type` already
|
|
181
|
-
* follows so wrappers no longer pre-register imports a per-spec emit might
|
|
182
|
-
* not actually use.
|
|
183
|
-
*
|
|
184
|
-
* **Optional-input detection.** The emitted parameter is `input?:` (caller
|
|
185
|
-
* may omit the argument) when either (a) the schema accepts `undefined` —
|
|
186
|
-
* `z.optional(z.strictObject(...))` and similar wrappers — or (b) the
|
|
187
|
-
* schema accepts the empty object `{}` — `z.strictObject({acting:
|
|
188
|
-
ActingActor})` and other all-optional-fields strict objects. The second
|
|
189
|
-
* probe mirrors the dispatcher's HTTP convention (`raw_params ?? {}` for
|
|
190
|
-
* non-`z.void()` schemas in `actions/action_rpc.ts` / `http/route_spec.ts`):
|
|
191
|
-
* if a request with no params reaches the handler, this is the value the
|
|
192
|
-
* schema is asked to validate. A schema with required fields fails both
|
|
193
|
-
* probes and stays `input:` (required at the typed surface). Refinements
|
|
194
|
-
* and transforms run as part of `safeParse`, so their accept/reject
|
|
195
|
-
* decisions feed into the optional/required choice naturally. An input
|
|
196
|
-
* marked `empty_input_handler_guarded` is the exception: its schema accepts
|
|
197
|
-
* `{}` but the handler refuses it, so it stays `input:`
|
|
198
|
-
* (`action_input_is_optional` is the one rule).
|
|
199
|
-
*
|
|
200
|
-
* @param options.sync_returns_value - When true (default), sync `local_call`
|
|
201
|
-
* methods return the output value directly; when false they're wrapped in
|
|
202
|
-
* `Result<{value, error}>` like async methods. Set to `false` if your
|
|
203
|
-
* `FrontendActionsApi` treats every method uniformly.
|
|
204
|
-
* @param options.collections_path - Import path that `ActionInputs` /
|
|
205
|
-
* `ActionOutputs` resolve to. Defaults to `'./action_collections.ts'`.
|
|
206
|
-
* @returns one line like `foo: (input: ActionInputs['foo'], options?: RpcClientCallOptions) => Promise<Result<...>>;`
|
|
207
|
-
*/
|
|
208
|
-
export declare const generate_actions_api_method_signature: (spec: ActionSpecUnion, imports: ImportBuilder, options?: {
|
|
209
|
-
sync_returns_value?: boolean;
|
|
210
|
-
collections_path?: string;
|
|
211
|
-
}) => string;
|
|
212
131
|
/** Discriminator for `generate_action_method_enums` — which method-set enums to emit. */
|
|
213
132
|
export type ActionMethodEnumKind = 'all' | 'request_response' | 'remote_notification' | 'local_call' | 'frontend' | 'backend' | 'frontend_handled' | 'backend_handled' | 'broadcast';
|
|
214
|
-
/** Default emit set — every enum kind. */
|
|
215
|
-
export declare const action_method_enum_kinds_all: ReadonlySet<ActionMethodEnumKind>;
|
|
216
|
-
/**
|
|
217
|
-
* Resolve a per-spec identifier qualifier with the standard default-vs-callback
|
|
218
|
-
* dance. When `qualify_spec` is set, returns the caller's callback verbatim
|
|
219
|
-
* and registers no imports — the caller owns its namespace setup (the
|
|
220
|
-
* multi-source case where specs come from several modules). Otherwise,
|
|
221
|
-
* registers `* as specs from specs_module` (defaulting to
|
|
222
|
-
* `'./action_specs.ts'`) on `imports` and returns
|
|
223
|
-
* `(spec) => 'specs.' + to_action_spec_identifier(spec.method)`.
|
|
224
|
-
*
|
|
225
|
-
* Used internally by every multi-source-aware helper in this module
|
|
226
|
-
* (`generate_action_specs_record`, `generate_action_inputs_outputs`,
|
|
227
|
-
* `generate_backend_actions_api`); exported so consumers writing their own
|
|
228
|
-
* codegen helpers can reuse the same defaulting + import-registration
|
|
229
|
-
* behavior instead of reimplementing it.
|
|
230
|
-
*/
|
|
231
|
-
export declare const resolve_spec_qualifier: (imports: ImportBuilder, options?: {
|
|
232
|
-
specs_module?: string;
|
|
233
|
-
qualify_spec?: (spec: ActionSpecUnion) => string;
|
|
234
|
-
}) => ((spec: ActionSpecUnion) => string);
|
|
235
133
|
/**
|
|
236
134
|
* Emit one or more `z.enum([...])` declarations for action method names —
|
|
237
135
|
* `ActionMethod`, `RequestResponseActionMethod`, `RemoteNotificationActionMethod`,
|
|
@@ -248,11 +146,7 @@ export declare const resolve_spec_qualifier: (imports: ImportBuilder, options?:
|
|
|
248
146
|
* Adds `import {z} from 'zod';` to `imports` only when at least one block
|
|
249
147
|
* is emitted (idempotent).
|
|
250
148
|
*
|
|
251
|
-
*
|
|
252
|
-
* `generate_action_method_enum_block` — caller owns the predicate, name,
|
|
253
|
-
* and jsdoc.
|
|
254
|
-
*
|
|
255
|
-
* @param options.emit - subset of enums to emit; defaults to all nine.
|
|
149
|
+
* @param options.emit - subset of enums to emit; defaults to every kind
|
|
256
150
|
* @param options.include_protocol_actions - when true, retains `heartbeat` /
|
|
257
151
|
* `cancel` in the emitted enums. Default `false`.
|
|
258
152
|
*/
|
|
@@ -260,27 +154,6 @@ export declare const generate_action_method_enums: (specs: ReadonlyArray<ActionS
|
|
|
260
154
|
emit?: ReadonlySet<ActionMethodEnumKind>;
|
|
261
155
|
include_protocol_actions?: boolean;
|
|
262
156
|
}) => string;
|
|
263
|
-
/**
|
|
264
|
-
* Emit a single named `z.enum([...])` + `z.infer` block for an arbitrary
|
|
265
|
-
* spec subset. Lower-level escape hatch from `generate_action_method_enums` —
|
|
266
|
-
* for cross-product or domain-specific enums the built-in discriminator
|
|
267
|
-
* doesn't cover.
|
|
268
|
-
*
|
|
269
|
-
* Mirrors the built-in helper's contract: protocol actions filtered by
|
|
270
|
-
* default, empty subsets return `''` (skip rather than emit `z.enum([])`),
|
|
271
|
-
* `zod` import registered idempotently only when at least one method
|
|
272
|
-
* qualifies.
|
|
273
|
-
*
|
|
274
|
-
* The cross-product space is open-ended; rather than grow the
|
|
275
|
-
* `ActionMethodEnumKind` discriminator one cross-product at a time, callers
|
|
276
|
-
* own the subset shape — name, jsdoc, predicate.
|
|
277
|
-
*/
|
|
278
|
-
export declare const generate_action_method_enum_block: (specs: ReadonlyArray<ActionSpecUnion>, imports: ImportBuilder, options: {
|
|
279
|
-
name: string;
|
|
280
|
-
jsdoc: string;
|
|
281
|
-
predicate: (spec: ActionSpecUnion) => boolean;
|
|
282
|
-
include_protocol_actions?: boolean;
|
|
283
|
-
}) => string;
|
|
284
157
|
/**
|
|
285
158
|
* Emit the fixed-shape `TypedActionEvent` alias used by `FrontendActionHandlers`
|
|
286
159
|
* to narrow `ActionEvent.data` against the consumer's generated `ActionEventDatas`
|
|
@@ -358,13 +231,12 @@ export declare const generate_action_event_datas: (specs: ReadonlyArray<ActionSp
|
|
|
358
231
|
include_protocol_actions?: boolean;
|
|
359
232
|
}) => string;
|
|
360
233
|
/**
|
|
361
|
-
* Emit the `FrontendActionsApi` interface — one method signature per spec
|
|
362
|
-
*
|
|
234
|
+
* Emit the `FrontendActionsApi` interface — one method signature per spec.
|
|
235
|
+
* Optionally filter the spec set
|
|
363
236
|
* (e.g. omit additional methods alongside the default protocol-action
|
|
364
237
|
* filter) via `method_filter`.
|
|
365
238
|
*
|
|
366
|
-
* Imports are registered
|
|
367
|
-
* per emitted line — only what the spec set actually references shows up on
|
|
239
|
+
* Imports are registered per emitted line — only what the spec set actually references shows up on
|
|
368
240
|
* `imports`. A spec set with no async methods skips `RpcClientCallOptions`;
|
|
369
241
|
* one with no inputs skips `ActionInputs`; sync `local_call` methods with
|
|
370
242
|
* `sync_returns_value: true` (the default) skip `Result` / `JsonrpcErrorObject`.
|
|
@@ -411,8 +283,8 @@ export declare const generate_frontend_action_handlers: (specs: ReadonlyArray<Ac
|
|
|
411
283
|
* `ActionSpecUnion` type import.
|
|
412
284
|
*
|
|
413
285
|
* Method signature shape today is `(input) => Promise<void>` — matches the
|
|
414
|
-
* fire-and-forget runtime of `create_broadcast_api`. Generalizing per
|
|
415
|
-
*
|
|
286
|
+
* fire-and-forget runtime of `create_broadcast_api`. Generalizing it per kind,
|
|
287
|
+
* as `FrontendActionsApi` signatures are, is deferred until a second
|
|
416
288
|
* backend runtime constructor lands.
|
|
417
289
|
*
|
|
418
290
|
* @param options.qualify_spec - per-spec qualified identifier callback for
|
|
@@ -428,34 +300,6 @@ export declare const generate_backend_actions_api: (specs: ReadonlyArray<ActionS
|
|
|
428
300
|
qualify_spec?: (spec: ActionSpecUnion) => string;
|
|
429
301
|
include_protocol_actions?: boolean;
|
|
430
302
|
}) => string;
|
|
431
|
-
/**
|
|
432
|
-
* Emit the `BackendActionHandlers` mapped type — one entry per
|
|
433
|
-
* `BackendRequestResponseMethod`, each `(input, ctx) => output | Promise<output>`.
|
|
434
|
-
* Replaces the hand-maintained `Exclude<>` + parallel mapped-type pattern
|
|
435
|
-
* (zzz had this at `zzz/src/lib/server/zzz_action_handlers.ts:42-66`).
|
|
436
|
-
*
|
|
437
|
-
* The context type is consumer-defined (e.g. zzz's `ZzzHandlerContext`). Pass
|
|
438
|
-
* `context_type` to name it; the helper assumes it's importable or defined
|
|
439
|
-
* in the emitted module's scope (consumer's responsibility).
|
|
440
|
-
*
|
|
441
|
-
* Adds `ActionInputs` / `ActionOutputs` type imports from `collections_path`
|
|
442
|
-
* and the `BackendRequestResponseMethod` import from `metatypes_path`.
|
|
443
|
-
*
|
|
444
|
-
* @param options.type_name - default `'BackendActionHandlers'`.
|
|
445
|
-
* @param options.method_enum_name - default `'BackendRequestResponseMethod'`.
|
|
446
|
-
* Pair with `generate_action_method_enums` emitting the `'backend_handled'` kind.
|
|
447
|
-
* @param options.context_type - default `'BackendHandlerContext'`. Caller's
|
|
448
|
-
* handler context type — must be in scope at the emit site.
|
|
449
|
-
* @param options.collections_path - default `'./action_collections.ts'`.
|
|
450
|
-
* @param options.metatypes_path - default `'./action_metatypes.ts'`.
|
|
451
|
-
*/
|
|
452
|
-
export declare const generate_backend_action_handlers_map: (imports: ImportBuilder, options?: {
|
|
453
|
-
type_name?: string;
|
|
454
|
-
method_enum_name?: string;
|
|
455
|
-
context_type?: string;
|
|
456
|
-
collections_path?: string;
|
|
457
|
-
metatypes_path?: string;
|
|
458
|
-
}) => string;
|
|
459
303
|
/**
|
|
460
304
|
* One source in a multi-source consumer's namespace map. `ns` is the local
|
|
461
305
|
* alias used inside the generated file; `module` is the import path; `specs`
|
|
@@ -474,10 +318,8 @@ export interface SpecSource {
|
|
|
474
318
|
* `{qualify_spec, all_specs}` ready to thread through the high-level
|
|
475
319
|
* helpers.
|
|
476
320
|
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
* per-call callback wasn't enough; the import dance + dup-check was the
|
|
480
|
-
* real boilerplate.
|
|
321
|
+
* A per-call `qualify_spec` callback alone leaves each consumer the import
|
|
322
|
+
* registration and the duplicate-method check; this does both.
|
|
481
323
|
*
|
|
482
324
|
* @throws Error if two sources contain the same method name (same-method
|
|
483
325
|
* detection is the consumer's primary debugging signal). Also throws if
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action_codegen.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/actions/action_codegen.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG1E;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,+CAAgD,CAAC;AAErF,8FAA8F;AAC9F,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI5E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GAAI,QAAQ,MAAM,KAAG,MAAM,IAAI,oBACrC,CAAC;AAEjC,UAAU,UAAU;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,qBAAa,aAAa;;IACzB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAa;IAE1D;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAQrC;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IAI1C,QA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