Versions in this module Expand all Collapse all v0 v0.1.0 Jul 18, 2026 Changes in this version + const DefaultAPIVersion + const DefaultBaseURL + var ErrUnauthenticated = errors.New("dtrpg: sdk does not have an authenticated session") + var ErrUnconfigured = errors.New("dtrpg: sdk is not configured") + type AuthSession = auth.AuthSession + type AuthSessionError = auth.AuthSessionError + type AuthState = auth.AuthState + type AuthTokenResponse = auth.AuthTokenResponse + func NewAuthTokenResponse(token, refreshToken string, refreshTokenTTL uint64) AuthTokenResponse + type Config = library.Config + func NewConfig(applicationKey string) Config + func NewConfigWithBaseURL(applicationKey, baseURL string) Config + type LibraryClient = library.Client + type LibraryItemsParams = library.LibraryItemsParams + type PageParams = library.PageParams + type Sdk struct + func NewSdk() *Sdk + func NewSdkWithConfig(config Config) *Sdk + func (s *Sdk) ApplyAuthResponse(response AuthTokenResponse) (*auth.AuthSession, error) + func (s *Sdk) ClearSession() + func (s *Sdk) Config() *Config + func (s *Sdk) Configure(config Config) + func (s *Sdk) InvalidateSession(err AuthSessionError) (AuthSessionError, error) + func (s *Sdk) LibraryClient() (*library.Client, error) + func (s *Sdk) RequireConfig() (*Config, error) + func (s *Sdk) RequireSession() (*auth.AuthSession, error) + func (s *Sdk) Session() *auth.AuthSession + type SessionTransition = auth.SessionTransition