Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + const BuilderIDStartURL + const ClientName + const DefaultRegion + var ErrDeviceDenied = errors.New("the sign-in was denied in the browser") + var ErrDeviceExpired = errors.New("the sign-in code expired before it was approved") + var ErrReloginRequired = errors.New("the Kiro sign-in has expired; run `vulnesis ai-firewall kiro login` again") + var ErrSocialLogin = errors.New(...) + var ProfileRegions = []string + var Scopes = []string + func APIBaseURL(region string) string + func ARNRegion(arn string) string + func AllowedAPIURL(base string) bool + func AllowedOIDCURL(base string) bool + func CLIDatabasePaths(home string) []string + func CachePath(home string) string + func OIDCBaseURL(region string) string + func ProfilesBaseURL(region string) string + func ResolveProfile(ctx context.Context, client *http.Client, login Login, explicitARN string, ...) (Login, []Profile, error) + func ValidRegion(r string) bool + func ValidStartURL(s string) bool + type DeviceLogin struct + APIRegion string + BaseURL string + Client *http.Client + PollInterval time.Duration + ProfileARN string + Region string + SlowDown time.Duration + StartURL string + func (d DeviceLogin) Poll(ctx context.Context, g Grant) (Login, error) + func (d DeviceLogin) Start(ctx context.Context) (Grant, error) + type Endpoints struct + OIDC string + Profiles []string + type Grant struct + ExpiresIn int + Interval int + UserCode string + VerificationURI string + VerificationURIComplete string + func (g Grant) BrowseURL() string + func (g Grant) GoString() string + func (g Grant) String() string + type Login struct + APIRegion string + ClientID string + ClientSecret string + ClientSecretExpiresAt int64 + ProfileARN string + RefreshToken string + Region string + StartURL string + func Import(home string) (Login, string, error) + func Mint(ctx context.Context, client *http.Client, login Login, oidcBase string) (accessToken string, current Login, err error) + func ParseLogin(s string) (Login, error) + func (l Login) APIRegionOrDefault() string + func (l Login) Encode() string + func (l Login) Expired(now time.Time) bool + func (l Login) GoString() string + func (l Login) String() string + func (l Login) WithProfile(p Profile) Login + type Profile struct + ARN string + Name string + func ListProfiles(ctx context.Context, client *http.Client, base, accessToken string) ([]Profile, error) + func (p Profile) Region() string