Documentation
¶
Index ¶
- type ConfirmTOTPSecretParams
- type ConsumeRecoveryCodeByIDParams
- type CountGroupsByOrganizationParams
- type CountUsersByOrganizationParams
- type CreateMagicLinkParams
- type CreatePasswordResetTokenParams
- type CreateSessionParams
- type CreateSessionWithAuthLevelParams
- type CreateUserParams
- type DBTX
- type DeleteGroupMemberParams
- type DeleteOrganizationMemberParams
- type DeleteWebAuthnCredentialParams
- type Group
- type GroupByExternalIDInOrgParams
- type GroupMember
- type InsertGroupMemberParams
- type InsertGroupParams
- type InsertOrganizationParams
- type InsertRecoveryCodeParams
- type InsertSAMLConnectionParams
- type InsertSCIMTokenParams
- type InsertWebAuthnCredentialParams
- type ListGroupsByOrganizationParams
- type ListUsersByOrganizationParams
- type MagicLink
- type OAuthAccountByProviderUserIDParams
- type OauthAccount
- type Organization
- type OrganizationMember
- type OrganizationMemberRoleParams
- type PasswordResetToken
- type Queries
- func (q *Queries) ConfirmTOTPSecret(ctx context.Context, arg ConfirmTOTPSecretParams) (int64, error)
- func (q *Queries) ConsumeMagicLink(ctx context.Context, tokenHash []byte) (MagicLink, error)
- func (q *Queries) ConsumePasswordResetToken(ctx context.Context, tokenHash []byte) (PasswordResetToken, error)
- func (q *Queries) ConsumeRecoveryCodeByID(ctx context.Context, arg ConsumeRecoveryCodeByIDParams) (int64, error)
- func (q *Queries) CountGroupsByOrganization(ctx context.Context, arg CountGroupsByOrganizationParams) (int64, error)
- func (q *Queries) CountUsersByOrganization(ctx context.Context, arg CountUsersByOrganizationParams) (int64, error)
- func (q *Queries) CreateMagicLink(ctx context.Context, arg CreateMagicLinkParams) error
- func (q *Queries) CreatePasswordResetToken(ctx context.Context, arg CreatePasswordResetTokenParams) error
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)
- func (q *Queries) CreateSessionWithAuthLevel(ctx context.Context, arg CreateSessionWithAuthLevelParams) (Session, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteAllGroupMembers(ctx context.Context, groupID pgtype.UUID) error
- func (q *Queries) DeleteGroup(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeleteGroupMember(ctx context.Context, arg DeleteGroupMemberParams) error
- func (q *Queries) DeleteOrganization(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeleteOrganizationMember(ctx context.Context, arg DeleteOrganizationMemberParams) (int64, error)
- func (q *Queries) DeleteRecoveryCodesByUserID(ctx context.Context, userID pgtype.UUID) error
- func (q *Queries) DeleteSAMLConnection(ctx context.Context, id pgtype.UUID) (int64, error)
- func (q *Queries) DeleteTOTPSecret(ctx context.Context, userID pgtype.UUID) error
- func (q *Queries) DeleteWebAuthnCredential(ctx context.Context, arg DeleteWebAuthnCredentialParams) (int64, error)
- func (q *Queries) GroupByExternalIDInOrg(ctx context.Context, arg GroupByExternalIDInOrgParams) (Group, error)
- func (q *Queries) GroupByID(ctx context.Context, id pgtype.UUID) (Group, error)
- func (q *Queries) GroupMembersByGroupID(ctx context.Context, groupID pgtype.UUID) ([]pgtype.UUID, error)
- func (q *Queries) InsertGroup(ctx context.Context, arg InsertGroupParams) (Group, error)
- func (q *Queries) InsertGroupMember(ctx context.Context, arg InsertGroupMemberParams) error
- func (q *Queries) InsertOrganization(ctx context.Context, arg InsertOrganizationParams) (Organization, error)
- func (q *Queries) InsertRecoveryCode(ctx context.Context, arg InsertRecoveryCodeParams) error
- func (q *Queries) InsertSAMLConnection(ctx context.Context, arg InsertSAMLConnectionParams) (SamlConnection, error)
- func (q *Queries) InsertSCIMToken(ctx context.Context, arg InsertSCIMTokenParams) (ScimToken, error)
- func (q *Queries) InsertWebAuthnCredential(ctx context.Context, arg InsertWebAuthnCredentialParams) (WebauthnCredential, error)
- func (q *Queries) ListGroupsByOrganization(ctx context.Context, arg ListGroupsByOrganizationParams) ([]Group, error)
- func (q *Queries) ListUsersByOrganization(ctx context.Context, arg ListUsersByOrganizationParams) ([]User, error)
- func (q *Queries) MarkEmailVerified(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) OAuthAccountByProviderUserID(ctx context.Context, arg OAuthAccountByProviderUserIDParams) (OauthAccount, error)
- func (q *Queries) OrganizationByID(ctx context.Context, id pgtype.UUID) (Organization, error)
- func (q *Queries) OrganizationBySlug(ctx context.Context, slug string) (Organization, error)
- func (q *Queries) OrganizationMemberRole(ctx context.Context, arg OrganizationMemberRoleParams) (string, error)
- func (q *Queries) OrganizationMembersByOrg(ctx context.Context, organizationID pgtype.UUID) ([]OrganizationMember, error)
- func (q *Queries) OrganizationsByUser(ctx context.Context, userID pgtype.UUID) ([]Organization, error)
- func (q *Queries) RecoveryCodesByUserID(ctx context.Context, userID pgtype.UUID) ([]TotpRecoveryCode, error)
- func (q *Queries) RevokeSCIMTokenByID(ctx context.Context, arg RevokeSCIMTokenByIDParams) (int64, error)
- func (q *Queries) RevokeSession(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) RevokeUserSessions(ctx context.Context, userID pgtype.UUID) error
- func (q *Queries) SAMLConnectionByID(ctx context.Context, id pgtype.UUID) (SamlConnection, error)
- func (q *Queries) SAMLConnectionsByOrg(ctx context.Context, organizationID pgtype.UUID) ([]SamlConnection, error)
- func (q *Queries) SAMLIdentityByConnectionAndNameID(ctx context.Context, arg SAMLIdentityByConnectionAndNameIDParams) (SamlIdentity, error)
- func (q *Queries) SCIMTokenByHash(ctx context.Context, tokenHash []byte) (ScimToken, error)
- func (q *Queries) SCIMTokensByOrg(ctx context.Context, organizationID pgtype.UUID) ([]ScimToken, error)
- func (q *Queries) SessionByTokenHash(ctx context.Context, tokenHash []byte) (Session, error)
- func (q *Queries) SetSessionActiveOrganization(ctx context.Context, arg SetSessionActiveOrganizationParams) (int64, error)
- func (q *Queries) SetUserPassword(ctx context.Context, arg SetUserPasswordParams) error
- func (q *Queries) TOTPSecretByUserID(ctx context.Context, userID pgtype.UUID) (TotpSecret, error)
- func (q *Queries) TouchSAMLIdentityLastLogin(ctx context.Context, arg TouchSAMLIdentityLastLoginParams) error
- func (q *Queries) TouchSCIMTokenLastUsed(ctx context.Context, arg TouchSCIMTokenLastUsedParams) error
- func (q *Queries) UpdateGroup(ctx context.Context, arg UpdateGroupParams) (int64, error)
- func (q *Queries) UpdateOrganization(ctx context.Context, arg UpdateOrganizationParams) (int64, error)
- func (q *Queries) UpdateSAMLConnection(ctx context.Context, arg UpdateSAMLConnectionParams) (int64, error)
- func (q *Queries) UpdateSessionAuthLevel(ctx context.Context, arg UpdateSessionAuthLevelParams) error
- func (q *Queries) UpdateUserSCIM(ctx context.Context, arg UpdateUserSCIMParams) (int64, error)
- func (q *Queries) UpdateWebAuthnSignCount(ctx context.Context, arg UpdateWebAuthnSignCountParams) (int64, error)
- func (q *Queries) UpsertOAuthAccount(ctx context.Context, arg UpsertOAuthAccountParams) (OauthAccount, error)
- func (q *Queries) UpsertOrganizationMember(ctx context.Context, arg UpsertOrganizationMemberParams) error
- func (q *Queries) UpsertPendingTOTPSecret(ctx context.Context, arg UpsertPendingTOTPSecretParams) error
- func (q *Queries) UpsertSAMLIdentity(ctx context.Context, arg UpsertSAMLIdentityParams) (SamlIdentity, error)
- func (q *Queries) UserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) UserByEmailWithPassword(ctx context.Context, email string) (UserByEmailWithPasswordRow, error)
- func (q *Queries) UserByExternalIDInOrg(ctx context.Context, arg UserByExternalIDInOrgParams) (User, error)
- func (q *Queries) UserByID(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) WebAuthnCredentialByCredentialID(ctx context.Context, credentialID []byte) (WebauthnCredential, error)
- func (q *Queries) WebAuthnCredentialsByUserID(ctx context.Context, userID pgtype.UUID) ([]WebauthnCredential, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RevokeSCIMTokenByIDParams
- type SAMLIdentityByConnectionAndNameIDParams
- type SamlConnection
- type SamlIdentity
- type ScimToken
- type Session
- type SetSessionActiveOrganizationParams
- type SetUserPasswordParams
- type TotpRecoveryCode
- type TotpSecret
- type TouchSAMLIdentityLastLoginParams
- type TouchSCIMTokenLastUsedParams
- type UpdateGroupParams
- type UpdateOrganizationParams
- type UpdateSAMLConnectionParams
- type UpdateSessionAuthLevelParams
- type UpdateUserSCIMParams
- type UpdateWebAuthnSignCountParams
- type UpsertOAuthAccountParams
- type UpsertOrganizationMemberParams
- type UpsertPendingTOTPSecretParams
- type UpsertSAMLIdentityParams
- type User
- type UserByEmailWithPasswordRow
- type UserByExternalIDInOrgParams
- type WebauthnCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmTOTPSecretParams ¶ added in v0.5.0
type ConfirmTOTPSecretParams struct {
UserID pgtype.UUID
ConfirmedAt pgtype.Timestamptz
}
type ConsumeRecoveryCodeByIDParams ¶ added in v0.5.0
type ConsumeRecoveryCodeByIDParams struct {
ID pgtype.UUID
UsedAt pgtype.Timestamptz
}
type CountGroupsByOrganizationParams ¶ added in v0.7.0
type CountUsersByOrganizationParams ¶ added in v0.7.0
type CreateMagicLinkParams ¶
type CreateMagicLinkParams struct {
ID pgtype.UUID
Email string
TokenHash []byte
ExpiresAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type CreatePasswordResetTokenParams ¶ added in v0.2.0
type CreatePasswordResetTokenParams struct {
ID pgtype.UUID
UserID pgtype.UUID
TokenHash []byte
ExpiresAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type CreateSessionParams ¶
type CreateSessionWithAuthLevelParams ¶ added in v0.5.0
type CreateUserParams ¶
type CreateUserParams struct {
ID pgtype.UUID
Email string
Name string
AvatarUrl string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type DeleteGroupMemberParams ¶ added in v0.7.0
type DeleteOrganizationMemberParams ¶ added in v0.7.0
type DeleteWebAuthnCredentialParams ¶ added in v0.5.0
type Group ¶ added in v0.7.0
type Group struct {
ID pgtype.UUID
OrganizationID pgtype.UUID
DisplayName string
ExternalID *string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type GroupByExternalIDInOrgParams ¶ added in v0.7.0
type GroupMember ¶ added in v0.7.0
type InsertGroupMemberParams ¶ added in v0.7.0
type InsertGroupParams ¶ added in v0.7.0
type InsertOrganizationParams ¶ added in v0.7.0
type InsertOrganizationParams struct {
ID pgtype.UUID
Name string
Slug string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type InsertRecoveryCodeParams ¶ added in v0.5.0
type InsertSAMLConnectionParams ¶ added in v0.7.0
type InsertSCIMTokenParams ¶ added in v0.7.0
type InsertWebAuthnCredentialParams ¶ added in v0.5.0
type ListGroupsByOrganizationParams ¶ added in v0.7.0
type ListUsersByOrganizationParams ¶ added in v0.7.0
type MagicLink ¶
type MagicLink struct {
ID pgtype.UUID
Email string
TokenHash []byte
ExpiresAt pgtype.Timestamptz
UsedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type OAuthAccountByProviderUserIDParams ¶ added in v0.3.0
type OauthAccount ¶ added in v0.3.0
type OauthAccount struct {
ID pgtype.UUID
UserID pgtype.UUID
Provider string
ProviderUserID string
AccessTokenEnc []byte
RefreshTokenEnc []byte
ExpiresAt pgtype.Timestamptz
Scope string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type Organization ¶ added in v0.7.0
type Organization struct {
ID pgtype.UUID
Name string
Slug string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type OrganizationMember ¶ added in v0.7.0
type OrganizationMemberRoleParams ¶ added in v0.7.0
type PasswordResetToken ¶ added in v0.2.0
type PasswordResetToken struct {
ID pgtype.UUID
UserID pgtype.UUID
TokenHash []byte
ExpiresAt pgtype.Timestamptz
UsedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ConfirmTOTPSecret ¶ added in v0.5.0
func (*Queries) ConsumeMagicLink ¶
func (*Queries) ConsumePasswordResetToken ¶ added in v0.2.0
func (*Queries) ConsumeRecoveryCodeByID ¶ added in v0.5.0
func (*Queries) CountGroupsByOrganization ¶ added in v0.7.0
func (*Queries) CountUsersByOrganization ¶ added in v0.7.0
func (*Queries) CreateMagicLink ¶
func (q *Queries) CreateMagicLink(ctx context.Context, arg CreateMagicLinkParams) error
func (*Queries) CreatePasswordResetToken ¶ added in v0.2.0
func (q *Queries) CreatePasswordResetToken(ctx context.Context, arg CreatePasswordResetTokenParams) error
func (*Queries) CreateSession ¶
func (*Queries) CreateSessionWithAuthLevel ¶ added in v0.5.0
func (*Queries) CreateUser ¶
func (*Queries) DeleteAllGroupMembers ¶ added in v0.7.0
func (*Queries) DeleteGroup ¶ added in v0.7.0
func (*Queries) DeleteGroupMember ¶ added in v0.7.0
func (q *Queries) DeleteGroupMember(ctx context.Context, arg DeleteGroupMemberParams) error
func (*Queries) DeleteOrganization ¶ added in v0.7.0
func (*Queries) DeleteOrganizationMember ¶ added in v0.7.0
func (*Queries) DeleteRecoveryCodesByUserID ¶ added in v0.5.0
func (*Queries) DeleteSAMLConnection ¶ added in v0.7.0
func (*Queries) DeleteTOTPSecret ¶ added in v0.5.0
func (*Queries) DeleteWebAuthnCredential ¶ added in v0.5.0
func (*Queries) GroupByExternalIDInOrg ¶ added in v0.7.0
func (*Queries) GroupMembersByGroupID ¶ added in v0.7.0
func (*Queries) InsertGroup ¶ added in v0.7.0
func (*Queries) InsertGroupMember ¶ added in v0.7.0
func (q *Queries) InsertGroupMember(ctx context.Context, arg InsertGroupMemberParams) error
func (*Queries) InsertOrganization ¶ added in v0.7.0
func (q *Queries) InsertOrganization(ctx context.Context, arg InsertOrganizationParams) (Organization, error)
func (*Queries) InsertRecoveryCode ¶ added in v0.5.0
func (q *Queries) InsertRecoveryCode(ctx context.Context, arg InsertRecoveryCodeParams) error
func (*Queries) InsertSAMLConnection ¶ added in v0.7.0
func (q *Queries) InsertSAMLConnection(ctx context.Context, arg InsertSAMLConnectionParams) (SamlConnection, error)
func (*Queries) InsertSCIMToken ¶ added in v0.7.0
func (*Queries) InsertWebAuthnCredential ¶ added in v0.5.0
func (q *Queries) InsertWebAuthnCredential(ctx context.Context, arg InsertWebAuthnCredentialParams) (WebauthnCredential, error)
func (*Queries) ListGroupsByOrganization ¶ added in v0.7.0
func (*Queries) ListUsersByOrganization ¶ added in v0.7.0
func (*Queries) MarkEmailVerified ¶
func (*Queries) OAuthAccountByProviderUserID ¶ added in v0.3.0
func (q *Queries) OAuthAccountByProviderUserID(ctx context.Context, arg OAuthAccountByProviderUserIDParams) (OauthAccount, error)
func (*Queries) OrganizationByID ¶ added in v0.7.0
func (*Queries) OrganizationBySlug ¶ added in v0.7.0
func (*Queries) OrganizationMemberRole ¶ added in v0.7.0
func (*Queries) OrganizationMembersByOrg ¶ added in v0.7.0
func (*Queries) OrganizationsByUser ¶ added in v0.7.0
func (*Queries) RecoveryCodesByUserID ¶ added in v0.5.0
func (*Queries) RevokeSCIMTokenByID ¶ added in v0.7.0
func (*Queries) RevokeSession ¶
func (*Queries) RevokeUserSessions ¶
func (*Queries) SAMLConnectionByID ¶ added in v0.7.0
func (*Queries) SAMLConnectionsByOrg ¶ added in v0.7.0
func (*Queries) SAMLIdentityByConnectionAndNameID ¶ added in v0.7.0
func (q *Queries) SAMLIdentityByConnectionAndNameID(ctx context.Context, arg SAMLIdentityByConnectionAndNameIDParams) (SamlIdentity, error)
func (*Queries) SCIMTokenByHash ¶ added in v0.7.0
func (*Queries) SCIMTokensByOrg ¶ added in v0.7.0
func (*Queries) SessionByTokenHash ¶
func (*Queries) SetSessionActiveOrganization ¶ added in v0.7.0
func (*Queries) SetUserPassword ¶ added in v0.2.0
func (q *Queries) SetUserPassword(ctx context.Context, arg SetUserPasswordParams) error
func (*Queries) TOTPSecretByUserID ¶ added in v0.5.0
func (*Queries) TouchSAMLIdentityLastLogin ¶ added in v0.7.0
func (q *Queries) TouchSAMLIdentityLastLogin(ctx context.Context, arg TouchSAMLIdentityLastLoginParams) error
func (*Queries) TouchSCIMTokenLastUsed ¶ added in v0.7.0
func (q *Queries) TouchSCIMTokenLastUsed(ctx context.Context, arg TouchSCIMTokenLastUsedParams) error
func (*Queries) UpdateGroup ¶ added in v0.7.0
func (*Queries) UpdateOrganization ¶ added in v0.7.0
func (*Queries) UpdateSAMLConnection ¶ added in v0.7.0
func (*Queries) UpdateSessionAuthLevel ¶ added in v0.5.0
func (q *Queries) UpdateSessionAuthLevel(ctx context.Context, arg UpdateSessionAuthLevelParams) error
func (*Queries) UpdateUserSCIM ¶ added in v0.7.0
func (*Queries) UpdateWebAuthnSignCount ¶ added in v0.5.0
func (*Queries) UpsertOAuthAccount ¶ added in v0.3.0
func (q *Queries) UpsertOAuthAccount(ctx context.Context, arg UpsertOAuthAccountParams) (OauthAccount, error)
func (*Queries) UpsertOrganizationMember ¶ added in v0.7.0
func (q *Queries) UpsertOrganizationMember(ctx context.Context, arg UpsertOrganizationMemberParams) error
func (*Queries) UpsertPendingTOTPSecret ¶ added in v0.5.0
func (q *Queries) UpsertPendingTOTPSecret(ctx context.Context, arg UpsertPendingTOTPSecretParams) error
func (*Queries) UpsertSAMLIdentity ¶ added in v0.7.0
func (q *Queries) UpsertSAMLIdentity(ctx context.Context, arg UpsertSAMLIdentityParams) (SamlIdentity, error)
func (*Queries) UserByEmail ¶
func (*Queries) UserByEmailWithPassword ¶ added in v0.2.0
func (*Queries) UserByExternalIDInOrg ¶ added in v0.7.0
func (*Queries) WebAuthnCredentialByCredentialID ¶ added in v0.5.0
func (*Queries) WebAuthnCredentialsByUserID ¶ added in v0.5.0
type RevokeSCIMTokenByIDParams ¶ added in v0.7.0
type RevokeSCIMTokenByIDParams struct {
ID pgtype.UUID
RevokedAt pgtype.Timestamptz
}
type SAMLIdentityByConnectionAndNameIDParams ¶ added in v0.7.0
type SamlConnection ¶ added in v0.7.0
type SamlIdentity ¶ added in v0.7.0
type ScimToken ¶ added in v0.7.0
type ScimToken struct {
ID pgtype.UUID
OrganizationID pgtype.UUID
TokenHash []byte
Name string
CreatedAt pgtype.Timestamptz
LastUsedAt pgtype.Timestamptz
RevokedAt pgtype.Timestamptz
}
type Session ¶
type Session struct {
ID pgtype.UUID
UserID pgtype.UUID
TokenHash []byte
UserAgent string
Ip *netip.Addr
CreatedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
RevokedAt pgtype.Timestamptz
AuthLevel string
// v0.7. Pgx Scan target; the column is nullable (ON DELETE SET NULL on
// organizations). Existing queries that do not SELECT this column leave
// the field as zero-value pgtype.UUID{Valid:false}.
ActiveOrganizationID pgtype.UUID
}
type SetSessionActiveOrganizationParams ¶ added in v0.7.0
type SetUserPasswordParams ¶ added in v0.2.0
type TotpRecoveryCode ¶ added in v0.5.0
type TotpRecoveryCode struct {
ID pgtype.UUID
UserID pgtype.UUID
CodeHash []byte
UsedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type TotpSecret ¶ added in v0.5.0
type TotpSecret struct {
UserID pgtype.UUID
SecretEnc []byte
ConfirmedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type TouchSAMLIdentityLastLoginParams ¶ added in v0.7.0
type TouchSAMLIdentityLastLoginParams struct {
ID pgtype.UUID
LastLoginAt pgtype.Timestamptz
}
type TouchSCIMTokenLastUsedParams ¶ added in v0.7.0
type TouchSCIMTokenLastUsedParams struct {
ID pgtype.UUID
LastUsedAt pgtype.Timestamptz
}
type UpdateGroupParams ¶ added in v0.7.0
type UpdateOrganizationParams ¶ added in v0.7.0
type UpdateSAMLConnectionParams ¶ added in v0.7.0
type UpdateSessionAuthLevelParams ¶ added in v0.5.0
type UpdateUserSCIMParams ¶ added in v0.7.0
type UpdateWebAuthnSignCountParams ¶ added in v0.5.0
type UpdateWebAuthnSignCountParams struct {
CredentialID []byte
SignCount int64
LastUsedAt pgtype.Timestamptz
}
type UpsertOAuthAccountParams ¶ added in v0.3.0
type UpsertOAuthAccountParams struct {
ID pgtype.UUID
UserID pgtype.UUID
Provider string
ProviderUserID string
AccessTokenEnc []byte
RefreshTokenEnc []byte
ExpiresAt pgtype.Timestamptz
Scope string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type UpsertOrganizationMemberParams ¶ added in v0.7.0
type UpsertPendingTOTPSecretParams ¶ added in v0.5.0
type UpsertPendingTOTPSecretParams struct {
UserID pgtype.UUID
SecretEnc []byte
CreatedAt pgtype.Timestamptz
}
type UpsertSAMLIdentityParams ¶ added in v0.7.0
type User ¶
type User struct {
ID pgtype.UUID
Email string
EmailVerifiedAt pgtype.Timestamptz
Name string
AvatarUrl string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
PasswordHash *string
// v0.7 SCIM columns. Added with NOT NULL DEFAULT ” in migration 0008,
// so existing reads keep returning empty strings for non-SCIM users.
ExternalID string
GivenName string
FamilyName string
DisplayName string
}
type UserByEmailWithPasswordRow ¶ added in v0.2.0
type UserByEmailWithPasswordRow struct {
ID pgtype.UUID
Email string
EmailVerifiedAt pgtype.Timestamptz
Name string
AvatarUrl string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
PasswordHash string
}
type UserByExternalIDInOrgParams ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.