@fuzdev/fuz_app 0.182.0 → 0.184.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/README.md +2 -0
  2. package/dist/actions/CLAUDE.md +535 -1223
  3. package/dist/actions/action_codegen.d.ts +1 -1
  4. package/dist/actions/action_codegen.d.ts.map +1 -1
  5. package/dist/actions/action_codegen.js +3 -2
  6. package/dist/actions/connection_closer.d.ts +11 -9
  7. package/dist/actions/connection_closer.d.ts.map +1 -1
  8. package/dist/actions/connection_closer.js +11 -9
  9. package/dist/actions/frontend_rpc_client.d.ts +1 -1
  10. package/dist/actions/register_action_ws.d.ts +14 -1
  11. package/dist/actions/register_action_ws.d.ts.map +1 -1
  12. package/dist/actions/register_action_ws.js +2 -1
  13. package/dist/actions/ws_socket_session.d.ts +9 -1
  14. package/dist/actions/ws_socket_session.d.ts.map +1 -1
  15. package/dist/actions/ws_socket_session.js +43 -19
  16. package/dist/auth/CLAUDE.md +430 -1024
  17. package/dist/auth/account_queries.d.ts +1 -1
  18. package/dist/auth/account_queries.js +1 -1
  19. package/dist/auth/account_routes.d.ts +9 -8
  20. package/dist/auth/account_routes.d.ts.map +1 -1
  21. package/dist/auth/account_routes.js +78 -75
  22. package/dist/auth/admin_actions.d.ts.map +1 -1
  23. package/dist/auth/admin_actions.js +32 -28
  24. package/dist/auth/api_token.d.ts +20 -3
  25. package/dist/auth/api_token.d.ts.map +1 -1
  26. package/dist/auth/api_token.js +28 -9
  27. package/dist/auth/api_token_queries.d.ts +2 -2
  28. package/dist/auth/api_token_queries.js +2 -2
  29. package/dist/auth/audit_emitter.d.ts +75 -84
  30. package/dist/auth/audit_emitter.d.ts.map +1 -1
  31. package/dist/auth/audit_emitter.js +83 -71
  32. package/dist/auth/audit_log_schema.d.ts +25 -14
  33. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  34. package/dist/auth/audit_log_schema.js +23 -8
  35. package/dist/auth/auth_guard_resolver.d.ts +1 -1
  36. package/dist/auth/auth_guard_resolver.js +1 -1
  37. package/dist/auth/bearer_auth.d.ts +2 -5
  38. package/dist/auth/bearer_auth.d.ts.map +1 -1
  39. package/dist/auth/bearer_auth.js +4 -13
  40. package/dist/auth/bootstrap_account.d.ts +42 -26
  41. package/dist/auth/bootstrap_account.d.ts.map +1 -1
  42. package/dist/auth/bootstrap_account.js +36 -19
  43. package/dist/auth/bootstrap_routes.d.ts +20 -21
  44. package/dist/auth/bootstrap_routes.d.ts.map +1 -1
  45. package/dist/auth/bootstrap_routes.js +26 -31
  46. package/dist/auth/bootstrap_token_store.d.ts +3 -4
  47. package/dist/auth/bootstrap_token_store.d.ts.map +1 -1
  48. package/dist/auth/bootstrap_token_store.js +1 -1
  49. package/dist/auth/daemon_token.d.ts +5 -1
  50. package/dist/auth/daemon_token.d.ts.map +1 -1
  51. package/dist/auth/daemon_token_middleware.d.ts +12 -8
  52. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  53. package/dist/auth/daemon_token_middleware.js +15 -21
  54. package/dist/auth/deps.d.ts +19 -5
  55. package/dist/auth/deps.d.ts.map +1 -1
  56. package/dist/auth/deps.js +3 -2
  57. package/dist/auth/invite_queries.d.ts +51 -3
  58. package/dist/auth/invite_queries.d.ts.map +1 -1
  59. package/dist/auth/invite_queries.js +81 -6
  60. package/dist/auth/invite_schema.d.ts +2 -1
  61. package/dist/auth/invite_schema.d.ts.map +1 -1
  62. package/dist/auth/middleware.d.ts +2 -3
  63. package/dist/auth/middleware.d.ts.map +1 -1
  64. package/dist/auth/middleware.js +3 -3
  65. package/dist/auth/request_context.d.ts +3 -3
  66. package/dist/auth/request_context.js +3 -3
  67. package/dist/auth/resolved_auth.d.ts +7 -7
  68. package/dist/auth/resolved_auth.d.ts.map +1 -1
  69. package/dist/auth/resolved_auth.js +4 -4
  70. package/dist/auth/role_grant_offer_actions.d.ts +27 -3
  71. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  72. package/dist/auth/role_grant_offer_actions.js +42 -35
  73. package/dist/auth/role_grant_offer_queries.d.ts +60 -4
  74. package/dist/auth/role_grant_offer_queries.d.ts.map +1 -1
  75. package/dist/auth/role_grant_offer_queries.js +79 -5
  76. package/dist/auth/role_grant_queries.d.ts +3 -52
  77. package/dist/auth/role_grant_queries.d.ts.map +1 -1
  78. package/dist/auth/role_grant_queries.js +5 -80
  79. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  80. package/dist/auth/self_service_role_actions.js +11 -22
  81. package/dist/auth/session_cookie.d.ts +82 -174
  82. package/dist/auth/session_cookie.d.ts.map +1 -1
  83. package/dist/auth/session_cookie.js +80 -130
  84. package/dist/auth/session_middleware.d.ts +8 -17
  85. package/dist/auth/session_middleware.d.ts.map +1 -1
  86. package/dist/auth/session_middleware.js +14 -23
  87. package/dist/auth/session_queries.d.ts +15 -17
  88. package/dist/auth/session_queries.d.ts.map +1 -1
  89. package/dist/auth/session_queries.js +28 -20
  90. package/dist/auth/signup_routes.d.ts.map +1 -1
  91. package/dist/auth/signup_routes.js +93 -43
  92. package/dist/db/CLAUDE.md +5 -3
  93. package/dist/db/sql_columns.d.ts +1 -1
  94. package/dist/db/sql_columns.js +1 -1
  95. package/dist/dev/setup.d.ts +3 -1
  96. package/dist/dev/setup.d.ts.map +1 -1
  97. package/dist/dev/setup.js +3 -1
  98. package/dist/http/CLAUDE.md +315 -763
  99. package/dist/http/db_routes.d.ts +8 -23
  100. package/dist/http/db_routes.d.ts.map +1 -1
  101. package/dist/http/db_routes.js +73 -73
  102. package/dist/http/origin.d.ts +7 -8
  103. package/dist/http/origin.d.ts.map +1 -1
  104. package/dist/http/origin.js +7 -8
  105. package/dist/http/pending_effects.d.ts +118 -6
  106. package/dist/http/pending_effects.d.ts.map +1 -1
  107. package/dist/http/pending_effects.js +114 -6
  108. package/dist/http/route_result.d.ts +1 -1
  109. package/dist/http/route_spec.d.ts +14 -11
  110. package/dist/http/route_spec.d.ts.map +1 -1
  111. package/dist/realtime/sse.d.ts +4 -23
  112. package/dist/realtime/sse.d.ts.map +1 -1
  113. package/dist/realtime/sse.js +4 -25
  114. package/dist/server/app_backend.d.ts +4 -5
  115. package/dist/server/app_backend.d.ts.map +1 -1
  116. package/dist/server/app_backend.js +3 -1
  117. package/dist/server/app_server.d.ts +80 -16
  118. package/dist/server/app_server.d.ts.map +1 -1
  119. package/dist/server/app_server.js +113 -31
  120. package/dist/server/app_server_context.d.ts +1 -2
  121. package/dist/server/app_server_context.d.ts.map +1 -1
  122. package/dist/server/env.js +2 -2
  123. package/dist/testing/CLAUDE.md +265 -796
  124. package/dist/testing/admin_integration.d.ts +2 -3
  125. package/dist/testing/admin_integration.d.ts.map +1 -1
  126. package/dist/testing/admin_integration.js +3 -3
  127. package/dist/testing/adversarial_404.d.ts +6 -1
  128. package/dist/testing/adversarial_404.d.ts.map +1 -1
  129. package/dist/testing/adversarial_404.js +38 -17
  130. package/dist/testing/app_server.d.ts +23 -148
  131. package/dist/testing/app_server.d.ts.map +1 -1
  132. package/dist/testing/app_server.js +53 -131
  133. package/dist/testing/attack_surface.d.ts +1 -1
  134. package/dist/testing/attack_surface.d.ts.map +1 -1
  135. package/dist/testing/audit_completeness.d.ts +2 -3
  136. package/dist/testing/audit_completeness.d.ts.map +1 -1
  137. package/dist/testing/audit_completeness.js +1 -1
  138. package/dist/testing/audit_drift_guard.d.ts +11 -6
  139. package/dist/testing/audit_drift_guard.d.ts.map +1 -1
  140. package/dist/testing/audit_drift_guard.js +15 -8
  141. package/dist/testing/cross_backend/audit_cross_helpers.d.ts +12 -9
  142. package/dist/testing/cross_backend/audit_cross_helpers.d.ts.map +1 -1
  143. package/dist/testing/cross_backend/audit_cross_helpers.js +13 -14
  144. package/dist/testing/cross_backend/capabilities.d.ts +9 -6
  145. package/dist/testing/cross_backend/capabilities.d.ts.map +1 -1
  146. package/dist/testing/cross_backend/capabilities.js +11 -7
  147. package/dist/testing/cross_backend/capability_mounts.d.ts +103 -0
  148. package/dist/testing/cross_backend/capability_mounts.d.ts.map +1 -0
  149. package/dist/testing/cross_backend/capability_mounts.js +428 -0
  150. package/dist/testing/cross_backend/cell_moderate.js +2 -2
  151. package/dist/testing/cross_backend/cell_relations.d.ts.map +1 -1
  152. package/dist/testing/cross_backend/cell_relations.js +12 -11
  153. package/dist/testing/cross_backend/conformance_principal.d.ts +54 -0
  154. package/dist/testing/cross_backend/conformance_principal.d.ts.map +1 -0
  155. package/dist/testing/cross_backend/conformance_principal.js +283 -0
  156. package/dist/testing/cross_backend/conformance_table.d.ts +7 -56
  157. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  158. package/dist/testing/cross_backend/conformance_table.js +6 -274
  159. package/dist/testing/cross_backend/cookie_attributes.js +1 -1
  160. package/dist/testing/cross_backend/credential_deadline.d.ts.map +1 -1
  161. package/dist/testing/cross_backend/credential_deadline.js +2 -0
  162. package/dist/testing/cross_backend/credential_wire.d.ts +1 -1
  163. package/dist/testing/cross_backend/credential_wire.d.ts.map +1 -1
  164. package/dist/testing/cross_backend/db_state_diff.d.ts +72 -0
  165. package/dist/testing/cross_backend/db_state_diff.d.ts.map +1 -0
  166. package/dist/testing/cross_backend/db_state_diff.js +444 -0
  167. package/dist/testing/cross_backend/declared_skips.d.ts +68 -0
  168. package/dist/testing/cross_backend/declared_skips.d.ts.map +1 -0
  169. package/dist/testing/cross_backend/declared_skips.js +132 -0
  170. package/dist/testing/cross_backend/default_backend_configs.d.ts +3 -3
  171. package/dist/testing/cross_backend/default_spine_surface.d.ts +0 -6
  172. package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
  173. package/dist/testing/cross_backend/default_spine_surface.js +4 -9
  174. package/dist/testing/cross_backend/differential.d.ts +13 -5
  175. package/dist/testing/cross_backend/differential.d.ts.map +1 -1
  176. package/dist/testing/cross_backend/differential.js +35 -11
  177. package/dist/testing/cross_backend/differential_normalize.d.ts +12 -0
  178. package/dist/testing/cross_backend/differential_normalize.d.ts.map +1 -1
  179. package/dist/testing/cross_backend/differential_normalize.js +16 -0
  180. package/dist/testing/cross_backend/full_spine_mount.d.ts +1 -42
  181. package/dist/testing/cross_backend/full_spine_mount.d.ts.map +1 -1
  182. package/dist/testing/cross_backend/full_spine_mount.js +45 -4
  183. package/dist/testing/cross_backend/in_process_setup.d.ts +28 -19
  184. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  185. package/dist/testing/cross_backend/in_process_setup.js +156 -142
  186. package/dist/testing/cross_backend/login_security.d.ts +12 -0
  187. package/dist/testing/cross_backend/login_security.d.ts.map +1 -1
  188. package/dist/testing/cross_backend/login_security.js +21 -4
  189. package/dist/testing/cross_backend/request_target_conformance_wire.d.ts +0 -2
  190. package/dist/testing/cross_backend/request_target_conformance_wire.d.ts.map +1 -1
  191. package/dist/testing/cross_backend/request_target_conformance_wire.js +3 -1
  192. package/dist/testing/cross_backend/revocation_drivers.d.ts +18 -5
  193. package/dist/testing/cross_backend/revocation_drivers.d.ts.map +1 -1
  194. package/dist/testing/cross_backend/revocation_drivers.js +18 -10
  195. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts +1 -1
  196. package/dist/testing/cross_backend/role_grant_cross_helpers.d.ts.map +1 -1
  197. package/dist/testing/cross_backend/role_grant_offer_lifecycle.d.ts.map +1 -1
  198. package/dist/testing/cross_backend/role_grant_offer_lifecycle.js +33 -1
  199. package/dist/testing/cross_backend/role_grant_participation.js +4 -4
  200. package/dist/testing/cross_backend/rpc_adversarial.js +1 -1
  201. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +3 -4
  202. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  203. package/dist/testing/cross_backend/rust_spine_consumer_surface.js +2 -2
  204. package/dist/testing/cross_backend/session_cap.d.ts +2 -2
  205. package/dist/testing/cross_backend/session_cap.d.ts.map +1 -1
  206. package/dist/testing/cross_backend/session_cap.js +22 -11
  207. package/dist/testing/cross_backend/setup.d.ts +32 -2
  208. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  209. package/dist/testing/cross_backend/setup.js +32 -1
  210. package/dist/testing/cross_backend/spine_suites.d.ts +125 -15
  211. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  212. package/dist/testing/cross_backend/spine_suites.js +459 -62
  213. package/dist/testing/cross_backend/spine_surface_constants.d.ts +1 -1
  214. package/dist/testing/cross_backend/spine_surface_constants.d.ts.map +1 -1
  215. package/dist/testing/cross_backend/spine_surface_constants.js +1 -0
  216. package/dist/testing/cross_backend/sse_round_trip.d.ts +9 -1
  217. package/dist/testing/cross_backend/sse_round_trip.d.ts.map +1 -1
  218. package/dist/testing/cross_backend/sse_round_trip.js +123 -27
  219. package/dist/testing/cross_backend/standard.d.ts +2 -3
  220. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  221. package/dist/testing/cross_backend/standard.js +3 -3
  222. package/dist/testing/cross_backend/testing_backdoor.d.ts.map +1 -1
  223. package/dist/testing/cross_backend/testing_backdoor.js +4 -2
  224. package/dist/testing/cross_backend/testing_credential_read.d.ts +10 -11
  225. package/dist/testing/cross_backend/testing_credential_read.d.ts.map +1 -1
  226. package/dist/testing/cross_backend/testing_credential_read.js +12 -12
  227. package/dist/testing/cross_backend/testing_reset_actions.d.ts +84 -47
  228. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  229. package/dist/testing/cross_backend/testing_reset_actions.js +95 -63
  230. package/dist/testing/cross_backend/testing_server_core.d.ts.map +1 -1
  231. package/dist/testing/cross_backend/testing_server_core.js +2 -3
  232. package/dist/testing/cross_backend/transport_composition.d.ts +1 -1
  233. package/dist/testing/cross_backend/transport_composition.d.ts.map +1 -1
  234. package/dist/testing/cross_backend/transport_composition.js +7 -3
  235. package/dist/testing/cross_backend/ws_round_trip.d.ts +5 -0
  236. package/dist/testing/cross_backend/ws_round_trip.d.ts.map +1 -1
  237. package/dist/testing/cross_backend/ws_round_trip.js +54 -8
  238. package/dist/testing/daemon_token_rotation.d.ts.map +1 -1
  239. package/dist/testing/daemon_token_rotation.js +2 -3
  240. package/dist/testing/data_exposure.d.ts.map +1 -1
  241. package/dist/testing/data_exposure.js +3 -0
  242. package/dist/testing/db.d.ts +0 -32
  243. package/dist/testing/db.d.ts.map +1 -1
  244. package/dist/testing/db.js +0 -86
  245. package/dist/testing/db_entities.d.ts +14 -0
  246. package/dist/testing/db_entities.d.ts.map +1 -1
  247. package/dist/testing/db_entities.js +17 -0
  248. package/dist/testing/db_invariant_queries.d.ts +259 -0
  249. package/dist/testing/db_invariant_queries.d.ts.map +1 -0
  250. package/dist/testing/db_invariant_queries.js +400 -0
  251. package/dist/testing/db_invariants.d.ts +106 -0
  252. package/dist/testing/db_invariants.d.ts.map +1 -0
  253. package/dist/testing/db_invariants.gen.sql.d.ts +11 -0
  254. package/dist/testing/db_invariants.gen.sql.d.ts.map +1 -0
  255. package/dist/testing/db_invariants.gen.sql.js +13 -0
  256. package/dist/testing/db_invariants.js +141 -0
  257. package/dist/testing/db_invariants.sql +152 -0
  258. package/dist/testing/describe_db.d.ts +36 -0
  259. package/dist/testing/describe_db.d.ts.map +1 -0
  260. package/dist/testing/describe_db.js +71 -0
  261. package/dist/testing/integration.d.ts +8 -12
  262. package/dist/testing/integration.d.ts.map +1 -1
  263. package/dist/testing/integration.js +13 -17
  264. package/dist/testing/integration_helpers.d.ts +1 -1
  265. package/dist/testing/integration_helpers.d.ts.map +1 -1
  266. package/dist/testing/rate_limiting.d.ts +3 -4
  267. package/dist/testing/rate_limiting.d.ts.map +1 -1
  268. package/dist/testing/rate_limiting.js +6 -5
  269. package/dist/testing/role_grant_helpers.d.ts +1 -1
  270. package/dist/testing/role_grant_helpers.d.ts.map +1 -1
  271. package/dist/testing/round_trip.d.ts.map +1 -1
  272. package/dist/testing/round_trip.js +3 -0
  273. package/dist/testing/rpc_attack_surface.d.ts +8 -6
  274. package/dist/testing/rpc_attack_surface.d.ts.map +1 -1
  275. package/dist/testing/rpc_attack_surface.js +69 -6
  276. package/dist/testing/rpc_helpers.d.ts +1 -2
  277. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  278. package/dist/testing/rpc_helpers.js +3 -3
  279. package/dist/testing/rpc_round_trip.d.ts +3 -4
  280. package/dist/testing/rpc_round_trip.d.ts.map +1 -1
  281. package/dist/testing/rpc_round_trip.js +4 -1
  282. package/dist/testing/sse_round_trip.d.ts +3 -4
  283. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  284. package/dist/testing/sse_round_trip.js +15 -6
  285. package/dist/testing/stubs.d.ts +9 -8
  286. package/dist/testing/stubs.d.ts.map +1 -1
  287. package/dist/testing/stubs.js +20 -13
  288. package/dist/testing/test_app.d.ts +168 -0
  289. package/dist/testing/test_app.d.ts.map +1 -0
  290. package/dist/testing/test_app.js +123 -0
  291. package/dist/testing/ws_round_trip.d.ts.map +1 -1
  292. package/dist/testing/ws_round_trip.js +3 -0
  293. package/dist/ui/ui_format.d.ts.map +1 -1
  294. package/dist/ui/ui_format.js +1 -2
  295. package/package.json +1 -1
@@ -1,5 +1,4 @@
1
1
  import './assert_dev_env.js';
2
- import type { SessionOptions } from '../auth/session_cookie.js';
3
2
  import { type RoleRegistry } from '../auth/role_schema.js';
4
3
  import { type RpcEndpointsSuiteOption } from './rpc_helpers.js';
5
4
  import type { AppSurfaceSpec } from '../http/surface.js';
@@ -20,8 +19,8 @@ export interface StandardAdminIntegrationTestOptions {
20
19
  * shape for in-process and cross-process tests).
21
20
  */
22
21
  surface_source: AppSurfaceSpec;
23
- /** Session config — needed for cookie_name + factory-form rpc_endpoints resolution. */
24
- session_options: SessionOptions<string>;
22
+ /** The session cookie's name — read for the session cookie and the factory-form `rpc_endpoints` resolution. */
23
+ session_cookie_name: string;
25
24
  /** Role registry from `create_role_registry()` — used to determine valid/invalid/web-grantable roles. */
26
25
  roles: RoleRegistry;
27
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"admin_integration.d.ts","sourceRoot":"","sources":["../../src/lib/testing/admin_integration.ts"],"names":[],"mappings":"AAA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+GAA+G;IAC/G,mBAAmB,EAAE,MAAM,CAAC;IAC5B,yGAAyG;IACzG,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,aAAa,EAAE,uBAAuB,CAAC;IACvC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAiBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yCAAyC,GACrD,SAAS,mCAAmC,KAC1C,IAg+BF,CAAC"}
@@ -7,7 +7,7 @@ import './assert_dev_env.js';
7
7
  * surface — see `role_grant_offer_create` / `role_grant_revoke`), session/token
8
8
  * management, and audit log routes against a real database.
9
9
  *
10
- * Consumers call it with their route factory, session config, role registry,
10
+ * Consumers call it with their route factory, session cookie name, role registry,
11
11
  * and RPC endpoint specs — all admin route tests come for free.
12
12
  *
13
13
  * Scope: admin *semantics* — cross-admin isolation, role_grant grant/revoke
@@ -78,10 +78,10 @@ export const describe_standard_admin_integration_tests = (options) => {
78
78
  const route_specs = options.surface_source.route_specs;
79
79
  // Hard-fail early so consumers see a clear setup error instead of a
80
80
  // confusing test failure when `rpc_endpoints` is missing.
81
- const rpc_endpoints_for_setup = resolve_rpc_endpoints_for_setup(options.rpc_endpoints, options.session_options);
81
+ const rpc_endpoints_for_setup = resolve_rpc_endpoints_for_setup(options.rpc_endpoints, options.session_cookie_name);
82
82
  const rpc_path = require_rpc_endpoint_path(rpc_endpoints_for_setup);
83
83
  describe('standard_admin_integration', () => {
84
- const { cookie_name } = options.session_options;
84
+ const cookie_name = options.session_cookie_name;
85
85
  const { role_specs } = options.roles;
86
86
  const grantable_role = pick_grantable_role(role_specs);
87
87
  // Error coverage tracking across test groups
@@ -4,11 +4,16 @@ import type { AdversarialTestOptions } from './attack_surface.js';
4
4
  * Generate adversarial 404 response validation tests.
5
5
  *
6
6
  * For each route with `params` and a 404 definition of its own in `errors`:
7
- * 1. Creates a stub handler returning 404 with the first such definition's code
7
+ * 1. Creates a stub handler returning 404 with the first such definition's
8
+ * code and its body's fields, generated from its schema (`generate_valid_object`)
8
9
  * 2. Fires a request with valid-format params (nil UUIDs for UUID params)
9
10
  * 3. Validates response status is 404
10
11
  * 4. Validates the code is one the route's error map (`resolve_route_error_map`)
11
12
  * declares at 404, and the body parses against its 404 (`assert_error_schema_valid`)
13
+ *
14
+ * @param options - the app surface builder, roles, skips, and param values
15
+ * @throws Error at collection when a definition's fields can't be generated
16
+ * to pass its body schema, naming the route
12
17
  */
13
18
  export declare const describe_adversarial_404: (options: AdversarialTestOptions) => void;
14
19
  //# sourceMappingURL=adversarial_404.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adversarial_404.d.ts","sourceRoot":"","sources":["../../src/lib/testing/adversarial_404.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAuB7B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAOlE;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,sBAAsB,KAAG,IAkF1E,CAAC"}
1
+ {"version":3,"file":"adversarial_404.d.ts","sourceRoot":"","sources":["../../src/lib/testing/adversarial_404.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAyB7B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAQlE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,GAAI,SAAS,sBAAsB,KAAG,IAkF1E,CAAC"}
@@ -2,9 +2,10 @@ import './assert_dev_env.js';
2
2
  /**
3
3
  * Adversarial 404 testing for routes with params and declared 404 error schemas.
4
4
  *
5
- * Creates stub handlers that return 404 with the declared error code,
6
- * fires requests with valid-format-but-nonexistent params (nil UUIDs),
7
- * and validates response bodies against the route's declared 404.
5
+ * Creates stub handlers that return 404 with the declared error code and
6
+ * fields generated from its body schema, fires requests with
7
+ * valid-format-but-nonexistent params (nil UUIDs), and validates response
8
+ * bodies against the route's declared 404.
8
9
  *
9
10
  * No DB needed — tests schema conformance of 404 responses, not real handlers.
10
11
  *
@@ -13,19 +14,25 @@ import './assert_dev_env.js';
13
14
  import { test, assert, describe } from 'vitest';
14
15
  import { route_fail } from '../http/route_result.js';
15
16
  import { format_route_key } from '../http/surface_query.js';
17
+ import { format_issues } from '../schema_issues.js';
16
18
  import { is_null_schema } from '../http/schema_helpers.js';
17
19
  import { assert_error_schema_valid } from './assertions.js';
18
20
  import { create_auth_test_apps, create_route_skip_filter, select_auth_app } from './auth_apps.js';
19
- import { resolve_valid_path, generate_valid_body, to_route_content_type } from './schema_generators.js';
21
+ import { resolve_valid_path, generate_valid_body, generate_valid_object, to_route_content_type } from './schema_generators.js';
20
22
  /**
21
23
  * Generate adversarial 404 response validation tests.
22
24
  *
23
25
  * For each route with `params` and a 404 definition of its own in `errors`:
24
- * 1. Creates a stub handler returning 404 with the first such definition's code
26
+ * 1. Creates a stub handler returning 404 with the first such definition's
27
+ * code and its body's fields, generated from its schema (`generate_valid_object`)
25
28
  * 2. Fires a request with valid-format params (nil UUIDs for UUID params)
26
29
  * 3. Validates response status is 404
27
30
  * 4. Validates the code is one the route's error map (`resolve_route_error_map`)
28
31
  * declares at 404, and the body parses against its 404 (`assert_error_schema_valid`)
32
+ *
33
+ * @param options - the app surface builder, roles, skips, and param values
34
+ * @throws Error at collection when a definition's fields can't be generated
35
+ * to pass its body schema, naming the route
29
36
  */
30
37
  export const describe_adversarial_404 = (options) => {
31
38
  const { build, roles } = options;
@@ -52,27 +59,22 @@ export const describe_adversarial_404 = (options) => {
52
59
  const not_found = spec.errors?.find((def) => def.status === 404);
53
60
  if (!not_found)
54
61
  continue;
55
- testable.push({ key, not_found, spec });
62
+ testable.push({ key, not_found, fields: generate_not_found_fields(key, not_found), spec });
56
63
  }
57
64
  if (testable.length === 0)
58
65
  return;
59
66
  describe('adversarial 404 response validation', () => {
60
67
  // Create stub specs: replace handlers for testable routes with 404 stubs
61
- const not_found_by_key = new Map();
68
+ const testable_by_key = new Map();
62
69
  for (const entry of testable) {
63
- not_found_by_key.set(entry.key, entry.not_found);
70
+ testable_by_key.set(entry.key, entry);
64
71
  }
65
72
  const stub_specs = route_specs.map((spec) => {
66
- const not_found = not_found_by_key.get(format_route_key(spec));
67
- if (!not_found)
73
+ const entry = testable_by_key.get(format_route_key(spec));
74
+ if (!entry)
68
75
  return spec;
69
- return {
70
- ...spec,
71
- // the code alone, `{error}` at 404: a stub has no fields to give
72
- handler: () =>
73
- // eslint-disable-next-line @typescript-eslint/no-generated-empty-object-type
74
- route_fail(not_found)
75
- };
76
+ const { not_found, fields } = entry;
77
+ return { ...spec, handler: () => route_fail(not_found, fields) };
76
78
  });
77
79
  const apps = create_auth_test_apps(stub_specs, roles);
78
80
  for (const { key, not_found, spec } of testable) {
@@ -102,3 +104,22 @@ export const describe_adversarial_404 = (options) => {
102
104
  }
103
105
  });
104
106
  };
107
+ /**
108
+ * The fields of a 404 body beside `error`, generated from the definition's
109
+ * schema, so a definition requiring a field (a `message`) gets a body its
110
+ * own schema accepts.
111
+ *
112
+ * @param key - the route's `METHOD path`, named in the error
113
+ * @param not_found - the route's 404 definition
114
+ * @returns the body's fields, `error` left to `route_fail`
115
+ * @throws Error when the generated body fails the definition's schema
116
+ */
117
+ const generate_not_found_fields = (key, not_found) => {
118
+ const { value, result } = generate_valid_object(not_found.schema, not_found.schema);
119
+ if (!result.ok) {
120
+ throw new Error(`describe_adversarial_404: can't generate the fields of ${key}'s 404 ` +
121
+ `'${not_found.code}': ${format_issues(result.issues)}`);
122
+ }
123
+ const { error: _error, ...fields } = value;
124
+ return fields;
125
+ };
@@ -1,31 +1,11 @@
1
1
  import './assert_dev_env.js';
2
- /**
3
- * Bootstrapped app server factory for integration tests.
4
- *
5
- * Creates a keeper account, API token, and signed session cookie on a
6
- * database. By default uses a cached in-memory pglet (one shared WASM instance
7
- * per loaded copy of `testing/db.ts` — once per run under the `db` project's
8
- * `isolate: false` + `fileParallelism: false`); pass `db` to use
9
- * an existing database (any driver) instead.
10
- *
11
- * Also provides `create_test_app` — a combined helper that creates both
12
- * a `TestAppServer` and a fully assembled Hono app with middleware and routes.
13
- *
14
- * @module
15
- */
16
- import type { Hono } from 'hono';
17
2
  import type { Uuid } from '../primitive_schemas.js';
18
3
  import { type Keyring } from '../auth/keyring.js';
19
4
  import type { Db, DbType } from '../db/db.js';
20
5
  import type { PasswordHashDeps } from '../auth/password.js';
21
- import { type SessionOptions } from '../auth/session_cookie.js';
22
6
  import { type MigrationNamespace } from '../db/migrate.js';
23
7
  import { type AppBackend, type AuditFactory } from '../server/app_backend.js';
24
- import { type AppServer, type AppServerOptions, type BootstrapServerOptions } from '../server/app_server.js';
25
- import type { AppServerContext } from '../server/app_server_context.js';
26
- import type { AppSurface, AppSurfaceSpec } from '../http/surface.js';
27
- import type { RouteSpec } from '../http/route_spec.js';
28
- import type { RpcEndpointsSuiteOption } from './rpc_helpers.js';
8
+ import type { AppServerOptions } from '../server/app_server.js';
29
9
  /**
30
10
  * Fast password stub for tests that don't exercise login/password flows.
31
11
  *
@@ -33,6 +13,13 @@ import type { RpcEndpointsSuiteOption } from './rpc_helpers.js';
33
13
  * so auth bootstrap and session creation work without Argon2 overhead.
34
14
  */
35
15
  export declare const stub_password_deps: PasswordHashDeps;
16
+ /**
17
+ * The test keeper's roles when none are given — keeper and admin, what a
18
+ * production bootstrap (`bootstrap_account`) grants and the cross-process
19
+ * `_testing_reset` seeds, so a test database starts in a state production
20
+ * reaches. A test that needs a keeper without admin passes `roles`.
21
+ */
22
+ export declare const DEFAULT_TEST_KEEPER_ROLES: ReadonlyArray<string>;
36
23
  /** 64-hex-char test cookie secret — deterministic, never used in production. */
37
24
  export declare const TEST_COOKIE_SECRET: string;
38
25
  /**
@@ -44,7 +31,6 @@ export declare const TEST_COOKIE_SECRET: string;
44
31
  export interface CreateTestAccountWithCredentialsOptions {
45
32
  db: Db;
46
33
  keyring: Keyring;
47
- session_options: SessionOptions<string>;
48
34
  password: PasswordHashDeps;
49
35
  username?: string;
50
36
  password_value?: string;
@@ -84,7 +70,6 @@ export declare const create_test_account_with_credentials: (options: CreateTestA
84
70
  export interface MintTestSessionOptions {
85
71
  db: Db;
86
72
  keyring: Keyring;
87
- session_options: SessionOptions<string>;
88
73
  /** Account the minted session belongs to. */
89
74
  account_id: string;
90
75
  /**
@@ -93,7 +78,7 @@ export interface MintTestSessionOptions {
93
78
  * the authoritative DB-row expiry gate (`query_session_get_valid` —
94
79
  * `WHERE expires_at > NOW()`) rejects it, while the returned cookie's
95
80
  * own signed payload stays valid (future). Resolution therefore passes
96
- * the cookie-payload check in `parse_session` and is refused at the
81
+ * the cookie-payload check in `parse_session_from_cookies` and is refused at the
97
82
  * DB-row gate — the gate the in-process payload-expiry tests never
98
83
  * reach and the one that structurally needs a server-side mint.
99
84
  */
@@ -120,13 +105,15 @@ export declare const mint_test_session: (options: MintTestSessionOptions) => Pro
120
105
  * Bootstrap the test-DB keeper. Direct-query shortcut for the default
121
106
  * `create_test_app` path — bootstrap is not what most tests exercise, so
122
107
  * we skip the real `bootstrap_account` flow (no audit row, no
123
- * `on_bootstrap` callback); the cross-backend harness drives the real
108
+ * keeper set on a daemon-token state); the cross-backend harness drives the real
124
109
  * `POST /bootstrap` against every backend it spawns.
125
110
  *
126
111
  * Flips `bootstrap_lock.bootstrapped = true` so the post-insert DB state
127
112
  * matches a real bootstrap completion — production code can trust the
128
113
  * lock as the single signal without a belt-and-suspenders
129
- * `query_account_has_any` defense.
114
+ * `query_account_has_any` defense. Grants `options.roles`, or
115
+ * `DEFAULT_TEST_KEEPER_ROLES` (keeper and admin, as a real bootstrap) when
116
+ * omitted.
130
117
  *
131
118
  * @mutates the underlying `options.db` — inserts the account/actor/roles/
132
119
  * API token/session_cookie rows AND flips `bootstrap_lock.bootstrapped`.
@@ -168,8 +155,6 @@ export interface TestAppServer extends AppBackend {
168
155
  * Configuration for `create_test_app_server`.
169
156
  */
170
157
  export interface TestAppServerOptions {
171
- /** Session options — needed for cookie signing. */
172
- session_options: SessionOptions<string>;
173
158
  /** Existing database — skips internal DB creation when provided. Caller owns the DB lifecycle. */
174
159
  db?: Db;
175
160
  /** Database driver type — only used when `db` is provided. Default: `'pglet-memory'`. */
@@ -191,7 +176,13 @@ export interface TestAppServerOptions {
191
176
  username?: string;
192
177
  /** Password for the bootstrapped account. Default: `DEFAULT_TEST_PASSWORD`. */
193
178
  password_value?: string;
194
- /** Roles to grant. Default: `[ROLE_KEEPER]`. */
179
+ /**
180
+ * Roles to grant the bootstrapped keeper. Default:
181
+ * `DEFAULT_TEST_KEEPER_ROLES` (`ROLE_KEEPER` and `ROLE_ADMIN`, as a
182
+ * production bootstrap grants). Override only for a test that needs a
183
+ * narrower keeper — one leaving no live admin breaks the
184
+ * `bootstrapped_without_live_admin` database invariant.
185
+ */
195
186
  roles?: Array<string>;
196
187
  /**
197
188
  * Build the bound `AuditEmitter` used by the test backend. Defaults to
@@ -215,14 +206,15 @@ export interface TestAppServerOptions {
215
206
  * Sets up:
216
207
  * - Auth tables (via the cached default factory, or reuses existing `db`)
217
208
  * - A keeper account with hashed password
218
- * - Role role_grants for each role in `options.roles`
209
+ * - Role grants for each role in `options.roles` (default
210
+ * `DEFAULT_TEST_KEEPER_ROLES`, keeper and admin)
219
211
  * - An API token for Bearer auth
220
212
  * - A session with a signed cookie value
221
213
  *
222
214
  * Uses `stub_password_deps` by default — deterministic hashing that works
223
215
  * correctly for login/logout tests without Argon2 overhead.
224
216
  *
225
- * @param options - session options and optional overrides
217
+ * @param options - the database, the keeper's credentials and roles, and the audit factory
226
218
  * @returns a `TestAppServer` ready for HTTP testing
227
219
  * @mutates the underlying database — when `db` is supplied, first resets the
228
220
  * `app_settings` row (`open_signup`, `updated_at`, `updated_by`); in either
@@ -230,107 +222,6 @@ export interface TestAppServerOptions {
230
222
  * row, and flips `bootstrap_lock.bootstrapped` (`bootstrap_test_keeper`).
231
223
  */
232
224
  export declare const create_test_app_server: (options: TestAppServerOptions) => Promise<TestAppServer>;
233
- /**
234
- * Configuration for `create_test_app`.
235
- */
236
- export interface CreateTestAppOptions extends TestAppServerOptions {
237
- /** Route spec factory — called with the assembled `AppServerContext`. */
238
- create_route_specs: (context: AppServerContext) => Array<RouteSpec>;
239
- /**
240
- * RPC endpoints mounted by `create_app_server` — eager array or
241
- * `(ctx: AppServerContext) => Array<RpcEndpointSpec>` factory. Single
242
- * source of truth; the equivalent slot under `app_options` is `Omit`'d
243
- * so setup-time path lookup and runtime dispatch read from one place.
244
- * Symmetric with the suite-level `rpc_endpoints` option on
245
- * `describe_standard_admin_integration_tests` etc.
246
- */
247
- rpc_endpoints?: RpcEndpointsSuiteOption;
248
- /**
249
- * Bootstrap config — symmetric with `AppServerOptions.bootstrap`. Same
250
- * single-source-of-truth precedent as `rpc_endpoints`: setup-time surface
251
- * generation and runtime dispatch both read this slot, so the equivalent
252
- * field under `app_options` is `Omit`'d. Discriminated union over
253
- * `{mode: 'disabled' | 'surface_only' | 'live'}`. Omit (or pass
254
- * `{mode: 'disabled'}`) for the default — no bootstrap route mounted.
255
- */
256
- bootstrap?: BootstrapServerOptions;
257
- /**
258
- * Optional overrides for `AppServerOptions`. Excludes fields
259
- * `create_test_app` manages directly: `backend`, `session_options`,
260
- * `create_route_specs`, `rpc_endpoints`, `bootstrap` (top-level slots
261
- * above).
262
- */
263
- app_options?: SuiteAppOptions;
264
- }
265
- /**
266
- * `app_options` shape accepted by `create_test_app` and the DB-backed suite
267
- * helpers. Excludes fields the helpers manage directly — `backend` /
268
- * `session_options` / `create_route_specs` are constructed by the helper
269
- * itself; `rpc_endpoints` and `bootstrap` live on top-level options so
270
- * setup-time surface lookup and runtime dispatch read from one source of
271
- * truth.
272
- */
273
- export type SuiteAppOptions = Partial<Omit<AppServerOptions, 'backend' | 'session_options' | 'create_route_specs' | 'rpc_endpoints' | 'bootstrap'>>;
274
- /**
275
- * A bootstrapped test account with credentials.
276
- */
277
- export interface TestAccount {
278
- account: {
279
- id: Uuid;
280
- username: string;
281
- };
282
- actor: {
283
- id: Uuid;
284
- };
285
- /** Signed session cookie value. */
286
- session_cookie: string;
287
- /** Raw API token for Bearer auth. */
288
- api_token: string;
289
- /** Build request headers with this account's session cookie. */
290
- create_session_headers: (extra?: Record<string, string>) => Record<string, string>;
291
- /** Build request headers with this account's Bearer token. */
292
- create_bearer_headers: (extra?: Record<string, string>) => Record<string, string>;
293
- }
294
- /**
295
- * Args for `TestApp.create_account` — mint an additional account alongside the
296
- * keeper. Mirrors the cross-process `CreateTestAccountOptions` (the two
297
- * `create_account` paths share a shape so fixture call sites read identically),
298
- * kept local to avoid a cross-module cycle with `cross_backend/setup.ts`.
299
- */
300
- export interface CreateTestAppAccountArgs {
301
- username?: string;
302
- password_value?: string;
303
- roles?: Array<string>;
304
- /** Optional email stored on the account row — exercises the username-or-email login lookup. */
305
- email?: string;
306
- }
307
- /**
308
- * A fully assembled test app — Hono app + backend + helpers.
309
- */
310
- export interface TestApp {
311
- app: Hono;
312
- backend: TestAppServer;
313
- /**
314
- * The assembled `AppServer` — reach for what `create_app_server` built
315
- * beyond the fields lifted onto `TestApp`: `audit_sse` (with
316
- * `audit_log_sse` in `app_options`), the `ws_endpoints` transports,
317
- * `bootstrap_status`, `migration_results`.
318
- */
319
- server: AppServer;
320
- surface_spec: AppSurfaceSpec;
321
- surface: AppSurface;
322
- route_specs: Array<RouteSpec>;
323
- /** Build request headers with the bootstrapped session cookie. */
324
- create_session_headers: (extra?: Record<string, string>) => Record<string, string>;
325
- /** Build request headers with the bootstrapped Bearer token. */
326
- create_bearer_headers: (extra?: Record<string, string>) => Record<string, string>;
327
- /** Build request headers with the daemon token (keeper auth). */
328
- create_daemon_token_headers: (extra?: Record<string, string>) => Record<string, string>;
329
- /** Create an additional account with credentials. */
330
- create_account: (options?: CreateTestAppAccountArgs) => Promise<TestAccount>;
331
- /** Cleanup resources — `AppServer.close`: stops an opted-in auth cleanup schedule, closes live connections, disposes the limiters the server built and removes the audit listeners and closer members it added, then the backend's `close`. Idempotent. */
332
- cleanup: () => Promise<void>;
333
- }
334
225
  /**
335
226
  * The loopback `create_app_server` options an in-process test server takes:
336
227
  * the `TEST_ORIGIN` origin allowed (an exact list, parsed by
@@ -340,20 +231,4 @@ export interface TestApp {
340
231
  * varies.
341
232
  */
342
233
  export declare const create_loopback_app_server_options: () => Pick<AppServerOptions, "allowed_origins" | "proxy" | "env_schema">;
343
- /**
344
- * Create a fully assembled test app with a Hono server, middleware, and routes.
345
- *
346
- * Combines `create_test_app_server` + `create_app_server` into a single call.
347
- * Disables every rate limiter (`rate_limiters: 'disabled_for_testing'`) and
348
- * logging by default (test-friendly). A limiter passed through `app_options`
349
- * wins over the mode, so a rate-limit test enables just the one it pins.
350
- *
351
- * A fresh Hono app is created each call — middleware closures bind to the
352
- * server's deps (db, keyring), so reuse across servers is unsafe.
353
- * The expensive resource (the WASM database) is cached separately in `testing/db.ts`.
354
- *
355
- * @param options - test app configuration
356
- * @returns a `TestApp` ready for HTTP testing
357
- */
358
- export declare const create_test_app: (options: CreateTestAppOptions) => Promise<TestApp>;
359
234
  //# sourceMappingURL=app_server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app_server.d.ts","sourceRoot":"","sources":["../../src/lib/testing/app_server.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGjC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,EAAkB,KAAK,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAU5D,OAAO,EAA+B,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC7F,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI3E,OA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