Repository navigation
Catches the SDK up to Spwig 1.8.0 (Campaign Studio — the built-in
email-marketing suite).
Purely additive — no breaking changes. 1.8.0's new surface is admin/agentic and
did not change any storefront contract, so existing code keeps compiling and
working unchanged. Two new admin bindings expose the parts a headless admin app
would want; the rest of 1.8.0's new endpoints are agent-facing or the inert
multi-market visibility engine and are deliberately not wrapped.
Added
admin.analytics.getAttribution(params?)— Campaign Studio revenue
attribution. Returnstotals(attributed revenue, orders, average touches)
for the window, plus per-campaign and per-journey breakdowns and per-model
figures under the selected attribution model. Params:modeland aperiod
preset (last_7_days…last_90_days,month_to_date, orcustomwith
start_date/end_date). New types:AttributionData,AttributionTotals,
AttributionPeriod,AttributionPeriodInfo,AttributionParams.admin.wallets.adjust(walletId, { amount, direction, description, … })—
post a signed staff balance correction.direction('increase'|
'decrease') decides whether the always-positiveamountraises or lowers
the balance; recorded as a distinctadjustmentledger row. Returns the
resultingAdminWalletTransaction. New type:WalletAdjustInput.
Notes
- Regenerated
src/generated/schema.tsfrom the 1.8.0 API contract. - Deliberately not wrapped (declined in the coverage allowlist): the
agent-facingPOST /api/agentic/ucp/checkout-sessions/{}/cancel/, and the
admin multi-marketVisibilityRuleengine (/api/visibility/*), which is
currently an inert presentation engine.