sqlitegen

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnapshotInsertSlot

func SnapshotInsertSlot(query string) (int, bool)

SnapshotInsertSlot identifies the two repeated publish inserts by their exact generated SQL. This keeps transaction-local statement reuse tied to SQLC's source, without matching comments, copying queries or broadening other SQL.

Types

type AccessGrant

type AccessGrant struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       string
	ProjectID   string
	EnvID       string
	RequestID   string
	CreatedAt   string
	ExpiresAt   string
}

type AccessPolicy

type AccessPolicy struct {
	ID                 string
	OrgID              string
	ProjectID          string
	EnvironmentID      string
	Capabilities       string
	MaxDurationSeconds int64
	MinApprovals       int64
	AllowSelfApproval  int64
	RequestTtlSeconds  int64
	Enabled            int64
	Version            int64
	CreatedBy          string
	CreatedAt          string
	UpdatedAt          string
}

type AccessPolicyApprover

type AccessPolicyApprover struct {
	ID             string
	OrgID          string
	ProjectID      string
	PolicyID       string
	Kind           string
	SubjectID      string
	ScopeBindingID string
}

type AccessPolicyBypasser

type AccessPolicyBypasser struct {
	ID          string
	OrgID       string
	ProjectID   string
	PolicyID    string
	PrincipalID string
}

type AccessRequest

type AccessRequest struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	PolicyID             string
	PolicyVersion        int64
	RequesterPrincipalID string
	Capabilities         string
	DurationSeconds      int64
	Reason               string
	Bypassed             int64
	State                string
	InvalidatedCause     string
	ResolvedBy           string
	CreatedAt            string
	ReviewExpiresAt      string
	GrantedAt            sql.NullString
	ExpiresAt            sql.NullString
	ResolvedAt           sql.NullString
}

type AccessVote

type AccessVote struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
	PrincipalID   string
	Decision      string
	CreatedAt     string
}

type Account

type Account struct {
	ID                 string
	PrincipalID        string
	Username           string
	DisplayName        string
	CreatedAt          string
	WebauthnUserHandle []byte
	Email              sql.NullString
	EmailVerifiedAt    sql.NullString
}

type Adapter

type Adapter struct {
	ID                   string
	OrgID                string
	ProjectID            string
	Provider             string
	Origin               string
	CredentialCiphertext []byte
	CredentialSetAt      sql.NullString
	CredentialExpiresAt  sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
}

type AdapterAdoptionConflictCountParams

type AdapterAdoptionConflictCountParams struct {
	ArtifactID     string
	TargetID       string
	ChainOrg       string
	ChainProject   string
	EnvironmentID  string
	RepositoryID   int64
	DestinationID  int64
	Generation     int64
	Surface        string
	EffectiveName  string
	RequireVersion int64
	RequireWitness int64
}

type AdapterAdoptionInsertJobParams

type AdapterAdoptionInsertJobParams struct {
	JobID                string
	ChainOrg             string
	ChainProject         string
	EnvironmentID        string
	TargetID             string
	AuthorityPrincipalID string
	Generation           int64
	DedupKey             string
	NextAttemptAt        string
	CreatedAt            string
}

type AdapterAdoptionInsertLedgerParams

type AdapterAdoptionInsertLedgerParams struct {
	LedgerID         string
	ChainOrg         string
	ChainProject     string
	EnvironmentID    string
	TargetID         string
	ProviderOrigin   string
	DestinationKind  string
	DestinationScope string
	RepositoryID     int64
	DestinationID    int64
	Surface          string
	EffectiveName    string
	NormalizedName   string
	UpdatedAt        string
}

type AdapterAdoptionMarkConflictParams

type AdapterAdoptionMarkConflictParams struct {
	AdoptedAt     sql.NullString
	ArtifactID    string
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
	Surface       string
	EffectiveName string
}

type AdapterAdoptionReclaimReleasedLedgerParams

type AdapterAdoptionReclaimReleasedLedgerParams struct {
	EnvironmentID    string
	ProviderOrigin   string
	DestinationKind  string
	DestinationScope string
	RepositoryID     int64
	DestinationID    int64
	EffectiveName    string
	UpdatedAt        string
	TargetID         string
	ChainOrg         string
	ChainProject     string
	Surface          string
	NormalizedName   string
}

type AdapterAdoptionSupersedeJobParams

type AdapterAdoptionSupersedeJobParams struct {
	FinishedAt    sql.NullString
	JobID         string
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterAdoptionTargetParams

type AdapterAdoptionTargetParams struct {
	At           sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterAdoptionTargetRow

type AdapterAdoptionTargetRow struct {
	AdapterID        string
	EnvironmentID    string
	Origin           string
	Provider         string
	DestinationKind  string
	DestinationScope string
	RepositoryID     int64
	DestinationID    int64
	Generation       int64
	ProviderBusy     int64
	PriorJob         string
}

type AdapterAdoptionUpdateAuthorityParams

type AdapterAdoptionUpdateAuthorityParams struct {
	AuthorityPrincipalID string
	AdapterID            string
	ChainOrg             string
	ChainProject         string
}

type AdapterAdoptionUpdateHeldLedgerParams

type AdapterAdoptionUpdateHeldLedgerParams struct {
	UpdatedAt        string
	TargetID         string
	ChainOrg         string
	ChainProject     string
	EnvironmentID    string
	ProviderOrigin   string
	DestinationKind  string
	DestinationScope string
	RepositoryID     int64
	DestinationID    int64
	Surface          string
	NormalizedName   string
}

type AdapterAdoptionUpdateTargetParams

type AdapterAdoptionUpdateTargetParams struct {
	NextGeneration     int64
	JobID              sql.NullString
	TargetID           string
	ChainOrg           string
	ChainProject       string
	EnvironmentID      string
	ExpectedGeneration int64
	At                 sql.NullString
}

type AdapterBeginConfigureEffectParams

type AdapterBeginConfigureEffectParams struct {
	TargetID               string
	ChainOrg               string
	ChainProject           string
	EnvironmentID          string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	Generation             int64
	EffectID               string
	LeaseExpiresAt         string
	CreatedAt              string
}

type AdapterConfigAWSConfiguredNamesParams

type AdapterConfigAWSConfiguredNamesParams struct {
	AdapterID        string
	ChainOrg         string
	ChainProject     string
	DestinationOwner string
	ExcludeTargetID  string
}

type AdapterConfigAWSConfiguredNamesRow

type AdapterConfigAWSConfiguredNamesRow struct {
	TargetID string
	Kind     string
	Name     string
	Prefix   string
	KeyName  string
}

type AdapterConfigAWSPendingNamesParams

type AdapterConfigAWSPendingNamesParams struct {
	AdapterID        string
	ChainOrg         string
	ChainProject     string
	DestinationOwner string
	ExcludeTargetID  string
}

type AdapterConfigAWSPendingNamesRow

type AdapterConfigAWSPendingNamesRow struct {
	TargetID      string
	EffectiveName string
}

type AdapterConfigConfiguredNamesParams

type AdapterConfigConfiguredNamesParams struct {
	AdapterID        string
	ChainOrg         string
	ChainProject     string
	DestinationKind  string
	DestinationID    int64
	DestinationScope string
	ExcludeTargetID  string
}

type AdapterConfigConfiguredNamesRow

type AdapterConfigConfiguredNamesRow struct {
	TargetID      string
	Prefix        string
	CanonicalName string
}

type AdapterConfigFindingsParams

type AdapterConfigFindingsParams struct {
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
	Generation    int64
}

type AdapterConfigFindingsRow

type AdapterConfigFindingsRow struct {
	Surface       string
	EffectiveName string
	Finding       string
}

type AdapterConfigPendingNamesParams

type AdapterConfigPendingNamesParams struct {
	AdapterID              string
	ChainOrg               string
	ChainProject           string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationScope       string
	ExcludeTargetID        string
}

type AdapterConfigPendingNamesRow

type AdapterConfigPendingNamesRow struct {
	TargetID      string
	EffectiveName string
}

type AdapterConfigurationParams

type AdapterConfigurationParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterConfigurationRow

type AdapterConfigurationRow struct {
	ID                   string
	Provider             string
	Origin               string
	CredentialPresent    int64
	CredentialSetAt      sql.NullString
	CredentialExpiresAt  sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
	CredentialCiphertext []byte
}

type AdapterConfigureFence

type AdapterConfigureFence struct {
	TargetID               string
	OrgID                  string
	ProjectID              string
	EnvironmentID          string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	Generation             int64
	EffectID               string
	LeaseExpiresAt         string
	State                  string
	CreatedAt              string
	CompletedAt            sql.NullString
}

type AdapterConflict

type AdapterConflict struct {
	ID                      string
	ArtifactID              string
	OrgID                   string
	ProjectID               string
	EnvironmentID           string
	TargetID                string
	JobID                   sql.NullString
	DestinationID           int64
	TargetGeneration        int64
	Surface                 string
	EffectiveName           string
	CreatedAt               string
	AdoptedAt               sql.NullString
	RepositoryID            int64
	ObservedProviderVersion sql.NullInt64
	ObservedProviderWitness string
}

type AdapterConflictsParams

type AdapterConflictsParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterConflictsRow

type AdapterConflictsRow struct {
	ArtifactID       string
	TargetID         string
	JobID            sql.NullString
	DestinationID    int64
	RepositoryID     int64
	TargetGeneration int64
	Surface          string
	EffectiveName    string
	CreatedAt        string
}

type AdapterCreateParams

type AdapterCreateParams struct {
	AdapterID            string
	ChainOrg             string
	ChainProject         string
	Provider             string
	Origin               string
	CredentialCiphertext []byte
	CredentialSetAt      sql.NullString
	CredentialExpiresAt  sql.NullString
	AuthorityPrincipalID string
	CreatedAt            string
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
}

type AdapterDeleteTargetKeysParams

type AdapterDeleteTargetKeysParams struct {
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterEffect

type AdapterEffect struct {
	ID             string
	OrgID          string
	ProjectID      string
	EnvironmentID  string
	TargetID       string
	JobID          string
	Surface        string
	EffectiveName  string
	Disposition    string
	IntentAuditID  string
	OutcomeAuditID sql.NullString
	Outcome        sql.NullString
	CreatedAt      string
	FinishedAt     sql.NullString
	Finding        string
}

type AdapterEnqueueTargetParams

type AdapterEnqueueTargetParams struct {
	NextGeneration     int64
	JobID              sql.NullString
	TargetID           string
	ChainOrg           string
	ChainProject       string
	EnvironmentID      string
	ExpectedGeneration int64
}

type AdapterEnvironmentsParams

type AdapterEnvironmentsParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterEraseUnusedCredentialParams

type AdapterEraseUnusedCredentialParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterFinishConfigureEffectParams

type AdapterFinishConfigureEffectParams struct {
	Outcome      string
	CompletedAt  sql.NullString
	TargetID     string
	EffectID     string
	ChainOrg     string
	ChainProject string
}

type AdapterGetActiveForUpdateParams

type AdapterGetActiveForUpdateParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterGetActiveForUpdateRow

type AdapterGetActiveForUpdateRow struct {
	ID                   string
	Provider             string
	Origin               string
	CredentialPresent    int64
	CredentialSetAt      sql.NullString
	CredentialExpiresAt  sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
}

type AdapterGetActiveTargetForUpdateParams

type AdapterGetActiveTargetForUpdateParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterGetActiveTargetForUpdateRow

type AdapterGetActiveTargetForUpdateRow struct {
	ID                     string
	AdapterID              string
	EnvironmentID          string
	Provider               string
	Origin                 string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	Generation             int64
	State                  string
	SyncStatus             string
	ConvergedRevision      sql.NullInt64
	FailureNames           string
	Warnings               string
	AuthorityPrincipalID   string
	PausedAt               sql.NullString
	LastAttemptedRevision  sql.NullInt64
	LastAttemptedAt        sql.NullString
	LastErrorClass         sql.NullString
	DriftAttention         int64
	ActiveJobState         string
	NextAttemptAt          sql.NullString
	AttemptCount           int64
	DestinationScope       string
	VariableProtected      int64
	VariableHidden         int64
	VariableExpand         int64
}

type AdapterGetParams

type AdapterGetParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterGetRow

type AdapterGetRow struct {
	ID                   string
	Provider             string
	Origin               string
	CredentialPresent    int64
	CredentialSetAt      sql.NullString
	CredentialExpiresAt  sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
}

type AdapterGetTargetParams

type AdapterGetTargetParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterGetTargetRow

type AdapterGetTargetRow struct {
	ID                     string
	AdapterID              string
	EnvironmentID          string
	Provider               string
	Origin                 string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	Generation             int64
	State                  string
	SyncStatus             string
	ConvergedRevision      sql.NullInt64
	FailureNames           string
	Warnings               string
	AuthorityPrincipalID   string
	PausedAt               sql.NullString
	LastAttemptedRevision  sql.NullInt64
	LastAttemptedAt        sql.NullString
	LastErrorClass         sql.NullString
	DriftAttention         int64
	ActiveJobState         string
	NextAttemptAt          sql.NullString
	AttemptCount           int64
	DestinationScope       string
	VariableProtected      int64
	VariableHidden         int64
	VariableExpand         int64
}

type AdapterHealthCountsRow

type AdapterHealthCountsRow struct {
	TargetsFailed    int64
	TargetsPaused    int64
	TargetsAttention int64
	JobsQueued       int64
}

type AdapterInsertConflictParams

type AdapterInsertConflictParams struct {
	ID                      string
	ArtifactID              string
	ChainOrg                string
	ChainProject            string
	EnvironmentID           string
	TargetID                string
	DestinationID           int64
	RepositoryID            int64
	TargetGeneration        int64
	Surface                 string
	EffectiveName           string
	ObservedProviderVersion sql.NullInt64
	ObservedProviderWitness string
	CreatedAt               string
}

type AdapterInsertScrubJobParams

type AdapterInsertScrubJobParams struct {
	JobID                string
	ChainOrg             string
	ChainProject         string
	EnvironmentID        string
	TargetID             string
	AuthorityPrincipalID string
	Generation           int64
	DedupKey             string
	NextAttemptAt        string
	CreatedAt            string
}

type AdapterInsertTargetKeyParams

type AdapterInsertTargetKeyParams struct {
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
	TargetID      string
	AdapterID     string
	KeyID         string
}

type AdapterInsertTargetParams

type AdapterInsertTargetParams struct {
	TargetID               string
	ChainOrg               string
	ChainProject           string
	EnvironmentID          string
	AdapterID              string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	CreatedAt              string
	DestinationScope       string
	VariableProtected      int64
	VariableHidden         int64
	VariableExpand         int64
}

type AdapterLedger

type AdapterLedger struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	TargetID         string
	ProviderOrigin   string
	DestinationID    int64
	Surface          string
	EffectiveName    string
	NormalizedName   string
	State            string
	UpdatedAt        string
	DestinationKind  string
	RepositoryID     int64
	Missing          int64
	DestinationScope string
}

type AdapterListForReencryptParams

type AdapterListForReencryptParams struct {
	ChainOrg     string
	ChainProject string
	Cursor       string
	PageLimit    int64
}

type AdapterListForReencryptRow

type AdapterListForReencryptRow struct {
	ID                   string
	CredentialCiphertext []byte
}

type AdapterListMovesForReencryptParams

type AdapterListMovesForReencryptParams struct {
	ChainOrg     string
	ChainProject string
	Cursor       string
	PageLimit    int64
}

type AdapterListMovesForReencryptRow

type AdapterListMovesForReencryptRow struct {
	ID                          string
	AdapterID                   string
	PendingCredentialCiphertext []byte
}

type AdapterListParams

type AdapterListParams struct {
	ChainOrg     string
	ChainProject string
}

type AdapterListRow

type AdapterListRow struct {
	ID                   string
	Provider             string
	Origin               string
	CredentialPresent    int64
	CredentialSetAt      sql.NullString
	CredentialExpiresAt  sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
}

type AdapterListTargetsParams

type AdapterListTargetsParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterListTargetsRow

type AdapterListTargetsRow struct {
	ID                     string
	AdapterID              string
	EnvironmentID          string
	Provider               string
	Origin                 string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	Generation             int64
	State                  string
	SyncStatus             string
	ConvergedRevision      sql.NullInt64
	FailureNames           string
	Warnings               string
	AuthorityPrincipalID   string
	PausedAt               sql.NullString
	LastAttemptedRevision  sql.NullInt64
	LastAttemptedAt        sql.NullString
	LastErrorClass         sql.NullString
	DriftAttention         int64
	ActiveJobState         string
	NextAttemptAt          sql.NullString
	AttemptCount           int64
	DestinationScope       string
	VariableProtected      int64
	VariableHidden         int64
	VariableExpand         int64
}

type AdapterManualTargetParams

type AdapterManualTargetParams struct {
	At           sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterManualTargetRow

type AdapterManualTargetRow struct {
	ID            string
	EnvironmentID string
	Generation    int64
	ActiveJobID   string
	ProviderBusy  int64
	Paused        int64
}

type AdapterMappingParams

type AdapterMappingParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterMappingRow

type AdapterMappingRow struct {
	KeyID          string
	KeyName        string
	Classification string
}

type AdapterMarkTombstonedParams

type AdapterMarkTombstonedParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveAWSConfiguredNamesParams

type AdapterMoveAWSConfiguredNamesParams struct {
	ChainOrg               string
	ChainProject           string
	TargetID               string
	Origin                 string
	TargetDestinationOwner string
}

type AdapterMoveAWSConfiguredNamesRow

type AdapterMoveAWSConfiguredNamesRow struct {
	Kind    string
	Name    string
	Prefix  string
	KeyName string
}

type AdapterMoveAWSPendingNamesParams

type AdapterMoveAWSPendingNamesParams struct {
	ChainOrg               string
	ChainProject           string
	Origin                 string
	TargetDestinationOwner string
	TargetID               string
}

type AdapterMoveAWSPendingNamesRow

type AdapterMoveAWSPendingNamesRow struct {
	OtherTarget string
	Effective   string
}

type AdapterMoveActivateCanceledTargetParams

type AdapterMoveActivateCanceledTargetParams struct {
	NextGeneration      int64
	JobID               sql.NullString
	TargetTargetID      string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
	Generation          int64
}

type AdapterMoveActivateParams

type AdapterMoveActivateParams struct {
	AuthorityPrincipalID string
	MoveID               string
	ChainOrg             string
	ChainProject         string
}

type AdapterMoveBeginOriginAdapterParams

type AdapterMoveBeginOriginAdapterParams struct {
	ObservedAt        sql.NullString
	MutationAdapterID string
	ChainOrg          string
	ChainProject      string
}

type AdapterMoveBeginOriginAdapterRow

type AdapterMoveBeginOriginAdapterRow struct {
	CurrentOrigin string
	ProviderBusy  int64
}

type AdapterMoveBeginOriginCollisionsParams

type AdapterMoveBeginOriginCollisionsParams struct {
	ChainOrg          string
	ChainProject      string
	MutationAdapterID string
	MutationOrigin    string
	ChainOrg2         string
	ChainProject2     string
	MutationOrigin2   sql.NullString
}

type AdapterMoveBeginOriginTargetsParams

type AdapterMoveBeginOriginTargetsParams struct {
	MutationAdapterID string
	ChainOrg          string
	ChainProject      string
}

type AdapterMoveBeginOriginTargetsRow

type AdapterMoveBeginOriginTargetsRow struct {
	ID                     string
	EnvironmentID          string
	Kind                   string
	Owner                  string
	Name                   string
	DestinationEnvironment string
	DestinationScope       string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	Prefix                 string
	Paused                 int64
	Generation             int64
	ActiveJob              string
	OrphanedNames          string
}

type AdapterMoveBeginTargetParams

type AdapterMoveBeginTargetParams struct {
	ObservedAt       sql.NullString
	MutationTargetID string
	ChainOrg         string
	ChainProject     string
}

type AdapterMoveBeginTargetRow

type AdapterMoveBeginTargetRow struct {
	AdapterID              string
	Origin                 string
	EnvironmentID          string
	Kind                   string
	Owner                  string
	Name                   string
	DestinationEnvironment string
	DestinationScope       string
	DestinationID          int64
	Prefix                 string
	Paused                 int64
	Generation             int64
	ActiveJob              string
	ProviderBusy           int64
	OrphanedNames          string
}

type AdapterMoveCancelParams

type AdapterMoveCancelParams struct {
	MoveID       string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveCancelTargetParams

type AdapterMoveCancelTargetParams struct {
	TargetTargetID      string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveCancelTargetRow

type AdapterMoveCancelTargetRow struct {
	Generation   int64
	ProviderBusy int64
}

type AdapterMoveConfiguredCollisionParams

type AdapterMoveConfiguredCollisionParams struct {
	ChainOrg                     string
	ChainProject                 string
	TargetID                     string
	Origin                       string
	TargetDestinationKind        string
	TargetDestinationOwner       string
	TargetDestinationName        string
	TargetDestinationEnvironment string
	TargetDestinationScope       string
	PendingEffective             string
	SentinelName                 string
	PendingSurface               string
	PendingEffective2            string
}

type AdapterMoveDeleteClaimsParams

type AdapterMoveDeleteClaimsParams struct {
	MoveID       string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveDeleteKeysParams

type AdapterMoveDeleteKeysParams struct {
	MoveID              string
	TargetID            string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveFlagsParams

type AdapterMoveFlagsParams struct {
	ChainOrg        string
	ChainProject    string
	TargetAdapterID string
	TargetID        string
}

type AdapterMoveFlagsRow

type AdapterMoveFlagsRow struct {
	Provider          string
	VariableProtected int64
	VariableHidden    int64
	VariableExpand    int64
}

type AdapterMoveGetLockedParams

type AdapterMoveGetLockedParams struct {
	MoveID       string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveGetLockedRow

type AdapterMoveGetLockedRow struct {
	ID                   string
	AdapterID            string
	Kind                 string
	State                string
	KeepRemote           int64
	PendingOrigin        string
	CreatedAt            string
	AuthorityPrincipalID string
}

type AdapterMoveGetParams

type AdapterMoveGetParams struct {
	MoveID       string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveGetRow

type AdapterMoveGetRow struct {
	ID                   string
	AdapterID            string
	Kind                 string
	State                string
	KeepRemote           int64
	PendingOrigin        string
	CreatedAt            string
	AuthorityPrincipalID string
}

type AdapterMoveInsertAWSClaimParams

type AdapterMoveInsertAWSClaimParams struct {
	MoveID                       string
	ChainOrg                     string
	ChainProject                 string
	TargetEnvironmentID          string
	TargetID                     string
	KeyID                        sql.NullString
	Origin                       string
	TargetDestinationKind        string
	TargetDestinationOwner       string
	TargetDestinationName        string
	TargetDestinationEnvironment string
	Surface                      string
	ClaimEffectiveName           string
	NormalizedName               string
}

type AdapterMoveInsertActivateJobParams

type AdapterMoveInsertActivateJobParams struct {
	JobID                string
	ChainOrg             string
	ChainProject         string
	TargetEnvironmentID  string
	TargetTargetID       string
	MoveID               sql.NullString
	AuthorityPrincipalID string
	NextGeneration       int64
	TargetTargetId2      string
	NextAttemptAt        string
	CreatedAt            string
}

type AdapterMoveInsertClaimParams

type AdapterMoveInsertClaimParams struct {
	MoveID                       string
	ChainOrg                     string
	ChainProject                 string
	TargetEnvironmentID          string
	TargetID                     string
	KeyID                        sql.NullString
	Origin                       string
	TargetDestinationKind        string
	TargetDestinationOwner       string
	TargetDestinationName        string
	TargetDestinationEnvironment string
	TargetDestinationScope       string
	PendingSurface               string
	PendingEffective             string
	NormalizedName               string
}

type AdapterMoveInsertConvergeJobParams

type AdapterMoveInsertConvergeJobParams struct {
	JobID                string
	ChainOrg             string
	ChainProject         string
	TargetEnvironmentID  string
	TargetTargetID       string
	MoveID               sql.NullString
	AuthorityPrincipalID string
	NextGeneration       int64
	TargetTargetId2      string
	NextAttemptAt        string
	CreatedAt            string
}

type AdapterMoveInsertJobParams

type AdapterMoveInsertJobParams struct {
	JobID                        string
	ChainOrg                     string
	ChainProject                 string
	TargetEnvironmentID          string
	TargetID                     string
	JobKind                      string
	MutationMoveID               sql.NullString
	MutationAuthorityPrincipalID string
	Generation                   int64
	TargetId2                    string
	NextAttemptAt                string
	CreatedAt                    string
}

type AdapterMoveInsertKeyParams

type AdapterMoveInsertKeyParams struct {
	MoveID              string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
	TargetID            string
	KeyID               string
}

type AdapterMoveInsertOriginParams

type AdapterMoveInsertOriginParams struct {
	MutationMoveID                      string
	ChainOrg                            string
	ChainProject                        string
	MutationAdapterID                   string
	MutationOrigin                      sql.NullString
	MutationPendingCredentialCiphertext []byte
	MutationAuthorityPrincipalID        string
	MoveState                           string
	KeepRemote                          int64
	CreatedAt                           string
}

type AdapterMoveInsertTargetMoveParams

type AdapterMoveInsertTargetMoveParams struct {
	MutationMoveID               string
	ChainOrg                     string
	ChainProject                 string
	CurrentAdapterID             string
	MutationTargetID             sql.NullString
	MutationAuthorityPrincipalID string
	MoveState                    string
	KeepRemote                   int64
	CreatedAt                    string
}

type AdapterMoveInsertTargetParams

type AdapterMoveInsertTargetParams struct {
	MutationMoveID               string
	ChainOrg                     string
	ChainProject                 string
	TargetEnvironmentID          string
	TargetID                     string
	TargetKind                   string
	TargetOwner                  string
	TargetName                   string
	TargetDestinationEnvironment string
	TargetDestinationScope       string
	TargetRepositoryID           int64
	TargetVisibility             string
	SelectedRepositoryIds        string
	TargetPrefix                 string
	OrphanedNames                string
}

type AdapterMoveJobsParams

type AdapterMoveJobsParams struct {
	MoveID       sql.NullString
	ChainOrg     string
	ChainProject string
}

type AdapterMoveJobsRow

type AdapterMoveJobsRow struct {
	ID       string
	TargetID string
	Kind     string
	State    string
}

type AdapterMoveMarkAdapterMovingParams

type AdapterMoveMarkAdapterMovingParams struct {
	MutationAuthorityPrincipalID string
	MutationAdapterID            string
	ChainOrg                     string
	ChainProject                 string
}

type AdapterMoveMarkMovingTargetParams

type AdapterMoveMarkMovingTargetParams struct {
	Generation          int64
	JobID               sql.NullString
	TargetID            string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
	TargetGeneration    int64
}

type AdapterMoveMarkResumingTargetParams

type AdapterMoveMarkResumingTargetParams struct {
	NextGeneration      int64
	JobID               sql.NullString
	TargetTargetID      string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
	Generation          int64
}

type AdapterMovePendingKeyIDsParams

type AdapterMovePendingKeyIDsParams struct {
	MoveID              string
	TargetTargetID      string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveReleaseLedgerParams

type AdapterMoveReleaseLedgerParams struct {
	UpdatedAt           string
	TargetID            string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveReplaceOriginCollisionsParams

type AdapterMoveReplaceOriginCollisionsParams struct {
	ChainOrg      string
	ChainProject  string
	MoveAdapterID string
	Origin        string
	ChainOrg2     string
	ChainProject2 string
	MoveID        string
	Origin2       sql.NullString
}

type AdapterMoveResetDestinationsParams

type AdapterMoveResetDestinationsParams struct {
	MoveID       string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveRestoreAdapterParams

type AdapterMoveRestoreAdapterParams struct {
	AuthorityPrincipalID string
	MoveAdapterID        string
	ChainOrg             string
	ChainProject         string
}

type AdapterMoveResumeTargetParams

type AdapterMoveResumeTargetParams struct {
	TargetTargetID      string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveSetActiveAuthorityParams

type AdapterMoveSetActiveAuthorityParams struct {
	MutationAuthorityPrincipalID string
	CurrentAdapterID             string
	ChainOrg                     string
	ChainProject                 string
}

type AdapterMoveSupersedeJobParams

type AdapterMoveSupersedeJobParams struct {
	FinishedAt          sql.NullString
	TargetActiveJob     string
	TargetID            string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveTargetKeyIDsParams

type AdapterMoveTargetKeyIDsParams struct {
	TargetID            string
	ChainOrg            string
	ChainProject        string
	TargetEnvironmentID string
}

type AdapterMoveTargetsParams

type AdapterMoveTargetsParams struct {
	MoveID       string
	ChainOrg     string
	ChainProject string
}

type AdapterMoveTargetsRow

type AdapterMoveTargetsRow struct {
	TargetID               string
	EnvironmentID          string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationScope       string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	OrphanedNames          string
}

type AdapterMoveUpdateAuthorityParams

type AdapterMoveUpdateAuthorityParams struct {
	AuthorityPrincipalID string
	MoveAdapterID        string
	ChainOrg             string
	ChainProject         string
}

type AdapterMoveUpdatePendingOriginParams

type AdapterMoveUpdatePendingOriginParams struct {
	Origin            sql.NullString
	PendingCredential []byte
	MoveID            string
	ChainOrg          string
	ChainProject      string
}

type AdapterMoveUpdatePendingTargetParams

type AdapterMoveUpdatePendingTargetParams struct {
	TargetDestinationKind        string
	TargetDestinationOwner       string
	TargetDestinationName        string
	TargetDestinationEnvironment string
	TargetDestinationScope       string
	TargetRepositoryID           int64
	TargetVisibility             string
	SelectedRepositoryIds        string
	TargetNamePrefix             string
	MoveID                       string
	TargetID                     string
	ChainOrg                     string
	ChainProject                 string
	TargetEnvironmentID          string
}

type AdapterOriginCurrentRouteParams

type AdapterOriginCurrentRouteParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterOriginCurrentRouteRow

type AdapterOriginCurrentRouteRow struct {
	Provider         string
	Origin           string
	DestinationKind  string
	RepositoryID     int64
	DestinationID    int64
	DestinationScope string
}

type AdapterOriginHeldCandidatesParams

type AdapterOriginHeldCandidatesParams struct {
	Provider         string
	DestinationKind  string
	RepositoryID     int64
	DestinationID    int64
	DestinationScope string
	Surface          string
	NormalizedName   string
	Cursor           string
	TargetID         string
	Ipv6             int64
	Authority        string
	AuthorityRoot    string
	AuthorityPort    string
	AuthorityDot     string
	AuthorityDotRoot string
	AuthorityDotPort string
}

type AdapterOriginHeldCandidatesRow

type AdapterOriginHeldCandidatesRow struct {
	ID             string
	TargetID       string
	ProviderOrigin string
}

type AdapterOrphansParams

type AdapterOrphansParams struct {
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterOrphansRow

type AdapterOrphansRow struct {
	Surface       string
	EffectiveName string
}

type AdapterOutbox

type AdapterOutbox struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	TargetID             string
	Kind                 string
	RouteMoveID          sql.NullString
	AuthorityPrincipalID string
	Generation           int64
	DedupKey             string
	AttemptCount         int64
	NextAttemptAt        string
	LeaseOwner           sql.NullString
	LeaseExpiresAt       sql.NullString
	State                string
	CreatedAt            string
	FinishedAt           sql.NullString
}

type AdapterPauseTargetParams

type AdapterPauseTargetParams struct {
	At           sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterPauseTargetRow

type AdapterPauseTargetRow struct {
	AdapterID            string
	ID                   string
	EnvironmentID        string
	AuthorityPrincipalID string
	Generation           int64
	ActiveJobID          string
	ProviderBusy         int64
	Paused               int64
}

type AdapterPauseTargetUpdateParams

type AdapterPauseTargetUpdateParams struct {
	PausedAt           sql.NullString
	NextGeneration     int64
	TargetID           string
	ChainOrg           string
	ChainProject       string
	EnvironmentID      string
	ExpectedGeneration int64
	At                 sql.NullString
}

type AdapterPlanCredentialParams

type AdapterPlanCredentialParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterPlanCredentialRow

type AdapterPlanCredentialRow struct {
	CredentialCiphertext []byte
	SpkiPin              string
	CaBundlePem          string
	AllowPersonalToken   int64
}

type AdapterPlanLedgerParams

type AdapterPlanLedgerParams struct {
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
	Generation    int64
	TargetID      string
}

type AdapterPlanLedgerRow

type AdapterPlanLedgerRow struct {
	Surface         string
	EffectiveName   string
	State           string
	Missing         int64
	AdoptionPending int64
	AdoptionVersion sql.NullInt64
	AdoptionWitness string
}

type AdapterPlanManifestParams

type AdapterPlanManifestParams struct {
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterPlanManifestRow

type AdapterPlanManifestRow struct {
	KeyID          string
	KeyName        string
	Classification string
}

type AdapterPlanTargetParams

type AdapterPlanTargetParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterPlanTargetRow

type AdapterPlanTargetRow struct {
	EnvironmentID string
	DestinationID int64
	RepositoryID  int64
	Generation    int64
}

type AdapterProviderParams

type AdapterProviderParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterPublishedTargetsParams

type AdapterPublishedTargetsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterPublishedTargetsRow

type AdapterPublishedTargetsRow struct {
	ID                   string
	EnvironmentID        string
	AuthorityPrincipalID string
	Generation           int64
	ActiveJobID          string
}

type AdapterRecordCredentialExpiryParams

type AdapterRecordCredentialExpiryParams struct {
	ExpiresAt    sql.NullString
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterReencryptMoveParams

type AdapterReencryptMoveParams struct {
	NewCiphertext []byte
	ChainOrg      string
	ChainProject  string
	ID            string
	OldCiphertext []byte
}

type AdapterReencryptParams

type AdapterReencryptParams struct {
	NewCiphertext []byte
	ChainOrg      string
	ChainProject  string
	ID            string
	OldCiphertext []byte
}

type AdapterReleaseLedgerParams

type AdapterReleaseLedgerParams struct {
	UpdatedAt     string
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterReplaceCredentialBumpParams

type AdapterReplaceCredentialBumpParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
	At           sql.NullString
}

type AdapterReplaceCredentialParams

type AdapterReplaceCredentialParams struct {
	CredentialCiphertext []byte
	At                   sql.NullString
	AuthorityPrincipalID string
	AdapterID            string
	ChainOrg             string
	ChainProject         string
}

type AdapterReplaceCredentialTargetParams

type AdapterReplaceCredentialTargetParams struct {
	At           sql.NullString
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterReplaceCredentialTargetRow

type AdapterReplaceCredentialTargetRow struct {
	AuthorityPrincipalID string
	TargetCount          int64
	ProviderBusy         int64
}

type AdapterResumeAdoptedJobParams

type AdapterResumeAdoptedJobParams struct {
	AuthorityPrincipalID string
	At                   string
	JobID                string
	TargetID             string
	ChainOrg             string
	ChainProject         string
	EnvironmentID        string
	Generation           int64
}

type AdapterResumeRevisionParams

type AdapterResumeRevisionParams struct {
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterResumeTargetParams

type AdapterResumeTargetParams struct {
	TargetID           string
	ChainOrg           string
	ChainProject       string
	EnvironmentID      string
	ExpectedGeneration int64
}

type AdapterRetainTargetParams

type AdapterRetainTargetParams struct {
	NextGeneration     int64
	TargetID           string
	ChainOrg           string
	ChainProject       string
	EnvironmentID      string
	ExpectedGeneration int64
	At                 sql.NullString
}

type AdapterRetireCredentialJobsParams

type AdapterRetireCredentialJobsParams struct {
	At           sql.NullString
	ChainOrg     string
	ChainProject string
	AdapterID    string
}

type AdapterRevokeCredentialBumpParams

type AdapterRevokeCredentialBumpParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterRevokeCredentialParams

type AdapterRevokeCredentialParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterRevokeCredentialTargetParams

type AdapterRevokeCredentialTargetParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterRevokeCredentialTargetRow

type AdapterRevokeCredentialTargetRow struct {
	AuthorityPrincipalID string
	TargetCount          int64
}

type AdapterRouteMove

type AdapterRouteMove struct {
	ID                          string
	OrgID                       string
	ProjectID                   string
	AdapterID                   string
	TargetID                    sql.NullString
	Kind                        string
	PendingOrigin               sql.NullString
	PendingCredentialCiphertext []byte
	AuthorityPrincipalID        string
	State                       string
	KeepRemote                  int64
	CreatedAt                   string
}

type AdapterRouteMoveClaim

type AdapterRouteMoveClaim struct {
	MoveID                 string
	OrgID                  string
	ProjectID              string
	EnvironmentID          string
	TargetID               string
	KeyID                  sql.NullString
	ProviderOrigin         string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationScope       string
	Surface                string
	EffectiveName          string
	NormalizedName         string
}

type AdapterRouteMoveKey

type AdapterRouteMoveKey struct {
	MoveID        string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	TargetID      string
	KeyID         string
}

type AdapterRouteMoveTarget

type AdapterRouteMoveTarget struct {
	MoveID                 string
	OrgID                  string
	ProjectID              string
	EnvironmentID          string
	TargetID               string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	OrphanedNames          string
	DestinationScope       string
}

type AdapterScrubTargetParams

type AdapterScrubTargetParams struct {
	NextGeneration     int64
	JobID              sql.NullString
	TargetID           string
	ChainOrg           string
	ChainProject       string
	EnvironmentID      string
	ExpectedGeneration int64
	At                 sql.NullString
}

type AdapterTarget

type AdapterTarget struct {
	ID                     string
	OrgID                  string
	ProjectID              string
	EnvironmentID          string
	AdapterID              string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	Generation             int64
	State                  string
	SyncStatus             string
	FailureNames           string
	Warnings               string
	ConvergedRevision      sql.NullInt64
	ActiveJobID            sql.NullString
	ProviderLeaseJobID     sql.NullString
	ProviderLeaseEffectID  sql.NullString
	ProviderLeaseExpiresAt sql.NullString
	CreatedAt              string
	PausedAt               sql.NullString
	LastAttemptedRevision  sql.NullInt64
	LastAttemptedAt        sql.NullString
	LastErrorClass         sql.NullString
	DriftAttention         int64
	DestinationScope       string
	VariableProtected      int64
	VariableHidden         int64
	VariableExpand         int64
}

type AdapterTargetActiveJobParams

type AdapterTargetActiveJobParams struct {
	TargetID      string
	ChainOrg      string
	ChainProject  string
	EnvironmentID string
}

type AdapterTargetEnvironmentsParams

type AdapterTargetEnvironmentsParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterTargetKey

type AdapterTargetKey struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	TargetID      string
	AdapterID     string
	KeyID         string
}

type AdapterTargetKeyIDsParams

type AdapterTargetKeyIDsParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterTargetKeysParams

type AdapterTargetKeysParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterTargetKeysRow

type AdapterTargetKeysRow struct {
	ID             string
	Name           string
	Classification string
}

type AdapterTeardownAuthorityParams

type AdapterTeardownAuthorityParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterTeardownTargetParams

type AdapterTeardownTargetParams struct {
	At           sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
}

type AdapterTeardownTargetRow

type AdapterTeardownTargetRow struct {
	AdapterID            string
	ID                   string
	EnvironmentID        string
	AuthorityPrincipalID string
	Generation           int64
	ActiveJobID          string
	ProviderBusy         int64
}

type AdapterTeardownTargetsParams

type AdapterTeardownTargetsParams struct {
	At           sql.NullString
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterTeardownTargetsRow

type AdapterTeardownTargetsRow struct {
	AdapterID            string
	ID                   string
	EnvironmentID        string
	AuthorityPrincipalID string
	Generation           int64
	ActiveJobID          string
	ProviderBusy         int64
}

type AdapterTeardownUnfinishedMovesParams

type AdapterTeardownUnfinishedMovesParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterUpdateActiveAuthorityParams

type AdapterUpdateActiveAuthorityParams struct {
	AuthorityPrincipalID string
	AdapterID            string
	ChainOrg             string
	ChainProject         string
}

type AdapterUpdateAuthorityExpiryParams

type AdapterUpdateAuthorityExpiryParams struct {
	AuthorityPrincipalID string
	CredentialExpiresAt  sql.NullString
	AdapterID            string
	ChainOrg             string
	ChainProject         string
}

type AdapterUpdateTargetConfigParams

type AdapterUpdateTargetConfigParams struct {
	Visibility            string
	SelectedRepositoryIds string
	NamePrefix            string
	VariableProtected     int64
	VariableHidden        int64
	VariableExpand        int64
	TargetID              string
	ChainOrg              string
	ChainProject          string
	ExpectedGeneration    int64
}

type AdapterWorkerActivateApplyTargetParams

type AdapterWorkerActivateApplyTargetParams struct {
	Kind                   string
	Owner                  string
	Name                   string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRaw            string
	Prefix                 string
	Generation             int64
	ConvergeID             sql.NullString
	TargetID               string
	ChainOrg               string
	ChainProject           string
	CurrentEnvironment     string
	ExpectedGeneration     int64
}

type AdapterWorkerActivateCollisionQueryParams

type AdapterWorkerActivateCollisionQueryParams struct {
	RouteMoveID   string
	TargetID      string
	PendingOrigin string
	Kind          string
	RepositoryID  int64
	DestinationID int64
	SentinelName  string
}

type AdapterWorkerActivateCompleteMoveParams

type AdapterWorkerActivateCompleteMoveParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
	TargetID     sql.NullString
}

type AdapterWorkerActivateDeleteClaimsParams

type AdapterWorkerActivateDeleteClaimsParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerActivateDeleteKeysParams

type AdapterWorkerActivateDeleteKeysParams struct {
	TargetID           string
	ChainOrg           string
	ChainProject       string
	CurrentEnvironment string
}

type AdapterWorkerActivateFinishParams

type AdapterWorkerActivateFinishParams struct {
	At           sql.NullString
	JobID        string
	RouteMoveID  sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	LeaseOwner   sql.NullString
}

type AdapterWorkerActivateInsertJobParams

type AdapterWorkerActivateInsertJobParams struct {
	ConvergeID         string
	ChainOrg           string
	ChainProject       string
	PendingEnvironment string
	TargetID           string
	RouteMoveID        sql.NullString
	AuthorityPrincipal string
	Generation         int64
	At                 string
}

type AdapterWorkerActivateInsertKeysParams

type AdapterWorkerActivateInsertKeysParams struct {
	AdapterID          string
	RouteMoveID        string
	TargetID           string
	ChainOrg           string
	ChainProject       string
	PendingEnvironment string
}

type AdapterWorkerActivateLookupParams

type AdapterWorkerActivateLookupParams struct {
	RouteMoveID  string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
}

type AdapterWorkerActivateLookupRow

type AdapterWorkerActivateLookupRow struct {
	AdapterID              string
	EnvironmentID          string
	EnvironmentID_2        string
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	Kind                   string
	PendingOrigin          string
}

type AdapterWorkerActivateOriginRouteMoveActivateAdapterParams

type AdapterWorkerActivateOriginRouteMoveActivateAdapterParams struct {
	PendingOrigin     string
	PendingCredential []byte
	At                sql.NullString
	Expires           sql.NullString
	AdapterID         string
	ChainOrg          string
	ChainProject      string
}

type AdapterWorkerActivateOriginRouteMoveApplyTargetParams

type AdapterWorkerActivateOriginRouteMoveApplyTargetParams struct {
	Kind                   string
	Owner                  string
	Name                   string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRaw            string
	Prefix                 string
	Generation             int64
	ConvergeID             sql.NullString
	EffectID               string
	AdapterID              string
	ChainOrg               string
	ChainProject           string
	Environment            string
	ExpectedGeneration     int64
}

type AdapterWorkerActivateOriginRouteMoveCompleteMoveParams

type AdapterWorkerActivateOriginRouteMoveCompleteMoveParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
	AdapterID    string
}

type AdapterWorkerActivateOriginRouteMoveCountUnresolvedParams

type AdapterWorkerActivateOriginRouteMoveCountUnresolvedParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerActivateOriginRouteMoveDeleteClaimsParams

type AdapterWorkerActivateOriginRouteMoveDeleteClaimsParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerActivateOriginRouteMoveDeleteKeysParams

type AdapterWorkerActivateOriginRouteMoveDeleteKeysParams struct {
	EffectID     string
	ChainOrg     string
	ChainProject string
	Environment  string
}

type AdapterWorkerActivateOriginRouteMoveInsertJobParams

type AdapterWorkerActivateOriginRouteMoveInsertJobParams struct {
	ConvergeID         string
	ChainOrg           string
	ChainProject       string
	Environment        string
	EffectID           string
	RouteMoveID        sql.NullString
	AuthorityPrincipal string
	Generation         int64
	At                 string
}

type AdapterWorkerActivateOriginRouteMoveInsertKeysParams

type AdapterWorkerActivateOriginRouteMoveInsertKeysParams struct {
	AdapterID    string
	RouteMoveID  string
	EffectID     string
	ChainOrg     string
	ChainProject string
	Environment  string
}

type AdapterWorkerActivateOriginRouteMoveLoadPendingParams

type AdapterWorkerActivateOriginRouteMoveLoadPendingParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
	AdapterID    string
}

type AdapterWorkerActivateOriginRouteMoveLoadPendingRow

type AdapterWorkerActivateOriginRouteMoveLoadPendingRow struct {
	PendingOrigin               sql.NullString
	PendingCredentialCiphertext []byte
}

type AdapterWorkerActivateOriginRouteMoveMarkProbeParams

type AdapterWorkerActivateOriginRouteMoveMarkProbeParams struct {
	TargetID     string
	AdapterID    string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	JobID        sql.NullString
}

type AdapterWorkerActivateOriginRouteMoveTargetQueryParams

type AdapterWorkerActivateOriginRouteMoveTargetQueryParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
	AdapterID    string
}

type AdapterWorkerActivateOriginRouteMoveTargetQueryRow

type AdapterWorkerActivateOriginRouteMoveTargetQueryRow struct {
	ID                     string
	EnvironmentID          string
	Generation             int64
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
}

type AdapterWorkerActivateReleaseReservationsParams

type AdapterWorkerActivateReleaseReservationsParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerActivateSetResolvedParams

type AdapterWorkerActivateSetResolvedParams struct {
	DestinationID      int64
	RepositoryID       int64
	RouteMoveID        string
	TargetID           string
	ChainOrg           string
	ChainProject       string
	PendingEnvironment string
}

type AdapterWorkerActivateUpdateExpiryParams

type AdapterWorkerActivateUpdateExpiryParams struct {
	CredentialExpiresAt sql.NullString
	AdapterID           string
	ChainOrg            string
	ChainProject        string
}

type AdapterWorkerClaimDueSelectQueryRow

type AdapterWorkerClaimDueSelectQueryRow struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	TargetID             string
	Kind                 string
	RouteMoveID          string
	AuthorityPrincipalID string
	Generation           int64
	AttemptCount         int64
	CreatedAt            string
}

type AdapterWorkerClaimDueUpdateParams

type AdapterWorkerClaimDueUpdateParams struct {
	Attempt    int64
	Worker     sql.NullString
	LeaseUntil sql.NullString
	JobID      string
}

type AdapterWorkerCloseIndeterminateEffectsQueryParams

type AdapterWorkerCloseIndeterminateEffectsQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	At           sql.NullString
}

type AdapterWorkerCloseIndeterminateEffectsQueryRow

type AdapterWorkerCloseIndeterminateEffectsQueryRow struct {
	ID                   string
	JobID                string
	Surface              string
	EffectiveName        string
	Disposition          string
	AuthorityPrincipalID string
}

type AdapterWorkerCloseIndeterminateEffectsReleaseParams

type AdapterWorkerCloseIndeterminateEffectsReleaseParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	EffectID     sql.NullString
}

type AdapterWorkerCloseIndeterminateEffectsUpdateParams

type AdapterWorkerCloseIndeterminateEffectsUpdateParams struct {
	OutcomeAuditID sql.NullString
	At             sql.NullString
	EffectID       string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
}

type AdapterWorkerCompleteJobParams

type AdapterWorkerCompleteJobParams struct {
	State              string
	At                 sql.NullString
	JobID              string
	LeaseOwner         sql.NullString
	ChainOrg           string
	ChainProject       string
	ChainEnv           string
	TargetID           string
	Generation         int64
	AuthorityPrincipal string
	Kind               string
	RouteMoveID        string
}

type AdapterWorkerDetachSupersededJobParams

type AdapterWorkerDetachSupersededJobParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	JobID        sql.NullString
}

type AdapterWorkerFinishDeadCredentialScrubEraseParams

type AdapterWorkerFinishDeadCredentialScrubEraseParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishDeadCredentialScrubLookupParams

type AdapterWorkerFinishDeadCredentialScrubLookupParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerFinishDeadCredentialScrubMarkTargetParams

type AdapterWorkerFinishDeadCredentialScrubMarkTargetParams struct {
	FailureJSON  string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
}

type AdapterWorkerFinishDeadCredentialScrubReleaseLedgerParams

type AdapterWorkerFinishDeadCredentialScrubReleaseLedgerParams struct {
	At           string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerFinishJobAttentionParams

type AdapterWorkerFinishJobAttentionParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishJobEraseParams

type AdapterWorkerFinishJobEraseParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishJobLookupParams

type AdapterWorkerFinishJobLookupParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerFinishJobMarkTargetParams

type AdapterWorkerFinishJobMarkTargetParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
}

type AdapterWorkerFinishJobMarkTargetsParams

type AdapterWorkerFinishJobMarkTargetsParams struct {
	ErrorClass   sql.NullString
	At           sql.NullString
	ChainOrg     string
	ChainProject string
	RouteMoveID  string
}

type AdapterWorkerFinishJobQueryParams

type AdapterWorkerFinishJobQueryParams struct {
	Due                string
	JobID              string
	LeaseOwner         sql.NullString
	ChainOrg           string
	ChainProject       string
	ChainEnv           string
	TargetID           string
	Generation         int64
	AuthorityPrincipal string
	Kind               string
	RouteMoveID        string
}

type AdapterWorkerFinishJobSupersedeParams

type AdapterWorkerFinishJobSupersedeParams struct {
	At           sql.NullString
	RouteMoveID  sql.NullString
	ChainOrg     string
	ChainProject string
	JobID        string
}

type AdapterWorkerFinishOriginRouteMoveScrubActivateMoveParams

type AdapterWorkerFinishOriginRouteMoveScrubActivateMoveParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishOriginRouteMoveScrubCountHeldParams

type AdapterWorkerFinishOriginRouteMoveScrubCountHeldParams struct {
	RouteMoveID  sql.NullString
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishOriginRouteMoveScrubCountPendingParams

type AdapterWorkerFinishOriginRouteMoveScrubCountPendingParams struct {
	RouteMoveID  sql.NullString
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishOriginRouteMoveScrubInsertParams

type AdapterWorkerFinishOriginRouteMoveScrubInsertParams struct {
	ActivateID   string
	ChainOrg     string
	ChainProject string
	Environment  string
	EffectID     string
	RouteMoveID  sql.NullString
	Authority    string
	Generation   int64
	At           string
}

type AdapterWorkerFinishOriginRouteMoveScrubMarkDoneParams

type AdapterWorkerFinishOriginRouteMoveScrubMarkDoneParams struct {
	FailureJSON  string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	JobID        sql.NullString
}

type AdapterWorkerFinishOriginRouteMoveScrubMarkParams

type AdapterWorkerFinishOriginRouteMoveScrubMarkParams struct {
	ActivateID   sql.NullString
	EffectID     string
	ChainOrg     string
	ChainProject string
	Environment  string
	Generation   int64
}

type AdapterWorkerFinishOriginRouteMoveScrubTargetQueryParams

type AdapterWorkerFinishOriginRouteMoveScrubTargetQueryParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerFinishOriginRouteMoveScrubTargetQueryRow

type AdapterWorkerFinishOriginRouteMoveScrubTargetQueryRow struct {
	ID                   string
	EnvironmentID        string
	Generation           int64
	AuthorityPrincipalID string
}

type AdapterWorkerFinishReleaseLeaseParams

type AdapterWorkerFinishReleaseLeaseParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	JobID        sql.NullString
	EffectID     sql.NullString
}

type AdapterWorkerFinishRemoveParams

type AdapterWorkerFinishRemoveParams struct {
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
	Surface        string
	NormalizedName string
}

type AdapterWorkerFinishRouteMoveScrubActiveLedgerQueryParams

type AdapterWorkerFinishRouteMoveScrubActiveLedgerQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerFinishRouteMoveScrubInsertParams

type AdapterWorkerFinishRouteMoveScrubInsertParams struct {
	ActivateID         string
	ChainOrg           string
	ChainProject       string
	ChainEnv           string
	TargetID           string
	RouteMoveID        sql.NullString
	AuthorityPrincipal string
	Generation         int64
	At                 string
}

type AdapterWorkerFinishRouteMoveScrubLookupMoveParams

type AdapterWorkerFinishRouteMoveScrubLookupMoveParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
	TargetID     string
	ChainEnv     string
}

type AdapterWorkerFinishRouteMoveScrubMarkParams

type AdapterWorkerFinishRouteMoveScrubMarkParams struct {
	FailureJSON  string
	ActivateID   sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
}

type AdapterWorkerFinishRouteMoveScrubMoveParams

type AdapterWorkerFinishRouteMoveScrubMoveParams struct {
	RouteMoveID  string
	ChainOrg     string
	ChainProject string
	TargetID     sql.NullString
}

type AdapterWorkerFinishRouteMoveScrubPersistOrphansParams

type AdapterWorkerFinishRouteMoveScrubPersistOrphansParams struct {
	OrphanJSON   string
	RouteMoveID  string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerFinishUpdateEffectParams

type AdapterWorkerFinishUpdateEffectParams struct {
	OutcomeAuditID sql.NullString
	Outcome        sql.NullString
	Finding        string
	Now            sql.NullString
	EffectID       string
}

type AdapterWorkerFinishUpdateParams

type AdapterWorkerFinishUpdateParams struct {
	State          string
	Missing        int64
	Now            string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
	Surface        string
	NormalizedName string
}

type AdapterWorkerGateQueryParams

type AdapterWorkerGateQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	JobID        string
	LeaseOwner   sql.NullString
	Now          sql.NullString
}

type AdapterWorkerInsertAdapterJobAuditWithIDQueryParams

type AdapterWorkerInsertAdapterJobAuditWithIDQueryParams struct {
	EffectID           string
	Typ                string
	At                 string
	AuthorityPrincipal sql.NullString
	ChainOrg           string
	ChainProject       sql.NullString
	ChainEnv           sql.NullString
	TargetID           sql.NullString
	Outcome            string
	JobID              sql.NullString
	Payload            string
}

type AdapterWorkerInsertConflictDedupParams

type AdapterWorkerInsertConflictDedupParams struct {
	TargetID      string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
	Generation    int64
	Surface       string
	EffectiveName string
}

type AdapterWorkerInsertConflictInsertParams

type AdapterWorkerInsertConflictInsertParams struct {
	NewID         string
	ArtifactID    string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
	TargetID      string
	JobID         sql.NullString
	Generation    int64
	Surface       string
	EffectiveName string
	Now           string
}

type AdapterWorkerLoadActivationQueryParams

type AdapterWorkerLoadActivationQueryParams struct {
	JobID        string
	RouteMoveID  sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	LeaseOwner   sql.NullString
}

type AdapterWorkerLoadActivationQueryRow

type AdapterWorkerLoadActivationQueryRow struct {
	Provider                    string
	PendingOrigin               string
	ID                          string
	PendingCredentialCiphertext []byte
	EnvironmentID               string
	DestinationKind             string
	DestinationOwner            string
	DestinationName             string
	DestinationEnvironment      string
	DestinationID               int64
	RepositoryID                int64
	Visibility                  string
	SelectedRepositoryIds       string
	NamePrefix                  string
	Generation                  int64
	SpkiPin                     string
	CaBundlePem                 string
	AllowPersonalToken          int64
	DestinationScope            string
	VariableProtected           int64
	VariableHidden              int64
	VariableExpand              int64
}

type AdapterWorkerLoadExecutionCompletedQueryParams

type AdapterWorkerLoadExecutionCompletedQueryParams struct {
	ChainOrg           string
	ChainProject       sql.NullString
	ChainEnv           sql.NullString
	JobID              string
	TargetID           string
	Generation         int64
	LeaseOwner         sql.NullString
	AuthorityPrincipal string
	InputRevision      int64
}

type AdapterWorkerLoadExecutionCompletedQueryRow

type AdapterWorkerLoadExecutionCompletedQueryRow struct {
	Surface       string
	EffectiveName string
	Disposition   string
}

type AdapterWorkerLoadExecutionEntryQueryParams

type AdapterWorkerLoadExecutionEntryQueryParams struct {
	TargetID     string
	SnapshotID   string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerLoadExecutionEntryQueryRow

type AdapterWorkerLoadExecutionEntryQueryRow struct {
	ID             string
	SnapshotID     string
	KeyID          string
	KeyName        string
	Classification string
	Ciphertext     []byte
}

type AdapterWorkerLoadExecutionLedgerQueryParams

type AdapterWorkerLoadExecutionLedgerQueryParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	TargetID     string
}

type AdapterWorkerLoadExecutionLedgerQueryRow

type AdapterWorkerLoadExecutionLedgerQueryRow struct {
	Surface         string
	EffectiveName   string
	State           string
	Missing         int64
	AdoptionPending int64
	AdoptionVersion sql.NullInt64
	AdoptionWitness string
}

type AdapterWorkerLoadExecutionQueryParams

type AdapterWorkerLoadExecutionQueryParams struct {
	JobID        string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	LeaseOwner   sql.NullString
}

type AdapterWorkerLoadExecutionQueryRow

type AdapterWorkerLoadExecutionQueryRow struct {
	Provider               string
	Origin                 string
	ID                     string
	CredentialCiphertext   []byte
	DestinationKind        string
	DestinationOwner       string
	DestinationName        string
	DestinationEnvironment string
	DestinationID          int64
	RepositoryID           int64
	Visibility             string
	SelectedRepositoryIds  string
	NamePrefix             string
	Generation             int64
	Revision               int64
	SpkiPin                string
	CaBundlePem            string
	AllowPersonalToken     int64
	DestinationScope       string
	VariableProtected      int64
	VariableHidden         int64
	VariableExpand         int64
}

type AdapterWorkerLoadExecutionSnapshotQueryParams

type AdapterWorkerLoadExecutionSnapshotQueryParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerLoadExecutionSnapshotQueryRow

type AdapterWorkerLoadExecutionSnapshotQueryRow struct {
	ID                string
	Revision          int64
	ParameterContract string
}

type AdapterWorkerLockCustodyJobParams

type AdapterWorkerLockCustodyJobParams struct {
	JobID        string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	JobKind      string
	LeaseOwner   sql.NullString
	Now          sql.NullString
}

type AdapterWorkerLockCustodyTargetParams

type AdapterWorkerLockCustodyTargetParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	JobKind      string
	JobID        string
	LeaseOwner   sql.NullString
	Now          sql.NullString
}

type AdapterWorkerPinExecutionLeaseParams

type AdapterWorkerPinExecutionLeaseParams struct {
	JobID        string
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	LeaseOwner   sql.NullString
}

type AdapterWorkerPinExecutionRevisionParams

type AdapterWorkerPinExecutionRevisionParams struct {
	Revision     int64
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
}

type AdapterWorkerPrepareExplicitRecoveryParams

type AdapterWorkerPrepareExplicitRecoveryParams struct {
	Now            string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
	Surface        string
	NormalizedName string
}

type AdapterWorkerPrepareInsertParams

type AdapterWorkerPrepareInsertParams struct {
	EffectID      string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
	TargetID      string
	JobID         string
	Surface       string
	EffectiveName string
	Disposition   string
	IntentID      string
	Now           string
}

type AdapterWorkerPrepareLeaseParams

type AdapterWorkerPrepareLeaseParams struct {
	LeaseUntil sql.NullString
	JobID      string
	LeaseOwner sql.NullString
}

type AdapterWorkerPrepareProviderLeaseParams

type AdapterWorkerPrepareProviderLeaseParams struct {
	JobID        sql.NullString
	EffectID     sql.NullString
	LeaseUntil   sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
	NowStamp     sql.NullString
}

type AdapterWorkerPrepareUpdateParams

type AdapterWorkerPrepareUpdateParams struct {
	Now            string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
	Surface        string
	NormalizedName string
}

type AdapterWorkerRaiseDriftAttentionQueryParams

type AdapterWorkerRaiseDriftAttentionQueryParams struct {
	TargetID      string
	Org           string
	Project       string
	EnvironmentID string
}

type AdapterWorkerRecordJobOutcomeParams

type AdapterWorkerRecordJobOutcomeParams struct {
	TargetStatus      string
	ConvergedRevision int64
	ConvergedRev      sql.NullInt64
	FailureJSON       string
	WarningJSON       string
	Revision          int64
	Rev               sql.NullInt64
	AttemptedAt       sql.NullString
	ErrorClass        sql.NullString
	AttentionMode     int64
	RetainActiveJob   int64
	TargetID          string
	ChainOrg          string
	ChainProject      string
	ChainEnv          string
	Generation        int64
}

type AdapterWorkerRefuseRemoveParams

type AdapterWorkerRefuseRemoveParams struct {
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
	Surface        string
	NormalizedName string
}

type AdapterWorkerReleaseReservationRemoveParams

type AdapterWorkerReleaseReservationRemoveParams struct {
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	TargetID       string
	Surface        string
	NormalizedName string
	Generation     int64
	JobID          string
	LeaseOwner     sql.NullString
	Now            sql.NullString
}

type AdapterWorkerReserveCountQueryParams

type AdapterWorkerReserveCountQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerReserveCurrentRouteParams

type AdapterWorkerReserveCurrentRouteParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerReserveCurrentRouteRow

type AdapterWorkerReserveCurrentRouteRow struct {
	Origin           string
	DestinationKind  string
	DestinationID    int64
	RepositoryID     int64
	DestinationScope string
}

type AdapterWorkerReserveInsertParams

type AdapterWorkerReserveInsertParams struct {
	NewID            string
	ChainOrg         string
	ChainProject     string
	ChainEnv         string
	TargetID         string
	Origin           string
	DestinationKind  string
	RepositoryID     int64
	DestinationID    int64
	DestinationScope string
	Surface          string
	EffectiveName    string
	Normalized       string
	Reserved         string
	Now              string
}

type AdapterWorkerReserveLookupParams

type AdapterWorkerReserveLookupParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerReserveLookupRow

type AdapterWorkerReserveLookupRow struct {
	Origin           string
	DestinationKind  string
	DestinationID    int64
	RepositoryID     int64
	DestinationScope string
}

type AdapterWorkerReservePendingQueryParams

type AdapterWorkerReservePendingQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Surface      string
	Normalized   string
}

type AdapterWorkerReserveReactivateParams

type AdapterWorkerReserveReactivateParams struct {
	EffectiveName    string
	Origin           string
	DestinationKind  string
	RepositoryID     int64
	DestinationID    int64
	DestinationScope string
	Now              string
	ChainOrg         string
	ChainProject     string
	ChainEnv         string
	TargetID         string
	Surface          string
	Normalized       string
}

type AdapterWorkerReserveSelectQueryParams

type AdapterWorkerReserveSelectQueryParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	TargetID     string
	Surface      string
	Normalized   string
}

type AdapterWorkerRestoreHeldScrubAdapterParams

type AdapterWorkerRestoreHeldScrubAdapterParams struct {
	AdapterID    string
	ChainOrg     string
	ChainProject string
}

type AdapterWorkerRestoreHeldScrubTargetParams

type AdapterWorkerRestoreHeldScrubTargetParams struct {
	At           sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Generation   int64
}

type AdapterWorkerTryEnqueueDepthQueryParams

type AdapterWorkerTryEnqueueDepthQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerTryEnqueueExistsQueryParams

type AdapterWorkerTryEnqueueExistsQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerTryEnqueueInsertParams

type AdapterWorkerTryEnqueueInsertParams struct {
	JobID              string
	ChainOrg           string
	ChainProject       string
	ChainEnv           string
	TargetID           string
	Kind               string
	AuthorityPrincipal string
	Generation         int64
	At                 string
}

type AdapterWorkerTryEnqueueLookupParams

type AdapterWorkerTryEnqueueLookupParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Now          sql.NullString
}

type AdapterWorkerTryEnqueuePreviousQueryParams

type AdapterWorkerTryEnqueuePreviousQueryParams struct {
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerTryEnqueueSupersedeParams

type AdapterWorkerTryEnqueueSupersedeParams struct {
	At           sql.NullString
	TargetID     string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type AdapterWorkerTryEnqueueUpdateParams

type AdapterWorkerTryEnqueueUpdateParams struct {
	Generation         int64
	State              string
	JobID              sql.NullString
	TargetID           string
	ChainOrg           string
	ChainProject       string
	ChainEnv           string
	ExpectedGeneration int64
	At                 sql.NullString
}

type AddSCIMGroupMemberParams

type AddSCIMGroupMemberParams struct {
	ID        string
	OrgID     string
	BindingID string
	GroupID   string
	UserID    string
	CreatedAt string
}

type AdmissionCounter

type AdmissionCounter struct {
	Bucket      string
	Subject     string
	WindowStart string
	Hits        int64
	Failures    int64
	UntilAt     sql.NullString
}

type AdvanceRestoreEpochParams

type AdvanceRestoreEpochParams struct {
	CredentialEpoch int64
	RestoreEpoch    int64
	ReactivatedAt   sql.NullString
	UpdatedAt       string
}

type AdvanceTOTPStepParams

type AdvanceTOTPStepParams struct {
	LastStep   int64
	ID         string
	RowVersion int64
	LastStep_2 int64
}

type AdvanceWebAuthnSignCountParams

type AdvanceWebAuthnSignCountParams struct {
	SignCount  int64
	LastUsedAt sql.NullString
	ID         string
	RowVersion int64
}

type ApprovalPolicy

type ApprovalPolicy struct {
	ID                string
	OrgID             string
	ProjectID         string
	EnvironmentID     string
	MinApprovals      int64
	AllowSelfApproval int64
	RequestTtlSeconds int64
	Enabled           int64
	Version           int64
	CreatedBy         string
	CreatedAt         string
	UpdatedAt         string
}

type ApprovalPolicyApprover

type ApprovalPolicyApprover struct {
	ID             string
	OrgID          string
	ProjectID      string
	PolicyID       string
	Kind           string
	SubjectID      string
	ScopeBindingID string
}

type ApprovalPolicyBypasser

type ApprovalPolicyBypasser struct {
	ID          string
	OrgID       string
	ProjectID   string
	PolicyID    string
	PrincipalID string
}

type ApprovalRequest

type ApprovalRequest struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	PolicyID             string
	PolicyVersion        int64
	RequesterPrincipalID string
	VersionIds           string
	ClosedVersionIds     string
	KeyIds               string
	PreviewTokenDigest   string
	BaseRevision         int64
	Purpose              string
	State                string
	InvalidatedCause     string
	CreatedAt            string
	ExpiresAt            string
	ResolvedAt           sql.NullString
}

type ApprovalVote

type ApprovalVote struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
	PrincipalID   string
	Decision      string
	CreatedAt     string
}

type ApproveCLILoginParams

type ApproveCLILoginParams struct {
	BrowserSessionID sql.NullString
	Snapshot         string
	CodeVerifier     []byte
	ID               string
}

type ApproveCLIReauthHandoffParams

type ApproveCLIReauthHandoffParams struct {
	CodeVerifier    []byte
	ApprovedWindows string
	ID              string
}

type ApproveWorkspaceHandoffParams

type ApproveWorkspaceHandoffParams struct {
	CodeVerifier    []byte
	PrincipalID     sql.NullString
	Factors         string
	FactorClass     string
	AuthenticatedAt string
	ID              string
}

type AssertActiveTier3VersionParams

type AssertActiveTier3VersionParams struct {
	Purpose   string
	OrgID     string
	ProjectID string
	Version   int64
}

type AuditInstanceEvent

type AuditInstanceEvent struct {
	Seq               int64
	ID                string
	Type              string
	SchemaVersion     int64
	OccurredAt        string
	OccurredAsserted  int64
	RecordedAt        string
	ActorID           sql.NullString
	ActorClass        string
	ActorCredentialID sql.NullString
	AuthorityID       sql.NullString
	ObjectType        sql.NullString
	ObjectID          sql.NullString
	Outcome           string
	CorrelationID     sql.NullString
	SourceIp          sql.NullString
	UserAgent         sql.NullString
	Origin            string
	Payload           string
}

type AuditRetentionPolicy

type AuditRetentionPolicy struct {
	Singleton    int64
	AccessDays   int64
	SecurityDays int64
}

type AuditTenantEvent

type AuditTenantEvent struct {
	Seq               int64
	ID                string
	Type              string
	SchemaVersion     int64
	OccurredAt        string
	OccurredAsserted  int64
	RecordedAt        string
	ActorID           sql.NullString
	ActorClass        string
	ActorCredentialID sql.NullString
	AuthorityID       sql.NullString
	ScopeClass        string
	OrgID             string
	ProjectID         sql.NullString
	EnvID             sql.NullString
	ObjectType        sql.NullString
	ObjectID          sql.NullString
	Outcome           string
	CorrelationID     sql.NullString
	SourceIp          sql.NullString
	UserAgent         sql.NullString
	Origin            string
	Payload           string
}

type AuthInstanceState

type AuthInstanceState struct {
	ID              int64
	CredentialEpoch int64
	UpdatedAt       string
	RestoreEpoch    int64
	ReactivatedAt   sql.NullString
}

type AuthRefusalWindow

type AuthRefusalWindow struct {
	ID          int64
	WindowStart int64
	State       string
}

type BackupState

type BackupState struct {
	ID                      int64
	LastSuccessAt           sql.NullString
	LastArtifactName        string
	LastArtifactBytes       int64
	LastFailureAt           sql.NullString
	LastFailureReason       string
	LastPruneAt             sql.NullString
	LastDrillAt             sql.NullString
	LastDrillOk             int64
	LastDrillArchive        string
	LastDrillElapsedMs      int64
	LastDrillBinaryVersion  string
	LastDrillSchemaVersion  int64
	LastPruneAttemptAt      sql.NullString
	PruneFailureReason      string
	RetainedExpiredArchives int64
	LastPruneAttemptID      string
	LastArtifactSha256      string
}

type BindRemotePairedConnectionParams

type BindRemotePairedConnectionParams struct {
	ConnectionID string
	PublicJwk    string
	Thumbprint   string
	Origin       string
}

type BindSessionToOAuth2ProviderParams

type BindSessionToOAuth2ProviderParams struct {
	Oauth2ProviderID sql.NullString
	ID               string
}

type BindSessionToSAMLProviderParams

type BindSessionToSAMLProviderParams struct {
	SamlProviderID sql.NullString
	ID             string
}

type BumpFileTargetGenerationParams

type BumpFileTargetGenerationParams struct {
	UpdatedAt            string
	AuthorityPrincipalID string
	ChainOrgID           string
	ChainProjectID       string
	ID                   string
	ExpectedGeneration   int64
}

type BumpProjectSchemaRevisionParams

type BumpProjectSchemaRevisionParams struct {
	OrgID     string
	ProjectID string
}

type ClaimFederatedAuthorityParams

type ClaimFederatedAuthorityParams struct {
	ConsumedAt                sql.NullString
	EstablishedCredentialKind string
	ID                        string
}

type ClaimOfflineRecordParams

type ClaimOfflineRecordParams struct {
	PrincipalID string
	RecordID    string
	CreatedAt   string
}

type ClaimRemotePairingAttemptParams

type ClaimRemotePairingAttemptParams struct {
	ID  string
	Now string
}

type ClaimRemotePairingReplayParams

type ClaimRemotePairingReplayParams struct {
	Thumbprint  string
	JtiVerifier []byte
	ExpiresAt   string
}

type ClampDeveloperCredentialExpiryParams

type ClampDeveloperCredentialExpiryParams struct {
	Ceiling string
	ID      string
}

type ClearKeyGroupMembersParams

type ClearKeyGroupMembersParams struct {
	OrgID     string
	ProjectID string
	GroupID   sql.NullString
}

type ClearSCIMAttentionParams

type ClearSCIMAttentionParams struct {
	OrgID      string
	BindingID  string
	State      string
	SubjectRef string
}

type ClearSCIMGroupMembersParams

type ClearSCIMGroupMembersParams struct {
	OrgID     string
	BindingID string
	GroupID   string
}

type CliLoginHandoff

type CliLoginHandoff struct {
	ID               string
	StateVerifier    []byte
	CodeVerifier     []byte
	UserCodeVerifier []byte
	Transport        string
	PkceChallenge    string
	RedirectUri      string
	BrowserSessionID sql.NullString
	Snapshot         string
	CreatedAt        string
	ExpiresAt        string
	ConsumedAt       sql.NullString
	LastPollAt       string
	PollInterval     int64
}

type CliReauthHandoff

type CliReauthHandoff struct {
	ID              string
	StateVerifier   []byte
	CodeVerifier    []byte
	SessionID       string
	PrincipalID     string
	Purpose         string
	Operation       string
	EnvironmentSet  string
	KeySet          string
	PkceChallenge   string
	RedirectUri     string
	ApprovedWindows string
	CreatedAt       string
	ExpiresAt       string
	ConsumedAt      sql.NullString
}

type CommitSelfConfigTargetParams

type CommitSelfConfigTargetParams struct {
	SnapshotID         string
	Revision           int64
	UpdatedAt          string
	ExpectedGeneration int64
}

type ConfirmTOTPParams

type ConfirmTOTPParams struct {
	ConfirmedAt sql.NullString
	LastStep    int64
	ID          string
	RowVersion  int64
	LastStep_2  int64
}

type ConsumeCLILoginParams

type ConsumeCLILoginParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeCLIReauthHandoffParams

type ConsumeCLIReauthHandoffParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeCredentialAuthorityParams

type ConsumeCredentialAuthorityParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeLoginChallengeParams

type ConsumeLoginChallengeParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeOAuth2TransactionParams

type ConsumeOAuth2TransactionParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeOIDCTransactionParams

type ConsumeOIDCTransactionParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeOrgEmailInvitationParams

type ConsumeOrgEmailInvitationParams struct {
	ID            string
	TokenVerifier []byte
}

type ConsumeOutstandingAuthoritiesForAccountParams

type ConsumeOutstandingAuthoritiesForAccountParams struct {
	ConsumedAt sql.NullString
	AccountID  string
}

type ConsumeRegistrationSignupParams

type ConsumeRegistrationSignupParams struct {
	ID            string
	TokenVerifier []byte
}

type ConsumeRemotePairingExchangeParams

type ConsumeRemotePairingExchangeParams struct {
	Now   sql.NullString
	ID    string
	Epoch int64
}

type ConsumeRemotePairingInviteParams

type ConsumeRemotePairingInviteParams struct {
	Now   sql.NullString
	ID    string
	Epoch int64
}

type ConsumeSAMLTransactionParams

type ConsumeSAMLTransactionParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeSingleDecisionWindowParams

type ConsumeSingleDecisionWindowParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type ConsumeWebAuthnCeremonyParams

type ConsumeWebAuthnCeremonyParams struct {
	ConsumedAt   sql.NullString
	CredentialID sql.NullString
	ID           string
}

type ConsumeWorkspaceHandoffParams

type ConsumeWorkspaceHandoffParams struct {
	ConsumedAt sql.NullString
	ID         string
}

type CoordinationAccountFailureStateParams

type CoordinationAccountFailureStateParams struct {
	Bucket      string
	Subject     string
	WindowStart string
}

type CoordinationAccountFailureStateRow

type CoordinationAccountFailureStateRow struct {
	Failures int64
	UntilAt  sql.NullString
}

type CoordinationBumpWindowParams

type CoordinationBumpWindowParams struct {
	Bucket      string
	Subject     string
	WindowStart string
}

type CoordinationClaimLeaseParams

type CoordinationClaimLeaseParams struct {
	Name    string
	Owner   string
	Now     string
	Expires string
}

type CoordinationClearAccountParams

type CoordinationClearAccountParams struct {
	Bucket      string
	Subject     string
	WindowStart string
}

type CoordinationCountMCPClaimsParams

type CoordinationCountMCPClaimsParams struct {
	PrincipalID string
	OrgID       string
}

type CoordinationCountMCPClaimsRow

type CoordinationCountMCPClaimsRow struct {
	PrincipalCount int64
	OrgCount       int64
	InstanceCount  int64
}

type CoordinationForeignRootKeyFingerprintsParams

type CoordinationForeignRootKeyFingerprintsParams struct {
	NodeID      string
	Fingerprint string
	Since       string
}

type CoordinationInsertMCPClaimParams

type CoordinationInsertMCPClaimParams struct {
	CallID      string
	PrincipalID string
	OrgID       string
	ExpiresAt   string
}

type CoordinationLatestRolloutRow

type CoordinationLatestRolloutRow struct {
	CommandJson       string
	ResponseJson      string
	CurrentGeneration bool
}

type CoordinationLeaseHolderRow

type CoordinationLeaseHolderRow struct {
	Owner      string
	AcquiredAt string
	ExpiresAt  string
}

type CoordinationPruneAccountBackoffParams

type CoordinationPruneAccountBackoffParams struct {
	Bucket string
	Cutoff sql.NullString
}

type CoordinationPruneAdmissionWindowsParams

type CoordinationPruneAdmissionWindowsParams struct {
	Bucket string
	Cutoff string
}

type CoordinationRecordAccountFailureParams

type CoordinationRecordAccountFailureParams struct {
	Bucket      string
	Subject     string
	WindowStart string
	Now         sql.NullString
}

type CoordinationReleaseLeaseParams

type CoordinationReleaseLeaseParams struct {
	Expires string
	Name    string
	Owner   string
	Fence   int64
}

type CoordinationRenewLeaseParams

type CoordinationRenewLeaseParams struct {
	Expires string
	Name    string
	Owner   string
	Fence   int64
	Now     string
}

type CoordinationSelfConfigGenerationRow

type CoordinationSelfConfigGenerationRow struct {
	OwnerInstanceID     string
	Generation          int64
	Incarnation         string
	Suspended           int64
	DeploymentRestoring bool
}

type CoordinationSelfConfigSeedAttestParams

type CoordinationSelfConfigSeedAttestParams struct {
	NodeID        string
	SchemaVersion int64
	Fingerprint   string
	HeartbeatAt   string
}

type CoordinationSetMCPRateBucketParams

type CoordinationSetMCPRateBucketParams struct {
	PrincipalID string
	NextAt      string
}

type CoordinationUpsertNodeParams

type CoordinationUpsertNodeParams struct {
	NodeID             string
	BinaryVersion      string
	SchemaVersion      int64
	RootKeyFingerprint string
	StartedAt          string
	HeartbeatAt        string
}

type CountDeliveryTargetReportsForPrincipalParams

type CountDeliveryTargetReportsForPrincipalParams struct {
	OrgID       string
	ProjectID   string
	PrincipalID string
}

type CountEnvironmentPKICertificatesParams

type CountEnvironmentPKICertificatesParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type CountEnvironmentValuesParams

type CountEnvironmentValuesParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type CountEnvironmentsParams

type CountEnvironmentsParams struct {
	OrgID     string
	ProjectID string
}

type CountExternalIdentitiesForIssuerParams

type CountExternalIdentitiesForIssuerParams struct {
	Kind   string
	Issuer string
}

type CountIncompatiblePasswordKDFsParams

type CountIncompatiblePasswordKDFsParams struct {
	MemoryKib   int64
	TimeCost    int64
	Parallelism int64
}

type CountKeyGroupsParams

type CountKeyGroupsParams struct {
	OrgID     string
	ProjectID string
}

type CountKeysParams

type CountKeysParams struct {
	OrgID     string
	ProjectID string
}

type CountLiveMachineCredentialsInProjectParams

type CountLiveMachineCredentialsInProjectParams struct {
	OrgID           string
	ProjectID       string
	CredentialEpoch int64
	ExpiresAt       sql.NullString
}

type CountLiveMachineCredentialsInProjectRow

type CountLiveMachineCredentialsInProjectRow struct {
	ServiceAccountID string
	Live             int64
}

type CountLiveMachineCredentialsParams

type CountLiveMachineCredentialsParams struct {
	ServiceAccountID string
	CredentialEpoch  int64
	ExpiresAt        sql.NullString
}

type CountLiveOrgEmailInvitationsParams

type CountLiveOrgEmailInvitationsParams struct {
	OrgID     string
	ExpiresAt string
}

type CountLiveRemotePairingExchangesParams

type CountLiveRemotePairingExchangesParams struct {
	InviteID string
	Now      string
}

type CountOpenPlansParams

type CountOpenPlansParams struct {
	OrgID     string
	ProjectID string
	Applied   int64
	ExpiresAt string
}

type CountPendingChangeForCellParams

type CountPendingChangeForCellParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
	OwnerID       string
}

type CountPendingChangesForProjectParams

type CountPendingChangesForProjectParams struct {
	OrgID     string
	ProjectID string
}

type CountPersonalValuesForEnvironmentParams

type CountPersonalValuesForEnvironmentParams struct {
	ChainOrgID     string
	ChainProjectID string
	EnvironmentID  string
}

type CountPersonalValuesForProjectParams

type CountPersonalValuesForProjectParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type CountRevisionPinsForProjectParams

type CountRevisionPinsForProjectParams struct {
	OrgID     string
	ProjectID string
}

type CountSCIMGroupsByDisplayNameParams

type CountSCIMGroupsByDisplayNameParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
}

type CountSCIMGroupsByExternalIDParams

type CountSCIMGroupsByExternalIDParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
}

type CountSCIMGroupsParams

type CountSCIMGroupsParams struct {
	OrgID     string
	BindingID string
}

type CountSCIMUsersByExternalIDParams

type CountSCIMUsersByExternalIDParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
}

type CountSCIMUsersByUserNameParams

type CountSCIMUsersByUserNameParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
}

type CountSCIMUsersParams

type CountSCIMUsersParams struct {
	OrgID     string
	BindingID string
}

type CountSelfConfigSeedDisagreementParams

type CountSelfConfigSeedDisagreementParams struct {
	SinceAt       string
	SchemaVersion int64
	Fingerprint   string
}

type CountServiceAccountPKICertificatesParams

type CountServiceAccountPKICertificatesParams struct {
	PrincipalID string
	OrgID       string
	ProjectID   string
}

type CreateEnvironmentParams

type CreateEnvironmentParams struct {
	ID           string
	OrgID        string
	ProjectID    string
	Name         string
	Note         string
	DisplayOrder int64
	CreatedAt    string
}

type CreateFolderParams

type CreateFolderParams struct {
	ID        string
	OrgID     string
	ProjectID string
	Path      string
	CreatedAt string
}

type CreateInstanceConnectionParams

type CreateInstanceConnectionParams struct {
	ID              string
	PrincipalID     string
	Label           string
	Kind            string
	Verifier        []byte
	PrefixHint      string
	Lifetime        string
	ExpiresAt       sql.NullString
	CredentialEpoch int64
	CreatedAt       string
	CreatedBy       string
}

type CreateKeyGroupParams

type CreateKeyGroupParams struct {
	ID        string
	OrgID     string
	ProjectID string
	Name      string
	CreatedAt string
}

type CreateKeyParams

type CreateKeyParams struct {
	ID              string
	OrgID           string
	ProjectID       string
	Name            string
	FolderPath      string
	Classification  string
	Description     string
	Deprecated      int64
	DeprecationNote string
	Declaration     string
	RequiredMode    string
	ForbiddenMode   string
	GroupID         sql.NullString
	CreatedAt       string
}

type CreateOAuth2ProviderParams

type CreateOAuth2ProviderParams struct {
	ID           string
	Slug         string
	DisplayName  string
	Profile      string
	Issuer       string
	ClientID     string
	ClientSecret []byte
	RedirectUri  string
	Enabled      int64
	DekVersion   int64
	CreatedAt    string
	UpdatedAt    string
}

type CreateOIDCProviderParams

type CreateOIDCProviderParams struct {
	ID              string
	Slug            string
	DisplayName     string
	Kind            string
	Issuer          string
	ClientID        string
	ClientSecret    []byte
	Scopes          string
	RedirectUri     string
	AssurancePolicy sql.NullString
	Enabled         int64
	DekVersion      int64
	CreatedAt       string
	UpdatedAt       string
}

type CreateOrgParams

type CreateOrgParams struct {
	ID                   string
	Name                 string
	Active               int64
	Metadata             string
	CreatedAt            string
	Origin               string
	RegistrationPolicyID sql.NullString
}

type CreatePlanParams

type CreatePlanParams struct {
	ID                 string
	OrgID              string
	ProjectID          string
	CreatedBy          string
	CreatedAt          string
	ExpiresAt          string
	Bundle             string
	Digest             string
	BaseSchemaRevision int64
	EnvRevisions       string
	ProtectedEnvs      string
	Diff               string
	Additive           int64
	ScanSnapshot       string
}

type CreateProjectParams

type CreateProjectParams struct {
	ID        string
	OrgID     string
	Name      string
	CreatedAt string
}

type CreateRemotePairingExchangeParams

type CreateRemotePairingExchangeParams struct {
	ID              string
	InviteID        string
	StateSealed     []byte
	CredentialEpoch int64
	CreatedAt       string
	ExpiresAt       string
}

type CreateRemotePairingInviteParams

type CreateRemotePairingInviteParams struct {
	ID                  string
	Label               string
	Origin              string
	SpkiPin             string
	CapabilityVerifier  []byte
	PakeSealed          []byte
	CredentialEpoch     int64
	CreatedBy           string
	CreatedAt           string
	ExpiresAt           string
	CredentialExpiresAt string
}

type CreateRemoteParams

type CreateRemoteParams struct {
	ID               string
	Name             string
	Url              string
	SpkiPin          string
	CredentialSealed []byte
	CreatedAt        string
	CreatedBy        string
}

type CreateSCIMBindingParams

type CreateSCIMBindingParams struct {
	ID                       string
	OrgID                    string
	ProviderKind             string
	ProviderID               string
	ProviderSlug             string
	ProviderIssuer           string
	SubjectSource            string
	NameidFormat             string
	NameidQualifier          string
	NameidQualifierPresent   int64
	NameidSpQualifier        string
	NameidSpQualifierPresent int64
	ConnectionPrincipalID    string
	CreatedAt                string
}

type CreateSCIMGroupParams

type CreateSCIMGroupParams struct {
	ID               string
	OrgID            string
	BindingID        string
	DisplayName      string
	DisplayNameLower string
	ExternalID       string
	CreatedAt        string
	UpdatedAt        string
}

type CreateSCIMMappingParams

type CreateSCIMMappingParams struct {
	ID             string
	OrgID          string
	BindingID      string
	GroupID        string
	Template       string
	ScopeProjectID string
	ScopeEnvID     string
	Inert          int64
	CreatedAt      string
}

type CreateSCIMUserParams

type CreateSCIMUserParams struct {
	ID            string
	OrgID         string
	BindingID     string
	AccountID     string
	UserName      string
	UserNameLower string
	ExternalID    string
	Subject       string
	Active        int64
	Attributes    string
	CreatedAt     string
	UpdatedAt     string
}

type CreateSelfConfigBindingParams

type CreateSelfConfigBindingParams struct {
	AdoptionKey     string
	AdoptedBy       string
	SchemaVersion   int64
	Incarnation     string
	CreatedAt       string
	SnapshotID      string
	OrgID           string
	ProjectID       string
	EnvironmentID   string
	OwnerInstanceID string
}

type CredentialAuthority

type CredentialAuthority struct {
	ID                        string
	Verifier                  []byte
	AccountID                 string
	Purpose                   string
	IssuedBy                  string
	EstablishedCredentialKind string
	CredentialEpoch           int64
	ExpiresAt                 string
	ConsumedAt                sql.NullString
	CreatedAt                 string
}

type CredentialEstablishEvidence

type CredentialEstablishEvidence struct {
	SessionID  string
	IdentityID string
	Purpose    string
	ExpiresAt  string
}

type CredentialPolicy

type CredentialPolicy struct {
	ID                       int64
	MaxFiniteLifetimeSeconds int64
	AllowIndefinite          int64
	MaxLiveCredentials       int64
	UpdatedAt                sql.NullString
	UpdatedBy                sql.NullString
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type DefinitionsPlan

type DefinitionsPlan struct {
	ID                 string
	OrgID              string
	ProjectID          string
	CreatedBy          string
	CreatedAt          string
	ExpiresAt          string
	Bundle             string
	Digest             string
	BaseSchemaRevision int64
	EnvRevisions       string
	ProtectedEnvs      string
	Diff               string
	Additive           int64
	Applied            int64
	AppliedAt          sql.NullString
	AppliedBy          sql.NullString
	ProvenanceCommit   sql.NullString
	ProvenanceRef      sql.NullString
	ProvenanceActor    sql.NullString
	ScanSnapshot       string
}

type DeleteAccessGrantsForRequestParams

type DeleteAccessGrantsForRequestParams struct {
	RequestID   string
	PrincipalID string
}

type DeleteAccessPolicyApproversParams

type DeleteAccessPolicyApproversParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type DeleteAccessPolicyBypassersParams

type DeleteAccessPolicyBypassersParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type DeleteAccessPolicyParams

type DeleteAccessPolicyParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteApprovalPolicyApproversParams

type DeleteApprovalPolicyApproversParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type DeleteApprovalPolicyBypassersParams

type DeleteApprovalPolicyBypassersParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type DeleteApprovalPolicyParams

type DeleteApprovalPolicyParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteDeliveryTargetReportParams

type DeleteDeliveryTargetReportParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
}

type DeleteEnvironmentParams

type DeleteEnvironmentParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteEnvironmentPersonalRequiredParams

type DeleteEnvironmentPersonalRequiredParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type DeleteEnvironmentPresenceParams

type DeleteEnvironmentPresenceParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteExpiredPersonalValueParams

type DeleteExpiredPersonalValueParams struct {
	ChainOrgID     string
	ChainProjectID string
	ID             string
	CutoffTime     sql.NullString
}

type DeleteFileTargetKeysParams

type DeleteFileTargetKeysParams struct {
	ChainOrgID     string
	ChainProjectID string
	TargetID       string
}

type DeleteFileTargetParams

type DeleteFileTargetParams struct {
	ChainOrgID     string
	ChainProjectID string
	ID             string
}

type DeleteFolderParams

type DeleteFolderParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteGrantOriginParams

type DeleteGrantOriginParams struct {
	GrantID string
	Kind    string
	Subject string
}

type DeleteKeyGroupParams

type DeleteKeyGroupParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteKeyParams

type DeleteKeyParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteKeyPersonalRequiredParams

type DeleteKeyPersonalRequiredParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
}

type DeleteKeyPresenceParams

type DeleteKeyPresenceParams struct {
	OrgID     string
	ProjectID string
	KeyID     string
}

type DeleteOrgEmailInvitationInOrgParams

type DeleteOrgEmailInvitationInOrgParams struct {
	ID    string
	OrgID string
}

type DeletePendingChangeByIDParams

type DeletePendingChangeByIDParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
}

type DeletePendingChangeForCellParams

type DeletePendingChangeForCellParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
	OwnerID       string
}

type DeletePendingChangesForEnvironmentParams

type DeletePendingChangesForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeletePendingChangesForKeyParams

type DeletePendingChangesForKeyParams struct {
	OrgID     string
	ProjectID string
	KeyID     string
}

type DeletePersonalValueForCellParams

type DeletePersonalValueForCellParams struct {
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	KeyID            string
	OwnerPrincipalID string
}

type DeletePersonalValueNoticeAtParams

type DeletePersonalValueNoticeAtParams struct {
	ChainOrgID       string
	ChainProjectID   string
	EnvironmentID    string
	KeyName          string
	OwnerPrincipalID string
}

type DeletePersonalValueNoticeParams

type DeletePersonalValueNoticeParams struct {
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	KeyName          string
	OwnerPrincipalID string
}

type DeletePersonalValueNoticesForEnvironmentParams

type DeletePersonalValueNoticesForEnvironmentParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type DeletePersonalValuesForEnvironmentParams

type DeletePersonalValuesForEnvironmentParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type DeletePersonalValuesForKeyInEnvironmentParams

type DeletePersonalValuesForKeyInEnvironmentParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
	EnvironmentID  string
}

type DeletePersonalValuesForKeyParams

type DeletePersonalValuesForKeyParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
}

type DeleteProjectDefinitionsPlansParams

type DeleteProjectDefinitionsPlansParams struct {
	OrgID     string
	ProjectID string
}

type DeleteProjectParams

type DeleteProjectParams struct {
	OrgID string
	ID    string
}

type DeleteProjectSchemaRevisionParams

type DeleteProjectSchemaRevisionParams struct {
	OrgID     string
	ProjectID string
}

type DeleteRegistrationPolicyParams

type DeleteRegistrationPolicyParams struct {
	ID         string
	RowVersion int64
}

type DeleteRevisionKeyChangesForEnvironmentParams

type DeleteRevisionKeyChangesForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteRevisionPinParams

type DeleteRevisionPinParams struct {
	OrgID               string
	ProjectID           string
	EnvironmentID       string
	WorkloadPrincipalID string
}

type DeleteRevisionPinsForEnvironmentParams

type DeleteRevisionPinsForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteRuleItemParams

type DeleteRuleItemParams struct {
	ID     string
	RuleID string
}

type DeleteRuleRowParams

type DeleteRuleRowParams struct {
	ID          string
	PrincipalID string
}

type DeleteSCIMAttentionForBindingParams

type DeleteSCIMAttentionForBindingParams struct {
	OrgID     string
	BindingID string
}

type DeleteSCIMBindingParams

type DeleteSCIMBindingParams struct {
	OrgID string
	ID    string
}

type DeleteSCIMCredentialsForBindingParams

type DeleteSCIMCredentialsForBindingParams struct {
	OrgID     string
	BindingID string
}

type DeleteSCIMGroupMemberParams

type DeleteSCIMGroupMemberParams struct {
	OrgID     string
	BindingID string
	GroupID   string
	UserID    string
}

type DeleteSCIMGroupMembersForBindingParams

type DeleteSCIMGroupMembersForBindingParams struct {
	OrgID     string
	BindingID string
}

type DeleteSCIMGroupMembershipsForUserParams

type DeleteSCIMGroupMembershipsForUserParams struct {
	OrgID     string
	BindingID string
	UserID    string
}

type DeleteSCIMGroupParams

type DeleteSCIMGroupParams struct {
	OrgID     string
	BindingID string
	ID        string
}

type DeleteSCIMGroupsForBindingParams

type DeleteSCIMGroupsForBindingParams struct {
	OrgID     string
	BindingID string
}

type DeleteSCIMMappingParams

type DeleteSCIMMappingParams struct {
	OrgID string
	ID    string
}

type DeleteSCIMMappingsForBindingParams

type DeleteSCIMMappingsForBindingParams struct {
	OrgID     string
	BindingID string
}

type DeleteSCIMUserParams

type DeleteSCIMUserParams struct {
	OrgID     string
	BindingID string
	ID        string
}

type DeleteSCIMUsersForBindingParams

type DeleteSCIMUsersForBindingParams struct {
	OrgID     string
	BindingID string
}

type DeleteScanningDismissalsForKeyParams

type DeleteScanningDismissalsForKeyParams struct {
	OrgID     string
	ProjectID string
	KeyID     string
}

type DeleteScanningDismissalsForProjectParams

type DeleteScanningDismissalsForProjectParams struct {
	OrgID     string
	ProjectID string
}

type DeleteSecretValueOccurrencesForEnvironmentParams

type DeleteSecretValueOccurrencesForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteServiceAccountParams

type DeleteServiceAccountParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type DeleteSessionForPrincipalParams

type DeleteSessionForPrincipalParams struct {
	ID          string
	PrincipalID string
}

type DeleteSnapshotEntriesForEnvironmentParams

type DeleteSnapshotEntriesForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteSnapshotsForEnvironmentParams

type DeleteSnapshotsForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteValueEntriesForEnvironmentParams

type DeleteValueEntriesForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type DeleteValueEntriesForKeyParams

type DeleteValueEntriesForKeyParams struct {
	OrgID     string
	ProjectID string
	KeyID     string
}

type DeleteValueEntryParams

type DeleteValueEntryParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
}

type DeleteWebAuthnCredentialParams

type DeleteWebAuthnCredentialParams struct {
	ID        string
	AccountID string
}

type DeliveryTargetQuotaNotice

type DeliveryTargetQuotaNotice struct {
	PrincipalID string
	OrgID       string
	ProjectID   string
	RefusedAt   string
}

type DeliveryTargetReport

type DeliveryTargetReport struct {
	ID                    string
	OrgID                 string
	ProjectID             string
	EnvironmentID         string
	PrincipalID           string
	ClusterID             string
	InstanceUid           string
	TargetUid             string
	Namespace             string
	Name                  string
	Vocabulary            int64
	Generation            int64
	ObservedGeneration    int64
	ReportedAt            string
	ReceivedAt            string
	ReportIntervalSeconds int64
	Lifecycle             string
	Conditions            string
	Reporter              string
	ReporterVersion       string
	RefusalCause          sql.NullString
	RefusedAt             sql.NullString
	CreatedAt             string
}

type DemoteActiveTier3ToRetiringParams

type DemoteActiveTier3ToRetiringParams struct {
	Purpose   string
	OrgID     string
	ProjectID string
	Version   int64
}

type DeveloperCredential

type DeveloperCredential struct {
	ID                   string
	PrincipalID          string
	AuthorityPrincipalID string
	OrgID                string
	ProjectID            string
	EnvID                string
	Verifier             []byte
	PrefixHint           string
	ParentSessionID      string
	ProviderID           string
	Oauth2ProviderID     string
	SamlProviderID       string
	AuthMethod           string
	AuthorityGeneration  int64
	CredentialEpoch      int64
	CreatedAt            string
	ExpiresAt            string
	RevokedAt            sql.NullString
	PersonalConsent      int64
}

type DeveloperCredentialPolicy

type DeveloperCredentialPolicy struct {
	ID                 int64
	MaxLifetimeSeconds int64
}

type DisableWebAuthnCredentialParams

type DisableWebAuthnCredentialParams struct {
	DisabledAt sql.NullString
	ID         string
	RowVersion int64
}

type DynamicActiveLeaseIDsForProviderParams

type DynamicActiveLeaseIDsForProviderParams struct {
	ProviderID   string
	ChainOrg     string
	ChainProject string
}

type DynamicActiveLeaseIDsForProviderRow

type DynamicActiveLeaseIDsForProviderRow struct {
	ID               string
	ProviderID       string
	EnvironmentID    string
	PrincipalID      string
	PrincipalClass   string
	ProviderHandle   string
	State            string
	IssuedAt         sql.NullString
	ExpiresAt        sql.NullString
	MaxTtlSeconds    int64
	LastTransitionAt string
	CreatedAt        string
}

type DynamicCreateLeaseParams

type DynamicCreateLeaseParams struct {
	ID             string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
	ProviderID     string
	PrincipalID    string
	PrincipalClass string
	ProviderHandle string
	MaxTtlSeconds  int64
	At             string
	Grace          string
}

type DynamicCreateProviderParams

type DynamicCreateProviderParams struct {
	ID                   string
	ChainOrg             string
	ChainProject         string
	Kind                 string
	Origin               string
	TlsMode              string
	GrantRole            string
	Credential           []byte
	At                   sql.NullString
	AuthorityPrincipalID string
}

type DynamicDeleteProviderParams

type DynamicDeleteProviderParams struct {
	ProviderID   string
	ChainOrg     string
	ChainProject string
}

type DynamicEffect

type DynamicEffect struct {
	ID             string
	OrgID          string
	ProjectID      string
	EnvironmentID  string
	LeaseID        string
	Kind           string
	IntentAuditID  string
	OutcomeAuditID sql.NullString
	Outcome        sql.NullString
	CreatedAt      string
	FinishedAt     sql.NullString
}

type DynamicEnqueueRenewingParams

type DynamicEnqueueRenewingParams struct {
	State         string
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicEnqueueRenewingWithTTLParams

type DynamicEnqueueRenewingWithTTLParams struct {
	State         string
	MaxTtlSeconds int64
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicEnqueueRevokingParams

type DynamicEnqueueRevokingParams struct {
	State         string
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicEnqueueRevokingWithTTLParams

type DynamicEnqueueRevokingWithTTLParams struct {
	State         string
	MaxTtlSeconds int64
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicEnqueueUnknownParams

type DynamicEnqueueUnknownParams struct {
	State         string
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicEnqueueUnknownWithTTLParams

type DynamicEnqueueUnknownWithTTLParams struct {
	State         string
	MaxTtlSeconds int64
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicFinishMintParams

type DynamicFinishMintParams struct {
	State         string
	IssuedAt      sql.NullString
	ExpiresAt     sql.NullString
	At            string
	NextAttemptAt string
	LeaseID       string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type DynamicGetLeaseParams

type DynamicGetLeaseParams struct {
	LeaseID      string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type DynamicGetLeaseRow

type DynamicGetLeaseRow struct {
	ID               string
	ProviderID       string
	EnvironmentID    string
	PrincipalID      string
	PrincipalClass   string
	ProviderHandle   string
	State            string
	IssuedAt         sql.NullString
	ExpiresAt        sql.NullString
	MaxTtlSeconds    int64
	LastTransitionAt string
	CreatedAt        string
}

type DynamicGetProviderParams

type DynamicGetProviderParams struct {
	ProviderID   string
	ChainOrg     string
	ChainProject string
}

type DynamicGetProviderRow

type DynamicGetProviderRow struct {
	ID                   string
	Kind                 string
	Origin               string
	TlsMode              string
	GrantRole            string
	CredentialPresent    int64
	CredentialSetAt      sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
}

type DynamicLease

type DynamicLease struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	ProviderID       string
	PrincipalID      string
	PrincipalClass   string
	ProviderHandle   string
	State            string
	IssuedAt         sql.NullString
	ExpiresAt        sql.NullString
	MaxTtlSeconds    int64
	LastTransitionAt string
	LeaseOwner       sql.NullString
	LeaseExpiresAt   sql.NullString
	LeaseClaimToken  int64
	AttemptCount     int64
	NextAttemptAt    string
	CreatedAt        string
}

type DynamicListLeasesForEnvironmentParams

type DynamicListLeasesForEnvironmentParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type DynamicListLeasesForEnvironmentRow

type DynamicListLeasesForEnvironmentRow struct {
	ID               string
	ProviderID       string
	EnvironmentID    string
	PrincipalID      string
	PrincipalClass   string
	ProviderHandle   string
	State            string
	IssuedAt         sql.NullString
	ExpiresAt        sql.NullString
	MaxTtlSeconds    int64
	LastTransitionAt string
	CreatedAt        string
}

type DynamicListProvidersForReencryptParams

type DynamicListProvidersForReencryptParams struct {
	ChainOrg     string
	ChainProject string
	Cursor       string
	PageLimit    int64
}

type DynamicListProvidersForReencryptRow

type DynamicListProvidersForReencryptRow struct {
	ID                        string
	AdminCredentialCiphertext []byte
}

type DynamicListProvidersParams

type DynamicListProvidersParams struct {
	ChainOrg     string
	ChainProject string
}

type DynamicListProvidersRow

type DynamicListProvidersRow struct {
	ID                   string
	Kind                 string
	Origin               string
	TlsMode              string
	GrantRole            string
	CredentialPresent    int64
	CredentialSetAt      sql.NullString
	AuthorityPrincipalID string
	State                string
	CreatedAt            string
}

type DynamicProvider

type DynamicProvider struct {
	ID                        string
	OrgID                     string
	ProjectID                 string
	Kind                      string
	Origin                    string
	TlsMode                   string
	GrantRole                 string
	AdminCredentialCiphertext []byte
	CredentialSetAt           sql.NullString
	AuthorityPrincipalID      string
	State                     string
	CreatedAt                 string
}

type DynamicProviderCredentialCiphertextParams

type DynamicProviderCredentialCiphertextParams struct {
	ProviderID   string
	ChainOrg     string
	ChainProject string
}

type DynamicReencryptProviderParams

type DynamicReencryptProviderParams struct {
	NewCiphertext []byte
	ChainOrg      string
	ChainProject  string
	ID            string
	OldCiphertext []byte
}

type DynamicReplaceProviderCredentialParams

type DynamicReplaceProviderCredentialParams struct {
	Credential   []byte
	At           sql.NullString
	ProviderID   string
	ChainOrg     string
	ChainProject string
}

type DynamicRevokeProviderCredentialParams

type DynamicRevokeProviderCredentialParams struct {
	ProviderID   string
	ChainOrg     string
	ChainProject string
}

type EnterSCIMAttentionParams

type EnterSCIMAttentionParams struct {
	ID         string
	OrgID      string
	BindingID  string
	State      string
	SubjectRef string
	Cause      string
	EnteredAt  string
}

type Environment

type Environment struct {
	ID                  string
	OrgID               string
	ProjectID           string
	Name                string
	Note                string
	CreatedAt           string
	DisplayOrder        int64
	Protected           int64
	ReauthWindowSeconds sql.NullInt64
	ParametersJson      string
}

type EnvironmentChainByIDRow

type EnvironmentChainByIDRow struct {
	OrgID     string
	ProjectID string
	ID        string
}

type EnvironmentReauthSettingsRow

type EnvironmentReauthSettingsRow struct {
	Protected           int64
	ReauthWindowSeconds sql.NullInt64
}

type ExternalIdentity

type ExternalIdentity struct {
	ID              string
	AccountID       string
	Kind            string
	Issuer          string
	Subject         string
	ProviderID      string
	CredentialEpoch int64
	CreatedAt       string
}

type FederatedBindingByIdentityParams

type FederatedBindingByIdentityParams struct {
	IssuerID sql.NullString
	Subject  sql.NullString
}

type FederatedBindingByIdentityRow

type FederatedBindingByIdentityRow struct {
	ID               string
	ServiceAccountID string
	Kind             string
	PrefixHint       sql.NullString
	Lifetime         string
	ExpiresAt        sql.NullString
	CredentialEpoch  int64
	CreatedAt        string
	CreatedBy        string
	RevokedAt        sql.NullString
	LastUsedAt       sql.NullString
	IssuerID         sql.NullString
	Subject          sql.NullString
	Audience         sql.NullString
	RequiredClaims   sql.NullString
	ReactivatedAt    sql.NullString
}

type FederationIssuer

type FederationIssuer struct {
	ID               string
	Issuer           string
	IssuerType       string
	JwksMode         string
	StaticJwks       sql.NullString
	RefusedAudiences string
	CreatedAt        string
	CreatedBy        string
	UpdatedAt        sql.NullString
	UpdatedBy        sql.NullString
	CaBundlePem      string
}

type FenceSelfConfigRestoredParams

type FenceSelfConfigRestoredParams struct {
	Incarnation string
	UpdatedAt   string
}

type FileTarget

type FileTarget struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	Name                 string
	ServiceAccountID     string
	PrincipalID          string
	Generation           int64
	AuthorityPrincipalID string
	CreatedAt            string
	UpdatedAt            string
	ReportState          sql.NullString
	ReportRevision       sql.NullInt64
	ReportStamp          sql.NullString
	ReportGeneration     sql.NullInt64
	ReportedAt           sql.NullString
	ReceivedAt           sql.NullString
}

type FileTargetKey

type FileTargetKey struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	TargetID      string
	KeyID         string
}

type Folder

type Folder struct {
	ID        string
	OrgID     string
	ProjectID string
	Path      string
	CreatedAt string
}

type GetAccessPolicyBypasserParams

type GetAccessPolicyBypasserParams struct {
	OrgID       string
	ProjectID   string
	PolicyID    string
	PrincipalID string
}

type GetAccessPolicyForEnvironmentParams

type GetAccessPolicyForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type GetAccessPolicyParams

type GetAccessPolicyParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetAccessRequestParams

type GetAccessRequestParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
}

type GetAccessVoteParams

type GetAccessVoteParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
	PrincipalID   string
}

type GetAccountByEmailRow

type GetAccountByEmailRow struct {
	ID          string
	PrincipalID string
	Username    string
	DisplayName string
	CreatedAt   string
}

type GetAccountByIDRow

type GetAccountByIDRow struct {
	ID          string
	PrincipalID string
	Username    string
	DisplayName string
	CreatedAt   string
}

type GetAccountByPrincipalRow

type GetAccountByPrincipalRow struct {
	ID          string
	PrincipalID string
	Username    string
	DisplayName string
	CreatedAt   string
}

type GetAccountByUsernameRow

type GetAccountByUsernameRow struct {
	ID          string
	PrincipalID string
	Username    string
	DisplayName string
	CreatedAt   string
}

type GetAccountByWebAuthnUserHandleRow

type GetAccountByWebAuthnUserHandleRow struct {
	ID          string
	PrincipalID string
	Username    string
	DisplayName string
	CreatedAt   string
}

type GetAccountProfileRow

type GetAccountProfileRow struct {
	Username        string
	DisplayName     string
	Email           sql.NullString
	EmailVerifiedAt sql.NullString
	Managed         bool
	HasPassword     bool
	HasTotp         bool
}

type GetActiveTier3KeyParams

type GetActiveTier3KeyParams struct {
	Purpose   string
	OrgID     string
	ProjectID string
}

type GetApprovalPolicyBypasserParams

type GetApprovalPolicyBypasserParams struct {
	OrgID       string
	ProjectID   string
	PolicyID    string
	PrincipalID string
}

type GetApprovalPolicyForEnvironmentParams

type GetApprovalPolicyForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Enabled       int64
}

type GetApprovalPolicyParams

type GetApprovalPolicyParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetApprovalRequestParams

type GetApprovalRequestParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
}

type GetApprovalVoteParams

type GetApprovalVoteParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
	PrincipalID   string
}

type GetAuditRetentionPolicyRow

type GetAuditRetentionPolicyRow struct {
	AccessDays   int64
	SecurityDays int64
}

type GetBackupStateRow

type GetBackupStateRow struct {
	LastSuccessAt           sql.NullString
	LastArtifactName        string
	LastArtifactBytes       int64
	LastArtifactSha256      string
	LastFailureAt           sql.NullString
	LastFailureReason       string
	LastPruneAt             sql.NullString
	LastPruneAttemptAt      sql.NullString
	LastPruneAttemptID      string
	PruneFailureReason      string
	RetainedExpiredArchives int64
	LastDrillAt             sql.NullString
	LastDrillOk             int64
	LastDrillArchive        string
	LastDrillElapsedMs      int64
	LastDrillBinaryVersion  string
	LastDrillSchemaVersion  int64
}

type GetCredentialAuthorityByVerifierRow

type GetCredentialAuthorityByVerifierRow struct {
	ID              string
	AccountID       string
	Verifier        []byte
	Purpose         string
	IssuedBy        string
	CredentialEpoch int64
	ExpiresAt       string
	ConsumedAt      sql.NullString
	CreatedAt       string
}

type GetCredentialEstablishParams

type GetCredentialEstablishParams struct {
	SessionID   string
	PrincipalID string
	ExpiresAt   string
}

type GetCredentialEstablishRow

type GetCredentialEstablishRow struct {
	IdentityID string
	ExpiresAt  string
}

type GetCredentialPolicyRow

type GetCredentialPolicyRow struct {
	MaxFiniteLifetimeSeconds int64
	AllowIndefinite          int64
	MaxLiveCredentials       int64
	UpdatedAt                sql.NullString
	UpdatedBy                sql.NullString
}

type GetDeliveryTargetReportParams

type GetDeliveryTargetReportParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	PrincipalID   string
	ClusterID     string
	InstanceUid   string
	TargetUid     string
}

type GetEnabledProviderByIssuerParams

type GetEnabledProviderByIssuerParams struct {
	Kind   string
	Issuer string
}

type GetEnvironmentParametersParams

type GetEnvironmentParametersParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type GetEnvironmentParams

type GetEnvironmentParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetEnvironmentRow

type GetEnvironmentRow struct {
	ID           string
	OrgID        string
	ProjectID    string
	Name         string
	Note         string
	CreatedAt    string
	DisplayOrder int64
}

type GetEnvironmentSettingsParams

type GetEnvironmentSettingsParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetEnvironmentSettingsRow

type GetEnvironmentSettingsRow struct {
	Protected           int64
	ReauthWindowSeconds sql.NullInt64
}

type GetExternalIdentityParams

type GetExternalIdentityParams struct {
	Kind    string
	Issuer  string
	Subject string
}

type GetFileTargetForPrincipalParams

type GetFileTargetForPrincipalParams struct {
	ChainOrgID     string
	ChainProjectID string
	PrincipalID    string
}

type GetFileTargetForPrincipalRow

type GetFileTargetForPrincipalRow struct {
	ID                   string
	EnvironmentID        string
	Name                 string
	ServiceAccountID     string
	PrincipalID          string
	Generation           int64
	AuthorityPrincipalID string
	CreatedAt            string
	UpdatedAt            string
	ReportState          sql.NullString
	ReportRevision       sql.NullInt64
	ReportStamp          sql.NullString
	ReportGeneration     sql.NullInt64
	ReportedAt           sql.NullString
	ReceivedAt           sql.NullString
}

type GetFileTargetParams

type GetFileTargetParams struct {
	ChainOrgID     string
	ChainProjectID string
	ID             string
}

type GetFileTargetRow

type GetFileTargetRow struct {
	ID                   string
	EnvironmentID        string
	Name                 string
	ServiceAccountID     string
	PrincipalID          string
	Generation           int64
	AuthorityPrincipalID string
	CreatedAt            string
	UpdatedAt            string
	ReportState          sql.NullString
	ReportRevision       sql.NullInt64
	ReportStamp          sql.NullString
	ReportGeneration     sql.NullInt64
	ReportedAt           sql.NullString
	ReceivedAt           sql.NullString
}

type GetFolderParams

type GetFolderParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetInstanceConnectionRow

type GetInstanceConnectionRow struct {
	ID              string
	PrincipalID     string
	Label           string
	Kind            string
	PrefixHint      string
	Lifetime        string
	ExpiresAt       sql.NullString
	CredentialEpoch int64
	CreatedAt       string
	CreatedBy       string
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
}

type GetKeyGroupParams

type GetKeyGroupParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetKeyInProjectParams

type GetKeyInProjectParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
}

type GetKeyParams

type GetKeyParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetLatestAppliedPlanParams

type GetLatestAppliedPlanParams struct {
	OrgID     string
	ProjectID string
	Applied   int64
}

type GetLatestSnapshotParams

type GetLatestSnapshotParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type GetOIDCTransactionByStateRow

type GetOIDCTransactionByStateRow struct {
	ID                     string
	StateVerifier          []byte
	Nonce                  []byte
	PkceVerifier           string
	ProviderID             string
	Issuer                 string
	RedirectUri            string
	Purpose                string
	BindingKind            string
	InitiatingSessionID    sql.NullString
	BrowserBindingVerifier []byte
	AccountID              sql.NullString
	EnvironmentID          sql.NullString
	CeremonyID             sql.NullString
	Browser                int64
	CredentialEpoch        int64
	CreatedAt              string
	ExpiresAt              string
	ConsumedAt             sql.NullString
	Intent                 sql.NullString
	SignupScopeOrgID       sql.NullString
	AuthorityID            sql.NullString
}

type GetOpsDiagnosticsParams

type GetOpsDiagnosticsParams struct {
	Now     string
	DayAt   string
	WeekAt  string
	MonthAt string
}

type GetOpsDiagnosticsRow

type GetOpsDiagnosticsRow struct {
	EscrowVerifiedAt       sql.NullString
	EscrowInstanceID       string
	EscrowIncarnation      string
	EscrowRootEpoch        int64
	LastReencryptSuccessAt sql.NullString
	RootEpoch              int64
	RootWrappers           int64
	RetiringScopes         int64
	PinsExpired            int64
	PinsDay                int64
	PinsWeek               int64
	PinsMonth              int64
}

type GetOrgEmailInvitationInOrgParams

type GetOrgEmailInvitationInOrgParams struct {
	ID    string
	OrgID string
}

type GetOrgIdentityImageRow

type GetOrgIdentityImageRow struct {
	IdentityImage        []byte
	IdentityImageType    sql.NullString
	IdentityImageVersion sql.NullString
}

type GetOrgIdentityRow

type GetOrgIdentityRow struct {
	ID                   string
	Name                 string
	IdentityHue          int64
	IdentityMark         sql.NullString
	IdentityImageVersion sql.NullString
}

type GetOrgRow

type GetOrgRow struct {
	ID                     string
	Name                   string
	Active                 int64
	Metadata               string
	CreatedAt              string
	RetentionMode          string
	RetentionAgeSeconds    int64
	RetentionRevisionCount int64
	Origin                 string
	RegistrationPolicyID   sql.NullString
	IdentityHue            int64
	IdentityMark           sql.NullString
	IdentityImageVersion   sql.NullString
}

type GetPersonalValueForOwnerParams

type GetPersonalValueForOwnerParams struct {
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	KeyID            string
	OwnerPrincipalID string
}

type GetPersonalValueForOwnerRow

type GetPersonalValueForOwnerRow struct {
	ID               string
	KeyID            string
	OwnerPrincipalID string
	Ciphertext       []byte
	CreatedAt        string
	UpdatedAt        string
}

type GetPinGenerationParams

type GetPinGenerationParams struct {
	PrincipalID   string
	EnvironmentID string
}

type GetPlanParams

type GetPlanParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetPrincipalClassRow

type GetPrincipalClassRow struct {
	Kind  string
	Class sql.NullString
}

type GetProjectCapacityParams

type GetProjectCapacityParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type GetProjectCapacityRow

type GetProjectCapacityRow struct {
	KeyLimitOverride sql.NullInt64
	KeyLimitRevision int64
}

type GetProjectIdentityImageParams

type GetProjectIdentityImageParams struct {
	OrgID string
	ID    string
}

type GetProjectIdentityImageRow

type GetProjectIdentityImageRow struct {
	IdentityImage        []byte
	IdentityImageType    sql.NullString
	IdentityImageVersion sql.NullString
}

type GetProjectParams

type GetProjectParams struct {
	OrgID string
	ID    string
}

type GetProjectRow

type GetProjectRow struct {
	ID                      string
	OrgID                   string
	Name                    string
	CreatedAt               string
	RetentionRevisionCount  sql.NullInt64
	RetentionAgeSeconds     sql.NullInt64
	DefinitionsSource       string
	MachineReveal           int64
	MachineRevealGeneration int64
	IdentityHue             int64
	IdentityMark            sql.NullString
	IdentityImageVersion    sql.NullString
}

type GetProjectSchemaRevisionParams

type GetProjectSchemaRevisionParams struct {
	OrgID     string
	ProjectID string
}

type GetReauthWindowParams

type GetReauthWindowParams struct {
	SessionID     string
	EnvironmentID string
}

type GetRemoteByNameRow

type GetRemoteByNameRow struct {
	ID        string
	Name      string
	Url       string
	SpkiPin   string
	CreatedAt string
	CreatedBy string
}

type GetRemoteRow

type GetRemoteRow struct {
	ID        string
	Name      string
	Url       string
	SpkiPin   string
	CreatedAt string
	CreatedBy string
}

type GetRestoreStateRow

type GetRestoreStateRow struct {
	CredentialEpoch int64
	RestoreEpoch    int64
	ReactivatedAt   sql.NullString
}

type GetRevisionPinForWorkloadParams

type GetRevisionPinForWorkloadParams struct {
	OrgID               string
	ProjectID           string
	EnvironmentID       string
	WorkloadPrincipalID string
}

type GetRuleRow

type GetRuleRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       string
	EnvMode     string
	KeyMode     string
	ItemID      string
	Axis        string
	ProjectID   string
	EnvID       string
	KeyID       string
	FolderPath  string
}

type GetSCIMBindingParams

type GetSCIMBindingParams struct {
	OrgID string
	ID    string
}

type GetSCIMCredentialParams

type GetSCIMCredentialParams struct {
	OrgID     string
	BindingID string
	ID        string
}

type GetSCIMCredentialRow

type GetSCIMCredentialRow struct {
	ID              string
	BindingID       string
	PrincipalID     string
	CredentialEpoch int64
	CreatedAt       string
	ExpiresAt       sql.NullString
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
}

type GetSCIMGroupParams

type GetSCIMGroupParams struct {
	OrgID     string
	BindingID string
	ID        string
}

type GetSCIMMappingParams

type GetSCIMMappingParams struct {
	OrgID string
	ID    string
}

type GetSCIMUserByAccountParams

type GetSCIMUserByAccountParams struct {
	OrgID     string
	BindingID string
	AccountID string
}

type GetSCIMUserBySubjectParams

type GetSCIMUserBySubjectParams struct {
	OrgID     string
	BindingID string
	Subject   string
}

type GetSCIMUserByUserNameParams

type GetSCIMUserByUserNameParams struct {
	OrgID         string
	BindingID     string
	UserNameLower string
}

type GetSCIMUserParams

type GetSCIMUserParams struct {
	OrgID     string
	BindingID string
	ID        string
}

type GetScanningDismissalParams

type GetScanningDismissalParams struct {
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	KeyID            string
	RuleDigest       string
	ValueFingerprint []byte
}

type GetServiceAccountParams

type GetServiceAccountParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type GetSessionByIDRow

type GetSessionByIDRow struct {
	ID                string
	PrincipalID       string
	Artifact          string
	SessionGeneration int64
	CredentialEpoch   int64
	AuthMethod        string
	Factors           string
	AuthenticatedAt   string
	CeremonyID        sql.NullString
	CreatedAt         string
	LastSeenAt        string
	IdleExpiresAt     string
	AbsoluteExpiresAt string
	CsrfVerifier      []byte
	RequestingOrigin  sql.NullString
	ProviderID        sql.NullString
	Oauth2ProviderID  sql.NullString
	SamlProviderID    sql.NullString
	EnrolmentRequired int64
}

type GetSessionByVerifierRow

type GetSessionByVerifierRow struct {
	ID                string
	PrincipalID       string
	Verifier          []byte
	Artifact          string
	SessionGeneration int64
	CredentialEpoch   int64
	AuthMethod        string
	Factors           string
	AuthenticatedAt   string
	CeremonyID        sql.NullString
	CreatedAt         string
	LastSeenAt        string
	IdleExpiresAt     string
	AbsoluteExpiresAt string
	CsrfVerifier      []byte
	RequestingOrigin  sql.NullString
	ProviderID        sql.NullString
	Oauth2ProviderID  sql.NullString
	SamlProviderID    sql.NullString
	EnrolmentRequired int64
}

type GetSnapshotByRevisionParams

type GetSnapshotByRevisionParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Revision      int64
}

type GetSnapshotParameterContractParams

type GetSnapshotParameterContractParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	SnapshotID     string
}

type GetTier3VersionsParams

type GetTier3VersionsParams struct {
	Purpose   string
	OrgID     string
	ProjectID string
}

type GetValueEntryParams

type GetValueEntryParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
}

type Grant

type Grant struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	CreatedAt   string
}

type GrantAccessRequestParams

type GrantAccessRequestParams struct {
	GrantedAt     sql.NullString
	ExpiresAt     sql.NullString
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
	State         string
}

type GrantOrigin

type GrantOrigin struct {
	ID        string
	GrantID   string
	Kind      string
	Subject   string
	CreatedAt string
}

type GuardOAuth2ProviderForMintParams

type GuardOAuth2ProviderForMintParams struct {
	ID         string
	RowVersion int64
	Issuer     string
}

type GuardOIDCProviderForMintParams

type GuardOIDCProviderForMintParams struct {
	ID         string
	RowVersion int64
	Issuer     string
}

type GuardSAMLProviderForMintParams

type GuardSAMLProviderForMintParams struct {
	ID         string
	RowVersion int64
	EntityID   string
}

type GuardSingletonLeaseParams

type GuardSingletonLeaseParams struct {
	Name       string
	Owner      string
	FenceToken int64
	Now        string
}

type HaNode

type HaNode struct {
	NodeID             string
	BinaryVersion      string
	SchemaVersion      int64
	RootKeyFingerprint string
	StartedAt          string
	HeartbeatAt        string
}

type InsertAccessGrantParams

type InsertAccessGrantParams struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       string
	ProjectID   string
	EnvID       string
	RequestID   string
	CreatedAt   string
	ExpiresAt   string
}

type InsertAccessPolicyApproverParams

type InsertAccessPolicyApproverParams struct {
	ID             string
	OrgID          string
	ProjectID      string
	PolicyID       string
	Kind           string
	SubjectID      string
	ScopeBindingID string
}

type InsertAccessPolicyBypasserParams

type InsertAccessPolicyBypasserParams struct {
	ID          string
	OrgID       string
	ProjectID   string
	PolicyID    string
	PrincipalID string
}

type InsertAccessPolicyParams

type InsertAccessPolicyParams struct {
	ID                 string
	OrgID              string
	ProjectID          string
	EnvironmentID      string
	Capabilities       string
	MaxDurationSeconds int64
	MinApprovals       int64
	AllowSelfApproval  int64
	RequestTtlSeconds  int64
	Enabled            int64
	Version            int64
	CreatedBy          string
	CreatedAt          string
	UpdatedAt          string
}

type InsertAccessRequestParams

type InsertAccessRequestParams struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	PolicyID             string
	PolicyVersion        int64
	RequesterPrincipalID string
	Capabilities         string
	DurationSeconds      int64
	Reason               string
	Bypassed             int64
	State                string
	ResolvedBy           string
	CreatedAt            string
	ReviewExpiresAt      string
	GrantedAt            sql.NullString
	ExpiresAt            sql.NullString
}

type InsertAccessVoteParams

type InsertAccessVoteParams struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
	PrincipalID   string
	Decision      string
	CreatedAt     string
}

type InsertAccountParams

type InsertAccountParams struct {
	ID          string
	PrincipalID string
	Username    string
	DisplayName string
	CreatedAt   string
}

type InsertApprovalPolicyApproverParams

type InsertApprovalPolicyApproverParams struct {
	ID             string
	OrgID          string
	ProjectID      string
	PolicyID       string
	Kind           string
	SubjectID      string
	ScopeBindingID string
}

type InsertApprovalPolicyBypasserParams

type InsertApprovalPolicyBypasserParams struct {
	ID          string
	OrgID       string
	ProjectID   string
	PolicyID    string
	PrincipalID string
}

type InsertApprovalPolicyParams

type InsertApprovalPolicyParams struct {
	ID                string
	OrgID             string
	ProjectID         string
	EnvironmentID     string
	MinApprovals      int64
	AllowSelfApproval int64
	RequestTtlSeconds int64
	Enabled           int64
	Version           int64
	CreatedBy         string
	CreatedAt         string
	UpdatedAt         string
}

type InsertApprovalRequestParams

type InsertApprovalRequestParams struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	PolicyID             string
	PolicyVersion        int64
	RequesterPrincipalID string
	VersionIds           string
	ClosedVersionIds     string
	KeyIds               string
	PreviewTokenDigest   string
	BaseRevision         int64
	Purpose              string
	State                string
	CreatedAt            string
	ExpiresAt            string
}

type InsertApprovalVoteParams

type InsertApprovalVoteParams struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
	PrincipalID   string
	Decision      string
	CreatedAt     string
}

type InsertCLILoginParams

type InsertCLILoginParams struct {
	ID               string
	StateVerifier    []byte
	CodeVerifier     []byte
	UserCodeVerifier []byte
	Transport        string
	PkceChallenge    string
	RedirectUri      string
	CreatedAt        string
	ExpiresAt        string
	LastPollAt       string
}

type InsertCLIReauthHandoffParams

type InsertCLIReauthHandoffParams struct {
	ID             string
	StateVerifier  []byte
	SessionID      string
	PrincipalID    string
	Purpose        string
	Operation      string
	EnvironmentSet string
	KeySet         string
	PkceChallenge  string
	RedirectUri    string
	CreatedAt      string
	ExpiresAt      string
}

type InsertCredentialAuthorityParams

type InsertCredentialAuthorityParams struct {
	ID              string
	Verifier        []byte
	AccountID       string
	Purpose         string
	IssuedBy        string
	CredentialEpoch int64
	ExpiresAt       string
	CreatedAt       string
}

type InsertDeliveryTargetQuotaNoticeParams

type InsertDeliveryTargetQuotaNoticeParams struct {
	PrincipalID string
	OrgID       string
	ProjectID   string
	RefusedAt   string
}

type InsertDeliveryTargetReportParams

type InsertDeliveryTargetReportParams struct {
	ID                    string
	OrgID                 string
	ProjectID             string
	EnvironmentID         string
	PrincipalID           string
	ClusterID             string
	InstanceUid           string
	TargetUid             string
	Namespace             string
	Name                  string
	Vocabulary            int64
	Generation            int64
	ObservedGeneration    int64
	ReportedAt            string
	ReceivedAt            string
	ReportIntervalSeconds int64
	Lifecycle             string
	Conditions            string
	Reporter              string
	ReporterVersion       string
	CreatedAt             string
}

type InsertDeveloperCredentialParams

type InsertDeveloperCredentialParams struct {
	ID                   string
	PrincipalID          string
	AuthorityPrincipalID string
	OrgID                string
	ProjectID            string
	EnvID                string
	Verifier             []byte
	PrefixHint           string
	ParentSessionID      string
	ProviderID           string
	Oauth2ProviderID     string
	SamlProviderID       string
	AuthMethod           string
	AuthorityGeneration  int64
	CredentialEpoch      int64
	CreatedAt            string
	ExpiresAt            string
	RevokedAt            sql.NullString
	PersonalConsent      int64
}

type InsertExternalIdentityParams

type InsertExternalIdentityParams struct {
	ID              string
	AccountID       string
	Kind            string
	Issuer          string
	Subject         string
	ProviderID      string
	CredentialEpoch int64
	CreatedAt       string
}

type InsertFederationIssuerParams

type InsertFederationIssuerParams struct {
	ID               string
	Issuer           string
	IssuerType       string
	JwksMode         string
	StaticJwks       sql.NullString
	CaBundlePem      string
	RefusedAudiences string
	CreatedAt        string
	CreatedBy        string
}

type InsertFileTargetKeyParams

type InsertFileTargetKeyParams struct {
	ChainOrgID     string
	ChainProjectID string
	EnvironmentID  string
	TargetID       string
	KeyID          string
}

type InsertFileTargetParams

type InsertFileTargetParams struct {
	ID                   string
	ChainOrgID           string
	ChainProjectID       string
	EnvironmentID        string
	Name                 string
	ServiceAccountID     string
	PrincipalID          string
	AuthorityPrincipalID string
	CreatedAt            string
}

type InsertGrantOriginParams

type InsertGrantOriginParams struct {
	ID        string
	GrantID   string
	Kind      string
	Subject   string
	CreatedAt string
}

type InsertGrantParams

type InsertGrantParams struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	CreatedAt   string
}

type InsertInstanceAuditEventParams

type InsertInstanceAuditEventParams struct {
	ID                string
	Type              string
	SchemaVersion     int64
	OccurredAt        string
	OccurredAsserted  int64
	RecordedAt        string
	ActorID           sql.NullString
	ActorClass        string
	ActorCredentialID sql.NullString
	AuthorityID       sql.NullString
	ObjectType        sql.NullString
	ObjectID          sql.NullString
	Outcome           string
	CorrelationID     sql.NullString
	SourceIp          sql.NullString
	UserAgent         sql.NullString
	Origin            string
	Payload           string
}

type InsertKeyPersonalRequiredParams

type InsertKeyPersonalRequiredParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
	EnvironmentID  string
}

type InsertKeyPresenceParams

type InsertKeyPresenceParams struct {
	OrgID         string
	ProjectID     string
	KeyID         string
	EnvironmentID string
	Rule          string
}

type InsertLoginChallengeParams

type InsertLoginChallengeParams struct {
	ID        string
	AccountID string
	Factors   string
	ExpiresAt string
	CreatedAt string
}

type InsertMachineCredentialParams

type InsertMachineCredentialParams struct {
	ID               string
	ServiceAccountID string
	Kind             string
	Verifier         []byte
	PrefixHint       sql.NullString
	Lifetime         string
	ExpiresAt        sql.NullString
	CredentialEpoch  int64
	CreatedAt        string
	CreatedBy        string
	IssuerID         sql.NullString
	Subject          sql.NullString
	Audience         sql.NullString
	RequiredClaims   sql.NullString
}

type InsertMachinePrincipalParams

type InsertMachinePrincipalParams struct {
	ID        string
	Class     sql.NullString
	CreatedAt string
}

type InsertMasterKeyParams

type InsertMasterKeyParams struct {
	Version      int64
	RootKeyEpoch int64
	Blob         []byte
	CreatedAt    string
}

type InsertOAuth2TransactionParams

type InsertOAuth2TransactionParams struct {
	ID                     string
	StateVerifier          []byte
	PkceVerifier           string
	ProviderID             string
	Issuer                 string
	RedirectUri            string
	Purpose                string
	Intent                 sql.NullString
	SignupScopeOrgID       sql.NullString
	BindingKind            string
	InitiatingSessionID    sql.NullString
	BrowserBindingVerifier []byte
	AccountID              sql.NullString
	AuthorityID            sql.NullString
	CeremonyID             sql.NullString
	Browser                int64
	CredentialEpoch        int64
	CreatedAt              string
	ExpiresAt              string
}

type InsertOIDCTransactionParams

type InsertOIDCTransactionParams struct {
	ID                     string
	StateVerifier          []byte
	Nonce                  []byte
	PkceVerifier           string
	ProviderID             string
	Issuer                 string
	RedirectUri            string
	Purpose                string
	BindingKind            string
	InitiatingSessionID    sql.NullString
	BrowserBindingVerifier []byte
	AccountID              sql.NullString
	EnvironmentID          sql.NullString
	CeremonyID             sql.NullString
	Browser                int64
	CredentialEpoch        int64
	CreatedAt              string
	ExpiresAt              string
	Intent                 sql.NullString
	SignupScopeOrgID       sql.NullString
	AuthorityID            sql.NullString
}

type InsertPasswordCredentialParams

type InsertPasswordCredentialParams struct {
	AccountID       string
	Verifier        []byte
	KdfMemoryKib    int64
	KdfTime         int64
	KdfParallelism  int64
	DekVersion      int64
	CredentialEpoch int64
	UpdatedAt       string
}

type InsertPendingChangeParams

type InsertPendingChangeParams struct {
	ID                 string
	OrgID              string
	ProjectID          string
	EnvironmentID      string
	KeyID              string
	OwnerID            string
	Operation          string
	Ciphertext         []byte
	StagedFromRevision int64
	StagedFromEntry    string
	CreatedAt          string
	Source             string
	Secret             int64
	MaterialSecret     int64
}

type InsertPersonalValueNoticeParams

type InsertPersonalValueNoticeParams struct {
	ChainOrgID       string
	ChainProjectID   string
	EnvironmentID    string
	KeyName          string
	OwnerPrincipalID string
	Cause            string
	CreatedAt        string
}

type InsertPersonalValueParams

type InsertPersonalValueParams struct {
	ID               string
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	KeyID            string
	OwnerPrincipalID string
	Ciphertext       []byte
	CreatedAt        string
	UpdatedAt        string
}

type InsertPrincipalParams

type InsertPrincipalParams struct {
	ID        string
	Kind      string
	CreatedAt string
}

type InsertProjectSchemaRevisionParams

type InsertProjectSchemaRevisionParams struct {
	OrgID     string
	ProjectID string
}

type InsertReauthWindowParams

type InsertReauthWindowParams struct {
	ID                  string
	SessionID           string
	EnvironmentID       string
	CeremonyID          string
	FactorClass         string
	SingleDecision      int64
	AuthenticatedAt     string
	WindowExpiresAt     string
	HardExpiresAt       string
	CredentialEpoch     int64
	CreatedAt           string
	BoundOperation      string
	BoundKeySet         string
	BoundPurpose        string
	BoundEnvironmentSet string
}

type InsertRecoveryCodesParams

type InsertRecoveryCodesParams struct {
	AccountID       string
	Batch           []byte
	DekVersion      int64
	CredentialEpoch int64
	GeneratedAt     string
}

type InsertRegistrationPolicyDomainParams

type InsertRegistrationPolicyDomainParams struct {
	PolicyID string
	Domain   string
}

type InsertRegistrationPolicyEntryParams

type InsertRegistrationPolicyEntryParams struct {
	ID           string
	PolicyID     string
	ProviderKind string
	ProviderID   string
	Claim        sql.NullString
	CreatedAt    string
}

type InsertRegistrationPolicyEntryValueParams

type InsertRegistrationPolicyEntryValueParams struct {
	EntryID string
	Value   string
}

type InsertRegistrationPolicyParams

type InsertRegistrationPolicyParams struct {
	ID                   string
	OrgID                sql.NullString
	AuthorityPrincipalID sql.NullString
	Landing              string
	Template             sql.NullString
	LocalEnabled         int64
	FreshOrgCap          sql.NullInt64
	CreatedAt            string
	UpdatedAt            string
}

type InsertRegistrationSignupParams

type InsertRegistrationSignupParams struct {
	ID               string
	Email            string
	TokenVerifier    []byte
	PolicyID         string
	SignupScopeOrgID sql.NullString
	CredentialEpoch  int64
	CreatedAt        string
	ExpiresAt        string
}

type InsertRevisionKeyChangeParams

type InsertRevisionKeyChangeParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Revision      int64
	KeyID         string
	KeyName       string
	Change        string
}

type InsertRevisionPinParams

type InsertRevisionPinParams struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	WorkloadPrincipalID  string
	SnapshotID           string
	Revision             int64
	AuthorityPrincipalID string
	ExpiresAt            string
	CreatedAt            string
	AuthorizedAt         string
	HistoryAuthorized    int64
	SchemaOverride       int64
}

type InsertRuleItemParams

type InsertRuleItemParams struct {
	ID         string
	RuleID     string
	OrgID      string
	Axis       string
	ProjectID  string
	EnvID      sql.NullString
	KeyID      sql.NullString
	FolderPath sql.NullString
}

type InsertRuleParams

type InsertRuleParams struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       string
	EnvMode     string
	KeyMode     string
	CreatedBy   string
	CreatedAt   string
}

type InsertSAMLProviderParams

type InsertSAMLProviderParams struct {
	ID                              string
	Slug                            string
	DisplayName                     string
	EntityID                        string
	AcsUrl                          string
	SsoRedirectUrl                  string
	SigningCertificates             []byte
	AssurancePolicy                 sql.NullString
	AllowEmailNameid                int64
	ForceSignRequests               int64
	MetadataWantAuthnRequestsSigned int64
	MetadataSource                  string
	MetadataUrl                     sql.NullString
	MetadataSigned                  int64
	MetadataSigningFingerprint      sql.NullString
	MetadataValidUntil              sql.NullString
	Enabled                         int64
	CreatedAt                       string
	UpdatedAt                       string
}

type InsertSAMLReplayParams

type InsertSAMLReplayParams struct {
	Issuer      string
	AssertionID string
	ExpiresAt   string
	CreatedAt   string
}

type InsertSAMLSPKeyParams

type InsertSAMLSPKeyParams struct {
	ID                  string
	State               string
	EncryptedPrivateKey []byte
	CertificateDer      []byte
	Fingerprint         string
	DekVersion          int64
	CreatedAt           string
}

type InsertSAMLTransactionParams

type InsertSAMLTransactionParams struct {
	ID                  string
	RequestID           string
	RelayStateVerifier  []byte
	InitiatorVerifier   []byte
	ProviderID          string
	EntityID            string
	AcsUrl              string
	Purpose             string
	InitiatingSessionID sql.NullString
	AccountID           sql.NullString
	EnvironmentID       sql.NullString
	CeremonyID          sql.NullString
	CredentialEpoch     int64
	CreatedAt           string
	ExpiresAt           string
}

type InsertSCIMCredentialParams

type InsertSCIMCredentialParams struct {
	ID              string
	OrgID           string
	BindingID       string
	PrincipalID     string
	Verifier        []byte
	CredentialEpoch int64
	CreatedAt       string
	ExpiresAt       sql.NullString
}

type InsertScanningDismissalParams

type InsertScanningDismissalParams struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	KeyID            string
	RuleDigest       string
	ValueFingerprint []byte
	CreatedAt        string
	CreatedBy        string
}

type InsertSelfConfigJobParams

type InsertSelfConfigJobParams struct {
	ID                         string
	IdempotencyKey             string
	ConfirmRestoredCredentials int64
	PrincipalID                string
	SchemaVersion              int64
	CreatedAt                  string
	SnapshotID                 string
	Revision                   int64
	ExpectedGeneration         int64
}

type InsertSelfConfigRolloutParams

type InsertSelfConfigRolloutParams struct {
	JobID         string
	EnrollmentID  string
	Incarnation   string
	PlanDigest    string
	CommandJson   string
	ResponseJson  string
	ExternalPhase string
	Sequence      int64
}

type InsertServiceAccountParams

type InsertServiceAccountParams struct {
	ID          string
	PrincipalID string
	OrgID       string
	ProjectID   string
	Name        string
	Kind        string
	CreatedAt   string
	CreatedBy   string
}

type InsertSessionParams

type InsertSessionParams struct {
	ID                string
	PrincipalID       string
	Verifier          []byte
	Artifact          string
	SessionGeneration int64
	CredentialEpoch   int64
	AuthMethod        string
	Factors           string
	AuthenticatedAt   string
	CeremonyID        sql.NullString
	CreatedAt         string
	LastSeenAt        string
	IdleExpiresAt     string
	AbsoluteExpiresAt string
	SourceIp          string
	UserAgent         string
	ProviderID        sql.NullString
	CsrfVerifier      []byte
	RequestingOrigin  sql.NullString
	HandoffID         sql.NullString
	EnrolmentRequired int64
	CliHandoffID      sql.NullString
}

type InsertSnapshotEntryParams

type InsertSnapshotEntryParams struct {
	ID             string
	OrgID          string
	ProjectID      string
	EnvironmentID  string
	SnapshotID     string
	KeyID          string
	KeyName        string
	Classification string
	Ciphertext     []byte
	ValueEntryID   string
}

type InsertSnapshotParams

type InsertSnapshotParams struct {
	ID                string
	OrgID             string
	ProjectID         string
	EnvironmentID     string
	Revision          int64
	SchemaRevision    int64
	PublishedBy       string
	PublishedAt       string
	ParameterContract string
}

type InsertTOTPParams

type InsertTOTPParams struct {
	ID              string
	AccountID       string
	Seed            []byte
	DekVersion      int64
	CredentialEpoch int64
	LastStep        int64
	CreatedStep     int64
	CreatedAt       string
}

type InsertTenantAuditEventParams

type InsertTenantAuditEventParams struct {
	ID                string
	Type              string
	SchemaVersion     int64
	OccurredAt        string
	OccurredAsserted  int64
	RecordedAt        string
	ActorID           sql.NullString
	ActorClass        string
	ActorCredentialID sql.NullString
	AuthorityID       sql.NullString
	ScopeClass        string
	OrgID             string
	ProjectID         sql.NullString
	EnvID             sql.NullString
	ObjectType        sql.NullString
	ObjectID          sql.NullString
	Outcome           string
	CorrelationID     sql.NullString
	SourceIp          sql.NullString
	UserAgent         sql.NullString
	Origin            string
	Payload           string
}

type InsertTier3KeyParams

type InsertTier3KeyParams struct {
	ID               string
	Purpose          string
	OrgID            string
	ProjectID        string
	Version          int64
	MasterKeyVersion int64
	Blob             []byte
	CreatedAt        string
}

type InsertValueEntryParams

type InsertValueEntryParams struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
	Ciphertext    []byte
	UpdatedAt     string
	UpdatedBy     string
}

type InsertWebAuthnCeremonyParams

type InsertWebAuthnCeremonyParams struct {
	ID                string
	ChallengeVerifier []byte
	SessionData       []byte
	AccountID         sql.NullString
	SessionID         sql.NullString
	Purpose           string
	OperationBinding  sql.NullString
	EnvironmentID     sql.NullString
	CredentialEpoch   int64
	ExpiresAt         string
	CreatedAt         string
}

type InsertWebAuthnCredentialParams

type InsertWebAuthnCredentialParams struct {
	ID              string
	AccountID       string
	CredentialID    []byte
	PublicKey       []byte
	Aaguid          []byte
	SignCount       int64
	Transports      string
	Discoverable    int64
	BackupEligible  int64
	BackupState     int64
	Label           string
	CredentialEpoch int64
	CreatedAt       string
}

type InsertWorkspaceHandoffParams

type InsertWorkspaceHandoffParams struct {
	ID            string
	StateVerifier []byte
	Origin        string
	RedirectUri   string
	PkceChallenge string
	Purpose       string
	SessionID     sql.NullString
	Operation     sql.NullString
	EnvID         sql.NullString
	KeySet        sql.NullString
	CreatedAt     string
	ExpiresAt     string
}

type InsertWorkspaceOriginParams

type InsertWorkspaceOriginParams struct {
	Origin    string
	CreatedAt string
	CreatedBy string
}

type InstanceConnection

type InstanceConnection struct {
	ID              string
	PrincipalID     string
	Label           string
	Kind            string
	Verifier        []byte
	PrefixHint      string
	Lifetime        string
	ExpiresAt       sql.NullString
	CredentialEpoch int64
	CreatedAt       string
	CreatedBy       string
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
}

type InstanceConnectionByVerifierRow

type InstanceConnectionByVerifierRow struct {
	ID              string
	PrincipalID     string
	Label           string
	Kind            string
	Verifier        []byte
	PrefixHint      string
	Lifetime        string
	ExpiresAt       sql.NullString
	CredentialEpoch int64
	CreatedAt       string
	CreatedBy       string
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
	ProofBound      bool
}

type InstanceIdentity

type InstanceIdentity struct {
	ID        int64
	Identity  string
	CreatedAt string
}

type Key

type Key struct {
	ID              string
	OrgID           string
	ProjectID       string
	Name            string
	FolderPath      string
	Classification  string
	Description     string
	Deprecated      int64
	DeprecationNote string
	Declaration     string
	RequiredMode    string
	ForbiddenMode   string
	GroupID         sql.NullString
	CreatedAt       string
}

type KeyGeneration

type KeyGeneration struct {
	Scope      string
	Generation int64
}

type KeyGroup

type KeyGroup struct {
	ID        string
	OrgID     string
	ProjectID string
	Name      string
	CreatedAt string
}

type KeyPersonalRequiredEnvironment

type KeyPersonalRequiredEnvironment struct {
	OrgID         string
	ProjectID     string
	KeyID         string
	EnvironmentID string
}

type KeyPresenceEnvironment

type KeyPresenceEnvironment struct {
	OrgID         string
	ProjectID     string
	KeyID         string
	EnvironmentID string
	Rule          string
}

type LastDeliveryFetchAtParams

type LastDeliveryFetchAtParams struct {
	OrgID     string
	ProjectID sql.NullString
	EnvID     sql.NullString
	ActorID   sql.NullString
	Type      string
}

type LastDeliveryFetchAtRow

type LastDeliveryFetchAtRow struct {
	ActorID    sql.NullString
	OccurredAt string
}

type ListAccessPoliciesParams

type ListAccessPoliciesParams struct {
	OrgID     string
	ProjectID string
}

type ListAccessPolicyApproversParams

type ListAccessPolicyApproversParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type ListAccessPolicyBypassersParams

type ListAccessPolicyBypassersParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type ListAccessRequestsForEnvironmentParams

type ListAccessRequestsForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type ListAccessVotesParams

type ListAccessVotesParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
}

type ListAdapterManifestKeysParams

type ListAdapterManifestKeysParams struct {
	ChainOrg     string
	ChainProject string
	KeyIds       []string
}

type ListAdapterManifestKeysRow

type ListAdapterManifestKeysRow struct {
	ID             string
	Name           string
	Classification string
}

type ListAdapterPinsForKeyParams

type ListAdapterPinsForKeyParams struct {
	OrgID     string
	ProjectID string
	KeyID     string
}

type ListAdapterPinsForKeyRow

type ListAdapterPinsForKeyRow struct {
	AdapterID string
	TargetID  string
}

type ListAllProjectsRow

type ListAllProjectsRow struct {
	OrgID string
	Name  string
}

type ListApprovalPoliciesParams

type ListApprovalPoliciesParams struct {
	OrgID     string
	ProjectID string
}

type ListApprovalPolicyApproversParams

type ListApprovalPolicyApproversParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type ListApprovalPolicyBypassersParams

type ListApprovalPolicyBypassersParams struct {
	OrgID     string
	ProjectID string
	PolicyID  string
}

type ListApprovalRequestsForEnvironmentParams

type ListApprovalRequestsForEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type ListApprovalVotesParams

type ListApprovalVotesParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	RequestID     string
}

type ListCredentialsBeyondCeilingRow

type ListCredentialsBeyondCeilingRow struct {
	ID               string
	ServiceAccountID string
	ExpiresAt        sql.NullString
}

type ListDeliveryTargetQuotaNoticesParams

type ListDeliveryTargetQuotaNoticesParams struct {
	OrgID     string
	ProjectID string
}

type ListDeliveryTargetQuotaNoticesRow

type ListDeliveryTargetQuotaNoticesRow struct {
	PrincipalID string
	RefusedAt   string
}

type ListDeliveryTargetReportsParams

type ListDeliveryTargetReportsParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type ListEligibleSnapshotPayloadsParams

type ListEligibleSnapshotPayloadsParams struct {
	Now        interface{}
	BatchLimit int64
}

type ListEligibleSnapshotPayloadsRow

type ListEligibleSnapshotPayloadsRow struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Revision      int64
	AgeSeconds    int64
	RevisionCount int64
}

type ListEnvironmentIDsInProjectParams

type ListEnvironmentIDsInProjectParams struct {
	OrgID     string
	ProjectID string
}

type ListEnvironmentProtectionParams

type ListEnvironmentProtectionParams struct {
	OrgID     string
	ProjectID string
}

type ListEnvironmentProtectionRow

type ListEnvironmentProtectionRow struct {
	ID        string
	Protected int64
}

type ListEnvironmentsPageAfterOrderParams

type ListEnvironmentsPageAfterOrderParams struct {
	ChainOrgID        string
	ChainProjectID    string
	AfterDisplayOrder int64
	PageLimit         int64
}

type ListEnvironmentsPageAfterOrderRow

type ListEnvironmentsPageAfterOrderRow struct {
	ID           string
	OrgID        string
	ProjectID    string
	Name         string
	Note         string
	CreatedAt    string
	DisplayOrder int64
}

type ListEnvironmentsPageAtOrderParams

type ListEnvironmentsPageAtOrderParams struct {
	ChainOrgID        string
	ChainProjectID    string
	AfterDisplayOrder int64
	AfterName         string
	PageLimit         int64
}

type ListEnvironmentsPageAtOrderRow

type ListEnvironmentsPageAtOrderRow struct {
	ID           string
	OrgID        string
	ProjectID    string
	Name         string
	Note         string
	CreatedAt    string
	DisplayOrder int64
}

type ListEnvironmentsParams

type ListEnvironmentsParams struct {
	OrgID     string
	ProjectID string
}

type ListEnvironmentsRow

type ListEnvironmentsRow struct {
	ID           string
	OrgID        string
	ProjectID    string
	Name         string
	Note         string
	CreatedAt    string
	DisplayOrder int64
}

type ListExpiredRegistrationSignupsRow

type ListExpiredRegistrationSignupsRow struct {
	ID               string
	PolicyID         string
	SignupScopeOrgID sql.NullString
}

type ListFileTargetCatalogueParams

type ListFileTargetCatalogueParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type ListFileTargetCatalogueRow

type ListFileTargetCatalogueRow struct {
	ID             string
	Name           string
	Classification string
}

type ListFileTargetKeyIDsParams

type ListFileTargetKeyIDsParams struct {
	ChainOrgID     string
	ChainProjectID string
	TargetID       string
}

type ListFileTargetsParams

type ListFileTargetsParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type ListFileTargetsRow

type ListFileTargetsRow struct {
	ID                   string
	EnvironmentID        string
	Name                 string
	ServiceAccountID     string
	PrincipalID          string
	Generation           int64
	AuthorityPrincipalID string
	CreatedAt            string
	UpdatedAt            string
	ReportState          sql.NullString
	ReportRevision       sql.NullInt64
	ReportStamp          sql.NullString
	ReportGeneration     sql.NullInt64
	ReportedAt           sql.NullString
	ReceivedAt           sql.NullString
}

type ListFoldersParams

type ListFoldersParams struct {
	OrgID     string
	ProjectID string
}

type ListGrantOriginsForGrantRow

type ListGrantOriginsForGrantRow struct {
	Kind    string
	Subject string
}

type ListGrantOriginsForPrincipalRow

type ListGrantOriginsForPrincipalRow struct {
	ID         string
	Capability string
	OrgID      sql.NullString
	ProjectID  sql.NullString
	EnvID      sql.NullString
	Kind       string
	Subject    string
}

type ListGrantRowsForPrincipalRow

type ListGrantRowsForPrincipalRow struct {
	ID         string
	Capability string
	OrgID      sql.NullString
	ProjectID  sql.NullString
	EnvID      sql.NullString
}

type ListGrantsForPrincipalParams

type ListGrantsForPrincipalParams struct {
	PrincipalID string
	Now         string
}

type ListGrantsForPrincipalRow

type ListGrantsForPrincipalRow struct {
	Capability      string
	OrgID           sql.NullString
	ProjectID       sql.NullString
	EnvID           sql.NullString
	SelfConfigOrgID string
}

type ListGrantsForResetTargetRow

type ListGrantsForResetTargetRow struct {
	Capability string
	OrgID      sql.NullString
	ProjectID  sql.NullString
	EnvID      sql.NullString
}

type ListGrantsWithOriginsAtInstanceRow

type ListGrantsWithOriginsAtInstanceRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	CreatedAt   string
	Kind        string
	Subject     string
}

type ListGrantsWithOriginsForOrgRow

type ListGrantsWithOriginsForOrgRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	CreatedAt   string
	Kind        string
	Subject     string
}

type ListGrantsWithOriginsForProjectParams

type ListGrantsWithOriginsForProjectParams struct {
	OrgID     sql.NullString
	ProjectID sql.NullString
}

type ListGrantsWithOriginsForProjectRow

type ListGrantsWithOriginsForProjectRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	CreatedAt   string
	Kind        string
	Subject     string
}

type ListIndefiniteCredentialsRow

type ListIndefiniteCredentialsRow struct {
	ID               string
	ServiceAccountID string
}

type ListInstanceConnectionsRow

type ListInstanceConnectionsRow struct {
	ID              string
	PrincipalID     string
	Label           string
	Kind            string
	PrefixHint      string
	Lifetime        string
	ExpiresAt       sql.NullString
	CredentialEpoch int64
	CreatedAt       string
	CreatedBy       string
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
}

type ListKeyGroupsParams

type ListKeyGroupsParams struct {
	OrgID     string
	ProjectID string
}

type ListKeyPersonalRequiredParams

type ListKeyPersonalRequiredParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type ListKeyPersonalRequiredRow

type ListKeyPersonalRequiredRow struct {
	KeyID         string
	EnvironmentID string
}

type ListKeyPresenceForKeyParams

type ListKeyPresenceForKeyParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
}

type ListKeyPresenceParams

type ListKeyPresenceParams struct {
	OrgID     string
	ProjectID string
}

type ListKeysPageParams

type ListKeysPageParams struct {
	ChainOrgID     string
	ChainProjectID string
	AfterName      string
	PageLimit      int64
}

type ListKeysParams

type ListKeysParams struct {
	OrgID     string
	ProjectID string
}

type ListLiveAccessGrantsForPrincipalParams

type ListLiveAccessGrantsForPrincipalParams struct {
	PrincipalID string
	ExpiresAt   string
}

type ListLiveAccessGrantsForPrincipalRow

type ListLiveAccessGrantsForPrincipalRow struct {
	ID         string
	Capability string
	OrgID      string
	ProjectID  string
	EnvID      string
	RequestID  string
	CreatedAt  string
	ExpiresAt  string
}

type ListLiveOrgEmailInvitationsParams

type ListLiveOrgEmailInvitationsParams struct {
	OrgID     string
	ExpiresAt string
}

type ListLiveOrgEmailInvitationsRow

type ListLiveOrgEmailInvitationsRow struct {
	ID                 string
	Email              string
	Template           string
	InviterPrincipalID string
	CreatedAt          string
	ExpiresAt          string
}

type ListLockoutRetentionOriginsInOrgRow

type ListLockoutRetentionOriginsInOrgRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	Subject     string
}

type ListLockoutRetentionOriginsRow

type ListLockoutRetentionOriginsRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       sql.NullString
	ProjectID   sql.NullString
	EnvID       sql.NullString
	Subject     string
}

type ListMachineCredentialsRow

type ListMachineCredentialsRow struct {
	ID               string
	ServiceAccountID string
	Kind             string
	PrefixHint       sql.NullString
	Lifetime         string
	ExpiresAt        sql.NullString
	CredentialEpoch  int64
	CreatedAt        string
	CreatedBy        string
	RevokedAt        sql.NullString
	LastUsedAt       sql.NullString
	IssuerID         sql.NullString
	Subject          sql.NullString
	Audience         sql.NullString
	RequiredClaims   sql.NullString
	ReactivatedAt    sql.NullString
}

type ListOauth2ProvidersForReencryptParams

type ListOauth2ProvidersForReencryptParams struct {
	ID    string
	Limit int64
}

type ListOauth2ProvidersForReencryptRow

type ListOauth2ProvidersForReencryptRow struct {
	ID           string
	ClientSecret []byte
	DekVersion   int64
	RowVersion   int64
}

type ListOidcProvidersForReencryptParams

type ListOidcProvidersForReencryptParams struct {
	ID    string
	Limit int64
}

type ListOidcProvidersForReencryptRow

type ListOidcProvidersForReencryptRow struct {
	ID           string
	ClientSecret []byte
	DekVersion   int64
	RowVersion   int64
}

type ListOrgsRow

type ListOrgsRow struct {
	ID                     string
	Name                   string
	Active                 int64
	Metadata               string
	CreatedAt              string
	RetentionMode          string
	RetentionAgeSeconds    int64
	RetentionRevisionCount int64
	Origin                 string
	RegistrationPolicyID   sql.NullString
	IdentityHue            int64
	IdentityMark           sql.NullString
	IdentityImageVersion   sql.NullString
}

type ListPairingExchangesForReencryptParams

type ListPairingExchangesForReencryptParams struct {
	Cursor    string
	PageLimit int64
}

type ListPairingExchangesForReencryptRow

type ListPairingExchangesForReencryptRow struct {
	ID          string
	StateSealed []byte
}

type ListPairingInvitesForReencryptParams

type ListPairingInvitesForReencryptParams struct {
	Cursor    string
	PageLimit int64
}

type ListPairingInvitesForReencryptRow

type ListPairingInvitesForReencryptRow struct {
	ID         string
	PakeSealed []byte
}

type ListPasswordCredsForReencryptParams

type ListPasswordCredsForReencryptParams struct {
	AccountID string
	Limit     int64
}

type ListPasswordCredsForReencryptRow

type ListPasswordCredsForReencryptRow struct {
	AccountID  string
	Verifier   []byte
	DekVersion int64
	RowVersion int64
}

type ListPendingChangesForOwnerInEnvironmentPageParams

type ListPendingChangesForOwnerInEnvironmentPageParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	OwnerID        string
	AfterKeyID     string
	PageLimit      int64
}

type ListPendingChangesForOwnerInEnvironmentParams

type ListPendingChangesForOwnerInEnvironmentParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	OwnerID       string
}

type ListPendingChangesForOwnerParams

type ListPendingChangesForOwnerParams struct {
	OrgID     string
	ProjectID string
	OwnerID   string
}

type ListPendingForReencryptParams

type ListPendingForReencryptParams struct {
	OrgID     string
	ProjectID string
	ID        string
	Limit     int64
}

type ListPendingForReencryptRow

type ListPendingForReencryptRow struct {
	ID            string
	EnvironmentID string
	KeyID         string
	Ciphertext    []byte
}

type ListPendingMarkersParams

type ListPendingMarkersParams struct {
	OrgID     string
	ProjectID string
}

type ListPendingMarkersRow

type ListPendingMarkersRow struct {
	ID            string
	EnvironmentID string
	KeyID         string
	OwnerID       string
	Operation     string
}

type ListPersonalValueCellsForKeyParams

type ListPersonalValueCellsForKeyParams struct {
	ChainOrgID     string
	ChainProjectID string
	KeyID          string
}

type ListPersonalValueCellsForKeyRow

type ListPersonalValueCellsForKeyRow struct {
	EnvironmentID    string
	OwnerPrincipalID string
}

type ListPersonalValueHoldersParams

type ListPersonalValueHoldersParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	KeyID          string
}

type ListPersonalValueHoldersRow

type ListPersonalValueHoldersRow struct {
	OwnerPrincipalID string
	UpdatedAt        string
}

type ListPersonalValueNoticesForKeyNameParams

type ListPersonalValueNoticesForKeyNameParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	KeyName        string
}

type ListPersonalValueNoticesForKeyNameRow

type ListPersonalValueNoticesForKeyNameRow struct {
	OwnerPrincipalID string
	Cause            string
	CreatedAt        string
}

type ListPersonalValueNoticesForOwnerParams

type ListPersonalValueNoticesForOwnerParams struct {
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	OwnerPrincipalID string
}

type ListPersonalValueNoticesForOwnerRow

type ListPersonalValueNoticesForOwnerRow struct {
	KeyName   string
	Cause     string
	CreatedAt string
}

type ListPersonalValueOwnersForEnvironmentParams

type ListPersonalValueOwnersForEnvironmentParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type ListPersonalValuesForOwnerParams

type ListPersonalValuesForOwnerParams struct {
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	OwnerPrincipalID string
}

type ListPersonalValuesForOwnerRow

type ListPersonalValuesForOwnerRow struct {
	ID               string
	KeyID            string
	OwnerPrincipalID string
	Ciphertext       []byte
	CreatedAt        string
	UpdatedAt        string
	SuspendedAt      sql.NullString
}

type ListPersonalValuesForReencryptParams

type ListPersonalValuesForReencryptParams struct {
	ChainOrgID     string
	ChainProjectID string
	Cursor         string
	PageLimit      int64
}

type ListPersonalValuesForReencryptRow

type ListPersonalValuesForReencryptRow struct {
	ID               string
	EnvironmentID    string
	KeyID            string
	OwnerPrincipalID string
	Ciphertext       []byte
}

type ListPersonalValuesForRetentionParams

type ListPersonalValuesForRetentionParams struct {
	Cursor    string
	PageLimit int64
}

type ListPersonalValuesForRetentionRow

type ListPersonalValuesForRetentionRow struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	KeyID            string
	KeyName          string
	OwnerPrincipalID string
	SuspendedAt      sql.NullString
}

type ListPkiIssuersForReencryptParams

type ListPkiIssuersForReencryptParams struct {
	ID    string
	Limit int64
}

type ListPkiIssuersForReencryptRow

type ListPkiIssuersForReencryptRow struct {
	ID                  string
	EncryptedPrivateKey []byte
	DekVersion          int64
	RowVersion          int64
}

type ListProjectsRow

type ListProjectsRow struct {
	ID                      string
	OrgID                   string
	Name                    string
	CreatedAt               string
	RetentionRevisionCount  sql.NullInt64
	RetentionAgeSeconds     sql.NullInt64
	DefinitionsSource       string
	MachineReveal           int64
	MachineRevealGeneration int64
	IdentityHue             int64
	IdentityMark            sql.NullString
	IdentityImageVersion    sql.NullString
}

type ListRecoveryCodesForReencryptParams

type ListRecoveryCodesForReencryptParams struct {
	AccountID string
	Limit     int64
}

type ListRecoveryCodesForReencryptRow

type ListRecoveryCodesForReencryptRow struct {
	AccountID  string
	Batch      []byte
	DekVersion int64
	RowVersion int64
}

type ListRegistrationPolicyEntriesRow

type ListRegistrationPolicyEntriesRow struct {
	ID           string
	ProviderKind string
	ProviderID   string
	Claim        sql.NullString
	CreatedAt    string
}

type ListRegistrationSignupsForPolicyRow

type ListRegistrationSignupsForPolicyRow struct {
	ID               string
	SignupScopeOrgID sql.NullString
}

type ListRemotePairingInvitesRow

type ListRemotePairingInvitesRow struct {
	ID                  string
	Label               string
	Origin              string
	SpkiPin             string
	CredentialEpoch     int64
	CreatedBy           string
	CreatedAt           string
	ExpiresAt           string
	CredentialExpiresAt string
	RevokedAt           sql.NullString
	ConsumedAt          sql.NullString
}

type ListRemotesForReencryptParams

type ListRemotesForReencryptParams struct {
	ID    string
	Limit int64
}

type ListRemotesForReencryptRow

type ListRemotesForReencryptRow struct {
	ID               string
	CredentialSealed []byte
}

type ListRemotesRow

type ListRemotesRow struct {
	ID        string
	Name      string
	Url       string
	SpkiPin   string
	CreatedAt string
	CreatedBy string
}

type ListRevisionKeyChangesInRangeParams

type ListRevisionKeyChangesInRangeParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	MinRevision    int64
	MaxRevision    int64
}

type ListRevisionKeyChangesParams

type ListRevisionKeyChangesParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Revision      int64
}

type ListRevisionPinsParams

type ListRevisionPinsParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type ListRuleIDsForEnvironmentParams

type ListRuleIDsForEnvironmentParams struct {
	OrgID     string
	ProjectID string
	EnvID     sql.NullString
}

type ListRuleIDsForKeyParams

type ListRuleIDsForKeyParams struct {
	OrgID     string
	ProjectID string
	KeyID     sql.NullString
}

type ListRuleIDsForProjectParams

type ListRuleIDsForProjectParams struct {
	OrgID     string
	ProjectID string
}

type ListRuleLinesInOrgRow

type ListRuleLinesInOrgRow struct {
	ID          string
	PrincipalID string
	Capability  string
	EnvMode     string
	KeyMode     string
	CreatedBy   string
	CreatedAt   string
	Axis        string
	ProjectID   string
	EnvID       string
	KeyID       string
	FolderPath  string
}

type ListRuleLinesInProjectParams

type ListRuleLinesInProjectParams struct {
	ProjectID string
	OrgID     string
}

type ListRuleLinesInProjectRow

type ListRuleLinesInProjectRow struct {
	ID          string
	PrincipalID string
	Capability  string
	EnvMode     string
	KeyMode     string
	CreatedBy   string
	CreatedAt   string
	Axis        string
	ProjectID   string
	EnvID       string
	KeyID       string
	FolderPath  string
	OtherItems  int64
}

type ListRulesForPrincipalRow

type ListRulesForPrincipalRow struct {
	ID         string
	Capability string
	OrgID      string
	EnvMode    string
	KeyMode    string
	Axis       string
	ProjectID  string
	EnvID      string
	KeyID      string
	FolderPath string
}

type ListRulesForProjectParams

type ListRulesForProjectParams struct {
	OrgID     string
	ProjectID string
}

type ListRulesForProjectRow

type ListRulesForProjectRow struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       string
	EnvMode     string
	KeyMode     string
	Axis        string
	ProjectID   string
	EnvID       string
	KeyID       string
	FolderPath  string
}

type ListSCIMAttentionParams

type ListSCIMAttentionParams struct {
	OrgID     string
	BindingID string
}

type ListSCIMCredentialsParams

type ListSCIMCredentialsParams struct {
	OrgID     string
	BindingID string
}

type ListSCIMCredentialsRow

type ListSCIMCredentialsRow struct {
	ID              string
	BindingID       string
	PrincipalID     string
	CredentialEpoch int64
	CreatedAt       string
	ExpiresAt       sql.NullString
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
}

type ListSCIMGroupMembersParams

type ListSCIMGroupMembersParams struct {
	OrgID     string
	BindingID string
	GroupID   string
}

type ListSCIMGroupMembershipsForUserParams

type ListSCIMGroupMembershipsForUserParams struct {
	OrgID     string
	BindingID string
	UserID    string
}

type ListSCIMGroupsParams

type ListSCIMGroupsParams struct {
	OrgID     string
	BindingID string
}

type ListSCIMMappingsForGroupParams

type ListSCIMMappingsForGroupParams struct {
	OrgID     string
	BindingID string
	GroupID   string
}

type ListSCIMMappingsParams

type ListSCIMMappingsParams struct {
	OrgID     string
	BindingID string
}

type ListSCIMUsersParams

type ListSCIMUsersParams struct {
	OrgID     string
	BindingID string
}

type ListSamlKeysForReencryptParams

type ListSamlKeysForReencryptParams struct {
	ID    string
	Limit int64
}

type ListSamlKeysForReencryptRow

type ListSamlKeysForReencryptRow struct {
	ID                  string
	EncryptedPrivateKey []byte
	DekVersion          int64
	RowVersion          int64
}

type ListSecretValueOccurrenceIDsInParams

type ListSecretValueOccurrenceIDsInParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	ValueEntryIds  []string
}

type ListSelfConfigSeedInputsForReencryptParams

type ListSelfConfigSeedInputsForReencryptParams struct {
	Cursor    string
	PageLimit int64
}

type ListSelfConfigSeedInputsForReencryptRow

type ListSelfConfigSeedInputsForReencryptRow struct {
	NodeID     string
	Ciphertext []byte
	DekVersion int64
	RowVersion int64
}

type ListSelfConfigSeedInputsRow

type ListSelfConfigSeedInputsRow struct {
	NodeID           string
	OwnerInstanceID  string
	Incarnation      string
	Fingerprint      string
	Ciphertext       []byte
	DekVersion       int64
	RowVersion       int64
	SchemaVersion    int64
	OwnerFingerprint string
	HeartbeatAt      string
}

type ListServiceAccountsParams

type ListServiceAccountsParams struct {
	OrgID     string
	ProjectID string
}

type ListSessionsForPrincipalRow

type ListSessionsForPrincipalRow struct {
	ID                string
	Artifact          string
	AuthMethod        string
	Factors           string
	AuthenticatedAt   string
	CreatedAt         string
	LastSeenAt        string
	IdleExpiresAt     string
	AbsoluteExpiresAt string
	SourceIp          string
	UserAgent         string
	RequestingOrigin  sql.NullString
	HandoffID         sql.NullString
	CliHandoffID      sql.NullString
}

type ListSnapshotEntriesForReencryptParams

type ListSnapshotEntriesForReencryptParams struct {
	OrgID     string
	ProjectID string
	ID        string
	Limit     int64
}

type ListSnapshotEntriesForReencryptRow

type ListSnapshotEntriesForReencryptRow struct {
	ID            string
	EnvironmentID string
	SnapshotID    string
	KeyID         string
	Ciphertext    []byte
}

type ListSnapshotEntriesParams

type ListSnapshotEntriesParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	SnapshotID    string
}

type ListSnapshotsPageParams

type ListSnapshotsPageParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
	BeforeRevision int64
	PageLimit      int64
}

type ListSnapshotsPageRow

type ListSnapshotsPageRow struct {
	ID              string
	OrgID           string
	ProjectID       string
	EnvironmentID   string
	Revision        int64
	SchemaRevision  int64
	PublishedBy     string
	PublishedAt     string
	PayloadPresent  int64
	CollectedAt     sql.NullString
	CollectedPolicy string
}

type ListSnapshotsParams

type ListSnapshotsParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type ListSnapshotsRow

type ListSnapshotsRow struct {
	ID              string
	OrgID           string
	ProjectID       string
	EnvironmentID   string
	Revision        int64
	SchemaRevision  int64
	PublishedBy     string
	PublishedAt     string
	PayloadPresent  int64
	CollectedAt     sql.NullString
	CollectedPolicy string
}

type ListTotpCredsForReencryptParams

type ListTotpCredsForReencryptParams struct {
	ID    string
	Limit int64
}

type ListTotpCredsForReencryptRow

type ListTotpCredsForReencryptRow struct {
	ID         string
	Seed       []byte
	DekVersion int64
	RowVersion int64
}

type ListUnreconciledPrincipalsRow

type ListUnreconciledPrincipalsRow struct {
	ID   string
	Kind string
}

type ListValueEntriesForReencryptParams

type ListValueEntriesForReencryptParams struct {
	OrgID     string
	ProjectID string
	ID        string
	Limit     int64
}

type ListValueEntriesForReencryptRow

type ListValueEntriesForReencryptRow struct {
	ID            string
	EnvironmentID string
	KeyID         string
	Ciphertext    []byte
}

type ListValueEntriesParams

type ListValueEntriesParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type ListValueEnvironmentsForKeyParams

type ListValueEnvironmentsForKeyParams struct {
	OrgID     string
	ProjectID string
	KeyID     string
}

type LockProjectParams

type LockProjectParams struct {
	OrgID string
	ID    string
}

type LockSCIMBindingParams

type LockSCIMBindingParams struct {
	OrgID string
	ID    string
}

type LockSnapshotForRetentionConsequenceParams

type LockSnapshotForRetentionConsequenceParams struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
}

type LoginChallenge

type LoginChallenge struct {
	ID         string
	AccountID  string
	Factors    string
	ExpiresAt  string
	ConsumedAt sql.NullString
	CreatedAt  string
}

type MachineCredential

type MachineCredential struct {
	ID               string
	ServiceAccountID string
	Kind             string
	Verifier         []byte
	PrefixHint       sql.NullString
	Lifetime         string
	ExpiresAt        sql.NullString
	CredentialEpoch  int64
	CreatedAt        string
	CreatedBy        string
	RevokedAt        sql.NullString
	LastUsedAt       sql.NullString
	IssuerID         sql.NullString
	Subject          sql.NullString
	Audience         sql.NullString
	RequiredClaims   sql.NullString
	ReactivatedAt    sql.NullString
}

type MarkAccessRequestExpiredParams

type MarkAccessRequestExpiredParams struct {
	ResolvedAt sql.NullString
	ID         string
	FromState  string
}

type MarkApprovalRequestExpiredParams

type MarkApprovalRequestExpiredParams struct {
	ResolvedAt sql.NullString
	ID         string
}

type MarkPlanAppliedParams

type MarkPlanAppliedParams struct {
	AppliedAt        sql.NullString
	AppliedBy        sql.NullString
	ProvenanceCommit sql.NullString
	ProvenanceRef    sql.NullString
	ProvenanceActor  sql.NullString
	OrgID            string
	ProjectID        string
	ID               string
	Applied          int64
}

type MarkSAMLSPKeyRetiringCASParams

type MarkSAMLSPKeyRetiringCASParams struct {
	ID         string
	RowVersion int64
}

type MarkSnapshotCollectedParams

type MarkSnapshotCollectedParams struct {
	CollectedAt     sql.NullString
	CollectedPolicy string
	ID              string
	Now             interface{}
}

type MasterKey

type MasterKey struct {
	Version      int64
	RootKeyEpoch int64
	State        string
	Blob         []byte
	CreatedAt    string
}

type MaxTenantAuditEnvParams

type MaxTenantAuditEnvParams struct {
	OrgID     string
	ProjectID sql.NullString
	EnvID     sql.NullString
}

type MaxTenantAuditProjectParams

type MaxTenantAuditProjectParams struct {
	OrgID     string
	ProjectID sql.NullString
}

type McpInflight

type McpInflight struct {
	CallID      string
	PrincipalID string
	OrgID       string
	ExpiresAt   string
}

type McpRateBucket

type McpRateBucket struct {
	PrincipalID string
	NextAt      string
}

type NextEnvironmentOrderParams

type NextEnvironmentOrderParams struct {
	OrgID     string
	ProjectID string
}

type Oauth2Provider

type Oauth2Provider struct {
	ID           string
	Slug         string
	DisplayName  string
	Kind         string
	Profile      string
	Issuer       string
	ClientID     string
	ClientSecret []byte
	RedirectUri  string
	Enabled      int64
	DekVersion   int64
	RowVersion   int64
	CreatedAt    string
	UpdatedAt    string
}

type Oauth2Transaction

type Oauth2Transaction struct {
	ID                     string
	StateVerifier          []byte
	PkceVerifier           string
	ProviderID             string
	Issuer                 string
	RedirectUri            string
	Purpose                string
	Intent                 sql.NullString
	SignupScopeOrgID       sql.NullString
	BindingKind            string
	InitiatingSessionID    sql.NullString
	BrowserBindingVerifier []byte
	AccountID              sql.NullString
	AuthorityID            sql.NullString
	CeremonyID             sql.NullString
	Browser                int64
	CredentialEpoch        int64
	CreatedAt              string
	ExpiresAt              string
	ConsumedAt             sql.NullString
}

type OfflineRecord

type OfflineRecord struct {
	PrincipalID string
	RecordID    string
	CreatedAt   string
}

type OidcProvider

type OidcProvider struct {
	ID              string
	Slug            string
	DisplayName     string
	Kind            string
	Issuer          string
	ClientID        string
	ClientSecret    []byte
	Scopes          string
	RedirectUri     string
	AssurancePolicy sql.NullString
	Enabled         int64
	DekVersion      int64
	RowVersion      int64
	CreatedAt       string
	UpdatedAt       string
}

type OidcTransaction

type OidcTransaction struct {
	ID                     string
	StateVerifier          []byte
	Nonce                  []byte
	PkceVerifier           string
	ProviderID             string
	Issuer                 string
	RedirectUri            string
	Purpose                string
	BindingKind            string
	InitiatingSessionID    sql.NullString
	BrowserBindingVerifier []byte
	AccountID              sql.NullString
	EnvironmentID          sql.NullString
	CeremonyID             sql.NullString
	CredentialEpoch        int64
	CreatedAt              string
	ExpiresAt              string
	ConsumedAt             sql.NullString
	Browser                int64
	Intent                 sql.NullString
	SignupScopeOrgID       sql.NullString
	AuthorityID            sql.NullString
}

type OpsDiagnostic

type OpsDiagnostic struct {
	Singleton            int64
	EscrowVerifiedAt     sql.NullString
	EscrowInstanceID     string
	EscrowIncarnation    string
	EscrowRootEpoch      int64
	LastReencryptSuccess sql.NullString
}

type Org

type Org struct {
	ID                     string
	Name                   string
	Active                 int64
	Metadata               string
	CreatedAt              string
	RetentionMode          string
	RetentionAgeSeconds    int64
	RetentionRevisionCount int64
	Origin                 string
	RegistrationPolicyID   sql.NullString
	IdentityHue            int64
	IdentityMark           sql.NullString
	IdentityImage          []byte
	IdentityImageType      sql.NullString
	IdentityImageVersion   sql.NullString
}

type OrgEmailInvitation

type OrgEmailInvitation struct {
	ID                 string
	OrgID              string
	Email              string
	Template           string
	InviterPrincipalID string
	AccountID          sql.NullString
	TokenVerifier      []byte
	CredentialEpoch    int64
	CreatedAt          string
	ExpiresAt          string
}

type PKIActiveIssuerRow

type PKIActiveIssuerRow struct {
	ID                 string
	Name               string
	Version            int64
	Kind               string
	Origin             string
	ParentID           string
	State              string
	KeyAlgorithm       string
	KeyFingerprint     string
	KeyPresent         int64
	CertificateDer     []byte
	CsrDer             []byte
	ChainPem           string
	SubjectCn          string
	SubjectOrg         string
	NotBefore          sql.NullString
	NotAfter           sql.NullString
	CrlDistributionUrl string
	RestoreHold        int64
	IssuedCount        int64
	CrlDer             []byte
	CrlNumber          int64
	RevocationSeq      int64
	CrlThisUpdate      sql.NullString
	CrlNextUpdate      sql.NullString
	RowVersion         int64
	CreatedBy          string
	CreatedAt          string
	UpdatedAt          string
}

type PKIBoundProfileParams

type PKIBoundProfileParams struct {
	Name         string
	ChainOrg     string
	ChainProject string
	ChainEnv     sql.NullString
}

type PKIBoundProfilesParams

type PKIBoundProfilesParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     sql.NullString
}

type PKIClaimRenewalParams

type PKIClaimRenewalParams struct {
	SuccessorID  sql.NullString
	At           string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKICompleteRenewalParams

type PKICompleteRenewalParams struct {
	At           string
	ID           string
	SuccessorID  sql.NullString
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKICountLiveCertificatesParams

type PKICountLiveCertificatesParams struct {
	IssuerID string
	Now      string
}

type PKICreateBindingParams

type PKICreateBindingParams struct {
	ID            string
	ProfileID     string
	OrgID         string
	ProjectID     string
	EnvironmentID sql.NullString
	CreatedBy     string
	At            string
}

type PKICreateCertificateParams

type PKICreateCertificateParams struct {
	ID              string
	ChainOrg        string
	ChainProject    string
	ChainEnv        string
	ProfileID       string
	ProfileName     string
	IssuerID        string
	Serial          string
	KeySource       string
	KeyAlgorithm    string
	KeyFingerprint  string
	CommonName      string
	Sans            string
	NotBefore       string
	NotAfter        string
	PrincipalID     string
	PrincipalClass  string
	RenewedFrom     sql.NullString
	IssuingDeadline string
	At              string
}

type PKICreateIssuerParams

type PKICreateIssuerParams struct {
	ID                  string
	Name                string
	Version             int64
	Kind                string
	Origin              string
	ParentID            sql.NullString
	State               string
	KeyAlgorithm        string
	KeyFingerprint      string
	EncryptedPrivateKey []byte
	DekVersion          sql.NullInt64
	CertificateDer      []byte
	CsrDer              []byte
	ChainPem            string
	SubjectCn           string
	SubjectOrg          string
	NotBefore           sql.NullString
	NotAfter            sql.NullString
	CrlDistributionUrl  string
	CreatedBy           string
	At                  string
}

type PKICreateProfileParams

type PKICreateProfileParams struct {
	ID        string
	Name      string
	Policy    string
	CreatedBy string
	At        string
}

type PKIDeleteBindingParams

type PKIDeleteBindingParams struct {
	ID        string
	ProfileID string
}

type PKIDestroyIssuerKeyParams

type PKIDestroyIssuerKeyParams struct {
	NextState  string
	At         string
	ID         string
	PriorState string
	RowVersion int64
}

type PKIFailCertificateParams

type PKIFailCertificateParams struct {
	At           string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKIFinishCertificateParams

type PKIFinishCertificateParams struct {
	Der          []byte
	At           string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKIGetCertificateParams

type PKIGetCertificateParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKIGetCertificateRow

type PKIGetCertificateRow struct {
	ID               string
	EnvironmentID    string
	ProfileID        string
	ProfileName      string
	IssuerID         string
	Serial           string
	State            string
	KeySource        string
	KeyAlgorithm     string
	KeyFingerprint   string
	CommonName       string
	Sans             string
	NotBefore        string
	NotAfter         string
	CertificateDer   []byte
	PrincipalID      string
	PrincipalClass   string
	RenewedFrom      string
	RenewedBy        string
	RevokedAt        sql.NullString
	RevocationReason string
	IssuingDeadline  string
	RowVersion       int64
	CreatedAt        string
	UpdatedAt        string
}

type PKIGetIssuerRow

type PKIGetIssuerRow struct {
	ID                 string
	Name               string
	Version            int64
	Kind               string
	Origin             string
	ParentID           string
	State              string
	KeyAlgorithm       string
	KeyFingerprint     string
	KeyPresent         int64
	CertificateDer     []byte
	CsrDer             []byte
	ChainPem           string
	SubjectCn          string
	SubjectOrg         string
	NotBefore          sql.NullString
	NotAfter           sql.NullString
	CrlDistributionUrl string
	RestoreHold        int64
	IssuedCount        int64
	CrlDer             []byte
	CrlNumber          int64
	RevocationSeq      int64
	CrlThisUpdate      sql.NullString
	CrlNextUpdate      sql.NullString
	RowVersion         int64
	CreatedBy          string
	CreatedAt          string
	UpdatedAt          string
}

type PKIInstallIssuerParams

type PKIInstallIssuerParams struct {
	CertificateDer []byte
	ChainPem       string
	NotBefore      sql.NullString
	NotAfter       sql.NullString
	At             string
	ID             string
	RowVersion     int64
}

type PKIIssuerKeyRow

type PKIIssuerKeyRow struct {
	EncryptedPrivateKey []byte
	DekVersion          sql.NullInt64
}

type PKIListBindingsRow

type PKIListBindingsRow struct {
	ID            string
	ProfileID     string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	CreatedBy     string
	CreatedAt     string
}

type PKIListCertificatesParams

type PKIListCertificatesParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKIListCertificatesRow

type PKIListCertificatesRow struct {
	ID               string
	EnvironmentID    string
	ProfileID        string
	ProfileName      string
	IssuerID         string
	Serial           string
	State            string
	KeySource        string
	KeyAlgorithm     string
	KeyFingerprint   string
	CommonName       string
	Sans             string
	NotBefore        string
	NotAfter         string
	CertificateDer   []byte
	PrincipalID      string
	PrincipalClass   string
	RenewedFrom      string
	RenewedBy        string
	RevokedAt        sql.NullString
	RevocationReason string
	IssuingDeadline  string
	RowVersion       int64
	CreatedAt        string
	UpdatedAt        string
}

type PKIListIssuersRow

type PKIListIssuersRow struct {
	ID                 string
	Name               string
	Version            int64
	Kind               string
	Origin             string
	ParentID           string
	State              string
	KeyAlgorithm       string
	KeyFingerprint     string
	KeyPresent         int64
	CertificateDer     []byte
	CsrDer             []byte
	ChainPem           string
	SubjectCn          string
	SubjectOrg         string
	NotBefore          sql.NullString
	NotAfter           sql.NullString
	CrlDistributionUrl string
	RestoreHold        int64
	IssuedCount        int64
	CrlDer             []byte
	CrlNumber          int64
	RevocationSeq      int64
	CrlThisUpdate      sql.NullString
	CrlNextUpdate      sql.NullString
	RowVersion         int64
	CreatedBy          string
	CreatedAt          string
	UpdatedAt          string
}

type PKIPublishCRLParams

type PKIPublishCRLParams struct {
	Der            []byte
	Number         int64
	RevocationSeq  int64
	ThisUpdate     sql.NullString
	NextUpdate     sql.NullString
	ID             string
	PreviousNumber int64
}

type PKIReleaseRenewalParams

type PKIReleaseRenewalParams struct {
	At           string
	ID           string
	SuccessorID  sql.NullString
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKIRevokeCertificateParams

type PKIRevokeCertificateParams struct {
	At           sql.NullString
	Reason       sql.NullString
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type PKIRevokeLiveCertificatesParams

type PKIRevokeLiveCertificatesParams struct {
	At       sql.NullString
	Reason   sql.NullString
	IssuerID string
}

type PKIRevokedChildrenParams

type PKIRevokedChildrenParams struct {
	IssuerID sql.NullString
	Now      sql.NullString
}

type PKIRevokedChildrenRow

type PKIRevokedChildrenRow struct {
	CertificateDer []byte
	UpdatedAt      string
}

type PKIRevokedEntriesParams

type PKIRevokedEntriesParams struct {
	IssuerID string
	Now      string
}

type PKIRevokedEntriesRow

type PKIRevokedEntriesRow struct {
	Serial    string
	RevokedAt string
	Reason    string
}

type PKISetIssuerHoldParams

type PKISetIssuerHoldParams struct {
	Hold       int64
	At         string
	ID         string
	RowVersion int64
}

type PKISigningIssuerRow

type PKISigningIssuerRow struct {
	ID                 string
	Name               string
	Version            int64
	Kind               string
	Origin             string
	ParentID           string
	State              string
	KeyAlgorithm       string
	KeyFingerprint     string
	KeyPresent         int64
	CertificateDer     []byte
	CsrDer             []byte
	ChainPem           string
	SubjectCn          string
	SubjectOrg         string
	NotBefore          sql.NullString
	NotAfter           sql.NullString
	CrlDistributionUrl string
	RestoreHold        int64
	IssuedCount        int64
	CrlDer             []byte
	CrlNumber          int64
	RevocationSeq      int64
	CrlThisUpdate      sql.NullString
	CrlNextUpdate      sql.NullString
	RowVersion         int64
	CreatedBy          string
	CreatedAt          string
	UpdatedAt          string
}

type PKITransitionIssuerParams

type PKITransitionIssuerParams struct {
	NextState  string
	At         string
	ID         string
	PriorState string
	RowVersion int64
}

type PKIUpdateProfileParams

type PKIUpdateProfileParams struct {
	Policy     string
	At         string
	ID         string
	RowVersion int64
}

type PageInstanceAuditExportParams

type PageInstanceAuditExportParams struct {
	AfterSeq       int64
	AfterCommitSeq int64
	FromTime       string
	ToTime         string
	PageLimit      int64
}

type PageInstanceAuditParams

type PageInstanceAuditParams struct {
	Seq          int64
	RecordedAt   string
	RecordedAt_2 string
	Limit        int64
}

type PageSCIMGroupsByDisplayNameParams

type PageSCIMGroupsByDisplayNameParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
	PageOffset  int64
	PageLimit   int64
}

type PageSCIMGroupsByExternalIDParams

type PageSCIMGroupsByExternalIDParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
	PageOffset  int64
	PageLimit   int64
}

type PageSCIMGroupsParams

type PageSCIMGroupsParams struct {
	OrgID     string
	BindingID string
	Limit     int64
	Offset    int64
}

type PageSCIMUsersByExternalIDParams

type PageSCIMUsersByExternalIDParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
	PageOffset  int64
	PageLimit   int64
}

type PageSCIMUsersByUserNameParams

type PageSCIMUsersByUserNameParams struct {
	OrgID       string
	BindingID   string
	FilterValue string
	PageOffset  int64
	PageLimit   int64
}

type PageSCIMUsersParams

type PageSCIMUsersParams struct {
	OrgID     string
	BindingID string
	Limit     int64
	Offset    int64
}

type PageTenantAuditEnvParams

type PageTenantAuditEnvParams struct {
	OrgID        string
	ProjectID    sql.NullString
	EnvID        sql.NullString
	Seq          int64
	RecordedAt   string
	RecordedAt_2 string
	Limit        int64
}

type PageTenantAuditExportEnvParams

type PageTenantAuditExportEnvParams struct {
	ChainOrgID     string
	ChainProjectID sql.NullString
	ChainEnvID     sql.NullString
	AfterSeq       int64
	AfterCommitSeq int64
	FromTime       string
	ToTime         string
	PageLimit      int64
}

type PageTenantAuditExportOrgParams

type PageTenantAuditExportOrgParams struct {
	ChainOrgID     string
	AfterSeq       int64
	AfterCommitSeq int64
	FromTime       string
	ToTime         string
	PageLimit      int64
}

type PageTenantAuditExportProjectParams

type PageTenantAuditExportProjectParams struct {
	ChainOrgID     string
	ChainProjectID sql.NullString
	AfterSeq       int64
	AfterCommitSeq int64
	FromTime       string
	ToTime         string
	PageLimit      int64
}

type PageTenantAuditOrgParams

type PageTenantAuditOrgParams struct {
	OrgID        string
	Seq          int64
	RecordedAt   string
	RecordedAt_2 string
	Limit        int64
}

type PageTenantAuditProjectParams

type PageTenantAuditProjectParams struct {
	OrgID        string
	ProjectID    sql.NullString
	Seq          int64
	RecordedAt   string
	RecordedAt_2 string
	Limit        int64
}

type PasswordCredential

type PasswordCredential struct {
	AccountID       string
	Verifier        []byte
	KdfMemoryKib    int64
	KdfTime         int64
	KdfParallelism  int64
	DekVersion      int64
	CredentialEpoch int64
	RowVersion      int64
	UpdatedAt       string
}

type PendingChange

type PendingChange struct {
	ID                 string
	OrgID              string
	ProjectID          string
	EnvironmentID      string
	KeyID              string
	OwnerID            string
	Operation          string
	Ciphertext         []byte
	StagedFromRevision int64
	StagedFromEntry    string
	CreatedAt          string
	Source             string
	Secret             int64
	MaterialSecret     int64
}

type PersonalOwnerHoldsInEnvironmentParams

type PersonalOwnerHoldsInEnvironmentParams struct {
	PrincipalID string
	OrgID       string
	ProjectID   string
	EnvID       string
}

type PersonalReportEvidenceFloorParams

type PersonalReportEvidenceFloorParams struct {
	ChainOrgID     string
	ChainProjectID sql.NullString
}

type PersonalReportEvidenceFloorRow

type PersonalReportEvidenceFloorRow struct {
	ID         string
	RecordedAt string
}

type PersonalReportKeyChangesParams

type PersonalReportKeyChangesParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type PersonalReportKeyChangesRow

type PersonalReportKeyChangesRow struct {
	EnvironmentID string
	KeyName       string
	LastChangedAt string
}

type PersonalReportMemberSeenParams

type PersonalReportMemberSeenParams struct {
	ChainOrgID     string
	ChainProjectID sql.NullString
	Member         sql.NullString
}

type PersonalReportReceiptsParams

type PersonalReportReceiptsParams struct {
	ChainOrgID     string
	ChainProjectID sql.NullString
	Member         sql.NullString
}

type PersonalReportReceiptsRow

type PersonalReportReceiptsRow struct {
	EnvID          sql.NullString
	KeyName        string
	LastReceivedAt string
}

type PersonalRequiredKeysForEnvironmentParams

type PersonalRequiredKeysForEnvironmentParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type PersonalValue

type PersonalValue struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	KeyID            string
	OwnerPrincipalID string
	Ciphertext       []byte
	CreatedAt        string
	UpdatedAt        string
	SuspendedAt      sql.NullString
}

type PersonalValueHolderCountsParams

type PersonalValueHolderCountsParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type PersonalValueHolderCountsRow

type PersonalValueHolderCountsRow struct {
	KeyID   string
	Holders int64
}

type PersonalValueNotice

type PersonalValueNotice struct {
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	KeyName          string
	OwnerPrincipalID string
	Cause            string
	CreatedAt        string
}

type PersonalValueNoticeCountsParams

type PersonalValueNoticeCountsParams struct {
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type PersonalValueNoticeCountsRow

type PersonalValueNoticeCountsRow struct {
	KeyName string
	Notices int64
}

type PinGeneration

type PinGeneration struct {
	PrincipalID   string
	EnvironmentID string
	Generation    int64
}

type PkiCertificate

type PkiCertificate struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	ProfileID        string
	ProfileName      string
	IssuerID         string
	Serial           string
	State            string
	KeySource        string
	KeyAlgorithm     string
	KeyFingerprint   string
	CommonName       string
	Sans             string
	NotBefore        string
	NotAfter         string
	CertificateDer   []byte
	PrincipalID      string
	PrincipalClass   string
	RenewedFrom      sql.NullString
	RenewedBy        sql.NullString
	RevokedAt        sql.NullString
	RevocationReason sql.NullString
	IssuingDeadline  string
	RowVersion       int64
	CreatedAt        string
	UpdatedAt        string
}

type PkiIssuer

type PkiIssuer struct {
	ID                  string
	Name                string
	Version             int64
	Kind                string
	Origin              string
	ParentID            sql.NullString
	State               string
	KeyAlgorithm        string
	KeyFingerprint      string
	EncryptedPrivateKey []byte
	DekVersion          sql.NullInt64
	CertificateDer      []byte
	CsrDer              []byte
	ChainPem            string
	SubjectCn           string
	SubjectOrg          string
	NotBefore           sql.NullString
	NotAfter            sql.NullString
	CrlDistributionUrl  string
	RestoreHold         int64
	IssuedCount         int64
	CrlDer              []byte
	CrlNumber           int64
	RevocationSeq       int64
	CrlRevocationSeq    int64
	CrlThisUpdate       sql.NullString
	CrlNextUpdate       sql.NullString
	RowVersion          int64
	CreatedBy           string
	CreatedAt           string
	UpdatedAt           string
}

type PkiProfile

type PkiProfile struct {
	ID         string
	Name       string
	Policy     string
	RowVersion int64
	CreatedBy  string
	CreatedAt  string
	UpdatedAt  string
}

type PkiProfileBinding

type PkiProfileBinding struct {
	ID            string
	ProfileID     string
	OrgID         string
	ProjectID     string
	EnvironmentID sql.NullString
	CreatedBy     string
	CreatedAt     string
}

type PollCLILoginParams

type PollCLILoginParams struct {
	LastPollAt   string
	PollInterval int64
	ID           string
}

type Principal

type Principal struct {
	ID                string
	Kind              string
	CreatedAt         string
	SessionGeneration int64
	Class             sql.NullString
	ReconciledEpoch   int64
	PrivacyState      string
}

type PrivacyAccountRow

type PrivacyAccountRow struct {
	ID           string
	PrincipalID  string
	Username     string
	DisplayName  string
	Email        sql.NullString
	CreatedAt    string
	PrivacyState string
}

type PrivacyAuditInstanceRow

type PrivacyAuditInstanceRow struct {
	ID         string
	Type       string
	OccurredAt string
	Outcome    string
	SourceIp   sql.NullString
	UserAgent  sql.NullString
}

type PrivacyAuditTenantRow

type PrivacyAuditTenantRow struct {
	ID         string
	Type       string
	OccurredAt string
	Outcome    string
	SourceIp   sql.NullString
	UserAgent  sql.NullString
}

type PrivacyCorrectAccountParams

type PrivacyCorrectAccountParams struct {
	Username    string
	DisplayName string
	AccountID   string
}

type PrivacyEraseAccountParams

type PrivacyEraseAccountParams struct {
	Username  string
	AccountID string
}

type PrivacySessionsRow

type PrivacySessionsRow struct {
	ID         string
	Artifact   string
	AuthMethod string
	CreatedAt  string
	LastSeenAt string
	SourceIp   string
	UserAgent  string
}

type PrivacySetStateParams

type PrivacySetStateParams struct {
	PrivacyState string
	PrincipalID  string
}

type Project

type Project struct {
	ID                      string
	OrgID                   string
	Name                    string
	CreatedAt               string
	RetentionRevisionCount  sql.NullInt64
	RetentionAgeSeconds     sql.NullInt64
	DefinitionsSource       string
	MachineReveal           int64
	MachineRevealGeneration int64
	KeyLimitOverride        sql.NullInt64
	KeyLimitRevision        int64
	IdentityHue             int64
	IdentityMark            sql.NullString
	IdentityImage           []byte
	IdentityImageType       sql.NullString
	IdentityImageVersion    sql.NullString
}

type ProjectMachineRevealRow

type ProjectMachineRevealRow struct {
	MachineReveal           int64
	MachineRevealGeneration int64
}

type ProjectSchemaRevision

type ProjectSchemaRevision struct {
	OrgID     string
	ProjectID string
	Revision  int64
}

type ProjectSnapshotRevisionsParams

type ProjectSnapshotRevisionsParams struct {
	OrgID     string
	ProjectID string
}

type ProjectSnapshotRevisionsRow

type ProjectSnapshotRevisionsRow struct {
	EnvironmentID string
	Revision      int64
}

type PruneExpiredRegistrationSignupParams

type PruneExpiredRegistrationSignupParams struct {
	ID        string
	ExpiresAt string
}

type PruneInstanceAuditRetentionParams

type PruneInstanceAuditRetentionParams struct {
	AccessTypes        string
	AccessCutoffTime   string
	SecurityCutoffTime string
}

type PruneInstanceAuditRetentionRow

type PruneInstanceAuditRetentionRow struct {
	Type       string
	RecordedAt string
}

type PruneTenantAuditRetentionParams

type PruneTenantAuditRetentionParams struct {
	AccessTypes        string
	AccessCutoffTime   string
	SecurityCutoffTime string
}

type PruneTenantAuditRetentionRow

type PruneTenantAuditRetentionRow struct {
	Type       string
	RecordedAt string
}

type PurgeDeliveryTargetReportParams

type PurgeDeliveryTargetReportParams struct {
	ID         string
	ReceivedAt string
}

type PutSelfConfigNodeParams

type PutSelfConfigNodeParams struct {
	NodeID           string
	JobID            string
	SchemaVersion    int64
	Prepared         int64
	ActiveGeneration int64
	ActiveRevision   int64
	Incarnation      string
	ErrorCode        string
	UpdatedAt        string
}

type PutSelfConfigSeedAttestationParams

type PutSelfConfigSeedAttestationParams struct {
	NodeID        string
	SchemaVersion int64
	Fingerprint   string
	HeartbeatAt   string
}

type PutSelfConfigSeedInputParams

type PutSelfConfigSeedInputParams struct {
	NodeID          string
	OwnerInstanceID string
	Incarnation     string
	Fingerprint     string
	Ciphertext      []byte
	DekVersion      int64
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AcquireHierarchyGeneration

func (q *Queries) AcquireHierarchyGeneration(ctx context.Context) (int64, error)

func (*Queries) AcquireScopeGeneration

func (q *Queries) AcquireScopeGeneration(ctx context.Context, scope string) (int64, error)

AcquireScopeGeneration takes the per-scope fence a version append or a retirement runs inside. On sqlite the single write connection already serializes it; the row read keeps the call shape and proves the row exists.

func (*Queries) AdapterAdoptionConflictCount

func (q *Queries) AdapterAdoptionConflictCount(ctx context.Context, arg AdapterAdoptionConflictCountParams) (int64, error)

func (*Queries) AdapterAdoptionInsertJob

func (q *Queries) AdapterAdoptionInsertJob(ctx context.Context, arg AdapterAdoptionInsertJobParams) (int64, error)

func (*Queries) AdapterAdoptionInsertLedger

func (q *Queries) AdapterAdoptionInsertLedger(ctx context.Context, arg AdapterAdoptionInsertLedgerParams) (int64, error)

func (*Queries) AdapterAdoptionMarkConflict

func (q *Queries) AdapterAdoptionMarkConflict(ctx context.Context, arg AdapterAdoptionMarkConflictParams) (int64, error)

func (*Queries) AdapterAdoptionReclaimReleasedLedger

func (q *Queries) AdapterAdoptionReclaimReleasedLedger(ctx context.Context, arg AdapterAdoptionReclaimReleasedLedgerParams) (int64, error)

Verified current conflict consent may reclaim only this target's released historical name. The global held-name index still rejects foreign custody.

func (*Queries) AdapterAdoptionSupersedeJob

func (q *Queries) AdapterAdoptionSupersedeJob(ctx context.Context, arg AdapterAdoptionSupersedeJobParams) (int64, error)

func (*Queries) AdapterAdoptionTarget

func (q *Queries) AdapterAdoptionTarget(ctx context.Context, arg AdapterAdoptionTargetParams) (AdapterAdoptionTargetRow, error)

func (*Queries) AdapterAdoptionUpdateAuthority

func (q *Queries) AdapterAdoptionUpdateAuthority(ctx context.Context, arg AdapterAdoptionUpdateAuthorityParams) (int64, error)

func (*Queries) AdapterAdoptionUpdateHeldLedger

func (q *Queries) AdapterAdoptionUpdateHeldLedger(ctx context.Context, arg AdapterAdoptionUpdateHeldLedgerParams) (int64, error)

Adopt only this target's existing held Vault/AWS custody; global foreign-name collisions and generic-provider owned rows remain refusal paths.

func (*Queries) AdapterAdoptionUpdateTarget

func (q *Queries) AdapterAdoptionUpdateTarget(ctx context.Context, arg AdapterAdoptionUpdateTargetParams) (int64, error)

func (*Queries) AdapterBeginConfigureEffect

func (q *Queries) AdapterBeginConfigureEffect(ctx context.Context, arg AdapterBeginConfigureEffectParams) error

func (*Queries) AdapterConfigConfiguredNames

func (q *Queries) AdapterConfigConfiguredNames(ctx context.Context, arg AdapterConfigConfiguredNamesParams) ([]AdapterConfigConfiguredNamesRow, error)

Scoped adapter route collisions and current-generation findings.

func (*Queries) AdapterConfigFindings

func (q *Queries) AdapterConfigFindings(ctx context.Context, arg AdapterConfigFindingsParams) ([]AdapterConfigFindingsRow, error)

func (*Queries) AdapterConfigPendingNames

func (q *Queries) AdapterConfigPendingNames(ctx context.Context, arg AdapterConfigPendingNamesParams) ([]AdapterConfigPendingNamesRow, error)

func (*Queries) AdapterConfiguration

func (q *Queries) AdapterConfiguration(ctx context.Context, arg AdapterConfigurationParams) (AdapterConfigurationRow, error)

func (*Queries) AdapterConflicts

func (q *Queries) AdapterConflicts(ctx context.Context, arg AdapterConflictsParams) ([]AdapterConflictsRow, error)

func (*Queries) AdapterCreate

func (q *Queries) AdapterCreate(ctx context.Context, arg AdapterCreateParams) error

func (*Queries) AdapterDeleteTargetKeys

func (q *Queries) AdapterDeleteTargetKeys(ctx context.Context, arg AdapterDeleteTargetKeysParams) error

func (*Queries) AdapterEnqueueTarget

func (q *Queries) AdapterEnqueueTarget(ctx context.Context, arg AdapterEnqueueTargetParams) (int64, error)

func (*Queries) AdapterEnvironments

func (q *Queries) AdapterEnvironments(ctx context.Context, arg AdapterEnvironmentsParams) ([]string, error)

func (*Queries) AdapterEraseUnusedCredential

func (q *Queries) AdapterEraseUnusedCredential(ctx context.Context, arg AdapterEraseUnusedCredentialParams) error

func (*Queries) AdapterFinishConfigureEffect

func (q *Queries) AdapterFinishConfigureEffect(ctx context.Context, arg AdapterFinishConfigureEffectParams) (int64, error)

func (*Queries) AdapterGet

func (q *Queries) AdapterGet(ctx context.Context, arg AdapterGetParams) (AdapterGetRow, error)

func (*Queries) AdapterGetTarget

func (q *Queries) AdapterGetTarget(ctx context.Context, arg AdapterGetTargetParams) (AdapterGetTargetRow, error)

func (*Queries) AdapterHealthCounts

func (q *Queries) AdapterHealthCounts(ctx context.Context) (AdapterHealthCountsRow, error)

hikyo:reason Verified instance HealthCounts authority reads only aggregate target/outbox counts for operator gauges; no tenant rows or writes are returned. hikyo:instance-scoped

func (*Queries) AdapterInsertConflict

func (q *Queries) AdapterInsertConflict(ctx context.Context, arg AdapterInsertConflictParams) (int64, error)

func (*Queries) AdapterInsertScrubJob

func (q *Queries) AdapterInsertScrubJob(ctx context.Context, arg AdapterInsertScrubJobParams) (int64, error)

func (*Queries) AdapterInsertTarget

func (q *Queries) AdapterInsertTarget(ctx context.Context, arg AdapterInsertTargetParams) error

func (*Queries) AdapterInsertTargetKey

func (q *Queries) AdapterInsertTargetKey(ctx context.Context, arg AdapterInsertTargetKeyParams) error

func (*Queries) AdapterList

func (q *Queries) AdapterList(ctx context.Context, arg AdapterListParams) ([]AdapterListRow, error)

func (*Queries) AdapterListForReencrypt

func (q *Queries) AdapterListForReencrypt(ctx context.Context, arg AdapterListForReencryptParams) ([]AdapterListForReencryptRow, error)

func (*Queries) AdapterListTargets

func (q *Queries) AdapterListTargets(ctx context.Context, arg AdapterListTargetsParams) ([]AdapterListTargetsRow, error)

func (*Queries) AdapterManualTarget

func (q *Queries) AdapterManualTarget(ctx context.Context, arg AdapterManualTargetParams) (AdapterManualTargetRow, error)

func (*Queries) AdapterMapping

func (q *Queries) AdapterMapping(ctx context.Context, arg AdapterMappingParams) ([]AdapterMappingRow, error)

func (*Queries) AdapterMarkTombstoned

func (q *Queries) AdapterMarkTombstoned(ctx context.Context, arg AdapterMarkTombstonedParams) (int64, error)

func (*Queries) AdapterMoveAWSPendingNames

func (q *Queries) AdapterMoveAWSPendingNames(ctx context.Context, arg AdapterMoveAWSPendingNamesParams) ([]AdapterMoveAWSPendingNamesRow, error)

func (*Queries) AdapterMoveActivate

func (q *Queries) AdapterMoveActivate(ctx context.Context, arg AdapterMoveActivateParams) (int64, error)

func (*Queries) AdapterMoveActivateCanceledTarget

func (q *Queries) AdapterMoveActivateCanceledTarget(ctx context.Context, arg AdapterMoveActivateCanceledTargetParams) (int64, error)

func (*Queries) AdapterMoveBeginOriginCollisions

func (q *Queries) AdapterMoveBeginOriginCollisions(ctx context.Context, arg AdapterMoveBeginOriginCollisionsParams) (int64, error)

func (*Queries) AdapterMoveBeginTarget

func (q *Queries) AdapterMoveBeginTarget(ctx context.Context, arg AdapterMoveBeginTargetParams) (AdapterMoveBeginTargetRow, error)

func (*Queries) AdapterMoveCancel

func (q *Queries) AdapterMoveCancel(ctx context.Context, arg AdapterMoveCancelParams) (int64, error)

func (*Queries) AdapterMoveCancelTarget

func (q *Queries) AdapterMoveCancelTarget(ctx context.Context, arg AdapterMoveCancelTargetParams) (AdapterMoveCancelTargetRow, error)

func (*Queries) AdapterMoveConfiguredCollision

func (q *Queries) AdapterMoveConfiguredCollision(ctx context.Context, arg AdapterMoveConfiguredCollisionParams) (int64, error)

func (*Queries) AdapterMoveDeleteClaims

func (q *Queries) AdapterMoveDeleteClaims(ctx context.Context, arg AdapterMoveDeleteClaimsParams) (int64, error)

func (*Queries) AdapterMoveDeleteKeys

func (q *Queries) AdapterMoveDeleteKeys(ctx context.Context, arg AdapterMoveDeleteKeysParams) (int64, error)

func (*Queries) AdapterMoveFlags

func (q *Queries) AdapterMoveFlags(ctx context.Context, arg AdapterMoveFlagsParams) (AdapterMoveFlagsRow, error)

func (*Queries) AdapterMoveGet

func (q *Queries) AdapterMoveGet(ctx context.Context, arg AdapterMoveGetParams) (AdapterMoveGetRow, error)

Route-move state transitions use the caller verified org/project chain.

func (*Queries) AdapterMoveGetLocked

func (q *Queries) AdapterMoveGetLocked(ctx context.Context, arg AdapterMoveGetLockedParams) (AdapterMoveGetLockedRow, error)

func (*Queries) AdapterMoveInsertAWSClaim

func (q *Queries) AdapterMoveInsertAWSClaim(ctx context.Context, arg AdapterMoveInsertAWSClaimParams) (int64, error)

func (*Queries) AdapterMoveInsertActivateJob

func (q *Queries) AdapterMoveInsertActivateJob(ctx context.Context, arg AdapterMoveInsertActivateJobParams) (int64, error)

func (*Queries) AdapterMoveInsertClaim

func (q *Queries) AdapterMoveInsertClaim(ctx context.Context, arg AdapterMoveInsertClaimParams) (int64, error)

func (*Queries) AdapterMoveInsertConvergeJob

func (q *Queries) AdapterMoveInsertConvergeJob(ctx context.Context, arg AdapterMoveInsertConvergeJobParams) (int64, error)

func (*Queries) AdapterMoveInsertJob

func (q *Queries) AdapterMoveInsertJob(ctx context.Context, arg AdapterMoveInsertJobParams) (int64, error)

func (*Queries) AdapterMoveInsertKey

func (q *Queries) AdapterMoveInsertKey(ctx context.Context, arg AdapterMoveInsertKeyParams) (int64, error)

func (*Queries) AdapterMoveInsertOrigin

func (q *Queries) AdapterMoveInsertOrigin(ctx context.Context, arg AdapterMoveInsertOriginParams) (int64, error)

func (*Queries) AdapterMoveInsertTarget

func (q *Queries) AdapterMoveInsertTarget(ctx context.Context, arg AdapterMoveInsertTargetParams) (int64, error)

func (*Queries) AdapterMoveInsertTargetMove

func (q *Queries) AdapterMoveInsertTargetMove(ctx context.Context, arg AdapterMoveInsertTargetMoveParams) (int64, error)

func (*Queries) AdapterMoveJobs

func (q *Queries) AdapterMoveJobs(ctx context.Context, arg AdapterMoveJobsParams) ([]AdapterMoveJobsRow, error)

func (*Queries) AdapterMoveMarkAdapterMoving

func (q *Queries) AdapterMoveMarkAdapterMoving(ctx context.Context, arg AdapterMoveMarkAdapterMovingParams) (int64, error)

func (*Queries) AdapterMoveMarkMovingTarget

func (q *Queries) AdapterMoveMarkMovingTarget(ctx context.Context, arg AdapterMoveMarkMovingTargetParams) (int64, error)

func (*Queries) AdapterMoveMarkResumingTarget

func (q *Queries) AdapterMoveMarkResumingTarget(ctx context.Context, arg AdapterMoveMarkResumingTargetParams) (int64, error)

func (*Queries) AdapterMovePendingKeyIDs

func (q *Queries) AdapterMovePendingKeyIDs(ctx context.Context, arg AdapterMovePendingKeyIDsParams) ([]string, error)

func (*Queries) AdapterMoveReleaseLedger

func (q *Queries) AdapterMoveReleaseLedger(ctx context.Context, arg AdapterMoveReleaseLedgerParams) (int64, error)

func (*Queries) AdapterMoveReplaceOriginCollisions

func (q *Queries) AdapterMoveReplaceOriginCollisions(ctx context.Context, arg AdapterMoveReplaceOriginCollisionsParams) (int64, error)

func (*Queries) AdapterMoveResetDestinations

func (q *Queries) AdapterMoveResetDestinations(ctx context.Context, arg AdapterMoveResetDestinationsParams) (int64, error)

func (*Queries) AdapterMoveRestoreAdapter

func (q *Queries) AdapterMoveRestoreAdapter(ctx context.Context, arg AdapterMoveRestoreAdapterParams) (int64, error)

func (*Queries) AdapterMoveResumeTarget

func (q *Queries) AdapterMoveResumeTarget(ctx context.Context, arg AdapterMoveResumeTargetParams) (int64, error)

func (*Queries) AdapterMoveSetActiveAuthority

func (q *Queries) AdapterMoveSetActiveAuthority(ctx context.Context, arg AdapterMoveSetActiveAuthorityParams) (int64, error)

func (*Queries) AdapterMoveSupersedeJob

func (q *Queries) AdapterMoveSupersedeJob(ctx context.Context, arg AdapterMoveSupersedeJobParams) (int64, error)

func (*Queries) AdapterMoveTargetKeyIDs

func (q *Queries) AdapterMoveTargetKeyIDs(ctx context.Context, arg AdapterMoveTargetKeyIDsParams) ([]string, error)

func (*Queries) AdapterMoveTargets

func (q *Queries) AdapterMoveTargets(ctx context.Context, arg AdapterMoveTargetsParams) ([]AdapterMoveTargetsRow, error)

func (*Queries) AdapterMoveUpdateAuthority

func (q *Queries) AdapterMoveUpdateAuthority(ctx context.Context, arg AdapterMoveUpdateAuthorityParams) (int64, error)

func (*Queries) AdapterMoveUpdatePendingOrigin

func (q *Queries) AdapterMoveUpdatePendingOrigin(ctx context.Context, arg AdapterMoveUpdatePendingOriginParams) (int64, error)

func (*Queries) AdapterMoveUpdatePendingTarget

func (q *Queries) AdapterMoveUpdatePendingTarget(ctx context.Context, arg AdapterMoveUpdatePendingTargetParams) (int64, error)

func (*Queries) AdapterOriginHeldCandidates

func (q *Queries) AdapterOriginHeldCandidates(ctx context.Context, arg AdapterOriginHeldCandidatesParams) ([]AdapterOriginHeldCandidatesRow, error)

hikyo:reason Authorized adapter custody checks read only held origin metadata within the exact provider and resolved destination, repository, scope and normalized name, using the logical surface except for Vault whose secret and config surfaces share one physical tree, including the current target's historical claim. Canonical-origin comparison stays in the private store owner; paged candidates do not expose tenant identifiers or values and prevent legacy aliases from bypassing the global held-custody constraint. hikyo:instance-scoped

func (*Queries) AdapterOrphans

func (q *Queries) AdapterOrphans(ctx context.Context, arg AdapterOrphansParams) ([]AdapterOrphansRow, error)

func (*Queries) AdapterPauseTarget

func (q *Queries) AdapterPauseTarget(ctx context.Context, arg AdapterPauseTargetParams) (AdapterPauseTargetRow, error)

func (*Queries) AdapterPauseTargetUpdate

func (q *Queries) AdapterPauseTargetUpdate(ctx context.Context, arg AdapterPauseTargetUpdateParams) (int64, error)

func (*Queries) AdapterPlanCredential

func (q *Queries) AdapterPlanCredential(ctx context.Context, arg AdapterPlanCredentialParams) (AdapterPlanCredentialRow, error)

func (*Queries) AdapterPlanLedger

func (q *Queries) AdapterPlanLedger(ctx context.Context, arg AdapterPlanLedgerParams) ([]AdapterPlanLedgerRow, error)

func (*Queries) AdapterPlanManifest

func (q *Queries) AdapterPlanManifest(ctx context.Context, arg AdapterPlanManifestParams) ([]AdapterPlanManifestRow, error)

func (*Queries) AdapterPlanTarget

func (q *Queries) AdapterPlanTarget(ctx context.Context, arg AdapterPlanTargetParams) (AdapterPlanTargetRow, error)

func (*Queries) AdapterProvider

func (q *Queries) AdapterProvider(ctx context.Context, arg AdapterProviderParams) ([]string, error)

func (*Queries) AdapterPublishedTargets

func (q *Queries) AdapterPublishedTargets(ctx context.Context, arg AdapterPublishedTargetsParams) ([]AdapterPublishedTargetsRow, error)

func (*Queries) AdapterRecordCredentialExpiry

func (q *Queries) AdapterRecordCredentialExpiry(ctx context.Context, arg AdapterRecordCredentialExpiryParams) (int64, error)

func (*Queries) AdapterReencrypt

func (q *Queries) AdapterReencrypt(ctx context.Context, arg AdapterReencryptParams) (int64, error)

func (*Queries) AdapterReencryptMove

func (q *Queries) AdapterReencryptMove(ctx context.Context, arg AdapterReencryptMoveParams) (int64, error)

func (*Queries) AdapterReleaseLedger

func (q *Queries) AdapterReleaseLedger(ctx context.Context, arg AdapterReleaseLedgerParams) error

func (*Queries) AdapterReplaceCredential

func (q *Queries) AdapterReplaceCredential(ctx context.Context, arg AdapterReplaceCredentialParams) (int64, error)

func (*Queries) AdapterReplaceCredentialBump

func (q *Queries) AdapterReplaceCredentialBump(ctx context.Context, arg AdapterReplaceCredentialBumpParams) (int64, error)

func (*Queries) AdapterResumeAdoptedJob

func (q *Queries) AdapterResumeAdoptedJob(ctx context.Context, arg AdapterResumeAdoptedJobParams) (int64, error)

Resume the paused adoption job without advancing its exact generation witness. The caller revalidates consent through AdapterPlanLedger in the same transaction.

func (*Queries) AdapterResumeRevision

func (q *Queries) AdapterResumeRevision(ctx context.Context, arg AdapterResumeRevisionParams) (int64, error)

func (*Queries) AdapterResumeTarget

func (q *Queries) AdapterResumeTarget(ctx context.Context, arg AdapterResumeTargetParams) (int64, error)

func (*Queries) AdapterRetainTarget

func (q *Queries) AdapterRetainTarget(ctx context.Context, arg AdapterRetainTargetParams) (int64, error)

func (*Queries) AdapterRetireCredentialJobs

func (q *Queries) AdapterRetireCredentialJobs(ctx context.Context, arg AdapterRetireCredentialJobsParams) (int64, error)

Retire only pending work for this adapter's active scoped targets before credential generation changes. Never rewrite a terminal provider outcome.

func (*Queries) AdapterRevokeCredential

func (q *Queries) AdapterRevokeCredential(ctx context.Context, arg AdapterRevokeCredentialParams) (int64, error)

func (*Queries) AdapterRevokeCredentialBump

func (q *Queries) AdapterRevokeCredentialBump(ctx context.Context, arg AdapterRevokeCredentialBumpParams) (int64, error)

func (*Queries) AdapterScrubTarget

func (q *Queries) AdapterScrubTarget(ctx context.Context, arg AdapterScrubTargetParams) (int64, error)

func (*Queries) AdapterTargetActiveJob

func (q *Queries) AdapterTargetActiveJob(ctx context.Context, arg AdapterTargetActiveJobParams) (string, error)

func (*Queries) AdapterTargetEnvironments

func (q *Queries) AdapterTargetEnvironments(ctx context.Context, arg AdapterTargetEnvironmentsParams) ([]string, error)

func (*Queries) AdapterTargetKeyIDs

func (q *Queries) AdapterTargetKeyIDs(ctx context.Context, arg AdapterTargetKeyIDsParams) ([]string, error)

func (*Queries) AdapterTargetKeys

func (q *Queries) AdapterTargetKeys(ctx context.Context, arg AdapterTargetKeysParams) ([]AdapterTargetKeysRow, error)

func (*Queries) AdapterTeardownAuthority

func (q *Queries) AdapterTeardownAuthority(ctx context.Context, arg AdapterTeardownAuthorityParams) (string, error)

func (*Queries) AdapterTeardownTarget

func (q *Queries) AdapterTeardownTarget(ctx context.Context, arg AdapterTeardownTargetParams) (AdapterTeardownTargetRow, error)

func (*Queries) AdapterTeardownTargets

func (q *Queries) AdapterTeardownTargets(ctx context.Context, arg AdapterTeardownTargetsParams) ([]AdapterTeardownTargetsRow, error)

func (*Queries) AdapterTeardownUnfinishedMoves

func (q *Queries) AdapterTeardownUnfinishedMoves(ctx context.Context, arg AdapterTeardownUnfinishedMovesParams) (int64, error)

func (*Queries) AdapterUpdateActiveAuthority

func (q *Queries) AdapterUpdateActiveAuthority(ctx context.Context, arg AdapterUpdateActiveAuthorityParams) (int64, error)

func (*Queries) AdapterUpdateAuthorityExpiry

func (q *Queries) AdapterUpdateAuthorityExpiry(ctx context.Context, arg AdapterUpdateAuthorityExpiryParams) (int64, error)

func (*Queries) AdapterUpdateTargetConfig

func (q *Queries) AdapterUpdateTargetConfig(ctx context.Context, arg AdapterUpdateTargetConfigParams) (int64, error)

func (*Queries) AdapterWorkerActivateApplyTarget

func (q *Queries) AdapterWorkerActivateApplyTarget(ctx context.Context, arg AdapterWorkerActivateApplyTargetParams) (int64, error)

func (*Queries) AdapterWorkerActivateCollisionQuery

func (q *Queries) AdapterWorkerActivateCollisionQuery(ctx context.Context, arg AdapterWorkerActivateCollisionQueryParams) (int64, error)

func (*Queries) AdapterWorkerActivateCompleteMove

func (q *Queries) AdapterWorkerActivateCompleteMove(ctx context.Context, arg AdapterWorkerActivateCompleteMoveParams) (int64, error)

func (*Queries) AdapterWorkerActivateDeleteClaims

func (q *Queries) AdapterWorkerActivateDeleteClaims(ctx context.Context, arg AdapterWorkerActivateDeleteClaimsParams) (int64, error)

func (*Queries) AdapterWorkerActivateDeleteKeys

func (q *Queries) AdapterWorkerActivateDeleteKeys(ctx context.Context, arg AdapterWorkerActivateDeleteKeysParams) (int64, error)

func (*Queries) AdapterWorkerActivateFinish

func (q *Queries) AdapterWorkerActivateFinish(ctx context.Context, arg AdapterWorkerActivateFinishParams) (int64, error)

func (*Queries) AdapterWorkerActivateInsertJob

func (q *Queries) AdapterWorkerActivateInsertJob(ctx context.Context, arg AdapterWorkerActivateInsertJobParams) (int64, error)

func (*Queries) AdapterWorkerActivateInsertKeys

func (q *Queries) AdapterWorkerActivateInsertKeys(ctx context.Context, arg AdapterWorkerActivateInsertKeysParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveActivateAdapter

func (q *Queries) AdapterWorkerActivateOriginRouteMoveActivateAdapter(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveActivateAdapterParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveApplyTarget

func (q *Queries) AdapterWorkerActivateOriginRouteMoveApplyTarget(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveApplyTargetParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveCompleteMove

func (q *Queries) AdapterWorkerActivateOriginRouteMoveCompleteMove(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveCompleteMoveParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveCountUnresolved

func (q *Queries) AdapterWorkerActivateOriginRouteMoveCountUnresolved(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveCountUnresolvedParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveDeleteClaims

func (q *Queries) AdapterWorkerActivateOriginRouteMoveDeleteClaims(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveDeleteClaimsParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveDeleteKeys

func (q *Queries) AdapterWorkerActivateOriginRouteMoveDeleteKeys(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveDeleteKeysParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveInsertJob

func (q *Queries) AdapterWorkerActivateOriginRouteMoveInsertJob(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveInsertJobParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveInsertKeys

func (q *Queries) AdapterWorkerActivateOriginRouteMoveInsertKeys(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveInsertKeysParams) (int64, error)

func (*Queries) AdapterWorkerActivateOriginRouteMoveMarkProbe

func (q *Queries) AdapterWorkerActivateOriginRouteMoveMarkProbe(ctx context.Context, arg AdapterWorkerActivateOriginRouteMoveMarkProbeParams) (int64, error)

func (*Queries) AdapterWorkerActivateReleaseReservations

func (q *Queries) AdapterWorkerActivateReleaseReservations(ctx context.Context, arg AdapterWorkerActivateReleaseReservationsParams) (int64, error)

Only unsent claims are retired after the activation job obtains its live generation and provider fence. Dispatched and owned custody is never removed.

func (*Queries) AdapterWorkerActivateSetResolved

func (q *Queries) AdapterWorkerActivateSetResolved(ctx context.Context, arg AdapterWorkerActivateSetResolvedParams) (int64, error)

func (*Queries) AdapterWorkerActivateUpdateExpiry

func (q *Queries) AdapterWorkerActivateUpdateExpiry(ctx context.Context, arg AdapterWorkerActivateUpdateExpiryParams) (int64, error)

func (*Queries) AdapterWorkerCheckProviderSwitchQuery

func (q *Queries) AdapterWorkerCheckProviderSwitchQuery(ctx context.Context) (int64, error)

hikyo:reason Closed host-only provider-switch authority rejects network operation contexts and returns only whether any retained adapter configuration or configuration fence exists, to refuse an unsafe provider change. hikyo:instance-scoped

func (*Queries) AdapterWorkerClaimDueSelectQuery

func (q *Queries) AdapterWorkerClaimDueSelectQuery(ctx context.Context, now string) (AdapterWorkerClaimDueSelectQueryRow, error)

hikyo:reason Closed adapter worker claim authority selects one due or expired leased job installation-wide, enforcing per-org concurrency and same-target exclusion under the PostgreSQL row lock; the claimed row supplies the downstream tenant chain. hikyo:instance-scoped

func (*Queries) AdapterWorkerClaimDueUpdate

func (q *Queries) AdapterWorkerClaimDueUpdate(ctx context.Context, arg AdapterWorkerClaimDueUpdateParams) (int64, error)

hikyo:reason Closed adapter worker claim transaction updates only the globally unique outbox row selected and locked immediately above, setting its incremented attempt and new owner/deadline before scoped effect settlement. hikyo:instance-scoped

func (*Queries) AdapterWorkerCloseIndeterminateEffectsRelease

func (q *Queries) AdapterWorkerCloseIndeterminateEffectsRelease(ctx context.Context, arg AdapterWorkerCloseIndeterminateEffectsReleaseParams) (int64, error)

func (*Queries) AdapterWorkerCloseIndeterminateEffectsUpdate

func (q *Queries) AdapterWorkerCloseIndeterminateEffectsUpdate(ctx context.Context, arg AdapterWorkerCloseIndeterminateEffectsUpdateParams) (int64, error)

func (*Queries) AdapterWorkerCompleteJob

func (q *Queries) AdapterWorkerCompleteJob(ctx context.Context, arg AdapterWorkerCompleteJobParams) (int64, error)

hikyo:reason Closed adapter worker terminal settlement matches the claimed outbox row id, lease owner, stored org/project/environment/target/generation/authority/kind/route identity before any audit. Ordinary outcomes retain scoped current-target checks; intentional stale-generation abort settles and audits only that stored claimed identity without requiring the superseded current-target fence, in the same transaction. hikyo:instance-scoped

func (*Queries) AdapterWorkerDetachSupersededJob

func (q *Queries) AdapterWorkerDetachSupersededJob(ctx context.Context, arg AdapterWorkerDetachSupersededJobParams) (int64, error)

Only the just-settled old job's pointer is detached; replacement pointers and all provider effect fences survive a superseded-generation abort.

func (*Queries) AdapterWorkerFinishDeadCredentialScrubErase

func (q *Queries) AdapterWorkerFinishDeadCredentialScrubErase(ctx context.Context, arg AdapterWorkerFinishDeadCredentialScrubEraseParams) (int64, error)

func (*Queries) AdapterWorkerFinishDeadCredentialScrubLookup

func (q *Queries) AdapterWorkerFinishDeadCredentialScrubLookup(ctx context.Context, arg AdapterWorkerFinishDeadCredentialScrubLookupParams) (string, error)

func (*Queries) AdapterWorkerFinishDeadCredentialScrubMarkTarget

func (q *Queries) AdapterWorkerFinishDeadCredentialScrubMarkTarget(ctx context.Context, arg AdapterWorkerFinishDeadCredentialScrubMarkTargetParams) (int64, error)

func (*Queries) AdapterWorkerFinishDeadCredentialScrubReleaseLedger

func (q *Queries) AdapterWorkerFinishDeadCredentialScrubReleaseLedger(ctx context.Context, arg AdapterWorkerFinishDeadCredentialScrubReleaseLedgerParams) (int64, error)

func (*Queries) AdapterWorkerFinishJobAttention

func (q *Queries) AdapterWorkerFinishJobAttention(ctx context.Context, arg AdapterWorkerFinishJobAttentionParams) (int64, error)

func (*Queries) AdapterWorkerFinishJobErase

func (q *Queries) AdapterWorkerFinishJobErase(ctx context.Context, arg AdapterWorkerFinishJobEraseParams) (int64, error)

func (*Queries) AdapterWorkerFinishJobLookup

func (q *Queries) AdapterWorkerFinishJobLookup(ctx context.Context, arg AdapterWorkerFinishJobLookupParams) (string, error)

func (*Queries) AdapterWorkerFinishJobMarkTarget

func (q *Queries) AdapterWorkerFinishJobMarkTarget(ctx context.Context, arg AdapterWorkerFinishJobMarkTargetParams) (int64, error)

func (*Queries) AdapterWorkerFinishJobMarkTargets

func (q *Queries) AdapterWorkerFinishJobMarkTargets(ctx context.Context, arg AdapterWorkerFinishJobMarkTargetsParams) (int64, error)

func (*Queries) AdapterWorkerFinishJobQuery

func (q *Queries) AdapterWorkerFinishJobQuery(ctx context.Context, arg AdapterWorkerFinishJobQueryParams) (int64, error)

hikyo:reason Closed adapter worker retry matches the claimed outbox row id, lease owner, stored org/project/environment/target/generation/authority/kind/route identity before any settlement or audit; ordinary retry continuation also retains scoped current-target generation/provider fences. hikyo:instance-scoped

func (*Queries) AdapterWorkerFinishJobSupersede

func (q *Queries) AdapterWorkerFinishJobSupersede(ctx context.Context, arg AdapterWorkerFinishJobSupersedeParams) (int64, error)

func (*Queries) AdapterWorkerFinishOriginRouteMoveScrubActivateMove

func (q *Queries) AdapterWorkerFinishOriginRouteMoveScrubActivateMove(ctx context.Context, arg AdapterWorkerFinishOriginRouteMoveScrubActivateMoveParams) (int64, error)

func (*Queries) AdapterWorkerFinishOriginRouteMoveScrubCountHeld

func (q *Queries) AdapterWorkerFinishOriginRouteMoveScrubCountHeld(ctx context.Context, arg AdapterWorkerFinishOriginRouteMoveScrubCountHeldParams) (int64, error)

func (*Queries) AdapterWorkerFinishOriginRouteMoveScrubCountPending

func (q *Queries) AdapterWorkerFinishOriginRouteMoveScrubCountPending(ctx context.Context, arg AdapterWorkerFinishOriginRouteMoveScrubCountPendingParams) (int64, error)

func (*Queries) AdapterWorkerFinishOriginRouteMoveScrubInsert

func (q *Queries) AdapterWorkerFinishOriginRouteMoveScrubInsert(ctx context.Context, arg AdapterWorkerFinishOriginRouteMoveScrubInsertParams) (int64, error)

func (*Queries) AdapterWorkerFinishOriginRouteMoveScrubMark

func (q *Queries) AdapterWorkerFinishOriginRouteMoveScrubMark(ctx context.Context, arg AdapterWorkerFinishOriginRouteMoveScrubMarkParams) (int64, error)

func (*Queries) AdapterWorkerFinishOriginRouteMoveScrubMarkDone

func (q *Queries) AdapterWorkerFinishOriginRouteMoveScrubMarkDone(ctx context.Context, arg AdapterWorkerFinishOriginRouteMoveScrubMarkDoneParams) (int64, error)

func (*Queries) AdapterWorkerFinishReleaseLease

func (q *Queries) AdapterWorkerFinishReleaseLease(ctx context.Context, arg AdapterWorkerFinishReleaseLeaseParams) (int64, error)

func (*Queries) AdapterWorkerFinishRemove

func (q *Queries) AdapterWorkerFinishRemove(ctx context.Context, arg AdapterWorkerFinishRemoveParams) (int64, error)

func (*Queries) AdapterWorkerFinishRouteMoveScrubActiveLedgerQuery

func (q *Queries) AdapterWorkerFinishRouteMoveScrubActiveLedgerQuery(ctx context.Context, arg AdapterWorkerFinishRouteMoveScrubActiveLedgerQueryParams) (int64, error)

func (*Queries) AdapterWorkerFinishRouteMoveScrubInsert

func (q *Queries) AdapterWorkerFinishRouteMoveScrubInsert(ctx context.Context, arg AdapterWorkerFinishRouteMoveScrubInsertParams) (int64, error)

func (*Queries) AdapterWorkerFinishRouteMoveScrubLookupMove

func (q *Queries) AdapterWorkerFinishRouteMoveScrubLookupMove(ctx context.Context, arg AdapterWorkerFinishRouteMoveScrubLookupMoveParams) (string, error)

func (*Queries) AdapterWorkerFinishRouteMoveScrubMark

func (q *Queries) AdapterWorkerFinishRouteMoveScrubMark(ctx context.Context, arg AdapterWorkerFinishRouteMoveScrubMarkParams) (int64, error)

func (*Queries) AdapterWorkerFinishRouteMoveScrubMove

func (q *Queries) AdapterWorkerFinishRouteMoveScrubMove(ctx context.Context, arg AdapterWorkerFinishRouteMoveScrubMoveParams) (int64, error)

func (*Queries) AdapterWorkerFinishRouteMoveScrubPersistOrphans

func (q *Queries) AdapterWorkerFinishRouteMoveScrubPersistOrphans(ctx context.Context, arg AdapterWorkerFinishRouteMoveScrubPersistOrphansParams) (int64, error)

func (*Queries) AdapterWorkerFinishUpdate

func (q *Queries) AdapterWorkerFinishUpdate(ctx context.Context, arg AdapterWorkerFinishUpdateParams) (int64, error)

func (*Queries) AdapterWorkerFinishUpdateEffect

func (q *Queries) AdapterWorkerFinishUpdateEffect(ctx context.Context, arg AdapterWorkerFinishUpdateEffectParams) (int64, error)

hikyo:reason Closed adapter journal completion settles only the globally unique effect id retained after successful Prepare; the enclosing transaction inserts its job-chain outcome and requires the matching scoped target/effect provider fence before commit. hikyo:instance-scoped

func (*Queries) AdapterWorkerGateQuery

func (q *Queries) AdapterWorkerGateQuery(ctx context.Context, arg AdapterWorkerGateQueryParams) (int64, error)

func (*Queries) AdapterWorkerInsertAdapterJobAuditWithIDQuery

func (q *Queries) AdapterWorkerInsertAdapterJobAuditWithIDQuery(ctx context.Context, arg AdapterWorkerInsertAdapterJobAuditWithIDQueryParams) (int64, error)

func (*Queries) AdapterWorkerInsertConflictDedup

func (q *Queries) AdapterWorkerInsertConflictDedup(ctx context.Context, arg AdapterWorkerInsertConflictDedupParams) (int64, error)

func (*Queries) AdapterWorkerInsertConflictInsert

func (q *Queries) AdapterWorkerInsertConflictInsert(ctx context.Context, arg AdapterWorkerInsertConflictInsertParams) (int64, error)

func (*Queries) AdapterWorkerLoadExecutionCompletedQuery

Successful names resume only this leased job's exact loaded source. Legacy INTENTs without the worker-bound numeric revision never authorize skipping.

func (*Queries) AdapterWorkerLockCustodyJob

func (q *Queries) AdapterWorkerLockCustodyJob(ctx context.Context, arg AdapterWorkerLockCustodyJobParams) (int64, error)

func (*Queries) AdapterWorkerLockCustodyTarget

func (q *Queries) AdapterWorkerLockCustodyTarget(ctx context.Context, arg AdapterWorkerLockCustodyTargetParams) (int64, error)

Lock target before outbox, matching teardown and provider preparation. No custody mutation can revive a superseded or inadmissible lifecycle.

func (*Queries) AdapterWorkerPinExecutionLease

func (q *Queries) AdapterWorkerPinExecutionLease(ctx context.Context, arg AdapterWorkerPinExecutionLeaseParams) (int64, error)

func (*Queries) AdapterWorkerPinExecutionRevision

func (q *Queries) AdapterWorkerPinExecutionRevision(ctx context.Context, arg AdapterWorkerPinExecutionRevisionParams) (int64, error)

func (*Queries) AdapterWorkerPrepareExplicitRecovery

func (q *Queries) AdapterWorkerPrepareExplicitRecovery(ctx context.Context, arg AdapterWorkerPrepareExplicitRecoveryParams) (int64, error)

Explicit Vault recovery keeps held custody but forbids writer inference after process death, including a mutation of a previously owned path.

func (*Queries) AdapterWorkerPrepareInsert

func (q *Queries) AdapterWorkerPrepareInsert(ctx context.Context, arg AdapterWorkerPrepareInsertParams) (int64, error)

func (*Queries) AdapterWorkerPrepareLease

func (q *Queries) AdapterWorkerPrepareLease(ctx context.Context, arg AdapterWorkerPrepareLeaseParams) (int64, error)

hikyo:reason Closed adapter effect preparation extends only the leased job identified by its globally unique id and current running owner after obtaining the scoped target provider fence in this transaction; a zero-row match rolls back preparation. hikyo:instance-scoped

func (*Queries) AdapterWorkerPrepareProviderLease

func (q *Queries) AdapterWorkerPrepareProviderLease(ctx context.Context, arg AdapterWorkerPrepareProviderLeaseParams) (int64, error)

func (*Queries) AdapterWorkerPrepareUpdate

func (q *Queries) AdapterWorkerPrepareUpdate(ctx context.Context, arg AdapterWorkerPrepareUpdateParams) (int64, error)

func (*Queries) AdapterWorkerRaiseDriftAttentionQuery

func (q *Queries) AdapterWorkerRaiseDriftAttentionQuery(ctx context.Context, arg AdapterWorkerRaiseDriftAttentionQueryParams) (int64, error)

func (*Queries) AdapterWorkerRecordJobOutcome

func (q *Queries) AdapterWorkerRecordJobOutcome(ctx context.Context, arg AdapterWorkerRecordJobOutcomeParams) (int64, error)

func (*Queries) AdapterWorkerRefuseRemove

func (q *Queries) AdapterWorkerRefuseRemove(ctx context.Context, arg AdapterWorkerRefuseRemoveParams) (int64, error)

func (*Queries) AdapterWorkerReleaseReservationRemove

func (q *Queries) AdapterWorkerReleaseReservationRemove(ctx context.Context, arg AdapterWorkerReleaseReservationRemoveParams) (int64, error)

func (*Queries) AdapterWorkerReserveCountQuery

func (q *Queries) AdapterWorkerReserveCountQuery(ctx context.Context, arg AdapterWorkerReserveCountQueryParams) (int64, error)

func (*Queries) AdapterWorkerReserveInsert

func (q *Queries) AdapterWorkerReserveInsert(ctx context.Context, arg AdapterWorkerReserveInsertParams) (int64, error)

func (*Queries) AdapterWorkerReservePendingQuery

func (q *Queries) AdapterWorkerReservePendingQuery(ctx context.Context, arg AdapterWorkerReservePendingQueryParams) (int64, error)

func (*Queries) AdapterWorkerReserveReactivate

func (q *Queries) AdapterWorkerReserveReactivate(ctx context.Context, arg AdapterWorkerReserveReactivateParams) (int64, error)

func (*Queries) AdapterWorkerReserveSelectQuery

func (q *Queries) AdapterWorkerReserveSelectQuery(ctx context.Context, arg AdapterWorkerReserveSelectQueryParams) (string, error)

func (*Queries) AdapterWorkerRestoreHeldScrubAdapter

func (q *Queries) AdapterWorkerRestoreHeldScrubAdapter(ctx context.Context, arg AdapterWorkerRestoreHeldScrubAdapterParams) (int64, error)

func (*Queries) AdapterWorkerRestoreHeldScrubTarget

func (q *Queries) AdapterWorkerRestoreHeldScrubTarget(ctx context.Context, arg AdapterWorkerRestoreHeldScrubTargetParams) (int64, error)

A review-held removal remains visible and paused, with all custody intact.

func (*Queries) AdapterWorkerTryEnqueueDepthQuery

func (q *Queries) AdapterWorkerTryEnqueueDepthQuery(ctx context.Context, arg AdapterWorkerTryEnqueueDepthQueryParams) (int64, error)

func (*Queries) AdapterWorkerTryEnqueueExistsQuery

func (q *Queries) AdapterWorkerTryEnqueueExistsQuery(ctx context.Context, arg AdapterWorkerTryEnqueueExistsQueryParams) (int64, error)

func (*Queries) AdapterWorkerTryEnqueueInsert

func (q *Queries) AdapterWorkerTryEnqueueInsert(ctx context.Context, arg AdapterWorkerTryEnqueueInsertParams) (int64, error)

func (*Queries) AdapterWorkerTryEnqueueLookup

func (q *Queries) AdapterWorkerTryEnqueueLookup(ctx context.Context, arg AdapterWorkerTryEnqueueLookupParams) (int64, error)

func (*Queries) AdapterWorkerTryEnqueuePreviousQuery

func (q *Queries) AdapterWorkerTryEnqueuePreviousQuery(ctx context.Context, arg AdapterWorkerTryEnqueuePreviousQueryParams) (string, error)

func (*Queries) AdapterWorkerTryEnqueueSupersede

func (q *Queries) AdapterWorkerTryEnqueueSupersede(ctx context.Context, arg AdapterWorkerTryEnqueueSupersedeParams) (int64, error)

func (*Queries) AdapterWorkerTryEnqueueUpdate

func (q *Queries) AdapterWorkerTryEnqueueUpdate(ctx context.Context, arg AdapterWorkerTryEnqueueUpdateParams) (int64, error)

func (*Queries) AddSCIMGroupMember

func (q *Queries) AddSCIMGroupMember(ctx context.Context, arg AddSCIMGroupMemberParams) error

func (*Queries) AdvancePrincipalGeneration

func (q *Queries) AdvancePrincipalGeneration(ctx context.Context, id string) error

hikyo:authn-resolution

func (*Queries) AdvanceRestoreEpoch

func (q *Queries) AdvanceRestoreEpoch(ctx context.Context, arg AdvanceRestoreEpochParams) error

Sets the credential epoch and marks the epoch reached BY RESTORING. The caller supplies the value (MaxKnownCredentialEpoch + 1) so the new epoch is strictly greater than every epoch stamp the archive carried. hikyo:authn-resolution

func (*Queries) AdvanceTOTPStep

func (q *Queries) AdvanceTOTPStep(ctx context.Context, arg AdvanceTOTPStepParams) (int64, error)

Single-use per (account, step): a code is consumed only if its step is strictly beyond the last one, which the CAS enforces atomically. hikyo:authn-resolution

func (*Queries) AdvanceWebAuthnSignCount

func (q *Queries) AdvanceWebAuthnSignCount(ctx context.Context, arg AdvanceWebAuthnSignCountParams) (int64, error)

Sign-count advance under a row_version CAS (B9): the presented counter is written only if the row has not moved, so two concurrent assertions cannot both advance it and a stale read cannot rewind it. hikyo:authn-resolution

func (*Queries) AllOpenableTier3

func (q *Queries) AllOpenableTier3(ctx context.Context) ([]Tier3Key, error)

AllOpenableTier3 returns every still-openable tier-3 key across every scope (active + retiring), for `rotate-master-key` to re-wrap under a new master. Retired rows are excluded: they hold zero live ciphertext, so their key material is never unwrapped and re-wrapping it would be work with no reader.

func (*Queries) ApproveCLILogin

func (q *Queries) ApproveCLILogin(ctx context.Context, arg ApproveCLILoginParams) (int64, error)

hikyo:reason a live browser session approves only the resolved unconsumed first-party login transaction hikyo:authn-resolution

func (*Queries) ApproveCLIReauthHandoff

func (q *Queries) ApproveCLIReauthHandoff(ctx context.Context, arg ApproveCLIReauthHandoffParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ApproveWorkspaceHandoff

func (q *Queries) ApproveWorkspaceHandoff(ctx context.Context, arg ApproveWorkspaceHandoffParams) (int64, error)

Approval binds the authenticated human and mints the code. The NULL guard on code_verifier is the atomic claim: two concurrent approvals of one transaction cannot both issue a code. hikyo:authn-resolution

func (*Queries) AssertActiveTier3Version

func (q *Queries) AssertActiveTier3Version(ctx context.Context, arg AssertActiveTier3VersionParams) (string, error)

AssertActiveTier3Version is the writer fence: a ciphertext write reads the state of the exact DEK version it sealed under, in its own transaction, and proceeds only if that version is still 'active'. A stale sealer (built before a rotate-dek, sealing under a now-retiring or retired version) is refused, so no write lands under a version reencrypt is about to retire. On sqlite the single write connection serializes this against the demote/retire; postgres adds FOR SHARE (see its twin) so those block until in-flight writers commit.

func (*Queries) AuditPrunedSince

func (q *Queries) AuditPrunedSince(ctx context.Context, sinceTime string) (bool, error)

hikyo:instance-scoped

func (*Queries) BindRemotePairedConnection

func (q *Queries) BindRemotePairedConnection(ctx context.Context, arg BindRemotePairedConnectionParams) error

hikyo:reason Enrollment permanently marks this connection proof-bound; ordinary bearer resolution must reject it. hikyo:authn-resolution

func (*Queries) BindSessionToOAuth2Provider

func (q *Queries) BindSessionToOAuth2Provider(ctx context.Context, arg BindSessionToOAuth2ProviderParams) (int64, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) BindSessionToSAMLProvider

func (q *Queries) BindSessionToSAMLProvider(ctx context.Context, arg BindSessionToSAMLProviderParams) (int64, error)

Bind provider provenance before the surrounding session-mint transaction commits. The existing OIDC provider column must be empty. hikyo:authn-resolution

func (*Queries) BumpFileTargetGeneration

func (q *Queries) BumpFileTargetGeneration(ctx context.Context, arg BumpFileTargetGenerationParams) (int64, error)

A key-selection replacement is a compare-and-swap on the generation, so two concurrent edits cannot both apply.

func (*Queries) BumpProjectSchemaRevision

func (q *Queries) BumpProjectSchemaRevision(ctx context.Context, arg BumpProjectSchemaRevisionParams) (int64, error)

BumpProjectSchemaRevision is the monotonic advance, run inside the same transaction as the declaration change that earned it. :execrows so a missing row - which cannot happen, every project gets one at creation - is reported as the defect it would be rather than silently created.

func (*Queries) CLILoginByCode

func (q *Queries) CLILoginByCode(ctx context.Context, codeVerifier []byte) (CliLoginHandoff, error)

hikyo:reason opaque authorization or device code resolves only its first-party login transaction hikyo:authn-resolution

func (*Queries) CLILoginByState

func (q *Queries) CLILoginByState(ctx context.Context, stateVerifier []byte) (CliLoginHandoff, error)

hikyo:reason opaque state resolves only the first-party CLI login approval transaction hikyo:authn-resolution

func (*Queries) CLILoginByUserCode

func (q *Queries) CLILoginByUserCode(ctx context.Context, userCodeVerifier []byte) (CliLoginHandoff, error)

hikyo:reason rate-limited human code resolves only its browser approval transaction hikyo:authn-resolution

func (*Queries) CLIReauthHandoffByCode

func (q *Queries) CLIReauthHandoffByCode(ctx context.Context, codeVerifier []byte) (CliReauthHandoff, error)

hikyo:authn-resolution

func (*Queries) CLIReauthHandoffByState

func (q *Queries) CLIReauthHandoffByState(ctx context.Context, stateVerifier []byte) (CliReauthHandoff, error)

hikyo:authn-resolution

func (*Queries) ClaimFederatedAuthority

func (q *Queries) ClaimFederatedAuthority(ctx context.Context, arg ClaimFederatedAuthorityParams) (int64, error)

hikyo:reason A federated claim (#610) spends an invitation or reset authority at an OIDC or OAuth2 callback, before any principal exists in the request; the service binds the authority to its transaction, account, epoch and kind before mutation. hikyo:authn-resolution

func (*Queries) ClaimOfflineRecord

func (q *Queries) ClaimOfflineRecord(ctx context.Context, arg ClaimOfflineRecordParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ClaimRemotePairingAttempt

func (q *Queries) ClaimRemotePairingAttempt(ctx context.Context, arg ClaimRemotePairingAttemptParams) (int64, error)

hikyo:reason Each valid capability admits at most eight expensive PAKE attempts across all nodes. hikyo:authn-resolution

func (*Queries) ClaimRemotePairingReplay

func (q *Queries) ClaimRemotePairingReplay(ctx context.Context, arg ClaimRemotePairingReplayParams) (int64, error)

hikyo:reason Persist DPoP replay admission across nodes in the same transaction as directory authorization. hikyo:authn-resolution

func (*Queries) ClampCredentialExpiry

func (q *Queries) ClampCredentialExpiry(ctx context.Context, ceiling sql.NullString) (int64, error)

The clamp itself. It moves expiry DOWN to the new ceiling and never up: a credential already inside the ceiling is untouched. hikyo:authn-resolution

func (*Queries) ClampDeveloperCredentialExpiry

func (q *Queries) ClampDeveloperCredentialExpiry(ctx context.Context, arg ClampDeveloperCredentialExpiryParams) error

hikyo:reason Authorized instance policy lowering persists monotonic expiry reductions before commit. hikyo:authn-resolution

func (*Queries) ClampIndefiniteCredentials

func (q *Queries) ClampIndefiniteCredentials(ctx context.Context, expiresAt sql.NullString) (int64, error)

Withdrawing the indefinite opt-in CLAMPS, it does not merely enumerate: an unbounded credential surviving a withdrawal is the control not being withdrawn. The typed lifetime moves with the instant, so the pair stays total and the row is an ordinary finite credential afterwards. hikyo:authn-resolution

func (*Queries) ClearKeyGroupMembers

func (q *Queries) ClearKeyGroupMembers(ctx context.Context, arg ClearKeyGroupMembersParams) error

ClearKeyGroupMembers is the delete cascade: deleting a group takes its members OUT of it rather than deleting them. Zero affected rows is the ordinary case for an empty group, so this is :exec.

func (*Queries) ClearSCIMAttention

func (q *Queries) ClearSCIMAttention(ctx context.Context, arg ClearSCIMAttentionParams) (int64, error)

func (*Queries) ClearSCIMGroupMembers

func (q *Queries) ClearSCIMGroupMembers(ctx context.Context, arg ClearSCIMGroupMembersParams) (int64, error)

func (*Queries) ClearSelfConfigSeedInputs

func (q *Queries) ClearSelfConfigSeedInputs(ctx context.Context) error

hikyo:instance-scoped

func (*Queries) CommitSelfConfigTarget

func (q *Queries) CommitSelfConfigTarget(ctx context.Context, arg CommitSelfConfigTargetParams) (int64, error)

hikyo:instance-scoped

func (*Queries) ConfirmTOTP

func (q *Queries) ConfirmTOTP(ctx context.Context, arg ConfirmTOTPParams) (int64, error)

Confirmation is the account-security mutation's write: it promotes the pending seed and consumes the confirming step in one CAS. hikyo:authn-resolution

func (*Queries) ConsumeCLILogin

func (q *Queries) ConsumeCLILogin(ctx context.Context, arg ConsumeCLILoginParams) (int64, error)

hikyo:reason atomic single-use redemption of an approved first-party login transaction gates session issuance hikyo:authn-resolution

func (*Queries) ConsumeCLIReauthHandoff

func (q *Queries) ConsumeCLIReauthHandoff(ctx context.Context, arg ConsumeCLIReauthHandoffParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ConsumeCredentialAuthority

func (q *Queries) ConsumeCredentialAuthority(ctx context.Context, arg ConsumeCredentialAuthorityParams) (int64, error)

Single-use consumption: the NULL guard is the atomic claim, so two concurrent presentations cannot both establish a credential. hikyo:authn-resolution

func (*Queries) ConsumeLoginChallenge

func (q *Queries) ConsumeLoginChallenge(ctx context.Context, arg ConsumeLoginChallengeParams) (int64, error)

hikyo:authn-resolution Single-use: claims the row only if not already consumed (fail closed).

func (*Queries) ConsumeOAuth2Transaction

func (q *Queries) ConsumeOAuth2Transaction(ctx context.Context, arg ConsumeOAuth2TransactionParams) (int64, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) ConsumeOIDCTransaction

func (q *Queries) ConsumeOIDCTransaction(ctx context.Context, arg ConsumeOIDCTransactionParams) (int64, error)

Single-use consumption: the NULL guard is the atomic claim, so a callback cannot be replayed and two concurrent callbacks cannot both consume one tx. hikyo:authn-resolution

func (*Queries) ConsumeOrgEmailInvitation

func (q *Queries) ConsumeOrgEmailInvitation(ctx context.Context, arg ConsumeOrgEmailInvitationParams) (int64, error)

hikyo:reason Acceptance CAS-consumes the verified row by id and verifier inside the grant transaction. hikyo:authn-resolution

func (*Queries) ConsumeOutstandingAuthoritiesForAccount

func (q *Queries) ConsumeOutstandingAuthoritiesForAccount(ctx context.Context, arg ConsumeOutstandingAuthoritiesForAccountParams) error

Minting an establishment authority for an account consumes every other outstanding one, so a second live reset token cannot linger past the point the operator believes the flow completed. hikyo:authn-resolution

func (*Queries) ConsumeRegistrationSignup

func (q *Queries) ConsumeRegistrationSignup(ctx context.Context, arg ConsumeRegistrationSignupParams) (int64, error)

hikyo:reason A verified signup bearer is CAS-consumed by its row id and verifier inside the account-creation transaction. hikyo:authn-resolution

func (*Queries) ConsumeRemotePairingExchange

func (q *Queries) ConsumeRemotePairingExchange(ctx context.Context, arg ConsumeRemotePairingExchangeParams) (int64, error)

hikyo:reason Exchanges can be consumed once even when two nodes receive the same finish concurrently. hikyo:authn-resolution

func (*Queries) ConsumeRemotePairingInvite

func (q *Queries) ConsumeRemotePairingInvite(ctx context.Context, arg ConsumeRemotePairingInviteParams) (int64, error)

hikyo:reason Single-use consumption is part of the same transaction as connection principal, grant and key enrollment. hikyo:authn-resolution

func (*Queries) ConsumeSAMLTransaction

func (q *Queries) ConsumeSAMLTransaction(ctx context.Context, arg ConsumeSAMLTransactionParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ConsumeSingleDecisionWindow

func (q *Queries) ConsumeSingleDecisionWindow(ctx context.Context, arg ConsumeSingleDecisionWindowParams) (int64, error)

Claim a single_decision window exactly once: the NULL guard is the atomic claim, so a second disclosure loses and is refused (B11 double-spend). hikyo:authn-resolution

func (*Queries) ConsumeWebAuthnCeremony

func (q *Queries) ConsumeWebAuthnCeremony(ctx context.Context, arg ConsumeWebAuthnCeremonyParams) (int64, error)

Single-use consumption: the NULL guard is the atomic claim. credential_id is stamped here (the passkey that answered), so the ceremony row keeps resolving a minted session to the credential that authored it after consume. hikyo:authn-resolution

func (*Queries) ConsumeWorkspaceHandoff

func (q *Queries) ConsumeWorkspaceHandoff(ctx context.Context, arg ConsumeWorkspaceHandoffParams) (int64, error)

Single-use consumption. The NULL guard is the atomic claim, exactly as ConsumeCredentialAuthority does it: two concurrent redemptions of one code cannot both yield a session. hikyo:authn-resolution

func (*Queries) CoordinationAccountFailureState

hikyo:reason Shared pre-authentication admission counter/backoff infrastructure. Coordination admitted datastore transaction; bucket/subject keys carry uniform refusal state, not tenant resources. Atomic upserts and fixed account sentinel preserved; Postgres failure stamps use now() and monotonic GREATEST. hikyo:instance-scoped

func (*Queries) CoordinationBumpWindow

func (q *Queries) CoordinationBumpWindow(ctx context.Context, arg CoordinationBumpWindowParams) (int64, error)

hikyo:reason Shared pre-authentication admission counter/backoff infrastructure. Coordination admitted datastore transaction; bucket/subject keys carry uniform refusal state, not tenant resources. Atomic upserts and fixed account sentinel preserved; Postgres failure stamps use now() and monotonic GREATEST. hikyo:instance-scoped

func (*Queries) CoordinationClaimLease

func (q *Queries) CoordinationClaimLease(ctx context.Context, arg CoordinationClaimLeaseParams) (int64, error)

excluded.acquired_at is the supplied claim time, also used for expiry. hikyo:reason Installation singleton leader fencing. Coordination admitted datastore transaction; no tenant row or tenant payload; preserves exact owner/name/fence and expiry predicates. GuardSingletonLease is root-owned scheduler transaction admission and retains database/process clocks. hikyo:instance-scoped

func (*Queries) CoordinationClearAccount

func (q *Queries) CoordinationClearAccount(ctx context.Context, arg CoordinationClearAccountParams) error

hikyo:reason Shared pre-authentication admission counter/backoff infrastructure. Coordination admitted datastore transaction; bucket/subject keys carry uniform refusal state, not tenant resources. Atomic upserts and fixed account sentinel preserved; Postgres failure stamps use now() and monotonic GREATEST. hikyo:instance-scoped

func (*Queries) CoordinationCountLiveNodes

func (q *Queries) CoordinationCountLiveNodes(ctx context.Context, since string) (int64, error)

hikyo:reason Installation HA registry and mixed-root-key boot admission. Coordination admitted datastore transaction; rows are replica identity/version/fingerprint/heartbeat, no tenant chain. RegisterNodeChecked retains membership advisory lock before foreign-live-fingerprint check and upsert. hikyo:instance-scoped

func (*Queries) CoordinationCountMCPClaims

hikyo:reason Installation-wide authenticated MCP rate/concurrency admission. Coordination admitted datastore transaction; principal/org IDs are counter dimensions, not grants to tenant data. Class88 advisory lock encloses prune/count/rate-lock/update/claim; global count intentionally enforces instance capacity alongside per-principal/org limits. hikyo:instance-scoped

func (*Queries) CoordinationCurrentTopology

func (q *Queries) CoordinationCurrentTopology(ctx context.Context) (string, error)

hikyo:reason Instance-owned self-configuration rollout/seed admission metadata. Coordination admitted datastore transaction; singleton binding owner/incarnation/generation restricts rollout correspondence. Runtime process identity/template stamp checked by topologyLeaseAllowed, coordinated with final Apply membership lock; no tenant data access. hikyo:instance-scoped

func (*Queries) CoordinationForeignRootKeyFingerprints

func (q *Queries) CoordinationForeignRootKeyFingerprints(ctx context.Context, arg CoordinationForeignRootKeyFingerprintsParams) ([]string, error)

hikyo:reason Installation HA registry and mixed-root-key boot admission. Coordination admitted datastore transaction; rows are replica identity/version/fingerprint/heartbeat, no tenant chain. RegisterNodeChecked retains membership advisory lock before foreign-live-fingerprint check and upsert. hikyo:instance-scoped

func (*Queries) CoordinationInsertMCPClaim

func (q *Queries) CoordinationInsertMCPClaim(ctx context.Context, arg CoordinationInsertMCPClaimParams) error

hikyo:reason Installation-wide authenticated MCP rate/concurrency admission. Coordination admitted datastore transaction; principal/org IDs are counter dimensions, not grants to tenant data. Class88 advisory lock encloses prune/count/rate-lock/update/claim; global count intentionally enforces instance capacity alongside per-principal/org limits. hikyo:instance-scoped

func (*Queries) CoordinationLatestRollout

func (q *Queries) CoordinationLatestRollout(ctx context.Context) (CoordinationLatestRolloutRow, error)

hikyo:reason Instance-owned self-configuration rollout/seed admission metadata. Coordination admitted datastore transaction; singleton binding owner/incarnation/generation restricts rollout correspondence. Runtime process identity/template stamp checked by topologyLeaseAllowed, coordinated with final Apply membership lock; no tenant data access. hikyo:instance-scoped

func (*Queries) CoordinationLeaseHolder

func (q *Queries) CoordinationLeaseHolder(ctx context.Context, name string) (CoordinationLeaseHolderRow, error)

hikyo:reason Installation singleton leader fencing. Coordination admitted datastore transaction; no tenant row or tenant payload; preserves exact owner/name/fence and expiry predicates. GuardSingletonLease is root-owned scheduler transaction admission and retains database/process clocks. hikyo:instance-scoped

func (*Queries) CoordinationMCPRateBucket

func (q *Queries) CoordinationMCPRateBucket(ctx context.Context, principalID string) (string, error)

hikyo:reason Installation-wide authenticated MCP rate/concurrency admission. Coordination admitted datastore transaction; principal/org IDs are counter dimensions, not grants to tenant data. Class88 advisory lock encloses prune/count/rate-lock/update/claim; global count intentionally enforces instance capacity alongside per-principal/org limits. hikyo:instance-scoped

func (*Queries) CoordinationPruneAccountBackoff

func (q *Queries) CoordinationPruneAccountBackoff(ctx context.Context, arg CoordinationPruneAccountBackoffParams) error

hikyo:reason Shared pre-authentication admission counter/backoff infrastructure. Coordination admitted datastore transaction; bucket/subject keys carry uniform refusal state, not tenant resources. Atomic upserts and fixed account sentinel preserved; Postgres failure stamps use now() and monotonic GREATEST. hikyo:instance-scoped

func (*Queries) CoordinationPruneAdmissionWindows

func (q *Queries) CoordinationPruneAdmissionWindows(ctx context.Context, arg CoordinationPruneAdmissionWindowsParams) error

hikyo:reason Shared pre-authentication admission counter/backoff infrastructure. Coordination admitted datastore transaction; bucket/subject keys carry uniform refusal state, not tenant resources. Atomic upserts and fixed account sentinel preserved; Postgres failure stamps use now() and monotonic GREATEST. hikyo:instance-scoped

func (*Queries) CoordinationPruneMCPClaims

func (q *Queries) CoordinationPruneMCPClaims(ctx context.Context, now string) error

hikyo:reason Installation-wide authenticated MCP rate/concurrency admission. Coordination admitted datastore transaction; principal/org IDs are counter dimensions, not grants to tenant data. Class88 advisory lock encloses prune/count/rate-lock/update/claim; global count intentionally enforces instance capacity alongside per-principal/org limits. hikyo:instance-scoped

func (*Queries) CoordinationPruneNodes

func (q *Queries) CoordinationPruneNodes(ctx context.Context, cutoff string) error

hikyo:reason Installation HA registry and mixed-root-key boot admission. Coordination admitted datastore transaction; rows are replica identity/version/fingerprint/heartbeat, no tenant chain. RegisterNodeChecked retains membership advisory lock before foreign-live-fingerprint check and upsert. hikyo:instance-scoped

func (*Queries) CoordinationRecordAccountFailure

func (q *Queries) CoordinationRecordAccountFailure(ctx context.Context, arg CoordinationRecordAccountFailureParams) (int64, error)

Compare against the inserted failure time so delayed attempts cannot move the stored instant backwards. The update remains one atomic upsert. hikyo:reason Shared pre-authentication admission counter/backoff infrastructure. Coordination admitted datastore transaction; bucket/subject keys carry uniform refusal state, not tenant resources. Atomic upserts and fixed account sentinel preserved; Postgres failure stamps use now() and monotonic GREATEST. hikyo:instance-scoped

func (*Queries) CoordinationReleaseLease

func (q *Queries) CoordinationReleaseLease(ctx context.Context, arg CoordinationReleaseLeaseParams) error

hikyo:reason Installation singleton leader fencing. Coordination admitted datastore transaction; no tenant row or tenant payload; preserves exact owner/name/fence and expiry predicates. GuardSingletonLease is root-owned scheduler transaction admission and retains database/process clocks. hikyo:instance-scoped

func (*Queries) CoordinationReleaseMCP

func (q *Queries) CoordinationReleaseMCP(ctx context.Context, callID string) error

hikyo:reason Installation-wide authenticated MCP rate/concurrency admission. Coordination admitted datastore transaction; principal/org IDs are counter dimensions, not grants to tenant data. Class88 advisory lock encloses prune/count/rate-lock/update/claim; global count intentionally enforces instance capacity alongside per-principal/org limits. hikyo:instance-scoped

func (*Queries) CoordinationRenewLease

func (q *Queries) CoordinationRenewLease(ctx context.Context, arg CoordinationRenewLeaseParams) (int64, error)

hikyo:reason Installation singleton leader fencing. Coordination admitted datastore transaction; no tenant row or tenant payload; preserves exact owner/name/fence and expiry predicates. GuardSingletonLease is root-owned scheduler transaction admission and retains database/process clocks. hikyo:instance-scoped

func (*Queries) CoordinationSelfConfigGeneration

func (q *Queries) CoordinationSelfConfigGeneration(ctx context.Context) (CoordinationSelfConfigGenerationRow, error)

hikyo:reason Instance-owned self-configuration rollout/seed admission metadata. Coordination admitted datastore transaction; singleton binding owner/incarnation/generation restricts rollout correspondence. Runtime process identity/template stamp checked by topologyLeaseAllowed, coordinated with final Apply membership lock; no tenant data access. hikyo:instance-scoped

func (*Queries) CoordinationSelfConfigSeedAttest

func (q *Queries) CoordinationSelfConfigSeedAttest(ctx context.Context, arg CoordinationSelfConfigSeedAttestParams) error

hikyo:reason Instance-owned self-configuration rollout/seed admission metadata. Coordination admitted datastore transaction; singleton binding owner/incarnation/generation restricts rollout correspondence. Runtime process identity/template stamp checked by topologyLeaseAllowed, coordinated with final Apply membership lock; no tenant data access. hikyo:instance-scoped

func (*Queries) CoordinationSetMCPRateBucket

func (q *Queries) CoordinationSetMCPRateBucket(ctx context.Context, arg CoordinationSetMCPRateBucketParams) error

hikyo:reason Installation-wide authenticated MCP rate/concurrency admission. Coordination admitted datastore transaction; principal/org IDs are counter dimensions, not grants to tenant data. Class88 advisory lock encloses prune/count/rate-lock/update/claim; global count intentionally enforces instance capacity alongside per-principal/org limits. hikyo:instance-scoped

func (*Queries) CoordinationUpsertNode

func (q *Queries) CoordinationUpsertNode(ctx context.Context, arg CoordinationUpsertNodeParams) error

hikyo:reason Installation HA registry and mixed-root-key boot admission. Coordination admitted datastore transaction; rows are replica identity/version/fingerprint/heartbeat, no tenant chain. RegisterNodeChecked retains membership advisory lock before foreign-live-fingerprint check and upsert. hikyo:instance-scoped

func (*Queries) CountAccounts

func (q *Queries) CountAccounts(ctx context.Context) (int64, error)

hikyo:authn-resolution

func (*Queries) CountActiveAccessGrants

func (q *Queries) CountActiveAccessGrants(ctx context.Context, expiresAt sql.NullString) (int64, error)

hikyo:instance-scoped

func (*Queries) CountActiveApprovalRequests

func (q *Queries) CountActiveApprovalRequests(ctx context.Context) (int64, error)

Operational metrics (#151). Installation-wide counts read at /metrics scrape under scheduler authority; cross-tenant by definition, annotated and pinned. hikyo:instance-scoped

func (*Queries) CountBindingsForIssuer

func (q *Queries) CountBindingsForIssuer(ctx context.Context, issuerID sql.NullString) (int64, error)

Every binding naming an issuer, live or historical, counted so a delete that would orphan one is refused rather than cascading.

It counts REVOKED rows too, and that is deliberate. A cascade would deprovision N workloads under an operation whose name says "configuration". Refusing only on LIVE bindings would leave the historical rows pointing at an issuer that no longer exists, so the trail could no longer answer what a past binding trusted -- and the foreign key would refuse the delete anyway, with a driver message instead of an explanation. An operator who really wants the issuer gone deletes the service accounts, which removes their credential rows. hikyo:authn-resolution

func (*Queries) CountDeliveryTargetReportsForPrincipal

func (q *Queries) CountDeliveryTargetReportsForPrincipal(ctx context.Context, arg CountDeliveryTargetReportsForPrincipalParams) (int64, error)

func (*Queries) CountEnvironmentPKICertificates

func (q *Queries) CountEnvironmentPKICertificates(ctx context.Context, arg CountEnvironmentPKICertificatesParams) (int64, error)

A certificate's revocation evidence outlives its environment's configuration.

func (*Queries) CountEnvironmentValues

func (q *Queries) CountEnvironmentValues(ctx context.Context, arg CountEnvironmentValuesParams) (int64, error)

CountEnvironmentValues counts one environment's live occurrences under a PROJECT proof - environment_id is an ordinary column, not a chain column, so the definitions-apply path (project-scoped) can ask it of an environment it is about to delete without an environment-addressed proof. Any count above zero is the unconditional environment-delete refusal (#70, source-of-truth ADR).

func (*Queries) CountEnvironments

func (q *Queries) CountEnvironments(ctx context.Context, arg CountEnvironmentsParams) (int64, error)

func (*Queries) CountExpiredApprovalRequests

func (q *Queries) CountExpiredApprovalRequests(ctx context.Context) (int64, error)

hikyo:instance-scoped

func (*Queries) CountExternalIdentitiesForIssuer

func (q *Queries) CountExternalIdentitiesForIssuer(ctx context.Context, arg CountExternalIdentitiesForIssuerParams) (int64, error)

The pairwise-subject client_id guard (#588 d2): does this issuer have any linked identity? A provider-administration read, proof-free like the rest of the provider surface. hikyo:authn-resolution

func (*Queries) CountGrantOrigins

func (q *Queries) CountGrantOrigins(ctx context.Context, grantID string) (int64, error)

hikyo:authn-resolution

func (*Queries) CountGrantsForOrg

func (q *Queries) CountGrantsForOrg(ctx context.Context, orgID sql.NullString) (int64, error)

hikyo:authn-resolution

func (*Queries) CountIncompatiblePasswordKDFs

func (q *Queries) CountIncompatiblePasswordKDFs(ctx context.Context, arg CountIncompatiblePasswordKDFsParams) (int64, error)

Boot/configuration admission only; returns no identifiers or verifier bytes. hikyo:reason Boot admission counts incompatible verifiers without exposing credentials; no tenant authority is exercised. hikyo:authn-resolution

func (*Queries) CountKeyGroups

func (q *Queries) CountKeyGroups(ctx context.Context, arg CountKeyGroupsParams) (int64, error)

func (*Queries) CountKeys

func (q *Queries) CountKeys(ctx context.Context, arg CountKeysParams) (int64, error)

func (*Queries) CountLiveMachineCredentials

func (q *Queries) CountLiveMachineCredentials(ctx context.Context, arg CountLiveMachineCredentialsParams) (int64, error)

The concurrent-credential cap's census: live means not revoked, at the current epoch, and either indefinite or not yet expired. hikyo:authn-resolution

func (*Queries) CountLiveMachineCredentialsInProject

Revocation is idempotent by predicate, not by read-then-write: the revoked_at IS NULL guard means two concurrent revokes cannot both report having performed one. The project's live-credential census in ONE query. Listing service accounts otherwise costs a count per account, which makes an administrative list scale with the fleet it is describing.

The IN-subquery is the analyzer's rejected shape, so this rides the resolution surface's annotation like every other query here, and it carries the full chain predicate anyway. hikyo:authn-resolution

func (*Queries) CountLiveOrgEmailInvitations

func (q *Queries) CountLiveOrgEmailInvitations(ctx context.Context, arg CountLiveOrgEmailInvitationsParams) (int64, error)

hikyo:reason The send charges the per-organisation pending cap after authorizing manage-members at that org. hikyo:authn-resolution

func (*Queries) CountLiveRemotePairingExchanges

func (q *Queries) CountLiveRemotePairingExchanges(ctx context.Context, arg CountLiveRemotePairingExchangesParams) (int64, error)

hikyo:reason Bound outstanding PAKE sessions per invitation before expensive server state creation. hikyo:authn-resolution

func (*Queries) CountLiveRemotePairingInvites

func (q *Queries) CountLiveRemotePairingInvites(ctx context.Context, now string) (int64, error)

hikyo:reason Serialize finite invitation admission and bound storage under the instance census lock. hikyo:authn-resolution

func (*Queries) CountOpenAccessRequests

func (q *Queries) CountOpenAccessRequests(ctx context.Context) (int64, error)

hikyo:instance-scoped

func (*Queries) CountOpenPlans

func (q *Queries) CountOpenPlans(ctx context.Context, arg CountOpenPlansParams) (int64, error)

CountOpenPlans is the open-plan quota's input: a plan is open when it is unapplied and unexpired. Read inside the create transaction it bounds.

func (*Queries) CountOpenableTier3NotAtMaster

func (q *Queries) CountOpenableTier3NotAtMaster(ctx context.Context, masterKeyVersion int64) (int64, error)

CountOpenableTier3NotAtMaster is rotate-master-key's zero-reference check, run INSIDE the hierarchy fence: after re-wrapping, no still-openable tier-3 key may reference a master other than the new version. A non-zero count means a tier-3 key was created or version-appended in the window before the fence, under the old master, and is not in the re-wrapped set -- the rotation must refuse and be retried rather than strand that key under the retired master.

func (*Queries) CountOrgs

func (q *Queries) CountOrgs(ctx context.Context, includeSelfConfig interface{}) (int64, error)

hikyo:instance-scoped

func (*Queries) CountPendingChangeForCell

func (q *Queries) CountPendingChangeForCell(ctx context.Context, arg CountPendingChangeForCellParams) (int64, error)

func (*Queries) CountPendingChangesForProject

func (q *Queries) CountPendingChangesForProject(ctx context.Context, arg CountPendingChangesForProjectParams) (int64, error)

func (*Queries) CountPersonalValuesForEnvironment

func (q *Queries) CountPersonalValuesForEnvironment(ctx context.Context, arg CountPersonalValuesForEnvironmentParams) (int64, error)

CountPersonalValuesForEnvironment is the definitions plan's report of how many personal values an environment deletion removes.

func (*Queries) CountPersonalValuesForProject

func (q *Queries) CountPersonalValuesForProject(ctx context.Context, arg CountPersonalValuesForProjectParams) (int64, error)

func (*Queries) CountRecentSelfConfigJobs

func (q *Queries) CountRecentSelfConfigJobs(ctx context.Context, sinceAt string) (int64, error)

hikyo:instance-scoped

func (*Queries) CountRegistrationPolicyOrgs

func (q *Queries) CountRegistrationPolicyOrgs(ctx context.Context, registrationPolicyID sql.NullString) (int64, error)

The live count behind a fresh-org policy's `n / cap` (#585 d9): orgs the policy minted that still exist. Instance-wide by construction: the orgs a policy mints are not under any one tenant the reader could be bound to. hikyo:authn-resolution

func (*Queries) CountRemotePairingReplays

func (q *Queries) CountRemotePairingReplays(ctx context.Context) (int64, error)

hikyo:reason Fail closed at the live replay cap rather than evicting proofs still replayable. hikyo:authn-resolution

func (*Queries) CountRemotePairingReplaysForKey

func (q *Queries) CountRemotePairingReplaysForKey(ctx context.Context, thumbprint string) (int64, error)

hikyo:reason Bound one enrolled key's replay share before it can exhaust installation-wide admission for other peers. hikyo:authn-resolution

func (*Queries) CountRemotes

func (q *Queries) CountRemotes(ctx context.Context) (int64, error)

hikyo:instance-scoped

func (*Queries) CountRevisionPinsForProject

func (q *Queries) CountRevisionPinsForProject(ctx context.Context, arg CountRevisionPinsForProjectParams) (int64, error)

func (*Queries) CountSCIMGroups

func (q *Queries) CountSCIMGroups(ctx context.Context, arg CountSCIMGroupsParams) (int64, error)

func (*Queries) CountSCIMGroupsByDisplayName

func (q *Queries) CountSCIMGroupsByDisplayName(ctx context.Context, arg CountSCIMGroupsByDisplayNameParams) (int64, error)

Okta and Entra both discover a group by `displayName eq` before creating or updating it; displayName is caseExact:false like userName. It is NOT unique (RFC 7643 does not make it so), which is why this returns MANY: a directory with two same-named groups must answer with two.

func (*Queries) CountSCIMGroupsByExternalID

func (q *Queries) CountSCIMGroupsByExternalID(ctx context.Context, arg CountSCIMGroupsByExternalIDParams) (int64, error)

externalId is not unique on groups either.

func (*Queries) CountSCIMUsers

func (q *Queries) CountSCIMUsers(ctx context.Context, arg CountSCIMUsersParams) (int64, error)

The WIRE's paged reads. Paging in Go over an unbounded read lets a valid credential force full-directory work for a 200-item answer, every request; LIMIT/OFFSET bounds resource materialization; the matching count query keeps `totalResults` truthful (ADR section 8's ListResponse fields).

func (*Queries) CountSCIMUsersByExternalID

func (q *Queries) CountSCIMUsersByExternalID(ctx context.Context, arg CountSCIMUsersByExternalIDParams) (int64, error)

externalId compares BYTE-EXACT (ADR section 8). It is NOT unique -- only the SUBJECT is -- so this returns MANY: an empty externalId is the default and a singular query would answer an arbitrary one of them with totalResults 1.

func (*Queries) CountSCIMUsersByUserName

func (q *Queries) CountSCIMUsersByUserName(ctx context.Context, arg CountSCIMUsersByUserNameParams) (int64, error)

Filtered pages and counts deliberately use identical equality predicates.

func (*Queries) CountSelfConfigCompletedGeneration

func (q *Queries) CountSelfConfigCompletedGeneration(ctx context.Context, generation int64) (int64, error)

hikyo:instance-scoped

func (*Queries) CountSelfConfigOpenJobs

func (q *Queries) CountSelfConfigOpenJobs(ctx context.Context) (int64, error)

hikyo:instance-scoped

func (*Queries) CountSelfConfigRootFinalizationBlockers

func (q *Queries) CountSelfConfigRootFinalizationBlockers(ctx context.Context) (int64, error)

Preserve both roots until the committed deployment can no longer restore. The caller holds LockSelfConfigBinding before consulting this count. hikyo:instance-scoped

func (*Queries) CountSelfConfigSeedDisagreement

func (q *Queries) CountSelfConfigSeedDisagreement(ctx context.Context, arg CountSelfConfigSeedDisagreementParams) (int64, error)

hikyo:instance-scoped

func (*Queries) CountServiceAccountPKICertificates

func (q *Queries) CountServiceAccountPKICertificates(ctx context.Context, arg CountServiceAccountPKICertificatesParams) (int64, error)

Issuance history retains the principal even after the certificate expires. hikyo:authn-resolution

func (*Queries) CreateEnvironment

func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) error

Tenant-scoped statements. The reserved chain_* parameters are bound by the store's binding layer from proof fields only - never from caller arguments; the SQL predicate analyzer enforces the conjunct shape.

func (*Queries) CreateFolder

func (q *Queries) CreateFolder(ctx context.Context, arg CreateFolderParams) error

Tenant-scoped statements. The reserved chain_* parameters are bound by the store's binding layer from proof fields only - never from caller arguments; the SQL predicate analyzer enforces the conjunct shape.

A folder is addressed WITHIN the project the proof resolved: the chain conjuncts come from the proof, and `id` is an ordinary caller argument like `path` is. The scope lattice has no folder level (permission-model ADR: no folder-scoped grants), so there is no chain field for it to bind from - and it needs none: a folder id from another project simply misses the chain predicate, which is the uniform nonexistent outcome.

func (*Queries) CreateInstanceConnection

func (q *Queries) CreateInstanceConnection(ctx context.Context, arg CreateInstanceConnectionParams) error

Principal and credential are minted as one unit with a stable immutable id. hikyo:authn-resolution

func (*Queries) CreateKey

func (q *Queries) CreateKey(ctx context.Context, arg CreateKeyParams) error

func (*Queries) CreateKeyGroup

func (q *Queries) CreateKeyGroup(ctx context.Context, arg CreateKeyGroupParams) error

The key catalogue (#49). Tenant-scoped statements: the reserved chain_* parameters are bound by the store's binding layer from proof fields only - never from caller arguments; the SQL predicate analyzer enforces the conjunct shape.

A key, a group and a presence row are all addressed WITHIN the project the proof resolved. The scope lattice has no key level (permission-model ADR: no key-scoped grants in v1), so `id` is an ordinary caller argument: an id from another project simply misses the chain predicate, which is the uniform nonexistent outcome.

func (*Queries) CreateOAuth2Provider

func (q *Queries) CreateOAuth2Provider(ctx context.Context, arg CreateOAuth2ProviderParams) error

OAuth2 profile administration and single-use callbacks (#609). hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) CreateOIDCProvider

func (q *Queries) CreateOIDCProvider(ctx context.Context, arg CreateOIDCProviderParams) error

OIDC provider administration (#54, human-auth ADR - Login methods). The provider table is class=authn: it decides how a caller may authenticate, and login resolves it proof-free, so every statement touching it lives on the resolution surface. Provider mutations are still authorized at the chokepoint (OpProviderPut/Delete under instance-config) before these run; the write itself rides the resolution surface, like the session lifecycle. hikyo:authn-resolution

func (*Queries) CreateOrg

func (q *Queries) CreateOrg(ctx context.Context, arg CreateOrgParams) error

The Org aggregate. Creation, listing and counting are instance-scoped operations (they are cross-tenant by definition: a create has no parent tenant and an enumeration spans all of them); each is annotated and content-pinned in the allowlist fixture (tenant-isolation ADR invariant 13).

The by-id statements are NOT annotated: an org row is its own tenant root (scope class org, chain=id), so they carry the chain conjunct like any other tenant statement and the binding layer takes `id` from the proof. That is what makes an org nobody may reach indistinguishable from a missing one (#48, mvp-boundary C1). hikyo:instance-scoped

func (*Queries) CreatePlan

func (q *Queries) CreatePlan(ctx context.Context, arg CreatePlanParams) error

Definitions plan ledger (#70). Tenant-scoped statements: the chain conjunct is bound by the store's binding layer from proof fields only, never from caller arguments. A plan is immutable except for the one-shot apply stamp.

func (*Queries) CreateProject

func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) error

Tenant-scoped statements. The reserved chain_* parameters are bound by the store's binding layer from proof fields only - never from caller arguments; the SQL predicate analyzer enforces the conjunct shape.

func (*Queries) CreateRemote

func (q *Queries) CreateRemote(ctx context.Context, arg CreateRemoteParams) error

--------------------------------------------------------------------------- VIEWING SIDE: the remote entries and their last-known snapshots.

These are class=instance, NOT authn-resolution: they are instance-scope configuration and foreign structure at rest, read only through proofs evaluated on instance-directory or instance-config. They are annotated instance-scoped for the reason ListOrgs is - they address no tenant by design, not by omission. --------------------------------------------------------------------------- URL and pin are immutable per entry: there is deliberately no UPDATE statement anywhere naming either column. Re-pointing a stored credential at a different host is the credential-redirect attack, so re-pointing is remove + add, which re-runs the full ceremony including the human fingerprint confirmation. hikyo:instance-scoped

func (*Queries) CreateRemotePairingExchange

func (q *Queries) CreateRemotePairingExchange(ctx context.Context, arg CreateRemotePairingExchangeParams) error

hikyo:reason Persist sealed PAKE exchange state so continuation works across server nodes. hikyo:authn-resolution

func (*Queries) CreateRemotePairingInvite

func (q *Queries) CreateRemotePairingInvite(ctx context.Context, arg CreateRemotePairingInviteParams) error

Manual pairing metadata is authentication state; never a tenant lookup. hikyo:reason Resolve and administer finite manual invitations only after capability or instance-config authorization. hikyo:authn-resolution

func (*Queries) CreateSCIMBinding

func (q *Queries) CreateSCIMBinding(ctx context.Context, arg CreateSCIMBindingParams) error

SCIM provisioning (#73). Tenant-scoped statements: the reserved chain_* parameter is bound by the store's binding layer from the verified proof's resolved chain, never from a caller argument. Every SCIM wire operation authorizes `scim-provision(org)` first, so `org_id` here is always the org that proof resolved. ASCII only: multibyte characters shift sqlite statement offsets.

func (*Queries) CreateSCIMGroup

func (q *Queries) CreateSCIMGroup(ctx context.Context, arg CreateSCIMGroupParams) error

func (*Queries) CreateSCIMMapping

func (q *Queries) CreateSCIMMapping(ctx context.Context, arg CreateSCIMMappingParams) error

func (*Queries) CreateSCIMUser

func (q *Queries) CreateSCIMUser(ctx context.Context, arg CreateSCIMUserParams) error

func (*Queries) CreateSelfConfigBinding

func (q *Queries) CreateSelfConfigBinding(ctx context.Context, arg CreateSelfConfigBindingParams) (int64, error)

hikyo:instance-scoped

func (*Queries) DeleteAccessGrantsForRequest

func (q *Queries) DeleteAccessGrantsForRequest(ctx context.Context, arg DeleteAccessGrantsForRequestParams) (int64, error)

Revocation and expiry release a request's rows together. hikyo:authn-resolution

func (*Queries) DeleteAccessPolicy

func (q *Queries) DeleteAccessPolicy(ctx context.Context, arg DeleteAccessPolicyParams) (int64, error)

func (*Queries) DeleteAccessPolicyApprovers

func (q *Queries) DeleteAccessPolicyApprovers(ctx context.Context, arg DeleteAccessPolicyApproversParams) (int64, error)

func (*Queries) DeleteAccessPolicyBypassers

func (q *Queries) DeleteAccessPolicyBypassers(ctx context.Context, arg DeleteAccessPolicyBypassersParams) (int64, error)

func (*Queries) DeleteAllScanningDismissals

func (q *Queries) DeleteAllScanningDismissals(ctx context.Context) (int64, error)

DeleteAllScanningDismissals drops every dismissal instance-wide: fingerprint rotation replaces the scanning key, so every stored fingerprint is now unrecomputable and must die (re-fire, the safe direction). Cross-tenant by definition: the operator rotation surface, annotated and pinned. hikyo:instance-scoped

func (*Queries) DeleteApprovalPolicy

func (q *Queries) DeleteApprovalPolicy(ctx context.Context, arg DeleteApprovalPolicyParams) (int64, error)

func (*Queries) DeleteApprovalPolicyApprovers

func (q *Queries) DeleteApprovalPolicyApprovers(ctx context.Context, arg DeleteApprovalPolicyApproversParams) (int64, error)

func (*Queries) DeleteApprovalPolicyBypassers

func (q *Queries) DeleteApprovalPolicyBypassers(ctx context.Context, arg DeleteApprovalPolicyBypassersParams) (int64, error)

func (*Queries) DeleteCollectedSnapshotEntries

func (q *Queries) DeleteCollectedSnapshotEntries(ctx context.Context, snapshotID string) (int64, error)

hikyo:instance-scoped

func (*Queries) DeleteDeliveryTargetReport

func (q *Queries) DeleteDeliveryTargetReport(ctx context.Context, arg DeleteDeliveryTargetReportParams) (int64, error)

func (*Queries) DeleteEnvironment

func (q *Queries) DeleteEnvironment(ctx context.Context, arg DeleteEnvironmentParams) (int64, error)

func (*Queries) DeleteEnvironmentPersonalRequired

func (q *Queries) DeleteEnvironmentPersonalRequired(ctx context.Context, arg DeleteEnvironmentPersonalRequiredParams) error

func (*Queries) DeleteEnvironmentPresence

func (q *Queries) DeleteEnvironmentPresence(ctx context.Context, arg DeleteEnvironmentPresenceParams) error

DeleteEnvironmentPresence is the environment-lifecycle cascade: deleting an environment removes its id from every explicit presence set IN THE SAME TRANSACTION (schema-model ADR section Presence). Zero rows is ordinary.

func (*Queries) DeleteExpiredPersonalValue

func (q *Queries) DeleteExpiredPersonalValue(ctx context.Context, arg DeleteExpiredPersonalValueParams) (int64, error)

DeleteExpiredPersonalValue deletes one value suspended since at least the cutoff, so a value whose owner regained access in between survives.

func (*Queries) DeleteExpiredSAMLReplay

func (q *Queries) DeleteExpiredSAMLReplay(ctx context.Context, expiresAt string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteExpiredUnconsumedWebAuthnCeremonies

func (q *Queries) DeleteExpiredUnconsumedWebAuthnCeremonies(ctx context.Context, expiresAt string) (int64, error)

Expired, unconsumed challenges have no provenance value and cannot be referenced by a session or reauthentication window. Remove them before creating the next ceremony so sustained starts cannot grow storage forever. hikyo:reason Pre-auth issuance retires only expired unconsumed proofs; no live credential or tenant authority changes. hikyo:authn-resolution

func (*Queries) DeleteExpiredWorkspaceHandoffs

func (q *Queries) DeleteExpiredWorkspaceHandoffs(ctx context.Context, expiresAt string) (int64, error)

Expired transactions are swept opportunistically at issuance rather than by a poller: the ADR forbids a background job framework, and a transaction that has expired is refused by the caller's own clock check whether or not the row is still there. This keeps the table from growing without bound. hikyo:authn-resolution

func (*Queries) DeleteExternalIdentity

func (q *Queries) DeleteExternalIdentity(ctx context.Context, id string) error

hikyo:authn-resolution

func (*Queries) DeleteFederationIssuer

func (q *Queries) DeleteFederationIssuer(ctx context.Context, id string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteFileTarget

func (q *Queries) DeleteFileTarget(ctx context.Context, arg DeleteFileTargetParams) (int64, error)

func (*Queries) DeleteFileTargetKeys

func (q *Queries) DeleteFileTargetKeys(ctx context.Context, arg DeleteFileTargetKeysParams) error

func (*Queries) DeleteFolder

func (q *Queries) DeleteFolder(ctx context.Context, arg DeleteFolderParams) (int64, error)

func (*Queries) DeleteGrantOrigin

func (q *Queries) DeleteGrantOrigin(ctx context.Context, arg DeleteGrantOriginParams) (int64, error)

Releasing one origin. The grant row survives while another origin holds it; only the last release deletes the row (permission-model ADR, scim amendment (a)). hikyo:authn-resolution

func (*Queries) DeleteGrantOriginsForPrincipal

func (q *Queries) DeleteGrantOriginsForPrincipal(ctx context.Context, principalID string) (int64, error)

Deleting a service account releases its grants in the same transaction. The origin rows go first (the FK is RESTRICT, deliberately), then the grants themselves. hikyo:authn-resolution

func (*Queries) DeleteGrantRow

func (q *Queries) DeleteGrantRow(ctx context.Context, id string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteGrantsForPrincipal

func (q *Queries) DeleteGrantsForPrincipal(ctx context.Context, principalID string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteKey

func (q *Queries) DeleteKey(ctx context.Context, arg DeleteKeyParams) (int64, error)

func (*Queries) DeleteKeyGroup

func (q *Queries) DeleteKeyGroup(ctx context.Context, arg DeleteKeyGroupParams) (int64, error)

func (*Queries) DeleteKeyPersonalRequired

func (q *Queries) DeleteKeyPersonalRequired(ctx context.Context, arg DeleteKeyPersonalRequiredParams) error

func (*Queries) DeleteKeyPresence

func (q *Queries) DeleteKeyPresence(ctx context.Context, arg DeleteKeyPresenceParams) error

DeleteKeyPresence clears one key's explicit sets so a declaration save can rewrite them whole. Zero rows is the ordinary case (a key whose modes were never `explicit`), so this is :exec.

func (*Queries) DeleteMachineCredentials

func (q *Queries) DeleteMachineCredentials(ctx context.Context, serviceAccountID string) (int64, error)

The deleted service account's credential rows. The revoke ran first, so the trail records the transition before the rows stop existing. hikyo:authn-resolution

func (*Queries) DeleteOAuth2Provider

func (q *Queries) DeleteOAuth2Provider(ctx context.Context, id string) error

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) DeleteOIDCProvider

func (q *Queries) DeleteOIDCProvider(ctx context.Context, id string) error

hikyo:authn-resolution

func (*Queries) DeleteOrg

func (q *Queries) DeleteOrg(ctx context.Context, id string) (int64, error)

func (*Queries) DeleteOrgEmailInvitationInOrg

func (q *Queries) DeleteOrgEmailInvitationInOrg(ctx context.Context, arg DeleteOrgEmailInvitationInOrgParams) (int64, error)

hikyo:reason Revocation deletes the addressed org's own row after authorizing manage-members at that org. hikyo:authn-resolution

func (*Queries) DeleteOriginlessGrantsForPrincipal

func (q *Queries) DeleteOriginlessGrantsForPrincipal(ctx context.Context, principalID string) (int64, error)

A row whose only restored origins were `scim` is not re-activated: with its last origin gone the grant row goes too, which is the same arithmetic every other origin release performs. A row that also carried a `manual` origin survives on that origin alone, which is what "the commit covers manual origins only" means in the affirmative. hikyo:authn-resolution

func (*Queries) DeletePendingChangeByID

func (q *Queries) DeletePendingChangeByID(ctx context.Context, arg DeletePendingChangeByIDParams) (int64, error)

func (*Queries) DeletePendingChangeForCell

func (q *Queries) DeletePendingChangeForCell(ctx context.Context, arg DeletePendingChangeForCellParams) (int64, error)

DeletePendingChangeForCell collects the superseded version. Editing a cell mints a new version id rather than mutating the old row, and the old row is removed in the same transaction: only the latest version per (owner, key, environment) is publishable, so keeping the predecessor would store draft material nothing may ever publish.

func (*Queries) DeletePendingChangesForEnvironment

func (q *Queries) DeletePendingChangesForEnvironment(ctx context.Context, arg DeletePendingChangesForEnvironmentParams) (int64, error)

func (*Queries) DeletePendingChangesForKey

func (q *Queries) DeletePendingChangesForKey(ctx context.Context, arg DeletePendingChangesForKeyParams) (int64, error)

DeletePendingChangesForKey is the key-delete cascade: deleting a key invalidates every pending change referencing it, so a publish naming one of those versions is refused loudly instead of resurrecting a key the schema no longer declares.

func (*Queries) DeletePendingLoginChallengesForPrincipal

func (q *Queries) DeletePendingLoginChallengesForPrincipal(ctx context.Context, principalID string) error

hikyo:reason Principal-generation revocation retires only unconsumed password proofs for the exact principal whose account security changed. hikyo:authn-resolution

func (*Queries) DeletePendingTOTPForAccount

func (q *Queries) DeletePendingTOTPForAccount(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) DeletePendingWorkspaceHandoffsForPrincipal

func (q *Queries) DeletePendingWorkspaceHandoffsForPrincipal(ctx context.Context, principalID sql.NullString) error

hikyo:reason Principal-generation revocation retires only unconsumed approvals by the exact principal; consumed handoffs retain session provenance. hikyo:authn-resolution

func (*Queries) DeletePersonalValueForCell

func (q *Queries) DeletePersonalValueForCell(ctx context.Context, arg DeletePersonalValueForCellParams) (int64, error)

DeletePersonalValueForCell destroys one row: replacing a value deletes the old row and inserts a new one, so no superseded ciphertext survives.

func (*Queries) DeletePersonalValueNotice

func (q *Queries) DeletePersonalValueNotice(ctx context.Context, arg DeletePersonalValueNoticeParams) (int64, error)

func (*Queries) DeletePersonalValueNoticeAt

func (q *Queries) DeletePersonalValueNoticeAt(ctx context.Context, arg DeletePersonalValueNoticeAtParams) (int64, error)

A notice records why a value disappeared. Recording one replaces any earlier notice on the same name: the store deletes it first, then inserts.

func (*Queries) DeletePersonalValueNoticesForEnvironment

func (q *Queries) DeletePersonalValueNoticesForEnvironment(ctx context.Context, arg DeletePersonalValueNoticesForEnvironmentParams) (int64, error)

func (*Queries) DeletePersonalValueNoticesForOwner

func (q *Queries) DeletePersonalValueNoticesForOwner(ctx context.Context, ownerPrincipalID string) error

hikyo:reason Erasing a privacy subject destroys every personal-value notice the subject owns, across every project, in the erasure transaction, so no key name survives for an erased owner; the statement is keyed on the subject's own principal. hikyo:authn-resolution

func (*Queries) DeletePersonalValuesForEnvironment

func (q *Queries) DeletePersonalValuesForEnvironment(ctx context.Context, arg DeletePersonalValuesForEnvironmentParams) error

func (*Queries) DeletePersonalValuesForKey

func (q *Queries) DeletePersonalValuesForKey(ctx context.Context, arg DeletePersonalValuesForKeyParams) (int64, error)

func (*Queries) DeletePersonalValuesForKeyInEnvironment

func (q *Queries) DeletePersonalValuesForKeyInEnvironment(ctx context.Context, arg DeletePersonalValuesForKeyInEnvironmentParams) (int64, error)

DeletePersonalValuesForKeyInEnvironment is the forbidden_in cascade: a key newly forbidden in one environment loses its personal values there only.

func (*Queries) DeletePersonalValuesForOwner

func (q *Queries) DeletePersonalValuesForOwner(ctx context.Context, ownerPrincipalID string) (int64, error)

hikyo:reason Losing qualification through a credential change must delete the owner's values in that same authentication transaction, across every project, before any new factor can be enrolled (personal-values ADR, Which accounts qualify); the statement is keyed on the account's own principal and reads no ciphertext. hikyo:authn-resolution

func (*Queries) DeletePinGenerationsForPrincipal

func (q *Queries) DeletePinGenerationsForPrincipal(ctx context.Context, principalID string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeletePrincipal

func (q *Queries) DeletePrincipal(ctx context.Context, id string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteProject

func (q *Queries) DeleteProject(ctx context.Context, arg DeleteProjectParams) (int64, error)

func (*Queries) DeleteProjectDefinitionsPlans

func (q *Queries) DeleteProjectDefinitionsPlans(ctx context.Context, arg DeleteProjectDefinitionsPlansParams) error

DeleteProjectDefinitionsPlans removes project-owned plan/provenance state only inside the authorized project deletion transaction. Tenant audit is independent and retained. If content still blocks deletion, rollback keeps every plan, including applied provenance; there is no standalone purge API.

func (*Queries) DeleteProjectSchemaRevision

func (q *Queries) DeleteProjectSchemaRevision(ctx context.Context, arg DeleteProjectSchemaRevisionParams) error

DeleteProjectSchemaRevision runs inside projects.Delete, ahead of the project row it references. A project delete refuses while the project still holds keys or groups (their foreign keys say so); the revision row is not content, it is the project's own counter, so it goes with the project rather than standing in the way of deleting an empty one.

func (*Queries) DeleteReauthWindowsForEnvironment

func (q *Queries) DeleteReauthWindowsForEnvironment(ctx context.Context, environmentID string) (int64, error)

Invalidate every open window on one environment: the first of LowerEffective Window's five ADR items on the effective-window transition (#54 B6). hikyo:authn-resolution

func (*Queries) DeleteRegistrationPolicy

func (q *Queries) DeleteRegistrationPolicy(ctx context.Context, arg DeleteRegistrationPolicyParams) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteRegistrationPolicyDomains

func (q *Queries) DeleteRegistrationPolicyDomains(ctx context.Context, policyID string) error

hikyo:authn-resolution

func (*Queries) DeleteRegistrationPolicyEntries

func (q *Queries) DeleteRegistrationPolicyEntries(ctx context.Context, policyID string) error

hikyo:authn-resolution

func (*Queries) DeleteRegistrationPolicyEntryValues

func (q *Queries) DeleteRegistrationPolicyEntryValues(ctx context.Context, policyID string) error

hikyo:authn-resolution

func (*Queries) DeleteRegistrationSignup

func (q *Queries) DeleteRegistrationSignup(ctx context.Context, id string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteRemote

func (q *Queries) DeleteRemote(ctx context.Context, id string) (int64, error)

Removal destroys the credential and the snapshot with the entry (the snapshot by ON DELETE CASCADE). It does NOT revoke anything on the serving side, and the CLI says so every time. hikyo:instance-scoped

func (*Queries) DeleteRestoredRemotes

func (q *Queries) DeleteRestoredRemotes(ctx context.Context) error

hikyo:reason Authorized restore removes archive-controlled remote-instance trust and credentials across the instance. hikyo:authn-resolution

func (*Queries) DeleteRetiringSAMLSPKey

func (q *Queries) DeleteRetiringSAMLSPKey(ctx context.Context, id string) (int64, error)

Erasing a retired key deletes both ciphertext and certificate row. hikyo:authn-resolution

func (*Queries) DeleteRevisionKeyChangesForEnvironment

func (q *Queries) DeleteRevisionKeyChangesForEnvironment(ctx context.Context, arg DeleteRevisionKeyChangesForEnvironmentParams) (int64, error)

func (*Queries) DeleteRevisionPin

func (q *Queries) DeleteRevisionPin(ctx context.Context, arg DeleteRevisionPinParams) (int64, error)

func (*Queries) DeleteRevisionPinsForEnvironment

func (q *Queries) DeleteRevisionPinsForEnvironment(ctx context.Context, arg DeleteRevisionPinsForEnvironmentParams) (int64, error)

func (*Queries) DeleteRuleItem

func (q *Queries) DeleteRuleItem(ctx context.Context, arg DeleteRuleItemParams) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteRuleItems

func (q *Queries) DeleteRuleItems(ctx context.Context, ruleID string) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteRuleRow

func (q *Queries) DeleteRuleRow(ctx context.Context, arg DeleteRuleRowParams) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteSAMLProvider

func (q *Queries) DeleteSAMLProvider(ctx context.Context, id string) error

hikyo:authn-resolution

func (*Queries) DeleteSCIMAttentionForBinding

func (q *Queries) DeleteSCIMAttentionForBinding(ctx context.Context, arg DeleteSCIMAttentionForBindingParams) (int64, error)

func (*Queries) DeleteSCIMBinding

func (q *Queries) DeleteSCIMBinding(ctx context.Context, arg DeleteSCIMBindingParams) (int64, error)

func (*Queries) DeleteSCIMCredentialsForBinding

func (q *Queries) DeleteSCIMCredentialsForBinding(ctx context.Context, arg DeleteSCIMCredentialsForBindingParams) error

hikyo:authn-resolution

func (*Queries) DeleteSCIMGroup

func (q *Queries) DeleteSCIMGroup(ctx context.Context, arg DeleteSCIMGroupParams) (int64, error)

func (*Queries) DeleteSCIMGroupMember

func (q *Queries) DeleteSCIMGroupMember(ctx context.Context, arg DeleteSCIMGroupMemberParams) (int64, error)

func (*Queries) DeleteSCIMGroupMembersForBinding

func (q *Queries) DeleteSCIMGroupMembersForBinding(ctx context.Context, arg DeleteSCIMGroupMembersForBindingParams) (int64, error)

func (*Queries) DeleteSCIMGroupMembershipsForUser

func (q *Queries) DeleteSCIMGroupMembershipsForUser(ctx context.Context, arg DeleteSCIMGroupMembershipsForUserParams) (int64, error)

DELETE removes every member reference to the user IN THE SAME TRANSACTION (ADR section 5.3), so a stale reference cannot exist after it.

func (*Queries) DeleteSCIMGroupsForBinding

func (q *Queries) DeleteSCIMGroupsForBinding(ctx context.Context, arg DeleteSCIMGroupsForBindingParams) (int64, error)

func (*Queries) DeleteSCIMMapping

func (q *Queries) DeleteSCIMMapping(ctx context.Context, arg DeleteSCIMMappingParams) (int64, error)

func (*Queries) DeleteSCIMMappingsForBinding

func (q *Queries) DeleteSCIMMappingsForBinding(ctx context.Context, arg DeleteSCIMMappingsForBindingParams) (int64, error)

func (*Queries) DeleteSCIMUser

func (q *Queries) DeleteSCIMUser(ctx context.Context, arg DeleteSCIMUserParams) (int64, error)

func (*Queries) DeleteSCIMUsersForBinding

func (q *Queries) DeleteSCIMUsersForBinding(ctx context.Context, arg DeleteSCIMUsersForBindingParams) (int64, error)

func (*Queries) DeleteScanningDismissalsForKey

func (q *Queries) DeleteScanningDismissalsForKey(ctx context.Context, arg DeleteScanningDismissalsForKeyParams) (int64, error)

DeleteScanningDismissalsForKey drops one key's dismissals across every environment: reclassification to secret makes them moot, and key deletion needs them gone before the composite FK will let the key row go.

func (*Queries) DeleteScanningDismissalsForProject

func (q *Queries) DeleteScanningDismissalsForProject(ctx context.Context, arg DeleteScanningDismissalsForProjectParams) (int64, error)

DeleteScanningDismissalsForProject removes a project's dismissals: the ADR's literal "project deletion removes the project's dismissal rows".

func (*Queries) DeleteSecretValueOccurrencesForEnvironment

func (q *Queries) DeleteSecretValueOccurrencesForEnvironment(ctx context.Context, arg DeleteSecretValueOccurrencesForEnvironmentParams) (int64, error)

func (*Queries) DeleteSelfConfigNodes

func (q *Queries) DeleteSelfConfigNodes(ctx context.Context) error

hikyo:instance-scoped

func (*Queries) DeleteSelfConfigRetention

func (q *Queries) DeleteSelfConfigRetention(ctx context.Context, slot string) error

hikyo:instance-scoped

func (*Queries) DeleteServiceAccount

func (q *Queries) DeleteServiceAccount(ctx context.Context, arg DeleteServiceAccountParams) (int64, error)

Deleting a service account revokes every credential and every grant in one transaction (#15's atomic revocation); this is the last statement of that sequence, so the FK from machine_credentials is already satisfied. hikyo:authn-resolution

func (*Queries) DeleteSession

func (q *Queries) DeleteSession(ctx context.Context, id string) error

hikyo:authn-resolution

func (*Queries) DeleteSessionForPrincipal

func (q *Queries) DeleteSessionForPrincipal(ctx context.Context, arg DeleteSessionForPrincipalParams) (int64, error)

Self-scoped revocation: the principal conjunct is what makes one caller unable to revoke another's session by guessing an id, and it is why the statement reports rows affected rather than succeeding silently. hikyo:authn-resolution

func (*Queries) DeleteSessionsForOAuth2Provider

func (q *Queries) DeleteSessionsForOAuth2Provider(ctx context.Context, oauth2ProviderID sql.NullString) (int64, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) DeleteSessionsForOrigin

func (q *Queries) DeleteSessionsForOrigin(ctx context.Context, requestingOrigin sql.NullString) (int64, error)

The origin kill switch (#71). Removing an origin from the allowlist atomically revokes every workspace session bound to it -- ONE statement over one indexed column, in the same transaction as the allowlist delete, which is what makes de-allowlisting a real kill switch rather than a headers change. Only workspace rows carry a requesting_origin, so no cli or browser session can be caught by it. hikyo:authn-resolution

func (*Queries) DeleteSessionsForPrincipal

func (q *Queries) DeleteSessionsForPrincipal(ctx context.Context, principalID string) error

Every session of the principal dies, atomically and without reaching the client - the invalidation that token rotation structurally cannot do. hikyo:authn-resolution

func (*Queries) DeleteSessionsForProvider

func (q *Queries) DeleteSessionsForProvider(ctx context.Context, providerID sql.NullString) (int64, error)

The federated-session sweep (A4): every session minted through a provider dies when the provider's issuer/client/assurance policy changes or the provider is disabled or deleted. reauth_windows cascade from the session. hikyo:authn-resolution

func (*Queries) DeleteSessionsForSAMLProvider

func (q *Queries) DeleteSessionsForSAMLProvider(ctx context.Context, samlProviderID sql.NullString) (int64, error)

hikyo:authn-resolution

func (*Queries) DeleteSessionsForWebAuthnCredential

func (q *Queries) DeleteSessionsForWebAuthnCredential(ctx context.Context, credentialID sql.NullString) (int64, error)

The clone session sweep (B9): every session a passkey login minted through a given credential dies when that credential is found cloned. A session traces to its credential through the ceremony it was minted from (sessions.ceremony_id -> webauthn_ceremonies.credential_id). hikyo:authn-resolution

func (*Queries) DeleteSnapshotEntriesForEnvironment

func (q *Queries) DeleteSnapshotEntriesForEnvironment(ctx context.Context, arg DeleteSnapshotEntriesForEnvironmentParams) (int64, error)

func (*Queries) DeleteSnapshotsForEnvironment

func (q *Queries) DeleteSnapshotsForEnvironment(ctx context.Context, arg DeleteSnapshotsForEnvironmentParams) (int64, error)

func (*Queries) DeleteTOTPForAccount

func (q *Queries) DeleteTOTPForAccount(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) DeleteValueEntriesForEnvironment

func (q *Queries) DeleteValueEntriesForEnvironment(ctx context.Context, arg DeleteValueEntriesForEnvironmentParams) (int64, error)

DeleteValueEntriesForEnvironment cascades an environment's whole set out when the environment itself is deleted: the values cannot outlive the only thing they attach to, and the composite foreign key would refuse the delete while they existed.

func (*Queries) DeleteValueEntriesForKey

func (q *Queries) DeleteValueEntriesForKey(ctx context.Context, arg DeleteValueEntriesForKeyParams) (int64, error)

DeleteValueEntriesForKey removes a key's live occurrences across every environment under a PROJECT proof (key_id is an ordinary column) - the definitions-apply key-delete path clears them so the composite foreign key does not refuse the catalogue delete, exactly as an environment delete clears its own set (#70).

func (*Queries) DeleteValueEntry

func (q *Queries) DeleteValueEntry(ctx context.Context, arg DeleteValueEntryParams) (int64, error)

func (*Queries) DeleteWebAuthnCredential

func (q *Queries) DeleteWebAuthnCredential(ctx context.Context, arg DeleteWebAuthnCredentialParams) (int64, error)

De-enrolment under an account_id predicate (defence in depth): even if the service-layer ownership check regresses, the DELETE cannot touch a row another account owns, and zero affected rows is the caller's fail-closed refusal. hikyo:authn-resolution

func (*Queries) DeleteWorkspaceOrigin

func (q *Queries) DeleteWorkspaceOrigin(ctx context.Context, origin string) (int64, error)

Removal is the kill switch's first half; DeleteSessionsForOrigin is the second, and the two run in ONE transaction so no window exists in which the origin is de-allowlisted but its sessions still authenticate. hikyo:authn-resolution

func (*Queries) DemoteActiveTier3ToRetiring

func (q *Queries) DemoteActiveTier3ToRetiring(ctx context.Context, arg DemoteActiveTier3ToRetiringParams) (int64, error)

DemoteActiveTier3ToRetiring is `rotate-dek`'s first half: the outgoing active version steps down to 'retiring' -- no longer written, still openable until reencrypt moves its ciphertext -- so the new active can take the one-active index slot. Compare-and-swap on the predecessor version: zero rows means a concurrent rotation already moved the active, and the caller must refuse.

func (*Queries) DeveloperCredentialByVerifier

func (q *Queries) DeveloperCredentialByVerifier(ctx context.Context, verifier []byte) (DeveloperCredential, error)

hikyo:reason Authentication resolves the presented verifier before any authorization proof can exist. hikyo:authn-resolution

func (*Queries) DeveloperMaxCredentialEpoch

func (q *Queries) DeveloperMaxCredentialEpoch(ctx context.Context) (interface{}, error)

Developer credentials arrive in 00074. Restore reads this only when the archive catalog contains the table, before migration roll-forward. hikyo:reason restore must outrun every attacker-controlled developer credential epoch stamp hikyo:authn-resolution

func (*Queries) DisableWebAuthnCredential

func (q *Queries) DisableWebAuthnCredential(ctx context.Context, arg DisableWebAuthnCredentialParams) (int64, error)

The clone response (B9): a real sign-count regression on a non-backup credential disables it. Re-enable is an account-security mutation. hikyo:authn-resolution

func (*Queries) DropRestoredSCIMOrigins

func (q *Queries) DropRestoredSCIMOrigins(ctx context.Context, principalID string) (int64, error)

The operator's commit covers `manual` origins ONLY (#73, scim-provisioning ADR section 9.1). A restored `scim` origin is a claim about what an identity provider asserted BEFORE the backup was taken, and the whole point of the rule is that the restore must not re-activate it: the IdP's own next re-assertion recreates SCIM origins from live truth, so a user it no longer asserts is never re-authorized, not even for a window.

`structural` and `lockout-retention` survive deliberately. A structural origin holds a provisioning connection's own grant and is created with the binding, not by the identity provider, so nothing would ever recreate it; a retention exists precisely to keep an org administrable, and dropping it at restore would lock out the org the moment it most needs administering.

ARCHIVED, not merely `scim`. The reconciliation commit refuses archived truth; it does not get to destroy LIVE truth. A restore leaves every principal inert, but the operator reconciles the binding's provisioning connection first (that is the only way the wire comes back), so the identity provider's next cycle can assert something new about a user who is still unreconciled. Those origins are current truth. Filtering on kind and principal alone dropped them with the archived ones, and the originless cleanup below then deleted grants the IdP was asserting right then -- access lost until the next cycle, roughly forty minutes later, for a user whose authority never lapsed.

Provenance is `created_at` against `auth_instance_state.reactivated_at`, the instant the restored instance came back. It is #76's own anchor, used the same way the machine-identities ADR uses it for the federated `iat` floor: a row stamped at or before the restore came out of the archive, a row stamped after it was written by this instance since. NULL means this datastore was never restored, the comparison is NULL, and the statement matches nothing -- which is right, because a reconciliation with no restore behind it has no archived rows to refuse. The boundary is `<=` rather than `<` so an ambiguous stamp is treated as ARCHIVED: dropping a live origin costs one IdP cycle, re-activating an archived one is the security failure this rule exists to prevent. hikyo:authn-resolution

func (*Queries) DynamicCreateLease

func (q *Queries) DynamicCreateLease(ctx context.Context, arg DynamicCreateLeaseParams) (int64, error)

func (*Queries) DynamicCreateProvider

func (q *Queries) DynamicCreateProvider(ctx context.Context, arg DynamicCreateProviderParams) (int64, error)

func (*Queries) DynamicDeleteProvider

func (q *Queries) DynamicDeleteProvider(ctx context.Context, arg DynamicDeleteProviderParams) (int64, error)

func (*Queries) DynamicEnqueueRenewing

func (q *Queries) DynamicEnqueueRenewing(ctx context.Context, arg DynamicEnqueueRenewingParams) (int64, error)

func (*Queries) DynamicEnqueueRenewingWithTTL

func (q *Queries) DynamicEnqueueRenewingWithTTL(ctx context.Context, arg DynamicEnqueueRenewingWithTTLParams) (int64, error)

func (*Queries) DynamicEnqueueRevoking

func (q *Queries) DynamicEnqueueRevoking(ctx context.Context, arg DynamicEnqueueRevokingParams) (int64, error)

func (*Queries) DynamicEnqueueRevokingWithTTL

func (q *Queries) DynamicEnqueueRevokingWithTTL(ctx context.Context, arg DynamicEnqueueRevokingWithTTLParams) (int64, error)

func (*Queries) DynamicEnqueueUnknown

func (q *Queries) DynamicEnqueueUnknown(ctx context.Context, arg DynamicEnqueueUnknownParams) (int64, error)

func (*Queries) DynamicEnqueueUnknownWithTTL

func (q *Queries) DynamicEnqueueUnknownWithTTL(ctx context.Context, arg DynamicEnqueueUnknownWithTTLParams) (int64, error)

func (*Queries) DynamicFinishMint

func (q *Queries) DynamicFinishMint(ctx context.Context, arg DynamicFinishMintParams) (int64, error)

func (*Queries) DynamicGetLease

func (q *Queries) DynamicGetLease(ctx context.Context, arg DynamicGetLeaseParams) (DynamicGetLeaseRow, error)

func (*Queries) DynamicGetProvider

func (q *Queries) DynamicGetProvider(ctx context.Context, arg DynamicGetProviderParams) (DynamicGetProviderRow, error)

func (*Queries) DynamicListProviders

func (q *Queries) DynamicListProviders(ctx context.Context, arg DynamicListProvidersParams) ([]DynamicListProvidersRow, error)

func (*Queries) DynamicProviderCredentialCiphertext

func (q *Queries) DynamicProviderCredentialCiphertext(ctx context.Context, arg DynamicProviderCredentialCiphertextParams) ([]byte, error)

func (*Queries) DynamicReencryptProvider

func (q *Queries) DynamicReencryptProvider(ctx context.Context, arg DynamicReencryptProviderParams) (int64, error)

func (*Queries) DynamicReplaceProviderCredential

func (q *Queries) DynamicReplaceProviderCredential(ctx context.Context, arg DynamicReplaceProviderCredentialParams) (int64, error)

func (*Queries) DynamicRevokeProviderCredential

func (q *Queries) DynamicRevokeProviderCredential(ctx context.Context, arg DynamicRevokeProviderCredentialParams) (int64, error)

func (*Queries) EnterSCIMAttention

func (q *Queries) EnterSCIMAttention(ctx context.Context, arg EnterSCIMAttentionParams) (int64, error)

func (*Queries) EnvironmentChainByID

func (q *Queries) EnvironmentChainByID(ctx context.Context, id string) (EnvironmentChainByIDRow, error)

Resolve an environment's chain from its id alone, for LowerEffectiveWindow's stranded-principal query (#54 B6): the denormalized chain columns make the row self-describing, so the grant-coverage predicate can be built from an env id. hikyo:authn-resolution

func (*Queries) EnvironmentReauthSettings

func (q *Queries) EnvironmentReauthSettings(ctx context.Context, id string) (EnvironmentReauthSettingsRow, error)

The reveal guard reads the environment's own protection state and window. It is a resolution read, not a store read: the reauthentication machinery runs beside session resolution, before any operation proof exists. hikyo:authn-resolution

func (*Queries) FederatedBindingByIdentity

Federated authentication's single indexed read, over the LIVE-ROW partial unique index. `(issuer_id, subject)` is the whole predicate and the match is byte-exact: no wildcards, no namespace patterns, no path prefixes, no case folding. An unbound identity resolves to nothing, which is not a login.

Like the verifier read it returns the row unconditionally rather than filtering on liveness beyond the index predicate, so the caller evaluates every remaining predicate after a fixed number of reads. hikyo:authn-resolution

func (*Queries) FederationIssuerByID

func (q *Queries) FederationIssuerByID(ctx context.Context, id string) (FederationIssuer, error)

hikyo:authn-resolution

func (*Queries) FederationIssuerByIssuer

func (q *Queries) FederationIssuerByIssuer(ctx context.Context, issuer string) (FederationIssuer, error)

The BYTE-EXACT issuer lookup. There is no LOWER(), no TRIM() and no URL normalization anywhere on this path: `iss` is case-sensitive by specification, so folding it here would merge two distinct external issuers into one configuration -- and the UNIQUE index would enforce the merge rather than catch it. hikyo:authn-resolution

func (*Queries) FenceSelfConfigRestored

func (q *Queries) FenceSelfConfigRestored(ctx context.Context, arg FenceSelfConfigRestoredParams) (int64, error)

hikyo:instance-scoped

func (*Queries) FenceSelfConfigTopologyLease

func (q *Queries) FenceSelfConfigTopologyLease(ctx context.Context, expiresAt string) error

hikyo:instance-scoped

func (*Queries) GetAccessPolicy

func (q *Queries) GetAccessPolicy(ctx context.Context, arg GetAccessPolicyParams) (AccessPolicy, error)

func (*Queries) GetAccessPolicyBypasser

func (q *Queries) GetAccessPolicyBypasser(ctx context.Context, arg GetAccessPolicyBypasserParams) (string, error)

func (*Queries) GetAccessPolicyForEnvironment

func (q *Queries) GetAccessPolicyForEnvironment(ctx context.Context, arg GetAccessPolicyForEnvironmentParams) (AccessPolicy, error)

GetAccessPolicyForEnvironment is the coverage lookup: the service asks for the concrete environment first, then ” for the project-wide policy. Disabled policies are returned too; the service refuses on them by name.

func (*Queries) GetAccessRequest

func (q *Queries) GetAccessRequest(ctx context.Context, arg GetAccessRequestParams) (AccessRequest, error)

func (*Queries) GetAccessVote

func (q *Queries) GetAccessVote(ctx context.Context, arg GetAccessVoteParams) (AccessVote, error)

func (*Queries) GetAccountByEmail

func (q *Queries) GetAccountByEmail(ctx context.Context, email sql.NullString) (GetAccountByEmailRow, error)

hikyo:reason Local login resolves a canonical verified address only to an active principal, never as a federated linking key. hikyo:authn-resolution

func (*Queries) GetAccountByID

func (q *Queries) GetAccountByID(ctx context.Context, id string) (GetAccountByIDRow, error)

hikyo:authn-resolution

func (*Queries) GetAccountByPrincipal

func (q *Queries) GetAccountByPrincipal(ctx context.Context, principalID string) (GetAccountByPrincipalRow, error)

hikyo:authn-resolution

func (*Queries) GetAccountByUsername

func (q *Queries) GetAccountByUsername(ctx context.Context, username string) (GetAccountByUsernameRow, error)

hikyo:authn-resolution

func (*Queries) GetAccountByWebAuthnUserHandle

func (q *Queries) GetAccountByWebAuthnUserHandle(ctx context.Context, webauthnUserHandle []byte) (GetAccountByWebAuthnUserHandleRow, error)

WebAuthn / passkeys (#54, human-auth ADR -- WebAuthn relying-party policy, Passkey login). These read and write the credential, ceremony and user-handle rows that decide who a caller is and how strongly they authenticated: the resolution surface, proof-free, for the same reason the OIDC and factor writers are. Every write below is enumerated in lint.ResolutionSurfaceWriters. The discoverable-login resolver: an assertion carries only the opaque user handle, which resolves to exactly one account (partial UNIQUE index). hikyo:authn-resolution

func (*Queries) GetAccountProfile

func (q *Queries) GetAccountProfile(ctx context.Context, accountID string) (GetAccountProfileRow, error)

The authenticated account owns these fields. SCIM ownership is only a boolean projection, never disclosure of another organisation's provisioning data. hikyo:authn-resolution

func (*Queries) GetActiveMasterKeys

func (q *Queries) GetActiveMasterKeys(ctx context.Context) ([]MasterKey, error)

func (*Queries) GetActiveSAMLSPKey

func (q *Queries) GetActiveSAMLSPKey(ctx context.Context) (SamlSpKey, error)

hikyo:authn-resolution

func (*Queries) GetActiveTier3Key

func (q *Queries) GetActiveTier3Key(ctx context.Context, arg GetActiveTier3KeyParams) (Tier3Key, error)

func (*Queries) GetActiveTokenKeyForReceipt

func (q *Queries) GetActiveTokenKeyForReceipt(ctx context.Context) (Tier3Key, error)

func (*Queries) GetApprovalPolicy

func (q *Queries) GetApprovalPolicy(ctx context.Context, arg GetApprovalPolicyParams) (ApprovalPolicy, error)

func (*Queries) GetApprovalPolicyBypasser

func (q *Queries) GetApprovalPolicyBypasser(ctx context.Context, arg GetApprovalPolicyBypasserParams) (string, error)

GetApprovalPolicyBypasser reports whether one principal is a named bypasser of one policy. Absence is sql.ErrNoRows.

func (*Queries) GetApprovalPolicyForEnvironment

func (q *Queries) GetApprovalPolicyForEnvironment(ctx context.Context, arg GetApprovalPolicyForEnvironmentParams) (ApprovalPolicy, error)

GetApprovalPolicyForEnvironment is the coverage lookup. The service calls it with the concrete environment first, then with ” for the project-wide default: a concrete-environment policy beats the project-wide one. `enabled` is a bound parameter (always the true value) so the predicate analyzer sees a column-OP-param shape rather than a literal.

func (*Queries) GetApprovalRequest

func (q *Queries) GetApprovalRequest(ctx context.Context, arg GetApprovalRequestParams) (ApprovalRequest, error)

func (*Queries) GetApprovalVote

func (q *Queries) GetApprovalVote(ctx context.Context, arg GetApprovalVoteParams) (ApprovalVote, error)

GetApprovalVote returns one approver's existing vote on one request, so a repeated identical decision is idempotent and a conflicting one is refused.

func (*Queries) GetAuditRetentionPolicy

func (q *Queries) GetAuditRetentionPolicy(ctx context.Context) (GetAuditRetentionPolicyRow, error)

hikyo:instance-scoped

func (*Queries) GetBackupState

func (q *Queries) GetBackupState(ctx context.Context) (GetBackupStateRow, error)

backup_state is the single-row disaster-recovery health record (#145). Every statement here addresses no tenant: the row is instance operational state, so each query is annotated instance-scoped and content-pinned. hikyo:instance-scoped

func (*Queries) GetConfirmedTOTPForAccount

func (q *Queries) GetConfirmedTOTPForAccount(ctx context.Context, accountID string) (TotpCredential, error)

Factors (#54, human-auth ADR). TOTP, recovery codes and the session-rotation writers join the enumerated resolution surface for the same reason the login writers did: they mutate the artifacts that decide how strongly a caller authenticated, which is resolved rather than authorized. hikyo:authn-resolution

func (*Queries) GetCredentialAuthorityByID

func (q *Queries) GetCredentialAuthorityByID(ctx context.Context, id string) (CredentialAuthority, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) GetCredentialAuthorityByVerifier

func (q *Queries) GetCredentialAuthorityByVerifier(ctx context.Context, verifier []byte) (GetCredentialAuthorityByVerifierRow, error)

hikyo:authn-resolution

func (*Queries) GetCredentialEpoch

func (q *Queries) GetCredentialEpoch(ctx context.Context) (int64, error)

Human authentication (#47, human-auth ADR). These live in the resolution surface for the same reason chain resolution does: deciding WHO a caller is cannot run under a proof, because the proof is what the answer produces. The write paths below are enumerated and pinned; anything else that mutates inside this surface fails the sole-writer analyzer. hikyo:authn-resolution

func (*Queries) GetCredentialEstablish

func (q *Queries) GetCredentialEstablish(ctx context.Context, arg GetCredentialEstablishParams) (GetCredentialEstablishRow, error)

hikyo:reason Account-security credential creation reads only the acting session's purpose-bound establish stamp; service rechecks its principal, expiry and live no-local-proof precondition inside the write transaction. hikyo:authn-resolution

func (*Queries) GetCredentialPolicy

func (q *Queries) GetCredentialPolicy(ctx context.Context) (GetCredentialPolicyRow, error)

hikyo:authn-resolution

func (*Queries) GetDeliveryTargetReport

func (q *Queries) GetDeliveryTargetReport(ctx context.Context, arg GetDeliveryTargetReportParams) (DeliveryTargetReport, error)

Delivery-target condition reporting (#788, k8s-condition-reporting ADR).

func (*Queries) GetDeveloperCredentialPolicy

func (q *Queries) GetDeveloperCredentialPolicy(ctx context.Context) (int64, error)

hikyo:reason Mint and policy tightening serialize on this shared instance policy before changing delegation authority. hikyo:authn-resolution

func (*Queries) GetEnabledProviderByIssuer

func (q *Queries) GetEnabledProviderByIssuer(ctx context.Context, arg GetEnabledProviderByIssuerParams) (OidcProvider, error)

OIDC login/link/reauth resolution (#54, human-auth ADR -- The OIDC transaction). These read providers, transactions and external identities with request-supplied identifiers, and write the transaction/identity/session rows that decide who a caller is: the resolution surface, proof-free, for the same reason the login writers are. hikyo:authn-resolution

func (*Queries) GetEnabledProviderBySlug

func (q *Queries) GetEnabledProviderBySlug(ctx context.Context, slug string) (OidcProvider, error)

Start resolves the provider by slug for an enabled provider only: a login, link or reauth may only begin against a provider that is currently serving. hikyo:authn-resolution

func (*Queries) GetEnvironment

func (q *Queries) GetEnvironment(ctx context.Context, arg GetEnvironmentParams) (GetEnvironmentRow, error)

func (*Queries) GetEnvironmentParameters

func (q *Queries) GetEnvironmentParameters(ctx context.Context, arg GetEnvironmentParametersParams) (string, error)

func (*Queries) GetEnvironmentSettings

func (q *Queries) GetEnvironmentSettings(ctx context.Context, arg GetEnvironmentSettingsParams) (GetEnvironmentSettingsRow, error)

Protected-environment flag and per-environment reauthentication window (#55, permission-model ADR - The reveal guard). Both live under `project-settings`; a NULL window means "inherit the instance default".

func (*Queries) GetExternalIdentity

func (q *Queries) GetExternalIdentity(ctx context.Context, arg GetExternalIdentityParams) (ExternalIdentity, error)

hikyo:authn-resolution

func (*Queries) GetExternalIdentityByID

func (q *Queries) GetExternalIdentityByID(ctx context.Context, id string) (ExternalIdentity, error)

hikyo:authn-resolution

func (*Queries) GetFileTarget

func (q *Queries) GetFileTarget(ctx context.Context, arg GetFileTargetParams) (GetFileTargetRow, error)

func (*Queries) GetFolder

func (q *Queries) GetFolder(ctx context.Context, arg GetFolderParams) (Folder, error)

func (*Queries) GetInstanceConnection

func (q *Queries) GetInstanceConnection(ctx context.Context, id string) (GetInstanceConnectionRow, error)

hikyo:authn-resolution

func (*Queries) GetInstanceRegistrationPolicy

func (q *Queries) GetInstanceRegistrationPolicy(ctx context.Context) (RegistrationPolicy, error)

hikyo:authn-resolution

func (*Queries) GetKey

func (q *Queries) GetKey(ctx context.Context, arg GetKeyParams) (Key, error)

func (*Queries) GetKeyGroup

func (q *Queries) GetKeyGroup(ctx context.Context, arg GetKeyGroupParams) (KeyGroup, error)

func (*Queries) GetKeyInProject

func (q *Queries) GetKeyInProject(ctx context.Context, arg GetKeyInProjectParams) (Key, error)

GetKeyInProject resolves one key by id under the key.list authorization (StoreCatalogueList), so the MCP pending-change page can attach a page-bounded key name and classification without a JOIN or a whole-catalogue read.

func (*Queries) GetLastPruneSuccess

func (q *Queries) GetLastPruneSuccess(ctx context.Context) (sql.NullString, error)

hikyo:instance-scoped

func (*Queries) GetLatestAppliedPlan

func (q *Queries) GetLatestAppliedPlan(ctx context.Context, arg GetLatestAppliedPlanParams) (DefinitionsPlan, error)

GetLatestAppliedPlan is the last-applied provenance record the settings view reads: the most recently applied plan for the project, or no row when none has ever been applied.

func (*Queries) GetLatestSelfConfigTopology

func (q *Queries) GetLatestSelfConfigTopology(ctx context.Context) (string, error)

hikyo:instance-scoped

func (*Queries) GetLatestSnapshot

func (q *Queries) GetLatestSnapshot(ctx context.Context, arg GetLatestSnapshotParams) (Snapshot, error)

GetLatestSnapshot is the delivery-shaped read: a workload fetch defaults to the latest published snapshot for its (project, environment).

func (*Queries) GetLoginChallengeByID

func (q *Queries) GetLoginChallengeByID(ctx context.Context, id string) (LoginChallenge, error)

hikyo:authn-resolution

func (*Queries) GetOAuth2ProviderBySlug

func (q *Queries) GetOAuth2ProviderBySlug(ctx context.Context, slug string) (Oauth2Provider, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) GetOAuth2ProviderForCallback

func (q *Queries) GetOAuth2ProviderForCallback(ctx context.Context, id string) (Oauth2Provider, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) GetOAuth2TransactionByState

func (q *Queries) GetOAuth2TransactionByState(ctx context.Context, stateVerifier []byte) (Oauth2Transaction, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) GetOIDCProviderBySlug

func (q *Queries) GetOIDCProviderBySlug(ctx context.Context, slug string) (OidcProvider, error)

hikyo:authn-resolution

func (*Queries) GetOIDCTransactionByState

func (q *Queries) GetOIDCTransactionByState(ctx context.Context, stateVerifier []byte) (GetOIDCTransactionByStateRow, error)

hikyo:authn-resolution

func (*Queries) GetOpsDiagnostics

func (q *Queries) GetOpsDiagnostics(ctx context.Context, arg GetOpsDiagnosticsParams) (GetOpsDiagnosticsRow, error)

Public instance-wide aggregate metadata. No tenant identities or key blobs. hikyo:instance-scoped

func (*Queries) GetOrg

func (q *Queries) GetOrg(ctx context.Context, id string) (GetOrgRow, error)

func (*Queries) GetOrgEmailInvitationByVerifier

func (q *Queries) GetOrgEmailInvitationByVerifier(ctx context.Context, tokenVerifier []byte) (OrgEmailInvitation, error)

hikyo:reason Preview and acceptance resolve an opaque single-use bearer verifier for the caller's own session before any org authority exists. hikyo:authn-resolution

func (*Queries) GetOrgEmailInvitationInOrg

func (q *Queries) GetOrgEmailInvitationInOrg(ctx context.Context, arg GetOrgEmailInvitationInOrgParams) (OrgEmailInvitation, error)

hikyo:reason Revocation reads the addressed org's own row after authorizing manage-members at that org. hikyo:authn-resolution

func (*Queries) GetOrgIdentity

func (q *Queries) GetOrgIdentity(ctx context.Context, id string) (GetOrgIdentityRow, error)

The org rail's identity lookup (#56). The caller's own org set is projected from their own grant rows, so there is no scope to authorize against and no proof to bind: the projection IS the authorization, and it can name only organisations the caller already holds a grant in. Identity only - an org's metadata and active flag are operator-set state and are read through the proof-gated GetOrg.

Not annotated, and it does not need to be: orgs is class=org chain=id, and the id equality is that chain as a top-level conjunct.

func (*Queries) GetOrgIdentityImage

func (q *Queries) GetOrgIdentityImage(ctx context.Context, id string) (GetOrgIdentityImageRow, error)

The org chrome image is read for the navigation rail, so it rides the same proof-free path as GetOrgIdentity: the caller proves visibility by finding the org in OrgsForPrincipal or by holding org.get. Same chain shape.

func (*Queries) GetOrgRegistrationPolicy

func (q *Queries) GetOrgRegistrationPolicy(ctx context.Context, orgID sql.NullString) (RegistrationPolicy, error)

Registration policy (#606, social-signin spec section 2.1). The policy tables are class=authn: the policy decides whether an unknown identity may become an account, and the sign-up legs that read it (#607, #608) run before any principal exists, so every statement rides the proof-free, enumerated authn resolution surface. Administration is authorized at the chokepoint (registration-policy.*) before any writer here runs, exactly like provider administration. hikyo:authn-resolution

func (*Queries) GetPasswordCredential

func (q *Queries) GetPasswordCredential(ctx context.Context, accountID string) (PasswordCredential, error)

hikyo:authn-resolution

func (*Queries) GetPendingTOTPForAccount

func (q *Queries) GetPendingTOTPForAccount(ctx context.Context, accountID string) (TotpCredential, error)

hikyo:authn-resolution

func (*Queries) GetPersonalValueForOwner

func (*Queries) GetPinGeneration

func (q *Queries) GetPinGeneration(ctx context.Context, arg GetPinGenerationParams) (int64, error)

The pin generation the conditional cursor is bound to. An ABSENT row is generation 0 -- the truthful "this principal has never had a pin here" -- so the read tolerates no row rather than the caller materialising one. hikyo:authn-resolution

func (*Queries) GetPlan

func (q *Queries) GetPlan(ctx context.Context, arg GetPlanParams) (DefinitionsPlan, error)

func (*Queries) GetPrincipalClass

func (q *Queries) GetPrincipalClass(ctx context.Context, id string) (GetPrincipalClassRow, error)

The machine allowlists key on the principal's class; kind discriminates human from machine. An unclassified machine principal fails closed in Go. hikyo:authn-resolution

func (*Queries) GetPrincipalGeneration

func (q *Queries) GetPrincipalGeneration(ctx context.Context, id string) (int64, error)

hikyo:authn-resolution

func (*Queries) GetPrincipalKind

func (q *Queries) GetPrincipalKind(ctx context.Context, id string) (string, error)

The denial writer's actor-class lookup (#45, audit-model ADR amendment part 4): the flush transaction resolves the denied principal's kind for the event's actor class. Runs only inside authn.WriteDenial. hikyo:authn-resolution

func (*Queries) GetProject

func (q *Queries) GetProject(ctx context.Context, arg GetProjectParams) (GetProjectRow, error)

Keep ordinary metadata reads compatible with pre-capacity recovery schemas. Capacity policy is read through its separate proof-gated query below.

func (*Queries) GetProjectCapacity

func (q *Queries) GetProjectCapacity(ctx context.Context, arg GetProjectCapacityParams) (GetProjectCapacityRow, error)

func (*Queries) GetProjectIdentityImage

func (q *Queries) GetProjectIdentityImage(ctx context.Context, arg GetProjectIdentityImageParams) (GetProjectIdentityImageRow, error)

func (*Queries) GetProjectSchemaRevision

func (q *Queries) GetProjectSchemaRevision(ctx context.Context, arg GetProjectSchemaRevisionParams) (int64, error)

func (*Queries) GetProviderForCallback

func (q *Queries) GetProviderForCallback(ctx context.Context, id string) (OidcProvider, error)

The recorded provider a callback exchanges at (A11): loaded by the id the transaction pinned, so the exchange happens only at that provider. hikyo:authn-resolution

func (*Queries) GetReauthWindow

func (q *Queries) GetReauthWindow(ctx context.Context, arg GetReauthWindowParams) (ReauthWindow, error)

Reauth-window consumption at disclosure (#54, human-auth ADR - Reauthentication). A disclosure on environment E requires a live window for (session, E). These read the window, slide its sliding clock (never past the hard cap the service enforces), and claim a single_decision window exactly once via the consumed_at NULL guard. There is no reveal operation to call these yet (#50/#58); they ship as the library those verticals consume, exercised directly by fixtures. hikyo:authn-resolution

func (*Queries) GetRecoveryCodes

func (q *Queries) GetRecoveryCodes(ctx context.Context, accountID string) (RecoveryCode, error)

hikyo:authn-resolution

func (*Queries) GetRegistrationSignupByEmail

func (q *Queries) GetRegistrationSignupByEmail(ctx context.Context, email string) (RegistrationSignup, error)

hikyo:reason The admitted signup request resolves its canonical address to one pending signup row before issuing mail. hikyo:authn-resolution

func (*Queries) GetRegistrationSignupByVerifier

func (q *Queries) GetRegistrationSignupByVerifier(ctx context.Context, tokenVerifier []byte) (RegistrationSignup, error)

hikyo:reason The signup ceremony resolves an opaque bearer verifier without exposing the pending row to authenticated callers. hikyo:authn-resolution

func (*Queries) GetRemote

func (q *Queries) GetRemote(ctx context.Context, id string) (GetRemoteRow, error)

hikyo:instance-scoped

func (*Queries) GetRemoteByName

func (q *Queries) GetRemoteByName(ctx context.Context, name string) (GetRemoteByNameRow, error)

hikyo:instance-scoped

func (*Queries) GetRemoteSnapshot

func (q *Queries) GetRemoteSnapshot(ctx context.Context, remoteID string) (RemoteSnapshot, error)

hikyo:instance-scoped

func (*Queries) GetRestoreState

func (q *Queries) GetRestoreState(ctx context.Context) (GetRestoreStateRow, error)

Restore reconciliation (#76, ops spec section 11). All four run under local host authority: after a restore every session is dead and every grant inert, so there is no principal who could authorize a network call to undo that. hikyo:authn-resolution

func (*Queries) GetRevisionPinForWorkload

func (q *Queries) GetRevisionPinForWorkload(ctx context.Context, arg GetRevisionPinForWorkloadParams) (RevisionPin, error)

func (*Queries) GetRule

func (q *Queries) GetRule(ctx context.Context, id string) ([]GetRuleRow, error)

One rule with its items, ungated: revocation and pruning act on the stored row whatever state its principal is in. hikyo:authn-resolution

func (*Queries) GetSAMLProviderBySlug

func (q *Queries) GetSAMLProviderBySlug(ctx context.Context, slug string) (SamlProvider, error)

hikyo:authn-resolution

func (*Queries) GetSAMLProviderForCallback

func (q *Queries) GetSAMLProviderForCallback(ctx context.Context, id string) (SamlProvider, error)

hikyo:authn-resolution

func (*Queries) GetSAMLTransactionByRelayState

func (q *Queries) GetSAMLTransactionByRelayState(ctx context.Context, relayStateVerifier []byte) (SamlTransaction, error)

RelayState is the pre-validation lookup key: it resolves the expected request/provider before the signed response is parsed and validated once. hikyo:authn-resolution

func (*Queries) GetSCIMBinding

func (q *Queries) GetSCIMBinding(ctx context.Context, arg GetSCIMBindingParams) (ScimBinding, error)

func (*Queries) GetSCIMCredential

func (q *Queries) GetSCIMCredential(ctx context.Context, arg GetSCIMCredentialParams) (GetSCIMCredentialRow, error)

hikyo:authn-resolution

func (*Queries) GetSCIMCredentialByVerifier

func (q *Queries) GetSCIMCredentialByVerifier(ctx context.Context, verifier []byte) (ScimCredential, error)

Presentation resolves the verifier, never anything inside the value: kind, binding, expiry and epoch are read from the row (machine-identities ADR). hikyo:authn-resolution

func (*Queries) GetSCIMGroup

func (q *Queries) GetSCIMGroup(ctx context.Context, arg GetSCIMGroupParams) (ScimGroup, error)

func (*Queries) GetSCIMMapping

func (q *Queries) GetSCIMMapping(ctx context.Context, arg GetSCIMMappingParams) (ScimMapping, error)

func (*Queries) GetSCIMUser

func (q *Queries) GetSCIMUser(ctx context.Context, arg GetSCIMUserParams) (ScimUser, error)

func (*Queries) GetSCIMUserByAccount

func (q *Queries) GetSCIMUserByAccount(ctx context.Context, arg GetSCIMUserByAccountParams) (ScimUser, error)

func (*Queries) GetSCIMUserBySubject

func (q *Queries) GetSCIMUserBySubject(ctx context.Context, arg GetSCIMUserBySubjectParams) (ScimUser, error)

func (*Queries) GetSCIMUserByUserName

func (q *Queries) GetSCIMUserByUserName(ctx context.Context, arg GetSCIMUserByUserNameParams) (ScimUser, error)

The RFC 7643 caseExact:false lookup: userName compares case-insensitively, which is why the folded column exists rather than a LOWER() in the predicate.

func (*Queries) GetScanningDismissal

func (q *Queries) GetScanningDismissal(ctx context.Context, arg GetScanningDismissalParams) (string, error)

GetScanningDismissal is the sticky-match lookup: a row for this exact (env, key, rule digest, fingerprint) means the value was accepted as-is and the warn must not re-fire. The WHERE names the full UNIQUE tuple, so at most one row matches: no LIMIT needed, and a nested SELECT EXISTS is rejected by the predicate analyzer anyway. Absence is sql.ErrNoRows.

func (*Queries) GetSelfConfigBinding

func (q *Queries) GetSelfConfigBinding(ctx context.Context) (SelfConfigBinding, error)

Every query is singleton owner-local metadata; no secret material lives here. hikyo:instance-scoped

func (*Queries) GetSelfConfigClock

func (q *Queries) GetSelfConfigClock(ctx context.Context) (string, error)

hikyo:instance-scoped

func (*Queries) GetSelfConfigJob

func (q *Queries) GetSelfConfigJob(ctx context.Context, id string) (SelfConfigJob, error)

hikyo:instance-scoped

func (*Queries) GetSelfConfigJobByKey

func (q *Queries) GetSelfConfigJobByKey(ctx context.Context, idempotencyKey string) (SelfConfigJob, error)

hikyo:instance-scoped

func (*Queries) GetSelfConfigPreviousRevision

func (q *Queries) GetSelfConfigPreviousRevision(ctx context.Context) (int64, error)

hikyo:instance-scoped

func (*Queries) GetSelfConfigRollout

func (q *Queries) GetSelfConfigRollout(ctx context.Context, jobID string) (SelfConfigRollout, error)

hikyo:instance-scoped

func (*Queries) GetServiceAccount

func (q *Queries) GetServiceAccount(ctx context.Context, arg GetServiceAccountParams) (ServiceAccount, error)

The management read. It carries the full chain in its predicate even though the annotation exempts it: a caller authorized for one project must not be able to address another project's service account by id. hikyo:authn-resolution

func (*Queries) GetServiceAccountByID

func (q *Queries) GetServiceAccountByID(ctx context.Context, id string) (ServiceAccount, error)

The authentication read. It resolves BY ID with no chain predicate, which is the one place that is correct: the id came from the credential row the presented verifier resolved to, not from a caller. hikyo:authn-resolution

func (*Queries) GetServiceAccountByPrincipal

func (q *Queries) GetServiceAccountByPrincipal(ctx context.Context, principalID string) (ServiceAccount, error)

The OWNING project of a machine principal, read from the row that records it rather than inferred from the grants it already holds. A freshly created service account holds none, so an inference has nothing to say and would let its FIRST grant name any project in any org. hikyo:authn-resolution

func (*Queries) GetSessionByID

func (q *Queries) GetSessionByID(ctx context.Context, id string) (GetSessionByIDRow, error)

hikyo:authn-resolution

func (*Queries) GetSessionByVerifier

func (q *Queries) GetSessionByVerifier(ctx context.Context, verifier []byte) (GetSessionByVerifierRow, error)

hikyo:authn-resolution

func (*Queries) GetSnapshotByRevision

func (q *Queries) GetSnapshotByRevision(ctx context.Context, arg GetSnapshotByRevisionParams) (Snapshot, error)

func (*Queries) GetSnapshotParameterContract

func (q *Queries) GetSnapshotParameterContract(ctx context.Context, arg GetSnapshotParameterContractParams) (string, error)

func (*Queries) GetTier3Versions

func (q *Queries) GetTier3Versions(ctx context.Context, arg GetTier3VersionsParams) ([]Tier3Key, error)

GetTier3Versions returns every still-openable version of one scope's key -- the 'active' version new writes use plus every 'retiring' version whose ciphertext a reencrypt has not yet moved. 'retired' rows are excluded: a version reaches that state only when zero ciphertexts reference it, so loading it would unwrap key material nothing can open. Newest version first.

func (*Queries) GetValueEntry

func (q *Queries) GetValueEntry(ctx context.Context, arg GetValueEntryParams) (ValueEntry, error)

The flat value model (#50). Tenant-scoped statements: the reserved chain_* parameters are bound by the store's binding layer from proof fields only - never from caller arguments; the SQL predicate analyzer enforces the conjunct shape.

`environment_id` is an ordinary column here rather than a chain column (see the migration): every environment-addressed statement below still binds it from the proof's resolved chain, and the two project-scoped statements at the bottom are the ones that must span environments.

There is no UPDATE. A value write is delete-then-insert with a FRESH row id, because the row id is bound into the ciphertext's AAD and an id bound into an AAD is immutable and never reused (encryption-model ADR).

func (*Queries) GetWebAuthnCeremonyByChallenge

func (q *Queries) GetWebAuthnCeremonyByChallenge(ctx context.Context, challengeVerifier []byte) (WebauthnCeremony, error)

hikyo:authn-resolution

func (*Queries) GetWebAuthnCeremonyByID

func (q *Queries) GetWebAuthnCeremonyByID(ctx context.Context, id string) (WebauthnCeremony, error)

Resolve a ceremony by id for single-decision reauth-window consumption (#54): the window row carries only ceremony_id, so the enumerated-unit binding the ceremony pinned is read here and matched byte-exact against the disclosure unit. hikyo:authn-resolution

func (*Queries) GetWebAuthnCredentialByCredentialID

func (q *Queries) GetWebAuthnCredentialByCredentialID(ctx context.Context, credentialID []byte) (WebauthnCredential, error)

The assertion resolver: the authenticator-chosen credential id maps to one row. hikyo:authn-resolution

func (*Queries) GetWebAuthnCredentialByID

func (q *Queries) GetWebAuthnCredentialByID(ctx context.Context, id string) (WebauthnCredential, error)

hikyo:authn-resolution

func (*Queries) GetWebAuthnUserHandle

func (q *Queries) GetWebAuthnUserHandle(ctx context.Context, id string) ([]byte, error)

hikyo:authn-resolution

func (*Queries) GetWorkspaceOrigin

func (q *Queries) GetWorkspaceOrigin(ctx context.Context, origin string) (WorkspaceOrigin, error)

Exact match, no wildcards and no subdomain logic: the primary key IS the origin string, so an inexact entry is unrepresentable rather than merely discouraged. This is the read CORS and handoff issuance both consult. hikyo:authn-resolution

func (*Queries) GrantAccessRequest

func (q *Queries) GrantAccessRequest(ctx context.Context, arg GrantAccessRequestParams) (int64, error)

GrantAccessRequest moves an OPEN request to granted with its absolute expiry. The state guard (always 'open', bound as a parameter so the predicate analyzer sees a column-OP-param shape) makes a racing decision lose rather than grant twice.

func (*Queries) GuardOAuth2ProviderForMint

func (q *Queries) GuardOAuth2ProviderForMint(ctx context.Context, arg GuardOAuth2ProviderForMintParams) (int64, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) GuardOIDCProviderForMint

func (q *Queries) GuardOIDCProviderForMint(ctx context.Context, arg GuardOIDCProviderForMintParams) (int64, error)

A phase-C mint (login/link/reauth) guards the pinned provider row against a concurrent reconfigure: a no-op CAS that takes the row lock. 0 rows affected means the provider was disabled, deleted, re-issued or row_version-bumped since Phase A, so the mint must refuse (the A4 sweep always wins the TOCTOU). A matching row takes the lock, so a concurrent provider-change UPDATE serializes behind it (and vice-versa: whichever commits first, the other's guard sees the bumped row_version and fails). The no-op never bumps row_version, so it never spuriously fails an administrator's reconfigure CAS. hikyo:authn-resolution

func (*Queries) GuardSAMLProviderForMint

func (q *Queries) GuardSAMLProviderForMint(ctx context.Context, arg GuardSAMLProviderForMintParams) (int64, error)

hikyo:authn-resolution

func (*Queries) GuardSingletonLease

func (q *Queries) GuardSingletonLease(ctx context.Context, arg GuardSingletonLeaseParams) (int64, error)

Installation-wide coordination. These tables carry no tenant chain. hikyo:reason Installation singleton leader fencing. Coordination admitted datastore transaction; no tenant row or tenant payload; preserves exact owner/name/fence and expiry predicates. GuardSingletonLease is root-owned scheduler transaction admission and retains database/process clocks. hikyo:instance-scoped

func (*Queries) HoldRestoredPKIIssuers

func (q *Queries) HoldRestoredPKIIssuers(ctx context.Context) error

A restore can resurrect certificates revoked after the backup was taken, so every restored CA issuer is held (no fresh certificate or CRL signing) until an operator reconciles revocations and releases the hold with `hikyo pki issuer release-hold` (#154, pki ADR D8). Existing CRLs remain readable. hikyo:authn-resolution

func (*Queries) InsertAccessGrant

func (q *Queries) InsertAccessGrant(ctx context.Context, arg InsertAccessGrantParams) error

Approval-mediated temporary access (#152). The time-bound grant rows are on the resolution surface for the same reason `grants` is: authorize() reads them. The writers take the principal-row lock like every grant writer. hikyo:authn-resolution

func (*Queries) InsertAccessPolicy

func (q *Queries) InsertAccessPolicy(ctx context.Context, arg InsertAccessPolicyParams) error

Approval-mediated temporary access (#152). ASCII ONLY: sqlc's sqlite path silently mis-slices statements containing non-ASCII.

Tenant-scoped statements bind org_id and project_id from the proof's resolved chain, never from caller arguments; environment_id is bound from the proof on the environment-addressed statements. Every statement is single-table so the predicate analyzer can prove tenant scoping; the installation-wide sweep and metric statements carry the instance-scoped annotation and are content-pinned instead.

No statement here updates a request's capabilities, duration, reason or pinned policy version: a request cannot expand once written.

func (*Queries) InsertAccessPolicyApprover

func (q *Queries) InsertAccessPolicyApprover(ctx context.Context, arg InsertAccessPolicyApproverParams) error

func (*Queries) InsertAccessPolicyBypasser

func (q *Queries) InsertAccessPolicyBypasser(ctx context.Context, arg InsertAccessPolicyBypasserParams) error

func (*Queries) InsertAccessRequest

func (q *Queries) InsertAccessRequest(ctx context.Context, arg InsertAccessRequestParams) error

func (*Queries) InsertAccessVote

func (q *Queries) InsertAccessVote(ctx context.Context, arg InsertAccessVoteParams) error

func (*Queries) InsertAccount

func (q *Queries) InsertAccount(ctx context.Context, arg InsertAccountParams) error

hikyo:authn-resolution

func (*Queries) InsertApprovalPolicy

func (q *Queries) InsertApprovalPolicy(ctx context.Context, arg InsertApprovalPolicyParams) error

Secret-change approvals (#151). ASCII ONLY: sqlc's sqlite path silently mis-slices statements containing non-ASCII.

Tenant-scoped statements bind org_id and project_id from the proof's resolved chain, never from caller arguments; environment_id is bound from the proof on the environment-addressed statements. Policy, request and vote identity and the vote decision are caller data. Every statement is single-table so the predicate analyzer (analyzer 2) can prove tenant scoping; the two installation-wide sweep statements carry the instance-scoped annotation and are content-pinned instead.

func (*Queries) InsertApprovalPolicyApprover

func (q *Queries) InsertApprovalPolicyApprover(ctx context.Context, arg InsertApprovalPolicyApproverParams) error

func (*Queries) InsertApprovalPolicyBypasser

func (q *Queries) InsertApprovalPolicyBypasser(ctx context.Context, arg InsertApprovalPolicyBypasserParams) error

func (*Queries) InsertApprovalRequest

func (q *Queries) InsertApprovalRequest(ctx context.Context, arg InsertApprovalRequestParams) error

func (*Queries) InsertApprovalVote

func (q *Queries) InsertApprovalVote(ctx context.Context, arg InsertApprovalVoteParams) error

func (*Queries) InsertCLILogin

func (q *Queries) InsertCLILogin(ctx context.Context, arg InsertCLILoginParams) error

hikyo:reason pre-authentication login transport owns its state and code verifiers before a caller exists hikyo:authn-resolution

func (*Queries) InsertCLIReauthHandoff

func (q *Queries) InsertCLIReauthHandoff(ctx context.Context, arg InsertCLIReauthHandoffParams) error

hikyo:authn-resolution

func (*Queries) InsertCredentialAuthority

func (q *Queries) InsertCredentialAuthority(ctx context.Context, arg InsertCredentialAuthorityParams) error

hikyo:authn-resolution

func (*Queries) InsertDeliveryTargetQuotaNotice

func (q *Queries) InsertDeliveryTargetQuotaNotice(ctx context.Context, arg InsertDeliveryTargetQuotaNoticeParams) error

func (*Queries) InsertDeliveryTargetReport

func (q *Queries) InsertDeliveryTargetReport(ctx context.Context, arg InsertDeliveryTargetReportParams) error

func (*Queries) InsertDeveloperCredential

func (q *Queries) InsertDeveloperCredential(ctx context.Context, arg InsertDeveloperCredentialParams) error

hikyo:reason Mint authenticated human delegation only after exact scope-bound reauthentication and tenant authorization in this transaction. hikyo:authn-resolution

func (*Queries) InsertExternalIdentity

func (q *Queries) InsertExternalIdentity(ctx context.Context, arg InsertExternalIdentityParams) error

hikyo:authn-resolution

func (*Queries) InsertFederationIssuer

func (q *Queries) InsertFederationIssuer(ctx context.Context, arg InsertFederationIssuerParams) error

OIDC federation (#62, machine-identities ADR section Federation). Issuer configuration is instance-scoped; a federated binding is a row of machine_credentials under the credential-kind discriminator, so its statements live beside the credential ones on the resolution surface for the same reason: a machine credential resolves at the chokepoint that mints the proof, so it cannot be read from behind one. ASCII only: multibyte characters shift sqlite statement offsets. hikyo:authn-resolution

func (*Queries) InsertFileTarget

func (q *Queries) InsertFileTarget(ctx context.Context, arg InsertFileTargetParams) error

Generic file synchronization (#164): file targets and their key selection.

func (*Queries) InsertFileTargetKey

func (q *Queries) InsertFileTargetKey(ctx context.Context, arg InsertFileTargetKeyParams) error

func (*Queries) InsertGrant

func (q *Queries) InsertGrant(ctx context.Context, arg InsertGrantParams) error

hikyo:authn-resolution

func (*Queries) InsertGrantOrigin

func (q *Queries) InsertGrantOrigin(ctx context.Context, arg InsertGrantOriginParams) error

hikyo:authn-resolution

func (*Queries) InsertInstanceAuditEvent

func (q *Queries) InsertInstanceAuditEvent(ctx context.Context, arg InsertInstanceAuditEventParams) error

func (*Queries) InsertKeyGeneration

func (q *Queries) InsertKeyGeneration(ctx context.Context, scope string) error

func (*Queries) InsertKeyPersonalRequired

func (q *Queries) InsertKeyPersonalRequired(ctx context.Context, arg InsertKeyPersonalRequiredParams) error

func (*Queries) InsertKeyPresence

func (q *Queries) InsertKeyPresence(ctx context.Context, arg InsertKeyPresenceParams) error

func (*Queries) InsertLoginChallenge

func (q *Queries) InsertLoginChallenge(ctx context.Context, arg InsertLoginChallengeParams) error

hikyo:authn-resolution

func (*Queries) InsertMachineCredential

func (q *Queries) InsertMachineCredential(ctx context.Context, arg InsertMachineCredentialParams) error

The mint. It writes BOTH credential kinds: the binding columns are NULL for a bearer credential and the verifier/prefix columns are NULL for a federated binding, and the table's two shape CHECKs make each pairing total, so one statement cannot produce a half-shaped row of either kind. hikyo:authn-resolution

func (*Queries) InsertMachinePrincipal

func (q *Queries) InsertMachinePrincipal(ctx context.Context, arg InsertMachinePrincipalParams) error

Born reconciled to the current restore epoch, for the reason InsertPrincipal states (#76). hikyo:authn-resolution

func (*Queries) InsertMasterKey

func (q *Queries) InsertMasterKey(ctx context.Context, arg InsertMasterKeyParams) error

func (*Queries) InsertOAuth2Transaction

func (q *Queries) InsertOAuth2Transaction(ctx context.Context, arg InsertOAuth2TransactionParams) error

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) InsertOIDCTransaction

func (q *Queries) InsertOIDCTransaction(ctx context.Context, arg InsertOIDCTransactionParams) error

hikyo:authn-resolution

func (*Queries) InsertPasswordCredential

func (q *Queries) InsertPasswordCredential(ctx context.Context, arg InsertPasswordCredentialParams) error

hikyo:authn-resolution

func (*Queries) InsertPendingChange

func (q *Queries) InsertPendingChange(ctx context.Context, arg InsertPendingChangeParams) error

Revisions, drafts and publishing (#51). Tenant-scoped statements: the reserved chain parameters are bound by the store's binding layer from proof fields only - never from caller arguments; the SQL predicate analyzer enforces the conjunct shape.

`environment_id` is an ordinary column on all four tables (see the migration), and every environment-addressed statement below binds it from the proof's resolved chain. The project-scoped statements are the ones that must span environments: publish reads the publisher's whole working state across the project before it knows which environments it touches, the matrix signals are a project-wide question, and a key delete cascades across every environment at once.

func (*Queries) InsertPersonalValue

func (q *Queries) InsertPersonalValue(ctx context.Context, arg InsertPersonalValueParams) error

Personal values (#1235, personal-values ADR). Tenant-scoped statements: the reserved chain_* parameters are bound by the store's binding layer from proof fields only, and owner_principal_id on the owner's own statements is bound from the proof's authorized principal, never from a caller argument. There is no statement that returns another principal's ciphertext: the only ciphertext reads are keyed on the owner, and the holder reads return metadata only.

func (*Queries) InsertPersonalValueNotice

func (q *Queries) InsertPersonalValueNotice(ctx context.Context, arg InsertPersonalValueNoticeParams) error

func (*Queries) InsertPrincipal

func (q *Queries) InsertPrincipal(ctx context.Context, arg InsertPrincipalParams) error

Enumerated writers. A principal is born reconciled to the CURRENT restore epoch (#76): it postdates the restore, so there is nothing about it to reconcile, and a literal default of zero would make every principal created after a restore inert until somebody reconciled a principal that never existed before it. hikyo:authn-resolution

func (*Queries) InsertProjectSchemaRevision

func (q *Queries) InsertProjectSchemaRevision(ctx context.Context, arg InsertProjectSchemaRevisionParams) error

InsertProjectSchemaRevision runs inside projects.Create, where the project id is the row being created rather than an address the proof resolved - the same position `CreateProject`'s own `id` is in. The org half IS proof-bound. A new project starts at revision 0, written literally so there is no parameter a caller could set it through.

func (*Queries) InsertReauthWindow

func (q *Queries) InsertReauthWindow(ctx context.Context, arg InsertReauthWindowParams) error

A FRESH CEREMONY SUPERSEDES THE PAIR'S PREVIOUS WINDOW (#58).

The table holds AT MOST ONE window per (session, environment) and that invariant is unchanged; what changes is that a fresh ceremony REPLACES the pair's row instead of colliding with it. Without this the unique constraint quietly meant "one window EVER per session and environment", which breaks the reveal guard's own headline case: a protected environment is capped at 0, so its disclosures are "a passkey ceremony per disclosure" (ceremony, disclose, ceremony again) and the second ceremony hit the first window's spent row. The same fault bit every opener, including a workspace step-up (#71) repeated on one environment, so the fix is shared by all of them.

It is ONE atomic statement rather than a delete followed by an insert, because two tabs finishing ceremonies at the same time are a real shape: on postgres both deletes can miss the other transaction's not-yet-visible row and the second insert then hits the unique constraint, turning a legitimate supersede into an intermittent failure. `ON CONFLICT DO UPDATE` makes the loser update instead of fail.

consumed_at resets to NULL because the row now describes the NEW ceremony, which nothing has spent. bound_operation and bound_key_set (#71) carry a workspace step-up's exact-consent binding; the human openers write NULLs. hikyo:authn-resolution

func (*Queries) InsertRecoveryCodes

func (q *Queries) InsertRecoveryCodes(ctx context.Context, arg InsertRecoveryCodesParams) error

hikyo:authn-resolution

func (*Queries) InsertRegistrationPolicy

func (q *Queries) InsertRegistrationPolicy(ctx context.Context, arg InsertRegistrationPolicyParams) error

hikyo:authn-resolution

func (*Queries) InsertRegistrationPolicyDomain

func (q *Queries) InsertRegistrationPolicyDomain(ctx context.Context, arg InsertRegistrationPolicyDomainParams) error

hikyo:authn-resolution

func (*Queries) InsertRegistrationPolicyEntry

func (q *Queries) InsertRegistrationPolicyEntry(ctx context.Context, arg InsertRegistrationPolicyEntryParams) error

hikyo:authn-resolution

func (*Queries) InsertRegistrationPolicyEntryValue

func (q *Queries) InsertRegistrationPolicyEntryValue(ctx context.Context, arg InsertRegistrationPolicyEntryValueParams) error

hikyo:authn-resolution

func (*Queries) InsertRegistrationSignup

func (q *Queries) InsertRegistrationSignup(ctx context.Context, arg InsertRegistrationSignupParams) error

Pending local sign-ups (#584). The request writer lands with #608; the policy delete below already has to clear them (spec section 4). hikyo:authn-resolution

func (*Queries) InsertRevisionKeyChange

func (q *Queries) InsertRevisionKeyChange(ctx context.Context, arg InsertRevisionKeyChangeParams) error

func (*Queries) InsertRevisionPin

func (q *Queries) InsertRevisionPin(ctx context.Context, arg InsertRevisionPinParams) error

func (*Queries) InsertRule

func (q *Queries) InsertRule(ctx context.Context, arg InsertRuleParams) error

hikyo:authn-resolution

func (*Queries) InsertRuleItem

func (q *Queries) InsertRuleItem(ctx context.Context, arg InsertRuleItemParams) error

hikyo:authn-resolution

func (*Queries) InsertSAMLProvider

func (q *Queries) InsertSAMLProvider(ctx context.Context, arg InsertSAMLProviderParams) error

SAML SP resolution and lifecycle (#72, saml-sp ADR). These rows decide who a caller is and how strongly they authenticated, so they live on the same proof-free, enumerated authn resolution surface as OIDC. hikyo:authn-resolution

func (*Queries) InsertSAMLReplay

func (q *Queries) InsertSAMLReplay(ctx context.Context, arg InsertSAMLReplayParams) (int64, error)

ON CONFLICT is the atomic replay claim: exactly one concurrent presentation inserts, all others observe zero affected rows. hikyo:authn-resolution

func (*Queries) InsertSAMLSPKey

func (q *Queries) InsertSAMLSPKey(ctx context.Context, arg InsertSAMLSPKeyParams) error

hikyo:authn-resolution

func (*Queries) InsertSAMLTransaction

func (q *Queries) InsertSAMLTransaction(ctx context.Context, arg InsertSAMLTransactionParams) error

hikyo:authn-resolution

func (*Queries) InsertSCIMCredential

func (q *Queries) InsertSCIMCredential(ctx context.Context, arg InsertSCIMCredentialParams) error

SCIM provisioning, authentication-resolution half (#73).

Two kinds of statement live here and both belong on the enumerated resolution surface rather than the proof-carrying repository surface:

  1. `scim_credentials` is what AUTHENTICATES a SCIM wire request. It is resolved before any operation is authorized - there is no proof yet to bind it to, exactly as `sessions` is. Its administration (mint, list, revoke) runs AFTER the ordinary `manage-members(org)` gate, following the OIDC/SAML provider-administration precedent where the operation registry owns the gate and the storage rides here.
  2. the grant-origin reads the release algorithm needs. `grants` and `grant_origins` are already this surface (authorize() reads them to mint a proof), so a SCIM-side origin release is the same class of write a human revoke is.

Every query is annotated and content-pinned. ASCII only: multibyte characters shift sqlite statement offsets. hikyo:authn-resolution

func (*Queries) InsertScanningDismissal

func (q *Queries) InsertScanningDismissal(ctx context.Context, arg InsertScanningDismissalParams) error

Secret-scanning dismissal rows (#74, secret-scanning ADR section 4). ASCII ONLY: sqlc's sqlite path silently mis-slices statements containing non-ASCII.

Tenant-scoped statements bind org_id and project_id from the proof's resolved chain, never from caller arguments; environment_id is bound from the proof on the environment-addressed statements. The (key identity, rule digest, value fingerprint) triple is caller data: the finding's own coordinates.

func (*Queries) InsertSelfConfigJob

func (q *Queries) InsertSelfConfigJob(ctx context.Context, arg InsertSelfConfigJobParams) (int64, error)

hikyo:instance-scoped

func (*Queries) InsertSelfConfigRollout

func (q *Queries) InsertSelfConfigRollout(ctx context.Context, arg InsertSelfConfigRolloutParams) (int64, error)

hikyo:instance-scoped

func (*Queries) InsertServiceAccount

func (q *Queries) InsertServiceAccount(ctx context.Context, arg InsertServiceAccountParams) error

Machine identities (#61). Service accounts and their credentials live on the enumerated resolution surface for the same reason the session lifecycle does: a machine credential resolves at the chokepoint that mints the proof, so it cannot be read from behind one. Every query here is annotated and pinned. ASCII only: multibyte characters shift sqlite statement offsets. hikyo:authn-resolution

func (*Queries) InsertSession

func (q *Queries) InsertSession(ctx context.Context, arg InsertSessionParams) error

One insert for every session artifact, including the workspace session (#71). requesting_origin and handoff_id are NULL for cli and browser rows and NOT NULL for a workspace row; the table CHECK ties them to the artifact, so a second insert statement for the workspace case would buy nothing but a second place for the pairing to drift. hikyo:authn-resolution

func (*Queries) InsertSnapshot

func (q *Queries) InsertSnapshot(ctx context.Context, arg InsertSnapshotParams) error

func (*Queries) InsertSnapshotEntry

func (q *Queries) InsertSnapshotEntry(ctx context.Context, arg InsertSnapshotEntryParams) error

func (*Queries) InsertTOTP

func (q *Queries) InsertTOTP(ctx context.Context, arg InsertTOTPParams) error

hikyo:authn-resolution

func (*Queries) InsertTenantAuditEvent

func (q *Queries) InsertTenantAuditEvent(ctx context.Context, arg InsertTenantAuditEventParams) error

Audit trails (#45): the application layer holds INSERT and SELECT only on both audit tables - the append-only CI invariant scans this file. Chain parameters are bound by the store's binding layer (and, for the denial writer, by the authorization package's enumerated surface) from resolved chains only - never from caller arguments.

Interactive and export page order is seq (allocation equals commit order on sqlite). Export queries use the same seq column for their selection floor and internal page cursor. Timestamps are fixed-width UTC microsecond text, so recorded_at range predicates compare correctly.

func (*Queries) InsertTier3Key

func (q *Queries) InsertTier3Key(ctx context.Context, arg InsertTier3KeyParams) error

func (*Queries) InsertValueEntry

func (q *Queries) InsertValueEntry(ctx context.Context, arg InsertValueEntryParams) error

func (*Queries) InsertWebAuthnCeremony

func (q *Queries) InsertWebAuthnCeremony(ctx context.Context, arg InsertWebAuthnCeremonyParams) error

hikyo:authn-resolution

func (*Queries) InsertWebAuthnCredential

func (q *Queries) InsertWebAuthnCredential(ctx context.Context, arg InsertWebAuthnCredentialParams) error

hikyo:authn-resolution

func (*Queries) InsertWorkspaceHandoff

func (q *Queries) InsertWorkspaceHandoff(ctx context.Context, arg InsertWorkspaceHandoffParams) error

The handoff transaction. state_verifier and code_verifier are stored as VERIFIERS and never as values, for the reason every other bearer in this schema is: both cross a redirect. code_verifier is NULL until approval, because a transaction nobody has approved has issued no code. hikyo:authn-resolution

func (*Queries) InsertWorkspaceOrigin

func (q *Queries) InsertWorkspaceOrigin(ctx context.Context, arg InsertWorkspaceOriginParams) error

hikyo:authn-resolution

func (*Queries) InstanceConnectionByVerifier

func (q *Queries) InstanceConnectionByVerifier(ctx context.Context, verifier []byte) (InstanceConnectionByVerifierRow, error)

Multi-instance (#71, multi-instance ADR). The serving side's instance connections live here; the viewing side's remotes and snapshots land with the directory service.

Every statement below is authn-resolution: the instance-connection credential resolves at the SAME chokepoint as authorize(), inside the authorizing transaction and uncached, exactly as a machine credential does. Resolution cannot itself run under a proof, because the proof is what the answer produces. The authentication read. One indexed lookup on the unsalted SHA-256 verifier, like every other bearer artifact in the system; the caller constant-time compares the returned verifier and runs the miss path's decoy work, so unknown / revoked / expired / live are work-shape uniform.

The predicates that decide LIVENESS are deliberately not in this WHERE clause. Filtering here would make an unknown credential cost one row and a revoked one zero, which is a query-count oracle for which credentials exist. hikyo:authn-resolution

func (*Queries) InstanceIdentity

func (q *Queries) InstanceIdentity(ctx context.Context) (string, error)

The instance's own opaque identity, minted by migration 00019. Read on every directory serve (it is the listing's first field) and on every fetch the viewing side performs, which is what makes self-connection detectable. hikyo:instance-scoped

func (*Queries) InvalidateRestoredAdapterCredentials

func (q *Queries) InvalidateRestoredAdapterCredentials(ctx context.Context) error

Restored provider PATs are never trusted: unlike Hikyo authentication artifacts they carry no local epoch the provider checks, so restore must destroy custody and require operator re-entry. hikyo:authn-resolution

func (*Queries) InvalidateRestoredAdapterRouteMoves

func (q *Queries) InvalidateRestoredAdapterRouteMoves(ctx context.Context) error

Pending origin moves retain a second copy of externally authenticating PATs. Restore must destroy that custody and retire the move before any reconciled authority can resume activation against an archive-selected destination. hikyo:authn-resolution

func (*Queries) InvalidateRestoredDynamicProviderCredentials

func (q *Queries) InvalidateRestoredDynamicProviderCredentials(ctx context.Context) error

Restored dynamic-secret provider admin credentials are never trusted for the same reason as adapter PATs (#147): the sealed credential authenticates to an external engine that has no local epoch, so a restore must destroy custody and require operator re-entry. Live leases are deliberately left alone: their roles carry the engine's own VALID UNTIL, and re-probing them here could drop a credential a workload restored alongside is still using. hikyo:authn-resolution

func (*Queries) InvalidateRestoredOAuth2ProviderCredentials

func (q *Queries) InvalidateRestoredOAuth2ProviderCredentials(ctx context.Context, updatedAt string) error

hikyo:reason Authorized restore destroys all outbound OAuth2-provider credentials across the restored instance. hikyo:authn-resolution

func (*Queries) InvalidateRestoredOIDCProviderCredentials

func (q *Queries) InvalidateRestoredOIDCProviderCredentials(ctx context.Context, updatedAt string) error

Restored human-login provider secrets and remote-instance credentials also authenticate to systems outside Hikyo's credential epoch. Disable providers, destroy their secret ciphertext, and remove remotes so no restored material can be presented to an archive-controlled endpoint. hikyo:reason Authorized restore destroys all outbound login-provider credentials across the restored instance. hikyo:authn-resolution

func (*Queries) LastDeliveryFetchAt

func (q *Queries) LastDeliveryFetchAt(ctx context.Context, arg LastDeliveryFetchAtParams) (LastDeliveryFetchAtRow, error)

The server-observed layer (ADR D2): the last authenticated delivery fetch of one principal in one environment, from the audit trail.

func (*Queries) ListAccessPolicies

func (q *Queries) ListAccessPolicies(ctx context.Context, arg ListAccessPoliciesParams) ([]AccessPolicy, error)

func (*Queries) ListAccessPolicyApprovers

func (q *Queries) ListAccessPolicyApprovers(ctx context.Context, arg ListAccessPolicyApproversParams) ([]AccessPolicyApprover, error)

func (*Queries) ListAccessPolicyBypassers

func (q *Queries) ListAccessPolicyBypassers(ctx context.Context, arg ListAccessPolicyBypassersParams) ([]AccessPolicyBypasser, error)

func (*Queries) ListAccessRequestsForEnvironment

func (q *Queries) ListAccessRequestsForEnvironment(ctx context.Context, arg ListAccessRequestsForEnvironmentParams) ([]AccessRequest, error)

func (*Queries) ListAccessVotes

func (q *Queries) ListAccessVotes(ctx context.Context, arg ListAccessVotesParams) ([]AccessVote, error)

func (*Queries) ListAdapterManifestKeys

func (q *Queries) ListAdapterManifestKeys(ctx context.Context, arg ListAdapterManifestKeysParams) ([]ListAdapterManifestKeysRow, error)

func (*Queries) ListAdapterPinsForKey

func (q *Queries) ListAdapterPinsForKey(ctx context.Context, arg ListAdapterPinsForKeyParams) ([]ListAdapterPinsForKeyRow, error)

func (*Queries) ListAllProjects

func (q *Queries) ListAllProjects(ctx context.Context) ([]ListAllProjectsRow, error)

ListAllProjects is the multi-instance directory's cross-org enumeration (#71): the served listing is org/project names and counts across the whole instance, so it addresses no tenant and carries no chain conjunct. It is annotated instance-scoped for exactly the reason ListOrgs is - the read is cross-tenant by definition, not by omission. Only (org_id, name) is selected: the directory needs names and counts, and a row shape carrying created_at would be foreign structure nobody asked for. hikyo:instance-scoped

func (*Queries) ListApprovalPolicies

func (q *Queries) ListApprovalPolicies(ctx context.Context, arg ListApprovalPoliciesParams) ([]ApprovalPolicy, error)

func (*Queries) ListApprovalPolicyApprovers

func (q *Queries) ListApprovalPolicyApprovers(ctx context.Context, arg ListApprovalPolicyApproversParams) ([]ApprovalPolicyApprover, error)

func (*Queries) ListApprovalPolicyBypassers

func (q *Queries) ListApprovalPolicyBypassers(ctx context.Context, arg ListApprovalPolicyBypassersParams) ([]ApprovalPolicyBypasser, error)

func (*Queries) ListApprovalRequestsForEnvironment

func (q *Queries) ListApprovalRequestsForEnvironment(ctx context.Context, arg ListApprovalRequestsForEnvironmentParams) ([]ApprovalRequest, error)

func (*Queries) ListApprovalVotes

func (q *Queries) ListApprovalVotes(ctx context.Context, arg ListApprovalVotesParams) ([]ApprovalVote, error)

func (*Queries) ListCredentialsBeyondCeiling

func (q *Queries) ListCredentialsBeyondCeiling(ctx context.Context, expiresAt sql.NullString) ([]ListCredentialsBeyondCeilingRow, error)

The clamp's enumeration: every live finite credential whose expiry is beyond a proposed ceiling, listed to the actor BEFORE the change commits. hikyo:authn-resolution

func (*Queries) ListDeliveryTargetQuotaNotices

The project's quota-refused notices (ADR D5), one per principal. The list shows a notice only for a principal that may report on the listed environment, which the service decides at the chokepoint.

func (*Queries) ListDeliveryTargetReports

func (q *Queries) ListDeliveryTargetReports(ctx context.Context, arg ListDeliveryTargetReportsParams) ([]DeliveryTargetReport, error)

func (*Queries) ListDeveloperCredentials

func (q *Queries) ListDeveloperCredentials(ctx context.Context) ([]DeveloperCredential, error)

hikyo:reason Transaction-local lifecycle administration filters this metadata after self or project authorization; no bearer can be recovered. hikyo:authn-resolution

func (*Queries) ListEligibleSnapshotPayloads

func (q *Queries) ListEligibleSnapshotPayloads(ctx context.Context, arg ListEligibleSnapshotPayloadsParams) ([]ListEligibleSnapshotPayloadsRow, error)

ListEligibleSnapshotPayloads selects the next batch of collectable payloads. Walk at most the retained N lineage headers per environment using indexed predecessor lookups, then collect only below the Nth newest revision. A missing predecessor stops the walk: histories shorter than N have no cutoff. All lineage counts, including collected payloads and sparse revision numbers. The cutoff is recomputed in this statement's transaction snapshot each batch; it is never cached across policy changes or retries. This bounds ranking work, not the outer candidate scan or the complete sweep's transaction/audit work. hikyo:instance-scoped

func (*Queries) ListEnvironmentIDsInProject

func (q *Queries) ListEnvironmentIDsInProject(ctx context.Context, arg ListEnvironmentIDsInProjectParams) ([]string, error)

The universe the mint and widen reachability computations range over. A service account's grants are confined to its owning project's subtree, so this project's environments ARE every environment its credentials reach. hikyo:authn-resolution

func (*Queries) ListEnvironmentProtection

func (q *Queries) ListEnvironmentProtection(ctx context.Context, arg ListEnvironmentProtectionParams) ([]ListEnvironmentProtectionRow, error)

ListEnvironmentProtection reads every environment's protected flag under a PROJECT proof - the definitions plan/apply path pins the project's protected set and refuses if it grew (#70, permission-model ADR section 84). GetEnvironmentSettings is environment-addressed and cannot serve a project-scoped read.

func (*Queries) ListEnvironments

func (q *Queries) ListEnvironments(ctx context.Context, arg ListEnvironmentsParams) ([]ListEnvironmentsRow, error)

func (*Queries) ListEnvironmentsPageAtOrder

func (q *Queries) ListEnvironmentsPageAtOrder(ctx context.Context, arg ListEnvironmentsPageAtOrderParams) ([]ListEnvironmentsPageAtOrderRow, error)

These two bounded reads compose List's display_order/name keyset without an OR predicate the tenant-isolation analyzer cannot prove. The store reads the remainder of the cursor's current order first, then later orders.

func (*Queries) ListExpiredRegistrationSignups

func (q *Queries) ListExpiredRegistrationSignups(ctx context.Context, expiresAt string) ([]ListExpiredRegistrationSignupsRow, error)

hikyo:reason The singleton registration reaper enumerates only expired pending rows for audited cleanup. hikyo:authn-resolution

func (*Queries) ListExternalIdentitiesForAccount

func (q *Queries) ListExternalIdentitiesForAccount(ctx context.Context, accountID string) ([]ExternalIdentity, error)

hikyo:authn-resolution

func (*Queries) ListFederationIssuers

func (q *Queries) ListFederationIssuers(ctx context.Context) ([]FederationIssuer, error)

Every configured issuer, read on the authentication path so a presented token's `iss` can be resolved, and on the administrative path so an operator can see what the instance trusts. One query serves both: the set is small (one row per platform) and bounded by an instance capability. hikyo:authn-resolution

func (*Queries) ListFileTargetCatalogue

func (q *Queries) ListFileTargetCatalogue(ctx context.Context, arg ListFileTargetCatalogueParams) ([]ListFileTargetCatalogueRow, error)

The selection's names and classifications come from the project catalogue, read whole and filtered in Go: a JOIN is not a shape the predicate analyzer can prove, and a catalogue is small.

func (*Queries) ListFileTargetKeyIDs

func (q *Queries) ListFileTargetKeyIDs(ctx context.Context, arg ListFileTargetKeyIDsParams) ([]string, error)

func (*Queries) ListFileTargets

func (q *Queries) ListFileTargets(ctx context.Context, arg ListFileTargetsParams) ([]ListFileTargetsRow, error)

func (*Queries) ListFolders

func (q *Queries) ListFolders(ctx context.Context, arg ListFoldersParams) ([]Folder, error)

func (*Queries) ListGrantOriginsForGrant

func (q *Queries) ListGrantOriginsForGrant(ctx context.Context, grantID string) ([]ListGrantOriginsForGrantRow, error)

The origins holding ONE grant row, for dedup (does this grantor already hold it?) and for revocation (which origins may this surface release?). hikyo:authn-resolution

func (*Queries) ListGrantOriginsForPrincipal

func (q *Queries) ListGrantOriginsForPrincipal(ctx context.Context, principalID string) ([]ListGrantOriginsForPrincipalRow, error)

The release algorithm's read: every origin holding every grant row of one principal, in one statement. Walking grant rows and then their origins one-by-one would be the same information at N+1 queries, and a release decision that spans both tables should see them at one instant. hikyo:authn-resolution

func (*Queries) ListGrantRowsForPrincipal

func (q *Queries) ListGrantRowsForPrincipal(ctx context.Context, principalID string) ([]ListGrantRowsForPrincipalRow, error)

Permission model, full (#55). The grant table and its origins live on the enumerated resolution surface for the same reason the session lifecycle does: authorize() reads grants to mint a proof, so a grant write cannot be gated behind one. Every query here is annotated and pinned. ASCII only: multibyte characters shift sqlite statement offsets. hikyo:authn-resolution

func (*Queries) ListGrantsForPrincipal

func (q *Queries) ListGrantsForPrincipal(ctx context.Context, arg ListGrantsForPrincipalParams) ([]ListGrantsForPrincipalRow, error)

The grant lookup authorize() makes, carrying the restore-reconciliation gate (#76): after a restore, a principal's grants do not authorize until an operator reconciles that principal up to the restore epoch. The gate is a conjunct of the SAME query rather than a second read, so no caller can forget it and the pinned query count is unchanged. Never restored means restore_epoch = 0, which every principal's default already satisfies.

The second branch is approval-mediated temporary access (#152): the principal's access_grants rows whose absolute expiry is after the transaction clock. The expiry filter lives in THIS query, so it binds every protected operation, every session and every node without a sweep and without client cooperation, and a restored or privacy-erased principal's temporary rows are inert under exactly the same gates as their permanent ones. hikyo:authn-resolution

func (*Queries) ListGrantsForResetTarget

func (q *Queries) ListGrantsForResetTarget(ctx context.Context, principalID string) ([]ListGrantsForResetTargetRow, error)

The target principal's grant set, for the credential-reset org-bounded test (#54 credential-reset, ADR - Recovery): reset reaches only a target whose grants lie entirely within one org and who holds no instance capability. hikyo:authn-resolution

func (*Queries) ListGrantsWithOriginsAtInstance

func (q *Queries) ListGrantsWithOriginsAtInstance(ctx context.Context) ([]ListGrantsWithOriginsAtInstanceRow, error)

hikyo:authn-resolution

func (*Queries) ListGrantsWithOriginsForOrg

func (q *Queries) ListGrantsWithOriginsForOrg(ctx context.Context, orgID sql.NullString) ([]ListGrantsWithOriginsForOrgRow, error)

Membership inspection, per capability line with its origin chips. The JOIN means a grant with no origin cannot appear at all, which is the invariant stated as a query. hikyo:authn-resolution

func (*Queries) ListGrantsWithOriginsForProject

The project-scoped membership surface. A project member manager authorizes for ONE project, so the datastore must return one project's rows: filtering the org's rows in Go afterwards makes the work scale with sibling-project membership, which is a structural oracle, and materializes administrative data from projects the caller was never authorized to see. hikyo:authn-resolution

func (*Queries) ListIndefiniteCredentials

func (q *Queries) ListIndefiniteCredentials(ctx context.Context) ([]ListIndefiniteCredentialsRow, error)

hikyo:authn-resolution

func (*Queries) ListInstanceConnections

func (q *Queries) ListInstanceConnections(ctx context.Context) ([]ListInstanceConnectionsRow, error)

Metadata only, and never the value: the ADR inherits #17's list/get rule unchanged. There is no statement anywhere that reads `verifier` back out for display, because a credential is display-once at mint and write-only after. hikyo:authn-resolution

func (*Queries) ListKeyGroups

func (q *Queries) ListKeyGroups(ctx context.Context, arg ListKeyGroupsParams) ([]KeyGroup, error)

func (*Queries) ListKeyPersonalRequired

func (q *Queries) ListKeyPersonalRequired(ctx context.Context, arg ListKeyPersonalRequiredParams) ([]ListKeyPersonalRequiredRow, error)

personal_required_in: a key's environments where each developer is expected to hold a personal value. No rows means `none`; rows mean `explicit`.

func (*Queries) ListKeyPresence

func (q *Queries) ListKeyPresence(ctx context.Context, arg ListKeyPresenceParams) ([]KeyPresenceEnvironment, error)

func (*Queries) ListKeyPresenceForKey

func (q *Queries) ListKeyPresenceForKey(ctx context.Context, arg ListKeyPresenceForKeyParams) ([]KeyPresenceEnvironment, error)

ListKeyPresenceForKey reads one key's explicit presence rules, so the MCP definitions page resolves presence per page key instead of listing the whole project's presence rows.

func (*Queries) ListKeys

func (q *Queries) ListKeys(ctx context.Context, arg ListKeysParams) ([]Key, error)

func (*Queries) ListKeysPage

func (q *Queries) ListKeysPage(ctx context.Context, arg ListKeysPageParams) ([]Key, error)

ListKeysPage is the MCP-bounded keyset read (#629). name is UNIQUE per project, so it is a stable single-column cursor: the statement fetches strictly past the last returned name and never materializes the whole catalogue to slice a limit afterwards.

func (*Queries) ListLiveAccessGrantsForPrincipal

A principal's live temporary grants, for the membership surface. hikyo:authn-resolution

func (*Queries) ListLiveOrgEmailInvitations

func (q *Queries) ListLiveOrgEmailInvitations(ctx context.Context, arg ListLiveOrgEmailInvitationsParams) ([]ListLiveOrgEmailInvitationsRow, error)

hikyo:reason The pending list is read after authorizing manage-members at the addressed org and never selects the matched account. hikyo:authn-resolution

func (*Queries) ListLockoutRetentionOrigins

func (q *Queries) ListLockoutRetentionOrigins(ctx context.Context) ([]ListLockoutRetentionOriginsRow, error)

Every lockout-retention origin in the instance, with the grant row it holds (ADR section 2.4). The cure sweep is global rather than per-org because an INSTANCE-scope manage-members grant cures every org at once, and a per-org sweep would silently leave those retentions standing. Retention origins are rare by construction -- one per grant the IdP withdrew from the last member manager -- so the whole set is cheap to walk. hikyo:authn-resolution

func (*Queries) ListLockoutRetentionOriginsInOrg

func (q *Queries) ListLockoutRetentionOriginsInOrg(ctx context.Context, orgID sql.NullString) ([]ListLockoutRetentionOriginsInOrgRow, error)

The cure sweep bounded to ONE org. An org-scope `manage-members` grant cures that org and no other, so loading and locking every retention in the instance to then discard all but one org's is both tenant-triggerable O(instance) work and a cross-tenant timing signal. Only an INSTANCE-scope grant needs the unbounded walk above. hikyo:authn-resolution

func (*Queries) ListMachineCredentials

func (q *Queries) ListMachineCredentials(ctx context.Context, serviceAccountID string) ([]ListMachineCredentialsRow, error)

hikyo:authn-resolution

func (*Queries) ListManageMembersHoldersAtInstance

func (q *Queries) ListManageMembersHoldersAtInstance(ctx context.Context) ([]string, error)

hikyo:authn-resolution

func (*Queries) ListManageMembersHoldersForOrg

func (q *Queries) ListManageMembersHoldersForOrg(ctx context.Context, orgID sql.NullString) ([]string, error)

The lockout invariant's census. An org's manage-members holders are the principals holding it AT that org or ABOVE it (instance scope inherits downward), which is exactly what the grant evaluation would answer.

The project_id IS NULL conjunct is load-bearing: a project-scope manage-members grant lives at org_id = ? too, and without it a project member manager would count toward the org census. The permission-model ADR draws the lockout line at org and instance scope, so a project-scope holder is not one of the org's holders. hikyo:authn-resolution

func (*Queries) ListOAuth2Providers

func (q *Queries) ListOAuth2Providers(ctx context.Context) ([]Oauth2Provider, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) ListOIDCProviders

func (q *Queries) ListOIDCProviders(ctx context.Context) ([]OidcProvider, error)

hikyo:authn-resolution

func (*Queries) ListOauth2ProvidersForReencrypt

hikyo:authn-resolution

func (*Queries) ListOidcProvidersForReencrypt

func (q *Queries) ListOidcProvidersForReencrypt(ctx context.Context, arg ListOidcProvidersForReencryptParams) ([]ListOidcProvidersForReencryptRow, error)

hikyo:authn-resolution

func (*Queries) ListOrgIDs

func (q *Queries) ListOrgIDs(ctx context.Context) ([]string, error)

hikyo:reason Recovery classification reads only org ids, without later-migration columns or the self-config binding join, so it runs on any verified source schema. hikyo:instance-scoped

func (*Queries) ListOrgs

func (q *Queries) ListOrgs(ctx context.Context, includeSelfConfig interface{}) ([]ListOrgsRow, error)

hikyo:instance-scoped

func (*Queries) ListPairingExchangesForReencrypt

Reencrypt preserves every retained pairing secret across instance-DEK retirement. hikyo:reason Instance reencrypt authorization precedes this bounded ciphertext scan; the proof-gated repository verifies the exact transaction and operation. hikyo:authn-resolution

func (*Queries) ListPairingInvitesForReencrypt

Reencrypt preserves every retained pairing secret across instance-DEK retirement. hikyo:reason Instance reencrypt authorization precedes this bounded ciphertext scan; the proof-gated repository verifies the exact transaction and operation. hikyo:authn-resolution

func (*Queries) ListPasswordCredsForReencrypt

func (q *Queries) ListPasswordCredsForReencrypt(ctx context.Context, arg ListPasswordCredsForReencryptParams) ([]ListPasswordCredsForReencryptRow, error)

Reencrypt walk (#75/#187): page instance credential ciphertext and re-seal in place under the active DEK version, CAS on row_version (anti-resurrection), stamping the new dek_version. class=authn: no tenant chain. hikyo:authn-resolution

func (*Queries) ListPendingChangesForOwner

func (q *Queries) ListPendingChangesForOwner(ctx context.Context, arg ListPendingChangesForOwnerParams) ([]PendingChange, error)

ListPendingChangesForOwner is the publish path's read: a publish carries ONLY the publisher's own pending changes, so the query that returns draft material is keyed on the owner and there is no statement that hands one principal another's ciphertext.

func (*Queries) ListPendingChangesForOwnerInEnvironment

func (q *Queries) ListPendingChangesForOwnerInEnvironment(ctx context.Context, arg ListPendingChangesForOwnerInEnvironmentParams) ([]PendingChange, error)

ListPendingChangesForOwnerInEnvironment is the preview read. Owner and environment are both predicates in SQL, so the preview cannot hand one principal another's ciphertext or material from another environment.

func (*Queries) ListPendingChangesForOwnerInEnvironmentPage

func (q *Queries) ListPendingChangesForOwnerInEnvironmentPage(ctx context.Context, arg ListPendingChangesForOwnerInEnvironmentPageParams) ([]PendingChange, error)

ListPendingMarkers is the matrix signal's read and the group-closure collision check's read. It returns NO ciphertext: what another principal's draft may disclose is write-presence and nothing else, and the cheapest way to hold that rule is a statement that cannot carry the material. ListPendingChangesForOwnerInEnvironmentPage is the MCP-bounded keyset read (#629). (env, key, owner) is UNIQUE, so key_id is a stable single-column cursor for one owner's drafts in one environment. No JOIN: the caller resolves each page key's name and classification under the same key.list authorization.

func (*Queries) ListPendingForReencrypt

func (q *Queries) ListPendingForReencrypt(ctx context.Context, arg ListPendingForReencryptParams) ([]ListPendingForReencryptRow, error)

pending_changes ciphertext is NULL for an `unset` draft; skip those rows.

func (*Queries) ListPendingMarkers

func (q *Queries) ListPendingMarkers(ctx context.Context, arg ListPendingMarkersParams) ([]ListPendingMarkersRow, error)

func (*Queries) ListPersonalValueCellsForKey

func (q *Queries) ListPersonalValueCellsForKey(ctx context.Context, arg ListPersonalValueCellsForKeyParams) ([]ListPersonalValueCellsForKeyRow, error)

ListPersonalValueCellsForKey is the key cascade's read: which owners in which environments lose a value, metadata only, so each gets a notice.

func (*Queries) ListPersonalValueHolders

func (q *Queries) ListPersonalValueHolders(ctx context.Context, arg ListPersonalValueHoldersParams) ([]ListPersonalValueHoldersRow, error)

ListPersonalValueHolders is metadata only: who holds a value for one key in the environment and when it changed. It never selects ciphertext.

func (*Queries) ListPersonalValueOwners

func (q *Queries) ListPersonalValueOwners(ctx context.Context) ([]string, error)

Personal values on the authentication surface (personal-values ADR). hikyo:reason A restore purges every personal value with a restore notice (personal-values ADR, restore); listing the distinct owners lets that purge visit only principals holding one, and reads no ciphertext. hikyo:authn-resolution

func (*Queries) ListPersonalValueOwnersForEnvironment

func (q *Queries) ListPersonalValueOwnersForEnvironment(ctx context.Context, arg ListPersonalValueOwnersForEnvironmentParams) ([]string, error)

func (*Queries) ListPersonalValuesForOwner

func (q *Queries) ListPersonalValuesForOwner(ctx context.Context, arg ListPersonalValuesForOwnerParams) ([]ListPersonalValuesForOwnerRow, error)

func (*Queries) ListPersonalValuesForRetention

hikyo:reason The personal-value retention sweep checks every value's owner against the live access predicate across all tenants (personal-values ADR, Retention); it reads metadata and the key name only, never ciphertext, and each row supplies the tenant chain its follow-up writes are scoped to. hikyo:instance-scoped

func (*Queries) ListPkiIssuersForReencrypt

func (q *Queries) ListPkiIssuersForReencrypt(ctx context.Context, arg ListPkiIssuersForReencryptParams) ([]ListPkiIssuersForReencryptRow, error)

Private PKI (#154). The issuer, profile and certificate lifecycle is hand-written dialect SQL in internal/store/pki.go; only the reencrypt walk lives here, beside the other instance-credential walks. Reencrypt walk: pki_issuers.encrypted_private_key (retired and revoked versions hold NULL, their key destroyed, and are skipped). hikyo:instance-scoped

func (*Queries) ListPrincipalFootprintOrgs

func (q *Queries) ListPrincipalFootprintOrgs(ctx context.Context, principalID string) ([]sql.NullString, error)

A principal's footprint: every org that holds any row about it (grants, timed access grants whether or not expired, member-access rules, its service account, its developer credential, its SCIM provisioning). An instance-scope grant yields a NULL org. Deliberately not gated on privacy state. hikyo:reason Authorized grant and rule writers read only the distinct org ids in which the target principal already holds any row, to refuse a target outside the actor's administered orgs with the nonexistent-principal answer; it returns no tenant identifiers beyond those org ids and writes nothing. Network credential-reset classification reads the same set to count the target's orgs. hikyo:authn-resolution

func (*Queries) ListProjectIDs

func (q *Queries) ListProjectIDs(ctx context.Context, orgID string) ([]string, error)

ListProjectIDs reads only the id column so the upgrade drill can enumerate projects in a restored scratch database that predates later project columns.

func (*Queries) ListProjects

func (q *Queries) ListProjects(ctx context.Context, orgID string) ([]ListProjectsRow, error)

func (*Queries) ListRecoveryCodesForReencrypt

func (q *Queries) ListRecoveryCodesForReencrypt(ctx context.Context, arg ListRecoveryCodesForReencryptParams) ([]ListRecoveryCodesForReencryptRow, error)

hikyo:authn-resolution

func (*Queries) ListRegistrationPolicyDomains

func (q *Queries) ListRegistrationPolicyDomains(ctx context.Context, policyID string) ([]string, error)

hikyo:authn-resolution

func (*Queries) ListRegistrationPolicyEntries

func (q *Queries) ListRegistrationPolicyEntries(ctx context.Context, policyID string) ([]ListRegistrationPolicyEntriesRow, error)

hikyo:authn-resolution

func (*Queries) ListRegistrationPolicyEntryValues

func (q *Queries) ListRegistrationPolicyEntryValues(ctx context.Context, policyID string) ([]RegistrationPolicyEntryValue, error)

hikyo:authn-resolution

func (*Queries) ListRegistrationSignupsForPolicy

func (q *Queries) ListRegistrationSignupsForPolicy(ctx context.Context, policyID string) ([]ListRegistrationSignupsForPolicyRow, error)

hikyo:authn-resolution

func (*Queries) ListRemotePairingInvites

func (q *Queries) ListRemotePairingInvites(ctx context.Context) ([]ListRemotePairingInvitesRow, error)

hikyo:reason Authorized instance custody listing returns metadata through its caller, never capability or PAKE records. hikyo:authn-resolution

func (*Queries) ListRemoteSnapshots

func (q *Queries) ListRemoteSnapshots(ctx context.Context) ([]RemoteSnapshot, error)

hikyo:instance-scoped

func (*Queries) ListRemotes

func (q *Queries) ListRemotes(ctx context.Context) ([]ListRemotesRow, error)

credential_sealed is deliberately NOT selected: it is write-only after storage and leaves the process only inside TLS to the pinned remote. The one statement that reads it is SealedRemoteCredential, below, and it exists so the fetch path can present it - never so a surface can display it. hikyo:instance-scoped

func (*Queries) ListRemotesForReencrypt

func (q *Queries) ListRemotesForReencrypt(ctx context.Context, arg ListRemotesForReencryptParams) ([]ListRemotesForReencryptRow, error)

Reencrypt walk (#75/#187): remotes.credential_sealed has no dek_version, so the walk header-parses the envelope for the version and CASes on the blob. hikyo:instance-scoped

func (*Queries) ListRevisionKeyChanges

func (q *Queries) ListRevisionKeyChanges(ctx context.Context, arg ListRevisionKeyChangesParams) ([]RevisionKeyChange, error)

func (*Queries) ListRevisionKeyChangesInRange

func (q *Queries) ListRevisionKeyChangesInRange(ctx context.Context, arg ListRevisionKeyChangesInRangeParams) ([]RevisionKeyChange, error)

ListRevisionKeyChangesInRange is the history page's lineage read: every change row of the revisions in [min_revision, max_revision], newest revision first, so one statement serves a whole page instead of one per revision.

func (*Queries) ListRevisionPins

func (q *Queries) ListRevisionPins(ctx context.Context, arg ListRevisionPinsParams) ([]RevisionPin, error)

func (*Queries) ListRuleIDsForEnvironment

func (q *Queries) ListRuleIDsForEnvironment(ctx context.Context, arg ListRuleIDsForEnvironmentParams) ([]string, error)

The deletion paths' censuses: which rules name an object about to go. hikyo:authn-resolution

func (*Queries) ListRuleIDsForKey

func (q *Queries) ListRuleIDsForKey(ctx context.Context, arg ListRuleIDsForKeyParams) ([]string, error)

hikyo:authn-resolution

func (*Queries) ListRuleIDsForOrg

func (q *Queries) ListRuleIDsForOrg(ctx context.Context, orgID string) ([]string, error)

hikyo:authn-resolution

func (*Queries) ListRuleIDsForProject

func (q *Queries) ListRuleIDsForProject(ctx context.Context, arg ListRuleIDsForProjectParams) ([]string, error)

hikyo:authn-resolution

func (*Queries) ListRuleLinesInOrg

func (q *Queries) ListRuleLinesInOrg(ctx context.Context, orgID string) ([]ListRuleLinesInOrgRow, error)

The rule listing (the rules half of the membership surface), ungated like the grant listing: a member manager sees every stored rule in the org. hikyo:authn-resolution

func (*Queries) ListRuleLinesInProject

func (q *Queries) ListRuleLinesInProject(ctx context.Context, arg ListRuleLinesInProjectParams) ([]ListRuleLinesInProjectRow, error)

The project rule listing. A project member manager authorizes for ONE project, so only that project's items are read (never a sibling project's environments, keys or folders); other_items counts, without naming, the items a rule holds elsewhere so the listing can say the rule spans more. hikyo:authn-resolution

func (*Queries) ListRulesForPrincipal

func (q *Queries) ListRulesForPrincipal(ctx context.Context, principalID string) ([]ListRulesForPrincipalRow, error)

Member access rules (member-access-rules ADR). The rule tables live on the enumerated resolution surface for the same reason `grants` does: authorize() reads them to mint a proof, so a rule write cannot be gated behind one. Every writer takes the principal-row lock like every grant writer. ASCII only: multibyte characters shift sqlite statement offsets. The rule lookup authorize() makes when the principal's grants alone do not satisfy a formula. It carries EXACTLY the gates ListGrantsForPrincipal carries (active privacy state, reconciled up to the restore epoch) plus kind = 'human': rules are human-only, and a machine row that somehow exists is inert here rather than trusted. One row per selector item; every rule has at least its project items, so the inner join drops nothing real. hikyo:authn-resolution

func (*Queries) ListRulesForProject

func (q *Queries) ListRulesForProject(ctx context.Context, arg ListRulesForProjectParams) ([]ListRulesForProjectRow, error)

Every rule of a human principal that names one project, for the folder-move widening census (ADR D9). The census must be a SUPERSET of what authorize() could ever honour, so it deliberately omits the chokepoint's privacy and restore-epoch gates: a principal restricted today whose rule gains on this move would otherwise regain that access later with nobody having confirmed it. hikyo:authn-resolution

func (*Queries) ListSAMLProviders

func (q *Queries) ListSAMLProviders(ctx context.Context) ([]SamlProvider, error)

hikyo:authn-resolution

func (*Queries) ListSAMLSPKeys

func (q *Queries) ListSAMLSPKeys(ctx context.Context) ([]SamlSpKey, error)

hikyo:authn-resolution

func (*Queries) ListSCIMAttention

func (q *Queries) ListSCIMAttention(ctx context.Context, arg ListSCIMAttentionParams) ([]ScimAttention, error)

func (*Queries) ListSCIMBindings

func (q *Queries) ListSCIMBindings(ctx context.Context, orgID string) ([]ScimBinding, error)

func (*Queries) ListSCIMCredentials

func (q *Queries) ListSCIMCredentials(ctx context.Context, arg ListSCIMCredentialsParams) ([]ListSCIMCredentialsRow, error)

hikyo:authn-resolution

func (*Queries) ListSCIMGroupMembers

func (q *Queries) ListSCIMGroupMembers(ctx context.Context, arg ListSCIMGroupMembersParams) ([]ScimGroupMember, error)

func (*Queries) ListSCIMGroupMembershipsForUser

func (q *Queries) ListSCIMGroupMembershipsForUser(ctx context.Context, arg ListSCIMGroupMembershipsForUserParams) ([]ScimGroupMember, error)

Which groups a user belongs to: the `groups` attribute is response-only per RFC 7643, and this is the read that fills it.

func (*Queries) ListSCIMGroups

func (q *Queries) ListSCIMGroups(ctx context.Context, arg ListSCIMGroupsParams) ([]ScimGroup, error)

func (*Queries) ListSCIMMappings

func (q *Queries) ListSCIMMappings(ctx context.Context, arg ListSCIMMappingsParams) ([]ScimMapping, error)

func (*Queries) ListSCIMMappingsForGroup

func (q *Queries) ListSCIMMappingsForGroup(ctx context.Context, arg ListSCIMMappingsForGroupParams) ([]ScimMapping, error)

func (*Queries) ListSCIMUsers

func (q *Queries) ListSCIMUsers(ctx context.Context, arg ListSCIMUsersParams) ([]ScimUser, error)

func (*Queries) ListSamlKeysForReencrypt

func (q *Queries) ListSamlKeysForReencrypt(ctx context.Context, arg ListSamlKeysForReencryptParams) ([]ListSamlKeysForReencryptRow, error)

Reencrypt walk (#75/#187): saml_sp_keys, class=authn. hikyo:authn-resolution

func (*Queries) ListSecretValueOccurrenceIDsIn

func (q *Queries) ListSecretValueOccurrenceIDsIn(ctx context.Context, arg ListSecretValueOccurrenceIDsInParams) ([]string, error)

ListSecretValueOccurrenceIDsIn reads only the requested candidates in the proof's environment, never the lifetime sensitivity history.

func (*Queries) ListSelfConfigJobs

func (q *Queries) ListSelfConfigJobs(ctx context.Context) ([]SelfConfigJob, error)

hikyo:instance-scoped

func (*Queries) ListSelfConfigNodes

func (q *Queries) ListSelfConfigNodes(ctx context.Context) ([]SelfConfigNode, error)

hikyo:instance-scoped

func (*Queries) ListSelfConfigParticipants

func (q *Queries) ListSelfConfigParticipants(ctx context.Context, sinceAt string) ([]string, error)

hikyo:instance-scoped

func (*Queries) ListSelfConfigRetained

func (q *Queries) ListSelfConfigRetained(ctx context.Context) ([]string, error)

hikyo:instance-scoped

func (*Queries) ListSelfConfigSeedInputs

func (q *Queries) ListSelfConfigSeedInputs(ctx context.Context) ([]ListSelfConfigSeedInputsRow, error)

hikyo:instance-scoped

func (*Queries) ListSelfConfigSeedInputsForReencrypt

Temporary node bootstrap inputs use the instance DEK, not a project key.

func (*Queries) ListServiceAccounts

func (q *Queries) ListServiceAccounts(ctx context.Context, arg ListServiceAccountsParams) ([]ServiceAccount, error)

hikyo:authn-resolution

func (*Queries) ListSessionsForPrincipal

func (q *Queries) ListSessionsForPrincipal(ctx context.Context, principalID string) ([]ListSessionsForPrincipalRow, error)

The active-session listing (#71 criterion 5). A workspace session appears here as its own artifact type, beside the cli and browser rows, which is the ADR's requirement and the reason it is a `sessions` row at all. Metadata only: no verifier is selected, here or anywhere. hikyo:authn-resolution

func (*Queries) ListSnapshotEntries

func (q *Queries) ListSnapshotEntries(ctx context.Context, arg ListSnapshotEntriesParams) ([]SnapshotEntry, error)

func (*Queries) ListSnapshotEntriesForReencrypt

Reencrypt walk (#75/#187): page and re-seal project_field ciphertext in place.

func (*Queries) ListSnapshots

func (q *Queries) ListSnapshots(ctx context.Context, arg ListSnapshotsParams) ([]ListSnapshotsRow, error)

ListSnapshots is the environment's whole revision header set, newest first: the pin retention-consequence read, which ranks one snapshot against every sibling. Header projection only; the parameter contract has its own read.

func (*Queries) ListSnapshotsPage

func (q *Queries) ListSnapshotsPage(ctx context.Context, arg ListSnapshotsPageParams) ([]ListSnapshotsPageRow, error)

ListSnapshotsPage is the bounded keyset read behind revision history (#629). revision is UNIQUE and monotonic per environment, so it is a stable single-column cursor in descending order: the statement fetches strictly below the last returned revision and never materializes the whole history to slice a limit afterwards. It is a metadata projection: the parameter contract is payload and has its own point read.

func (*Queries) ListTotpCredsForReencrypt

func (q *Queries) ListTotpCredsForReencrypt(ctx context.Context, arg ListTotpCredsForReencryptParams) ([]ListTotpCredsForReencryptRow, error)

hikyo:authn-resolution

func (*Queries) ListUnreconciledPrincipals

func (q *Queries) ListUnreconciledPrincipals(ctx context.Context) ([]ListUnreconciledPrincipalsRow, error)

Reading the outstanding set is not accepting it: the operator has to know who is waiting in order to reconcile them one at a time. hikyo:authn-resolution

func (*Queries) ListValueEntries

func (q *Queries) ListValueEntries(ctx context.Context, arg ListValueEntriesParams) ([]ValueEntry, error)

ListValueEntries is the delivery-shaped read: one environment's entire set, which is exactly what "a `set` entry delivers, `absent` delivers nothing" means when absence is the absence of a row.

func (*Queries) ListValueEntriesForReencrypt

func (q *Queries) ListValueEntriesForReencrypt(ctx context.Context, arg ListValueEntriesForReencryptParams) ([]ListValueEntriesForReencryptRow, error)

ListValueEntriesForReencrypt pages a project's entire value set by id (keyset cursor) so reencrypt walks it in fixed chunks. It spans every environment: a DEK covers the whole project. id > ” returns the first page.

func (*Queries) ListValueEnvironmentsForKey

func (q *Queries) ListValueEnvironmentsForKey(ctx context.Context, arg ListValueEnvironmentsForKeyParams) ([]string, error)

ListValueEnvironmentsForKey spans the project's environments deliberately: it is the input to the key-delete refusal, which must be able to NAME the environments that still deliver material for the key.

func (*Queries) ListWebAuthnCredentialsForAccount

func (q *Queries) ListWebAuthnCredentialsForAccount(ctx context.Context, accountID string) ([]WebauthnCredential, error)

hikyo:authn-resolution

func (*Queries) ListWorkspaceOrigins

func (q *Queries) ListWorkspaceOrigins(ctx context.Context) ([]WorkspaceOrigin, error)

--------------------------------------------------------------------------- SERVING SIDE, continued: the origin allowlist and the handoff transaction.

Both are authn-resolution. The allowlist is consulted at handoff issuance, which is pre-authentication; the handoff transaction resolves the caller the same way a session verifier does, at the same chokepoint, and a proof cannot gate it because the proof is what the answer produces. --------------------------------------------------------------------------- hikyo:authn-resolution

func (*Queries) LockCredentialPolicy

func (q *Queries) LockCredentialPolicy(ctx context.Context) (int64, error)

The policy row lock. A mint reads the ceiling and the cap and then inserts; a tightening reads the affected set and then clamps. Without a shared lock the two interleave and a credential is written under a ceiling that no longer exists. sqlite's single writer serializes; postgres takes FOR UPDATE. hikyo:authn-resolution

func (*Queries) LockInstanceIdentityRow

func (q *Queries) LockInstanceIdentityRow(ctx context.Context) (int64, error)

Row locks that serialize a read-then-write decision. Postgres runs READ COMMITTED, so a transaction alone does NOT serialize "check, then write" -- two concurrent transactions each read the pre-state and each commit. sqlite's single writer serializes trivially; postgres takes FOR UPDATE. The shape mirrors LockPrincipalRow, which #54 added for exactly this class of race.

LockInstanceIdentityRow locks the instance-owned singleton `instance_identity` has been since migration 00019. It is the natural mutex for a decision about THIS INSTANCE AS A WHOLE -- the remote-count cap and the duplicate-identity refusal are both instance-wide census questions, and there is no per-remote row to lock because the row being decided about does not exist yet.

LockWorkspaceOrigin locks one allowlist entry so a redemption's membership check and the session it then mints cannot straddle a concurrent removal. Zero rows means the origin is gone, and the caller refuses. hikyo:instance-scoped

func (*Queries) LockOAuth2ProviderForDelete

func (q *Queries) LockOAuth2ProviderForDelete(ctx context.Context, id string) (string, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) LockOIDCProviderForDelete

func (q *Queries) LockOIDCProviderForDelete(ctx context.Context, id string) (string, error)

Structural twin of the postgres lock: BEGIN IMMEDIATE already holds the database write lock for the whole delete tx, so a concurrent mint guard cannot interleave; this read confirms the row still exists (no-rows => ErrProviderNotFound) and keeps the delete path identical across engines. hikyo:authn-resolution

func (*Queries) LockOrg

func (q *Queries) LockOrg(ctx context.Context, id string) (string, error)

LockOrg serializes retention-cap changes with project override changes. SQLite write transactions are already instance-serialized by _txlock=immediate; this matching read keeps the cross-engine store seam.

func (*Queries) LockPrincipalRow

func (q *Queries) LockPrincipalRow(ctx context.Context, id string) (string, error)

Principal row lock (#54 B14): every grant writer takes it so the credential- reset org-bounded test serializes against a concurrent grant landing. sqlite's single writer serializes trivially; postgres takes FOR UPDATE. The grant-lock analyzer pins that this sits inside every grant writer. hikyo:authn-resolution

func (*Queries) LockProject

func (q *Queries) LockProject(ctx context.Context, arg LockProjectParams) (string, error)

LockProject takes the project row for the length of the transaction, so every environment-set mutation on one project serializes. It is what makes the environment cap and the append position race-free: two creates at cap-1 would otherwise both read the same count and both insert.

On sqlite this statement is a plain read: the write pool is a single connection opened with _txlock=immediate, so write transactions already serialize instance-wide and there is nothing finer to take. The query exists on both engines because the store method must, and because the cross-engine check requires the same query names.

func (*Queries) LockSAMLProviderForDelete

func (q *Queries) LockSAMLProviderForDelete(ctx context.Context, id string) (string, error)

SQLite write transactions already serialize; this existence read mirrors PostgreSQL's row lock and preserves one cross-engine delete sequence. hikyo:authn-resolution

func (*Queries) LockSCIMBinding

func (q *Queries) LockSCIMBinding(ctx context.Context, arg LockSCIMBindingParams) (int64, error)

Every mutation on a binding's subtree takes this lock FIRST. It is a no-op write, not a read: a SELECT takes no row lock, so two reconciliations for one binding would interleave. `last_contact_at` is deliberately untouched -- an administrator editing the mapping table is not the identity provider making contact (ADR section 9).

func (*Queries) LockSelfConfigBinding

func (q *Queries) LockSelfConfigBinding(ctx context.Context) (SelfConfigBinding, error)

hikyo:instance-scoped

func (*Queries) LockSelfConfigMembership

func (q *Queries) LockSelfConfigMembership(ctx context.Context) error

hikyo:instance-scoped

func (*Queries) LockSnapshotForRetentionConsequence

func (q *Queries) LockSnapshotForRetentionConsequence(ctx context.Context, arg LockSnapshotForRetentionConsequenceParams) (string, error)

Retention/GC (#53). Scheduler statements are cross-tenant by definition and run only under the scheduler system-proof site. Tenant policy and pin reads carry the ordinary proof-bound chain conjuncts.

func (*Queries) LockWorkspaceOrigin

func (q *Queries) LockWorkspaceOrigin(ctx context.Context, origin string) (string, error)

hikyo:authn-resolution

func (*Queries) MachineCredentialByVerifier

func (q *Queries) MachineCredentialByVerifier(ctx context.Context, verifier []byte) (MachineCredential, error)

Authentication's single indexed read. It returns the row unconditionally -- revoked, expired and epoch-superseded rows included -- because the caller evaluates every predicate together after a FIXED number of reads. Filtering here would make an unknown credential cost one query and a revoked one two, which is a query-count oracle for which credentials exist. hikyo:authn-resolution

func (*Queries) MarkAccessRequestExpired

func (q *Queries) MarkAccessRequestExpired(ctx context.Context, arg MarkAccessRequestExpiredParams) (int64, error)

MarkAccessRequestExpired resolves one active request as expired, guarded by the state it was selected in so a concurrent decision or revoke wins. hikyo:instance-scoped

func (*Queries) MarkAllPrincipalsUnreconciled

func (q *Queries) MarkAllPrincipalsUnreconciled(ctx context.Context) error

Restore strips every reconciliation stamp: reconciled_epoch is archive data like everything else, and a forged archive could stamp its principals "already reconciled" against any future restore epoch. Zero is always below the post-restore restore_epoch, so every restored principal starts inert. hikyo:authn-resolution

func (*Queries) MarkApprovalRequestExpired

func (q *Queries) MarkApprovalRequestExpired(ctx context.Context, arg MarkApprovalRequestExpiredParams) (int64, error)

MarkApprovalRequestExpired resolves one request as expired, idempotent by the resolved_at IS NULL guard so a concurrent merge that already resolved it wins. Runs under scheduler authority (cross-tenant); annotated and content-pinned. hikyo:instance-scoped

func (*Queries) MarkPlanApplied

func (q *Queries) MarkPlanApplied(ctx context.Context, arg MarkPlanAppliedParams) (int64, error)

MarkPlanApplied stamps the one-shot apply record. The applied = 0 guard makes a second apply of the same plan affect zero rows, which the service maps to the already-applied conflict.

func (*Queries) MarkSAMLSPKeyRetiringCAS

func (q *Queries) MarkSAMLSPKeyRetiringCAS(ctx context.Context, arg MarkSAMLSPKeyRetiringCASParams) (int64, error)

hikyo:authn-resolution

func (*Queries) MarkSnapshotCollected

func (q *Queries) MarkSnapshotCollected(ctx context.Context, arg MarkSnapshotCollectedParams) (int64, error)

MarkSnapshotCollected stamps the collection and drops the payload-class columns held on the header row itself. The parameter contract is payload: it is charged to the project storage quota beside the entries, every reader of it needs the entries the collection removes, and '{}' decodes as the valid empty contract. hikyo:instance-scoped

func (*Queries) MaxInstanceAudit

func (q *Queries) MaxInstanceAudit(ctx context.Context) (int64, error)

func (*Queries) MaxKnownCredentialEpoch

func (q *Queries) MaxKnownCredentialEpoch(ctx context.Context) (interface{}, error)

The largest credential epoch appearing ANYWHERE in the datastore - the instance row and every epoch-stamped artifact table. Restore derives its new epoch as this value + 1 rather than trusting the archive's own counter: an archive is attacker-forgeable by anyone holding the PUBLIC recipient, and a forged archive that understates the instance epoch while stamping its planted credentials one higher would otherwise come back to life on the bump (K2: restored verifiers never trusted - including their epoch stamps). hikyo:authn-resolution

func (*Queries) MaxTenantAuditEnv

func (q *Queries) MaxTenantAuditEnv(ctx context.Context, arg MaxTenantAuditEnvParams) (int64, error)

func (*Queries) MaxTenantAuditOrg

func (q *Queries) MaxTenantAuditOrg(ctx context.Context, orgID string) (int64, error)

Session ceiling reads (#502): the interactive query pins a stable upper seq bound on its first page so paging terminates across concurrent writes, and so a query never chases the audit.query events its own reads append. Chain- confined exactly like the page reads. The CAST pins the type for sqlc; an empty trail is a 0 ceiling, not NULL.

func (*Queries) MaxTenantAuditProject

func (q *Queries) MaxTenantAuditProject(ctx context.Context, arg MaxTenantAuditProjectParams) (int64, error)

func (*Queries) NextEnvironmentOrder

func (q *Queries) NextEnvironmentOrder(ctx context.Context, arg NextEnvironmentOrderParams) (int64, error)

NextEnvironmentOrder is the append position: one past the highest order in use, NOT the row count. Deleting an environment deliberately leaves a gap, so a count would hand the next create a position another row already holds. The CAST pins the column type; without it sqlc types COALESCE as untyped.

func (*Queries) NextSelfConfigRolloutSequence

func (q *Queries) NextSelfConfigRolloutSequence(ctx context.Context, enrollmentID string) (int64, error)

hikyo:instance-scoped

func (*Queries) OrgEmailInvitationMaxCredentialEpoch

func (q *Queries) OrgEmailInvitationMaxCredentialEpoch(ctx context.Context) (interface{}, error)

The restore catalog probe confirms the table exists before this runs. hikyo:reason restore must outrun every attacker-controlled email invitation epoch stamp hikyo:authn-resolution

func (*Queries) PKIActiveIssuer

func (q *Queries) PKIActiveIssuer(ctx context.Context, name string) (PKIActiveIssuerRow, error)

hikyo:reason StorePKIIssuersActivePublic permits the existing instance-wide active CA projection for a verified environment operation; sealed keys are excluded. hikyo:instance-scoped

func (*Queries) PKIBoundProfile

func (q *Queries) PKIBoundProfile(ctx context.Context, arg PKIBoundProfileParams) (PkiProfile, error)

func (*Queries) PKIBoundProfiles

func (q *Queries) PKIBoundProfiles(ctx context.Context, arg PKIBoundProfilesParams) ([]PkiProfile, error)

func (*Queries) PKIBumpCertificateRevocation

func (q *Queries) PKIBumpCertificateRevocation(ctx context.Context, id string) error

hikyo:reason Called only after a proof-scoped certificate revoke CAS or closed PKIRuntime unknown-state CAS succeeds in the same transaction; bumps that certificate issuer CRL sequence. hikyo:instance-scoped

func (*Queries) PKIBumpIssuerRevocation

func (q *Queries) PKIBumpIssuerRevocation(ctx context.Context, id string) error

hikyo:reason Called only after successful StorePKICertificatesRevokeLive changes in the same transaction; global CA sequence forces CRL refresh for those leaves. hikyo:instance-scoped

func (*Queries) PKIClaimRenewal

func (q *Queries) PKIClaimRenewal(ctx context.Context, arg PKIClaimRenewalParams) (int64, error)

func (*Queries) PKICompleteRenewal

func (q *Queries) PKICompleteRenewal(ctx context.Context, arg PKICompleteRenewalParams) (int64, error)

func (*Queries) PKICountLiveCertificates

func (q *Queries) PKICountLiveCertificates(ctx context.Context, arg PKICountLiveCertificatesParams) (int64, error)

hikyo:reason StorePKICertificatesCountLive verifies instance-config authority; retiring a global CA must count all dependent unexpired tenant leaves and child CAs. hikyo:instance-scoped

func (*Queries) PKICreateBinding

func (q *Queries) PKICreateBinding(ctx context.Context, arg PKICreateBindingParams) error

hikyo:reason StorePKIBindingsCreate verifies instance-config authority; operator explicitly names a policy reach, with existing tenant foreign-key and duplicate constraints. hikyo:instance-scoped

func (*Queries) PKICreateCertificate

func (q *Queries) PKICreateCertificate(ctx context.Context, arg PKICreateCertificateParams) error

func (*Queries) PKICreateIssuer

func (q *Queries) PKICreateIssuer(ctx context.Context, arg PKICreateIssuerParams) error

hikyo:reason StorePKIIssuersCreate verifies instance-config authority before creating an instance-wide CA key version. hikyo:instance-scoped

func (*Queries) PKICreateProfile

func (q *Queries) PKICreateProfile(ctx context.Context, arg PKICreateProfileParams) error

hikyo:reason StorePKIProfilesCreate verifies instance-config authority before creating a global certificate policy definition. hikyo:instance-scoped

func (*Queries) PKIDeleteBinding

func (q *Queries) PKIDeleteBinding(ctx context.Context, arg PKIDeleteBindingParams) (int64, error)

hikyo:reason StorePKIBindingsDelete verifies instance-config authority; operator deletes only the named binding belonging to the named global policy. hikyo:instance-scoped

func (*Queries) PKIDeleteProfile

func (q *Queries) PKIDeleteProfile(ctx context.Context, id string) (int64, error)

hikyo:reason StorePKIProfilesDelete verifies instance-config authority; deletes the global policy after its bindings are removed in the same transaction. hikyo:instance-scoped

func (*Queries) PKIDeleteProfileBindings

func (q *Queries) PKIDeleteProfileBindings(ctx context.Context, id string) error

hikyo:reason StorePKIProfilesDelete verifies instance-config authority; removes an operator-owned global policy reach before deleting that policy in the same transaction. hikyo:instance-scoped

func (*Queries) PKIDestroyIssuerKey

func (q *Queries) PKIDestroyIssuerKey(ctx context.Context, arg PKIDestroyIssuerKeyParams) (int64, error)

hikyo:reason StorePKIIssuersDestroyKey verifies instance-config authority; terminal CA transition destroys the sealed key under state/version CAS. hikyo:instance-scoped

func (*Queries) PKIFailCertificate

func (q *Queries) PKIFailCertificate(ctx context.Context, arg PKIFailCertificateParams) (int64, error)

func (*Queries) PKIFenceIssuance

func (q *Queries) PKIFenceIssuance(ctx context.Context, id string) (int64, error)

hikyo:reason StorePKIIssuersFence verifies issuance authority; writes the global CA counter only while active and not held, preserving the cross-node signing fence. hikyo:instance-scoped

func (*Queries) PKIFinishCertificate

func (q *Queries) PKIFinishCertificate(ctx context.Context, arg PKIFinishCertificateParams) (int64, error)

func (*Queries) PKIGetCertificate

func (q *Queries) PKIGetCertificate(ctx context.Context, arg PKIGetCertificateParams) (PKIGetCertificateRow, error)

func (*Queries) PKIGetIssuer

func (q *Queries) PKIGetIssuer(ctx context.Context, id string) (PKIGetIssuerRow, error)

hikyo:reason StorePKIIssuersGet verifies instance-config, or StorePKIIssuersPublic permits the existing global public CA projection; this query excludes sealed keys. hikyo:instance-scoped

func (*Queries) PKIGetProfile

func (q *Queries) PKIGetProfile(ctx context.Context, name string) (PkiProfile, error)

hikyo:reason StorePKIProfilesGet verifies instance-config authority; resolves an instance-wide policy definition by name. hikyo:instance-scoped

func (*Queries) PKIInstallIssuer

func (q *Queries) PKIInstallIssuer(ctx context.Context, arg PKIInstallIssuerParams) (int64, error)

hikyo:reason StorePKIIssuersInstall verifies instance-config authority; pending CA activation retains the original state and row-version CAS. hikyo:instance-scoped

func (*Queries) PKIIssuerKey

func (q *Queries) PKIIssuerKey(ctx context.Context, id string) (PKIIssuerKeyRow, error)

hikyo:reason StorePKIIssuersKey or StorePKIIssuersSigning verifies the closed in-process signer capability before reading sealed CA key material. hikyo:instance-scoped

func (*Queries) PKIListBindings

func (q *Queries) PKIListBindings(ctx context.Context, profileID string) ([]PKIListBindingsRow, error)

hikyo:reason StorePKIBindingsList verifies instance-config authority; operator reads explicit tenant reaches of one global policy. hikyo:instance-scoped

func (*Queries) PKIListCertificates

func (q *Queries) PKIListCertificates(ctx context.Context, arg PKIListCertificatesParams) ([]PKIListCertificatesRow, error)

func (*Queries) PKIListIssuers

func (q *Queries) PKIListIssuers(ctx context.Context) ([]PKIListIssuersRow, error)

hikyo:reason StorePKIIssuersList verifies instance-config authority; CA issuer versions are instance-wide public metadata ordered by name/version. hikyo:instance-scoped

func (*Queries) PKIListProfiles

func (q *Queries) PKIListProfiles(ctx context.Context) ([]PkiProfile, error)

hikyo:reason StorePKIProfilesList verifies instance-config authority; certificate policy definitions are instance-wide and contain no tenant certificate rows. hikyo:instance-scoped

func (*Queries) PKIPublishCRL

func (q *Queries) PKIPublishCRL(ctx context.Context, arg PKIPublishCRLParams) (int64, error)

hikyo:reason StorePKIIssuersPublishCRL verifies instance-config, or closed PKIRuntime publishes a signed global CA CRL; original active/retiring state and prior-number CAS remain. hikyo:instance-scoped

func (*Queries) PKIReleaseRenewal

func (q *Queries) PKIReleaseRenewal(ctx context.Context, arg PKIReleaseRenewalParams) (int64, error)

func (*Queries) PKIRevokeCertificate

func (q *Queries) PKIRevokeCertificate(ctx context.Context, arg PKIRevokeCertificateParams) (int64, error)

func (*Queries) PKIRevokeLiveCertificates

func (q *Queries) PKIRevokeLiveCertificates(ctx context.Context, arg PKIRevokeLiveCertificatesParams) (int64, error)

hikyo:reason StorePKICertificatesRevokeLive verifies instance-config authority; compromised global CA revocation must cover all dependent tenant leaves. hikyo:instance-scoped

func (*Queries) PKIRevokeParent

func (q *Queries) PKIRevokeParent(ctx context.Context, id string) error

hikyo:reason Called only after successful StorePKIIssuersDestroyKey revocation CAS in the same transaction; the global parent CA revocation sequence covers the revoked child. hikyo:instance-scoped

func (*Queries) PKIRevokedChildren

func (q *Queries) PKIRevokedChildren(ctx context.Context, arg PKIRevokedChildrenParams) ([]PKIRevokedChildrenRow, error)

hikyo:reason Same verified instance-config or closed PKIRuntime CRL assembly authority; a global parent CRL must include revoked child CA certificates. hikyo:instance-scoped

func (*Queries) PKIRevokedEntries

func (q *Queries) PKIRevokedEntries(ctx context.Context, arg PKIRevokedEntriesParams) ([]PKIRevokedEntriesRow, error)

hikyo:reason StorePKICertificatesRevokedEntries verifies instance-config, or closed PKIRuntime CRL assembly reads all unexpired revoked/unknown leaves for one global CA. hikyo:instance-scoped

func (*Queries) PKISetIssuerHold

func (q *Queries) PKISetIssuerHold(ctx context.Context, arg PKISetIssuerHoldParams) (int64, error)

hikyo:reason StorePKIIssuersHold verifies instance-config authority; global CA restore hold requires the original row-version CAS. hikyo:instance-scoped

func (*Queries) PKISigningIssuer

func (q *Queries) PKISigningIssuer(ctx context.Context, id string) (PKISigningIssuerRow, error)

hikyo:reason StorePKIIssuersSigning verifies signing authority before reading the active global CA public row; issuer fencing remains required before issuance. hikyo:instance-scoped

func (*Queries) PKITransitionIssuer

func (q *Queries) PKITransitionIssuer(ctx context.Context, arg PKITransitionIssuerParams) (int64, error)

hikyo:reason StorePKIIssuersTransition verifies instance-config authority; global CA transition requires prior state and row-version CAS. hikyo:instance-scoped

func (*Queries) PKIUpdateProfile

func (q *Queries) PKIUpdateProfile(ctx context.Context, arg PKIUpdateProfileParams) (int64, error)

hikyo:reason StorePKIProfilesUpdate verifies instance-config authority; global policy update retains its row-version CAS and service narrowing checks. hikyo:instance-scoped

func (*Queries) PageInstanceAudit

func (q *Queries) PageInstanceAudit(ctx context.Context, arg PageInstanceAuditParams) ([]AuditInstanceEvent, error)

func (*Queries) PageInstanceAuditExport

func (q *Queries) PageInstanceAuditExport(ctx context.Context, arg PageInstanceAuditExportParams) ([]AuditInstanceEvent, error)

func (*Queries) PageSCIMGroups

func (q *Queries) PageSCIMGroups(ctx context.Context, arg PageSCIMGroupsParams) ([]ScimGroup, error)

func (*Queries) PageSCIMGroupsByDisplayName

func (q *Queries) PageSCIMGroupsByDisplayName(ctx context.Context, arg PageSCIMGroupsByDisplayNameParams) ([]ScimGroup, error)

func (*Queries) PageSCIMGroupsByExternalID

func (q *Queries) PageSCIMGroupsByExternalID(ctx context.Context, arg PageSCIMGroupsByExternalIDParams) ([]ScimGroup, error)

func (*Queries) PageSCIMUsers

func (q *Queries) PageSCIMUsers(ctx context.Context, arg PageSCIMUsersParams) ([]ScimUser, error)

func (*Queries) PageSCIMUsersByExternalID

func (q *Queries) PageSCIMUsersByExternalID(ctx context.Context, arg PageSCIMUsersByExternalIDParams) ([]ScimUser, error)

func (*Queries) PageSCIMUsersByUserName

func (q *Queries) PageSCIMUsersByUserName(ctx context.Context, arg PageSCIMUsersByUserNameParams) ([]ScimUser, error)

func (*Queries) PageTenantAuditEnv

func (q *Queries) PageTenantAuditEnv(ctx context.Context, arg PageTenantAuditEnvParams) ([]AuditTenantEvent, error)

func (*Queries) PageTenantAuditExportEnv

func (q *Queries) PageTenantAuditExportEnv(ctx context.Context, arg PageTenantAuditExportEnvParams) ([]AuditTenantEvent, error)

func (*Queries) PageTenantAuditExportOrg

func (q *Queries) PageTenantAuditExportOrg(ctx context.Context, arg PageTenantAuditExportOrgParams) ([]AuditTenantEvent, error)

Export query names mirror postgres for the predicate-confinement parity invariant. sqlite's single writer makes commit order equal seq order.

func (*Queries) PageTenantAuditExportProject

func (q *Queries) PageTenantAuditExportProject(ctx context.Context, arg PageTenantAuditExportProjectParams) ([]AuditTenantEvent, error)

func (*Queries) PageTenantAuditOrg

func (q *Queries) PageTenantAuditOrg(ctx context.Context, arg PageTenantAuditOrgParams) ([]AuditTenantEvent, error)

func (*Queries) PageTenantAuditProject

func (q *Queries) PageTenantAuditProject(ctx context.Context, arg PageTenantAuditProjectParams) ([]AuditTenantEvent, error)

func (*Queries) PeekDeveloperCredentialPolicy

func (q *Queries) PeekDeveloperCredentialPolicy(ctx context.Context) (int64, error)

hikyo:reason Environment read authorization precedes the non-locking lifetime ceiling affordance. hikyo:authn-resolution

func (*Queries) PersonalEligibleCandidates

func (q *Queries) PersonalEligibleCandidates(ctx context.Context, orgID sql.NullString) ([]string, error)

The candidate superset for the matrix denominator: humans with an account who hold `reveal` from a grant, a temporary access grant or a member access rule that could reach the environment. It decides nothing: authorize's own read-and-reveal evaluation runs over each candidate's grants and rules. hikyo:reason the personal-value counts denominator enumerates human principals that might hold reveal in one environment; authz evaluates each with the chokepoint's grant and rule logic and returns only a count. hikyo:authn-resolution

func (*Queries) PersonalOwnerHoldsInEnvironment

func (q *Queries) PersonalOwnerHoldsInEnvironment(ctx context.Context, arg PersonalOwnerHoldsInEnvironmentParams) (int64, error)

Personal values on the authorization surface (#1235, personal-values ADR, Who can do what). ASCII only: multibyte characters shift sqlite statement offsets. The owner fallback authorize() makes for personal-value list and delete: an owner may list masked and delete their own values whatever their grants, while the account lives. It carries the gates ListGrantsForPrincipal carries plus kind = 'human', and answers only whether the principal holds a value or a notice in the resolved environment. hikyo:reason authorize() admits the owner's own personal-value list and delete in an environment where the principal holds a value or notice; returns a count, never ciphertext or another principal's row. hikyo:authn-resolution

func (*Queries) PersonalReportEvidenceFloor

PersonalReportEvidenceFloor is the oldest event the project's trail still holds: the report's evidence cannot reach further back.

func (*Queries) PersonalReportKeyChanges

func (q *Queries) PersonalReportKeyChanges(ctx context.Context, arg PersonalReportKeyChangesParams) ([]PersonalReportKeyChangesRow, error)

PersonalReportKeyChanges is when each key name was last published in each environment, so the report can say whether a value changed since receipt.

func (*Queries) PersonalReportMemberSeen

func (q *Queries) PersonalReportMemberSeen(ctx context.Context, arg PersonalReportMemberSeenParams) (string, error)

PersonalReportMemberSeen finds one project event naming the member as actor, recorded authority or object, so a report about someone with no recorded tie to the project answers as a nonexistent member. A report read about the member is not a tie, or one report would make every later one answer.

func (*Queries) PersonalReportReceipts

func (q *Queries) PersonalReportReceipts(ctx context.Context, arg PersonalReportReceiptsParams) ([]PersonalReportReceiptsRow, error)

PersonalReportReceipts is the offboarding report's evidence: the shared keys a member is recorded as receiving, per environment, with the latest receipt. It matches the recorded human authority as well as the actor, because a developer credential's actor is the developer principal. Only successful disclosure events count; personal_value.* is the member's own.

func (*Queries) PersonalRequiredKeysForEnvironment

func (q *Queries) PersonalRequiredKeysForEnvironment(ctx context.Context, arg PersonalRequiredKeysForEnvironmentParams) ([]string, error)

func (*Queries) PersonalValueHolderCounts

func (q *Queries) PersonalValueHolderCounts(ctx context.Context, arg PersonalValueHolderCountsParams) ([]PersonalValueHolderCountsRow, error)

Personal values: matrix counts and the offboarding report (#1235, personal-values ADR). Tenant-scoped statements: the reserved chain_* parameters are bound by the store's binding layer from proof fields only. No statement selects ciphertext or an audit payload: counts, key names, environment ids and timestamps only. ASCII only.

func (*Queries) PersonalValueNoticeCounts

func (q *Queries) PersonalValueNoticeCounts(ctx context.Context, arg PersonalValueNoticeCountsParams) ([]PersonalValueNoticeCountsRow, error)

func (*Queries) PollCLILogin

func (q *Queries) PollCLILogin(ctx context.Context, arg PollCLILoginParams) error

hikyo:reason durable per-transaction device polling timestamps and intervals enforce RFC 8628 slowdown hikyo:authn-resolution

func (*Queries) PostLegacyMaxCredentialEpoch

func (q *Queries) PostLegacyMaxCredentialEpoch(ctx context.Context) (interface{}, error)

The credential_epoch tables added after the pinned legacy genesis (00057). A restore bumps the epoch against the ARCHIVE's schema, before rolling forward, so these cannot join MaxKnownCredentialEpoch (a pre-00057 archive has no such tables). authn.AdvanceRestoreEpoch runs this query whenever the restored schema carries them; MaxKnownCredentialEpoch stays the frozen legacy set. A later epoch-stamped table joins this list. hikyo:authn-resolution

func (*Queries) PrivacyAccount

func (q *Queries) PrivacyAccount(ctx context.Context, principalID string) (PrivacyAccountRow, error)

Host-local privacy operations. Explicit subject scope, never a network surface. hikyo:authn-resolution

func (*Queries) PrivacyAuditInstance

func (q *Queries) PrivacyAuditInstance(ctx context.Context, principalID sql.NullString) ([]PrivacyAuditInstanceRow, error)

hikyo:authn-resolution

func (*Queries) PrivacyAuditTenant

func (q *Queries) PrivacyAuditTenant(ctx context.Context, principalID sql.NullString) ([]PrivacyAuditTenantRow, error)

hikyo:authn-resolution

func (*Queries) PrivacyCorrectAccount

func (q *Queries) PrivacyCorrectAccount(ctx context.Context, arg PrivacyCorrectAccountParams) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseAccount

func (q *Queries) PrivacyEraseAccount(ctx context.Context, arg PrivacyEraseAccountParams) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseAuthorities

func (q *Queries) PrivacyEraseAuthorities(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseCeremonies

func (q *Queries) PrivacyEraseCeremonies(ctx context.Context, accountID sql.NullString) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseExternalIdentities

func (q *Queries) PrivacyEraseExternalIdentities(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseGrantOrigins

func (q *Queries) PrivacyEraseGrantOrigins(ctx context.Context, principalID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseGrants

func (q *Queries) PrivacyEraseGrants(ctx context.Context, principalID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseHandoffs

func (q *Queries) PrivacyEraseHandoffs(ctx context.Context, principalID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseOIDCTransactions

func (q *Queries) PrivacyEraseOIDCTransactions(ctx context.Context, accountID sql.NullString) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseOrgEmailInvitations

func (q *Queries) PrivacyEraseOrgEmailInvitations(ctx context.Context, accountID sql.NullString) error

hikyo:reason Account erasure unbinds every invitation bound to the erased account; the row stays listed until it expires and can never validate. hikyo:authn-resolution

func (*Queries) PrivacyErasePasswords

func (q *Queries) PrivacyErasePasswords(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseRecoveryCodes

func (q *Queries) PrivacyEraseRecoveryCodes(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseRuleItems

func (q *Queries) PrivacyEraseRuleItems(ctx context.Context, principalID string) error

Privacy erasure removes an erased principal's rules with their grants. hikyo:authn-resolution

func (*Queries) PrivacyEraseRules

func (q *Queries) PrivacyEraseRules(ctx context.Context, principalID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseSAMLTransactions

func (q *Queries) PrivacyEraseSAMLTransactions(ctx context.Context, accountID sql.NullString) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseSCIMMembers

func (q *Queries) PrivacyEraseSCIMMembers(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseSCIMUsers

func (q *Queries) PrivacyEraseSCIMUsers(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseTOTP

func (q *Queries) PrivacyEraseTOTP(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseTOTPChallenges

func (q *Queries) PrivacyEraseTOTPChallenges(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacyEraseWebAuthn

func (q *Queries) PrivacyEraseWebAuthn(ctx context.Context, accountID string) error

hikyo:authn-resolution

func (*Queries) PrivacySessions

func (q *Queries) PrivacySessions(ctx context.Context, principalID string) ([]PrivacySessionsRow, error)

hikyo:authn-resolution

func (*Queries) PrivacySetState

func (q *Queries) PrivacySetState(ctx context.Context, arg PrivacySetStateParams) error

hikyo:authn-resolution

func (*Queries) ProjectMachineReveal

func (q *Queries) ProjectMachineReveal(ctx context.Context, id string) (ProjectMachineRevealRow, error)

The machine-reveal opt-in is read beside session resolution: the grant writer's class check and the chokepoint's machine conjunct both need it before (or while) an operation proof is minted. hikyo:authn-resolution

func (*Queries) ProjectSnapshotRevisions

func (q *Queries) ProjectSnapshotRevisions(ctx context.Context, arg ProjectSnapshotRevisionsParams) ([]ProjectSnapshotRevisionsRow, error)

ProjectSnapshotRevisions returns the latest published revision per environment across the project, the definitions plan/apply pin (#70). The aggregate transfers one row per environment rather than the lifetime history; the analyzer proves the chain predicate through GROUP BY, which only groups rows the chain conjuncts already confined.

func (*Queries) PruneCLILogins

func (q *Queries) PruneCLILogins(ctx context.Context, expiresAt string) error

hikyo:reason expired first-party login transaction metadata is removed opportunistically at issuance hikyo:authn-resolution

func (*Queries) PruneExpiredOrgEmailInvitations

func (q *Queries) PruneExpiredOrgEmailInvitations(ctx context.Context, expiresAt string) (int64, error)

hikyo:reason The hourly pruning run deletes only rows already past their expiry. hikyo:authn-resolution

func (*Queries) PruneExpiredPlans

func (q *Queries) PruneExpiredPlans(ctx context.Context, expiresAt string) (int64, error)

PruneExpiredPlans deletes expired, unapplied plans across the instance, run by the hourly retention GC. Applied plans are kept as provenance records and never pruned. hikyo:instance-scoped

func (*Queries) PruneExpiredRegistrationSignup

func (q *Queries) PruneExpiredRegistrationSignup(ctx context.Context, arg PruneExpiredRegistrationSignupParams) (int64, error)

hikyo:reason The singleton reaper deletes only its observed expired row and rechecks expiry to preserve concurrent resend. hikyo:authn-resolution

func (*Queries) PruneInstanceAuditRetention

func (q *Queries) PruneInstanceAuditRetention(ctx context.Context, arg PruneInstanceAuditRetentionParams) ([]PruneInstanceAuditRetentionRow, error)

hikyo:instance-scoped

func (*Queries) PruneRemotePairingExchanges

func (q *Queries) PruneRemotePairingExchanges(ctx context.Context, now string) error

hikyo:reason Remove expired exchange secrets in bounded control-plane lifecycle work. hikyo:authn-resolution

func (*Queries) PruneRemotePairingInvites

func (q *Queries) PruneRemotePairingInvites(ctx context.Context, now string) error

hikyo:reason Remove expired finite invitation state after retaining its audit trail separately. hikyo:authn-resolution

func (*Queries) PruneRemotePairingReplays

func (q *Queries) PruneRemotePairingReplays(ctx context.Context, now string) error

hikyo:reason Remove only expired replay records before bounded admission. hikyo:authn-resolution

func (*Queries) PruneTenantAuditRetention

func (q *Queries) PruneTenantAuditRetention(ctx context.Context, arg PruneTenantAuditRetentionParams) ([]PruneTenantAuditRetentionRow, error)

hikyo:instance-scoped

func (*Queries) PurgeDeliveryTargetReport

func (q *Queries) PurgeDeliveryTargetReport(ctx context.Context, arg PurgeDeliveryTargetReportParams) (int64, error)

PurgeDeliveryTargetReport deletes one expired row, guarded by the same cutoff so a report accepted since the select keeps its row. hikyo:instance-scoped

func (*Queries) PutSelfConfigNode

func (q *Queries) PutSelfConfigNode(ctx context.Context, arg PutSelfConfigNodeParams) error

hikyo:instance-scoped

func (*Queries) PutSelfConfigSeedAttestation

func (q *Queries) PutSelfConfigSeedAttestation(ctx context.Context, arg PutSelfConfigSeedAttestationParams) error

hikyo:instance-scoped

func (*Queries) PutSelfConfigSeedInput

func (q *Queries) PutSelfConfigSeedInput(ctx context.Context, arg PutSelfConfigSeedInputParams) error

hikyo:instance-scoped

func (*Queries) ReactivateFederatedBinding

func (q *Queries) ReactivateFederatedBinding(ctx context.Context, arg ReactivateFederatedBindingParams) (int64, error)

The restore predicate's writer (section Restore). Re-activation is a RE-VALIDATION, not a trust: a restore can resurrect a binding that was removed precisely because that workload was compromised. The re-activation UX is #76's; the column and the refusal it drives land here, because a restore path that arrives later cannot retrofit a predicate onto tokens already accepted. hikyo:authn-resolution

func (*Queries) ReadAuthRefusalWindow

func (q *Queries) ReadAuthRefusalWindow(ctx context.Context) (ReadAuthRefusalWindowRow, error)

hikyo:reason singleton pre-auth refusal accounting reads datastore time and bounded state under its transaction owner hikyo:authn-resolution

func (*Queries) RebindSAMLExternalIdentityProvider

func (q *Queries) RebindSAMLExternalIdentityProvider(ctx context.Context, arg RebindSAMLExternalIdentityProviderParams) (int64, error)

Re-adding the same byte-exact SAML entity creates a new provider row while preserving the human link. The old provider id is a provenance CAS guard: only the identity just verified by that entity may move to the live row. hikyo:authn-resolution

func (*Queries) ReconcilePrincipal

func (q *Queries) ReconcilePrincipal(ctx context.Context, id string) (int64, error)

One principal, named explicitly. There is deliberately no statement here that reconciles a set: per-principal reconciliation is an informed assertion about one identity, and a bulk form would make it a keystroke. hikyo:authn-resolution

func (*Queries) RecordDeliveryTargetRefusal

func (q *Queries) RecordDeliveryTargetRefusal(ctx context.Context, arg RecordDeliveryTargetRefusalParams) (int64, error)

func (*Queries) RecordFileTargetReport

func (q *Queries) RecordFileTargetReport(ctx context.Context, arg RecordFileTargetReportParams) (int64, error)

The report is accepted only from the bound principal, in the target's own environment: the WHERE clause is the authority, not a second check.

func (*Queries) RecordPersonalValueNoticesForOwner

func (q *Queries) RecordPersonalValueNoticesForOwner(ctx context.Context, arg RecordPersonalValueNoticesForOwnerParams) error

hikyo:reason Losing qualification through a credential change must delete the owner's values in that same authentication transaction, across every project, before any new factor can be enrolled (personal-values ADR, Which accounts qualify); the statement is keyed on the account's own principal and copies names only. hikyo:authn-resolution

func (*Queries) RecordRemoteFetchFailure

func (q *Queries) RecordRemoteFetchFailure(ctx context.Context, arg RecordRemoteFetchFailureParams) error

A failed fetch records the attempt and its outcome and PRESERVES the last known listing, which is what makes "unreachable 2h - last known state shown" possible. Writing NULLs here would discard the genuinely useful signal. hikyo:instance-scoped

func (*Queries) RecordSecretValueOccurrence

func (q *Queries) RecordSecretValueOccurrence(ctx context.Context, arg RecordSecretValueOccurrenceParams) error

RecordSecretValueOccurrence is idempotent on the value-entry primary key: a publish records each secret occurrence it materializes without first enumerating the environment's lifetime occurrence history.

func (*Queries) RecoverSelfConfigTarget

func (q *Queries) RecoverSelfConfigTarget(ctx context.Context, arg RecoverSelfConfigTargetParams) (int64, error)

hikyo:instance-scoped

func (*Queries) RecoveryListGrantsBeforeAccess

func (q *Queries) RecoveryListGrantsBeforeAccess(ctx context.Context, principalID string) ([]RecoveryListGrantsBeforeAccessRow, error)

Verified source schemas 50 through 65 predate temporary access (#152): the chokepoint projection without the access_grants branch, for guarded historical recovery only. Same privacy and restore reconciliation gates. hikyo:authn-resolution

func (*Queries) RecoveryListGrantsBeforePrivacy

func (q *Queries) RecoveryListGrantsBeforePrivacy(ctx context.Context, principalID string) ([]RecoveryListGrantsBeforePrivacyRow, error)

Authenticated historical scratch recovery before migration 47 only. Ordinary runtime and current-schema recovery use ListGrantsForPrincipal. hikyo:authn-resolution

func (*Queries) RecoveryListGrantsBeforeSelfConfig

func (q *Queries) RecoveryListGrantsBeforeSelfConfig(ctx context.Context, principalID string) ([]RecoveryListGrantsBeforeSelfConfigRow, error)

Verified source schema 47 retains privacy and restore reconciliation gates. hikyo:authn-resolution

func (*Queries) ReencryptOauth2Provider

func (q *Queries) ReencryptOauth2Provider(ctx context.Context, arg ReencryptOauth2ProviderParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ReencryptOidcProvider

func (q *Queries) ReencryptOidcProvider(ctx context.Context, arg ReencryptOidcProviderParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ReencryptPairingExchanges

func (q *Queries) ReencryptPairingExchanges(ctx context.Context, arg ReencryptPairingExchangesParams) (int64, error)

hikyo:reason Instance reencrypt authorization precedes ciphertext replacement guarded by the old blob; no pairing consent or credential authority is widened. hikyo:authn-resolution

func (*Queries) ReencryptPairingInvites

func (q *Queries) ReencryptPairingInvites(ctx context.Context, arg ReencryptPairingInvitesParams) (int64, error)

hikyo:reason Instance reencrypt authorization precedes ciphertext replacement guarded by the old blob; no pairing consent or credential authority is widened. hikyo:authn-resolution

func (*Queries) ReencryptPasswordCred

func (q *Queries) ReencryptPasswordCred(ctx context.Context, arg ReencryptPasswordCredParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ReencryptPendingChange

func (q *Queries) ReencryptPendingChange(ctx context.Context, arg ReencryptPendingChangeParams) (int64, error)

func (*Queries) ReencryptPersonalValue

func (q *Queries) ReencryptPersonalValue(ctx context.Context, arg ReencryptPersonalValueParams) (int64, error)

func (*Queries) ReencryptPkiIssuer

func (q *Queries) ReencryptPkiIssuer(ctx context.Context, arg ReencryptPkiIssuerParams) (int64, error)

hikyo:instance-scoped

func (*Queries) ReencryptRecoveryCodes

func (q *Queries) ReencryptRecoveryCodes(ctx context.Context, arg ReencryptRecoveryCodesParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ReencryptRemote

func (q *Queries) ReencryptRemote(ctx context.Context, arg ReencryptRemoteParams) (int64, error)

hikyo:instance-scoped

func (*Queries) ReencryptSamlKey

func (q *Queries) ReencryptSamlKey(ctx context.Context, arg ReencryptSamlKeyParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ReencryptSelfConfigSeedInput

func (q *Queries) ReencryptSelfConfigSeedInput(ctx context.Context, arg ReencryptSelfConfigSeedInputParams) (int64, error)

The ciphertext guard also rejects delete/reinsert at the same row version.

func (*Queries) ReencryptSnapshotEntry

func (q *Queries) ReencryptSnapshotEntry(ctx context.Context, arg ReencryptSnapshotEntryParams) (int64, error)

func (*Queries) ReencryptTotpCred

func (q *Queries) ReencryptTotpCred(ctx context.Context, arg ReencryptTotpCredParams) (int64, error)

hikyo:authn-resolution

func (*Queries) ReencryptValueEntry

func (q *Queries) ReencryptValueEntry(ctx context.Context, arg ReencryptValueEntryParams) (int64, error)

ReencryptValueEntry re-seals one value row's ciphertext in place. The id (and thus the AAD) is unchanged -- only the DEK version moves -- so this is exempt from the delete-then-insert-with-fresh-id rule that governs value CHANGES. Compare-and-swap on the old ciphertext: if a concurrent write replaced it, the row is already on a fresh version and this matches zero rows (anti-resurrection).

func (*Queries) ReissueRegistrationSignup

func (q *Queries) ReissueRegistrationSignup(ctx context.Context, arg ReissueRegistrationSignupParams) (int64, error)

hikyo:reason The admitted local signup request rotates only the matched pending signup row under the live registration policy. hikyo:authn-resolution

func (*Queries) RemotePairedConnectionByID

func (q *Queries) RemotePairedConnectionByID(ctx context.Context, id string) (RemotePairedConnection, error)

hikyo:reason Authentication rechecks the enrolled public key inside every directory serve transaction. hikyo:authn-resolution

func (*Queries) RemotePairingExchangeByID

func (q *Queries) RemotePairingExchangeByID(ctx context.Context, id string) (RemotePairingExchange, error)

hikyo:reason Resolve bounded exchange state before atomic invitation consumption. hikyo:authn-resolution

func (*Queries) RemotePairingInviteByCapability

func (q *Queries) RemotePairingInviteByCapability(ctx context.Context, verifier []byte) (RemotePairingInvite, error)

hikyo:reason Resolve the unguessable invitation capability before invoking PAKE. hikyo:authn-resolution

func (*Queries) RemotePairingInviteByID

func (q *Queries) RemotePairingInviteByID(ctx context.Context, id string) (RemotePairingInvite, error)

hikyo:reason Exchange continuation resolves its recorded invitation inside the consuming transaction. hikyo:authn-resolution

func (*Queries) RemotePairingMaxCredentialEpoch

func (q *Queries) RemotePairingMaxCredentialEpoch(ctx context.Context) (interface{}, error)

hikyo:reason A restored archive cannot choose an epoch that reactivates a future-stamped pairing artifact. hikyo:authn-resolution

func (*Queries) RenameEnvironment

func (q *Queries) RenameEnvironment(ctx context.Context, arg RenameEnvironmentParams) (int64, error)

func (*Queries) RenameFolder

func (q *Queries) RenameFolder(ctx context.Context, arg RenameFolderParams) (int64, error)

func (*Queries) RenameKey

func (q *Queries) RenameKey(ctx context.Context, arg RenameKeyParams) (int64, error)

func (*Queries) RenameKeyGroup

func (q *Queries) RenameKeyGroup(ctx context.Context, arg RenameKeyGroupParams) (int64, error)

func (*Queries) RenameOrg

func (q *Queries) RenameOrg(ctx context.Context, arg RenameOrgParams) (int64, error)

func (*Queries) RenameProject

func (q *Queries) RenameProject(ctx context.Context, arg RenameProjectParams) (int64, error)

func (*Queries) RenameRemote

func (q *Queries) RenameRemote(ctx context.Context, arg RenameRemoteParams) (int64, error)

The display name is the one mutable field the ADR admits. hikyo:instance-scoped

func (*Queries) ResolveAccessRequest

func (q *Queries) ResolveAccessRequest(ctx context.Context, arg ResolveAccessRequestParams) (int64, error)

ResolveAccessRequest moves an ACTIVE request to a terminal state. from_state is the state the caller read, so a concurrent resolution makes this a no-op the caller can detect.

func (*Queries) ResolveEnvChain

func (q *Queries) ResolveEnvChain(ctx context.Context, arg ResolveEnvChainParams) (ResolveEnvChainRow, error)

hikyo:authn-resolution

func (*Queries) ResolveKeyByID

func (q *Queries) ResolveKeyByID(ctx context.Context, arg ResolveKeyByIDParams) (ResolveKeyByIDRow, error)

The key a key-aware authorization addresses, resolved from the database in the authorizing transaction: the folder a rule matches on is never taken from the caller. Scoped by the already-resolved chain. hikyo:authn-resolution

func (*Queries) ResolveKeyByName

func (q *Queries) ResolveKeyByName(ctx context.Context, arg ResolveKeyByNameParams) (ResolveKeyByNameRow, error)

hikyo:authn-resolution

func (*Queries) ResolveOrgChain

func (q *Queries) ResolveOrgChain(ctx context.Context, id string) (string, error)

The authorization package's enumerated resolution surface (tenant-isolation ADR bootstrap carve-out): the only statements that read chain tables with request-supplied identifiers, because authorize() runs them to mint the proof everything else requires. Each is annotated and content-pinned in the allowlist fixture - drift fails the build until re-reviewed. Chain resolution is one query, one round trip, regardless of which level is missing: the denormalized chain columns plus composite ancestry FKs make the addressed row's own chain authoritative, so no per-level walk exists. hikyo:authn-resolution

func (*Queries) ResolveProjectChain

func (q *Queries) ResolveProjectChain(ctx context.Context, arg ResolveProjectChainParams) (ResolveProjectChainRow, error)

hikyo:authn-resolution

func (*Queries) ResolveRuleApprovalKeys

func (q *Queries) ResolveRuleApprovalKeys(ctx context.Context, arg ResolveRuleApprovalKeysParams) (string, error)

Resolve only the pinned approval key ids before key-scoped Publish auth. hikyo:authn-resolution hikyo:reason authorize() resolves pinned approval key metadata within the resolved environment before minting a key-scoped proof; request details and ciphertext remain proof-gated.

func (*Queries) ResolveRulePendingKey

func (q *Queries) ResolveRulePendingKey(ctx context.Context, arg ResolveRulePendingKeyParams) (ResolveRulePendingKeyRow, error)

Resolve only the addressed draft's key metadata for key-scoped Publish. hikyo:authn-resolution hikyo:reason authorize() resolves only the caller-owned draft key metadata within the resolved environment before minting a key-scoped Publish proof; ciphertext remains proof-gated.

func (*Queries) RestoreDeveloperPolicySeedOccupied

func (q *Queries) RestoreDeveloperPolicySeedOccupied(ctx context.Context) (bool, error)

Only untouched migration policy defaults may be replaced by a restore. hikyo:reason restore target admission checks developer policy without exposing authentication verifiers hikyo:authn-resolution

func (*Queries) ResumePersonalValue

func (q *Queries) ResumePersonalValue(ctx context.Context, arg ResumePersonalValueParams) (int64, error)

func (*Queries) RetireMasterAtVersion

func (q *Queries) RetireMasterAtVersion(ctx context.Context, version int64) (int64, error)

RetireMasterAtVersion retires the single active master as a compare-and-swap: zero rows means a concurrent master rotation already moved it. Refused while the root is dual-wrapped (two active masters) by the count check in the store.

func (*Queries) RetireMasterWrapperAtEpoch

func (q *Queries) RetireMasterWrapperAtEpoch(ctx context.Context, arg RetireMasterWrapperAtEpochParams) (int64, error)

RetireMasterWrapperAtEpoch retires one wrapper of the dual-wrapped master by its epoch (rotate-root-key --finalize dropping the old root's wrapper). The other wrapper (same version, new epoch) stays active, so after finalize only the new root boots and the old root fails with a root-mismatch.

func (*Queries) RetireRestoredApprovedWorkspaceHandoffs

func (q *Queries) RetireRestoredApprovedWorkspaceHandoffs(ctx context.Context) error

Approved handoffs carry old assurance but no credential epoch. Keep consumed rows for workspace-session provenance and unapproved transactions harmless. hikyo:reason Local-host restore invalidation retires unconsumed approved assurance that lacks an epoch while retaining consumed session provenance. hikyo:authn-resolution

func (*Queries) RetireRestoredPendingLoginChallenges

func (q *Queries) RetireRestoredPendingLoginChallenges(ctx context.Context) error

Pending password proofs have no epoch stamp. Retire them atomically with restore's epoch bump; consumed challenge history remains intact. hikyo:reason Local-host restore invalidation retires unconsumed password proofs that lack an epoch; no tenant request can authorize this recovery act. hikyo:authn-resolution

func (*Queries) RetireRetiringTier3ForScope

func (q *Queries) RetireRetiringTier3ForScope(ctx context.Context, arg RetireRetiringTier3ForScopeParams) (int64, error)

RetireRetiringTier3ForScope completes a reencrypt: once the walk has moved every ciphertext in the scope onto the active version, its retiring versions reference nothing and are retired. Run inside the scope fence, which the writer fence's FOR SHARE blocks against, so no write lands under a version between the walk finishing and this retiring it.

func (*Queries) RetireSCIMConnectionPrincipal

func (q *Queries) RetireSCIMConnectionPrincipal(ctx context.Context, id string) (int64, error)

Step (3) of the binding-deletion state machine. It runs AFTER the binding row is gone -- scim_bindings.connection_principal_id references this row, so the reverse order is a foreign-key violation -- which is why the scoping is expressed as ORPHANHOOD rather than as a join onto a row that no longer exists: the statement can only remove a provisioning connection that NO binding still owns. Combined with an id read from the caller's own proof-scoped binding row, a caller cannot name another org's live connection: a live one is referenced and therefore unmatched, and an unreferenced one is already ownerless. The kind and class predicates keep the statement incapable of touching a human principal.

func (*Queries) RetireTier3KeyAtVersion

func (q *Queries) RetireTier3KeyAtVersion(ctx context.Context, arg RetireTier3KeyAtVersionParams) (int64, error)

RetireTier3KeyAtVersion retires the active key for one scope as a compare-and-swap: only when it is still the version the caller prepared its successor against. It is an UPDATE rather than a delete: the superseded row's blob is what still opens material written under it. Zero rows means a concurrent rotation won -- the caller must refuse, not stack a second successor on the wrong predecessor.

func (*Queries) RevokeAllMachineCredentials

func (q *Queries) RevokeAllMachineCredentials(ctx context.Context, arg RevokeAllMachineCredentialsParams) (int64, error)

hikyo:authn-resolution

func (*Queries) RevokeDeveloperCredential

func (q *Queries) RevokeDeveloperCredential(ctx context.Context, arg RevokeDeveloperCredentialParams) error

hikyo:reason Terminal security invalidation writes authentication state atomically with its authorizing mutation. hikyo:authn-resolution

func (*Queries) RevokeInstanceConnection

func (q *Queries) RevokeInstanceConnection(ctx context.Context, arg RevokeInstanceConnectionParams) (int64, error)

Revocation kills the credential and retires the principal with it, so no orphan principals accumulate and no revoked principal is re-armed.

`revoked_at` is set in place and the row survives, exactly as machine_credentials does: the audit trail's credential id must keep resolving to a describable row after an incident. The verifier is deliberately LEFT ALONE -- Live() already refuses a revoked row, the kind CHECK requires a bearer credential to have one, and a 256-bit random re-mint cannot collide with it. Revocation bites at the next presentation, read in the authenticating transaction, uncached. hikyo:authn-resolution

func (*Queries) RevokeMachineCredential

func (q *Queries) RevokeMachineCredential(ctx context.Context, arg RevokeMachineCredentialParams) (int64, error)

hikyo:authn-resolution

func (*Queries) RevokeRemotePairingInvite

func (q *Queries) RevokeRemotePairingInvite(ctx context.Context, arg RevokeRemotePairingInviteParams) (int64, error)

hikyo:reason Revoke the invitation atomically with its administrative audit record. hikyo:authn-resolution

func (*Queries) RevokeSCIMCredential

func (q *Queries) RevokeSCIMCredential(ctx context.Context, arg RevokeSCIMCredentialParams) (int64, error)

Revocation bites at the NEXT request: the row is marked, not deleted, so the verifier stays occupied and the credential id keeps naming a real thing on the administration surface. hikyo:authn-resolution

func (*Queries) RevokeSCIMCredentialsForBinding

func (q *Queries) RevokeSCIMCredentialsForBinding(ctx context.Context, arg RevokeSCIMCredentialsForBindingParams) (int64, error)

Step (1) of the binding-deletion state machine: every credential dies first, so no new wire transaction can begin. hikyo:authn-resolution

func (*Queries) RotateSessionFactors

func (q *Queries) RotateSessionFactors(ctx context.Context, arg RotateSessionFactorsParams) error

Step-up rotates the session token and rewrites its factor set; the original authenticated_at and ceremony_id are preserved so absolute-age attribution cannot be reset by repeated step-ups. hikyo:authn-resolution enrolment_required is cleared on every rotation: a rotation follows a factor action (step-up or enrolment confirm), so the account now has a factor and the enrolment gate lifts (#760).

func (*Queries) RuleKeyConflictingDraftCount

func (q *Queries) RuleKeyConflictingDraftCount(ctx context.Context, arg RuleKeyConflictingDraftCountParams) (int64, error)

Initial drafts cannot replace another owner's work or an existing-value draft. hikyo:authn-resolution hikyo:reason authorize() checks only draft ownership and absent-baseline metadata before minting an initial-cell draft proof; ciphertext is never selected.

func (*Queries) RuleKeyValueCount

func (q *Queries) RuleKeyValueCount(ctx context.Context, arg RuleKeyValueCountParams) (int64, error)

Metadata-only schema proofs cannot alter a key's existing value delivery. hikyo:authn-resolution hikyo:reason authorize() checks target-key value absence before minting an internal metadata-only schema snapshot proof; ciphertext is never selected.

func (*Queries) RuntimeDynamicAssertLease

func (q *Queries) RuntimeDynamicAssertLease(ctx context.Context, arg RuntimeDynamicAssertLeaseParams) (int64, error)

func (*Queries) RuntimeDynamicClaimDueLease

func (q *Queries) RuntimeDynamicClaimDueLease(ctx context.Context, now string) (RuntimeDynamicClaimDueLeaseRow, error)

hikyo:reason DynamicRuntime closed scheduler claims one due lease across tenants under the per-org concurrency cap; writes bind the selected immutable chain and crash-fence token. hikyo:instance-scoped

func (*Queries) RuntimeDynamicClaimLease

func (q *Queries) RuntimeDynamicClaimLease(ctx context.Context, arg RuntimeDynamicClaimLeaseParams) error

func (*Queries) RuntimeDynamicCloseEffect

func (q *Queries) RuntimeDynamicCloseEffect(ctx context.Context, arg RuntimeDynamicCloseEffectParams) error

func (*Queries) RuntimeDynamicCountActiveLeases

func (q *Queries) RuntimeDynamicCountActiveLeases(ctx context.Context) (int64, error)

hikyo:reason DynamicRuntime metrics scrape returns only the instance-wide count of active leases through the closed runtime boundary. hikyo:instance-scoped

func (*Queries) RuntimeDynamicCountUnknownEffects

func (q *Queries) RuntimeDynamicCountUnknownEffects(ctx context.Context) (int64, error)

hikyo:reason DynamicRuntime metrics scrape returns only the instance-wide count of unknown effects through the closed runtime boundary. hikyo:instance-scoped

func (*Queries) RuntimeDynamicInsertEffect

func (q *Queries) RuntimeDynamicInsertEffect(ctx context.Context, arg RuntimeDynamicInsertEffectParams) error

func (*Queries) RuntimeDynamicInsertLeaseAudit

func (q *Queries) RuntimeDynamicInsertLeaseAudit(ctx context.Context, arg RuntimeDynamicInsertLeaseAuditParams) error

func (*Queries) RuntimeDynamicLatestEffectKind

func (q *Queries) RuntimeDynamicLatestEffectKind(ctx context.Context, arg RuntimeDynamicLatestEffectKindParams) (string, error)

func (*Queries) RuntimeDynamicRetryLease

func (q *Queries) RuntimeDynamicRetryLease(ctx context.Context, arg RuntimeDynamicRetryLeaseParams) (int64, error)

func (*Queries) RuntimeDynamicSettleLease

func (q *Queries) RuntimeDynamicSettleLease(ctx context.Context, arg RuntimeDynamicSettleLeaseParams) (int64, error)

func (*Queries) RuntimePKICountHeld

func (q *Queries) RuntimePKICountHeld(ctx context.Context) (int64, error)

hikyo:reason Closed PKIRuntime scrape authority returns only the label-free global count of held pending/active/retiring CAs. hikyo:instance-scoped

func (*Queries) RuntimePKICountLive

func (q *Queries) RuntimePKICountLive(ctx context.Context, now string) (int64, error)

hikyo:reason Closed PKIRuntime scrape authority returns only the label-free global count of unexpired issued/renewed certificates. hikyo:instance-scoped

func (*Queries) RuntimePKICountUnknown

func (q *Queries) RuntimePKICountUnknown(ctx context.Context, now string) (int64, error)

hikyo:reason Closed PKIRuntime scrape authority returns only the label-free global count of unexpired unknown certificates. hikyo:instance-scoped

func (*Queries) RuntimePKIDueCRLs

func (q *Queries) RuntimePKIDueCRLs(ctx context.Context, halfLife sql.NullString) ([]RuntimePKIDueCRLsRow, error)

hikyo:reason Closed PKIRuntime selects global active/retiring CAs with signing keys whose CRLs are missing, half-life due or behind committed revocation sequences. hikyo:instance-scoped

func (*Queries) RuntimePKIExpired

func (q *Queries) RuntimePKIExpired(ctx context.Context, arg RuntimePKIExpiredParams) ([]RuntimePKIExpiredRow, error)

hikyo:reason Closed PKIRuntime sweep authority selects globally expired issued/renewed leaves; PostgreSQL retains FOR UPDATE OF c SKIP LOCKED and writes require state CAS. hikyo:instance-scoped

func (*Queries) RuntimePKIMarkExpired

func (q *Queries) RuntimePKIMarkExpired(ctx context.Context, arg RuntimePKIMarkExpiredParams) (int64, error)

hikyo:reason Closed PKIRuntime expiry sweep writes only a selected certificate id/org still issued/renewed; transition and tenant audit share the transaction. hikyo:instance-scoped

func (*Queries) RuntimePKIMarkUnknown

func (q *Queries) RuntimePKIMarkUnknown(ctx context.Context, arg RuntimePKIMarkUnknownParams) (int64, error)

hikyo:reason Closed PKIRuntime stale-issuing sweep writes only a selected certificate id/org still issuing; fail-closed unknown transition and audit share the transaction. hikyo:instance-scoped

func (*Queries) RuntimePKIPublishedAudit

func (q *Queries) RuntimePKIPublishedAudit(ctx context.Context, arg RuntimePKIPublishedAuditParams) error

hikyo:reason Closed PKIRuntime appends the global CA publication audit only after successful prior-CRL-number CAS in the same transaction. hikyo:instance-scoped

func (*Queries) RuntimePKIReleaseRenewal

func (q *Queries) RuntimePKIReleaseRenewal(ctx context.Context, arg RuntimePKIReleaseRenewalParams) error

hikyo:reason Closed PKIRuntime releases only the matching predecessor id/org/successor claim after its issuing successor becomes unknown in the same transaction. hikyo:instance-scoped

func (*Queries) RuntimePKIStaleIssuing

func (q *Queries) RuntimePKIStaleIssuing(ctx context.Context, arg RuntimePKIStaleIssuingParams) ([]RuntimePKIStaleIssuingRow, error)

hikyo:reason Closed PKIRuntime sweep authority selects globally overdue issuing rows; PostgreSQL retains FOR UPDATE OF c SKIP LOCKED and writes require state CAS. hikyo:instance-scoped

func (*Queries) RuntimePKITransitionAudit

func (q *Queries) RuntimePKITransitionAudit(ctx context.Context, arg RuntimePKITransitionAuditParams) error

hikyo:reason Closed PKIRuntime appends the original system transition outcome using the selected certificate tenant chain, principal and correlation id in the same state-CAS transaction. hikyo:instance-scoped

func (*Queries) RuntimeSSHCountActive

func (q *Queries) RuntimeSSHCountActive(ctx context.Context, now string) (int64, error)

hikyo:reason SSHRuntime metrics scrape returns only the instance-wide count of issued unexpired certificates through the closed runtime boundary. hikyo:instance-scoped

func (*Queries) RuntimeSSHCountKRLEntries

func (q *Queries) RuntimeSSHCountKRLEntries(ctx context.Context, now string) (int64, error)

hikyo:reason SSHRuntime metrics scrape returns only the instance-wide count of revoked unexpired certificates under still-trusted CA keys through the closed runtime boundary. hikyo:instance-scoped

func (*Queries) RuntimeSSHInsertAuthorityRevocationAudit

func (q *Queries) RuntimeSSHInsertAuthorityRevocationAudit(ctx context.Context, arg RuntimeSSHInsertAuthorityRevocationAuditParams) error

func (*Queries) RuntimeSSHListLiveCertificates

hikyo:reason SSHRuntime closed sweeper pages live certificate authority facts across tenants; each candidate is reauthorized before its immutable chain can be revoked. hikyo:instance-scoped

func (*Queries) RuntimeSSHRevokeForAuthority

func (q *Queries) RuntimeSSHRevokeForAuthority(ctx context.Context, arg RuntimeSSHRevokeForAuthorityParams) (int64, error)

func (*Queries) SSHActiveCAKey

func (q *Queries) SSHActiveCAKey(ctx context.Context, arg SSHActiveCAKeyParams) (SSHActiveCAKeyRow, error)

func (*Queries) SSHActiveCAKeyID

func (q *Queries) SSHActiveCAKeyID(ctx context.Context, arg SSHActiveCAKeyIDParams) (string, error)

func (*Queries) SSHActiveKeyLastExpiry

func (q *Queries) SSHActiveKeyLastExpiry(ctx context.Context, arg SSHActiveKeyLastExpiryParams) (string, error)

func (*Queries) SSHCAKeyExists

func (q *Queries) SSHCAKeyExists(ctx context.Context, arg SSHCAKeyExistsParams) (int64, error)

func (*Queries) SSHCAKeys

func (q *Queries) SSHCAKeys(ctx context.Context, arg SSHCAKeysParams) ([]SSHCAKeysRow, error)

func (*Queries) SSHCountLiveCAs

func (q *Queries) SSHCountLiveCAs(ctx context.Context, arg SSHCountLiveCAsParams) (int64, error)

func (*Queries) SSHCountLiveProfiles

func (q *Queries) SSHCountLiveProfiles(ctx context.Context, arg SSHCountLiveProfilesParams) (int64, error)

func (*Queries) SSHCreateCA

func (q *Queries) SSHCreateCA(ctx context.Context, arg SSHCreateCAParams) (int64, error)

func (*Queries) SSHCreateProfile

func (q *Queries) SSHCreateProfile(ctx context.Context, arg SSHCreateProfileParams) (int64, error)

func (*Queries) SSHDeleteCA

func (q *Queries) SSHDeleteCA(ctx context.Context, arg SSHDeleteCAParams) (int64, error)

func (*Queries) SSHDeleteProfile

func (q *Queries) SSHDeleteProfile(ctx context.Context, arg SSHDeleteProfileParams) (int64, error)

func (*Queries) SSHDeleteRequesters

func (q *Queries) SSHDeleteRequesters(ctx context.Context, arg SSHDeleteRequestersParams) (int64, error)

func (*Queries) SSHGetCA

func (q *Queries) SSHGetCA(ctx context.Context, arg SSHGetCAParams) (SSHGetCARow, error)

func (*Queries) SSHGetCertificate

func (q *Queries) SSHGetCertificate(ctx context.Context, arg SSHGetCertificateParams) (SSHGetCertificateRow, error)

func (*Queries) SSHGetProfile

func (q *Queries) SSHGetProfile(ctx context.Context, arg SSHGetProfileParams) (SSHGetProfileRow, error)

func (*Queries) SSHInsertCAKey

func (q *Queries) SSHInsertCAKey(ctx context.Context, arg SSHInsertCAKeyParams) (int64, error)

func (*Queries) SSHInsertCertificate

func (q *Queries) SSHInsertCertificate(ctx context.Context, arg SSHInsertCertificateParams) (int64, error)

func (*Queries) SSHInsertRequester

func (q *Queries) SSHInsertRequester(ctx context.Context, arg SSHInsertRequesterParams) (int64, error)

func (*Queries) SSHIsRequester

func (q *Queries) SSHIsRequester(ctx context.Context, arg SSHIsRequesterParams) (int64, error)

func (*Queries) SSHListCAs

func (q *Queries) SSHListCAs(ctx context.Context, arg SSHListCAsParams) ([]SSHListCAsRow, error)

func (*Queries) SSHListCertificates

func (q *Queries) SSHListCertificates(ctx context.Context, arg SSHListCertificatesParams) ([]SSHListCertificatesRow, error)

func (*Queries) SSHListKeysForReencrypt

func (q *Queries) SSHListKeysForReencrypt(ctx context.Context, arg SSHListKeysForReencryptParams) ([]SSHListKeysForReencryptRow, error)

func (*Queries) SSHListProfiles

func (q *Queries) SSHListProfiles(ctx context.Context, arg SSHListProfilesParams) ([]SSHListProfilesRow, error)

func (*Queries) SSHPurgeCAKeys

func (q *Queries) SSHPurgeCAKeys(ctx context.Context, arg SSHPurgeCAKeysParams) error

func (*Queries) SSHPurgeCAs

func (q *Queries) SSHPurgeCAs(ctx context.Context, arg SSHPurgeCAsParams) error

func (*Queries) SSHPurgeCertificates

func (q *Queries) SSHPurgeCertificates(ctx context.Context, arg SSHPurgeCertificatesParams) error

func (*Queries) SSHPurgeProfiles

func (q *Queries) SSHPurgeProfiles(ctx context.Context, arg SSHPurgeProfilesParams) error

func (*Queries) SSHPurgeRequesters

func (q *Queries) SSHPurgeRequesters(ctx context.Context, arg SSHPurgeRequestersParams) error

func (*Queries) SSHReencryptCAKey

func (q *Queries) SSHReencryptCAKey(ctx context.Context, arg SSHReencryptCAKeyParams) (int64, error)

func (*Queries) SSHRequesters

func (q *Queries) SSHRequesters(ctx context.Context, arg SSHRequestersParams) ([]SSHRequestersRow, error)

func (*Queries) SSHRetireActiveCAKey

func (q *Queries) SSHRetireActiveCAKey(ctx context.Context, arg SSHRetireActiveCAKeyParams) (int64, error)

func (*Queries) SSHRetireAllCAKeys

func (q *Queries) SSHRetireAllCAKeys(ctx context.Context, arg SSHRetireAllCAKeysParams) (int64, error)

func (*Queries) SSHRetireCAKey

func (q *Queries) SSHRetireCAKey(ctx context.Context, arg SSHRetireCAKeyParams) (int64, error)

func (*Queries) SSHRevokeCertificate

func (q *Queries) SSHRevokeCertificate(ctx context.Context, arg SSHRevokeCertificateParams) (int64, error)

func (*Queries) SSHRevokedSerials

func (q *Queries) SSHRevokedSerials(ctx context.Context, arg SSHRevokedSerialsParams) ([]SSHRevokedSerialsRow, error)

func (*Queries) SSHUpdateProfile

func (q *Queries) SSHUpdateProfile(ctx context.Context, arg SSHUpdateProfileParams) (int64, error)

func (*Queries) SampleSecretValueEntry

func (q *Queries) SampleSecretValueEntry(ctx context.Context) (ValueEntry, error)

SampleSecretValueEntry returns ONE stored `secret` cell across the whole instance, ciphertext only, for the restore drill's decrypt proof (#145): the drill opens it under the separately supplied root key to prove restored values are readable. Cross-tenant by definition and deterministic by id, so it is annotated instance-scoped and content-pinned. Opening the ciphertext still needs the keyring; this read alone discloses nothing. hikyo:instance-scoped

func (*Queries) SaveAuthRefusalWindow

func (q *Queries) SaveAuthRefusalWindow(ctx context.Context, arg SaveAuthRefusalWindowParams) error

hikyo:reason approved refusal writer atomically advances only the singleton accumulator hikyo:authn-resolution

func (*Queries) SealedRemoteCredential

func (q *Queries) SealedRemoteCredential(ctx context.Context, id string) ([]byte, error)

The only reader of the sealed credential. It is separate from GetRemote so that reaching the credential is a distinct, greppable act rather than a field every caller of the ordinary read happens to receive. hikyo:instance-scoped

func (*Queries) SelectDueAccessRequests

func (q *Queries) SelectDueAccessRequests(ctx context.Context, now string) ([]SelectDueAccessRequestsRow, error)

SelectDueAccessRequests is one bounded installation-wide sweep batch: open requests whose review window lapsed and granted requests whose absolute expiry passed. Expiry is already enforced by the chokepoint's row filter; the sweep is bookkeeping, session rotation and the audit event. hikyo:instance-scoped

func (*Queries) SelectExpiredApprovalRequests

func (q *Queries) SelectExpiredApprovalRequests(ctx context.Context, expiresAt string) ([]SelectExpiredApprovalRequestsRow, error)

SelectExpiredApprovalRequests is one bounded installation-wide expiry batch. Repeated scheduler runs commit progress without putting an unbounded backlog inside one transaction's deadline. hikyo:instance-scoped

func (*Queries) SelectExpiredDeliveryTargetReports

SelectExpiredDeliveryTargetReports is one bounded installation-wide purge batch (ADR D6: no accepted report for 30 days). Repeated scheduler runs commit progress without an unbounded backlog inside one transaction. hikyo:instance-scoped

func (*Queries) SetAuditRetentionPolicy

func (q *Queries) SetAuditRetentionPolicy(ctx context.Context, arg SetAuditRetentionPolicyParams) error

hikyo:instance-scoped

func (*Queries) SetBackupDrill

func (q *Queries) SetBackupDrill(ctx context.Context, arg SetBackupDrillParams) error

hikyo:instance-scoped

func (*Queries) SetBackupExportFailure

func (q *Queries) SetBackupExportFailure(ctx context.Context, arg SetBackupExportFailureParams) error

hikyo:instance-scoped

func (*Queries) SetBackupExportSuccess

func (q *Queries) SetBackupExportSuccess(ctx context.Context, arg SetBackupExportSuccessParams) (int64, error)

hikyo:instance-scoped

func (*Queries) SetBackupPruneResult

func (q *Queries) SetBackupPruneResult(ctx context.Context, arg SetBackupPruneResultParams) (int64, error)

hikyo:reason scheduler records instance-wide archive compliance in the singleton backup state; no tenant data is addressed hikyo:instance-scoped

func (*Queries) SetCredentialPolicy

func (q *Queries) SetCredentialPolicy(ctx context.Context, arg SetCredentialPolicyParams) error

hikyo:authn-resolution

func (*Queries) SetDeveloperCredentialPolicy

func (q *Queries) SetDeveloperCredentialPolicy(ctx context.Context, maxLifetimeSeconds int64) error

hikyo:reason Instance-config authorization precedes the shared lifetime policy mutation in the same transaction. hikyo:authn-resolution

func (*Queries) SetEnvironmentOrder

func (q *Queries) SetEnvironmentOrder(ctx context.Context, arg SetEnvironmentOrderParams) (int64, error)

Reorder is authorized at PROJECT depth (it rewrites the project's whole ordered set), so the proof carries no environment id and `id` is an ordinary caller argument. The chain conjuncts confine it: an id from another project matches no row, which is the uniform nonexistent outcome the reorder service turns into a refusal.

func (*Queries) SetEnvironmentParameters

func (q *Queries) SetEnvironmentParameters(ctx context.Context, arg SetEnvironmentParametersParams) (int64, error)

func (*Queries) SetEnvironmentSettings

func (q *Queries) SetEnvironmentSettings(ctx context.Context, arg SetEnvironmentSettingsParams) (int64, error)

func (*Queries) SetEscrowVerification

func (q *Queries) SetEscrowVerification(ctx context.Context, arg SetEscrowVerificationParams) error

Local host escrow proof writes public metadata only under the hierarchy fence. hikyo:instance-scoped

func (*Queries) SetKeyClassification

func (q *Queries) SetKeyClassification(ctx context.Context, arg SetKeyClassificationParams) (int64, error)

SetKeyClassification is its own statement because reclassification is its own ceremony: it is never a field of an ordinary update, so it is never a column of one either.

func (*Queries) SetKeyGroup

func (q *Queries) SetKeyGroup(ctx context.Context, arg SetKeyGroupParams) (int64, error)

func (*Queries) SetLastPruneSuccess

func (q *Queries) SetLastPruneSuccess(ctx context.Context, lastPruneSuccess sql.NullString) error

hikyo:instance-scoped

func (*Queries) SetLocalAccountEmail

func (q *Queries) SetLocalAccountEmail(ctx context.Context, arg SetLocalAccountEmailParams) error

hikyo:reason The successful single-use signup ceremony sets the verified address only on its newly created local account. hikyo:authn-resolution

func (*Queries) SetOrgIdentity

func (q *Queries) SetOrgIdentity(ctx context.Context, arg SetOrgIdentityParams) (int64, error)

Chrome identity (hue, short mark, uploaded image). The image bytes are read only by the dedicated image query (GetOrgIdentityImage in authn.sql), so Get/List stay small.

func (*Queries) SetOrgIdentityImage

func (q *Queries) SetOrgIdentityImage(ctx context.Context, arg SetOrgIdentityImageParams) (int64, error)

func (*Queries) SetOrgRetention

func (q *Queries) SetOrgRetention(ctx context.Context, arg SetOrgRetentionParams) (int64, error)

func (*Queries) SetPinGeneration

func (q *Queries) SetPinGeneration(ctx context.Context, arg SetPinGenerationParams) error

The generation writer. #52 owns pin creation, reassignment and release; this is the counter each of those must advance, and it exists now because the cursor is bound to it now. hikyo:authn-resolution

func (*Queries) SetProjectCapacity

func (q *Queries) SetProjectCapacity(ctx context.Context, arg SetProjectCapacityParams) (int64, error)

SetProjectCapacity advances the independent policy revision only if the caller still holds the policy version it read under the project lock.

func (*Queries) SetProjectDefinitionsSource

func (q *Queries) SetProjectDefinitionsSource(ctx context.Context, arg SetProjectDefinitionsSourceParams) (int64, error)

SetProjectDefinitionsSource flips a project between db- and git-managed definitions (#70). It is a project-settings write, deliberately off the definitions-edit path so a blocked editor cannot disable its own guard.

func (*Queries) SetProjectIdentity

func (q *Queries) SetProjectIdentity(ctx context.Context, arg SetProjectIdentityParams) (int64, error)

Chrome identity (hue, short mark, uploaded image). Get/List never select the image bytes; GetProjectIdentityImage is the only reader.

func (*Queries) SetProjectIdentityImage

func (q *Queries) SetProjectIdentityImage(ctx context.Context, arg SetProjectIdentityImageParams) (int64, error)

func (*Queries) SetProjectMachineReveal

func (q *Queries) SetProjectMachineReveal(ctx context.Context, arg SetProjectMachineRevealParams) (int64, error)

SetProjectMachineReveal flips the per-project machine-reveal opt-in. It is a project-settings write; the grant writer and the fetch path both read the column live, so flipping it back to 0 withdraws machine secret delivery on the next fetch without touching any grant row.

func (*Queries) SetProjectRetention

func (q *Queries) SetProjectRetention(ctx context.Context, arg SetProjectRetentionParams) (int64, error)

func (*Queries) SetReencryptSuccess

func (q *Queries) SetReencryptSuccess(ctx context.Context, completedAt sql.NullString) error

A successful complete reencrypt operation records its own completion. hikyo:instance-scoped

func (*Queries) SetSCIMMappingInert

func (q *Queries) SetSCIMMappingInert(ctx context.Context, arg SetSCIMMappingInertParams) (int64, error)

A mapping row whose group was deleted flips to inert (ADR section 5.4) and raises an attention state; the human edits or deletes it. It is never silently removed.

func (*Queries) SetSelfConfigPrevious

func (q *Queries) SetSelfConfigPrevious(ctx context.Context, snapshotID string) error

hikyo:instance-scoped

func (*Queries) SetSelfConfigRetention

func (q *Queries) SetSelfConfigRetention(ctx context.Context, arg SetSelfConfigRetentionParams) error

hikyo:instance-scoped

func (*Queries) SetWebAuthnUserHandle

func (q *Queries) SetWebAuthnUserHandle(ctx context.Context, arg SetWebAuthnUserHandleParams) (int64, error)

Set the opaque handle once, on first enrolment. The NULL guard keeps a second enrolment from rotating a handle other credentials already use. hikyo:authn-resolution

func (*Queries) SlideReauthWindow

func (q *Queries) SlideReauthWindow(ctx context.Context, arg SlideReauthWindowParams) (int64, error)

Slide the idle window clock on a sliding (non single-decision) window. The hard cap is enforced by the service, which passes min(now+window, hard_expires_at); the NULL guard keeps a concurrently-claimed window from sliding. hikyo:authn-resolution

func (*Queries) StampCredentialEstablish

func (q *Queries) StampCredentialEstablish(ctx context.Context, arg StampCredentialEstablishParams) error

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) StrandedRevealPrincipalsForEnvironment

func (q *Queries) StrandedRevealPrincipalsForEnvironment(ctx context.Context, arg StrandedRevealPrincipalsForEnvironmentParams) ([]string, error)

Stranded-principal enumeration for LowerEffectiveWindow (#54 B6): principals holding reveal/reveal-history covering environment E (a grant at E, its project, its org, or the instance) who have no enabled WebAuthn authenticator, so a 0 effective window fails their disclosure closed until they enrol one. hikyo:authn-resolution

func (*Queries) SumSnapshotContractForProject

func (q *Queries) SumSnapshotContractForProject(ctx context.Context, arg SumSnapshotContractForProjectParams) (int64, error)

func (*Queries) SumSnapshotPayloadByProject

func (q *Queries) SumSnapshotPayloadByProject(ctx context.Context) ([]SumSnapshotPayloadByProjectRow, error)

SumSnapshotPayloadByProject groups the published snapshot-entry ciphertext bytes by owning project across the whole instance -- the operator storage surface (doctor warn, metric). Cross-tenant by definition, so it is annotated instance-scoped and content-pinned. hikyo:instance-scoped Project sizes only, never whole encrypted payloads in a sorter. LIMIT -1 OFFSET 0 prevents flattening this projection into the GROUP BY: the temporary sorter must retain integer sizes, not ciphertext/contract blobs.

func (*Queries) SumSnapshotPayloadForProject

func (q *Queries) SumSnapshotPayloadForProject(ctx context.Context, arg SumSnapshotPayloadForProjectParams) (int64, error)

SumSnapshotPayloadForProject totals the ciphertext bytes of a project's published snapshot entries across every environment and revision. Paired with SumValuePayloadForProject, it is the other half of the per-project storage high-water accounting (ops-spec section 8 / section 141). Fully chain-scoped, so no annotation is needed.

func (*Queries) SumValuePayloadByProject

func (q *Queries) SumValuePayloadByProject(ctx context.Context) ([]SumValuePayloadByProjectRow, error)

SumValuePayloadByProject groups the live value-cell ciphertext bytes by owning project across the whole instance -- the operator storage surface (doctor warn, metric). Cross-tenant by definition: it addresses no tenant and carries no chain conjunct, so it is annotated instance-scoped and content-pinned. hikyo:instance-scoped Project sizes before grouping. OFFSET 0 prevents SQLite flattening this projection into the sorter; LIMIT -1 preserves every row. Sorting whole ciphertext BLOBs instead can exceed the health transaction deadline.

func (*Queries) SumValuePayloadForProject

func (q *Queries) SumValuePayloadForProject(ctx context.Context, arg SumValuePayloadForProjectParams) (int64, error)

SumValuePayloadForProject totals the ciphertext bytes of a project's live value cells across every environment. It backs the per-project storage high-water refusal at publish (ops-spec section 8 / section 141). LENGTH on a BLOB is its byte count; the CAST(COALESCE(...)) keeps an empty project's NULL sum a plain integer 0. Fully chain-scoped, so no annotation is needed.

func (*Queries) SuspendPersonalValue

func (q *Queries) SuspendPersonalValue(ctx context.Context, arg SuspendPersonalValueParams) (int64, error)

SuspendPersonalValue records when the sweep first saw the owner without the access predicate; a value already suspended keeps its first time.

func (*Queries) TouchInstanceConnection

func (q *Queries) TouchInstanceConnection(ctx context.Context, arg TouchInstanceConnectionParams) error

The last-used stamp, written on a successful directory serve. It is the operator's answer to "is this connection still in use" before revoking it. hikyo:authn-resolution

func (*Queries) TouchMachineCredential

func (q *Queries) TouchMachineCredential(ctx context.Context, arg TouchMachineCredentialParams) error

last_used_at is observability, not authorization: nothing reads it to decide anything, so it is the one machine-credential write that is not part of a decision. hikyo:authn-resolution

func (*Queries) TouchSCIMBinding

func (q *Queries) TouchSCIMBinding(ctx context.Context, arg TouchSCIMBindingParams) (int64, error)

Push-only staleness bookkeeping (ADR section 9): the binding records last-contact, and the surface reports it. Nothing self-heals from it.

func (*Queries) TouchSCIMCredential

func (q *Queries) TouchSCIMCredential(ctx context.Context, arg TouchSCIMCredentialParams) error

hikyo:authn-resolution

func (*Queries) TouchSession

func (q *Queries) TouchSession(ctx context.Context, arg TouchSessionParams) error

hikyo:authn-resolution

func (*Queries) TransitAdmissionLock

func (q *Queries) TransitAdmissionLock(ctx context.Context, arg TransitAdmissionLockParams) (string, error)

func (*Queries) TransitAppendVersion

func (q *Queries) TransitAppendVersion(ctx context.Context, arg TransitAppendVersionParams) (int64, error)

func (*Queries) TransitAvailableTrimFloor

func (q *Queries) TransitAvailableTrimFloor(ctx context.Context, arg TransitAvailableTrimFloorParams) (int64, error)

func (*Queries) TransitChangeState

func (q *Queries) TransitChangeState(ctx context.Context, arg TransitChangeStateParams) (int64, error)

func (*Queries) TransitCompromise

func (q *Queries) TransitCompromise(ctx context.Context, arg TransitCompromiseParams) (int64, error)

func (*Queries) TransitCompromisedThrough

func (q *Queries) TransitCompromisedThrough(ctx context.Context, arg TransitCompromisedThroughParams) (int64, error)

func (*Queries) TransitConfigure

func (q *Queries) TransitConfigure(ctx context.Context, arg TransitConfigureParams) (int64, error)

func (*Queries) TransitCountExistingKey

func (q *Queries) TransitCountExistingKey(ctx context.Context, arg TransitCountExistingKeyParams) (int64, error)

func (*Queries) TransitCountKeys

func (q *Queries) TransitCountKeys(ctx context.Context, arg TransitCountKeysParams) (int64, error)

func (*Queries) TransitCountLive

func (q *Queries) TransitCountLive(ctx context.Context) (int64, error)

hikyo:reason Closed TransitRuntime scrape authority returns only the installation-wide label-free live-key count, never key content or material. hikyo:instance-scoped

func (*Queries) TransitCountPendingDeletion

func (q *Queries) TransitCountPendingDeletion(ctx context.Context) (int64, error)

hikyo:reason Closed TransitRuntime scrape authority returns only the installation-wide label-free pending-deletion count, never key content or material. hikyo:instance-scoped

func (*Queries) TransitCountVersions

func (q *Queries) TransitCountVersions(ctx context.Context, arg TransitCountVersionsParams) (int64, error)

func (*Queries) TransitDeleteCallers

func (q *Queries) TransitDeleteCallers(ctx context.Context, arg TransitDeleteCallersParams) error

func (*Queries) TransitDestroy

func (q *Queries) TransitDestroy(ctx context.Context, arg TransitDestroyParams) (int64, error)

func (*Queries) TransitEraseMaterial

func (q *Queries) TransitEraseMaterial(ctx context.Context, arg TransitEraseMaterialParams) (int64, error)

func (*Queries) TransitExternalVersions

func (q *Queries) TransitExternalVersions(ctx context.Context, arg TransitExternalVersionsParams) ([]TransitExternalVersionsRow, error)

func (*Queries) TransitFencePurge

func (q *Queries) TransitFencePurge(ctx context.Context, arg TransitFencePurgeParams) (int64, error)

func (*Queries) TransitFenceTrim

func (q *Queries) TransitFenceTrim(ctx context.Context, arg TransitFenceTrimParams) (int64, error)

func (*Queries) TransitGaugeRotationCandidates

func (q *Queries) TransitGaugeRotationCandidates(ctx context.Context) ([]TransitGaugeRotationCandidatesRow, error)

hikyo:reason Closed TransitRuntime scrape authority reads only period/latest-created timestamps to compute the existing label-free rotation-due count; material and identities are excluded. hikyo:instance-scoped

func (*Queries) TransitGetKey

func (q *Queries) TransitGetKey(ctx context.Context, arg TransitGetKeyParams) (TransitGetKeyRow, error)

func (*Queries) TransitGetKeyForUse

func (q *Queries) TransitGetKeyForUse(ctx context.Context, arg TransitGetKeyForUseParams) (TransitGetKeyForUseRow, error)

func (*Queries) TransitInsertCaller

func (q *Queries) TransitInsertCaller(ctx context.Context, arg TransitInsertCallerParams) error

func (*Queries) TransitInsertKey

func (q *Queries) TransitInsertKey(ctx context.Context, arg TransitInsertKeyParams) error

func (*Queries) TransitInsertVersion

func (q *Queries) TransitInsertVersion(ctx context.Context, arg TransitInsertVersionParams) error

func (*Queries) TransitKeyByID

func (q *Queries) TransitKeyByID(ctx context.Context, arg TransitKeyByIDParams) (TransitKeyByIDRow, error)

func (*Queries) TransitListCallers

func (q *Queries) TransitListCallers(ctx context.Context, arg TransitListCallersParams) ([]TransitListCallersRow, error)

func (*Queries) TransitListKeys

func (q *Queries) TransitListKeys(ctx context.Context, arg TransitListKeysParams) ([]TransitListKeysRow, error)

func (*Queries) TransitListReencrypt

func (q *Queries) TransitListReencrypt(ctx context.Context, arg TransitListReencryptParams) ([]TransitListReencryptRow, error)

func (*Queries) TransitListVersions

func (q *Queries) TransitListVersions(ctx context.Context, arg TransitListVersionsParams) ([]TransitListVersionsRow, error)

func (*Queries) TransitReencrypt

func (q *Queries) TransitReencrypt(ctx context.Context, arg TransitReencryptParams) (int64, error)

func (*Queries) TransitSelectDeletionDue

func (q *Queries) TransitSelectDeletionDue(ctx context.Context, arg TransitSelectDeletionDueParams) ([]TransitSelectDeletionDueRow, error)

hikyo:reason StoreTransitSelectDeletionDue verifies the existing closed system scheduler authority; globally lists due pending-deletion keys so each subsequent purge resolves its own tenant chain in a transaction. hikyo:instance-scoped

func (*Queries) TransitSelectRotationDue

func (q *Queries) TransitSelectRotationDue(ctx context.Context, arg TransitSelectRotationDueParams) ([]TransitSelectRotationDueRow, error)

hikyo:reason StoreTransitSelectRotationDue verifies the existing closed system scheduler authority; globally lists active rotation candidates with their latest-version timestamp before scoped worker authorization. hikyo:instance-scoped

func (*Queries) TransitTrimFloor

func (q *Queries) TransitTrimFloor(ctx context.Context, arg TransitTrimFloorParams) (int64, error)

func (*Queries) TransitTrimVersions

func (q *Queries) TransitTrimVersions(ctx context.Context, arg TransitTrimVersionsParams) (int64, error)

func (*Queries) TransitVersionMaterial

func (q *Queries) TransitVersionMaterial(ctx context.Context, arg TransitVersionMaterialParams) (TransitVersionMaterialRow, error)

func (*Queries) UpdateAccessPolicy

func (q *Queries) UpdateAccessPolicy(ctx context.Context, arg UpdateAccessPolicyParams) (int64, error)

UpdateAccessPolicy bumps version so every open request pinned to the older version fails closed at its next decision.

func (*Queries) UpdateAccountProfile

func (q *Queries) UpdateAccountProfile(ctx context.Context, arg UpdateAccountProfileParams) error

hikyo:authn-resolution

func (*Queries) UpdateApprovalPolicy

func (q *Queries) UpdateApprovalPolicy(ctx context.Context, arg UpdateApprovalPolicyParams) (int64, error)

UpdateApprovalPolicy bumps version so any request pinned to the older version fails closed. The service invalidates open requests to the covered environment in the same transaction.

func (*Queries) UpdateApprovalRequestState

func (q *Queries) UpdateApprovalRequestState(ctx context.Context, arg UpdateApprovalRequestStateParams) (int64, error)

UpdateApprovalRequestState transitions one request. resolved_at is NULL for the approved state and set for every terminal state; invalidated_cause is ” unless the terminal state is invalidated.

func (*Queries) UpdateDeliveryTargetQuotaNotice

func (q *Queries) UpdateDeliveryTargetQuotaNotice(ctx context.Context, arg UpdateDeliveryTargetQuotaNoticeParams) (int64, error)

func (*Queries) UpdateDeliveryTargetReport

func (q *Queries) UpdateDeliveryTargetReport(ctx context.Context, arg UpdateDeliveryTargetReportParams) (int64, error)

An accepted report replaces the row's asserted state and clears any recorded refusal: the refusal is older than the last accepted report now.

func (*Queries) UpdateEnvironmentNote

func (q *Queries) UpdateEnvironmentNote(ctx context.Context, arg UpdateEnvironmentNoteParams) (int64, error)

func (*Queries) UpdateFederationIssuer

func (q *Queries) UpdateFederationIssuer(ctx context.Context, arg UpdateFederationIssuerParams) (int64, error)

The issuer's own configuration is mutable (its JWKS source and the audiences it refuses); its IDENTITY is not. `issuer` and `issuer_type` are absent from the SET list on purpose: changing either would silently re-point every binding underneath at a different external authority, which is a replacement, not an edit. hikyo:authn-resolution

func (*Queries) UpdateKeyDeclaration

func (q *Queries) UpdateKeyDeclaration(ctx context.Context, arg UpdateKeyDeclarationParams) (int64, error)

UpdateKeyDeclaration carries the value-dependent rules and the presence MODES together, because a declaration save replaces both as one unit.

func (*Queries) UpdateKeyMetadata

func (q *Queries) UpdateKeyMetadata(ctx context.Context, arg UpdateKeyMetadataParams) (int64, error)

UpdateKeyMetadata carries exactly the NON-semantic fields (schema-model ADR section Authorization: description, deprecated, deprecation_note and folder path cannot change what any environment delivers or whether it validates). They are one statement precisely so no caller can smuggle a semantic field in beside them.

func (*Queries) UpdateOAuth2ProviderCAS

func (q *Queries) UpdateOAuth2ProviderCAS(ctx context.Context, arg UpdateOAuth2ProviderCASParams) (int64, error)

hikyo:reason OAuth2 identity configuration and callback artifacts are instance-wide authentication resolution; service guards bind their provider, purpose, epoch and initiator before mutation. hikyo:authn-resolution

func (*Queries) UpdateOIDCProviderCAS

func (q *Queries) UpdateOIDCProviderCAS(ctx context.Context, arg UpdateOIDCProviderCASParams) (int64, error)

The issuer is never in the SET list: it is immutable after create (A3), so a reconfiguration cannot silently move the identity space to a new authority. CAS on row_version so a concurrent reconfigure fails closed. hikyo:authn-resolution

func (*Queries) UpdatePasswordCredentialCAS

func (q *Queries) UpdatePasswordCredentialCAS(ctx context.Context, arg UpdatePasswordCredentialCASParams) (int64, error)

Compare-and-swap on row_version: a resumable, lock-free `reencrypt` racing a password reset would otherwise write the stale verifier back under the new DEK version and silently resurrect a superseded password. hikyo:authn-resolution

func (*Queries) UpdateRecoveryCodesCAS

func (q *Queries) UpdateRecoveryCodesCAS(ctx context.Context, arg UpdateRecoveryCodesCASParams) (int64, error)

Regeneration and consumption both rewrite the batch under a CAS, so a concurrent second presentation of the same code loses and fails closed. hikyo:authn-resolution

func (*Queries) UpdateRegistrationPolicyCAS

func (q *Queries) UpdateRegistrationPolicyCAS(ctx context.Context, arg UpdateRegistrationPolicyCASParams) (int64, error)

hikyo:authn-resolution

func (*Queries) UpdateSAMLProviderCAS

func (q *Queries) UpdateSAMLProviderCAS(ctx context.Context, arg UpdateSAMLProviderCASParams) (int64, error)

entity_id and slug are immutable. Every policy/trust-anchor change bumps the version so callback minting can detect reconfiguration and fail closed. hikyo:authn-resolution

func (*Queries) UpdateSCIMGroup

func (q *Queries) UpdateSCIMGroup(ctx context.Context, arg UpdateSCIMGroupParams) (int64, error)

func (*Queries) UpdateSCIMMappingTemplate

func (q *Queries) UpdateSCIMMappingTemplate(ctx context.Context, arg UpdateSCIMMappingTemplateParams) (int64, error)

Narrowing a mapping row keeps its ID: origins key on it, so a delete-and- recreate would release every origin the row holds and immediately recreate most of them -- momentarily revoking capabilities that never stopped being granted, and logging the holders out for a bookkeeping change.

func (*Queries) UpdateSCIMUser

func (q *Queries) UpdateSCIMUser(ctx context.Context, arg UpdateSCIMUserParams) (int64, error)

func (*Queries) UpdateSelfConfigJob

func (q *Queries) UpdateSelfConfigJob(ctx context.Context, arg UpdateSelfConfigJobParams) (int64, error)

hikyo:instance-scoped

func (*Queries) UpdateSelfConfigRollout

func (q *Queries) UpdateSelfConfigRollout(ctx context.Context, arg UpdateSelfConfigRolloutParams) (int64, error)

hikyo:instance-scoped

func (*Queries) UpdateTier3Wrapping

func (q *Queries) UpdateTier3Wrapping(ctx context.Context, arg UpdateTier3WrappingParams) (int64, error)

UpdateTier3Wrapping re-points one tier-3 key at a new master: same key material, re-sealed blob, new master_key_version. Addressed by (id, version) because a scope has one row per version and the id is unique.

func (*Queries) UpsertOrgEmailInvitation

func (q *Queries) UpsertOrgEmailInvitation(ctx context.Context, arg UpsertOrgEmailInvitationParams) (string, error)

Email invitations of existing accounts (#1207, docs/spec/email-invitations.md). The table is class=authn: acceptance resolves an opaque bearer verifier for a caller who holds no grant in the inviting org, so every statement rides the proof-free resolution surface AFTER the owning operation authorizes (the send, list and revoke operations at the org, the acceptance by the session's own account binding). hikyo:reason A send writes or replaces the one pending row of an organisation and address; the operation authorized manage-members at that org. hikyo:authn-resolution

func (*Queries) VerifiedAccountEmailExists

func (q *Queries) VerifiedAccountEmailExists(ctx context.Context, email sql.NullString) (bool, error)

hikyo:reason The admitted signup request checks address ownership regardless of principal privacy only to select the no-link notice; its public answer remains uniform. hikyo:authn-resolution

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

func (*Queries) WorkloadPinState

func (q *Queries) WorkloadPinState(ctx context.Context, arg WorkloadPinStateParams) (WorkloadPinStateRow, error)

The grant-time conditional admission for workload reveal-history. The pin and latest snapshot are read in one authn-resolution query under the target principal lock; the service evaluates expiry against its canonical clock. hikyo:authn-resolution

func (*Queries) WorkspaceHandoffByCode

func (q *Queries) WorkspaceHandoffByCode(ctx context.Context, codeVerifier []byte) (WorkspaceHandoff, error)

hikyo:authn-resolution

func (*Queries) WorkspaceHandoffByState

func (q *Queries) WorkspaceHandoffByState(ctx context.Context, stateVerifier []byte) (WorkspaceHandoff, error)

Liveness is deliberately NOT in this WHERE clause, for the reason the credential read states: filtering here would make an unknown state cost one row and a consumed one zero, which is an existence oracle. The caller decides expiry and single-use against the row it got. hikyo:authn-resolution

func (*Queries) WriteRemoteSnapshot

func (q *Queries) WriteRemoteSnapshot(ctx context.Context, arg WriteRemoteSnapshotParams) error

The snapshot is upserted whole. last_attempt_at/last_outcome record the most recent FETCH; observed_at and the listing columns record the most recent SUCCESS, and a failing fetch leaves them alone - that split is the entire freshness model, and it is why a failure writes through the second statement rather than this one. hikyo:instance-scoped

type ReactivateFederatedBindingParams

type ReactivateFederatedBindingParams struct {
	ReactivatedAt sql.NullString
	ID            string
}

type ReadAuthRefusalWindowRow

type ReadAuthRefusalWindowRow struct {
	WindowStart int64
	State       string
	NowSeconds  int64
}

type ReauthWindow

type ReauthWindow struct {
	ID                  string
	SessionID           string
	EnvironmentID       string
	CeremonyID          string
	FactorClass         string
	SingleDecision      int64
	AuthenticatedAt     string
	WindowExpiresAt     string
	HardExpiresAt       string
	CredentialEpoch     int64
	ConsumedAt          sql.NullString
	CreatedAt           string
	BoundOperation      string
	BoundKeySet         string
	BoundPurpose        string
	BoundEnvironmentSet string
}

type RebindSAMLExternalIdentityProviderParams

type RebindSAMLExternalIdentityProviderParams struct {
	NewProviderID      string
	ID                 string
	ExpectedProviderID string
}

type RecordDeliveryTargetRefusalParams

type RecordDeliveryTargetRefusalParams struct {
	RefusalCause  sql.NullString
	RefusedAt     sql.NullString
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
}

type RecordFileTargetReportParams

type RecordFileTargetReportParams struct {
	ReportState      sql.NullString
	ReportRevision   sql.NullInt64
	ReportStamp      sql.NullString
	ReportGeneration sql.NullInt64
	ReportedAt       sql.NullString
	ReceivedAt       sql.NullString
	ChainOrgID       string
	ChainProjectID   string
	ChainEnvID       string
	ID               string
	PrincipalID      string
}

type RecordPersonalValueNoticesForOwnerParams

type RecordPersonalValueNoticesForOwnerParams struct {
	Cause            string
	CreatedAt        string
	OwnerPrincipalID string
}

type RecordRemoteFetchFailureParams

type RecordRemoteFetchFailureParams struct {
	RemoteID      string
	LastAttemptAt string
	LastOutcome   string
}

type RecordSecretValueOccurrenceParams

type RecordSecretValueOccurrenceParams struct {
	ValueEntryID  string
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type RecoverSelfConfigTargetParams

type RecoverSelfConfigTargetParams struct {
	SnapshotID         string
	Revision           int64
	UpdatedAt          string
	ExpectedGeneration int64
}

type RecoveryCode

type RecoveryCode struct {
	AccountID       string
	Batch           []byte
	DekVersion      int64
	CredentialEpoch int64
	RowVersion      int64
	GeneratedAt     string
}

type RecoveryListGrantsBeforeAccessRow

type RecoveryListGrantsBeforeAccessRow struct {
	Capability      string
	OrgID           sql.NullString
	ProjectID       sql.NullString
	EnvID           sql.NullString
	SelfConfigOrgID string
}

type RecoveryListGrantsBeforePrivacyRow

type RecoveryListGrantsBeforePrivacyRow struct {
	Capability string
	OrgID      sql.NullString
	ProjectID  sql.NullString
	EnvID      sql.NullString
}

type RecoveryListGrantsBeforeSelfConfigRow

type RecoveryListGrantsBeforeSelfConfigRow struct {
	Capability string
	OrgID      sql.NullString
	ProjectID  sql.NullString
	EnvID      sql.NullString
}

type ReencryptOauth2ProviderParams

type ReencryptOauth2ProviderParams struct {
	Ct         []byte
	DekVersion int64
	ID         string
	RowVersion int64
}

type ReencryptOidcProviderParams

type ReencryptOidcProviderParams struct {
	Ct         []byte
	DekVersion int64
	ID         string
	RowVersion int64
}

type ReencryptPairingExchangesParams

type ReencryptPairingExchangesParams struct {
	NewCt []byte
	ID    string
	OldCt []byte
}

type ReencryptPairingInvitesParams

type ReencryptPairingInvitesParams struct {
	NewCt []byte
	ID    string
	OldCt []byte
}

type ReencryptPasswordCredParams

type ReencryptPasswordCredParams struct {
	Ct         []byte
	DekVersion int64
	AccountID  string
	RowVersion int64
}

type ReencryptPendingChangeParams

type ReencryptPendingChangeParams struct {
	Ciphertext   []byte
	OrgID        string
	ProjectID    string
	ID           string
	Ciphertext_2 []byte
}

type ReencryptPersonalValueParams

type ReencryptPersonalValueParams struct {
	NewCiphertext  []byte
	ChainOrgID     string
	ChainProjectID string
	ID             string
	OldCiphertext  []byte
}

type ReencryptPkiIssuerParams

type ReencryptPkiIssuerParams struct {
	Ct         []byte
	DekVersion sql.NullInt64
	ID         string
	RowVersion int64
}

type ReencryptRecoveryCodesParams

type ReencryptRecoveryCodesParams struct {
	Ct         []byte
	DekVersion int64
	AccountID  string
	RowVersion int64
}

type ReencryptRemoteParams

type ReencryptRemoteParams struct {
	NewCt []byte
	ID    string
	OldCt []byte
}

type ReencryptSamlKeyParams

type ReencryptSamlKeyParams struct {
	Ct         []byte
	DekVersion int64
	ID         string
	RowVersion int64
}

type ReencryptSelfConfigSeedInputParams

type ReencryptSelfConfigSeedInputParams struct {
	Ct         []byte
	DekVersion int64
	NodeID     string
	RowVersion int64
	OldCt      []byte
}

type ReencryptSnapshotEntryParams

type ReencryptSnapshotEntryParams struct {
	Ciphertext   []byte
	OrgID        string
	ProjectID    string
	ID           string
	Ciphertext_2 []byte
}

type ReencryptTotpCredParams

type ReencryptTotpCredParams struct {
	Ct         []byte
	DekVersion int64
	ID         string
	RowVersion int64
}

type ReencryptValueEntryParams

type ReencryptValueEntryParams struct {
	Ciphertext   []byte
	OrgID        string
	ProjectID    string
	ID           string
	Ciphertext_2 []byte
}

type RegistrationPolicy

type RegistrationPolicy struct {
	ID                   string
	OrgID                sql.NullString
	AuthorityPrincipalID sql.NullString
	Landing              string
	Template             sql.NullString
	LocalEnabled         int64
	FreshOrgCap          sql.NullInt64
	RowVersion           int64
	CreatedAt            string
	UpdatedAt            string
}

type RegistrationPolicyDomain

type RegistrationPolicyDomain struct {
	PolicyID string
	Domain   string
}

type RegistrationPolicyEntry

type RegistrationPolicyEntry struct {
	ID           string
	PolicyID     string
	ProviderKind string
	ProviderID   string
	Claim        sql.NullString
	CreatedAt    string
}

type RegistrationPolicyEntryValue

type RegistrationPolicyEntryValue struct {
	EntryID string
	Value   string
}

type RegistrationSignup

type RegistrationSignup struct {
	ID               string
	Email            string
	TokenVerifier    []byte
	PolicyID         string
	SignupScopeOrgID sql.NullString
	CredentialEpoch  int64
	CreatedAt        string
	ExpiresAt        string
}

type ReissueRegistrationSignupParams

type ReissueRegistrationSignupParams struct {
	TokenVerifier    []byte
	PolicyID         string
	SignupScopeOrgID sql.NullString
	CredentialEpoch  int64
	ExpiresAt        string
	ID               string
}

type Remote

type Remote struct {
	ID               string
	Name             string
	Url              string
	SpkiPin          string
	CredentialSealed []byte
	CreatedAt        string
	CreatedBy        string
}

type RemotePairedConnection

type RemotePairedConnection struct {
	ConnectionID string
	PublicJwk    string
	Thumbprint   string
	Origin       string
}

type RemotePairingExchange

type RemotePairingExchange struct {
	ID              string
	InviteID        string
	StateSealed     []byte
	CredentialEpoch int64
	CreatedAt       string
	ExpiresAt       string
	ConsumedAt      sql.NullString
}

type RemotePairingInvite

type RemotePairingInvite struct {
	ID                  string
	Label               string
	Origin              string
	SpkiPin             string
	CapabilityVerifier  []byte
	PakeSealed          []byte
	Attempts            int64
	CredentialEpoch     int64
	CreatedBy           string
	CreatedAt           string
	ExpiresAt           string
	CredentialExpiresAt string
	RevokedAt           sql.NullString
	ConsumedAt          sql.NullString
}

type RemotePairingReplay

type RemotePairingReplay struct {
	Thumbprint  string
	JtiVerifier []byte
	ExpiresAt   string
}

type RemoteSnapshot

type RemoteSnapshot struct {
	RemoteID         string
	LastAttemptAt    string
	LastOutcome      string
	ObservedAt       sql.NullString
	InstanceIdentity sql.NullString
	Version          sql.NullString
	OrgCount         sql.NullInt64
	ProjectCount     sql.NullInt64
	Listing          sql.NullString
}

type RenameEnvironmentParams

type RenameEnvironmentParams struct {
	Name      string
	OrgID     string
	ProjectID string
	ID        string
}

type RenameFolderParams

type RenameFolderParams struct {
	Path      string
	OrgID     string
	ProjectID string
	ID        string
}

type RenameKeyGroupParams

type RenameKeyGroupParams struct {
	Name      string
	OrgID     string
	ProjectID string
	ID        string
}

type RenameKeyParams

type RenameKeyParams struct {
	Name      string
	OrgID     string
	ProjectID string
	ID        string
}

type RenameOrgParams

type RenameOrgParams struct {
	Name string
	ID   string
}

type RenameProjectParams

type RenameProjectParams struct {
	Name  string
	OrgID string
	ID    string
}

type RenameRemoteParams

type RenameRemoteParams struct {
	Name string
	ID   string
}

type ResolveAccessRequestParams

type ResolveAccessRequestParams struct {
	ToState       string
	Cause         string
	ResolvedBy    string
	ResolvedAt    sql.NullString
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ID            string
	FromState     string
}

type ResolveEnvChainParams

type ResolveEnvChainParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type ResolveEnvChainRow

type ResolveEnvChainRow struct {
	OrgID     string
	ProjectID string
	ID        string
}

type ResolveKeyByIDParams

type ResolveKeyByIDParams struct {
	OrgID     string
	ProjectID string
	ID        string
}

type ResolveKeyByIDRow

type ResolveKeyByIDRow struct {
	ID         string
	FolderPath string
}

type ResolveKeyByNameParams

type ResolveKeyByNameParams struct {
	OrgID     string
	ProjectID string
	Name      string
}

type ResolveKeyByNameRow

type ResolveKeyByNameRow struct {
	ID         string
	FolderPath string
}

type ResolveProjectChainParams

type ResolveProjectChainParams struct {
	OrgID string
	ID    string
}

type ResolveProjectChainRow

type ResolveProjectChainRow struct {
	OrgID string
	ID    string
}

type ResolveRuleApprovalKeysParams

type ResolveRuleApprovalKeysParams struct {
	OrgID     string
	ProjectID string
	EnvID     string
	ID        string
}

type ResolveRulePendingKeyParams

type ResolveRulePendingKeyParams struct {
	OrgID     string
	ProjectID string
	EnvID     string
	OwnerID   string
	ID        string
}

type ResolveRulePendingKeyRow

type ResolveRulePendingKeyRow struct {
	ID         string
	FolderPath string
}

type ResumePersonalValueParams

type ResumePersonalValueParams struct {
	ChainOrgID     string
	ChainProjectID string
	ID             string
}

type RetentionRuntime

type RetentionRuntime struct {
	ID               int64
	LastPruneSuccess sql.NullString
}

type RetireMasterWrapperAtEpochParams

type RetireMasterWrapperAtEpochParams struct {
	Version      int64
	RootKeyEpoch int64
}

type RetireRetiringTier3ForScopeParams

type RetireRetiringTier3ForScopeParams struct {
	Purpose   string
	OrgID     string
	ProjectID string
}

type RetireTier3KeyAtVersionParams

type RetireTier3KeyAtVersionParams struct {
	Purpose   string
	OrgID     string
	ProjectID string
	Version   int64
}

type RevisionKeyChange

type RevisionKeyChange struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Revision      int64
	KeyID         string
	KeyName       string
	Change        string
}

type RevisionPin

type RevisionPin struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	WorkloadPrincipalID  string
	SnapshotID           string
	Revision             int64
	AuthorityPrincipalID string
	ExpiresAt            string
	CreatedAt            string
	AuthorizedAt         string
	HistoryAuthorized    int64
	SchemaOverride       int64
}

type RevokeAllMachineCredentialsParams

type RevokeAllMachineCredentialsParams struct {
	RevokedAt        sql.NullString
	ServiceAccountID string
}

type RevokeDeveloperCredentialParams

type RevokeDeveloperCredentialParams struct {
	RevokedAt sql.NullString
	ID        string
}

type RevokeInstanceConnectionParams

type RevokeInstanceConnectionParams struct {
	RevokedAt sql.NullString
	ID        string
}

type RevokeMachineCredentialParams

type RevokeMachineCredentialParams struct {
	RevokedAt        sql.NullString
	ID               string
	ServiceAccountID string
}

type RevokeRemotePairingInviteParams

type RevokeRemotePairingInviteParams struct {
	Now sql.NullString
	ID  string
}

type RevokeSCIMCredentialParams

type RevokeSCIMCredentialParams struct {
	RevokedAt sql.NullString
	OrgID     string
	BindingID string
	ID        string
}

type RevokeSCIMCredentialsForBindingParams

type RevokeSCIMCredentialsForBindingParams struct {
	RevokedAt sql.NullString
	OrgID     string
	BindingID string
}

type RotateSessionFactorsParams

type RotateSessionFactorsParams struct {
	Verifier []byte
	Factors  string
	ID       string
}

type Rule

type Rule struct {
	ID          string
	PrincipalID string
	Capability  string
	OrgID       string
	EnvMode     string
	KeyMode     string
	CreatedBy   string
	CreatedAt   string
}

type RuleItem

type RuleItem struct {
	ID         string
	RuleID     string
	OrgID      string
	Axis       string
	ProjectID  string
	EnvID      sql.NullString
	KeyID      sql.NullString
	FolderPath sql.NullString
}

type RuleKeyConflictingDraftCountParams

type RuleKeyConflictingDraftCountParams struct {
	OrgID     string
	ProjectID string
	EnvID     string
	KeyID     string
	OwnerID   string
}

type RuleKeyValueCountParams

type RuleKeyValueCountParams struct {
	OrgID     string
	ProjectID string
	EnvID     string
	KeyID     string
}

type RuntimeDynamicAssertLeaseParams

type RuntimeDynamicAssertLeaseParams struct {
	ID           string
	ChainOrg     string
	Worker       sql.NullString
	Now          sql.NullString
	ClaimToken   int64
	ChainProject string
	ChainEnv     string
}

type RuntimeDynamicClaimDueLeaseRow

type RuntimeDynamicClaimDueLeaseRow struct {
	ID              string
	OrgID           string
	ProjectID       string
	EnvironmentID   string
	ProviderID      string
	ProviderHandle  string
	PrincipalID     string
	PrincipalClass  string
	State           string
	MaxTtlSeconds   int64
	IssuedAt        sql.NullString
	ExpiresAt       sql.NullString
	AttemptCount    int64
	LeaseClaimToken int64
}

type RuntimeDynamicClaimLeaseParams

type RuntimeDynamicClaimLeaseParams struct {
	Attempt      int64
	Worker       sql.NullString
	Until        sql.NullString
	ClaimToken   int64
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type RuntimeDynamicCloseEffectParams

type RuntimeDynamicCloseEffectParams struct {
	Outcome        sql.NullString
	OutcomeAuditID sql.NullString
	At             sql.NullString
	ID             string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
}

type RuntimeDynamicInsertEffectParams

type RuntimeDynamicInsertEffectParams struct {
	ID            string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
	LeaseID       string
	Kind          string
	IntentAuditID string
	At            string
}

type RuntimeDynamicInsertLeaseAuditParams

type RuntimeDynamicInsertLeaseAuditParams struct {
	ID           string
	Type         string
	At           string
	AuthorityID  sql.NullString
	ChainOrg     string
	ChainProject sql.NullString
	ChainEnv     sql.NullString
	LeaseID      sql.NullString
	Outcome      string
	Payload      string
}

type RuntimeDynamicLatestEffectKindParams

type RuntimeDynamicLatestEffectKindParams struct {
	LeaseID      string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type RuntimeDynamicLoadProviderMaterialParams

type RuntimeDynamicLoadProviderMaterialParams struct {
	LeaseID      string
	ChainOrg     string
	ChainProject string
	Worker       sql.NullString
	Now          sql.NullString
	ClaimToken   int64
	ChainEnv     string
}

type RuntimeDynamicLoadProviderMaterialRow

type RuntimeDynamicLoadProviderMaterialRow struct {
	Kind                      string
	Origin                    string
	TlsMode                   string
	GrantRole                 string
	ID                        string
	AdminCredentialCiphertext []byte
}

type RuntimeDynamicRetryLeaseParams

type RuntimeDynamicRetryLeaseParams struct {
	NextAttempt  string
	ID           string
	ChainOrg     string
	Worker       sql.NullString
	Now          sql.NullString
	ClaimToken   int64
	ChainProject string
	ChainEnv     string
}

type RuntimeDynamicSettleLeaseParams

type RuntimeDynamicSettleLeaseParams struct {
	State        string
	IssuedAt     sql.NullString
	ExpiresAt    sql.NullString
	Now          string
	NextAttempt  string
	ID           string
	ChainOrg     string
	Worker       sql.NullString
	ClaimToken   int64
	ChainProject string
	ChainEnv     string
}

type RuntimePKIDueCRLsRow

type RuntimePKIDueCRLsRow struct {
	ID                  string
	Name                string
	Version             int64
	CertificateDer      []byte
	EncryptedPrivateKey []byte
	DekVersion          sql.NullInt64
	CrlNumber           int64
	RevocationSeq       int64
}

type RuntimePKIExpiredParams

type RuntimePKIExpiredParams struct {
	Now       string
	PageLimit int64
}

type RuntimePKIExpiredRow

type RuntimePKIExpiredRow struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Serial        string
	PrincipalID   string
	IssuerName    string
	RenewedFrom   string
}

type RuntimePKIMarkExpiredParams

type RuntimePKIMarkExpiredParams struct {
	At    string
	ID    string
	OrgID string
}

type RuntimePKIMarkUnknownParams

type RuntimePKIMarkUnknownParams struct {
	At    string
	ID    string
	OrgID string
}

type RuntimePKIPublishedAuditParams

type RuntimePKIPublishedAuditParams struct {
	ID       string
	At       string
	IssuerID sql.NullString
	Payload  string
}

type RuntimePKIReleaseRenewalParams

type RuntimePKIReleaseRenewalParams struct {
	At          string
	ID          string
	OrgID       string
	SuccessorID sql.NullString
}

type RuntimePKIStaleIssuingParams

type RuntimePKIStaleIssuingParams struct {
	Now       string
	PageLimit int64
}

type RuntimePKIStaleIssuingRow

type RuntimePKIStaleIssuingRow struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	Serial        string
	PrincipalID   string
	IssuerName    string
	RenewedFrom   string
}

type RuntimePKITransitionAuditParams

type RuntimePKITransitionAuditParams struct {
	ID            string
	At            string
	AuthorityID   sql.NullString
	OrgID         string
	ProjectID     sql.NullString
	EnvID         sql.NullString
	CertificateID sql.NullString
	Outcome       string
	Payload       string
}

type RuntimeSSHInsertAuthorityRevocationAuditParams

type RuntimeSSHInsertAuthorityRevocationAuditParams struct {
	ID            string
	At            string
	AuthorityID   sql.NullString
	ChainOrg      string
	ChainProject  sql.NullString
	ChainEnv      sql.NullString
	CertificateID sql.NullString
	Payload       string
}

type RuntimeSSHListLiveCertificatesParams

type RuntimeSSHListLiveCertificatesParams struct {
	Now       string
	AfterID   string
	PageLimit int64
}

type RuntimeSSHListLiveCertificatesRow

type RuntimeSSHListLiveCertificatesRow struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	ProfileID            string
	Serial               int64
	RequesterPrincipalID string
	RequesterClass       string
	RequesterListed      int64
}

type RuntimeSSHRevokeForAuthorityParams

type RuntimeSSHRevokeForAuthorityParams struct {
	At           sql.NullString
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHActiveCAKeyIDParams

type SSHActiveCAKeyIDParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHActiveCAKeyParams

type SSHActiveCAKeyParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHActiveCAKeyRow

type SSHActiveCAKeyRow struct {
	ID                   string
	Algorithm            string
	PublicKey            string
	PrivateKeyCiphertext []byte
}

type SSHActiveKeyLastExpiryParams

type SSHActiveKeyLastExpiryParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Now          string
}

type SSHCAKeyExistsParams

type SSHCAKeyExistsParams struct {
	KeyID        string
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHCAKeysParams

type SSHCAKeysParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHCAKeysRow

type SSHCAKeysRow struct {
	ID          string
	CaID        string
	Algorithm   string
	PublicKey   string
	Fingerprint string
	Origin      string
	State       string
	CreatedAt   string
	RetiringAt  sql.NullString
	RetireAfter sql.NullString
	RetiredAt   sql.NullString
}

type SSHCountLiveCAsParams

type SSHCountLiveCAsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHCountLiveProfilesParams

type SSHCountLiveProfilesParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHCreateCAParams

type SSHCreateCAParams struct {
	ID                   string
	ChainOrg             string
	ChainProject         string
	ChainEnv             string
	Name                 string
	AuthorityPrincipalID string
	At                   string
}

type SSHCreateProfileParams

type SSHCreateProfileParams struct {
	ID                string
	Name              string
	Principals        string
	ForceCommand      string
	SourceAddresses   string
	Extensions        string
	KeyAlgorithms     string
	DefaultTtlSeconds int64
	MaxTtlSeconds     int64
	State             string
	At                string
	CaID              string
	ChainOrg          string
	ChainProject      string
	ChainEnv          string
}

type SSHDeleteCAParams

type SSHDeleteCAParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHDeleteProfileParams

type SSHDeleteProfileParams struct {
	At           string
	ProfileID    string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHDeleteRequestersParams

type SSHDeleteRequestersParams struct {
	ProfileID    string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHGetCAParams

type SSHGetCAParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHGetCARow

type SSHGetCARow struct {
	ID                   string
	Name                 string
	State                string
	AuthorityPrincipalID string
	CreatedAt            string
}

type SSHGetCertificateParams

type SSHGetCertificateParams struct {
	CertificateID string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type SSHGetCertificateRow

type SSHGetCertificateRow struct {
	ID                   string
	CaID                 string
	CaKeyID              string
	ProfileID            string
	Serial               int64
	KeyID                string
	Principals           string
	PublicKeyFingerprint string
	KeyAlgorithm         string
	KeyOrigin            string
	ValidAfter           string
	ValidBefore          string
	RequesterPrincipalID string
	RequesterClass       string
	State                string
	RevokedAt            sql.NullString
	RevocationReason     sql.NullString
	CreatedAt            string
	CaKeyState           string
	CaKeyRetireAfter     sql.NullString
	CaState              string
}

type SSHGetProfileParams

type SSHGetProfileParams struct {
	ProfileID    string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHGetProfileRow

type SSHGetProfileRow struct {
	ID                string
	CaID              string
	Name              string
	Principals        string
	ForceCommand      string
	SourceAddresses   string
	Extensions        string
	KeyAlgorithms     string
	DefaultTtlSeconds int64
	MaxTtlSeconds     int64
	State             string
	CreatedAt         string
	UpdatedAt         string
}

type SSHInsertCAKeyParams

type SSHInsertCAKeyParams struct {
	ID           string
	Algorithm    string
	PublicKey    string
	Fingerprint  string
	Origin       string
	Ciphertext   []byte
	At           string
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHInsertCertificateParams

type SSHInsertCertificateParams struct {
	ID                   string
	Serial               int64
	KeyID                string
	Principals           string
	PublicKeyFingerprint string
	KeyAlgorithm         string
	KeyOrigin            string
	ValidAfter           string
	ValidBefore          string
	RequesterPrincipalID string
	RequesterClass       string
	At                   string
	CaKeyID              string
	CaID                 string
	ProfileID            string
	ChainOrg             string
	ChainProject         string
	ChainEnv             string
}

type SSHInsertRequesterParams

type SSHInsertRequesterParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	ProfileID    string
	Principal    string
	At           string
}

type SSHIsRequesterParams

type SSHIsRequesterParams struct {
	ProfileID    string
	PrincipalID  string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHListCAsParams

type SSHListCAsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHListCAsRow

type SSHListCAsRow struct {
	ID                   string
	Name                 string
	State                string
	AuthorityPrincipalID string
	CreatedAt            string
}

type SSHListCertificatesParams

type SSHListCertificatesParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	PageLimit    int64
}

type SSHListCertificatesRow

type SSHListCertificatesRow struct {
	ID                   string
	CaID                 string
	CaKeyID              string
	ProfileID            string
	Serial               int64
	KeyID                string
	Principals           string
	PublicKeyFingerprint string
	KeyAlgorithm         string
	KeyOrigin            string
	ValidAfter           string
	ValidBefore          string
	RequesterPrincipalID string
	RequesterClass       string
	State                string
	RevokedAt            sql.NullString
	RevocationReason     sql.NullString
	CreatedAt            string
	CaKeyState           string
	CaKeyRetireAfter     sql.NullString
	CaState              string
}

type SSHListKeysForReencryptParams

type SSHListKeysForReencryptParams struct {
	ChainOrg     string
	ChainProject string
	Cursor       string
	PageLimit    int64
}

type SSHListKeysForReencryptRow

type SSHListKeysForReencryptRow struct {
	ID                   string
	PrivateKeyCiphertext []byte
}

type SSHListProfilesParams

type SSHListProfilesParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHListProfilesRow

type SSHListProfilesRow struct {
	ID                string
	CaID              string
	Name              string
	Principals        string
	ForceCommand      string
	SourceAddresses   string
	Extensions        string
	KeyAlgorithms     string
	DefaultTtlSeconds int64
	MaxTtlSeconds     int64
	State             string
	CreatedAt         string
	UpdatedAt         string
}

type SSHProfileRevocationCandidatesParams

type SSHProfileRevocationCandidatesParams struct {
	ProfileID    string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	At           string
}

type SSHProfileRevocationCandidatesRow

type SSHProfileRevocationCandidatesRow struct {
	ID                   string
	Serial               int64
	RequesterPrincipalID string
}

type SSHPurgeCAKeysParams

type SSHPurgeCAKeysParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHPurgeCAsParams

type SSHPurgeCAsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHPurgeCertificatesParams

type SSHPurgeCertificatesParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHPurgeProfilesParams

type SSHPurgeProfilesParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHPurgeRequestersParams

type SSHPurgeRequestersParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHReencryptCAKeyParams

type SSHReencryptCAKeyParams struct {
	NewCiphertext []byte
	ChainOrg      string
	ChainProject  string
	ID            string
	OldCiphertext []byte
}

type SSHRequestersParams

type SSHRequestersParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHRequestersRow

type SSHRequestersRow struct {
	ProfileID   string
	PrincipalID string
}

type SSHRetireActiveCAKeyParams

type SSHRetireActiveCAKeyParams struct {
	At           sql.NullString
	RetireAfter  sql.NullString
	KeyID        string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHRetireAllCAKeysParams

type SSHRetireAllCAKeysParams struct {
	At           sql.NullString
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHRetireCAKeyParams

type SSHRetireCAKeyParams struct {
	At           sql.NullString
	KeyID        string
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type SSHRevokeCertificateParams

type SSHRevokeCertificateParams struct {
	At            sql.NullString
	Reason        sql.NullString
	CertificateID string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
}

type SSHRevokedSerialsParams

type SSHRevokedSerialsParams struct {
	CaID         string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Now          string
	PageLimit    int64
}

type SSHRevokedSerialsRow

type SSHRevokedSerialsRow struct {
	PublicKey string
	Serial    int64
}

type SSHUpdateProfileParams

type SSHUpdateProfileParams struct {
	Name              string
	Principals        string
	ForceCommand      string
	SourceAddresses   string
	Extensions        string
	KeyAlgorithms     string
	DefaultTtlSeconds int64
	MaxTtlSeconds     int64
	State             string
	At                string
	ID                string
	CaID              string
	ChainOrg          string
	ChainProject      string
	ChainEnv          string
}

type SamlProvider

type SamlProvider struct {
	ID                              string
	Slug                            string
	DisplayName                     string
	Kind                            string
	EntityID                        string
	AcsUrl                          string
	SsoRedirectUrl                  string
	SigningCertificates             []byte
	AssurancePolicy                 sql.NullString
	AllowEmailNameid                int64
	ForceSignRequests               int64
	MetadataWantAuthnRequestsSigned int64
	MetadataSource                  string
	MetadataUrl                     sql.NullString
	MetadataSigned                  int64
	MetadataSigningFingerprint      sql.NullString
	MetadataValidUntil              sql.NullString
	Enabled                         int64
	RowVersion                      int64
	CreatedAt                       string
	UpdatedAt                       string
}

type SamlReplay

type SamlReplay struct {
	Issuer      string
	AssertionID string
	ExpiresAt   string
	CreatedAt   string
}

type SamlSpKey

type SamlSpKey struct {
	ID                  string
	State               string
	EncryptedPrivateKey []byte
	CertificateDer      []byte
	Fingerprint         string
	DekVersion          int64
	RowVersion          int64
	CreatedAt           string
}

type SamlTransaction

type SamlTransaction struct {
	ID                  string
	RequestID           string
	RelayStateVerifier  []byte
	InitiatorVerifier   []byte
	ProviderID          string
	EntityID            string
	AcsUrl              string
	Purpose             string
	InitiatingSessionID sql.NullString
	AccountID           sql.NullString
	EnvironmentID       sql.NullString
	CeremonyID          sql.NullString
	CredentialEpoch     int64
	CreatedAt           string
	ExpiresAt           string
	ConsumedAt          sql.NullString
}

type SaveAuthRefusalWindowParams

type SaveAuthRefusalWindowParams struct {
	WindowStart int64
	State       string
}

type ScanningDismissal

type ScanningDismissal struct {
	ID               string
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	KeyID            string
	RuleDigest       string
	ValueFingerprint []byte
	CreatedAt        string
	CreatedBy        string
}

type ScimAttention

type ScimAttention struct {
	ID         string
	OrgID      string
	BindingID  string
	State      string
	SubjectRef string
	Cause      string
	EnteredAt  string
}

type ScimBinding

type ScimBinding struct {
	ID                       string
	OrgID                    string
	ProviderKind             string
	ProviderID               string
	ProviderSlug             string
	ProviderIssuer           string
	SubjectSource            string
	NameidFormat             string
	NameidQualifier          string
	NameidQualifierPresent   int64
	NameidSpQualifier        string
	NameidSpQualifierPresent int64
	ConnectionPrincipalID    string
	LastContactAt            sql.NullString
	CreatedAt                string
}

type ScimCredential

type ScimCredential struct {
	ID              string
	OrgID           string
	BindingID       string
	PrincipalID     string
	Verifier        []byte
	CredentialEpoch int64
	CreatedAt       string
	ExpiresAt       sql.NullString
	RevokedAt       sql.NullString
	LastUsedAt      sql.NullString
}

type ScimGroup

type ScimGroup struct {
	ID               string
	OrgID            string
	BindingID        string
	DisplayName      string
	DisplayNameLower string
	ExternalID       string
	CreatedAt        string
	UpdatedAt        string
}

type ScimGroupMember

type ScimGroupMember struct {
	ID        string
	OrgID     string
	BindingID string
	GroupID   string
	UserID    string
	CreatedAt string
}

type ScimMapping

type ScimMapping struct {
	ID             string
	OrgID          string
	BindingID      string
	GroupID        string
	Template       string
	ScopeProjectID string
	ScopeEnvID     string
	Inert          int64
	CreatedAt      string
}

type ScimUser

type ScimUser struct {
	ID            string
	OrgID         string
	BindingID     string
	AccountID     string
	UserName      string
	UserNameLower string
	ExternalID    string
	Subject       string
	Active        int64
	Attributes    string
	CreatedAt     string
	UpdatedAt     string
}

type SecretValueOccurrence

type SecretValueOccurrence struct {
	ValueEntryID  string
	OrgID         string
	ProjectID     string
	EnvironmentID string
}

type SelectDueAccessRequestsRow

type SelectDueAccessRequestsRow struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	PolicyID             string
	RequesterPrincipalID string
	State                string
}

type SelectExpiredApprovalRequestsRow

type SelectExpiredApprovalRequestsRow struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	PolicyID             string
	RequesterPrincipalID string
	ExpiresAt            string
}

type SelectExpiredDeliveryTargetReportsParams

type SelectExpiredDeliveryTargetReportsParams struct {
	ReceivedAt string
	BatchLimit int64
}

type SelectExpiredDeliveryTargetReportsRow

type SelectExpiredDeliveryTargetReportsRow struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	PrincipalID   string
	ReceivedAt    string
}

type SelfConfigBinding

type SelfConfigBinding struct {
	ID                 int64
	OwnerInstanceID    string
	AdoptionKey        string
	AdoptedBy          string
	OrgID              string
	ProjectID          string
	EnvironmentID      string
	SchemaVersion      int64
	Generation         int64
	DesiredRevision    int64
	DesiredSnapshotID  string
	PreviousSnapshotID string
	Incarnation        string
	Suspended          int64
	CreatedAt          string
	UpdatedAt          string
	MigrationVersion   int64
}

type SelfConfigJob

type SelfConfigJob struct {
	ID                         string
	IdempotencyKey             string
	ConfirmRestoredCredentials int64
	PrincipalID                string
	SnapshotID                 string
	Revision                   int64
	SchemaVersion              int64
	ExpectedGeneration         int64
	Generation                 int64
	Status                     string
	ErrorCode                  string
	CreatedAt                  string
	UpdatedAt                  string
}

type SelfConfigNode

type SelfConfigNode struct {
	NodeID           string
	JobID            string
	SchemaVersion    int64
	Prepared         int64
	ActiveGeneration int64
	ActiveRevision   int64
	Incarnation      string
	ErrorCode        string
	UpdatedAt        string
}

type SelfConfigRetention

type SelfConfigRetention struct {
	Slot       string
	SnapshotID string
}

type SelfConfigRollout

type SelfConfigRollout struct {
	JobID         string
	EnrollmentID  string
	Incarnation   string
	PlanDigest    string
	CommandJson   string
	ResponseJson  string
	ExternalPhase string
	Sequence      int64
	RowVersion    int64
}

type SelfConfigRolloutSequence

type SelfConfigRolloutSequence struct {
	EnrollmentID string
	Sequence     int64
}

type SelfConfigSeedAttestation

type SelfConfigSeedAttestation struct {
	NodeID        string
	SchemaVersion int64
	Fingerprint   string
	HeartbeatAt   string
}

type SelfConfigSeedInput

type SelfConfigSeedInput struct {
	NodeID          string
	OwnerInstanceID string
	Incarnation     string
	Fingerprint     string
	Ciphertext      []byte
	DekVersion      int64
	RowVersion      int64
}

type ServiceAccount

type ServiceAccount struct {
	ID          string
	PrincipalID string
	OrgID       string
	ProjectID   string
	Name        string
	Kind        string
	CreatedAt   string
	CreatedBy   string
}

type Session

type Session struct {
	ID                string
	PrincipalID       string
	Verifier          []byte
	Artifact          string
	SessionGeneration int64
	CredentialEpoch   int64
	AuthMethod        string
	Factors           string
	AuthenticatedAt   string
	CeremonyID        sql.NullString
	CreatedAt         string
	LastSeenAt        string
	IdleExpiresAt     string
	AbsoluteExpiresAt string
	SourceIp          string
	UserAgent         string
	CsrfVerifier      []byte
	ProviderID        sql.NullString
	SamlProviderID    sql.NullString
	RequestingOrigin  sql.NullString
	HandoffID         sql.NullString
	EnrolmentRequired int64
	Oauth2ProviderID  sql.NullString
	CliHandoffID      sql.NullString
}

type SetAuditRetentionPolicyParams

type SetAuditRetentionPolicyParams struct {
	AccessDays   int64
	SecurityDays int64
}

type SetBackupDrillParams

type SetBackupDrillParams struct {
	LastDrillAt            sql.NullString
	LastDrillOk            int64
	LastDrillArchive       string
	LastDrillElapsedMs     int64
	LastDrillBinaryVersion string
	LastDrillSchemaVersion int64
}

type SetBackupExportFailureParams

type SetBackupExportFailureParams struct {
	LastFailureAt     sql.NullString
	LastFailureReason string
}

type SetBackupExportSuccessParams

type SetBackupExportSuccessParams struct {
	LastSuccessAt      sql.NullString
	LastArtifactName   string
	LastArtifactBytes  int64
	LastArtifactSha256 string
}

type SetBackupPruneResultParams

type SetBackupPruneResultParams struct {
	AttemptAt               sql.NullString
	AttemptID               string
	FailureReason           string
	RetainedExpiredArchives int64
}

type SetCredentialPolicyParams

type SetCredentialPolicyParams struct {
	MaxFiniteLifetimeSeconds int64
	AllowIndefinite          int64
	MaxLiveCredentials       int64
	UpdatedAt                sql.NullString
	UpdatedBy                sql.NullString
}

type SetEnvironmentOrderParams

type SetEnvironmentOrderParams struct {
	DisplayOrder int64
	OrgID        string
	ProjectID    string
	ID           string
}

type SetEnvironmentParametersParams

type SetEnvironmentParametersParams struct {
	ParametersJson string
	ChainOrgID     string
	ChainProjectID string
	ChainEnvID     string
}

type SetEnvironmentSettingsParams

type SetEnvironmentSettingsParams struct {
	Protected           int64
	ReauthWindowSeconds sql.NullInt64
	OrgID               string
	ProjectID           string
	ID                  string
}

type SetEscrowVerificationParams

type SetEscrowVerificationParams struct {
	VerifiedAt  sql.NullString
	InstanceID  string
	Incarnation string
	RootEpoch   int64
}

type SetKeyClassificationParams

type SetKeyClassificationParams struct {
	Classification string
	OrgID          string
	ProjectID      string
	ID             string
}

type SetKeyGroupParams

type SetKeyGroupParams struct {
	GroupID   sql.NullString
	OrgID     string
	ProjectID string
	ID        string
}

type SetLocalAccountEmailParams

type SetLocalAccountEmailParams struct {
	Email           sql.NullString
	EmailVerifiedAt sql.NullString
	ID              string
}

type SetOrgIdentityImageParams

type SetOrgIdentityImageParams struct {
	IdentityImage        []byte
	IdentityImageType    sql.NullString
	IdentityImageVersion sql.NullString
	ID                   string
}

type SetOrgIdentityParams

type SetOrgIdentityParams struct {
	IdentityHue  int64
	IdentityMark sql.NullString
	ID           string
}

type SetOrgRetentionParams

type SetOrgRetentionParams struct {
	RetentionMode          string
	RetentionAgeSeconds    int64
	RetentionRevisionCount int64
	ID                     string
}

type SetPinGenerationParams

type SetPinGenerationParams struct {
	PrincipalID   string
	EnvironmentID string
	Generation    int64
}

type SetProjectCapacityParams

type SetProjectCapacityParams struct {
	KeyLimitOverride sql.NullInt64
	ChainOrgID       string
	ChainProjectID   string
	ExpectedRevision int64
}

type SetProjectDefinitionsSourceParams

type SetProjectDefinitionsSourceParams struct {
	DefinitionsSource string
	OrgID             string
	ID                string
}

type SetProjectIdentityImageParams

type SetProjectIdentityImageParams struct {
	IdentityImage        []byte
	IdentityImageType    sql.NullString
	IdentityImageVersion sql.NullString
	OrgID                string
	ID                   string
}

type SetProjectIdentityParams

type SetProjectIdentityParams struct {
	IdentityHue  int64
	IdentityMark sql.NullString
	OrgID        string
	ID           string
}

type SetProjectMachineRevealParams

type SetProjectMachineRevealParams struct {
	MachineReveal int64
	OrgID         string
	ID            string
}

type SetProjectRetentionParams

type SetProjectRetentionParams struct {
	RetentionAgeSeconds    sql.NullInt64
	RetentionRevisionCount sql.NullInt64
	OrgID                  string
	ID                     string
}

type SetSCIMMappingInertParams

type SetSCIMMappingInertParams struct {
	Inert     int64
	OrgID     string
	BindingID string
	GroupID   string
}

type SetSelfConfigRetentionParams

type SetSelfConfigRetentionParams struct {
	Slot       string
	SnapshotID string
}

type SetWebAuthnUserHandleParams

type SetWebAuthnUserHandleParams struct {
	WebauthnUserHandle []byte
	ID                 string
}

type SingletonLease

type SingletonLease struct {
	Name       string
	Owner      string
	FenceToken int64
	AcquiredAt string
	ExpiresAt  string
}

type SlideReauthWindowParams

type SlideReauthWindowParams struct {
	WindowExpiresAt string
	ID              string
}

type Snapshot

type Snapshot struct {
	ID                string
	OrgID             string
	ProjectID         string
	EnvironmentID     string
	Revision          int64
	SchemaRevision    int64
	PublishedBy       string
	PublishedAt       string
	PayloadPresent    int64
	CollectedAt       sql.NullString
	CollectedPolicy   string
	ParameterContract string
}

type SnapshotEntry

type SnapshotEntry struct {
	ID             string
	OrgID          string
	ProjectID      string
	EnvironmentID  string
	SnapshotID     string
	KeyID          string
	KeyName        string
	Classification string
	Ciphertext     []byte
	ValueEntryID   string
}

type SshCa

type SshCa struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	Name                 string
	State                string
	AuthorityPrincipalID string
	CreatedAt            string
}

type SshCaKey

type SshCaKey struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	CaID                 string
	Algorithm            string
	PublicKey            string
	Fingerprint          string
	Origin               string
	PrivateKeyCiphertext []byte
	State                string
	CreatedAt            string
	RetiringAt           sql.NullString
	RetireAfter          sql.NullString
	RetiredAt            sql.NullString
}

type SshCertificate

type SshCertificate struct {
	ID                   string
	OrgID                string
	ProjectID            string
	EnvironmentID        string
	CaID                 string
	CaKeyID              string
	ProfileID            string
	Serial               int64
	KeyID                string
	Principals           string
	PublicKeyFingerprint string
	KeyAlgorithm         string
	KeyOrigin            string
	ValidAfter           string
	ValidBefore          string
	RequesterPrincipalID string
	RequesterClass       string
	State                string
	RevokedAt            sql.NullString
	RevocationReason     sql.NullString
	CreatedAt            string
}

type SshProfile

type SshProfile struct {
	ID                string
	OrgID             string
	ProjectID         string
	EnvironmentID     string
	CaID              string
	Name              string
	Principals        string
	ForceCommand      string
	SourceAddresses   string
	Extensions        string
	KeyAlgorithms     string
	DefaultTtlSeconds int64
	MaxTtlSeconds     int64
	State             string
	CreatedAt         string
	UpdatedAt         string
}

type SshProfileRequester

type SshProfileRequester struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	ProfileID     string
	PrincipalID   string
	CreatedAt     string
}

type StampCredentialEstablishParams

type StampCredentialEstablishParams struct {
	SessionID  string
	IdentityID string
	ExpiresAt  string
}

type StrandedRevealPrincipalsForEnvironmentParams

type StrandedRevealPrincipalsForEnvironmentParams struct {
	Org     sql.NullString
	Project sql.NullString
	Env     sql.NullString
}

type SumSnapshotContractForProjectParams

type SumSnapshotContractForProjectParams struct {
	ChainOrgID     string
	ChainProjectID string
}

type SumSnapshotPayloadByProjectRow

type SumSnapshotPayloadByProjectRow struct {
	OrgID     string
	ProjectID string
	Bytes     int64
}

type SumSnapshotPayloadForProjectParams

type SumSnapshotPayloadForProjectParams struct {
	OrgID     string
	ProjectID string
}

type SumValuePayloadByProjectRow

type SumValuePayloadByProjectRow struct {
	OrgID     string
	ProjectID string
	Bytes     int64
}

type SumValuePayloadForProjectParams

type SumValuePayloadForProjectParams struct {
	OrgID     string
	ProjectID string
}

type SuspendPersonalValueParams

type SuspendPersonalValueParams struct {
	SuspendedAt    sql.NullString
	ChainOrgID     string
	ChainProjectID string
	ID             string
}

type Tier3Key

type Tier3Key struct {
	ID               string
	Purpose          string
	OrgID            string
	ProjectID        string
	Version          int64
	MasterKeyVersion int64
	State            string
	Blob             []byte
	CreatedAt        string
}

type TotpChallenge

type TotpChallenge struct {
	ID               string
	AccountID        string
	SessionID        sql.NullString
	Purpose          string
	OperationBinding sql.NullString
	EnvironmentID    sql.NullString
	CredentialEpoch  int64
	ExpiresAt        string
	ConsumedAt       sql.NullString
	CreatedAt        string
}

type TotpCredential

type TotpCredential struct {
	ID              string
	AccountID       string
	Seed            []byte
	DekVersion      int64
	CredentialEpoch int64
	RowVersion      int64
	LastStep        int64
	CreatedStep     int64
	ConfirmedAt     sql.NullString
	CreatedAt       string
}

type TouchInstanceConnectionParams

type TouchInstanceConnectionParams struct {
	LastUsedAt sql.NullString
	ID         string
}

type TouchMachineCredentialParams

type TouchMachineCredentialParams struct {
	LastUsedAt sql.NullString
	ID         string
}

type TouchSCIMBindingParams

type TouchSCIMBindingParams struct {
	LastContactAt sql.NullString
	OrgID         string
	ID            string
}

type TouchSCIMCredentialParams

type TouchSCIMCredentialParams struct {
	LastUsedAt sql.NullString
	ID         string
}

type TouchSessionParams

type TouchSessionParams struct {
	LastSeenAt    string
	IdleExpiresAt string
	ID            string
}

type TransitAdmissionLockParams

type TransitAdmissionLockParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitAppendVersionParams

type TransitAppendVersionParams struct {
	Version      int64
	At           string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	ExpectLatest int64
}

type TransitAvailableTrimFloorParams

type TransitAvailableTrimFloorParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitChangeStateParams

type TransitChangeStateParams struct {
	NextState     string
	DeletionAfter sql.NullString
	At            string
	ID            string
	ChainOrg      string
	ChainProject  string
	ChainEnv      string
	FromStates    []string
}

type TransitCompromiseParams

type TransitCompromiseParams struct {
	At           string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitCompromisedThroughParams

type TransitCompromisedThroughParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitConfigureParams

type TransitConfigureParams struct {
	MinEncrypt     int64
	MinDecrypt     int64
	RotationPeriod int64
	At             string
	ID             string
	ChainOrg       string
	ChainProject   string
	ChainEnv       string
}

type TransitCountExistingKeyParams

type TransitCountExistingKeyParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitCountKeysParams

type TransitCountKeysParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitCountVersionsParams

type TransitCountVersionsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
}

type TransitDeleteCallersParams

type TransitDeleteCallersParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
}

type TransitDestroyParams

type TransitDestroyParams struct {
	Now          string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitEraseMaterialParams

type TransitEraseMaterialParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
}

type TransitExternalVersionsParams

type TransitExternalVersionsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
}

type TransitExternalVersionsRow

type TransitExternalVersionsRow struct {
	ID          string
	Version     int64
	ExternalRef sql.NullString
}

type TransitFencePurgeParams

type TransitFencePurgeParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Now          sql.NullString
}

type TransitFenceTrimParams

type TransitFenceTrimParams struct {
	At           string
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitGaugeRotationCandidatesRow

type TransitGaugeRotationCandidatesRow struct {
	RotationPeriodSeconds int64
	CreatedAt             string
}

type TransitGetKeyForUseParams

type TransitGetKeyForUseParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Name         string
}

type TransitGetKeyForUseRow

type TransitGetKeyForUseRow struct {
	TransitKey TransitKey
}

type TransitGetKeyParams

type TransitGetKeyParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	Name         string
}

type TransitGetKeyRow

type TransitGetKeyRow struct {
	TransitKey TransitKey
}

type TransitInsertCallerParams

type TransitInsertCallerParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
	PrincipalID  string
	Operations   string
}

type TransitInsertKeyParams

type TransitInsertKeyParams struct {
	ID                    string
	ChainOrg              string
	ChainProject          string
	ChainEnv              string
	Name                  string
	Algorithm             string
	Custody               string
	AllowedOperations     string
	RotationPeriodSeconds int64
	CreatedBy             string
	At                    string
}

type TransitInsertVersionParams

type TransitInsertVersionParams struct {
	ID                 string
	ChainOrg           string
	ChainProject       string
	ChainEnv           string
	KeyID              string
	Version            int64
	MaterialCiphertext []byte
	ExternalRef        sql.NullString
	PublicKey          []byte
	At                 string
}

type TransitKey

type TransitKey struct {
	ID                        string
	OrgID                     string
	ProjectID                 string
	EnvironmentID             string
	Name                      string
	Algorithm                 string
	Custody                   string
	AllowedOperations         string
	Exportable                int64
	State                     string
	LatestVersion             int64
	MinEncryptVersion         int64
	MinDecryptVersion         int64
	MinAvailableVersion       int64
	CompromisedThroughVersion int64
	RotationPeriodSeconds     int64
	PurgeStarted              int64
	DeletionAfter             sql.NullString
	CreatedBy                 string
	CreatedAt                 string
	UpdatedAt                 string
}

type TransitKeyByIDParams

type TransitKeyByIDParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitKeyByIDRow

type TransitKeyByIDRow struct {
	TransitKey TransitKey
}

type TransitKeyCaller

type TransitKeyCaller struct {
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
	PrincipalID   string
	Operations    string
}

type TransitKeyVersion

type TransitKeyVersion struct {
	ID                 string
	OrgID              string
	ProjectID          string
	EnvironmentID      string
	KeyID              string
	Version            int64
	MaterialCiphertext []byte
	ExternalRef        sql.NullString
	PublicKey          []byte
	CreatedAt          string
}

type TransitListCallersParams

type TransitListCallersParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
}

type TransitListCallersRow

type TransitListCallersRow struct {
	PrincipalID string
	Operations  string
}

type TransitListKeysParams

type TransitListKeysParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitListKeysRow

type TransitListKeysRow struct {
	TransitKey TransitKey
}

type TransitListReencryptParams

type TransitListReencryptParams struct {
	ChainOrg     string
	ChainProject string
	Cursor       string
	PageLimit    int64
}

type TransitListReencryptRow

type TransitListReencryptRow struct {
	ID                 string
	EnvironmentID      string
	KeyID              string
	MaterialCiphertext []byte
}

type TransitListVersionsParams

type TransitListVersionsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
}

type TransitListVersionsRow

type TransitListVersionsRow struct {
	ID           string
	Version      int64
	PublicKey    []byte
	HasMaterial  int64
	ExternalHeld int64
	CreatedAt    string
}

type TransitReencryptParams

type TransitReencryptParams struct {
	NewCt        []byte
	ChainOrg     string
	ChainProject string
	ID           string
	OldCt        []byte
}

type TransitSelectDeletionDueParams

type TransitSelectDeletionDueParams struct {
	Now       sql.NullString
	AfterID   string
	PageLimit int64
}

type TransitSelectDeletionDueRow

type TransitSelectDeletionDueRow struct {
	TransitKey TransitKey
}

type TransitSelectRotationDueParams

type TransitSelectRotationDueParams struct {
	AfterID   string
	PageLimit int64
}

type TransitSelectRotationDueRow

type TransitSelectRotationDueRow struct {
	TransitKey      TransitKey
	LatestCreatedAt string
}

type TransitTrimFloorParams

type TransitTrimFloorParams struct {
	ID           string
	ChainOrg     string
	ChainProject string
	ChainEnv     string
}

type TransitTrimVersionsParams

type TransitTrimVersionsParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
	Through      int64
}

type TransitVersionMaterialParams

type TransitVersionMaterialParams struct {
	ChainOrg     string
	ChainProject string
	ChainEnv     string
	KeyID        string
	Version      int64
}

type TransitVersionMaterialRow

type TransitVersionMaterialRow struct {
	ID                 string
	Version            int64
	MaterialCiphertext []byte
	ExternalRef        sql.NullString
	PublicKey          []byte
}

type UpdateAccessPolicyParams

type UpdateAccessPolicyParams struct {
	Capabilities       string
	MaxDurationSeconds int64
	MinApprovals       int64
	AllowSelfApproval  int64
	RequestTtlSeconds  int64
	Enabled            int64
	UpdatedAt          string
	OrgID              string
	ProjectID          string
	ID                 string
}

type UpdateAccountProfileParams

type UpdateAccountProfileParams struct {
	Username    string
	DisplayName string
	AccountID   string
}

type UpdateApprovalPolicyParams

type UpdateApprovalPolicyParams struct {
	MinApprovals      int64
	AllowSelfApproval int64
	RequestTtlSeconds int64
	Enabled           int64
	UpdatedAt         string
	OrgID             string
	ProjectID         string
	ID                string
}

type UpdateApprovalRequestStateParams

type UpdateApprovalRequestStateParams struct {
	State            string
	InvalidatedCause string
	ResolvedAt       sql.NullString
	OrgID            string
	ProjectID        string
	EnvironmentID    string
	ID               string
}

type UpdateDeliveryTargetQuotaNoticeParams

type UpdateDeliveryTargetQuotaNoticeParams struct {
	RefusedAt   string
	OrgID       string
	ProjectID   string
	PrincipalID string
}

type UpdateDeliveryTargetReportParams

type UpdateDeliveryTargetReportParams struct {
	Namespace             string
	Name                  string
	Vocabulary            int64
	Generation            int64
	ObservedGeneration    int64
	ReportedAt            string
	ReceivedAt            string
	ReportIntervalSeconds int64
	Lifecycle             string
	Conditions            string
	Reporter              string
	ReporterVersion       string
	OrgID                 string
	ProjectID             string
	EnvironmentID         string
	ID                    string
}

type UpdateEnvironmentNoteParams

type UpdateEnvironmentNoteParams struct {
	Note      string
	OrgID     string
	ProjectID string
	ID        string
}

type UpdateFederationIssuerParams

type UpdateFederationIssuerParams struct {
	JwksMode         string
	StaticJwks       sql.NullString
	CaBundlePem      string
	RefusedAudiences string
	UpdatedAt        sql.NullString
	UpdatedBy        sql.NullString
	ID               string
}

type UpdateKeyDeclarationParams

type UpdateKeyDeclarationParams struct {
	Declaration   string
	RequiredMode  string
	ForbiddenMode string
	OrgID         string
	ProjectID     string
	ID            string
}

type UpdateKeyMetadataParams

type UpdateKeyMetadataParams struct {
	FolderPath      string
	Description     string
	Deprecated      int64
	DeprecationNote string
	OrgID           string
	ProjectID       string
	ID              string
}

type UpdateOAuth2ProviderCASParams

type UpdateOAuth2ProviderCASParams struct {
	DisplayName  string
	ClientID     string
	ClientSecret []byte
	RedirectUri  string
	Enabled      int64
	DekVersion   int64
	UpdatedAt    string
	ID           string
	RowVersion   int64
}

type UpdateOIDCProviderCASParams

type UpdateOIDCProviderCASParams struct {
	DisplayName     string
	ClientID        string
	ClientSecret    []byte
	Scopes          string
	RedirectUri     string
	AssurancePolicy sql.NullString
	Enabled         int64
	DekVersion      int64
	UpdatedAt       string
	ID              string
	RowVersion      int64
}

type UpdatePasswordCredentialCASParams

type UpdatePasswordCredentialCASParams struct {
	Verifier        []byte
	KdfMemoryKib    int64
	KdfTime         int64
	KdfParallelism  int64
	DekVersion      int64
	CredentialEpoch int64
	UpdatedAt       string
	AccountID       string
	RowVersion      int64
}

type UpdateRecoveryCodesCASParams

type UpdateRecoveryCodesCASParams struct {
	Batch           []byte
	DekVersion      int64
	CredentialEpoch int64
	GeneratedAt     string
	AccountID       string
	RowVersion      int64
}

type UpdateRegistrationPolicyCASParams

type UpdateRegistrationPolicyCASParams struct {
	AuthorityPrincipalID sql.NullString
	Landing              string
	Template             sql.NullString
	LocalEnabled         int64
	FreshOrgCap          sql.NullInt64
	UpdatedAt            string
	ID                   string
	RowVersion           int64
}

type UpdateSAMLProviderCASParams

type UpdateSAMLProviderCASParams struct {
	DisplayName                     string
	AcsUrl                          string
	SsoRedirectUrl                  string
	SigningCertificates             []byte
	AssurancePolicy                 sql.NullString
	AllowEmailNameid                int64
	ForceSignRequests               int64
	MetadataWantAuthnRequestsSigned int64
	MetadataSource                  string
	MetadataUrl                     sql.NullString
	MetadataSigned                  int64
	MetadataSigningFingerprint      sql.NullString
	MetadataValidUntil              sql.NullString
	Enabled                         int64
	UpdatedAt                       string
	ID                              string
	RowVersion                      int64
}

type UpdateSCIMGroupParams

type UpdateSCIMGroupParams struct {
	DisplayName      string
	DisplayNameLower string
	ExternalID       string
	UpdatedAt        string
	OrgID            string
	BindingID        string
	ID               string
}

type UpdateSCIMMappingTemplateParams

type UpdateSCIMMappingTemplateParams struct {
	Template string
	OrgID    string
	ID       string
}

type UpdateSCIMUserParams

type UpdateSCIMUserParams struct {
	UserName      string
	UserNameLower string
	ExternalID    string
	Active        int64
	Attributes    string
	UpdatedAt     string
	OrgID         string
	BindingID     string
	ID            string
}

type UpdateSelfConfigJobParams

type UpdateSelfConfigJobParams struct {
	Status         string
	ErrorCode      string
	UpdatedAt      string
	ID             string
	PreviousStatus string
}

type UpdateSelfConfigRolloutParams

type UpdateSelfConfigRolloutParams struct {
	PlanDigest      string
	CommandJson     string
	ResponseJson    string
	ExternalPhase   string
	Sequence        int64
	JobID           string
	EnrollmentID    string
	Incarnation     string
	ExpectedVersion int64
}

type UpdateTier3WrappingParams

type UpdateTier3WrappingParams struct {
	Blob             []byte
	MasterKeyVersion int64
	ID               string
	Version          int64
}

type UpsertOrgEmailInvitationParams

type UpsertOrgEmailInvitationParams struct {
	ID                 string
	OrgID              string
	Email              string
	Template           string
	InviterPrincipalID string
	AccountID          sql.NullString
	TokenVerifier      []byte
	CredentialEpoch    int64
	CreatedAt          string
	ExpiresAt          string
}

type ValueEntry

type ValueEntry struct {
	ID            string
	OrgID         string
	ProjectID     string
	EnvironmentID string
	KeyID         string
	Ciphertext    []byte
	UpdatedAt     string
	UpdatedBy     string
}

type WebauthnCeremony

type WebauthnCeremony struct {
	ID                string
	ChallengeVerifier []byte
	SessionData       []byte
	AccountID         sql.NullString
	SessionID         sql.NullString
	Purpose           string
	OperationBinding  sql.NullString
	EnvironmentID     sql.NullString
	CredentialID      sql.NullString
	CredentialEpoch   int64
	ExpiresAt         string
	ConsumedAt        sql.NullString
	CreatedAt         string
}

type WebauthnCredential

type WebauthnCredential struct {
	ID              string
	AccountID       string
	CredentialID    []byte
	PublicKey       []byte
	Aaguid          []byte
	SignCount       int64
	Transports      string
	Discoverable    int64
	BackupEligible  int64
	BackupState     int64
	Label           string
	CredentialEpoch int64
	RowVersion      int64
	DisabledAt      sql.NullString
	CreatedAt       string
	LastUsedAt      sql.NullString
}

type WorkloadPinStateParams

type WorkloadPinStateParams struct {
	WorkloadPrincipalID string
	EnvironmentID       string
}

type WorkloadPinStateRow

type WorkloadPinStateRow struct {
	Revision       int64
	ExpiresAt      string
	LatestRevision int64
}

type WorkspaceHandoff

type WorkspaceHandoff struct {
	ID              string
	StateVerifier   []byte
	CodeVerifier    []byte
	Origin          string
	RedirectUri     string
	PkceChallenge   string
	Purpose         string
	SessionID       sql.NullString
	Operation       sql.NullString
	EnvID           sql.NullString
	KeySet          sql.NullString
	PrincipalID     sql.NullString
	CreatedAt       string
	ExpiresAt       string
	ConsumedAt      sql.NullString
	Factors         string
	FactorClass     string
	AuthenticatedAt string
}

type WorkspaceOrigin

type WorkspaceOrigin struct {
	Origin    string
	CreatedAt string
	CreatedBy string
}

type WriteRemoteSnapshotParams

type WriteRemoteSnapshotParams struct {
	RemoteID         string
	LastAttemptAt    string
	LastOutcome      string
	ObservedAt       sql.NullString
	InstanceIdentity sql.NullString
	Version          sql.NullString
	OrgCount         sql.NullInt64
	ProjectCount     sql.NullInt64
	Listing          sql.NullString
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL