Documentation
¶
Index ¶
- type AuditEvent
- type ConfirmTOTPSecretParams
- type ConsumeRecoveryCodeByIDParams
- type CountGroupsByOrganizationParams
- type CountUsersByOrganizationParams
- type CountUsersWithPermissionInOrgParams
- type CreateMagicLinkParams
- type CreatePasswordResetTokenParams
- type CreateSessionParams
- type CreateSessionWithAuthLevelParams
- type CreateUserParams
- type DBTX
- type DeleteGroupMemberParams
- type DeleteOrganizationMemberParams
- type DeleteWebAuthnCredentialParams
- type GrantUserRoleParams
- type Group
- type GroupByExternalIDInOrgParams
- type GroupMember
- type InsertAuditEventParams
- type InsertGroupMemberParams
- type InsertGroupParams
- type InsertOrganizationParams
- type InsertPermissionParams
- type InsertRecoveryCodeParams
- type InsertRoleParams
- type InsertRolePermissionParams
- 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 Permission
- type PermissionsForUserInOrgParams
- 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) CountUsersWithPermissionInOrg(ctx context.Context, arg CountUsersWithPermissionInOrgParams) (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) DeleteRolePermissions(ctx context.Context, roleID pgtype.UUID) error
- func (q *Queries) DeleteRoleRow(ctx context.Context, id pgtype.UUID) (int64, 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) GrantUserRole(ctx context.Context, arg GrantUserRoleParams) 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) InsertAuditEvent(ctx context.Context, arg InsertAuditEventParams) 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) InsertPermission(ctx context.Context, arg InsertPermissionParams) (Permission, error)
- func (q *Queries) InsertRecoveryCode(ctx context.Context, arg InsertRecoveryCodeParams) error
- func (q *Queries) InsertRole(ctx context.Context, arg InsertRoleParams) (Role, error)
- func (q *Queries) InsertRolePermission(ctx context.Context, arg InsertRolePermissionParams) 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) ListPermissions(ctx context.Context) ([]Permission, 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) PermissionByName(ctx context.Context, name string) (Permission, error)
- func (q *Queries) PermissionsByRoleID(ctx context.Context, roleID pgtype.UUID) ([]string, error)
- func (q *Queries) PermissionsForUserInOrg(ctx context.Context, arg PermissionsForUserInOrgParams) ([]string, 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) RevokeUserRole(ctx context.Context, arg RevokeUserRoleParams) (int64, error)
- func (q *Queries) RevokeUserSessions(ctx context.Context, userID pgtype.UUID) error
- func (q *Queries) RoleByID(ctx context.Context, id pgtype.UUID) (Role, error)
- func (q *Queries) RoleByOrgAndName(ctx context.Context, arg RoleByOrgAndNameParams) (Role, error)
- func (q *Queries) RolesByOrganization(ctx context.Context, organizationID pgtype.UUID) ([]Role, error)
- func (q *Queries) RolesForUser(ctx context.Context, arg RolesForUserParams) ([]Role, 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) SessionByID(ctx context.Context, id pgtype.UUID) (Session, 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) UpdateRoleRow(ctx context.Context, arg UpdateRoleRowParams) (Role, 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) UpdateWebAuthnBackupFlags(ctx context.Context, arg UpdateWebAuthnBackupFlagsParams) (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 RevokeUserRoleParams
- type Role
- type RoleByOrgAndNameParams
- type RolePermission
- type RolesForUserParams
- 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 UpdateRoleRowParams
- type UpdateSAMLConnectionParams
- type UpdateSessionAuthLevelParams
- type UpdateUserSCIMParams
- type UpdateWebAuthnBackupFlagsParams
- type UpdateWebAuthnSignCountParams
- type UpsertOAuthAccountParams
- type UpsertOrganizationMemberParams
- type UpsertPendingTOTPSecretParams
- type UpsertSAMLIdentityParams
- type User
- type UserByEmailWithPasswordRow
- type UserByExternalIDInOrgParams
- type UserRole
- type WebauthnCredential
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditEvent ¶
type ConfirmTOTPSecretParams ¶
type ConfirmTOTPSecretParams struct {
UserID pgtype.UUID
ConfirmedAt pgtype.Timestamptz
}
type ConsumeRecoveryCodeByIDParams ¶
type ConsumeRecoveryCodeByIDParams struct {
ID pgtype.UUID
UsedAt pgtype.Timestamptz
}
type CreateMagicLinkParams ¶
type CreateMagicLinkParams struct {
ID pgtype.UUID
Email string
TokenHash []byte
ExpiresAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type CreatePasswordResetTokenParams ¶
type CreatePasswordResetTokenParams struct {
ID pgtype.UUID
UserID pgtype.UUID
TokenHash []byte
ExpiresAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type CreateSessionParams ¶
type CreateUserParams ¶
type CreateUserParams struct {
ID pgtype.UUID
Email string
Name string
AvatarUrl string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type DeleteGroupMemberParams ¶
type GrantUserRoleParams ¶
type Group ¶
type Group struct {
ID pgtype.UUID
OrganizationID pgtype.UUID
DisplayName string
ExternalID *string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type InsertAuditEventParams ¶
type InsertAuditEventParams struct {
ID pgtype.UUID
OrganizationID pgtype.UUID
ActorUserID pgtype.UUID
ActorSessionID pgtype.UUID
Action string
TargetType pgtype.Text
TargetID pgtype.Text
Metadata []byte
Ip pgtype.Text // serialised inet via host(), see postgres_v10.go
UserAgent pgtype.Text
CreatedAt pgtype.Timestamptz
}
type InsertGroupMemberParams ¶
type InsertGroupParams ¶
type InsertOrganizationParams ¶
type InsertOrganizationParams struct {
ID pgtype.UUID
Name string
Slug string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type InsertPermissionParams ¶
type InsertRoleParams ¶
type InsertRoleParams struct {
ID pgtype.UUID
OrganizationID pgtype.UUID
Name string
Description string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type InsertSCIMTokenParams ¶
type MagicLink ¶
type MagicLink struct {
ID pgtype.UUID
Email string
TokenHash []byte
ExpiresAt pgtype.Timestamptz
UsedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type OauthAccount ¶
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 ¶
type Organization struct {
ID pgtype.UUID
Name string
Slug string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type OrganizationMember ¶
type PasswordResetToken ¶
type PasswordResetToken struct {
ID pgtype.UUID
UserID pgtype.UUID
TokenHash []byte
ExpiresAt pgtype.Timestamptz
UsedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type Permission ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ConfirmTOTPSecret ¶
func (*Queries) ConsumeMagicLink ¶
func (*Queries) ConsumePasswordResetToken ¶
func (*Queries) ConsumeRecoveryCodeByID ¶
func (*Queries) CountGroupsByOrganization ¶
func (*Queries) CountUsersByOrganization ¶
func (*Queries) CountUsersWithPermissionInOrg ¶
func (*Queries) CreateMagicLink ¶
func (q *Queries) CreateMagicLink(ctx context.Context, arg CreateMagicLinkParams) error
func (*Queries) CreatePasswordResetToken ¶
func (q *Queries) CreatePasswordResetToken(ctx context.Context, arg CreatePasswordResetTokenParams) error
func (*Queries) CreateSession ¶
func (*Queries) CreateSessionWithAuthLevel ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteAllGroupMembers ¶
func (*Queries) DeleteGroup ¶
func (*Queries) DeleteGroupMember ¶
func (q *Queries) DeleteGroupMember(ctx context.Context, arg DeleteGroupMemberParams) error
func (*Queries) DeleteOrganization ¶
func (*Queries) DeleteOrganizationMember ¶
func (*Queries) DeleteRecoveryCodesByUserID ¶
func (*Queries) DeleteRolePermissions ¶
func (*Queries) DeleteRoleRow ¶
func (*Queries) DeleteSAMLConnection ¶
func (*Queries) DeleteTOTPSecret ¶
func (*Queries) DeleteWebAuthnCredential ¶
func (*Queries) GrantUserRole ¶
func (q *Queries) GrantUserRole(ctx context.Context, arg GrantUserRoleParams) error
func (*Queries) GroupByExternalIDInOrg ¶
func (*Queries) GroupMembersByGroupID ¶
func (*Queries) InsertAuditEvent ¶
func (q *Queries) InsertAuditEvent(ctx context.Context, arg InsertAuditEventParams) error
func (*Queries) InsertGroup ¶
func (*Queries) InsertGroupMember ¶
func (q *Queries) InsertGroupMember(ctx context.Context, arg InsertGroupMemberParams) error
func (*Queries) InsertOrganization ¶
func (q *Queries) InsertOrganization(ctx context.Context, arg InsertOrganizationParams) (Organization, error)
func (*Queries) InsertPermission ¶
func (q *Queries) InsertPermission(ctx context.Context, arg InsertPermissionParams) (Permission, error)
func (*Queries) InsertRecoveryCode ¶
func (q *Queries) InsertRecoveryCode(ctx context.Context, arg InsertRecoveryCodeParams) error
func (*Queries) InsertRole ¶
func (*Queries) InsertRolePermission ¶
func (q *Queries) InsertRolePermission(ctx context.Context, arg InsertRolePermissionParams) error
func (*Queries) InsertSAMLConnection ¶
func (q *Queries) InsertSAMLConnection(ctx context.Context, arg InsertSAMLConnectionParams) (SamlConnection, error)
func (*Queries) InsertSCIMToken ¶
func (*Queries) InsertWebAuthnCredential ¶
func (q *Queries) InsertWebAuthnCredential(ctx context.Context, arg InsertWebAuthnCredentialParams) (WebauthnCredential, error)
func (*Queries) ListGroupsByOrganization ¶
func (*Queries) ListPermissions ¶
func (q *Queries) ListPermissions(ctx context.Context) ([]Permission, error)
func (*Queries) ListUsersByOrganization ¶
func (*Queries) MarkEmailVerified ¶
func (*Queries) OAuthAccountByProviderUserID ¶
func (q *Queries) OAuthAccountByProviderUserID(ctx context.Context, arg OAuthAccountByProviderUserIDParams) (OauthAccount, error)
func (*Queries) OrganizationByID ¶
func (*Queries) OrganizationBySlug ¶
func (*Queries) OrganizationMemberRole ¶
func (*Queries) OrganizationMembersByOrg ¶
func (*Queries) OrganizationsByUser ¶
func (*Queries) PermissionByName ¶
func (*Queries) PermissionsByRoleID ¶
func (*Queries) PermissionsForUserInOrg ¶
func (*Queries) RecoveryCodesByUserID ¶
func (*Queries) RevokeSCIMTokenByID ¶
func (*Queries) RevokeSession ¶
func (*Queries) RevokeUserRole ¶
func (*Queries) RevokeUserSessions ¶
func (*Queries) RoleByOrgAndName ¶
func (*Queries) RolesByOrganization ¶
func (*Queries) RolesForUser ¶
func (*Queries) SAMLConnectionByID ¶
func (*Queries) SAMLConnectionsByOrg ¶
func (*Queries) SAMLIdentityByConnectionAndNameID ¶
func (q *Queries) SAMLIdentityByConnectionAndNameID(ctx context.Context, arg SAMLIdentityByConnectionAndNameIDParams) (SamlIdentity, error)
func (*Queries) SCIMTokenByHash ¶
func (*Queries) SCIMTokensByOrg ¶
func (*Queries) SessionByID ¶
func (*Queries) SessionByTokenHash ¶
func (*Queries) SetSessionActiveOrganization ¶
func (*Queries) SetUserPassword ¶
func (q *Queries) SetUserPassword(ctx context.Context, arg SetUserPasswordParams) error
func (*Queries) TOTPSecretByUserID ¶
func (*Queries) TouchSAMLIdentityLastLogin ¶
func (q *Queries) TouchSAMLIdentityLastLogin(ctx context.Context, arg TouchSAMLIdentityLastLoginParams) error
func (*Queries) TouchSCIMTokenLastUsed ¶
func (q *Queries) TouchSCIMTokenLastUsed(ctx context.Context, arg TouchSCIMTokenLastUsedParams) error
func (*Queries) UpdateGroup ¶
func (*Queries) UpdateOrganization ¶
func (*Queries) UpdateRoleRow ¶
func (*Queries) UpdateSAMLConnection ¶
func (*Queries) UpdateSessionAuthLevel ¶
func (q *Queries) UpdateSessionAuthLevel(ctx context.Context, arg UpdateSessionAuthLevelParams) error
func (*Queries) UpdateUserSCIM ¶
func (*Queries) UpdateWebAuthnBackupFlags ¶
func (*Queries) UpdateWebAuthnSignCount ¶
func (*Queries) UpsertOAuthAccount ¶
func (q *Queries) UpsertOAuthAccount(ctx context.Context, arg UpsertOAuthAccountParams) (OauthAccount, error)
func (*Queries) UpsertOrganizationMember ¶
func (q *Queries) UpsertOrganizationMember(ctx context.Context, arg UpsertOrganizationMemberParams) error
func (*Queries) UpsertPendingTOTPSecret ¶
func (q *Queries) UpsertPendingTOTPSecret(ctx context.Context, arg UpsertPendingTOTPSecretParams) error
func (*Queries) UpsertSAMLIdentity ¶
func (q *Queries) UpsertSAMLIdentity(ctx context.Context, arg UpsertSAMLIdentityParams) (SamlIdentity, error)
func (*Queries) UserByEmail ¶
func (*Queries) UserByEmailWithPassword ¶
func (*Queries) UserByExternalIDInOrg ¶
func (*Queries) WebAuthnCredentialByCredentialID ¶
func (*Queries) WebAuthnCredentialsByUserID ¶
type RevokeSCIMTokenByIDParams ¶
type RevokeSCIMTokenByIDParams struct {
ID pgtype.UUID
RevokedAt pgtype.Timestamptz
}
type RevokeUserRoleParams ¶
type Role ¶
type Role struct {
ID pgtype.UUID
OrganizationID pgtype.UUID
Name string
Description string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type RoleByOrgAndNameParams ¶
type RolesForUserParams ¶
type SamlConnection ¶
type SamlIdentity ¶
type ScimToken ¶
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
// Nullable; queries that do not select it leave the field as pgtype.UUID{Valid:false}.
ActiveOrganizationID pgtype.UUID
}
type SetUserPasswordParams ¶
type TotpRecoveryCode ¶
type TotpRecoveryCode struct {
ID pgtype.UUID
UserID pgtype.UUID
CodeHash []byte
UsedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
}
type TotpSecret ¶
type TotpSecret struct {
UserID pgtype.UUID
SecretEnc []byte
ConfirmedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
type TouchSAMLIdentityLastLoginParams ¶
type TouchSAMLIdentityLastLoginParams struct {
ID pgtype.UUID
LastLoginAt pgtype.Timestamptz
}
type TouchSCIMTokenLastUsedParams ¶
type TouchSCIMTokenLastUsedParams struct {
ID pgtype.UUID
LastUsedAt pgtype.Timestamptz
}
type UpdateGroupParams ¶
type UpdateRoleRowParams ¶
type UpdateUserSCIMParams ¶
type UpdateWebAuthnSignCountParams ¶
type UpdateWebAuthnSignCountParams struct {
CredentialID []byte
SignCount int64
LastUsedAt pgtype.Timestamptz
}
type UpsertOAuthAccountParams ¶
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 UpsertPendingTOTPSecretParams ¶
type UpsertPendingTOTPSecretParams struct {
UserID pgtype.UUID
SecretEnc []byte
CreatedAt pgtype.Timestamptz
}
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
// SCIM columns default to ” (migration 0008), so non-SCIM users read empty strings.
ExternalID string
GivenName string
FamilyName string
DisplayName string
}
type UserByEmailWithPasswordRow ¶
type UserByEmailWithPasswordRow struct {
ID pgtype.UUID
Email string
EmailVerifiedAt pgtype.Timestamptz
Name string
AvatarUrl string
CreatedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
PasswordHash string
}
type WebauthnCredential ¶
type WebauthnCredential struct {
ID pgtype.UUID
UserID pgtype.UUID
CredentialID []byte
PublicKey []byte
SignCount int64
Transports []string
Aaguid []byte
Name string
CreatedAt pgtype.Timestamptz
LastUsedAt pgtype.Timestamptz
// BackupEligible and BackupState were hand-added (migration 0017). Nullable columns map to
// pgtype.Bool, where Valid=false means never recorded.
BackupEligible pgtype.Bool
BackupState pgtype.Bool
}
Click to show internal directories.
Click to hide internal directories.