Versions in this module Expand all Collapse all v1 v1.1.0 Aug 25, 2026 Changes in this version type DirectOption + func ElectAGPL() DirectOption v1.0.0 Jul 31, 2026 Changes in this version + var ErrInvalidAuthenticatedInfo = errors.New("invalid authenticated generation access") + func WithAuthenticated(ctx context.Context, info AuthenticatedInfo) (context.Context, error) + func WithDirect(ctx context.Context, options ...DirectOption) context.Context + type AuthenticatedInfo struct + AccountType shared.AccountType + BillingAddOns []shared.BillingAddOn + GeneratedLicense GeneratedLicense + TelemetryDisabled bool + WorkspaceCreatedAt *time.Time + WorkspaceID string + type DirectOption interface + func DisableTelemetry() DirectOption + type GeneratedLicense string + const GeneratedLicenseAGPL + const GeneratedLicenseCommercial + type Mode uint8 + const ModeAuthenticated + const ModeDirect + type State struct + func StateFromContext(ctx context.Context) (State, bool) + func (s State) AccountType() (shared.AccountType, bool) + func (s State) BillingAddOns() []shared.BillingAddOn + func (s State) GeneratedLicense() GeneratedLicense + func (s State) HasBillingAddOn(addOn shared.BillingAddOn) bool + func (s State) Mode() Mode + func (s State) TelemetryDisabled() bool + func (s State) WorkspaceCreatedAt() *time.Time + func (s State) WorkspaceID() (string, bool)