Application UUID.
OptionalbaseWorkspace environment UUID the publishable token was minted for.
OptionalfetchOptionalinit: RequestInitOptionaloriginOrigin to send. Browsers set the Origin header automatically (and it can't
be overridden from JS), so this is only needed for non-browser callers
(SSR, tests). It must be on the application's allowlist.
Publishable storefront quote token (pk_…).
Optionaltimeout
Browser client for backend-less cart ownership. Unlike CartClient (which needs a server-side
sk_key),CartSessionClientruns in the browser: it creates and mutates a Throttle cart authorized by a publishable quote token (pk_…, the same token used by StorefrontQuoteClient) plus the application origin allowlist, and an opaquecart_…session id scoped to that one cart.Typical use: