Documentation
¶
Index ¶
- type AllowedEmail
- type AuthProvider
- type Challenge
- type EmailJob
- type Organization
- type OrganizationInvitation
- type OrganizationMembership
- type Passkey
- type PendingEmailChange
- type PendingPasswordReset
- type PendingProviderLink
- type PendingSignupAction
- type RefreshToken
- type Role
- type Session
- type User
- type UserRole
- type VerificationCode
- type WebAuthnChallenge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllowedEmail ¶ added in v0.1.10
type AllowedEmail struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Email string `db:"email"`
}
func (AllowedEmail) TableName ¶ added in v0.1.10
func (AllowedEmail) TableName() string
type AuthProvider ¶
type AuthProvider struct {
ID uuid.UUID `db:"id"`
UserID uuid.UUID `db:"user_id"`
Provider string `db:"provider"`
ProviderUserID *string `db:"provider_user_id"`
PasswordHash *string `db:"password_hash"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
func (AuthProvider) TableName ¶
func (AuthProvider) TableName() string
type Challenge ¶ added in v0.1.12
type Challenge struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Purpose string `db:"purpose"`
Email string `db:"email"`
ExpiresAt time.Time `db:"expires_at"`
ConsumedAt *time.Time `db:"consumed_at"`
AttemptCount int `db:"attempt_count"`
MaxAttempts int `db:"max_attempts"`
ResendCount int `db:"resend_count"`
MaxResends int `db:"max_resends"`
LastSentAt *time.Time `db:"last_sent_at"`
}
type EmailJob ¶ added in v0.1.12
type EmailJob struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
ChallengeID *uuid.UUID `db:"challenge_id"`
ToEmail string `db:"to_email"`
Template string `db:"template"`
TemplateData []byte `db:"template_data"`
Status string `db:"status"`
AttemptCount int `db:"attempt_count"`
NextAttemptAt time.Time `db:"next_attempt_at"`
ProcessingStartedAt *time.Time `db:"processing_started_at"`
LastError *string `db:"last_error"`
SentAt *time.Time `db:"sent_at"`
}
type Organization ¶ added in v0.1.24
type Organization struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
Name string `db:"name"`
Kind string `db:"kind"`
CreatedByUserID *uuid.UUID `db:"created_by_user_id"`
}
func (Organization) TableName ¶ added in v0.1.24
func (Organization) TableName() string
type OrganizationInvitation ¶ added in v0.1.24
type OrganizationInvitation struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
OrganizationID uuid.UUID `db:"organization_id"`
Email string `db:"email"`
Role string `db:"role"`
TokenHash string `db:"token_hash"`
InvitedByUserID *uuid.UUID `db:"invited_by_user_id"`
ExpiresAt time.Time `db:"expires_at"`
AcceptedAt *time.Time `db:"accepted_at"`
AcceptedByUserID *uuid.UUID `db:"accepted_by_user_id"`
RevokedAt *time.Time `db:"revoked_at"`
RevokedByUserID *uuid.UUID `db:"revoked_by_user_id"`
}
func (OrganizationInvitation) TableName ¶ added in v0.1.24
func (OrganizationInvitation) TableName() string
type OrganizationMembership ¶ added in v0.1.24
type OrganizationMembership struct {
OrganizationID uuid.UUID `db:"organization_id"`
UserID uuid.UUID `db:"user_id"`
Role string `db:"role"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
func (OrganizationMembership) TableName ¶ added in v0.1.24
func (OrganizationMembership) TableName() string
type Passkey ¶ added in v0.1.21
type Passkey struct {
ID uuid.UUID
UserID uuid.UUID
CreatedAt time.Time
UpdatedAt time.Time
CredentialID []byte
PublicKey []byte
AttestationType string
AttestationFormat string
Transport string
AAGUID *uuid.UUID
SignCount int64
CloneWarning bool
Name string
LastUsedAt *time.Time
UserPresent bool
UserVerified bool
BackupEligible bool
BackupState bool
}
type PendingEmailChange ¶ added in v0.1.15
type PendingEmailChange struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
ChallengeID uuid.UUID `db:"challenge_id"`
UserID uuid.UUID `db:"user_id"`
OldEmail string `db:"old_email"`
NewEmail string `db:"new_email"`
}
func (PendingEmailChange) TableName ¶ added in v0.1.15
func (PendingEmailChange) TableName() string
type PendingPasswordReset ¶ added in v0.1.14
type PendingPasswordReset struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
ChallengeID uuid.UUID `db:"challenge_id"`
UserID uuid.UUID `db:"user_id"`
PasswordHash string `db:"password_hash"`
}
func (PendingPasswordReset) TableName ¶ added in v0.1.14
func (PendingPasswordReset) TableName() string
type PendingProviderLink ¶ added in v0.1.17
type PendingProviderLink struct {
ID uuid.UUID `db:"id"`
UserID uuid.UUID `db:"user_id"`
SessionID *uuid.UUID `db:"session_id"`
ChallengeID *uuid.UUID `db:"challenge_id"`
Provider string `db:"provider"`
ProviderUserID *string `db:"provider_user_id"`
ProviderEmail *string `db:"provider_email"`
ProviderEmailVerified bool `db:"provider_email_verified"`
Purpose string `db:"purpose"`
ExpiresAt time.Time `db:"expires_at"`
ConsumedAt *time.Time `db:"consumed_at"`
CreatedAt time.Time `db:"created_at"`
}
func (PendingProviderLink) TableName ¶ added in v0.1.17
func (PendingProviderLink) TableName() string
type PendingSignupAction ¶ added in v0.1.12
type PendingSignupAction struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
ChallengeID uuid.UUID `db:"challenge_id"`
Email string `db:"email"`
Username string `db:"username"`
PasswordHash string `db:"password_hash"`
InvitationID *uuid.UUID `db:"invitation_id"`
}
func (PendingSignupAction) TableName ¶ added in v0.1.12
func (PendingSignupAction) TableName() string
type RefreshToken ¶
type RefreshToken struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
SessionID uuid.UUID `db:"session_id"`
OrganizationID uuid.UUID `db:"organization_id"`
TokenHash string `db:"token_hash"`
ExpiresAt time.Time `db:"expires_at"`
ConsumedAt *time.Time `db:"consumed_at"`
}
func (RefreshToken) TableName ¶
func (RefreshToken) TableName() string
type Role ¶
type Session ¶
type Session struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
UserID uuid.UUID `db:"user_id"`
ActiveOrganizationID uuid.UUID `db:"active_organization_id"`
ExpiresAt time.Time `db:"expires_at"`
RevokedAt *time.Time `db:"revoked_at"`
UserAgent string `db:"user_agent"`
}
type User ¶
type UserRole ¶
type VerificationCode ¶ added in v0.1.12
type VerificationCode struct {
ID uuid.UUID `db:"id"`
CreatedAt time.Time `db:"created_at"`
ChallengeID uuid.UUID `db:"challenge_id"`
CodeHash string `db:"code_hash"`
ExpiresAt time.Time `db:"expires_at"`
}
func (VerificationCode) TableName ¶ added in v0.1.12
func (VerificationCode) TableName() string
type WebAuthnChallenge ¶ added in v0.1.21
type WebAuthnChallenge struct {
ID uuid.UUID
CreatedAt time.Time
UserID *uuid.UUID
Purpose string
Challenge string
SessionData []byte
ExpiresAt time.Time
ConsumedAt *time.Time
}
func (WebAuthnChallenge) TableName ¶ added in v0.1.21
func (WebAuthnChallenge) TableName() string
Click to show internal directories.
Click to hide internal directories.