Skip to main content
In React and TypeScript, types and interfaces describe the shape of objects you pass into hooks, props, and APIs. They tell your editor what fields exist, which are required, and what you get back from a function, so you catch mistakes early and autocomplete stays accurate. This reference lists the Headless Web SDK types you will see alongside Authentication, Ambient session creation, and Ambient session control. They are grouped below the same way you tend to use them in an app: first identity and tokens, then session context and session hook inputs and outputs. Open a card when you need the exact field list, optional vs required flags, and how a type connects to a hook or flow.

Authentication and tokens

Use these types when you configure useAuth, read results from login or registration, or type the payload when your backend refreshes a partnerToken.

UseAuthParams

Use this type to pass partnerId, partnerToken, and auto-registration settings to useAuth

LoginResponse

Use this type to read suki_token and jwt_bearer after login() succeeds

RegistrationResponse

Use this type to type the success response from registerUser()

UpdatePartnerTokenResponse

Use this type to read refreshed tokens after updatePartnerToken()

Ambient session

Use these types when you pass session context, configure useAmbientSession, or type values from sessionStatus in your UI.

SessionContext

Use this type to send patient, provider, visit, and diagnosis fields with setSessionContext

UseAmbientSessionParams

Use this type to pass ambientSessionId, audio callbacks, and onSessionTerminatedByPeer to useAmbientSession

UseAmbientSessionReturn

Use this type to type start, pause, submit, cancelRemote, endRemote, and sessionStatus

AmbientSessionStatus

Use this type for server lifecycle values such as created, submitted, and completed

Next steps

Refer to Provider for more information on how to wrap your application with the PlatformClient and PlatformClientProvider before using hooks.
Last modified on September 2, 2026