@plasius/economy 0.8.0 → 0.10.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/README.md +26 -1
- package/dist/index.cjs +370 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +97 -4
- package/dist/index.d.ts +97 -4
- package/dist/index.js +362 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ outside signed PostgreSQL `bigint` range are rejected. Runtime validators also
|
|
|
50
50
|
reject non-string JSON values rather than coercing numbers into wire amounts.
|
|
51
51
|
|
|
52
52
|
`ActivityEntryV1` contains both a stable `source` (`shopify`, `ayet`, `bitlabs`,
|
|
53
|
-
`subscription`, `event`, `competition`, or `adjustment`) and a bounded
|
|
53
|
+
`google-ad-manager`, `subscription`, `event`, `competition`, or `adjustment`) and a bounded
|
|
54
54
|
display-oriented `sourceLabel`. Filters and reconciliation must use `source`;
|
|
55
55
|
localized UI must use `sourceLabel`.
|
|
56
56
|
|
|
@@ -78,6 +78,25 @@ The default server ceilings are £50 per order and £100 per payer and household
|
|
|
78
78
|
over 30 days. A consuming service may apply a lower household control but must
|
|
79
79
|
not raise these defaults without a separately versioned policy decision.
|
|
80
80
|
|
|
81
|
+
## Google rewarded web
|
|
82
|
+
|
|
83
|
+
`GoogleRewardedWebGrantClaimV1` deliberately labels GPT browser completion as
|
|
84
|
+
`client-claimed`; Google rewarded web has no server-side verification contract.
|
|
85
|
+
`GoogleRewardedWebReconciliationV1` separately proves final paid-impression,
|
|
86
|
+
eligible-net-revenue, nominal-liability, and reserve coverage.
|
|
87
|
+
|
|
88
|
+
`createGoogleRewardedWebQuote()` uses exact integer GBP micros and issues one
|
|
89
|
+
whole Token only when conservative eligible net is at least 125,000 micros for
|
|
90
|
+
the 100,000-micro nominal liability. The completion bundle has no package
|
|
91
|
+
default. `google-ad-manager` source lots must be `same-user-only` and retain an
|
|
92
|
+
opaque internal claim identifier; the package exposes no Token transfer to a
|
|
93
|
+
linked account.
|
|
94
|
+
|
|
95
|
+
A parent-owned household service may eventually provide dependent family
|
|
96
|
+
access without moving Tokens or assigning the entitlement. That journey is
|
|
97
|
+
outside this V1 contract and must stay separately flagged off until Google has
|
|
98
|
+
approved its exact policy treatment in writing.
|
|
99
|
+
|
|
81
100
|
## Balanced journal transactions
|
|
82
101
|
|
|
83
102
|
```ts
|
|
@@ -437,6 +456,12 @@ principal only and terminates with `WALLET_INITIALIZED` or
|
|
|
437
456
|
double-entry transaction or Token activity row and does not authorize value or
|
|
438
457
|
provider writes.
|
|
439
458
|
|
|
459
|
+
`initialize-admin-reporting` is also additive to the audited command union. It
|
|
460
|
+
is restricted to a service principal and the system source so a host can bind
|
|
461
|
+
one create-only reporting bootstrap to its normal authority head, manifest,
|
|
462
|
+
receipt, and idempotency evidence. It does not authorize a balance mutation or
|
|
463
|
+
replace an existing reporting projection.
|
|
464
|
+
|
|
440
465
|
Activity reads use bounded opaque cursor pagination in stable descending
|
|
441
466
|
`(occurredAt, activityId)` order. Each row retains the component `walletId`
|
|
442
467
|
whose signed display amount it represents. Cursor contents and signatures are
|