Types And Identifiers
ID Helpers
Section titled “ID Helpers”The SDK exports branded helpers for IDs returned by Tipply:
asAccountIdasGoalIdasMediaIdasModeratorIdasPaymentIdasReportIdasTemplateIdasTipIdasUserIdasWithdrawalId
Exported Type Groups
Section titled “Exported Type Groups”The package re-exports types from:
core/typesdomain/idsdomain/shareddomain/alertsdomain/accountdomain/settingsdomain/goalsdomain/templatesdomain/tipsdomain/moderatorsdomain/withdrawalsrealtime/tip-alerts
Realtime Events
Section titled “Realtime Events”interface TipAlertsListenerEvents { ready: () => void; donation: (donation: TipAlertDonation) => void; disconnect: (reason: string) => void; error: (error: Error) => void;}Shared Request Types
Section titled “Shared Request Types”type RequestOptions = { signal?: AbortSignal; timeoutMs?: number;};type TipplySessionOptions = | { authCookie: string } | { getAuthCookie: () => string | Promise<string | null | undefined> | null | undefined } | { browserSession: true };Errors
Section titled “Errors”class TipplyError extends Error {}class TipplyHttpError extends TipplyError {}class TipplyAuthenticationError extends TipplyHttpError {}class TipplyResponseValidationError extends TipplyError {}class TipplyConfigurationError extends TipplyError {}class TipplyAuthError extends TipplyAuthenticationError {}class TipplyValidationError extends TipplyResponseValidationError {}Integration Notes
Section titled “Integration Notes”- authenticated requests use the proxy base URL by default
- public reads use the public API base URL by default
confirmationPdf.get()returnsArrayBuffer- response validation is enabled by default
- monetary values are returned as numbers in minor units