@fuzdev/fuz_app 0.163.0 → 0.165.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 (199) 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 +1 -1
  8. package/dist/auth/account_route_schema.d.ts +3 -27
  9. package/dist/auth/account_route_schema.d.ts.map +1 -1
  10. package/dist/auth/account_route_schema.js +6 -20
  11. package/dist/auth/admin_action_specs.d.ts +56 -56
  12. package/dist/auth/audit_log_route_schema.d.ts +1 -1
  13. package/dist/auth/audit_log_route_schema.d.ts.map +1 -1
  14. package/dist/auth/audit_log_route_schema.js +4 -5
  15. package/dist/auth/audit_log_schema.d.ts +18 -18
  16. package/dist/auth/bootstrap_route_schema.d.ts +1 -30
  17. package/dist/auth/bootstrap_route_schema.d.ts.map +1 -1
  18. package/dist/auth/bootstrap_route_schema.js +3 -8
  19. package/dist/auth/daemon_token.d.ts +4 -4
  20. package/dist/auth/daemon_token.d.ts.map +1 -1
  21. package/dist/auth/daemon_token.js +3 -3
  22. package/dist/auth/daemon_token_middleware.d.ts +1 -1
  23. package/dist/auth/daemon_token_middleware.d.ts.map +1 -1
  24. package/dist/auth/daemon_token_middleware.js +5 -5
  25. package/dist/auth/middleware.js +4 -4
  26. package/dist/auth/role_grant_offer_action_specs.d.ts +2 -2
  27. package/dist/auth/signup_route_schema.d.ts.map +1 -1
  28. package/dist/auth/signup_route_schema.js +3 -7
  29. package/dist/db/CLAUDE.md +2 -1
  30. package/dist/db/file_fact_url.d.ts +11 -6
  31. package/dist/db/file_fact_url.d.ts.map +1 -1
  32. package/dist/db/file_fact_url.js +5 -5
  33. package/dist/db/schema_ready.d.ts +0 -5
  34. package/dist/db/schema_ready.d.ts.map +1 -1
  35. package/dist/db/schema_ready.js +0 -5
  36. package/dist/http/CLAUDE.md +105 -71
  37. package/dist/http/auth_shape.d.ts +48 -29
  38. package/dist/http/auth_shape.d.ts.map +1 -1
  39. package/dist/http/auth_shape.js +12 -85
  40. package/dist/http/body_limit.d.ts +12 -0
  41. package/dist/http/body_limit.d.ts.map +1 -1
  42. package/dist/http/body_limit.js +15 -0
  43. package/dist/http/body_limit_schema.d.ts +20 -0
  44. package/dist/http/body_limit_schema.d.ts.map +1 -0
  45. package/dist/http/body_limit_schema.js +20 -0
  46. package/dist/http/common_routes.d.ts +1 -1
  47. package/dist/http/common_routes.d.ts.map +1 -1
  48. package/dist/http/common_routes.js +11 -14
  49. package/dist/http/db_routes.d.ts.map +1 -1
  50. package/dist/http/db_routes.js +59 -69
  51. package/dist/http/dev_route_error_check.d.ts +70 -0
  52. package/dist/http/dev_route_error_check.d.ts.map +1 -0
  53. package/dist/http/dev_route_error_check.js +119 -0
  54. package/dist/http/error_schemas.d.ts +365 -189
  55. package/dist/http/error_schemas.d.ts.map +1 -1
  56. package/dist/http/error_schemas.js +256 -149
  57. package/dist/http/health_schema.d.ts +10 -6
  58. package/dist/http/health_schema.d.ts.map +1 -1
  59. package/dist/http/health_schema.js +3 -3
  60. package/dist/http/middleware_spec.d.ts +8 -3
  61. package/dist/http/middleware_spec.d.ts.map +1 -1
  62. package/dist/http/origin.d.ts +12 -43
  63. package/dist/http/origin.d.ts.map +1 -1
  64. package/dist/http/origin.js +10 -6
  65. package/dist/http/route_error_check.d.ts +179 -0
  66. package/dist/http/route_error_check.d.ts.map +1 -0
  67. package/dist/http/route_error_check.js +283 -0
  68. package/dist/http/route_errors.d.ts +80 -0
  69. package/dist/http/route_errors.d.ts.map +1 -0
  70. package/dist/http/route_errors.js +83 -0
  71. package/dist/http/route_spec.d.ts +33 -17
  72. package/dist/http/route_spec.d.ts.map +1 -1
  73. package/dist/http/route_spec.js +48 -62
  74. package/dist/http/schema_helpers.d.ts +15 -34
  75. package/dist/http/schema_helpers.d.ts.map +1 -1
  76. package/dist/http/schema_helpers.js +11 -47
  77. package/dist/http/surface.d.ts +19 -12
  78. package/dist/http/surface.d.ts.map +1 -1
  79. package/dist/http/surface.js +25 -38
  80. package/dist/http/surface_query.d.ts +11 -2
  81. package/dist/http/surface_query.d.ts.map +1 -1
  82. package/dist/http/surface_query.js +7 -1
  83. package/dist/primitive_schemas_fuz.d.ts +17 -3
  84. package/dist/primitive_schemas_fuz.d.ts.map +1 -1
  85. package/dist/primitive_schemas_fuz.js +13 -3
  86. package/dist/rate_limiter.d.ts +13 -0
  87. package/dist/rate_limiter.d.ts.map +1 -1
  88. package/dist/rate_limiter.js +20 -2
  89. package/dist/schema_issues.d.ts +29 -11
  90. package/dist/schema_issues.d.ts.map +1 -1
  91. package/dist/schema_issues.js +11 -10
  92. package/dist/schema_meta.d.ts +8 -1
  93. package/dist/schema_meta.d.ts.map +1 -1
  94. package/dist/schema_meta.js +2 -1
  95. package/dist/server/app_server.d.ts +3 -1
  96. package/dist/server/app_server.d.ts.map +1 -1
  97. package/dist/server/app_server.js +24 -10
  98. package/dist/server/serve_fact_route.d.ts.map +1 -1
  99. package/dist/server/serve_fact_route.js +8 -31
  100. package/dist/server/surface_route.d.ts.map +1 -1
  101. package/dist/server/surface_route.js +5 -6
  102. package/dist/server/x_accel.d.ts +12 -7
  103. package/dist/server/x_accel.d.ts.map +1 -1
  104. package/dist/server/x_accel.js +7 -9
  105. package/dist/testing/CLAUDE.md +105 -61
  106. package/dist/testing/admin_integration.js +2 -2
  107. package/dist/testing/adversarial_404.d.ts +4 -18
  108. package/dist/testing/adversarial_404.d.ts.map +1 -1
  109. package/dist/testing/adversarial_404.js +20 -52
  110. package/dist/testing/adversarial_headers.d.ts +3 -4
  111. package/dist/testing/adversarial_headers.d.ts.map +1 -1
  112. package/dist/testing/adversarial_headers.js +8 -6
  113. package/dist/testing/adversarial_input.d.ts.map +1 -1
  114. package/dist/testing/adversarial_input.js +20 -19
  115. package/dist/testing/assertions.d.ts +46 -14
  116. package/dist/testing/assertions.d.ts.map +1 -1
  117. package/dist/testing/assertions.js +73 -16
  118. package/dist/testing/attack_surface.d.ts +17 -35
  119. package/dist/testing/attack_surface.d.ts.map +1 -1
  120. package/dist/testing/attack_surface.js +36 -95
  121. package/dist/testing/auth_apps.d.ts.map +1 -1
  122. package/dist/testing/auth_apps.js +2 -1
  123. package/dist/testing/cross_backend/action_manifest.d.ts +126 -56
  124. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  125. package/dist/testing/cross_backend/action_manifest.js +11 -11
  126. package/dist/testing/cross_backend/action_manifest_parity.d.ts +1 -1
  127. package/dist/testing/cross_backend/action_manifest_parity.d.ts.map +1 -1
  128. package/dist/testing/cross_backend/cell_crud.d.ts.map +1 -1
  129. package/dist/testing/cross_backend/cell_crud.js +2 -1
  130. package/dist/testing/cross_backend/conformance_table.js +1 -1
  131. package/dist/testing/cross_backend/fact_serving.js +3 -3
  132. package/dist/testing/cross_backend/in_process_setup.d.ts +7 -3
  133. package/dist/testing/cross_backend/in_process_setup.d.ts.map +1 -1
  134. package/dist/testing/cross_backend/in_process_setup.js +11 -4
  135. package/dist/testing/cross_backend/origin_conformance.d.ts +278 -102
  136. package/dist/testing/cross_backend/origin_conformance.d.ts.map +1 -1
  137. package/dist/testing/cross_backend/origin_conformance.js +21 -21
  138. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts.map +1 -1
  139. package/dist/testing/cross_backend/rust_spine_consumer_surface.js +7 -1
  140. package/dist/testing/cross_backend/setup.d.ts +13 -0
  141. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  142. package/dist/testing/cross_backend/setup.js +24 -7
  143. package/dist/testing/cross_backend/spine_suites.d.ts +3 -2
  144. package/dist/testing/cross_backend/spine_suites.d.ts.map +1 -1
  145. package/dist/testing/cross_backend/spine_suites.js +5 -2
  146. package/dist/testing/cross_backend/standard.d.ts +31 -0
  147. package/dist/testing/cross_backend/standard.d.ts.map +1 -1
  148. package/dist/testing/cross_backend/standard.js +9 -3
  149. package/dist/testing/cross_backend/testing_origin_check.d.ts +147 -71
  150. package/dist/testing/cross_backend/testing_origin_check.d.ts.map +1 -1
  151. package/dist/testing/cross_backend/testing_origin_check.js +16 -13
  152. package/dist/testing/cross_backend/testing_reset_actions.d.ts +70 -27
  153. package/dist/testing/cross_backend/testing_reset_actions.d.ts.map +1 -1
  154. package/dist/testing/data_exposure.d.ts +7 -0
  155. package/dist/testing/data_exposure.d.ts.map +1 -1
  156. package/dist/testing/data_exposure.js +8 -7
  157. package/dist/testing/error_coverage.d.ts +53 -61
  158. package/dist/testing/error_coverage.d.ts.map +1 -1
  159. package/dist/testing/error_coverage.js +86 -119
  160. package/dist/testing/integration.d.ts +28 -1
  161. package/dist/testing/integration.d.ts.map +1 -1
  162. package/dist/testing/integration.js +54 -29
  163. package/dist/testing/integration_helpers.d.ts +37 -9
  164. package/dist/testing/integration_helpers.d.ts.map +1 -1
  165. package/dist/testing/integration_helpers.js +75 -40
  166. package/dist/testing/middleware.d.ts +3 -5
  167. package/dist/testing/middleware.d.ts.map +1 -1
  168. package/dist/testing/middleware.js +5 -4
  169. package/dist/testing/middleware_gate_probes.d.ts +90 -0
  170. package/dist/testing/middleware_gate_probes.d.ts.map +1 -0
  171. package/dist/testing/middleware_gate_probes.js +179 -0
  172. package/dist/testing/rate_limiting.d.ts +1 -1
  173. package/dist/testing/rate_limiting.d.ts.map +1 -1
  174. package/dist/testing/rate_limiting.js +5 -4
  175. package/dist/testing/round_trip.d.ts +7 -0
  176. package/dist/testing/round_trip.d.ts.map +1 -1
  177. package/dist/testing/round_trip.js +8 -5
  178. package/dist/testing/schema_generators.d.ts +40 -11
  179. package/dist/testing/schema_generators.d.ts.map +1 -1
  180. package/dist/testing/schema_generators.js +71 -17
  181. package/dist/testing/stubs.d.ts +10 -1
  182. package/dist/testing/stubs.d.ts.map +1 -1
  183. package/dist/testing/stubs.js +15 -5
  184. package/dist/testing/surface_invariants.d.ts +36 -115
  185. package/dist/testing/surface_invariants.d.ts.map +1 -1
  186. package/dist/testing/surface_invariants.js +106 -269
  187. package/dist/testing/transports/raw_http.d.ts +10 -2
  188. package/dist/testing/transports/raw_http.d.ts.map +1 -1
  189. package/dist/testing/transports/raw_http.js +10 -4
  190. package/dist/ui/CLAUDE.md +4 -2
  191. package/dist/ui/auth_state.svelte.d.ts.map +1 -1
  192. package/dist/ui/auth_state.svelte.js +2 -8
  193. package/dist/ui/backend_probe.svelte.js +3 -3
  194. package/dist/ui/table_state.svelte.d.ts.map +1 -1
  195. package/dist/ui/table_state.svelte.js +1 -8
  196. package/dist/ui/ui_fetch.d.ts +12 -2
  197. package/dist/ui/ui_fetch.d.ts.map +1 -1
  198. package/dist/ui/ui_fetch.js +22 -4
  199. package/package.json +1 -1
@@ -115,9 +115,11 @@ export interface DefaultInProcessSuiteOptions {
115
115
  * Build the full in-process suite bundle in a single helper invocation.
116
116
  * Output covers `{setup_test, surface_source, capabilities}` plus every
117
117
  * factory input the Tier 1 suites read at their top level
118
- * (`session_options`, `create_route_specs`, `rpc_endpoints`) — so the
119
- * call site spreads once and adds only suite-specific extras
120
- * (`roles`, `skip_routes`, `input_overrides`, `db_factories`, ...).
118
+ * (`session_options`, `create_route_specs`, `rpc_endpoints`), and the
119
+ * integration suite's `base_url` (`null`, no socket) and `max_body_bytes`
120
+ * (`app_options.max_body_size`) — so the call site spreads once and adds
121
+ * only suite-specific extras (`roles`, `skip_routes`, `input_overrides`,
122
+ * `db_factories`, ...).
121
123
  *
122
124
  * ```ts
123
125
  * // Suite-extras-free call: helper output is the entire options bag.
@@ -149,5 +151,7 @@ export declare const default_in_process_suite_options: <const O extends DefaultI
149
151
  session_options: O["session_options"];
150
152
  create_route_specs: O["create_route_specs"];
151
153
  rpc_endpoints: O["rpc_endpoints"];
154
+ base_url: null;
155
+ max_body_bytes: number | undefined;
152
156
  };
153
157
  //# sourceMappingURL=in_process_setup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"in_process_setup.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/in_process_setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAIN,KAAK,oBAAoB,EACzB,KAAK,eAAe,EAEpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAGN,KAAK,uBAAuB,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,OAAO,EAGN,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,MAAM,YAAY,CAAC;AAepB;;;;;GAKG;AACH,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IAClE;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC1D;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C;;;OAGG;IACH,QAAQ,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CACtD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB,GACnC,SAAS,qBAAqB,KAAG,SAuEjC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC5C,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxC,kBAAkB,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACrC;;;OAGG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,gCAAgC,GAAI,KAAK,CAAC,CAAC,SAAS,4BAA4B,EAC5F,SAAS,CAAC,KACR;IACF,UAAU,EAAE,SAAS,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,mBAAmB,CAAC;IAClC,eAAe,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC;CA+BjC,CAAC"}
1
+ {"version":3,"file":"in_process_setup.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/in_process_setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqB9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAGnE,OAAO,EAIN,KAAK,oBAAoB,EACzB,KAAK,eAAe,EAEpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAGN,KAAK,uBAAuB,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,OAAO,EAGN,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,MAAM,YAAY,CAAC;AAepB;;;;;GAKG;AACH,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IAClE;;;;;OAKG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAC1D;;;;;OAKG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C;;;OAGG;IACH,QAAQ,CAAC,kCAAkC,CAAC,EAAE,OAAO,CAAC;CACtD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,wBAAwB,GACnC,SAAS,qBAAqB,KAAG,SAuEjC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,WAAW,4BAA4B;IAC5C,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACxC,kBAAkB,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IAChE,aAAa,CAAC,EAAE,uBAAuB,CAAC;IACxC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACrC;;;OAGG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAC7C;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CAChC;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,gCAAgC,GAAI,KAAK,CAAC,CAAC,SAAS,4BAA4B,EAC5F,SAAS,CAAC,KACR;IACF,UAAU,EAAE,SAAS,CAAC;IACtB,cAAc,EAAE,cAAc,CAAC;IAC/B,YAAY,EAAE,mBAAmB,CAAC;IAClC,eAAe,EAAE,CAAC,CAAC,iBAAiB,CAAC,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,oBAAoB,CAAC,CAAC;IAC5C,aAAa,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC;IAClC,QAAQ,EAAE,IAAI,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CAoClC,CAAC"}
@@ -113,9 +113,11 @@ export const default_in_process_setup = (options) => async () => {
113
113
  * Build the full in-process suite bundle in a single helper invocation.
114
114
  * Output covers `{setup_test, surface_source, capabilities}` plus every
115
115
  * factory input the Tier 1 suites read at their top level
116
- * (`session_options`, `create_route_specs`, `rpc_endpoints`) — so the
117
- * call site spreads once and adds only suite-specific extras
118
- * (`roles`, `skip_routes`, `input_overrides`, `db_factories`, ...).
116
+ * (`session_options`, `create_route_specs`, `rpc_endpoints`), and the
117
+ * integration suite's `base_url` (`null`, no socket) and `max_body_bytes`
118
+ * (`app_options.max_body_size`) — so the call site spreads once and adds
119
+ * only suite-specific extras (`roles`, `skip_routes`, `input_overrides`,
120
+ * `db_factories`, ...).
119
121
  *
120
122
  * ```ts
121
123
  * // Suite-extras-free call: helper output is the entire options bag.
@@ -162,11 +164,16 @@ export const default_in_process_suite_options = (options) => ({
162
164
  // and live app stay in sync by construction.
163
165
  bootstrap: options.bootstrap,
164
166
  surface_route: options.app_options?.surface_route,
167
+ max_body_size: options.app_options?.max_body_size,
168
+ origin_carve_outs: options.app_options?.origin_carve_outs,
165
169
  // `create_test_app` always passes a `daemon_token_state`
166
170
  daemon_token: true
167
171
  }),
168
172
  capabilities: in_process_capabilities,
169
173
  session_options: options.session_options,
170
174
  create_route_specs: options.create_route_specs,
171
- rpc_endpoints: options.rpc_endpoints
175
+ rpc_endpoints: options.rpc_endpoints,
176
+ // in-process: no socket, and the limit `create_app_server` mounts
177
+ base_url: null,
178
+ max_body_bytes: options.app_options?.max_body_size ?? undefined
172
179
  });
@@ -1,111 +1,287 @@
1
1
  import '../assert_dev_env.js';
2
- import { z } from 'zod';
2
+ import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
3
3
  import type { RpcPathCrossSuiteOptions } from './setup.js';
4
4
  import { TestingOriginCheckOutput, type TestingOriginCheckInput } from './testing_origin_check.js';
5
5
  /** One expected refusal of a parse row. */
6
- export declare const OriginConformanceError: z.ZodObject<{
7
- index: z.ZodOptional<z.ZodNumber>;
8
- kind: z.ZodEnum<{
9
- empty_entry: "empty_entry";
10
- not_printable_ascii: "not_printable_ascii";
11
- missing_scheme: "missing_scheme";
12
- unsupported_scheme: "unsupported_scheme";
13
- has_path: "has_path";
14
- has_userinfo: "has_userinfo";
15
- missing_host: "missing_host";
16
- invalid_host_char: "invalid_host_char";
17
- unbracketed_ipv6: "unbracketed_ipv6";
18
- partial_wildcard: "partial_wildcard";
19
- non_canonical_ipv4: "non_canonical_ipv4";
20
- unclosed_ipv6: "unclosed_ipv6";
21
- invalid_ipv6: "invalid_ipv6";
22
- invalid_after_ipv6: "invalid_after_ipv6";
23
- invalid_port: "invalid_port";
24
- default_port: "default_port";
25
- no_origins: "no_origins";
26
- }>;
27
- }, z.core.$strict>;
28
- export type OriginConformanceError = z.infer<typeof OriginConformanceError>;
6
+ export declare const OriginConformanceError: import("@fuzdev/fuz_schema/schema.ts").Schema<{
7
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
8
+ index?: number | undefined;
9
+ }, {
10
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
11
+ index?: number | undefined;
12
+ }, "object", {
13
+ index: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>>;
14
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins", "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins", "one_of", readonly ["no_origins", "empty_entry", "not_printable_ascii", "missing_scheme", "unsupported_scheme", "has_path", "has_userinfo", "missing_host", "invalid_host_char", "unbracketed_ipv6", "partial_wildcard", "non_canonical_ipv4", "unclosed_ipv6", "invalid_ipv6", "invalid_after_ipv6", "invalid_port", "default_port"]>;
15
+ }>;
16
+ export type OriginConformanceError = Infer<typeof OriginConformanceError>;
29
17
  /** A parse row: the value parses (`ok: true`), or is refused with `errors`. */
30
- export declare const OriginConformanceParseRow: z.ZodUnion<readonly [z.ZodObject<{
31
- raw: z.ZodString;
32
- ok: z.ZodLiteral<true>;
33
- note: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strict>, z.ZodObject<{
35
- raw: z.ZodString;
36
- errors: z.ZodArray<z.ZodObject<{
37
- index: z.ZodOptional<z.ZodNumber>;
38
- kind: z.ZodEnum<{
39
- empty_entry: "empty_entry";
40
- not_printable_ascii: "not_printable_ascii";
41
- missing_scheme: "missing_scheme";
42
- unsupported_scheme: "unsupported_scheme";
43
- has_path: "has_path";
44
- has_userinfo: "has_userinfo";
45
- missing_host: "missing_host";
46
- invalid_host_char: "invalid_host_char";
47
- unbracketed_ipv6: "unbracketed_ipv6";
48
- partial_wildcard: "partial_wildcard";
49
- non_canonical_ipv4: "non_canonical_ipv4";
50
- unclosed_ipv6: "unclosed_ipv6";
51
- invalid_ipv6: "invalid_ipv6";
52
- invalid_after_ipv6: "invalid_after_ipv6";
53
- invalid_port: "invalid_port";
54
- default_port: "default_port";
55
- no_origins: "no_origins";
56
- }>;
57
- }, z.core.$strict>>;
58
- note: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strict>]>;
60
- export type OriginConformanceParseRow = z.infer<typeof OriginConformanceParseRow>;
18
+ export declare const OriginConformanceParseRow: import("@fuzdev/fuz_schema/schema.ts").Schema<{
19
+ ok: true;
20
+ raw: string;
21
+ note?: string | undefined;
22
+ } | {
23
+ errors: {
24
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
25
+ index?: number | undefined;
26
+ }[];
27
+ raw: string;
28
+ note?: string | undefined;
29
+ }, {
30
+ ok: true;
31
+ raw: string;
32
+ note?: string | undefined;
33
+ } | {
34
+ errors: {
35
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
36
+ index?: number | undefined;
37
+ }[];
38
+ raw: string;
39
+ note?: string | undefined;
40
+ }, "union", readonly [import("@fuzdev/fuz_schema/schema.ts").Schema<{
41
+ ok: true;
42
+ raw: string;
43
+ note?: string | undefined;
44
+ }, {
45
+ ok: true;
46
+ raw: string;
47
+ note?: string | undefined;
48
+ }, "object", {
49
+ raw: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
50
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
51
+ note: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
52
+ }>, import("@fuzdev/fuz_schema/schema.ts").Schema<{
53
+ errors: {
54
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
55
+ index?: number | undefined;
56
+ }[];
57
+ raw: string;
58
+ note?: string | undefined;
59
+ }, {
60
+ errors: {
61
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
62
+ index?: number | undefined;
63
+ }[];
64
+ raw: string;
65
+ note?: string | undefined;
66
+ }, "object", {
67
+ raw: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
68
+ errors: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<{
69
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
70
+ index?: number | undefined;
71
+ }[], import("@fuzdev/fuz_schema/schema.ts").Schema<{
72
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
73
+ index?: number | undefined;
74
+ }[], {
75
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
76
+ index?: number | undefined;
77
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
78
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
79
+ index?: number | undefined;
80
+ }, {
81
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
82
+ index?: number | undefined;
83
+ }, "object", {
84
+ index: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>>;
85
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins", "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins", "one_of", readonly ["no_origins", "empty_entry", "not_printable_ascii", "missing_scheme", "unsupported_scheme", "has_path", "has_userinfo", "missing_host", "invalid_host_char", "unbracketed_ipv6", "partial_wildcard", "non_canonical_ipv4", "unclosed_ipv6", "invalid_ipv6", "invalid_after_ipv6", "invalid_port", "default_port"]>;
86
+ }>>>;
87
+ note: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
88
+ }>]>;
89
+ export type OriginConformanceParseRow = Infer<typeof OriginConformanceParseRow>;
61
90
  /** A match row: a valid allowlist, one `Origin` value or `null`, and the answer. */
62
- export declare const OriginConformanceMatchRow: z.ZodObject<{
63
- patterns: z.ZodString;
64
- origin: z.ZodNullable<z.ZodString>;
65
- allowed: z.ZodBoolean;
66
- note: z.ZodOptional<z.ZodString>;
67
- }, z.core.$strict>;
68
- export type OriginConformanceMatchRow = z.infer<typeof OriginConformanceMatchRow>;
69
- /** The conformance table. */
70
- export declare const OriginConformance: z.ZodObject<{
71
- parse: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
72
- raw: z.ZodString;
73
- ok: z.ZodLiteral<true>;
74
- note: z.ZodOptional<z.ZodString>;
75
- }, z.core.$strict>, z.ZodObject<{
76
- raw: z.ZodString;
77
- errors: z.ZodArray<z.ZodObject<{
78
- index: z.ZodOptional<z.ZodNumber>;
79
- kind: z.ZodEnum<{
80
- empty_entry: "empty_entry";
81
- not_printable_ascii: "not_printable_ascii";
82
- missing_scheme: "missing_scheme";
83
- unsupported_scheme: "unsupported_scheme";
84
- has_path: "has_path";
85
- has_userinfo: "has_userinfo";
86
- missing_host: "missing_host";
87
- invalid_host_char: "invalid_host_char";
88
- unbracketed_ipv6: "unbracketed_ipv6";
89
- partial_wildcard: "partial_wildcard";
90
- non_canonical_ipv4: "non_canonical_ipv4";
91
- unclosed_ipv6: "unclosed_ipv6";
92
- invalid_ipv6: "invalid_ipv6";
93
- invalid_after_ipv6: "invalid_after_ipv6";
94
- invalid_port: "invalid_port";
95
- default_port: "default_port";
96
- no_origins: "no_origins";
97
- }>;
98
- }, z.core.$strict>>;
99
- note: z.ZodOptional<z.ZodString>;
100
- }, z.core.$strict>]>>;
101
- match: z.ZodArray<z.ZodObject<{
102
- patterns: z.ZodString;
103
- origin: z.ZodNullable<z.ZodString>;
104
- allowed: z.ZodBoolean;
105
- note: z.ZodOptional<z.ZodString>;
106
- }, z.core.$strict>>;
107
- }, z.core.$strict>;
108
- export type OriginConformance = z.infer<typeof OriginConformance>;
91
+ export declare const OriginConformanceMatchRow: import("@fuzdev/fuz_schema/schema.ts").Schema<{
92
+ origin: string | null;
93
+ patterns: string;
94
+ allowed: boolean;
95
+ note?: string | undefined;
96
+ }, {
97
+ origin: string | null;
98
+ patterns: string;
99
+ allowed: boolean;
100
+ note?: string | undefined;
101
+ }, "object", {
102
+ patterns: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
103
+ origin: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
104
+ allowed: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
105
+ note: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
106
+ }>;
107
+ export type OriginConformanceMatchRow = Infer<typeof OriginConformanceMatchRow>;
108
+ /** The conformance table, a `@fuzdev/fuz_schema` `object`. */
109
+ export declare const OriginConformance: import("@fuzdev/fuz_schema/schema.ts").Schema<{
110
+ match: {
111
+ origin: string | null;
112
+ patterns: string;
113
+ allowed: boolean;
114
+ note?: string | undefined;
115
+ }[];
116
+ parse: ({
117
+ ok: true;
118
+ raw: string;
119
+ note?: string | undefined;
120
+ } | {
121
+ errors: {
122
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
123
+ index?: number | undefined;
124
+ }[];
125
+ raw: string;
126
+ note?: string | undefined;
127
+ })[];
128
+ }, {
129
+ match: {
130
+ origin: string | null;
131
+ patterns: string;
132
+ allowed: boolean;
133
+ note?: string | undefined;
134
+ }[];
135
+ parse: ({
136
+ ok: true;
137
+ raw: string;
138
+ note?: string | undefined;
139
+ } | {
140
+ errors: {
141
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
142
+ index?: number | undefined;
143
+ }[];
144
+ raw: string;
145
+ note?: string | undefined;
146
+ })[];
147
+ }, "object", {
148
+ parse: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<({
149
+ ok: true;
150
+ raw: string;
151
+ note?: string | undefined;
152
+ } | {
153
+ errors: {
154
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
155
+ index?: number | undefined;
156
+ }[];
157
+ raw: string;
158
+ note?: string | undefined;
159
+ })[], import("@fuzdev/fuz_schema/schema.ts").Schema<({
160
+ ok: true;
161
+ raw: string;
162
+ note?: string | undefined;
163
+ } | {
164
+ errors: {
165
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
166
+ index?: number | undefined;
167
+ }[];
168
+ raw: string;
169
+ note?: string | undefined;
170
+ })[], ({
171
+ ok: true;
172
+ raw: string;
173
+ note?: string | undefined;
174
+ } | {
175
+ errors: {
176
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
177
+ index?: number | undefined;
178
+ }[];
179
+ raw: string;
180
+ note?: string | undefined;
181
+ })[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
182
+ ok: true;
183
+ raw: string;
184
+ note?: string | undefined;
185
+ } | {
186
+ errors: {
187
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
188
+ index?: number | undefined;
189
+ }[];
190
+ raw: string;
191
+ note?: string | undefined;
192
+ }, {
193
+ ok: true;
194
+ raw: string;
195
+ note?: string | undefined;
196
+ } | {
197
+ errors: {
198
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
199
+ index?: number | undefined;
200
+ }[];
201
+ raw: string;
202
+ note?: string | undefined;
203
+ }, "union", readonly [import("@fuzdev/fuz_schema/schema.ts").Schema<{
204
+ ok: true;
205
+ raw: string;
206
+ note?: string | undefined;
207
+ }, {
208
+ ok: true;
209
+ raw: string;
210
+ note?: string | undefined;
211
+ }, "object", {
212
+ raw: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
213
+ ok: import("@fuzdev/fuz_schema/schema.ts").Schema<true, true, "literal", true>;
214
+ note: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
215
+ }>, import("@fuzdev/fuz_schema/schema.ts").Schema<{
216
+ errors: {
217
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
218
+ index?: number | undefined;
219
+ }[];
220
+ raw: string;
221
+ note?: string | undefined;
222
+ }, {
223
+ errors: {
224
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
225
+ index?: number | undefined;
226
+ }[];
227
+ raw: string;
228
+ note?: string | undefined;
229
+ }, "object", {
230
+ raw: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
231
+ errors: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<{
232
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
233
+ index?: number | undefined;
234
+ }[], import("@fuzdev/fuz_schema/schema.ts").Schema<{
235
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
236
+ index?: number | undefined;
237
+ }[], {
238
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
239
+ index?: number | undefined;
240
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
241
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
242
+ index?: number | undefined;
243
+ }, {
244
+ kind: "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins";
245
+ index?: number | undefined;
246
+ }, "object", {
247
+ index: import("@fuzdev/fuz_schema/schema.ts").Schema<number | undefined, number | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").PipeSchema<number, import("@fuzdev/fuz_schema/schema.ts").Schema<number, number, "number", undefined>>>>;
248
+ kind: import("@fuzdev/fuz_schema/schema.ts").Schema<"empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins", "empty_entry" | "not_printable_ascii" | "missing_scheme" | "unsupported_scheme" | "has_path" | "has_userinfo" | "missing_host" | "invalid_host_char" | "unbracketed_ipv6" | "partial_wildcard" | "non_canonical_ipv4" | "unclosed_ipv6" | "invalid_ipv6" | "invalid_after_ipv6" | "invalid_port" | "default_port" | "no_origins", "one_of", readonly ["no_origins", "empty_entry", "not_printable_ascii", "missing_scheme", "unsupported_scheme", "has_path", "has_userinfo", "missing_host", "invalid_host_char", "unbracketed_ipv6", "partial_wildcard", "non_canonical_ipv4", "unclosed_ipv6", "invalid_ipv6", "invalid_after_ipv6", "invalid_port", "default_port"]>;
249
+ }>>>;
250
+ note: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
251
+ }>]>>>;
252
+ match: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<{
253
+ origin: string | null;
254
+ patterns: string;
255
+ allowed: boolean;
256
+ note?: string | undefined;
257
+ }[], import("@fuzdev/fuz_schema/schema.ts").Schema<{
258
+ origin: string | null;
259
+ patterns: string;
260
+ allowed: boolean;
261
+ note?: string | undefined;
262
+ }[], {
263
+ origin: string | null;
264
+ patterns: string;
265
+ allowed: boolean;
266
+ note?: string | undefined;
267
+ }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
268
+ origin: string | null;
269
+ patterns: string;
270
+ allowed: boolean;
271
+ note?: string | undefined;
272
+ }, {
273
+ origin: string | null;
274
+ patterns: string;
275
+ allowed: boolean;
276
+ note?: string | undefined;
277
+ }, "object", {
278
+ patterns: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
279
+ origin: import("@fuzdev/fuz_schema/schema.ts").Schema<string | null, string | null, "nullable", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
280
+ allowed: import("@fuzdev/fuz_schema/schema.ts").Schema<boolean, boolean, "boolean", undefined>;
281
+ note: import("@fuzdev/fuz_schema/schema.ts").Schema<string | undefined, string | undefined, "optional", import("@fuzdev/fuz_schema/schema.ts").SchemaWrapperDef<import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>>>;
282
+ }>>>;
283
+ }>;
284
+ export type OriginConformance = Infer<typeof OriginConformance>;
109
285
  /** The committed table, resolved relative to this module. */
110
286
  export declare const ORIGIN_CONFORMANCE_URL: URL;
111
287
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"origin_conformance.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/origin_conformance.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0B9B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EACN,wBAAwB,EAExB,KAAK,uBAAuB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,2CAA2C;AAC3C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;kBAGjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAOpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB;;;;;kBAKpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,6BAA6B;AAC7B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAG5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,EAAE,GAA2D,CAAC;AAEjG;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAAO,iBACuC,CAAC;AAEnF,wDAAwD;AACxD,MAAM,WAAW,sBAAsB;IACtC,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;CAC5C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,GACxC,OAAO,iBAAiB,KACtB,KAAK,CAAC,sBAAsB,CAc9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACrC,QAAQ,aAAa,CAAC,sBAAsB,CAAC,EAC7C,QAAQ,aAAa,CAAC,OAAO,CAAC,EAC9B,SAAS,MAAM,KACb,IAiBF,CAAC;AAEF,6DAA6D;AAC7D,MAAM,MAAM,iCAAiC,GAAG,wBAAwB,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,iCAAiC,KACxC,IA4BF,CAAC"}
1
+ {"version":3,"file":"origin_conformance.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/origin_conformance.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0B9B,OAAO,EAgBN,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAItC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,OAAO,EACN,wBAAwB,EAExB,KAAK,uBAAuB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,2CAA2C;AAC3C,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE1E,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEhF,oFAAoF;AACpF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEhF,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhE,6DAA6D;AAC7D,eAAO,MAAM,sBAAsB,EAAE,GAA2D,CAAC;AAEjG;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAAO,iBACiD,CAAC;AAE7F,wDAAwD;AACxD,MAAM,WAAW,sBAAsB;IACtC,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;CAC5C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,GACxC,OAAO,iBAAiB,KACtB,KAAK,CAAC,sBAAsB,CAc9B,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,GACrC,QAAQ,aAAa,CAAC,sBAAsB,CAAC,EAC7C,QAAQ,aAAa,CAAC,OAAO,CAAC,EAC9B,SAAS,MAAM,KACb,IAiBF,CAAC;AAEF,6DAA6D;AAC7D,MAAM,MAAM,iCAAiC,GAAG,wBAAwB,CAAC;AAEzE;;;;;GAKG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,iCAAiC,KACxC,IA4BF,CAAC"}
@@ -22,36 +22,36 @@ import '../assert_dev_env.js';
22
22
  */
23
23
  import { readFileSync } from 'node:fs';
24
24
  import { assert, describe, test } from 'vitest';
25
- import { z } from 'zod';
25
+ import { array, boolean, literal, min_length, min_value, nullable, number, object, optional, parse, parse_or_throw, pipe, safe_integer, string, union } from '@fuzdev/fuz_schema/schema.ts';
26
26
  import { AllowedOriginsErrorKind } from '../../http/origin.js';
27
27
  import { cross_rpc_call } from './cross_rpc.js';
28
28
  import { SPINE_RPC_PATH } from './spine_surface_constants.js';
29
29
  import { TestingOriginCheckOutput, testing_origin_check_action_spec } from './testing_origin_check.js';
30
30
  /** One expected refusal of a parse row. */
31
- export const OriginConformanceError = z.strictObject({
32
- index: z.number().int().min(1).optional(),
31
+ export const OriginConformanceError = object({
32
+ index: optional(pipe(number, safe_integer, min_value(1))),
33
33
  kind: AllowedOriginsErrorKind
34
34
  });
35
35
  /** A parse row: the value parses (`ok: true`), or is refused with `errors`. */
36
- export const OriginConformanceParseRow = z.union([
37
- z.strictObject({ raw: z.string(), ok: z.literal(true), note: z.string().optional() }),
38
- z.strictObject({
39
- raw: z.string(),
40
- errors: z.array(OriginConformanceError).min(1),
41
- note: z.string().optional()
36
+ export const OriginConformanceParseRow = union([
37
+ object({ raw: string, ok: literal(true), note: optional(string) }),
38
+ object({
39
+ raw: string,
40
+ errors: pipe(array(OriginConformanceError), min_length(1)),
41
+ note: optional(string)
42
42
  })
43
43
  ]);
44
44
  /** A match row: a valid allowlist, one `Origin` value or `null`, and the answer. */
45
- export const OriginConformanceMatchRow = z.strictObject({
46
- patterns: z.string(),
47
- origin: z.string().nullable(),
48
- allowed: z.boolean(),
49
- note: z.string().optional()
45
+ export const OriginConformanceMatchRow = object({
46
+ patterns: string,
47
+ origin: nullable(string),
48
+ allowed: boolean,
49
+ note: optional(string)
50
50
  });
51
- /** The conformance table. */
52
- export const OriginConformance = z.strictObject({
53
- parse: z.array(OriginConformanceParseRow).min(1),
54
- match: z.array(OriginConformanceMatchRow).min(1)
51
+ /** The conformance table, a `@fuzdev/fuz_schema` `object`. */
52
+ export const OriginConformance = object({
53
+ parse: pipe(array(OriginConformanceParseRow), min_length(1)),
54
+ match: pipe(array(OriginConformanceMatchRow), min_length(1))
55
55
  });
56
56
  /** The committed table, resolved relative to this module. */
57
57
  export const ORIGIN_CONFORMANCE_URL = new URL('./origin_conformance.json', import.meta.url);
@@ -61,7 +61,7 @@ export const ORIGIN_CONFORMANCE_URL = new URL('./origin_conformance.json', impor
61
61
  * @returns the parsed table
62
62
  * @throws Error when the file doesn't match `OriginConformance`
63
63
  */
64
- export const load_origin_conformance = () => OriginConformance.parse(JSON.parse(readFileSync(ORIGIN_CONFORMANCE_URL, 'utf8')));
64
+ export const load_origin_conformance = () => parse_or_throw(OriginConformance, JSON.parse(readFileSync(ORIGIN_CONFORMANCE_URL, 'utf8')));
65
65
  /**
66
66
  * Flatten the table into action inputs and the answers they must get. A parse
67
67
  * row sends a `null` origin, so a value that parses answers
@@ -127,8 +127,8 @@ export const describe_origin_conformance_cross_tests = (options) => {
127
127
  for (const check of checks) {
128
128
  const res = await cross_rpc_call(transport, rpc_path, testing_origin_check_action_spec.method, check.input, headers);
129
129
  assert.ok(res.ok, `${check.label}: RPC failed: ${JSON.stringify(res.error)}`);
130
- const parsed = TestingOriginCheckOutput.safeParse(res.result);
131
- answers.push(parsed.success ? parsed.data : res.result);
130
+ const parsed = parse(TestingOriginCheckOutput, res.result);
131
+ answers.push(parsed.ok ? parsed.value : res.result);
132
132
  }
133
133
  assert_origin_conformance(checks, answers, 'backend');
134
134
  });
@@ -1 +1 @@
1
- {"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAMnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,wDAAyD,CAAC;AAU3F,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAChG,gEAAgE;IAChE,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACpD,SAAS,oCAAoC,KAC3C,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,eAAe,CAAC,CA+BpD,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,mCAAmC,KAC1C,cAeA,CAAC"}
1
+ {"version":3,"file":"rust_spine_consumer_surface.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rust_spine_consumer_surface.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAM/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOnE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAI3E;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,wDAAyD,CAAC;AAU3F,8DAA8D;AAC9D,MAAM,WAAW,oCAAoC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D;;;;OAIG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,SAAS,CAAC,CAAC;IACzE,yFAAyF;IACzF,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC;IAC9B;;;;;OAKG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjD,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,6DAA6D;AAC7D,MAAM,WAAW,mCAAoC,SAAQ,oCAAoC;IAChG,gEAAgE;IAChE,QAAQ,CAAC,eAAe,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD;;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,wCAAwC,GACpD,SAAS,oCAAoC,KAC3C,CAAC,CAAC,GAAG,EAAE,gBAAgB,KAAK,KAAK,CAAC,eAAe,CAAC,CA+BpD,CAAC;AAiCF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uCAAuC,GACnD,SAAS,mCAAmC,KAC1C,cAoBA,CAAC"}
@@ -4,6 +4,7 @@ import { account_status_route_shape, create_account_route_shapes } from '../../a
4
4
  import { create_signup_route_shape } from '../../auth/signup_route_schema.js';
5
5
  import { create_standard_rpc_actions } from '../../auth/standard_rpc_actions.js';
6
6
  import { create_health_route_spec } from '../../http/common_routes.js';
7
+ import { REST_FORBIDDEN_HOST } from '../../http/error_schemas.js';
7
8
  import { prefix_route_specs } from '../../http/route_spec.js';
8
9
  import { create_test_app_surface_spec, stub_handler, stub_mw } from '../stubs.js';
9
10
  import { SPINE_ACCOUNT_PATH_PREFIX, SPINE_RPC_PATH } from './spine_surface_constants.js';
@@ -106,7 +107,12 @@ export const create_rust_spine_consumer_surface_spec = (options) => create_test_
106
107
  daemon_token: true,
107
108
  transform_middleware: options.host_gate
108
109
  ? (specs) => [
109
- { name: 'host_validation', path: '*', handler: stub_mw },
110
+ {
111
+ name: 'host_validation',
112
+ path: '*',
113
+ handler: stub_mw,
114
+ errors: [REST_FORBIDDEN_HOST]
115
+ },
110
116
  ...specs
111
117
  ]
112
118
  : undefined