@fuzdev/fuz_app 0.162.0 → 0.164.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 (280) hide show
  1. package/README.md +2 -1
  2. package/dist/actions/action_event_data.d.ts +1 -1
  3. package/dist/actions/action_rpc.d.ts.map +1 -1
  4. package/dist/actions/action_rpc.js +4 -0
  5. package/dist/actions/action_spec.d.ts +3 -3
  6. package/dist/actions/action_spec.d.ts.map +1 -1
  7. package/dist/auth/CLAUDE.md +39 -36
  8. package/dist/auth/account_action_specs.d.ts +441 -115
  9. package/dist/auth/account_action_specs.d.ts.map +1 -1
  10. package/dist/auth/account_action_specs.js +47 -46
  11. package/dist/auth/account_route_schema.d.ts +98 -62
  12. package/dist/auth/account_route_schema.d.ts.map +1 -1
  13. package/dist/auth/account_route_schema.js +45 -45
  14. package/dist/auth/account_routes.js +1 -1
  15. package/dist/auth/account_schema.d.ts +54 -27
  16. package/dist/auth/account_schema.d.ts.map +1 -1
  17. package/dist/auth/account_schema.js +16 -18
  18. package/dist/auth/admin_action_specs.d.ts +76 -76
  19. package/dist/auth/admin_action_specs.js +2 -4
  20. package/dist/auth/admin_actions.d.ts +4 -4
  21. package/dist/auth/admin_actions.d.ts.map +1 -1
  22. package/dist/auth/admin_actions.js +3 -3
  23. package/dist/auth/all_cell_actions.d.ts +3 -3
  24. package/dist/auth/all_cell_actions.d.ts.map +1 -1
  25. package/dist/auth/all_cell_actions.js +1 -1
  26. package/dist/auth/api_token.d.ts +4 -4
  27. package/dist/auth/api_token.d.ts.map +1 -1
  28. package/dist/auth/api_token.js +3 -3
  29. package/dist/auth/audit_log_route_schema.d.ts +1 -1
  30. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  31. package/dist/auth/audit_log_route_schema.js +4 -5
  32. package/dist/auth/audit_log_schema.d.ts +46 -66
  33. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  34. package/dist/auth/audit_log_schema.js +34 -30
  35. package/dist/auth/bootstrap_route_schema.d.ts +146 -52
  36. package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
  37. package/dist/auth/bootstrap_route_schema.js +33 -19
  38. package/dist/auth/cell_grant_action_specs.d.ts +1 -1
  39. package/dist/auth/cell_grant_action_specs.js +1 -1
  40. package/dist/auth/cell_grant_actions.d.ts +4 -4
  41. package/dist/auth/cell_grant_actions.d.ts.map +1 -1
  42. package/dist/auth/cell_grant_actions.js +1 -1
  43. package/dist/auth/credential_type_schema.d.ts +16 -29
  44. package/dist/auth/credential_type_schema.d.ts.map +1 -1
  45. package/dist/auth/credential_type_schema.js +14 -18
  46. package/dist/auth/daemon_token.d.ts +4 -4
  47. package/dist/auth/daemon_token.d.ts.map +1 -1
  48. package/dist/auth/daemon_token.js +3 -3
  49. package/dist/auth/daemon_token_middleware.d.ts +1 -1
  50. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  51. package/dist/auth/daemon_token_middleware.js +5 -5
  52. package/dist/auth/grant_path_schema.d.ts +15 -29
  53. package/dist/auth/grant_path_schema.d.ts.map +1 -1
  54. package/dist/auth/grant_path_schema.js +13 -17
  55. package/dist/auth/middleware.js +4 -4
  56. package/dist/auth/migrations.js +1 -1
  57. package/dist/auth/name_schema.d.ts +7 -6
  58. package/dist/auth/name_schema.d.ts.map +1 -1
  59. package/dist/auth/name_schema.js +8 -9
  60. package/dist/auth/password.d.ts +15 -7
  61. package/dist/auth/password.d.ts.map +1 -1
  62. package/dist/auth/password.js +16 -9
  63. package/dist/auth/role_grant_offer_action_specs.d.ts +2 -2
  64. package/dist/auth/role_grant_offer_action_specs.js +2 -2
  65. package/dist/auth/role_grant_offer_actions.d.ts +4 -4
  66. package/dist/auth/role_grant_offer_actions.d.ts.map +1 -1
  67. package/dist/auth/role_grant_offer_actions.js +3 -3
  68. package/dist/auth/role_grant_offer_notifications.js +2 -2
  69. package/dist/auth/role_grant_offer_schema.d.ts +2 -2
  70. package/dist/auth/role_grant_offer_schema.js +2 -2
  71. package/dist/auth/role_schema.d.ts +47 -55
  72. package/dist/auth/role_schema.d.ts.map +1 -1
  73. package/dist/auth/role_schema.js +29 -35
  74. package/dist/auth/scope_kind_schema.d.ts +22 -26
  75. package/dist/auth/scope_kind_schema.d.ts.map +1 -1
  76. package/dist/auth/scope_kind_schema.js +19 -19
  77. package/dist/auth/self_service_role_action_specs.js +1 -1
  78. package/dist/auth/self_service_role_actions.d.ts +6 -6
  79. package/dist/auth/self_service_role_actions.d.ts.map +1 -1
  80. package/dist/auth/self_service_role_actions.js +7 -6
  81. package/dist/auth/signup_route_schema.d.ts +71 -21
  82. package/dist/auth/signup_route_schema.d.ts.map +1 -1
  83. package/dist/auth/signup_route_schema.js +17 -19
  84. package/dist/auth/standard_rpc_actions.d.ts +1 -1
  85. package/dist/auth/standard_rpc_actions.js +1 -1
  86. package/dist/auth/token_lifetime.d.ts +33 -9
  87. package/dist/auth/token_lifetime.d.ts.map +1 -1
  88. package/dist/auth/token_lifetime.js +8 -7
  89. package/dist/auth/token_scope.d.ts +99 -25
  90. package/dist/auth/token_scope.d.ts.map +1 -1
  91. package/dist/auth/token_scope.js +57 -35
  92. package/dist/db/CLAUDE.md +2 -1
  93. package/dist/db/file_fact_url.d.ts +11 -6
  94. package/dist/db/file_fact_url.d.ts.map +1 -1
  95. package/dist/db/file_fact_url.js +5 -5
  96. package/dist/db/schema_ready.d.ts +0 -5
  97. package/dist/db/schema_ready.d.ts.map +1 -1
  98. package/dist/db/schema_ready.js +0 -5
  99. package/dist/http/CLAUDE.md +104 -71
  100. package/dist/http/auth_shape.d.ts +48 -29
  101. package/dist/http/auth_shape.d.ts.map +1 -1
  102. package/dist/http/auth_shape.js +12 -85
  103. package/dist/http/body_limit.d.ts +12 -0
  104. package/dist/http/body_limit.d.ts.map +1 -1
  105. package/dist/http/body_limit.js +15 -0
  106. package/dist/http/body_limit_schema.d.ts +20 -0
  107. package/dist/http/body_limit_schema.d.ts.map +1 -0
  108. package/dist/http/body_limit_schema.js +20 -0
  109. package/dist/http/common_routes.d.ts +1 -1
  110. package/dist/http/common_routes.d.ts.map +1 -1
  111. package/dist/http/common_routes.js +11 -14
  112. package/dist/http/db_routes.d.ts.map +1 -1
  113. package/dist/http/db_routes.js +59 -69
  114. package/dist/http/dev_route_error_check.d.ts +70 -0
  115. package/dist/http/dev_route_error_check.d.ts.map +1 -0
  116. package/dist/http/dev_route_error_check.js +119 -0
  117. package/dist/http/error_schemas.d.ts +365 -189
  118. package/dist/http/error_schemas.d.ts.map +1 -1
  119. package/dist/http/error_schemas.js +256 -149
  120. package/dist/http/health_schema.d.ts +10 -6
  121. package/dist/http/health_schema.d.ts.map +1 -1
  122. package/dist/http/health_schema.js +3 -3
  123. package/dist/http/middleware_spec.d.ts +8 -3
  124. package/dist/http/middleware_spec.d.ts.map +1 -1
  125. package/dist/http/origin.d.ts +12 -43
  126. package/dist/http/origin.d.ts.map +1 -1
  127. package/dist/http/origin.js +10 -6
  128. package/dist/http/route_error_check.d.ts +158 -0
  129. package/dist/http/route_error_check.d.ts.map +1 -0
  130. package/dist/http/route_error_check.js +247 -0
  131. package/dist/http/route_errors.d.ts +80 -0
  132. package/dist/http/route_errors.d.ts.map +1 -0
  133. package/dist/http/route_errors.js +83 -0
  134. package/dist/http/route_spec.d.ts +33 -17
  135. package/dist/http/route_spec.d.ts.map +1 -1
  136. package/dist/http/route_spec.js +48 -62
  137. package/dist/http/schema_helpers.d.ts +0 -33
  138. package/dist/http/schema_helpers.d.ts.map +1 -1
  139. package/dist/http/schema_helpers.js +0 -45
  140. package/dist/http/surface.d.ts +19 -12
  141. package/dist/http/surface.d.ts.map +1 -1
  142. package/dist/http/surface.js +25 -38
  143. package/dist/http/surface_query.d.ts +11 -2
  144. package/dist/http/surface_query.d.ts.map +1 -1
  145. package/dist/http/surface_query.js +7 -1
  146. package/dist/primitive_schemas.d.ts +2 -19
  147. package/dist/primitive_schemas.d.ts.map +1 -1
  148. package/dist/primitive_schemas.js +2 -20
  149. package/dist/primitive_schemas_fuz.d.ts +39 -5
  150. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  151. package/dist/primitive_schemas_fuz.js +36 -7
  152. package/dist/rate_limiter.d.ts +13 -0
  153. package/dist/rate_limiter.d.ts.map +1 -1
  154. package/dist/rate_limiter.js +20 -2
  155. package/dist/schema_issues.d.ts +29 -11
  156. package/dist/schema_issues.d.ts.map +1 -1
  157. package/dist/schema_issues.js +11 -10
  158. package/dist/schema_meta.d.ts +8 -1
  159. package/dist/schema_meta.d.ts.map +1 -1
  160. package/dist/schema_meta.js +2 -1
  161. package/dist/server/app_server.d.ts +3 -1
  162. package/dist/server/app_server.d.ts.map +1 -1
  163. package/dist/server/app_server.js +24 -10
  164. package/dist/server/serve_fact_route.d.ts.map +1 -1
  165. package/dist/server/serve_fact_route.js +8 -31
  166. package/dist/server/surface_route.d.ts.map +1 -1
  167. package/dist/server/surface_route.js +5 -6
  168. package/dist/server/x_accel.d.ts +12 -7
  169. package/dist/server/x_accel.d.ts.map +1 -1
  170. package/dist/server/x_accel.js +7 -9
  171. package/dist/testing/CLAUDE.md +55 -44
  172. package/dist/testing/admin_integration.d.ts +3 -3
  173. package/dist/testing/admin_integration.d.ts.map +1 -1
  174. package/dist/testing/admin_integration.js +2 -2
  175. package/dist/testing/adversarial_404.d.ts +4 -18
  176. package/dist/testing/adversarial_404.d.ts.map +1 -1
  177. package/dist/testing/adversarial_404.js +19 -51
  178. package/dist/testing/adversarial_headers.d.ts +3 -4
  179. package/dist/testing/adversarial_headers.d.ts.map +1 -1
  180. package/dist/testing/adversarial_headers.js +8 -6
  181. package/dist/testing/adversarial_input.d.ts.map +1 -1
  182. package/dist/testing/adversarial_input.js +18 -17
  183. package/dist/testing/assertions.d.ts +33 -11
  184. package/dist/testing/assertions.d.ts.map +1 -1
  185. package/dist/testing/assertions.js +52 -12
  186. package/dist/testing/attack_surface.d.ts +5 -35
  187. package/dist/testing/attack_surface.d.ts.map +1 -1
  188. package/dist/testing/attack_surface.js +29 -91
  189. package/dist/testing/auth_apps.d.ts.map +1 -1
  190. package/dist/testing/auth_apps.js +2 -1
  191. package/dist/testing/cross_backend/action_manifest.d.ts +126 -56
  192. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  193. package/dist/testing/cross_backend/action_manifest.js +11 -11
  194. package/dist/testing/cross_backend/action_manifest_parity.d.ts +1 -1
  195. package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
  196. package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
  197. package/dist/testing/cross_backend/cell_crud.js +2 -1
  198. package/dist/testing/cross_backend/conformance_table.js +1 -1
  199. package/dist/testing/cross_backend/default_spine_surface.d.ts +2 -2
  200. package/dist/testing/cross_backend/default_spine_surface.d.ts.map +1 -1
  201. package/dist/testing/cross_backend/default_spine_surface.js +2 -2
  202. package/dist/testing/cross_backend/fact_serving.js +3 -3
  203. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  204. package/dist/testing/cross_backend/identity_parity.js +39 -6
  205. package/dist/testing/cross_backend/origin_conformance.d.ts +278 -102
  206. package/dist/testing/cross_backend/origin_conformance.d.ts.map +1 -1
  207. package/dist/testing/cross_backend/origin_conformance.js +21 -21
  208. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +3 -3
  209. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  210. package/dist/testing/cross_backend/rust_spine_consumer_surface.js +7 -1
  211. package/dist/testing/cross_backend/setup.d.ts +14 -1
  212. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  213. package/dist/testing/cross_backend/setup.js +68 -48
  214. package/dist/testing/cross_backend/spine_suites.d.ts +3 -3
  215. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  216. package/dist/testing/cross_backend/standard.d.ts +4 -4
  217. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  218. package/dist/testing/cross_backend/testing_origin_check.d.ts +147 -71
  219. package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
  220. package/dist/testing/cross_backend/testing_origin_check.js +16 -13
  221. package/dist/testing/cross_backend/testing_reset_actions.d.ts +70 -27
  222. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  223. package/dist/testing/cross_backend/token_lifetime.d.ts.map +1 -1
  224. package/dist/testing/cross_backend/token_lifetime.js +34 -1
  225. package/dist/testing/data_exposure.d.ts.map +1 -1
  226. package/dist/testing/data_exposure.js +5 -4
  227. package/dist/testing/error_coverage.d.ts +24 -34
  228. package/dist/testing/error_coverage.d.ts.map +1 -1
  229. package/dist/testing/error_coverage.js +46 -89
  230. package/dist/testing/integration.d.ts.map +1 -1
  231. package/dist/testing/integration.js +6 -14
  232. package/dist/testing/integration_helpers.d.ts +37 -9
  233. package/dist/testing/integration_helpers.d.ts.map +1 -1
  234. package/dist/testing/integration_helpers.js +86 -40
  235. package/dist/testing/middleware.d.ts +3 -5
  236. package/dist/testing/middleware.d.ts.map +1 -1
  237. package/dist/testing/middleware.js +5 -4
  238. package/dist/testing/rate_limiting.d.ts +1 -1
  239. package/dist/testing/rate_limiting.d.ts.map +1 -1
  240. package/dist/testing/rate_limiting.js +5 -4
  241. package/dist/testing/round_trip.d.ts.map +1 -1
  242. package/dist/testing/round_trip.js +5 -3
  243. package/dist/testing/schema_generators.d.ts +10 -3
  244. package/dist/testing/schema_generators.d.ts.map +1 -1
  245. package/dist/testing/schema_generators.js +23 -11
  246. package/dist/testing/stubs.d.ts +10 -1
  247. package/dist/testing/stubs.d.ts.map +1 -1
  248. package/dist/testing/stubs.js +15 -5
  249. package/dist/testing/surface_invariants.d.ts +36 -115
  250. package/dist/testing/surface_invariants.d.ts.map +1 -1
  251. package/dist/testing/surface_invariants.js +106 -269
  252. package/dist/testing/token_scope_fixtures.d.ts +24 -0
  253. package/dist/testing/token_scope_fixtures.d.ts.map +1 -0
  254. package/dist/testing/token_scope_fixtures.js +49 -0
  255. package/dist/testing/transports/bootstrap.d.ts +1 -1
  256. package/dist/testing/transports/bootstrap.d.ts.map +1 -1
  257. package/dist/testing/transports/bootstrap.js +13 -12
  258. package/dist/ui/BootstrapForm.svelte +4 -2
  259. package/dist/ui/BootstrapForm.svelte.d.ts.map +1 -1
  260. package/dist/ui/CLAUDE.md +4 -2
  261. package/dist/ui/SignupForm.svelte +4 -2
  262. package/dist/ui/SignupForm.svelte.d.ts.map +1 -1
  263. package/dist/ui/auth_state.svelte.d.ts.map +1 -1
  264. package/dist/ui/auth_state.svelte.js +2 -8
  265. package/dist/ui/backend_probe.svelte.js +3 -3
  266. package/dist/ui/table_state.svelte.d.ts.map +1 -1
  267. package/dist/ui/table_state.svelte.js +1 -8
  268. package/dist/ui/ui_fetch.d.ts +12 -2
  269. package/dist/ui/ui_fetch.d.ts.map +1 -1
  270. package/dist/ui/ui_fetch.js +22 -4
  271. package/package.json +1 -1
  272. package/dist/auth/audit_log_schema_fuz.d.ts +0 -53
  273. package/dist/auth/audit_log_schema_fuz.d.ts.map +0 -1
  274. package/dist/auth/audit_log_schema_fuz.js +0 -50
  275. package/dist/auth/role_schema_fuz.d.ts +0 -30
  276. package/dist/auth/role_schema_fuz.d.ts.map +0 -1
  277. package/dist/auth/role_schema_fuz.js +0 -30
  278. package/dist/auth/scope_kind_schema_fuz.d.ts +0 -31
  279. package/dist/auth/scope_kind_schema_fuz.d.ts.map +0 -1
  280. package/dist/auth/scope_kind_schema_fuz.js +0 -31
@@ -1,6 +1,6 @@
1
1
  import './assert_dev_env.js';
2
- import { type SurfaceSecurityPolicyOptions, type ErrorSchemaTightnessOptions } from './surface_invariants.js';
3
- import { type AppSurfaceSpec } from '../http/surface.js';
2
+ import { type SurfaceSecurityPolicyOptions } from './surface_invariants.js';
3
+ import type { AppSurfaceSpec } from '../http/surface.js';
4
4
  /** Options for adversarial test runners (auth enforcement and input validation). */
5
5
  export interface AdversarialTestOptions {
6
6
  /** Build the app surface bundle (surface + route specs + middleware specs). */
@@ -29,22 +29,6 @@ export interface AdversarialTestOptions {
29
29
  * - correct auth passes guard — every protected route, assert not 401/403
30
30
  */
31
31
  export declare const describe_adversarial_auth: (options: AdversarialTestOptions) => void;
32
- /**
33
- * Merge a consumer's `error_schema_tightness` option with
34
- * `default_error_schema_tightness` so `allowlist` and `ignore_statuses` are
35
- * additive rather than replacing.
36
- *
37
- * - `undefined` → return the default as-is.
38
- * - `null` → return `null` (opt out of the assertion).
39
- * - object → spread the default, then consumer overrides for scalar fields
40
- * (`min_specificity`), then concat stock-then-consumer for the list fields
41
- * (`allowlist`, `ignore_statuses`) so consumer entries extend rather than
42
- * replace.
43
- *
44
- * Exported for direct use when a consumer calls `assert_error_schema_tightness`
45
- * outside the standard suite but still wants the additive merge.
46
- */
47
- export declare const resolve_standard_error_schema_tightness: (consumer: ErrorSchemaTightnessOptions | null | undefined) => ErrorSchemaTightnessOptions | null;
48
32
  /** Options for the standard attack surface test suite. */
49
33
  export interface StandardAttackSurfaceOptions {
50
34
  /** Build the app surface bundle (surface + route specs + middleware specs). */
@@ -61,19 +45,6 @@ export interface StandardAttackSurfaceOptions {
61
45
  api_path_prefix?: string;
62
46
  /** Security policy configuration. Omit for sensible defaults. */
63
47
  security_policy?: SurfaceSecurityPolicyOptions;
64
- /**
65
- * Error schema tightness assertion config. Defaults to
66
- * `default_error_schema_tightness` (ignores 401/403/429,
67
- * `min_specificity: 'enum'`, allowlist seeded with
68
- * `fuz_app_stock_route_tightness_allowlist`).
69
- *
70
- * Consumer-supplied `allowlist` and `ignore_statuses` are **additive** —
71
- * the suite merges them underneath the stock defaults, so project-specific
72
- * entries don't need to re-list fuz_app's own stock routes. Pass a narrower
73
- * config to extend either list or tighten `min_specificity`; pass `null`
74
- * to skip the assertion and keep the audit log informational-only.
75
- */
76
- error_schema_tightness?: ErrorSchemaTightnessOptions | null;
77
48
  /**
78
49
  * Routes the three adversarial sub-suites skip, in `'METHOD /path'` form
79
50
  * — the escape hatch every sibling suite carries (`round_trip`,
@@ -94,10 +65,9 @@ export interface StandardAttackSurfaceOptions {
94
65
  * 5. Surface invariants — structural assertions over `surface.routes` (error schemas, descriptions, duplicates, consistency)
95
66
  * 6. RPC/WS surface invariants — structural assertions over `surface.rpc_endpoints` + `surface.ws_endpoints` (descriptions, protocol-action spread, kind ⇔ auth)
96
67
  * 7. Security policy — rate limiting on sensitive routes, no unexpected public mutations, method conventions
97
- * 8. Error schema tightness — informational log of generic vs specific error schemas, plus assertion against `default_error_schema_tightness` by default (opt out with `error_schema_tightness: null`)
98
- * 9. Adversarial auth — unauthenticated/wrong-role/correct-auth enforcement
99
- * 10. Adversarial input — input body and params validation
100
- * 11. Adversarial 404 — stub 404 handlers, validate response bodies against declared schemas
68
+ * 8. Adversarial auth — unauthenticated/wrong-role/correct-auth enforcement, every refusal a status and code of the route's own error map
69
+ * 9. Adversarial input — input body and params validation, each 400 a code of the route's own map
70
+ * 10. Adversarial 404 — stub 404 handlers, validate response bodies against the route's declared 404
101
71
  *
102
72
  * Consumer test files call this with project-specific options, then add
103
73
  * any project-specific assertions in additional `describe` blocks.
@@ -1 +1 @@
1
- {"version":3,"file":"attack_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/attack_surface.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAoB7B,OAAO,EAQN,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,MAAM,yBAAyB,CAAC;AAejC,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAwDpF,oFAAoF;AACpF,MAAM,WAAW,sBAAsB;IACtC,+EAA+E;IAC/E,KAAK,EAAE,MAAM,cAAc,CAAC;IAC5B,yDAAyD;IACzD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,GAAI,SAAS,sBAAsB,KAAG,IA6J3E,CAAC;AAIF;;;;;;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W,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,GAAI,SAAS,sBAAsB,KAAG,IAuK3E,CAAC;AAIF,0DAA0D;AAC1D,MAAM,WAAW,4BAA4B;IAC5C,+EAA+E;IAC/E,KAAK,EAAE,MAAM,cAAc,CAAC;IAC5B,yDAAyD;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,sBAAsB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC,iIAAiI;IACjI,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvC,yDAAyD;IACzD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iEAAiE;IACjE,eAAe,CAAC,EAAE,4BAA4B,CAAC;IAC/C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,sCAAsC,GAClD,SAAS,4BAA4B,KACnC,IAoDF,CAAC"}
@@ -15,48 +15,27 @@ import './assert_dev_env.js';
15
15
  * @module
16
16
  */
17
17
  import { test, assert, describe } from 'vitest';
18
- import { assert_surface_invariants, assert_rpc_ws_surface_invariants, assert_surface_security_policy, audit_error_schema_tightness, assert_error_schema_tightness, default_error_schema_tightness, fuz_app_stock_route_tightness_allowlist } from './surface_invariants.js';
18
+ import { assert_surface_invariants, assert_rpc_ws_surface_invariants, assert_surface_security_policy } from './surface_invariants.js';
19
19
  import { describe_adversarial_input } from './adversarial_input.js';
20
20
  import { describe_adversarial_404 } from './adversarial_404.js';
21
21
  import { create_auth_test_apps, create_route_skip_filter, select_auth_app } from './auth_apps.js';
22
22
  import { resolve_valid_path, to_route_content_type } from './schema_generators.js';
23
- import { assert_surface_matches_snapshot, assert_surface_deterministic, assert_only_expected_public_routes, assert_full_middleware_stack, assert_error_schema_valid } from './assertions.js';
24
- import { merge_error_schemas } from '../http/schema_helpers.js';
25
- import { collect_middleware_errors } from '../http/surface.js';
26
- import { filter_protected_routes, filter_role_routes, filter_credential_gated_routes } from '../http/surface_query.js';
23
+ import { assert_surface_matches_snapshot, assert_surface_deterministic, assert_only_expected_public_routes, assert_full_middleware_stack, assert_error_schema_valid, assert_error_response_declared } from './assertions.js';
24
+ import { get_route_error_map } from '../http/route_errors.js';
25
+ import { filter_protected_routes, filter_role_routes, filter_credential_gated_routes, format_route_key } from '../http/surface_query.js';
27
26
  import { BUILTIN_CREDENTIAL_TYPES, CREDENTIAL_TYPE_SESSION } from '../auth/credential_type_schema.js';
28
27
  import { ERROR_AUTHENTICATION_REQUIRED, ERROR_INSUFFICIENT_PERMISSIONS, ERROR_CREDENTIAL_TYPE_REQUIRED } from '../http/error_schemas.js';
29
28
  // --- Adversarial test runner ---
30
- /**
31
- * Build a lookup from `"METHOD /path"` to merged error schemas (auto-derived + middleware + explicit).
32
- *
33
- * Uses `merge_error_schemas` to ensure consistency with surface generation —
34
- * accounts for auth, input, params, and middleware when auto-deriving error schemas.
35
- */
36
- const build_error_schema_lookup = (route_specs, middleware_specs) => {
37
- const lookup = new Map();
38
- for (const spec of route_specs) {
39
- const key = `${spec.method} ${spec.path}`;
40
- const mw_errors = middleware_specs
41
- ? collect_middleware_errors(middleware_specs, spec.path)
42
- : null;
43
- const merged = merge_error_schemas(spec, mw_errors);
44
- if (merged && Object.keys(merged).length > 0) {
45
- lookup.set(key, merged);
46
- }
47
- }
48
- return lookup;
49
- };
50
29
  /**
51
30
  * Build a lookup from `"METHOD /path"` to the route's own `RouteSpec` — the
52
- * companion of `build_error_schema_lookup`, so a generated request can reach
31
+ * companion of the surface spec's `route_error_maps`, so a generated request can reach
53
32
  * the route's `params` schema and synthesize path segments the route will
54
33
  * actually accept.
55
34
  */
56
35
  const build_route_spec_lookup = (route_specs) => {
57
36
  const lookup = new Map();
58
37
  for (const spec of route_specs) {
59
- lookup.set(`${spec.method} ${spec.path}`, spec);
38
+ lookup.set(format_route_key(spec), spec);
60
39
  }
61
40
  return lookup;
62
41
  };
@@ -74,21 +53,21 @@ const build_route_spec_lookup = (route_specs) => {
74
53
  */
75
54
  export const describe_adversarial_auth = (options) => {
76
55
  const { build, roles } = options;
77
- const { surface, route_specs, middleware_specs } = build();
56
+ const { surface, route_specs, route_error_maps } = build();
78
57
  const is_skipped = create_route_skip_filter(options.skip_routes);
79
58
  const protected_routes = filter_protected_routes(surface).filter((r) => !is_skipped(r));
80
59
  if (protected_routes.length === 0)
81
60
  return;
82
61
  const role_routes = filter_role_routes(surface).filter((r) => !is_skipped(r));
83
62
  const credential_gated_routes = filter_credential_gated_routes(surface).filter((r) => !is_skipped(r));
84
- // merged error schemas (auto-derived + middleware + handler-specific) for response validation
85
- const error_schema_lookup = build_error_schema_lookup(route_specs, middleware_specs);
63
+ // each route's error map (derived, middleware, and handler-specific), for response validation
64
+ const error_schema_lookup = route_error_maps;
86
65
  // The route's own spec, so a path param with a declared format (a
87
66
  // `blake3:…` fact hash, a `tok_…` id) is synthesized into a value params
88
67
  // validation accepts. Otherwise the generated request 400s on the path
89
68
  // before ever reaching the 401 / 403 gate the case is asserting.
90
69
  const spec_lookup = build_route_spec_lookup(route_specs);
91
- const test_path = (route) => resolve_valid_path(route.path, spec_lookup.get(`${route.method} ${route.path}`)?.params);
70
+ const test_path = (route) => resolve_valid_path(route.path, spec_lookup.get(format_route_key(route))?.params);
92
71
  const apps = create_auth_test_apps(route_specs, roles);
93
72
  // every probe carries the content type a real client sends, so the
94
73
  // per-route content-type check (415) never answers ahead of the auth gate
@@ -99,9 +78,9 @@ export const describe_adversarial_auth = (options) => {
99
78
  describe('adversarial HTTP auth enforcement', () => {
100
79
  describe('unauthenticated → 401', () => {
101
80
  for (const route of protected_routes) {
102
- test(`${route.method} ${route.path}`, async () => {
81
+ test(format_route_key(route), async () => {
103
82
  const res = await apps.public.request(test_path(route), probe_init(route));
104
- assert.strictEqual(res.status, 401, `${route.method} ${route.path}`);
83
+ assert.strictEqual(res.status, 401, format_route_key(route));
105
84
  const body = await res.json();
106
85
  assert.strictEqual(body.error, ERROR_AUTHENTICATION_REQUIRED);
107
86
  assert_error_schema_valid(error_schema_lookup, route, 401, body);
@@ -130,7 +109,7 @@ export const describe_adversarial_auth = (options) => {
130
109
  if (!app)
131
110
  throw new Error(`No test app for role '${wrong_role}'`);
132
111
  const res = await app.request(test_path(route), probe_init(route));
133
- assert.strictEqual(res.status, 403, `${route.method} ${route.path}`);
112
+ assert.strictEqual(res.status, 403, format_route_key(route));
134
113
  const body = await res.json();
135
114
  assert.strictEqual(body.error, ERROR_INSUFFICIENT_PERMISSIONS);
136
115
  assert.deepStrictEqual(body.required_roles, required_roles);
@@ -141,9 +120,9 @@ export const describe_adversarial_auth = (options) => {
141
120
  });
142
121
  describe('authenticated without role → 403', () => {
143
122
  for (const route of role_only_routes) {
144
- test(`${route.method} ${route.path}`, async () => {
123
+ test(format_route_key(route), async () => {
145
124
  const res = await apps.authed.request(test_path(route), probe_init(route));
146
- assert.strictEqual(res.status, 403, `${route.method} ${route.path}`);
125
+ assert.strictEqual(res.status, 403, format_route_key(route));
147
126
  const body = await res.json();
148
127
  assert.strictEqual(body.error, ERROR_INSUFFICIENT_PERMISSIONS);
149
128
  assert.deepStrictEqual(body.required_roles, route.auth.roles ?? []);
@@ -177,7 +156,7 @@ export const describe_adversarial_auth = (options) => {
177
156
  const res = await apps.by_credential_type
178
157
  .get(refused)
179
158
  .request(test_path(route), probe_init(route));
180
- assert.strictEqual(res.status, 403, `${route.method} ${route.path}`);
159
+ assert.strictEqual(res.status, 403, format_route_key(route));
181
160
  const body = await res.json();
182
161
  assert.strictEqual(body.error, ERROR_CREDENTIAL_TYPE_REQUIRED);
183
162
  assert.deepStrictEqual(body.required_credential_types, admitted);
@@ -188,18 +167,23 @@ export const describe_adversarial_auth = (options) => {
188
167
  }
189
168
  describe('correct auth passes guard', () => {
190
169
  for (const route of protected_routes) {
191
- test(`${route.method} ${route.path}`, async () => {
170
+ test(format_route_key(route), async () => {
192
171
  const res = await select_auth_app(apps, route.auth).request(test_path(route), probe_init(route));
193
- // handler may error (500) or return 404 (stub deps) — that's fine, we only verify auth passed
172
+ // the handler runs on stub deps, so any status it answers is fine
173
+ // but the gates' — and an error it answers must be one the route declares
194
174
  assert.notStrictEqual(res.status, 401, 'should not be 401 (auth rejected)');
195
175
  assert.notStrictEqual(res.status, 403, 'should not be 403 (role rejected)');
196
176
  assert.notStrictEqual(res.status, 415, 'should not be 415 (content type refused)');
197
- // handler-level 404 (resource not found with stub deps) is fine —
198
- // only reject router-level 404 (route not registered)
177
+ // only reject router-level 404 (route not registered), Hono's plain text
199
178
  if (res.status === 404) {
200
- const body = await res.json().catch(() => null);
179
+ const body = await res
180
+ .clone()
181
+ .json()
182
+ .catch(() => null);
201
183
  assert.ok(body?.error, `route not registered: ${route.method} ${route.path}`);
202
184
  }
185
+ const spec = spec_lookup.get(format_route_key(route));
186
+ await assert_error_response_declared(get_route_error_map(route_error_maps, spec), spec.jsonrpc ?? false, res, format_route_key(route));
203
187
  // SSE streams need explicit cleanup — the suspended promise keeps the event loop alive.
204
188
  // Only cancel streaming responses; regular JSON bodies don't need it.
205
189
  if (res.headers.get('Content-Type')?.includes('text/event-stream')) {
@@ -210,35 +194,6 @@ export const describe_adversarial_auth = (options) => {
210
194
  });
211
195
  });
212
196
  };
213
- // --- Standard attack surface test suite ---
214
- /**
215
- * Merge a consumer's `error_schema_tightness` option with
216
- * `default_error_schema_tightness` so `allowlist` and `ignore_statuses` are
217
- * additive rather than replacing.
218
- *
219
- * - `undefined` → return the default as-is.
220
- * - `null` → return `null` (opt out of the assertion).
221
- * - object → spread the default, then consumer overrides for scalar fields
222
- * (`min_specificity`), then concat stock-then-consumer for the list fields
223
- * (`allowlist`, `ignore_statuses`) so consumer entries extend rather than
224
- * replace.
225
- *
226
- * Exported for direct use when a consumer calls `assert_error_schema_tightness`
227
- * outside the standard suite but still wants the additive merge.
228
- */
229
- export const resolve_standard_error_schema_tightness = (consumer) => {
230
- if (consumer === null)
231
- return null;
232
- return {
233
- ...default_error_schema_tightness,
234
- ...consumer,
235
- allowlist: [...fuz_app_stock_route_tightness_allowlist, ...(consumer?.allowlist ?? [])],
236
- ignore_statuses: [
237
- ...(default_error_schema_tightness.ignore_statuses ?? []),
238
- ...(consumer?.ignore_statuses ?? [])
239
- ]
240
- };
241
- };
242
197
  /**
243
198
  * Run the standard attack surface test suite.
244
199
  *
@@ -250,17 +205,15 @@ export const resolve_standard_error_schema_tightness = (consumer) => {
250
205
  * 5. Surface invariants — structural assertions over `surface.routes` (error schemas, descriptions, duplicates, consistency)
251
206
  * 6. RPC/WS surface invariants — structural assertions over `surface.rpc_endpoints` + `surface.ws_endpoints` (descriptions, protocol-action spread, kind ⇔ auth)
252
207
  * 7. Security policy — rate limiting on sensitive routes, no unexpected public mutations, method conventions
253
- * 8. Error schema tightness — informational log of generic vs specific error schemas, plus assertion against `default_error_schema_tightness` by default (opt out with `error_schema_tightness: null`)
254
- * 9. Adversarial auth — unauthenticated/wrong-role/correct-auth enforcement
255
- * 10. Adversarial input — input body and params validation
256
- * 11. Adversarial 404 — stub 404 handlers, validate response bodies against declared schemas
208
+ * 8. Adversarial auth — unauthenticated/wrong-role/correct-auth enforcement, every refusal a status and code of the route's own error map
209
+ * 9. Adversarial input — input body and params validation, each 400 a code of the route's own map
210
+ * 10. Adversarial 404 — stub 404 handlers, validate response bodies against the route's declared 404
257
211
  *
258
212
  * Consumer test files call this with project-specific options, then add
259
213
  * any project-specific assertions in additional `describe` blocks.
260
214
  */
261
215
  export const describe_standard_attack_surface_tests = (options) => {
262
216
  const { build, snapshot_path, expected_public_routes, expected_api_middleware, roles, api_path_prefix = '/api/', security_policy, skip_routes } = options;
263
- const error_schema_tightness = resolve_standard_error_schema_tightness(options.error_schema_tightness);
264
217
  const built = build();
265
218
  const { surface } = built;
266
219
  describe('attack surface snapshot', () => {
@@ -287,21 +240,6 @@ export const describe_standard_attack_surface_tests = (options) => {
287
240
  test('security policy', () => {
288
241
  assert_surface_security_policy(surface, security_policy);
289
242
  });
290
- test('error schema tightness', () => {
291
- const entries = audit_error_schema_tightness(surface);
292
- const generic = entries.filter((e) => e.specificity === 'generic');
293
- const literal = entries.filter((e) => e.specificity === 'literal');
294
- const enumerated = entries.filter((e) => e.specificity === 'enum');
295
- console.log(`[error schema tightness] ${entries.length} total: ` +
296
- `${literal.length} literal, ${enumerated.length} enum, ${generic.length} generic`);
297
- if (generic.length > 0) {
298
- console.log(`[error schema tightness] generic schemas:\n` +
299
- generic.map((e) => ` ${e.method} ${e.route_path} → ${e.status}`).join('\n'));
300
- }
301
- if (error_schema_tightness) {
302
- assert_error_schema_tightness(surface, error_schema_tightness);
303
- }
304
- });
305
243
  });
306
244
  describe_adversarial_auth({ build: () => built, roles, skip_routes });
307
245
  describe_adversarial_input({ build: () => built, roles, skip_routes });
@@ -1 +1 @@
1
- {"version":3,"file":"auth_apps.d.ts","sourceRoot":"../src/lib/","sources":["../../src/lib/testing/auth_apps.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAE7B;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAG5B,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAIN,KAAK,qBAAqB,EAC1B,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAGN,KAAK,cAAc,EACnB,MAAM,4BAA4B,CAAC;AAUpC;;GAEG;AACH,eAAO,MAAM,2BAA2B,GAAI,OAAO,MAAM,KAAG,cAI1D,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACtC,aAAa,KAAK,CAAC,SAAS,CAAC,EAC7B,WAAW,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AO,MAAM,2BAA2B,GAAI,OAAO,MAAM,KAAG,cAI1D,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACtC,aAAa,KAAK,CAAC,SAAS,CAAC,EAC7B,WAAW,cAAc,EACzB,kBAAkB,qBAAqB,KACrC,IA4BF,CAAC;AAEF,sFAAsF;AACtF,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,IAAI,CAAC;IACb,MAAM,EAAE,IAAI,CAAC;IACb;;;;;;;;OAQG;IACH,kBAAkB,EAAE,GAAG,CAAC,qBAAqB,EAAE,IAAI,CAAC,CAAC;IACrD,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GACjC,aAAa,KAAK,CAAC,SAAS,CAAC,EAC7B,OAAO,KAAK,CAAC,MAAM,CAAC,KAClB,YAsBF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,YAAY,EAAE,MAAM,SAAS,KAAG,IAwBrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACpC,aAAa,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,KACpC,CAAC,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,OAAO,CAGvD,CAAC"}
@@ -10,6 +10,7 @@ import './assert_dev_env.js';
10
10
  import { Hono } from 'hono';
11
11
  import { Logger } from '@fuzdev/fuz_util/log.ts';
12
12
  import { apply_route_specs } from '../http/route_spec.js';
13
+ import { format_route_key } from '../http/surface_query.js';
13
14
  import { is_public_auth } from '../http/auth_shape.js';
14
15
  import { BUILTIN_CREDENTIAL_TYPES, CREDENTIAL_TYPE_DAEMON_TOKEN, CREDENTIAL_TYPE_SESSION } from '../auth/credential_type_schema.js';
15
16
  import { ROLE_KEEPER } from '../auth/role_schema.js';
@@ -129,5 +130,5 @@ export const select_auth_app = (apps, auth) => {
129
130
  */
130
131
  export const create_route_skip_filter = (skip_routes) => {
131
132
  const skip_set = new Set(skip_routes);
132
- return (route) => skip_set.has(`${route.method} ${route.path}`);
133
+ return (route) => skip_set.has(format_route_key(route));
133
134
  };
@@ -30,9 +30,9 @@ import '../assert_dev_env.js';
30
30
  *
31
31
  * @module
32
32
  */
33
- import { z } from 'zod';
33
+ import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
34
34
  import { type RouteAuth } from '../../http/auth_shape.js';
35
- import { RateLimitKey } from '../../http/error_schemas.js';
35
+ import { RateLimitKey } from '../../rate_limiter.js';
36
36
  import type { ValidationSchema } from '../../schema_issues.js';
37
37
  import type { RequestResponseActionSpec } from '../../actions/action_spec.js';
38
38
  /**
@@ -44,61 +44,131 @@ import type { RequestResponseActionSpec } from '../../actions/action_spec.js';
44
44
  * nullable rather than optional for the same reason — an unthrottled action
45
45
  * serializes an explicit `null`, so a missing key is drift, not a default.
46
46
  */
47
- export declare const ActionManifestEntry: z.ZodObject<{
48
- method: z.ZodString;
49
- input: z.ZodEnum<{
50
- object: "object";
51
- void: "void";
52
- }>;
53
- side_effects: z.ZodBoolean;
54
- account: z.ZodEnum<{
55
- optional: "optional";
56
- none: "none";
57
- required: "required";
58
- }>;
59
- actor: z.ZodEnum<{
60
- optional: "optional";
61
- none: "none";
62
- required: "required";
63
- }>;
64
- roles: z.ZodArray<z.ZodString>;
65
- credential_types: z.ZodArray<z.ZodString>;
66
- rate_limit: z.ZodNullable<z.ZodEnum<{
67
- account: "account";
68
- ip: "ip";
69
- both: "both";
70
- }>>;
71
- }, z.core.$strict>;
72
- export type ActionManifestEntry = z.infer<typeof ActionManifestEntry>;
47
+ export declare const ActionManifestEntry: import("@fuzdev/fuz_schema/schema.ts").Schema<{
48
+ input: "object" | "void";
49
+ account: "optional" | "none" | "required";
50
+ actor: "optional" | "none" | "required";
51
+ roles: string[];
52
+ credential_types: string[];
53
+ method: string;
54
+ side_effects: boolean;
55
+ rate_limit: "account" | "ip" | "both" | null;
56
+ }, {
57
+ input: "object" | "void";
58
+ account: "optional" | "none" | "required";
59
+ actor: "optional" | "none" | "required";
60
+ roles: string[];
61
+ credential_types: string[];
62
+ method: string;
63
+ side_effects: boolean;
64
+ rate_limit: "account" | "ip" | "both" | null;
65
+ }, "object", {
66
+ /** RPC method name (`spec.method`). */
67
+ method: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
68
+ /**
69
+ * `'void'` when the input is a void schema (`is_void_schema`: `z.void()`
70
+ * or fuz_schema `s.void`, a parameterless method), else `'object'` — the
71
+ * Rust spine's declared `InputShape`, which its dispatcher enforces. A `z.strictObject({})` input is `'object'`.
72
+ */
73
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<"object" | "void", "object" | "void", "one_of", readonly ["void", "object"]>;
74
+ /** `true` when the action declares `side_effects` (mutation; POST-only on the RPC transport). */
75
+ side_effects: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
76
+ /** The `account` auth axis. */
77
+ account: import("@fuzdev/fuz_schema/schema.ts").Schema<"optional" | "none" | "required", "optional" | "none" | "required", "one_of", readonly ["none", "optional", "required"]>;
78
+ /** The `actor` auth axis. */
79
+ actor: import("@fuzdev/fuz_schema/schema.ts").Schema<"optional" | "none" | "required", "optional" | "none" | "required", "one_of", readonly ["none", "optional", "required"]>;
80
+ /** Required roles (any-of), sorted; `[]` when the action declares no role gate. */
81
+ roles: import("@fuzdev/fuz_schema/schema.ts").Schema<string[], string[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
82
+ /** Permitted credential channels, sorted; `[]` when ungated (any credential). */
83
+ credential_types: import("@fuzdev/fuz_schema/schema.ts").Schema<string[], string[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
84
+ /** Per-action rate-limit class, or `null` when the action declares none. */
85
+ rate_limit: import("@fuzdev/fuz_schema/schema.ts").Schema<"account" | "ip" | "both" | null, "account" | "ip" | "both" | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<"account" | "ip" | "both", "account" | "ip" | "both", "one_of", readonly ["ip", "account", "both"]>>>;
86
+ }>;
87
+ export type ActionManifestEntry = Infer<typeof ActionManifestEntry>;
73
88
  /** The full action manifest — every entry, sorted by `method`. */
74
- export declare const ActionManifest: z.ZodObject<{
75
- methods: z.ZodArray<z.ZodObject<{
76
- method: z.ZodString;
77
- input: z.ZodEnum<{
78
- object: "object";
79
- void: "void";
80
- }>;
81
- side_effects: z.ZodBoolean;
82
- account: z.ZodEnum<{
83
- optional: "optional";
84
- none: "none";
85
- required: "required";
86
- }>;
87
- actor: z.ZodEnum<{
88
- optional: "optional";
89
- none: "none";
90
- required: "required";
91
- }>;
92
- roles: z.ZodArray<z.ZodString>;
93
- credential_types: z.ZodArray<z.ZodString>;
94
- rate_limit: z.ZodNullable<z.ZodEnum<{
95
- account: "account";
96
- ip: "ip";
97
- both: "both";
98
- }>>;
99
- }, z.core.$strict>>;
100
- }, z.core.$strict>;
101
- export type ActionManifest = z.infer<typeof ActionManifest>;
89
+ export declare const ActionManifest: import("@fuzdev/fuz_schema/schema.ts").Schema<{
90
+ methods: {
91
+ input: "object" | "void";
92
+ account: "optional" | "none" | "required";
93
+ actor: "optional" | "none" | "required";
94
+ roles: string[];
95
+ credential_types: string[];
96
+ method: string;
97
+ side_effects: boolean;
98
+ rate_limit: "account" | "ip" | "both" | null;
99
+ }[];
100
+ }, {
101
+ methods: {
102
+ input: "object" | "void";
103
+ account: "optional" | "none" | "required";
104
+ actor: "optional" | "none" | "required";
105
+ roles: string[];
106
+ credential_types: string[];
107
+ method: string;
108
+ side_effects: boolean;
109
+ rate_limit: "account" | "ip" | "both" | null;
110
+ }[];
111
+ }, "object", {
112
+ methods: import("@fuzdev/fuz_schema/schema.ts").Schema<{
113
+ input: "object" | "void";
114
+ account: "optional" | "none" | "required";
115
+ actor: "optional" | "none" | "required";
116
+ roles: string[];
117
+ credential_types: string[];
118
+ method: string;
119
+ side_effects: boolean;
120
+ rate_limit: "account" | "ip" | "both" | null;
121
+ }[], {
122
+ input: "object" | "void";
123
+ account: "optional" | "none" | "required";
124
+ actor: "optional" | "none" | "required";
125
+ roles: string[];
126
+ credential_types: string[];
127
+ method: string;
128
+ side_effects: boolean;
129
+ rate_limit: "account" | "ip" | "both" | null;
130
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
131
+ input: "object" | "void";
132
+ account: "optional" | "none" | "required";
133
+ actor: "optional" | "none" | "required";
134
+ roles: string[];
135
+ credential_types: string[];
136
+ method: string;
137
+ side_effects: boolean;
138
+ rate_limit: "account" | "ip" | "both" | null;
139
+ }, {
140
+ input: "object" | "void";
141
+ account: "optional" | "none" | "required";
142
+ actor: "optional" | "none" | "required";
143
+ roles: string[];
144
+ credential_types: string[];
145
+ method: string;
146
+ side_effects: boolean;
147
+ rate_limit: "account" | "ip" | "both" | null;
148
+ }, "object", {
149
+ /** RPC method name (`spec.method`). */
150
+ method: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
151
+ /**
152
+ * `'void'` when the input is a void schema (`is_void_schema`: `z.void()`
153
+ * or fuz_schema `s.void`, a parameterless method), else `'object'` — the
154
+ * Rust spine's declared `InputShape`, which its dispatcher enforces. A `z.strictObject({})` input is `'object'`.
155
+ */
156
+ input: import("@fuzdev/fuz_schema/schema.ts").Schema<"object" | "void", "object" | "void", "one_of", readonly ["void", "object"]>;
157
+ /** `true` when the action declares `side_effects` (mutation; POST-only on the RPC transport). */
158
+ side_effects: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
159
+ /** The `account` auth axis. */
160
+ account: import("@fuzdev/fuz_schema/schema.ts").Schema<"optional" | "none" | "required", "optional" | "none" | "required", "one_of", readonly ["none", "optional", "required"]>;
161
+ /** The `actor` auth axis. */
162
+ actor: import("@fuzdev/fuz_schema/schema.ts").Schema<"optional" | "none" | "required", "optional" | "none" | "required", "one_of", readonly ["none", "optional", "required"]>;
163
+ /** Required roles (any-of), sorted; `[]` when the action declares no role gate. */
164
+ roles: import("@fuzdev/fuz_schema/schema.ts").Schema<string[], string[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
165
+ /** Permitted credential channels, sorted; `[]` when ungated (any credential). */
166
+ credential_types: import("@fuzdev/fuz_schema/schema.ts").Schema<string[], string[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>;
167
+ /** Per-action rate-limit class, or `null` when the action declares none. */
168
+ rate_limit: import("@fuzdev/fuz_schema/schema.ts").Schema<"account" | "ip" | "both" | null, "account" | "ip" | "both" | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<"account" | "ip" | "both", "account" | "ip" | "both", "one_of", readonly ["ip", "account", "both"]>>>;
169
+ }>>;
170
+ }>;
171
+ export type ActionManifest = Infer<typeof ActionManifest>;
102
172
  /**
103
173
  * Normalize one spec's input shape + auth + side-effects into a manifest
104
174
  * entry. Reads the input shape off `is_void_schema(spec.input)`, pulls the
@@ -1 +1 @@
1
- {"version":3,"file":"action_manifest.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/action_manifest.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;A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dev_env.js';
30
30
  *
31
31
  * @module
32
32
  */
33
- import { z } from 'zod';
33
+ import { array, boolean, nullable, object, one_of, string } from '@fuzdev/fuz_schema/schema.ts';
34
34
  import { AuthAxisState } from '../../http/auth_shape.js';
35
- import { RateLimitKey } from '../../http/error_schemas.js';
35
+ import { RateLimitKey } from '../../rate_limiter.js';
36
36
  import { is_void_schema } from '../../http/schema_helpers.js';
37
37
  /**
38
38
  * One method's normalized RPC metadata — the cross-impl-comparable unit.
@@ -43,31 +43,31 @@ import { is_void_schema } from '../../http/schema_helpers.js';
43
43
  * nullable rather than optional for the same reason — an unthrottled action
44
44
  * serializes an explicit `null`, so a missing key is drift, not a default.
45
45
  */
46
- export const ActionManifestEntry = z.strictObject({
46
+ export const ActionManifestEntry = object({
47
47
  /** RPC method name (`spec.method`). */
48
- method: z.string(),
48
+ method: string,
49
49
  /**
50
50
  * `'void'` when the input is a void schema (`is_void_schema`: `z.void()`
51
51
  * or fuz_schema `s.void`, a parameterless method), else `'object'` — the
52
52
  * Rust spine's declared `InputShape`, which its dispatcher enforces. A `z.strictObject({})` input is `'object'`.
53
53
  */
54
- input: z.enum(['void', 'object']),
54
+ input: one_of(['void', 'object']),
55
55
  /** `true` when the action declares `side_effects` (mutation; POST-only on the RPC transport). */
56
- side_effects: z.boolean(),
56
+ side_effects: boolean,
57
57
  /** The `account` auth axis. */
58
58
  account: AuthAxisState,
59
59
  /** The `actor` auth axis. */
60
60
  actor: AuthAxisState,
61
61
  /** Required roles (any-of), sorted; `[]` when the action declares no role gate. */
62
- roles: z.array(z.string()),
62
+ roles: array(string),
63
63
  /** Permitted credential channels, sorted; `[]` when ungated (any credential). */
64
- credential_types: z.array(z.string()),
64
+ credential_types: array(string),
65
65
  /** Per-action rate-limit class, or `null` when the action declares none. */
66
- rate_limit: RateLimitKey.nullable()
66
+ rate_limit: nullable(RateLimitKey)
67
67
  });
68
68
  /** The full action manifest — every entry, sorted by `method`. */
69
- export const ActionManifest = z.strictObject({
70
- methods: z.array(ActionManifestEntry)
69
+ export const ActionManifest = object({
70
+ methods: array(ActionManifestEntry)
71
71
  });
72
72
  /** Sorted copy of a readonly string list (stable cross-impl ordering). */
73
73
  const sorted_strings = (xs) => [...(xs ?? [])].sort();
@@ -26,7 +26,7 @@ import '../assert_dev_env.js';
26
26
  *
27
27
  * @module
28
28
  */
29
- import type { RateLimitKey } from '../../http/error_schemas.js';
29
+ import type { RateLimitKey } from '../../rate_limiter.js';
30
30
  import type { ActionManifest, ActionManifestEntry } from './action_manifest.js';
31
31
  /** Structured drift entry. `where` is the named source impl ('a' or 'b'). */
32
32
  export type ActionManifestDiff = {
@@ -1 +1 @@
1
- {"version":3,"file":"action_manifest_parity.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/action_manifest_parity.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAWhF,6EAA6E;AAC7E,MAAM,MAAM,kBAAkB,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,GAAG,GAAG,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACvF;IACA,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACzC,QAAQ,CAAC,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;CACxC,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC;CACnB,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CAC/B,GACD;IACA,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,kBAAkB,CAAC;IACnE,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAML;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GACjC,GAAG,cAAc,EACjB,GAAG,cAAc,KACf,KAAK,CAAC,kBAAkB,CAqC1B,CAAC;AAEF,qEAAqE;AACrE,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACxC,OAAO,aAAa,CAAC,kBAAkB,CAAC,EACxC,SAAQ,wBAA6B,KACnC,MAwCF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,GACzC,GAAG,cAAc,EACjB,GAAG,cAAc,EACjB,SAAQ,wBAA6B,KACnC,IAUF,CAAC"}
1
+ {"version":3,"file":"action_manifest_parity.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/action_manifest_parity.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;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CACnB,CAAC;AAML;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GACjC,GAAG,cAAc,EACjB,GAAG,cAAc,KACf,KAAK,CAAC,kBAAkB,CAqC1B,CAAC;AAEF,qEAAqE;AACrE,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACxC,OAAO,aAAa,CAAC,kBAAkB,CAAC,EACxC,SAAQ,wBAA6B,KACnC,MAwCF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,GACzC,GAAG,cAAc,EACjB,GAAG,cAAc,EACjB,SAAQ,wBAA6B,KACnC,IAUF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"cell_crud.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_crud.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA2E9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AA4D1E,eAAO,MAAM,8BAA8B,GAC1C,SAAS,uCAAuC,KAC9C,IA4uBF,CAAC"}
1
+ {"version":3,"file":"cell_crud.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cell_crud.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA4E9B,OAAO,KAAK,EAAE,uCAAuC,EAAE,MAAM,YAAY,CAAC;AAyD1E,eAAO,MAAM,8BAA8B,GAC1C,SAAS,uCAAuC,KAC9C,IA4uBF,CAAC"}