Skip to content

index

ClassDescription
AuthenticationErrorAuthentication error (401) - Missing or invalid token
AuthorizationErrorAuthorization error (403) - Insufficient permissions
ChanomhubErrorBase error class for all SDK errors
NetworkErrorNetwork error - Fetch failures, timeouts, etc.
NotFoundErrorNot found error (404) - Resource doesn’t exist
RateLimitErrorRate limit error (429) - Too many requests
ValidationErrorValidation error (400) - Invalid request data
InterfaceDescription
ArticleFull Article type
ArticleFilterArticle filter options
ArticleListItemPartial article for list views
ArticleListOptionsArticle list options
ArticleWithDownloadsArticle with downloads response
AuthorAuthor type
AuthSessionAuth session state
ChanomhubClientChanomhub SDK Client interface
ChanomhubConfigChanomhub SDK Configuration
DownloadDownload link type
GraphQLResponseGraphQL response wrapper
ImageObjectImage object
ListOptionsPagination options
LoginResponseLogin response from backend after token exchange
LoginSupabaseRequestBackend login request
ModMod type
NamedEntityNamed entity (tag, category, platform, etc.)
NativeOAuthConfigNative OAuth provider configuration for React Native
NativeOAuthOptionsOptions for native OAuth sign-in
NativeOAuthResultNative OAuth authorization result from react-native-app-auth
OAuthOptionsOAuth redirect options
OfficialDownloadSourceOfficial download source
PaginatedResponsePaginated response wrapper
ProfilePublic profile
ProfileResponseProfile response wrapper
RefreshResponseToken refresh response from backend
RefreshTokenRequestBackend refresh token request
SupabaseSessionSupabase session (minimal type for SDK use)
UserCurrent logged-in user
UserResponseUser response wrapper
Type AliasDescription
ArticleFieldAvailable fields for custom selection
ArticlePresetField preset levels for article queries - minimal: Basic info only (id, title, slug, mainImage) - best for cards/thumbnails - standard: Common fields for list views (default) - full: All available fields including body content
ArticleStatusArticle status enum
GameEngineGame engine enum
OAuthProviderSupported OAuth providers
VariableDescription
DEFAULT_CONFIG-
FunctionDescription
createAuthenticatedClientCreates a client with authentication token Convenience function for authenticated requests
createChanomhubClientCreates a Chanomhub API client
createErrorFromStatusCreates the appropriate error class based on HTTP status code
resolveImageUrlResolves an image URL. - If it’s just a filename (e.g., “abc.jpg”), prepends the CDN base URL - If it’s already a full URL, returns it as-is - Handles null/undefined gracefully

Renames and re-exports createChanomhubClient