@fuzdev/fuz_app 0.169.0 → 0.171.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 (171) hide show
  1. package/dist/actions/CLAUDE.md +19 -21
  2. package/dist/actions/action_codegen.d.ts +27 -18
  3. package/dist/actions/action_codegen.d.ts.map +1 -1
  4. package/dist/actions/action_codegen.js +90 -90
  5. package/dist/actions/action_event.d.ts +0 -8
  6. package/dist/actions/action_event.d.ts.map +1 -1
  7. package/dist/actions/action_event.js +7 -6
  8. package/dist/actions/action_event_data.d.ts +4 -4
  9. package/dist/actions/action_rpc.d.ts +1 -1
  10. package/dist/actions/action_rpc.d.ts.map +1 -1
  11. package/dist/actions/action_rpc.js +6 -7
  12. package/dist/actions/action_spec.d.ts +8 -10
  13. package/dist/actions/action_spec.d.ts.map +1 -1
  14. package/dist/actions/action_spec.js +1 -1
  15. package/dist/actions/action_types.d.ts +4 -4
  16. package/dist/actions/action_types.d.ts.map +1 -1
  17. package/dist/actions/action_types.js +2 -2
  18. package/dist/actions/broadcast_api.d.ts +2 -2
  19. package/dist/actions/broadcast_api.js +4 -4
  20. package/dist/actions/compile_action_registry.d.ts +6 -7
  21. package/dist/actions/compile_action_registry.d.ts.map +1 -1
  22. package/dist/actions/compile_action_registry.js +8 -9
  23. package/dist/actions/peer_ping.d.ts.map +1 -1
  24. package/dist/actions/peer_ping.js +3 -2
  25. package/dist/actions/perform_action.d.ts +6 -6
  26. package/dist/actions/perform_action.d.ts.map +1 -1
  27. package/dist/actions/perform_action.js +11 -10
  28. package/dist/actions/socket.svelte.d.ts +1 -1
  29. package/dist/actions/socket.svelte.js +2 -2
  30. package/dist/actions/ws_socket_session.d.ts.map +1 -1
  31. package/dist/actions/ws_socket_session.js +2 -1
  32. package/dist/auth/CLAUDE.md +11 -11
  33. package/dist/auth/admin_action_specs.d.ts +24 -24
  34. package/dist/auth/audit_emitter.d.ts +6 -7
  35. package/dist/auth/audit_emitter.d.ts.map +1 -1
  36. package/dist/auth/audit_emitter.js +11 -22
  37. package/dist/auth/audit_log_ddl.d.ts +1 -1
  38. package/dist/auth/audit_log_ddl.js +1 -1
  39. package/dist/auth/audit_log_queries.d.ts +0 -13
  40. package/dist/auth/audit_log_queries.d.ts.map +1 -1
  41. package/dist/auth/audit_log_queries.js +3 -3
  42. package/dist/auth/audit_log_schema.d.ts +14 -15
  43. package/dist/auth/audit_log_schema.d.ts.map +1 -1
  44. package/dist/auth/audit_log_schema.js +1 -1
  45. package/dist/auth/auth_ddl.d.ts +1 -1
  46. package/dist/auth/auth_ddl.js +1 -1
  47. package/dist/auth/cell_action_specs.d.ts +54 -54
  48. package/dist/auth/cell_actions.d.ts +2 -2
  49. package/dist/auth/cell_actions.js +5 -5
  50. package/dist/auth/middleware.d.ts +6 -2
  51. package/dist/auth/middleware.d.ts.map +1 -1
  52. package/dist/auth/middleware.js +14 -2
  53. package/dist/auth/request_context.d.ts.map +1 -1
  54. package/dist/auth/request_context.js +7 -9
  55. package/dist/auth/role_grant_offer_action_specs.d.ts +6 -6
  56. package/dist/auth/role_grant_offer_ddl.d.ts +1 -1
  57. package/dist/auth/role_grant_offer_ddl.js +1 -1
  58. package/dist/auth/role_grant_offer_notifications.d.ts.map +1 -1
  59. package/dist/auth/role_grant_offer_notifications.js +2 -3
  60. package/dist/auth/self_service_role_actions.d.ts +1 -1
  61. package/dist/auth/self_service_role_actions.js +1 -1
  62. package/dist/env/env_schemas.d.ts +1 -2
  63. package/dist/env/env_schemas.d.ts.map +1 -1
  64. package/dist/env/env_schemas.js +3 -4
  65. package/dist/http/CLAUDE.md +30 -31
  66. package/dist/http/auth_shape.d.ts +14 -32
  67. package/dist/http/auth_shape.d.ts.map +1 -1
  68. package/dist/http/auth_shape.js +14 -49
  69. package/dist/http/error_schemas.d.ts +18 -18
  70. package/dist/http/json_text.d.ts +53 -0
  71. package/dist/http/json_text.d.ts.map +1 -0
  72. package/dist/http/json_text.js +152 -0
  73. package/dist/http/jsonrpc_helpers.js +1 -1
  74. package/dist/http/route_error_check.d.ts +2 -2
  75. package/dist/http/route_error_check.d.ts.map +1 -1
  76. package/dist/http/route_error_check.js +2 -3
  77. package/dist/http/route_errors.d.ts +4 -4
  78. package/dist/http/route_errors.d.ts.map +1 -1
  79. package/dist/http/route_errors.js +0 -13
  80. package/dist/http/route_result.d.ts +2 -1
  81. package/dist/http/route_result.d.ts.map +1 -1
  82. package/dist/http/route_spec.d.ts +34 -37
  83. package/dist/http/route_spec.d.ts.map +1 -1
  84. package/dist/http/route_spec.js +31 -31
  85. package/dist/http/schema_helpers.d.ts +77 -68
  86. package/dist/http/schema_helpers.d.ts.map +1 -1
  87. package/dist/http/schema_helpers.js +54 -77
  88. package/dist/http/surface.d.ts.map +1 -1
  89. package/dist/http/surface.js +6 -8
  90. package/dist/primitive_schemas.d.ts +9 -17
  91. package/dist/primitive_schemas.d.ts.map +1 -1
  92. package/dist/primitive_schemas.js +9 -17
  93. package/dist/realtime/sse.d.ts +3 -3
  94. package/dist/realtime/sse.d.ts.map +1 -1
  95. package/dist/realtime/sse.js +2 -2
  96. package/dist/schema_issues.d.ts +39 -147
  97. package/dist/schema_issues.d.ts.map +1 -1
  98. package/dist/schema_issues.js +39 -352
  99. package/dist/schema_meta.d.ts +63 -136
  100. package/dist/schema_meta.d.ts.map +1 -1
  101. package/dist/schema_meta.js +37 -184
  102. package/dist/sensitivity.d.ts +3 -5
  103. package/dist/sensitivity.d.ts.map +1 -1
  104. package/dist/sensitivity.js +3 -5
  105. package/dist/testing/CLAUDE.md +20 -22
  106. package/dist/testing/adversarial_headers.js +2 -2
  107. package/dist/testing/adversarial_input_cases.d.ts +19 -18
  108. package/dist/testing/adversarial_input_cases.d.ts.map +1 -1
  109. package/dist/testing/adversarial_input_cases.js +31 -46
  110. package/dist/testing/assertions.d.ts +2 -2
  111. package/dist/testing/assertions.d.ts.map +1 -1
  112. package/dist/testing/assertions.js +3 -3
  113. package/dist/testing/cross_backend/account_lifecycle.js +2 -2
  114. package/dist/testing/cross_backend/action_manifest.d.ts +10 -9
  115. package/dist/testing/cross_backend/action_manifest.d.ts.map +1 -1
  116. package/dist/testing/cross_backend/action_manifest.js +4 -3
  117. package/dist/testing/cross_backend/cell_crud.js +1 -1
  118. package/dist/testing/cross_backend/conformance_rpc_auth.d.ts +0 -62
  119. package/dist/testing/cross_backend/conformance_rpc_auth.d.ts.map +1 -1
  120. package/dist/testing/cross_backend/conformance_table.d.ts.map +1 -1
  121. package/dist/testing/cross_backend/conformance_table.js +3 -3
  122. package/dist/testing/cross_backend/cross_rpc.d.ts +3 -4
  123. package/dist/testing/cross_backend/cross_rpc.d.ts.map +1 -1
  124. package/dist/testing/cross_backend/cross_rpc.js +4 -4
  125. package/dist/testing/cross_backend/differential.js +2 -2
  126. package/dist/testing/cross_backend/identity_parity.d.ts.map +1 -1
  127. package/dist/testing/cross_backend/identity_parity.js +16 -11
  128. package/dist/testing/cross_backend/origin_conformance.d.ts +9 -9
  129. package/dist/testing/cross_backend/query_shape.js +1 -1
  130. package/dist/testing/cross_backend/rpc_success_fixtures.d.ts.map +1 -1
  131. package/dist/testing/cross_backend/rust_spine_consumer_surface.d.ts +1 -1
  132. package/dist/testing/cross_backend/setup.d.ts +25 -3
  133. package/dist/testing/cross_backend/setup.d.ts.map +1 -1
  134. package/dist/testing/cross_backend/setup.js +4 -4
  135. package/dist/testing/cross_backend/sse_round_trip.js +2 -2
  136. package/dist/testing/cross_backend/testing_origin_check.d.ts +4 -4
  137. package/dist/testing/cross_backend/token_lifetime.js +3 -3
  138. package/dist/testing/cross_backend/wire_shapes.js +1 -1
  139. package/dist/testing/cross_backend/ws_envelope.d.ts.map +1 -1
  140. package/dist/testing/cross_backend/ws_envelope.js +8 -0
  141. package/dist/testing/cross_backend/ws_round_trip.js +1 -1
  142. package/dist/testing/data_exposure.d.ts.map +1 -1
  143. package/dist/testing/data_exposure.js +1 -1
  144. package/dist/testing/integration.js +2 -2
  145. package/dist/testing/integration_helpers.d.ts.map +1 -1
  146. package/dist/testing/integration_helpers.js +2 -2
  147. package/dist/testing/middleware.d.ts.map +1 -1
  148. package/dist/testing/middleware.js +2 -2
  149. package/dist/testing/rpc_attack_surface.js +1 -1
  150. package/dist/testing/rpc_envelope_cases.d.ts +10 -3
  151. package/dist/testing/rpc_envelope_cases.d.ts.map +1 -1
  152. package/dist/testing/rpc_envelope_cases.js +22 -1
  153. package/dist/testing/rpc_helpers.d.ts +12 -14
  154. package/dist/testing/rpc_helpers.d.ts.map +1 -1
  155. package/dist/testing/rpc_helpers.js +9 -10
  156. package/dist/testing/schema_generators.d.ts +67 -60
  157. package/dist/testing/schema_generators.d.ts.map +1 -1
  158. package/dist/testing/schema_generators.js +154 -159
  159. package/dist/testing/sse_round_trip.d.ts.map +1 -1
  160. package/dist/testing/sse_round_trip.js +2 -2
  161. package/dist/testing/surface_invariants.d.ts +1 -1
  162. package/dist/testing/surface_invariants.js +1 -1
  163. package/dist/ui/form_state.svelte.d.ts +1 -1
  164. package/dist/ui/form_state.svelte.js +1 -1
  165. package/package.json +5 -7
  166. package/dist/zod.d.ts +0 -116
  167. package/dist/zod.d.ts.map +0 -1
  168. package/dist/zod.js +0 -218
  169. package/dist/zod_schemas.d.ts +0 -100
  170. package/dist/zod_schemas.d.ts.map +0 -1
  171. package/dist/zod_schemas.js +0 -157
@@ -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,EAON,KAAK,KAAK,EACV,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAw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AAE,YAAY,CAAC;CACnC,KAAG,mBASF,CAAC;AAMH;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GACjC,OAAO,aAAa,CACnB,IAAI,CAAC,yBAAyB,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,cAAc,GAAG,YAAY,CAAC,CAC5F,KACC,cAED,CAAC"}
@@ -47,9 +47,10 @@ export const ActionManifestEntry = object({
47
47
  /** RPC method name (`spec.method`). */
48
48
  method: string,
49
49
  /**
50
- * `'void'` when the input is a void schema (`is_void_schema`: `z.void()`
51
- * or fuz_schema `s.void`, a parameterless method), else `'object'` — the
52
- * Rust spine's declared `InputShape`, which its dispatcher enforces. A `z.strictObject({})` input is `'object'`.
50
+ * `'void'` when the input is a void schema (`is_void_schema`: `s.void`, a
51
+ * parameterless method), else `'object'` — the Rust spine's declared
52
+ * `InputShape`, which its dispatcher enforces. An `object({})` input is
53
+ * `'object'`.
53
54
  */
54
55
  input: one_of(['void', 'object']),
55
56
  /** `true` when the action declares `side_effects` (mutation; POST-only on the RPC transport). */
@@ -4,7 +4,7 @@ import '../assert_dev_env.js';
4
4
  *
5
5
  * The generic `describe_rpc_round_trip_tests` can't cover cells: the verbs
6
6
  * are stateful (update / delete / get-by-id need a real cell id threaded
7
- * from a prior create) and `cell_get`'s input has a top-level `.refine()`.
7
+ * from a prior create) and `cell_get`'s input has a top-level `check`.
8
8
  * So cells stay off the standard declared surface (`create_spine_surface_spec`)
9
9
  * — exactly like ws / sse — and this suite plus its sibling
10
10
  * `describe_cell_relations_cross_tests` (grant / field / item / clone / audit)
@@ -1,66 +1,4 @@
1
1
  import '../assert_dev_env.js';
2
- /**
3
- * Per-method RPC auth rows for the conformance table, generated from the
4
- * declared surface and, when given, the methods a backend live-mounts off it.
5
- *
6
- * `describe_rpc_attack_surface_tests` walks every declared method's auth, but
7
- * only in-process against stub apps with no database, so it never reaches a
8
- * spawned backend. The hand-written conformance rows reach every backend but
9
- * cover a chosen few methods. A spine that hand-implements a method's gate can
10
- * drift on any method nobody wrote a row for, and the action-manifest parity
11
- * gate only compares what the spines *declare*. These rows close that: each
12
- * method's declared `RouteAuth` becomes `ConformanceCase` data that
13
- * `describe_conformance_table_tests` fires at the live gate, in-process and
14
- * cross-process alike.
15
- *
16
- * Rows per method, from its declared auth:
17
- *
18
- * - **account or actor required** — `anonymous` → 401
19
- * `authentication_required`. The 401 body is method-independent, so every
20
- * such row joins one equivalence group: a caller with no credential learns
21
- * nothing that tells one method from another.
22
- * - **credential-gated** (`credential_types`) — each builtin channel the gate
23
- * does not admit (`keeper` for `session`, `token` for `api_token`, `daemon`
24
- * for `daemon_token`) → 403 `credential_type_required`, echoing the declared
25
- * `required_credential_types`. Each of those principals is the keeper.
26
- * - **role-gated** (`roles`) and admitting a session — `fresh_non_admin` →
27
- * 403 `insufficient_permissions`, echoing `required_roles`. A role gate
28
- * behind a credential gate that refuses sessions is skipped: every
29
- * role-less principal would hit the credential gate first.
30
- * - **public** — no rows.
31
- *
32
- * **Acting.** On both spines the authorization phase resolves the acting
33
- * actor before the credential gate runs, so a keeper with a second actor
34
- * (`extra_actors`) would answer `actor_required` (400) to a request with no
35
- * `acting` on an actor-bound method. Every credential and role row on such a
36
- * method therefore binds `acting` to its principal's own actor at run time
37
- * (`request.acting: 'principal'`): a single-actor account resolves the same
38
- * actor with or without it, a multi-actor keeper resolves the one holding its
39
- * roles, and either way the gate under test is the first that can refuse. The
40
- * anonymous rows send none — the 401 precedes actor resolution.
41
- *
42
- * Every refusal row sends schema-valid params where they can be generated
43
- * (`generate_valid_body`, its generated `acting` dropped for the binding),
44
- * so the gate is the only thing that can refuse. A backend
45
- * whose gate is missing reaches its handler and answers something else. The
46
- * rows therefore pin each gate, not the gate order against validation — the
47
- * 401-before-400 rows of the security slate pin that.
48
- *
49
- * **Off the declared surface.** `live_rpc_endpoints` adds the methods a
50
- * backend mounts beyond the declared surface — cell verbs, opt-in resolvers,
51
- * the `_testing_*` backdoors — read from their action specs the same way, a
52
- * method the declared surface already has taken from there. The rows then
53
- * need the same endpoints to resolve: pass them to the table runner's
54
- * `live_rpc_endpoints` too.
55
- *
56
- * Skipped: the protocol actions (`PROTOCOL_ACTION_METHODS`): their auth is
57
- * fixed by fuz_app's shared specs rather than declared per consumer, they are
58
- * WebSocket-scoped (`cancel` is a notification with no reply to assert,
59
- * `peer/ping` is public, `heartbeat` rides an admitted socket), and the WS
60
- * suites cover them.
61
- *
62
- * @module
63
- */
64
2
  import type { AppSurfaceSpec, RpcEndpointSpec } from '../../http/surface.js';
65
3
  import type { ConformanceCase } from './conformance_case.js';
66
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"conformance_rpc_auth.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/conformance_rpc_auth.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAc7E,OAAO,KAAK,EAAE,eAAe,EAAwB,MAAM,uBAAuB,CAAC;AAGnF;;;GAGG;AACH,eAAO,MAAM,oCAAoC,qCAAqC,CAAC;AAkBvF,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACzC,4FAA4F;IAC5F,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D,wEAAwE;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9C;AAyBD;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,GAC/C,SAAS,yBAAyB,KAChC,KAAK,CAAC,eAAe,CAsEvB,CAAC"}
1
+ {"version":3,"file":"conformance_rpc_auth.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/conformance_rpc_auth.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAkE9B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAc7E,OAAO,KAAK,EAAE,eAAe,EAAwB,MAAM,uBAAuB,CAAC;AAEnF;;;GAGG;AACH,eAAO,MAAM,oCAAoC,qCAAqC,CAAC;AAkBvF,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACzC,4FAA4F;IAC5F,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAC7D,wEAAwE;IACxE,QAAQ,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;CAC9C;AAyBD;;;;;;;GAOG;AACH,eAAO,MAAM,mCAAmC,GAC/C,SAAS,yBAAyB,KAChC,KAAK,CAAC,eAAe,CAsEvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"conformance_table.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/conformance_table.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA8C9B,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAe,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOnE,OAAO,EAMN,+BAA+B,EAC/B,KAAK,uBAAuB,EAC5B,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,OAAO,EAGN,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,MA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AC3E;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,uBAAuB;IACvC,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,GACjC,GAAG,eAAe,EAClB,SAAS,0BAA0B,KACjC,OAAO,CAAC,uBAAuB,CAuFjC,CAAC;AA8NF;;;;;GAKG;AACH,eAAO,MAAM,gCAAgC,GAAI,SAAS,uBAAuB,KAAG,IAuEnF,CAAC"}
@@ -41,6 +41,7 @@ import '../assert_dev_env.js';
41
41
  * @module
42
42
  */
43
43
  import { assert, describe, test } from 'vitest';
44
+ import { parse } from '@fuzdev/fuz_schema/schema.ts';
44
45
  import { DAEMON_TOKEN_HEADER } from '../../auth/daemon_token.js';
45
46
  import { find_auth_route, rest_auth_route_suffixes } from '../integration_helpers.js';
46
47
  import { find_rpc_action, headers_to_record, parse_rpc_call_result, rpc_call_raw, create_rpc_request_text, resolve_rpc_endpoints_for_setup } from '../rpc_helpers.js';
@@ -51,7 +52,6 @@ import { is_response_for } from '../transports/ws_client.js';
51
52
  import { SCOPED_TOKEN_ADMITTED_METHOD } from './conformance_case.js';
52
53
  import { mint_narrowed_api_token } from './narrowed_api_token.js';
53
54
  import { xfail_until } from './xfail.js';
54
- import { parse_any } from '../../schema_issues.js';
55
55
  /**
56
56
  * Resolve the endpoints a conformance case's RPC method is looked up in: the
57
57
  * declared `rpc_endpoints`, then `live_rpc_endpoints`. `find_rpc_action`
@@ -588,7 +588,7 @@ const assert_rpc_case = (c, action, sent) => {
588
588
  if (is_success_status(c.expect.status)) {
589
589
  assert.ok(res.ok, `${c.name}: expected success (${c.expect.status}) but got error ${JSON.stringify(res.ok ? undefined : res.error)}`);
590
590
  assert.strictEqual(res.status, c.expect.status, `${c.name}: status`);
591
- const parsed = parse_any(action.spec.output, res.result);
591
+ const parsed = parse(action.spec.output, res.result);
592
592
  assert.ok(parsed.ok, `${c.name}: result does not match spec.output: ${JSON.stringify(parsed.ok ? undefined : parsed.issues)}`);
593
593
  if (c.expect.fields)
594
594
  assert_fields(res.result, c.expect.fields, c.name);
@@ -616,7 +616,7 @@ const assert_rest_case = (c, route, sent) => {
616
616
  const { status, body } = sent;
617
617
  assert.strictEqual(status, c.expect.status, `${c.name}: status`);
618
618
  if (is_success_status(c.expect.status)) {
619
- const parsed = parse_any(route.output, body);
619
+ const parsed = parse(route.output, body);
620
620
  assert.ok(parsed.ok, `${c.name}: body does not match route output: ${JSON.stringify(parsed.ok ? undefined : parsed.issues)}`);
621
621
  }
622
622
  else if (c.expect.error_reason !== undefined) {
@@ -1,6 +1,5 @@
1
1
  import '../assert_dev_env.js';
2
- import type { z } from 'zod';
3
- import type { Schema } from '@fuzdev/fuz_schema/schema.ts';
2
+ import { type Schema } from '@fuzdev/fuz_schema/schema.ts';
4
3
  import type { FetchTransport } from '../transports/fetch_transport.js';
5
4
  /** Minimal JSON-RPC envelope shape the suites read off responses. */
6
5
  export interface RpcResult {
@@ -35,8 +34,8 @@ export declare const cross_rpc_call: (transport: FetchTransport, path: string, m
35
34
  export declare const error_reason: (r: RpcResult) => unknown;
36
35
  /**
37
36
  * Assert the call succeeded and the `result` matches the verb's declared
38
- * output schema, Zod or `@fuzdev/fuz_schema` — the wire-shape parity gate.
37
+ * output schema — the wire-shape parity gate.
39
38
  * Returns the parsed output.
40
39
  */
41
- export declare const expect_output: <T>(r: RpcResult, schema: z.ZodType<T> | Schema<T, any>) => T;
40
+ export declare const expect_output: <T>(r: RpcResult, schema: Schema<T, any>) => T;
42
41
  //# sourceMappingURL=cross_rpc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cross_rpc.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cross_rpc.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAgB9B,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAG3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGvE,qEAAqE;AACrE,MAAM,WAAW,SAAS;IACzB,yCAAyC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC9F;AAKD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,GAC1B,WAAW,cAAc,EACzB,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,QAAQ,OAAO,EACf,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC7B,OAAO,CAAC,SAAS,CAmBnB,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,YAAY,GAAI,GAAG,SAAS,KAAG,OAG/B,CAAC;AAEd;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,GAAG,SAAS,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,KAAG,CAUtF,CAAC"}
1
+ {"version":3,"file":"cross_rpc.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/cross_rpc.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAgB9B,OAAO,EAAE,KAAK,MAAM,EAAS,MAAM,8BAA8B,CAAC;AAGlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAEvE,qEAAqE;AACrE,MAAM,WAAW,SAAS;IACzB,yCAAyC;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAC9F;AAKD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,cAAc,GAC1B,WAAW,cAAc,EACzB,MAAM,MAAM,EACZ,QAAQ,MAAM,EACd,QAAQ,OAAO,EACf,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC7B,OAAO,CAAC,SAAS,CAmBnB,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,YAAY,GAAI,GAAG,SAAS,KAAG,OAG/B,CAAC;AAEd;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,EAAE,GAAG,SAAS,EAAE,QAAQ,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,KAAG,CAUvE,CAAC"}
@@ -5,15 +5,15 @@ import '../assert_dev_env.js';
5
5
  * The stateful suites (the cell verbs, account lifecycle, role grants, tokens,
6
6
  * facts, audit reads) POST raw JSON-RPC envelopes over a cross-process
7
7
  * `FetchTransport`, threading ids and auth headers across calls, and parse
8
- * every success `result` against the verb's declared Zod **output** schema —
8
+ * every success `result` against the verb's declared **output** schema —
9
9
  * the wire-shape parity gate. A TS↔Rust envelope drift, not just a payload
10
10
  * field drift, fails the assertion.
11
11
  *
12
12
  * @module
13
13
  */
14
14
  import { assert } from 'vitest';
15
+ import { parse } from '@fuzdev/fuz_schema/schema.ts';
15
16
  import { create_rpc_post_init } from '../rpc_helpers.js';
16
- import { parse_any } from '../../schema_issues.js';
17
17
  /** How much of a non-envelope reply body `cross_rpc_call`'s error quotes. */
18
18
  const BODY_HEAD_LENGTH = 200;
19
19
  /**
@@ -57,12 +57,12 @@ export const error_reason = (r) => r.error && typeof r.error.data === 'object' &
57
57
  : undefined;
58
58
  /**
59
59
  * Assert the call succeeded and the `result` matches the verb's declared
60
- * output schema, Zod or `@fuzdev/fuz_schema` — the wire-shape parity gate.
60
+ * output schema — the wire-shape parity gate.
61
61
  * Returns the parsed output.
62
62
  */
63
63
  export const expect_output = (r, schema) => {
64
64
  assert.ok(r.ok, `expected success, got ${JSON.stringify(r.error)}`);
65
- const parsed = parse_any(schema, r.result);
65
+ const parsed = parse(schema, r.result);
66
66
  assert.ok(parsed.ok, `result does not match output schema: ${parsed.ok ? '' : JSON.stringify(parsed.issues)} (got ${JSON.stringify(r.result)})`);
67
67
  return parsed.value;
68
68
  };
@@ -3,8 +3,8 @@ import '../assert_dev_env.js';
3
3
  * The cross-backend differential: each impl is the oracle for the other.
4
4
  *
5
5
  * A conformance case pins its status and reason on one backend at a time,
6
- * and an output schema is often loose (`z.looseObject`, or Zod's default
7
- * strip), so an extra field from one spine — possibly a leak — passes, as
6
+ * and an output schema is often loose (a `loose_object` or a `strip_object`),
7
+ * so an extra field from one spine — possibly a leak — passes, as
8
8
  * does any body difference on a case pinned by status alone.
9
9
  * `describe_differential_conformance_tests` sends every case to two backends,
10
10
  * normalizes both responses (`normalize_differential_response`), and asserts
@@ -1 +1 @@
1
- {"version":3,"file":"identity_parity.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/identity_parity.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0H9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAyB5C,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC9C,+DAA+D;IAC/D,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAsKD,eAAO,MAAM,oCAAoC,GAChD,SAAS,8BAA8B,KACrC,IAygBF,CAAC"}
1
+ {"version":3,"file":"identity_parity.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/identity_parity.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA0H9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA0B5C,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC9C,+DAA+D;IAC/D,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IAC/B,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC;AAsKD,eAAO,MAAM,oCAAoC,GAChD,SAAS,8BAA8B,KACrC,IA6gBF,CAAC"}
@@ -46,7 +46,7 @@ import '../assert_dev_env.js';
46
46
  * **Login input validation:** malformed login input → 400 `invalid_request_body`
47
47
  * on every spine — whitespace-only username (empty after trim), over-long
48
48
  * username (> 255), empty password, and an unknown body key (strict object).
49
- * TS runs the full `LoginInput` Zod schema; the Rust spine enforces the same
49
+ * TS runs the full `LoginInput` schema; the Rust spine enforces the same
50
50
  * shape in `account_login` (the convergence the suite closed: the Rust spine
51
51
  * previously let three of these fall through to a lookup-miss 401, and TS let a
52
52
  * whitespace-only identifier through to a 401). Asserted via the error reason,
@@ -60,7 +60,7 @@ import '../assert_dev_env.js';
60
60
  * **Length + format creation parity:** the full `Username` shape —
61
61
  * `[USERNAME_LENGTH_MIN, USERNAME_LENGTH_MAX]` = `[3, 39]` and the regex
62
62
  * `^[a-zA-Z][0-9a-zA-Z_-]*[0-9a-zA-Z]$` — pinned across both backends. The TS
63
- * Zod `.min()/.max()/.regex()` and the Rust hand-rolled byte-scan
63
+ * `Username` bounds and regex and the Rust hand-rolled byte-scan
64
64
  * (`is_valid_username_for_creation`) are independent reimplementations of the
65
65
  * same rule, so each length boundary is tested just-outside (→ 400) and
66
66
  * just-inside (→ 403 no-matching-invite, the settle for a valid username on a
@@ -84,8 +84,8 @@ import '../assert_dev_env.js';
84
84
  * edges, no whitespace — `White_Space ∪ {U+FEFF}` — plus a 254-byte (RFC 5321
85
85
  * octet) length bound), Rust the hand-rolled `is_valid_email`. A malformed email → 400, a well-formed one →
86
86
  * 403 no-matching-invite (the same accept/reject settle the username tables
87
- * use). The accepted siblings include the single-char-TLD `a@b.c` that Zod's
88
- * `z.email()` would reject — the deliberately-looser rule both spines now
87
+ * use). The accepted siblings include the single-char-TLD `a@b.c` that a
88
+ * stricter email grammar rejects — the deliberately-looser rule both spines
89
89
  * share. This closed a real divergence: the Rust spine previously
90
90
  * length-checked the email only, accepting any non-empty string TS rejected.
91
91
  *
@@ -112,6 +112,7 @@ import { BOOTSTRAP_TOKEN_LENGTH_MAX } from '../../auth/bootstrap_route_schema.js
112
112
  import { DEFAULT_TEST_PASSWORD } from '../test_credentials.js';
113
113
  import { test_if } from './capabilities.js';
114
114
  import { SPINE_ACCOUNT_BOOTSTRAP_PATH, SPINE_ACCOUNT_LOGIN_PATH, SPINE_ACCOUNT_PASSWORD_PATH, SPINE_ACCOUNT_SIGNUP_PATH } from './spine_surface_constants.js';
115
+ import { SERDE_REFUSED_PARAMS_JSON } from '../rpc_envelope_cases.js';
115
116
  /**
116
117
  * The flat-REST `{error}` reason each terminal login/signup status carries on
117
118
  * every spine — the assertion target that turns a status-only check into a
@@ -207,7 +208,7 @@ const USERNAME_FORMAT_CASES = [
207
208
  * edge (beside another dot inside the domain too), surrounding whitespace,
208
209
  * over the length bound — so a backend policing only one of them is caught.
209
210
  * The accepted siblings are the don't-over-reject control and include the
210
- * shapes Zod's `z.email()` rejects but our looser rule accepts — single-char
211
+ * shapes a stricter email grammar rejects but our looser rule accepts — single-char
211
212
  * TLD `a@b.c` and consecutive dots `a..b@c.d` and `a@b..c` — pinning the
212
213
  * deliberately-looser shared rule in both directions.
213
214
  * Every case rides a valid username so the rejection (or the 403 no-invite
@@ -252,17 +253,17 @@ const SIGNUP_EMAIL_CASES = [
252
253
  { email: 'user@example.com', label: 'well-formed', status: VALID_USERNAME_NO_INVITE_STATUS },
253
254
  {
254
255
  email: 'a@b.c',
255
- label: 'single-char TLD (looser than z.email)',
256
+ label: 'single-char TLD (the looser rule)',
256
257
  status: VALID_USERNAME_NO_INVITE_STATUS
257
258
  },
258
259
  {
259
260
  email: 'a..b@c.d',
260
- label: 'consecutive dots (looser than z.email)',
261
+ label: 'consecutive dots (the looser rule)',
261
262
  status: VALID_USERNAME_NO_INVITE_STATUS
262
263
  },
263
264
  {
264
265
  email: 'user@example..com',
265
- label: 'consecutive dots inside the domain (looser than z.email)',
266
+ label: 'consecutive dots inside the domain (the looser rule)',
266
267
  status: VALID_USERNAME_NO_INVITE_STATUS
267
268
  },
268
269
  {
@@ -484,7 +485,7 @@ export const describe_identity_parity_cross_tests = (options) => {
484
485
  // shape on both spines (TS `Email` regex + 254-byte bound, Rust `is_valid_email`):
485
486
  // malformed → 400, well-formed → 403 no-invite. The username is fixed-valid so
486
487
  // each case isolates the email; the `a@b.c` accept pins the deliberately
487
- // looser-than-`z.email()` rule the validator port converged on.
488
+ // looser rule both spines share.
488
489
  describe('signup email format parity', () => {
489
490
  for (const { email, label, status } of SIGNUP_EMAIL_CASES) {
490
491
  test(`${label} → ${status}`, async () => {
@@ -594,10 +595,14 @@ export const describe_identity_parity_cross_tests = (options) => {
594
595
  // Bootstrap parses ahead of its window check (so the 400 holds after
595
596
  // bootstrap completed); the password change parses only after its
596
597
  // credential and session-only gates, so it needs a session, and an
597
- // anonymous caller still hears 401.
598
+ // anonymous caller still hears 401. A body `serde_json` refuses (a lone
599
+ // surrogate escape, a number out of `f64` range, nesting 128 deep) is
600
+ // invalid JSON on both.
598
601
  const MALFORMED_BODIES = [
599
602
  ['{', 'unparseable'],
600
- ['[]', 'a non-object array']
603
+ ['[]', 'a non-object array'],
604
+ // what the Rust spine's `serde_json` refuses and `JSON.parse` accepts
605
+ ...SERDE_REFUSED_PARAMS_JSON.map(([label, json]) => [json, label])
601
606
  ];
602
607
  const assert_invalid_json_body = (got, label) => {
603
608
  assert.strictEqual(got.status, 400, `${label} — status: ${got.text}`);
@@ -89,13 +89,13 @@ export declare const OriginConformanceParseRow: import("@fuzdev/fuz_schema/schem
89
89
  export type OriginConformanceParseRow = Infer<typeof OriginConformanceParseRow>;
90
90
  /** A match row: a valid allowlist, one `Origin` value or `null`, and the answer. */
91
91
  export declare const OriginConformanceMatchRow: import("@fuzdev/fuz_schema/schema.ts").Schema<{
92
- origin: string | null;
93
92
  patterns: string;
93
+ origin: string | null;
94
94
  allowed: boolean;
95
95
  note?: string | undefined;
96
96
  }, {
97
- origin: string | null;
98
97
  patterns: string;
98
+ origin: string | null;
99
99
  allowed: boolean;
100
100
  note?: string | undefined;
101
101
  }, "object", {
@@ -108,8 +108,8 @@ export type OriginConformanceMatchRow = Infer<typeof OriginConformanceMatchRow>;
108
108
  /** The conformance table, a `@fuzdev/fuz_schema` `object`. */
109
109
  export declare const OriginConformance: import("@fuzdev/fuz_schema/schema.ts").Schema<{
110
110
  match: {
111
- origin: string | null;
112
111
  patterns: string;
112
+ origin: string | null;
113
113
  allowed: boolean;
114
114
  note?: string | undefined;
115
115
  }[];
@@ -127,8 +127,8 @@ export declare const OriginConformance: import("@fuzdev/fuz_schema/schema.ts").S
127
127
  })[];
128
128
  }, {
129
129
  match: {
130
- origin: string | null;
131
130
  patterns: string;
131
+ origin: string | null;
132
132
  allowed: boolean;
133
133
  note?: string | undefined;
134
134
  }[];
@@ -250,28 +250,28 @@ export declare const OriginConformance: import("@fuzdev/fuz_schema/schema.ts").S
250
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
251
  }>]>>>;
252
252
  match: import("@fuzdev/fuz_schema/schema.ts").PipeSchema<{
253
- origin: string | null;
254
253
  patterns: string;
254
+ origin: string | null;
255
255
  allowed: boolean;
256
256
  note?: string | undefined;
257
257
  }[], import("@fuzdev/fuz_schema/schema.ts").Schema<{
258
- origin: string | null;
259
258
  patterns: string;
259
+ origin: string | null;
260
260
  allowed: boolean;
261
261
  note?: string | undefined;
262
262
  }[], {
263
- origin: string | null;
264
263
  patterns: string;
264
+ origin: string | null;
265
265
  allowed: boolean;
266
266
  note?: string | undefined;
267
267
  }[], "array", import("@fuzdev/fuz_schema/schema.ts").Schema<{
268
- origin: string | null;
269
268
  patterns: string;
269
+ origin: string | null;
270
270
  allowed: boolean;
271
271
  note?: string | undefined;
272
272
  }, {
273
- origin: string | null;
274
273
  patterns: string;
274
+ origin: string | null;
275
275
  allowed: boolean;
276
276
  note?: string | undefined;
277
277
  }, "object", {
@@ -4,7 +4,7 @@ import '../assert_dev_env.js';
4
4
  *
5
5
  * The TS pipeline reads queries through Hono's `c.req.query()` — a duplicated
6
6
  * key resolves to its **first** occurrence — and only routes that declare a
7
- * `z.strictObject` query schema 400 unknown keys, in the pipeline's
7
+ * strict `object` query schema 400 unknown keys, in the pipeline's
8
8
  * params → query → 401 → authz → 403 phase order. A derived-serde axum
9
9
  * extractor diverges on every axis (a plain-text pre-handler "duplicate
10
10
  * field" 400 observable anonymously, silently ignored unknown keys, query
@@ -1 +1 @@
1
- {"version":3,"file":"rpc_success_fixtures.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rpc_success_fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqC9B,OAAO,KAAK,EAAqB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQlF,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC9C,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iCAAiC,GAC7C,UAAS,8BAAmC,KAC1C,kBAwHF,CAAC"}
1
+ {"version":3,"file":"rpc_success_fixtures.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/rpc_success_fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AAqC9B,OAAO,KAAK,EAAqB,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAOlF,uDAAuD;AACvD,MAAM,WAAW,8BAA8B;IAC9C,gGAAgG;IAChG,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iCAAiC,GAC7C,UAAS,8BAAmC,KAC1C,kBAwHF,CAAC"}
@@ -53,7 +53,7 @@ export interface RustSpineConsumerRpcEndpointsOptions {
53
53
  readonly roles?: RoleRegistry;
54
54
  /**
55
55
  * Domain methods kept off the declared surface — ones the spec-derived
56
- * suites can't drive (an input whose `.refine()` the generic body generator
56
+ * suites can't drive (an input whose `check` the generic body generator
57
57
  * can't satisfy). They stay mounted on the backend; this only leaves them
58
58
  * out of what the suites enumerate.
59
59
  */
@@ -1,6 +1,28 @@
1
1
  import '../assert_dev_env.js';
2
+ /**
3
+ * Per-test fixture protocol shared by in-process and cross-process
4
+ * transports.
5
+ *
6
+ * Each standard suite body takes a required
7
+ * `setup_test: () => Promise<TestFixture>` callback and invokes it once
8
+ * per test. The fixture carries everything a test needs to fire requests
9
+ * and assert on a single bootstrapped keeper account — transport,
10
+ * account / actor identity, three header builders, a multi-account mint
11
+ * factory, and (in-process only) the in-memory keyring + raw backend.
12
+ *
13
+ * The cross-process producer `default_cross_process_setup` lives here,
14
+ * alongside the spawn-a-backend transport plumbing — it implements the
15
+ * `SetupTest` contract by spawning a binary and bootstrapping over real
16
+ * HTTP. The in-process producers (`default_in_process_setup` /
17
+ * `default_in_process_suite_options`, which wrap `create_test_app`) live
18
+ * in the sibling `in_process_setup.ts` so this module — and the
19
+ * cross-process consumers that import it — stay free of the in-process
20
+ * Hono app and its optional `hono` peer dependency.
21
+ *
22
+ * @module
23
+ */
24
+ import { type Infer, type AnySchema } from '@fuzdev/fuz_schema/schema.ts';
2
25
  import { Uuid } from '../../primitive_schemas.js';
3
- import { type ValidationOutput, type ValidationSchema } from '../../schema_issues.js';
4
26
  import type { TestAccount } from '../app_server.js';
5
27
  import type { BackendCapabilities } from './capabilities.js';
6
28
  import { type FetchTransport } from '../transports/fetch_transport.js';
@@ -419,7 +441,7 @@ export declare const capture_schema_snapshot: (handle: ReconstructedBootstrapped
419
441
  exclude_tables?: ReadonlyArray<string>;
420
442
  }) => Promise<SchemaSnapshot>;
421
443
  /**
422
- * Parse a `capture_*` probe's answer with `schema`, of either library: the
444
+ * Parse a `capture_*` probe's answer with `schema`: the
423
445
  * parsed value, or a throw naming `method` with the issues, so a shape drift
424
446
  * between the TS and Rust answers fails loud at the boundary.
425
447
  *
@@ -429,7 +451,7 @@ export declare const capture_schema_snapshot: (handle: ReconstructedBootstrapped
429
451
  * @returns the parsed answer, the schema's output
430
452
  * @throws Error when `raw` fails `schema`
431
453
  */
432
- export declare const parse_capture_answer: <T extends ValidationSchema>(method: string, schema: T, raw: unknown) => ValidationOutput<T>;
454
+ export declare const parse_capture_answer: <T extends AnySchema>(method: string, schema: T, raw: unknown) => Infer<T>;
433
455
  /**
434
456
  * Capture a backend's live RPC action manifest over the
435
457
  * `_testing_action_manifest` RPC action (keeper daemon-token channel). The
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"../src/lib/","sources":["../../../src/lib/testing/cross_backend/setup.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;AA2B9B,OAAO,EAAuB,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAGN,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,MAAM,wBAAwB,CAAC;AAIhC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;;;;;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,EAC9C,UAAU,wBAAwB,KAChC,SAsIF,CAAC"}
@@ -23,7 +23,7 @@ import '../assert_dev_env.js';
23
23
  */
24
24
  import { array, literal, parse, string, strip_object } from '@fuzdev/fuz_schema/schema.ts';
25
25
  import { USERNAME_LENGTH_MAX, Uuid } from '../../primitive_schemas.js';
26
- import { format_issues, parse_any } from '../../schema_issues.js';
26
+ import { format_issues } from '../../schema_issues.js';
27
27
  import { DAEMON_TOKEN_HEADER } from '../../auth/daemon_token.js';
28
28
  import { DEFAULT_TEST_PASSWORD } from '../test_credentials.js';
29
29
  import { create_fetch_transport } from '../transports/fetch_transport.js';
@@ -186,7 +186,7 @@ export const capture_schema_snapshot = async (handle, options = {}) => {
186
186
  return raw;
187
187
  };
188
188
  /**
189
- * Parse a `capture_*` probe's answer with `schema`, of either library: the
189
+ * Parse a `capture_*` probe's answer with `schema`: the
190
190
  * parsed value, or a throw naming `method` with the issues, so a shape drift
191
191
  * between the TS and Rust answers fails loud at the boundary.
192
192
  *
@@ -197,7 +197,7 @@ export const capture_schema_snapshot = async (handle, options = {}) => {
197
197
  * @throws Error when `raw` fails `schema`
198
198
  */
199
199
  export const parse_capture_answer = (method, schema, raw) => {
200
- const parsed = parse_any(schema, raw);
200
+ const parsed = parse(schema, raw);
201
201
  if (!parsed.ok) {
202
202
  throw new Error(`${method}: the answer fails its schema:\n${format_issues(parsed.issues)}`);
203
203
  }
@@ -205,7 +205,7 @@ export const parse_capture_answer = (method, schema, raw) => {
205
205
  };
206
206
  /**
207
207
  * Capture a no-arg (void-input) daemon-token introspection RPC, sent with no
208
- * params, and validate the wire response against `schema`, of either library.
208
+ * params, and validate the wire response against `schema`.
209
209
  * The shared shape behind the parse-based `capture_*` cross-impl parity
210
210
  * probes: call a `_testing_*` introspection action over the keeper's
211
211
  * daemon-token channel, then `parse_capture_answer`.
@@ -59,12 +59,12 @@ import '../assert_dev_env.js';
59
59
  * @module
60
60
  */
61
61
  import { assert, describe } from 'vitest';
62
+ import { parse } from '@fuzdev/fuz_schema/schema.ts';
62
63
  import { account_session_list_action_spec, account_session_revoke_action_spec, account_session_revoke_all_action_spec } from '../../auth/account_action_specs.js';
63
64
  import { account_delete_action_spec, admin_session_revoke_all_action_spec } from '../../auth/admin_action_specs.js';
64
65
  import { ROLE_ADMIN } from '../../auth/role_schema.js';
65
66
  import { AUDIT_LOG_SSE_MAX_PER_SCOPE, audit_log_event_specs } from '../../realtime/audit_log_sse.js';
66
67
  import { SSE_CONNECTED_COMMENT } from '../../realtime/sse_constants.js';
67
- import { parse_any } from '../../schema_issues.js';
68
68
  import { create_sse_transport } from '../transports/sse_transport.js';
69
69
  import { create_rpc_post_init } from '../rpc_helpers.js';
70
70
  import { DEFAULT_TEST_PASSWORD } from '../test_credentials.js';
@@ -83,7 +83,7 @@ const assert_audit_data_frame = (frame) => {
83
83
  assert.strictEqual(typeof payload.method, 'string', 'audit data frame method must be a string');
84
84
  const spec = audit_log_event_specs.find((s) => s.method === payload.method);
85
85
  assert.ok(spec, `no EventSpec declared for audit method '${String(payload.method)}'`);
86
- const result = parse_any(spec.params, payload.params);
86
+ const result = parse(spec.params, payload.params);
87
87
  assert.ok(result.ok, `audit data frame params mismatch for '${String(payload.method)}': ${result.ok ? '' : JSON.stringify(result.issues)}`);
88
88
  };
89
89
  /**
@@ -15,11 +15,11 @@ import { type Infer } from '@fuzdev/fuz_schema/schema.ts';
15
15
  import { type RpcAction } from '../../actions/action_types.js';
16
16
  /** Input of `_testing_origin_check`, a `@fuzdev/fuz_schema` `object`. */
17
17
  export declare const TestingOriginCheckInput: import("@fuzdev/fuz_schema/schema.ts").Schema<{
18
- origin: string | null;
19
18
  patterns: string;
20
- }, {
21
19
  origin: string | null;
20
+ }, {
22
21
  patterns: string;
22
+ origin: string | null;
23
23
  }, "object", {
24
24
  /** An allowlist value, as `FUZ_ALLOWED_ORIGINS` would carry it. */
25
25
  patterns: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
@@ -127,11 +127,11 @@ export declare const testing_origin_check_action_spec: {
127
127
  };
128
128
  readonly side_effects: false;
129
129
  readonly input: import("@fuzdev/fuz_schema/schema.ts").Schema<{
130
- origin: string | null;
131
130
  patterns: string;
132
- }, {
133
131
  origin: string | null;
132
+ }, {
134
133
  patterns: string;
134
+ origin: string | null;
135
135
  }, "object", {
136
136
  /** An allowlist value, as `FUZ_ALLOWED_ORIGINS` would carry it. */
137
137
  patterns: import("@fuzdev/fuz_schema/schema.ts").Schema<string, string, "string", undefined>;
@@ -7,8 +7,8 @@ import '../assert_dev_env.js';
7
7
  * ## Why this suite exists
8
8
  *
9
9
  * The action-manifest parity gate captures `{method, side_effects, auth}` and
10
- * **no param schemas**, while the TS spine validates params against a Zod
11
- * `strictObject` and the Rust spine hand-parses with `params.get(...)`. So a
10
+ * **no param schemas**, while the TS spine validates params against a strict
11
+ * `object` and the Rust spine hand-parses with `params.get(...)`. So a
12
12
  * spine that silently ignored the `lifetime` field would answer the same mint
13
13
  * request with a **200 and an eternal token** — same method, same status,
14
14
  * nothing red anywhere. The forcing function has to observe the *stored*
@@ -95,7 +95,7 @@ export const describe_token_lifetime_cross_tests = (options) => {
95
95
  }, fixture.create_session_headers());
96
96
  const created = expect_output(create_res, TokenCreateOutput);
97
97
  assert.ok(created.expires_at !== null, 'a ttl mint must return a non-null expires_at — null means the spine dropped the field');
98
- // Byte-shape gate: `z.string()` accepts a millisecond stamp too, so
98
+ // Byte-shape gate: `Timestamp` accepts a millisecond stamp too, so
99
99
  // `expect_output` above can't tell the two spines apart.
100
100
  assert_iso8601_seconds(created.expires_at, 'token_create.expires_at');
101
101
  const expires_ms = Date.parse(created.expires_at);