@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.
- package/dist/actions/CLAUDE.md +128 -50
- package/dist/actions/action_codegen.d.ts +196 -37
- package/dist/actions/action_codegen.d.ts.map +1 -1
- package/dist/actions/action_codegen.js +297 -59
- package/dist/actions/action_registry.d.ts +41 -9
- package/dist/actions/action_registry.d.ts.map +1 -1
- package/dist/actions/action_registry.js +109 -32
- package/dist/actions/action_types.d.ts +2 -2
- package/dist/actions/action_types.js +2 -2
- package/dist/actions/cancel.d.ts +13 -11
- package/dist/actions/cancel.d.ts.map +1 -1
- package/dist/actions/cancel.js +13 -11
- package/dist/actions/frontend_rpc_client.d.ts +9 -0
- package/dist/actions/frontend_rpc_client.d.ts.map +1 -1
- package/dist/actions/heartbeat.d.ts +11 -8
- package/dist/actions/heartbeat.d.ts.map +1 -1
- package/dist/actions/heartbeat.js +11 -8
- package/dist/actions/protocol.d.ts +47 -0
- package/dist/actions/protocol.d.ts.map +1 -0
- package/dist/actions/protocol.js +46 -0
- package/dist/actions/register_action_ws.d.ts +4 -3
- package/dist/actions/register_action_ws.d.ts.map +1 -1
- package/dist/actions/register_action_ws.js +1 -1
- package/dist/auth/account_action_specs.d.ts +1 -1
- package/dist/auth/account_action_specs.js +1 -1
- package/dist/auth/account_actions.d.ts +2 -2
- package/dist/auth/account_actions.js +2 -2
- package/dist/auth/admin_action_specs.d.ts +1 -1
- package/dist/auth/admin_action_specs.js +1 -1
- package/dist/auth/admin_actions.d.ts +2 -2
- package/dist/auth/admin_actions.js +2 -2
- package/dist/auth/permit_offer_action_specs.d.ts +1 -1
- package/dist/auth/permit_offer_action_specs.js +1 -1
- package/dist/auth/permit_offer_actions.d.ts +1 -1
- package/dist/auth/permit_offer_actions.js +1 -1
- package/dist/auth/standard_action_specs.d.ts +1 -1
- package/dist/auth/standard_action_specs.js +1 -1
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|