OptionalapiStatic API key (falls back to esriConfig.apiKey).
OptionalfetchOverride the global fetch implementation (useful in tests).
Optionalinit: RequestInitOptionalinit: RequestInitOptionalportalPortal base URL. Accepts either a portal root (https://portal.example) or
a /sharing/rest base; both normalize to the .../sharing/rest endpoint
base. Defaults to esriConfig.portalUrl.
OptionaltokenPre-obtained token to attach to authenticated calls.
Options accepted by PortalCompat.