@fuzdev/fuz_app 0.48.0 → 0.50.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 (38) hide show
  1. package/dist/actions/CLAUDE.md +128 -50
  2. package/dist/actions/action_codegen.d.ts +196 -37
  3. package/dist/actions/action_codegen.d.ts.map +1 -1
  4. package/dist/actions/action_codegen.js +297 -59
  5. package/dist/actions/action_registry.d.ts +41 -9
  6. package/dist/actions/action_registry.d.ts.map +1 -1
  7. package/dist/actions/action_registry.js +109 -32
  8. package/dist/actions/action_types.d.ts +2 -2
  9. package/dist/actions/action_types.js +2 -2
  10. package/dist/actions/cancel.d.ts +13 -11
  11. package/dist/actions/cancel.d.ts.map +1 -1
  12. package/dist/actions/cancel.js +13 -11
  13. package/dist/actions/frontend_rpc_client.d.ts +9 -0
  14. package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
  15. package/dist/actions/heartbeat.d.ts +11 -8
  16. package/dist/actions/heartbeat.d.ts.map +1 -1
  17. package/dist/actions/heartbeat.js +11 -8
  18. package/dist/actions/protocol.d.ts +47 -0
  19. package/dist/actions/protocol.d.ts.map +1 -0
  20. package/dist/actions/protocol.js +46 -0
  21. package/dist/actions/register_action_ws.d.ts +4 -3
  22. package/dist/actions/register_action_ws.d.ts.map +1 -1
  23. package/dist/actions/register_action_ws.js +1 -1
  24. package/dist/auth/account_action_specs.d.ts +1 -1
  25. package/dist/auth/account_action_specs.js +1 -1
  26. package/dist/auth/account_actions.d.ts +2 -2
  27. package/dist/auth/account_actions.js +2 -2
  28. package/dist/auth/admin_action_specs.d.ts +1 -1
  29. package/dist/auth/admin_action_specs.js +1 -1
  30. package/dist/auth/admin_actions.d.ts +2 -2
  31. package/dist/auth/admin_actions.js +2 -2
  32. package/dist/auth/permit_offer_action_specs.d.ts +1 -1
  33. package/dist/auth/permit_offer_action_specs.js +1 -1
  34. package/dist/auth/permit_offer_actions.d.ts +1 -1
  35. package/dist/auth/permit_offer_actions.js +1 -1
  36. package/dist/auth/standard_action_specs.d.ts +1 -1
  37. package/dist/auth/standard_action_specs.js +1 -1
  38. package/package.json +1 -1
@@ -11,13 +11,13 @@
11
11
  * when `AdminActionOptions.app_settings` is provided — the mutable ref is
12
12
  * owned by the server context and shared with signup middleware).
13
13
  *
14
- * The action specs themselves live in `./admin_action_specs.js`. Mutations
14
+ * The action specs themselves live in `auth/admin_action_specs.ts`. Mutations
15
15
  * emit matching audit events via `audit_log_fire_and_forget`.
16
16
  *
17
17
  * Authorization is declared at the spec level (`auth: {role: 'admin'}`) so
18
18
  * the RPC dispatcher enforces it before the handler runs and the generated
19
19
  * surface accurately reports the requirement. `permit_revoke` in
20
- * `permit_offer_actions.ts` uses the same spec-level pattern even though its
20
+ * `auth/permit_offer_actions.ts` uses the same spec-level pattern even though its
21
21
  * sibling methods are authenticated-but-not-admin — the dispatcher checks
22
22
  * auth per-spec, so mixed-auth endpoints compose cleanly. Handler-level
23
23
  * gates are reserved for input-dependent elevation (e.g.
@@ -11,13 +11,13 @@
11
11
  * when `AdminActionOptions.app_settings` is provided — the mutable ref is
12
12
  * owned by the server context and shared with signup middleware).
13
13
  *
14
- * The action specs themselves live in `./admin_action_specs.js`. Mutations
14
+ * The action specs themselves live in `auth/admin_action_specs.ts`. Mutations
15
15
  * emit matching audit events via `audit_log_fire_and_forget`.
16
16
  *
17
17
  * Authorization is declared at the spec level (`auth: {role: 'admin'}`) so
18
18
  * the RPC dispatcher enforces it before the handler runs and the generated
19
19
  * surface accurately reports the requirement. `permit_revoke` in
20
- * `permit_offer_actions.ts` uses the same spec-level pattern even though its
20
+ * `auth/permit_offer_actions.ts` uses the same spec-level pattern even though its
21
21
  * sibling methods are authenticated-but-not-admin — the dispatcher checks
22
22
  * auth per-spec, so mixed-auth endpoints compose cleanly. Handler-level
23
23
  * gates are reserved for input-dependent elevation (e.g.
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Import this module for the specs, Input/Output schemas, `ERROR_OFFER_*`
6
6
  * reason constants, and the `all_permit_offer_action_specs` registry.
7
- * Handlers live in `./permit_offer_actions.js`.
7
+ * Handlers live in `auth/permit_offer_actions.ts`.
8
8
  *
9
9
  * Authorization enforcement: offer-lifecycle specs declare
10
10
  * `auth: 'authenticated'` and rely on `query_*` IDOR guards or in-handler
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Import this module for the specs, Input/Output schemas, `ERROR_OFFER_*`
6
6
  * reason constants, and the `all_permit_offer_action_specs` registry.
7
- * Handlers live in `./permit_offer_actions.js`.
7
+ * Handlers live in `auth/permit_offer_actions.ts`.
8
8
  *
9
9
  * Authorization enforcement: offer-lifecycle specs declare
10
10
  * `auth: 'authenticated'` and rely on `query_*` IDOR guards or in-handler
@@ -4,7 +4,7 @@
4
4
  * Seven actions: six offer-lifecycle methods (create / accept / decline /
5
5
  * retract / list / history) plus `permit_revoke` (admin-only). All mount
6
6
  * on a consumer's JSON-RPC endpoint via `create_rpc_endpoint`. The action
7
- * specs themselves live in `./permit_offer_action_specs.js`. Mutations
7
+ * specs themselves live in `auth/permit_offer_action_specs.ts`. Mutations
8
8
  * declare `side_effects: true` so the RPC dispatcher wraps the handler in
9
9
  * a DB transaction; `permit_offer_list` and `permit_offer_history` declare
10
10
  * `side_effects: false` so they are addressable via GET.
@@ -4,7 +4,7 @@
4
4
  * Seven actions: six offer-lifecycle methods (create / accept / decline /
5
5
  * retract / list / history) plus `permit_revoke` (admin-only). All mount
6
6
  * on a consumer's JSON-RPC endpoint via `create_rpc_endpoint`. The action
7
- * specs themselves live in `./permit_offer_action_specs.js`. Mutations
7
+ * specs themselves live in `auth/permit_offer_action_specs.ts`. Mutations
8
8
  * declare `side_effects: true` so the RPC dispatcher wraps the handler in
9
9
  * a DB transaction; `permit_offer_list` and `permit_offer_history` declare
10
10
  * `side_effects: false` so they are addressable via GET.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Aggregate spec list mirroring `create_standard_rpc_actions` on the backend.
3
3
  *
4
- * `create_standard_rpc_actions` (in `./standard_rpc_actions.js`) bundles three
4
+ * `create_standard_rpc_actions` (in `auth/standard_rpc_actions.ts`) bundles three
5
5
  * action registries into one mounted RPC surface: admin + permit_offer +
6
6
  * account. Frontends mounting that surface need the matching spec list to
7
7
  * feed `create_rpc_client` so the typed Proxy knows about every standard
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Aggregate spec list mirroring `create_standard_rpc_actions` on the backend.
3
3
  *
4
- * `create_standard_rpc_actions` (in `./standard_rpc_actions.js`) bundles three
4
+ * `create_standard_rpc_actions` (in `auth/standard_rpc_actions.ts`) bundles three
5
5
  * action registries into one mounted RPC surface: admin + permit_offer +
6
6
  * account. Frontends mounting that surface need the matching spec list to
7
7
  * feed `create_rpc_client` so the typed Proxy knows about every standard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_app",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "description": "fullstack app library",
5
5
  "glyph": "🗝",
6
6
  "logo": "logo.svg",