controlstatedb

package
v0.1.0-rc.50 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbortConnectorPeerRebindParams

type AbortConnectorPeerRebindParams struct {
	RequestDigest []byte
	PairID        string
}

type AcceptServiceInvitationParams

type AcceptServiceInvitationParams struct {
	IdentityID         pgtype.Text
	Now                pgtype.Timestamptz
	ID                 string
	ServiceID          string
	TokenDigest        []byte
	VerifiedActorEmail pgtype.Text
}

type AcceptTeamInvitationParams

type AcceptTeamInvitationParams struct {
	AcceptedAt   pgtype.Timestamptz
	IdentityID   pgtype.Text
	MembershipID pgtype.Text
	InvitationID string
}

type AcknowledgeDeploymentPublisherConfigurationParams

type AcknowledgeDeploymentPublisherConfigurationParams struct {
	Revision            int64
	Healthy             bool
	AcknowledgedAt      pgtype.Timestamptz
	PublisherIdentityID string
}

type ActivateConnectorPeerBindingParams

type ActivateConnectorPeerBindingParams struct {
	Slots                  []byte
	DeliveryGeneration     int64
	KeyCiphertext          []byte
	KeyDigest              []byte
	StorageKeyID           string
	OperationID            string
	Challenge              []byte
	PublisherPreparedUntil pgtype.Timestamptz
	PublisherProvedUntil   pgtype.Timestamptz
	PublisherProofDigest   []byte
	RequestDigest          []byte
	PairID                 string
}

type ActivateMemberSlugParams

type ActivateMemberSlugParams struct {
	IdentityID        pgtype.Text
	ActivatedAt       pgtype.Timestamptz
	SlugReservationID string
}

type ActiveCompanyMembershipParams

type ActiveCompanyMembershipParams struct {
	MembershipID string
	Now          pgtype.Timestamptz
}

type ActiveTeamSubjectParams

type ActiveTeamSubjectParams struct {
	TeamID     string
	IdentityID string
	Now        pgtype.Timestamptz
}

type AddGuestShareServiceParams

type AddGuestShareServiceParams struct {
	ShareID string
	GuestID pgtype.Text
}

type AddPreviewServiceParams

type AddPreviewServiceParams struct {
	AddedAt    pgtype.Timestamptz
	ServiceID  string
	PreviewID  string
	IdentityID pgtype.Text
}

type AddServiceRunPreviewServiceParams

type AddServiceRunPreviewServiceParams struct {
	Now       pgtype.Timestamptz
	PreviewID string
}

type AddShareServiceParams

type AddShareServiceParams struct {
	ServiceID  string
	ShareID    string
	IdentityID pgtype.Text
}

type AdvanceGuestDemoNumberParams

type AdvanceGuestDemoNumberParams struct {
	AllocatedAt pgtype.Timestamptz
	ID          string
}

type AdvanceServiceRunNumberParams

type AdvanceServiceRunNumberParams struct {
	Now pgtype.Timestamptz
	ID  string
}

type AdvanceTeamPolicyRevisionParams

type AdvanceTeamPolicyRevisionParams struct {
	UpdatedAt pgtype.Timestamptz
	TeamID    string
}

type BeginAdminRelayDrainParams

type BeginAdminRelayDrainParams struct {
	DrainDeadline      pgtype.Timestamptz
	DrainedAt          pgtype.Timestamptz
	RelayID            string
	RelayRunID         string
	RelayLeaseRevision int64
}

type BeginAdminRelayDrainRow

type BeginAdminRelayDrainRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type BeginGuestServiceRunParams

type BeginGuestServiceRunParams struct {
	StartedAt    pgtype.Timestamptz
	ServiceRunID string
	ServiceID    string
}

type BeginIngressDrainParams

type BeginIngressDrainParams struct {
	DrainDeadline        pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
}

type BeginRelayDrainParams

type BeginRelayDrainParams struct {
	DrainDeadline      pgtype.Timestamptz
	RenewedAt          pgtype.Timestamptz
	RelayServiceID     string
	RelayID            string
	RelayRunID         string
	RelayLeaseRevision int64
}

type BeginRelayDrainRow

type BeginRelayDrainRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type BindInitialOIDCMembershipParams

type BindInitialOIDCMembershipParams struct {
	ConnectionID pgtype.Text
	TeamID       string
	IdentityID   string
}

type BindRelayRunSigningKeyParams

type BindRelayRunSigningKeyParams struct {
	RelayID              string
	RelayRunID           string
	PeerSigningPublicKey []byte
}

type CancelOpenServiceRecoveryEpisodeParams

type CancelOpenServiceRecoveryEpisodeParams struct {
	CanceledAt   pgtype.Timestamptz
	ServiceRunID string
}

type ClaimACMEOrderWorkParams

type ClaimACMEOrderWorkParams struct {
	WorkOwner     pgtype.Text
	WorkExpiresAt pgtype.Timestamptz
	ClaimedAt     pgtype.Timestamptz
}

type ClaimDNSAuthorityWorkParams

type ClaimDNSAuthorityWorkParams struct {
	WorkOwner     pgtype.Text
	WorkExpiresAt pgtype.Timestamptz
	ClaimedAt     pgtype.Timestamptz
}

type ClaimInvitationEmailParams

type ClaimInvitationEmailParams struct {
	LeaseOwner     pgtype.Text
	LeaseExpiresAt pgtype.Timestamptz
	Now            pgtype.Timestamptz
}

type ClaimPublisherAssertionParams

type ClaimPublisherAssertionParams struct {
	PublisherIdentityID string
	AssertionID         string
	ExpiresAt           pgtype.Timestamptz
}

type ClaimRelayCertificateOrderWorkParams

type ClaimRelayCertificateOrderWorkParams struct {
	WorkOwner     pgtype.Text
	WorkExpiresAt pgtype.Timestamptz
	ClaimedAt     pgtype.Timestamptz
}

type ClaimRelayServiceForCertificateOrderParams

type ClaimRelayServiceForCertificateOrderParams struct {
	Now              pgtype.Timestamptz
	RetryFailedAfter pgtype.Timestamptz
}

type ClaimServiceConnectionSlotParams

type ClaimServiceConnectionSlotParams struct {
	RelayID                      pgtype.Text
	RelayRunID                   pgtype.Text
	RelayLeaseRevision           pgtype.Int8
	PublisherConnectionID        string
	CredentialDigest             []byte
	ConnectionAssignmentRevision int64
	Now                          pgtype.Timestamptz
}

type ClaimServiceEndpointDNSWorkParams

type ClaimServiceEndpointDNSWorkParams struct {
	Worker    pgtype.Text
	ExpiresAt pgtype.Timestamptz
	Now       pgtype.Timestamptz
}

type CleanupExpiredConnectorPeerPairsParams

type CleanupExpiredConnectorPeerPairsParams struct {
	Now       pgtype.Timestamptz
	BatchSize int32
}

type CleanupServiceAuditEventsParams

type CleanupServiceAuditEventsParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CleanupSupersededRelayRunSigningKeysParams

type CleanupSupersededRelayRunSigningKeysParams struct {
	Cutoff    pgtype.Timestamptz
	BatchSize int32
}

type CleanupWorkloadAssertionsParams

type CleanupWorkloadAssertionsParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CleanupWorkloadAuditParams

type CleanupWorkloadAuditParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CleanupWorkloadCertificatesParams

type CleanupWorkloadCertificatesParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CleanupWorkloadPublicServiceVisitorsParams

type CleanupWorkloadPublicServiceVisitorsParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CleanupWorkloadServiceRightsParams

type CleanupWorkloadServiceRightsParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CleanupWorkloadSessionsParams

type CleanupWorkloadSessionsParams struct {
	BeforeTime pgtype.Timestamptz
	BatchSize  int32
}

type CloseServiceRunParams

type CloseServiceRunParams struct {
	Now       pgtype.Timestamptz
	ID        string
	ServiceID string
	RunNumber int64
}

type ClosedServiceRunsRow

type ClosedServiceRunsRow struct {
	ServiceID string
	ID        string
	RunNumber int64
}

type CompanySessionAuthorizedParams

type CompanySessionAuthorizedParams struct {
	TeamID     string
	IdentityID string
	SessionID  string
	Now        pgtype.Timestamptz
}

type CompanySessionRefreshValidParams

type CompanySessionRefreshValidParams struct {
	SessionID  string
	IdentityID string
	Now        pgtype.Timestamptz
}

type CompanySubjectDeadlineParams

type CompanySubjectDeadlineParams struct {
	TeamID     string
	IdentityID string
	SessionID  string
	Now        pgtype.Timestamptz
}

type CompanySubjectSessionAuthorizedParams

type CompanySubjectSessionAuthorizedParams struct {
	TeamID     string
	IdentityID string
	SessionID  string
	Now        pgtype.Timestamptz
}

type ConfirmConnectorPeerPairPreparedParams

type ConfirmConnectorPeerPairPreparedParams struct {
	AuthorityExpiresAt pgtype.Timestamptz
	BindingExpiresAt   pgtype.Timestamptz
	ID                 string
	DeliveryGeneration int64
	Now                pgtype.Timestamptz
}

type ConfirmConnectorPeerPendingPreparedParams

type ConfirmConnectorPeerPendingPreparedParams struct {
	AuthorityExpiresAt pgtype.Timestamptz
	BindingExpiresAt   pgtype.Timestamptz
	PairID             string
}

type ConsumeAuthenticationSeedParams

type ConsumeAuthenticationSeedParams struct {
	SeedKey   string
	AppliedAt pgtype.Timestamptz
}

type ConsumeCompanyLoginIntentParams

type ConsumeCompanyLoginIntentParams struct {
	Now pgtype.Timestamptz
	ID  string
}

type ConsumeOIDCAssertionParams

type ConsumeOIDCAssertionParams struct {
	AssertionDigest []byte
	ConsumedAt      pgtype.Timestamptz
	ExpiresAt       pgtype.Timestamptz
}

type ConsumeServiceHTTPBrowserLoginParams

type ConsumeServiceHTTPBrowserLoginParams struct {
	Now           pgtype.Timestamptz
	StateDigest   []byte
	BindingDigest []byte
}

type ConsumeShareHandoffParams

type ConsumeShareHandoffParams struct {
	Now          pgtype.Timestamptz
	TokenDigest  []byte
	ServiceID    string
	Hostname     string
	ServiceRunID string
}

type ConsumeShareHandoffRow

type ConsumeShareHandoffRow struct {
	ShareID     string
	RedirectUrl string
	Bridge      bool
}

type ControlAcmeAccount

type ControlAcmeAccount struct {
	ID                     string
	DirectoryUrl           string
	ContactEmail           string
	AccountKeyCiphertext   []byte
	AccountKeyStorageKeyID string
	AccountUrl             pgtype.Text
	AcceptedTermsUrl       pgtype.Text
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
}

type ControlAcmeAuthorization

type ControlAcmeAuthorization struct {
	ID                    string
	OrderID               string
	Identifier            string
	AuthorizationUrl      string
	ChallengeType         pgtype.Text
	ChallengeUrl          pgtype.Text
	ChallengeToken        pgtype.Text
	ChallengeDigest       []byte
	PresentationReference pgtype.Text
	State                 string
	AuthorizationRevision int64
	WorkOwner             pgtype.Text
	WorkEpoch             int64
	WorkExpiresAt         pgtype.Timestamptz
	Attempts              int64
	AvailableAt           pgtype.Timestamptz
	PresentedAt           pgtype.Timestamptz
	ValidatedAt           pgtype.Timestamptz
	CleanupCompletedAt    pgtype.Timestamptz
	ExpiresAt             pgtype.Timestamptz
	LastError             pgtype.Text
	CreatedAt             pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type ControlAcmeOrder

type ControlAcmeOrder struct {
	ID                     string
	CreatedRevision        int64
	AccountID              string
	ServiceRunID           string
	ServiceID              string
	ServiceRunNumber       int64
	ServiceRunParent       pgtype.Text
	ServiceParent          pgtype.Text
	IdempotencyKey         string
	RequestDigest          []byte
	CertificateCacheKey    string
	CertificateScope       string
	CertificateDomainID    pgtype.Text
	CertificateIdentifiers []string
	ChallengeMethod        string
	CsrDer                 []byte
	CsrDigest              []byte
	State                  string
	OrderRevision          int64
	OrderUrl               pgtype.Text
	FinalizeUrl            pgtype.Text
	FinalizationPossible   bool
	CertificateUrl         pgtype.Text
	CertificatePem         []byte
	NotBefore              pgtype.Timestamptz
	NotAfter               pgtype.Timestamptz
	RenewAt                pgtype.Timestamptz
	InstalledAt            pgtype.Timestamptz
	WorkOwner              pgtype.Text
	WorkEpoch              int64
	WorkExpiresAt          pgtype.Timestamptz
	Attempts               int64
	AvailableAt            pgtype.Timestamptz
	RetryNotBefore         pgtype.Timestamptz
	LastError              pgtype.Text
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
}

type ControlAdminAuditEvent

type ControlAdminAuditEvent struct {
	ID              int64
	ActorIdentityID pgtype.Text
	Actor           string
	RequestID       string
	Operation       string
	TargetKind      string
	TargetID        string
	Details         []byte
	OccurredAt      pgtype.Timestamptz
}

type ControlAppliedProject

type ControlAppliedProject struct {
	TeamID                  string
	ProjectKey              string
	SourceFingerprint       string
	ProjectLabel            string
	Revision                int64
	ConfigurationHash       string
	ConfigurationCiphertext []byte
	StorageKeyID            string
	CreatedByIdentityID     string
	UpdatedAt               pgtype.Timestamptz
	RetiredAt               pgtype.Timestamptz
}

type ControlAppliedProjectService

type ControlAppliedProjectService struct {
	TeamID          string
	ProjectKey      string
	Service         string
	DeploymentID    pgtype.Text
	ServiceID       pgtype.Text
	VisitorGrantID  pgtype.Text
	DesiredRevision int64
}

type ControlAuthenticationSeed

type ControlAuthenticationSeed struct {
	SeedKey   string
	AppliedAt pgtype.Timestamptz
}

type ControlCompanyAccessAudit

type ControlCompanyAccessAudit struct {
	ID                   int64
	TeamID               string
	IdentityConnectionID pgtype.Text
	ActorIdentityID      pgtype.Text
	TargetIdentityID     pgtype.Text
	Operation            string
	Revision             int64
	Details              []byte
	OccurredAt           pgtype.Timestamptz
}

type ControlCompanyAdmissionRequest

type ControlCompanyAdmissionRequest struct {
	ID                   string
	TeamID               string
	IdentityConnectionID string
	ConnectionRevision   int64
	IdentityID           string
	Subject              string
	MemberSlug           string
	State                string
	CreatedAt            pgtype.Timestamptz
	DecidedAt            pgtype.Timestamptz
}

type ControlCompanyEligibility

type ControlCompanyEligibility struct {
	IdentityConnectionID string
	TeamID               string
	IdentityID           string
	Subject              string
	ConnectionRevision   int64
	Revision             int64
	Eligible             bool
	ValidUntil           pgtype.Timestamptz
	RequestDigest        []byte
	UpdatedAt            pgtype.Timestamptz
	ExpirationNotifiedAt pgtype.Timestamptz
}

type ControlCompanyLoginIntent

type ControlCompanyLoginIntent struct {
	ID                   string
	TeamID               string
	IdentityConnectionID string
	ConnectionRevision   int64
	Issuer               string
	ClientID             string
	RedirectUri          string
	Nonce                string
	BindingDigest        []byte
	CreatedAt            pgtype.Timestamptz
	ExpiresAt            pgtype.Timestamptz
	ConsumedAt           pgtype.Timestamptz
}

type ControlCompanySessionContext

type ControlCompanySessionContext struct {
	SessionID            string
	TeamID               string
	IdentityConnectionID string
	ConnectionRevision   int64
	Subject              string
	AuthenticatedAt      pgtype.Timestamptz
	ExpiresAt            pgtype.Timestamptz
}

type ControlConnectorPeerAuditBinding

type ControlConnectorPeerAuditBinding struct {
	PairID              string
	ServiceID           string
	ServiceRunID        string
	RunNumber           int64
	PublisherIdentityID string
	IdentityID          pgtype.Text
	DeviceID            pgtype.Text
	SourceDigest        string
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	DeliveryGeneration  int64
	RetiredAt           pgtype.Timestamptz
}

type ControlConnectorPeerPair

type ControlConnectorPeerPair struct {
	ID                     string
	ServiceID              string
	ServiceRunID           string
	RunNumber              int64
	PublisherIdentityID    string
	SubjectKind            string
	SubjectID              string
	ParentControlSessionID pgtype.Text
	OwnerKey               string
	IdempotencyKey         string
	OwnerPublicKey         []byte
	OwnerRevision          int64
	RetiredAt              pgtype.Timestamptz
	RetireRequestDigest    []byte
	RequestDigest          []byte
	LastRenewalDigest      []byte
	PublisherPreparedUntil pgtype.Timestamptz
	KeyDigest              []byte
	KeyCiphertext          []byte
	DeliveryID             []byte
	StorageKeyID           string
	Slots                  []byte
	DeliveryGeneration     int64
	CreatedAt              pgtype.Timestamptz
	LastAuthorizedAt       pgtype.Timestamptz
	LastRequestAt          pgtype.Timestamptz
	ReplayFenceUntil       pgtype.Timestamptz
	ExpiresAt              pgtype.Timestamptz
	SessionKeyCiphertext   []byte
	SessionKeyDigest       []byte
	SessionKeyStorageKeyID pgtype.Text
	TrustRevision          int64
	HighWaterGeneration    int64
	BindingOperationID     string
	BindingChallenge       []byte
	PublisherProvedUntil   pgtype.Timestamptz
	PublisherProofDigest   []byte
	RebindOperationID      string
	RebindGeneration       pgtype.Int8
	RebindStatus           pgtype.Text
	RebindPrepareDigest    []byte
	RebindActivateDigest   []byte
	RebindAbortDigest      []byte
}

type ControlConnectorPeerPairLegClaim

type ControlConnectorPeerPairLegClaim struct {
	PairID             string
	ConnectionSlot     int16
	RequestedAt        pgtype.Timestamptz
	CheckedAt          pgtype.Timestamptz
	ConfirmedUntil     pgtype.Timestamptz
	NonceDigest        []byte
	SourceDigest       string
	SourceCiphertext   []byte
	SourceStorageKeyID string
	RelayID            string
	RelayRunID         string
	RelayLeaseRevision int64
	DeliveryGeneration int64
}

type ControlConnectorPeerPendingBinding

type ControlConnectorPeerPendingBinding struct {
	PairID                 string
	DeliveryGeneration     int64
	OperationID            string
	Challenge              []byte
	Slots                  []byte
	KeyCiphertext          []byte
	KeyDigest              []byte
	StorageKeyID           string
	CreatedAt              pgtype.Timestamptz
	PendingUntil           pgtype.Timestamptz
	PublisherPreparedUntil pgtype.Timestamptz
	PublisherProvedUntil   pgtype.Timestamptz
	PublisherProofDigest   []byte
}

type ControlConnectorPeerWatchVersion

type ControlConnectorPeerWatchVersion struct {
	ServiceRunID string
	Revision     int64
}

type ControlControlSession

type ControlControlSession struct {
	ID                      string
	IdentityID              string
	AccessTokenID           string
	AccessTokenDigest       []byte
	AccessExpiresAt         pgtype.Timestamptz
	RefreshTokenID          string
	RefreshTokenDigest      []byte
	RetrySecretCiphertext   []byte
	RetrySecretStorageKeyID string
	RefreshExpiresAt        pgtype.Timestamptz
	CreatedAt               pgtype.Timestamptz
	LastRefreshedAt         pgtype.Timestamptz
	RevokedAt               pgtype.Timestamptz
	RevokedBy               pgtype.Text
}

type ControlDeployment

type ControlDeployment struct {
	Ownership               string
	ID                      string
	TeamID                  string
	ProjectKey              string
	Name                    string
	Description             string
	DomainID                pgtype.Text
	Namespace               string
	Revision                int64
	ConfigurationHash       string
	ConfigurationCiphertext []byte
	StorageKeyID            pgtype.Text
	CreatePrincipalID       pgtype.Text
	CreateIdempotencyKey    pgtype.Text
	CreateRequestDigest     []byte
	DeletedAt               pgtype.Timestamptz
}

type ControlDeploymentManagementDeployment

type ControlDeploymentManagementDeployment struct {
	GrantID      string
	TeamID       string
	ProjectKey   string
	DeploymentID string
}

type ControlDeploymentManagementGrant

type ControlDeploymentManagementGrant struct {
	GrantID              string
	TeamID               string
	ProjectKey           string
	AllDeployments       bool
	TemporaryPublication string
	CreatedByIdentityID  string
	IdempotencyKey       string
	RequestDigest        []byte
	InitialKeyID         string
}

type ControlDeploymentManagementService

type ControlDeploymentManagementService struct {
	GrantID    string
	TeamID     string
	ProjectKey string
	Capability string
	Service    string
	Protocol   string
	RevokedAt  pgtype.Timestamptz
}

type ControlDeploymentName

type ControlDeploymentName struct {
	TeamID       string
	ProjectKey   string
	Name         string
	DeploymentID string
}

type ControlDeploymentNamespaceRename

type ControlDeploymentNamespaceRename struct {
	TeamID             string
	ProjectKey         string
	IdempotencyKey     string
	RequestDigest      []byte
	ResponseCiphertext []byte
	StorageKeyID       string
}

type ControlDeploymentPublisherEnrollment

type ControlDeploymentPublisherEnrollment struct {
	ID                  string
	DeploymentID        string
	SecretDigest        []byte
	MaxMembers          int32
	CreatedByIdentityID string
	ExpiresAt           pgtype.Timestamptz
	RevokedAt           pgtype.Timestamptz
	CreatePrincipalID   string
	IdempotencyKey      string
	RequestDigest       []byte
	SecretCiphertext    []byte
	StorageKeyID        string
}

type ControlDeploymentPublisherEnrollmentService

type ControlDeploymentPublisherEnrollmentService struct {
	EnrollmentID string
	Service      string
	Protocol     string
	ServiceID    string
	RevokedAt    pgtype.Timestamptz
}

type ControlDeploymentPublisherLease

type ControlDeploymentPublisherLease struct {
	TokenDigest         []byte
	PublisherIdentityID string
	KeyID               string
	ExpiresAt           pgtype.Timestamptz
}

type ControlDeploymentPublisherMember

type ControlDeploymentPublisherMember struct {
	PublisherIdentityID string
	DeploymentID        string
	EnrollmentID        string
	PublicKey           []byte
	KeyID               string
	ObservedRevision    int64
	AcknowledgedAt      pgtype.Timestamptz
	Healthy             bool
	LeaseExpiresAt      pgtype.Timestamptz
}

type ControlDeploymentPublisherServiceGrant

type ControlDeploymentPublisherServiceGrant struct {
	PublisherIdentityID string
	DeploymentID        string
	TeamID              string
	ProjectKey          string
	Service             string
	GrantID             string
}

type ControlDeviceLogin

type ControlDeviceLogin struct {
	CredentialDigest []byte
	UserCode         string
	StateDigest      []byte
	ExpiresAt        pgtype.Timestamptz
	Payload          []byte
	StorageKeyID     string
}

type ControlDnsAuthority

type ControlDnsAuthority struct {
	ID                    int64
	AuthorityReference    string
	TeamID                string
	DomainID              string
	CanonicalDomain       string
	CreateIdempotencyKey  string
	CreateRequestDigest   []byte
	ReleaseIdempotencyKey pgtype.Text
	Provider              string
	ProviderZoneID        pgtype.Text
	State                 string
	Nameservers           []string
	DelegationSetID       string
	NameserverDomain      string
	ClaimProofName        string
	ClaimProofValue       string
	ClaimProofVerifiedAt  pgtype.Timestamptz
	ClaimExpiresAt        pgtype.Timestamptz
	WorkRevision          int64
	WorkOwner             pgtype.Text
	WorkEpoch             int64
	WorkExpiresAt         pgtype.Timestamptz
	Attempts              int64
	AvailableAt           pgtype.Timestamptz
	LastError             pgtype.Text
	CreatedAt             pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type ControlDnsChallengeChange

type ControlDnsChallengeChange struct {
	ID            int64
	ZoneID        string
	RecordName    string
	DesiredDigest []byte
	ChangeID      string
	UpdatedAt     pgtype.Timestamptz
}

type ControlDomain

type ControlDomain struct {
	ID                      string
	Kind                    string
	TeamID                  pgtype.Text
	CanonicalDomain         string
	DnsAuthorityReference   pgtype.Text
	State                   string
	AuthorityRevision       int64
	VerificationTokenDigest []byte
	CreatedByIdentityID     pgtype.Text
	ClaimIdempotencyKey     pgtype.Text
	ClaimRequestDigest      []byte
	MakeDefaultWhenReady    bool
	CreatedAt               pgtype.Timestamptz
	VerifiedAt              pgtype.Timestamptz
	ReusableAfter           pgtype.Timestamptz
	ReleasedAt              pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
}

type ControlDomainTransferOffer

type ControlDomainTransferOffer struct {
	DomainID          string
	SourceTeamID      string
	DestinationTeamID string
	OfferedBy         string
	OfferedSessionID  string
	AuthorityRevision int64
	ExpiresAt         pgtype.Timestamptz
}

type ControlGuestTrial

type ControlGuestTrial struct {
	ID                    string
	CredentialID          pgtype.Text
	CredentialHash        []byte
	NamespaceLabel        string
	DomainID              string
	IngressPoolID         string
	DnsAuthorityReference string
	SourceIpDigest        pgtype.Text
	SourceIpKeyID         pgtype.Text
	IssuanceIpDigest      pgtype.Text
	ExpiresAt             pgtype.Timestamptz
	UsedReadyNs           int64
	FirstDemoAllocatedAt  pgtype.Timestamptz
	FirstReadyAt          pgtype.Timestamptz
	EndReason             pgtype.Text
	EndedAt               pgtype.Timestamptz
	LastDemoNumber        int64
	ActiveServiceRunID    pgtype.Text
	ActiveReadyAt         pgtype.Timestamptz
	ReadyDeadline         pgtype.Timestamptz
	ServingUntil          pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type ControlIdentity

type ControlIdentity struct {
	ID              string
	Kind            string
	Issuer          pgtype.Text
	Subject         pgtype.Text
	DisplayName     string
	NormalizedEmail pgtype.Text
	EmailVerified   bool
	Administrator   bool
	InitialTeamID   pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	DisabledAt      pgtype.Timestamptz
}

type ControlIdentityConnection

type ControlIdentityConnection struct {
	ID                  string
	TeamID              string
	Issuer              string
	SourceID            string
	Admission           string
	State               string
	Revision            int64
	ProvisioningDigest  []byte
	SetupDigest         []byte
	SetupExpiresAt      pgtype.Timestamptz
	ActivatedAt         pgtype.Timestamptz
	ReplacesID          pgtype.Text
	ReplacesRevision    pgtype.Int8
	CreatedByIdentityID string
	CreatedAt           pgtype.Timestamptz
	UpdatedAt           pgtype.Timestamptz
}

type ControlIngressLease

type ControlIngressLease struct {
	Region               string
	ID                   int64
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
	ProtocolVersion      int64
	ConnectionCapacity   int64
	IngressPoolID        string
	Https                bool
	ServicePortRanges    pgtype.Multirange[pgtype.Range[pgtype.Int4]]
	ReportedConnections  int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
}

type ControlIngressPool

type ControlIngressPool struct {
	ID              string
	PortsConfigured bool
	Ipv4Address     *netip.Addr
	Ipv6Address     *netip.Addr
	State           string
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type ControlIngressRunFence

type ControlIngressRunFence struct {
	ID                   int64
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
}

type ControlIngressServicePortRange

type ControlIngressServicePortRange struct {
	IngressPoolID string
	FirstPort     int32
	LastPort      int32
}

type ControlLocalProjectService

type ControlLocalProjectService struct {
	TeamID              string
	ProjectKey          string
	SourceFingerprint   string
	Service             string
	WorktreeKey         string
	ServiceID           pgtype.Text
	VisitorGrantID      pgtype.Text
	CreatedByIdentityID string
}

type ControlMaintenanceControl

type ControlMaintenanceControl struct {
	ID        int64
	Operation string
	Allowed   bool
	Revision  int64
	UpdatedAt pgtype.Timestamptz
	UpdatedBy string
}

type ControlManagedLabelReservation

type ControlManagedLabelReservation struct {
	ID        int64
	Label     string
	CreatedAt pgtype.Timestamptz
}

type ControlMemberSlugReservation

type ControlMemberSlugReservation struct {
	ID                   string
	TeamID               string
	MemberSlug           string
	State                string
	ReservedByIdentityID pgtype.Text
	CreatedAt            pgtype.Timestamptz
	ActivatedAt          pgtype.Timestamptz
	QuarantinedAt        pgtype.Timestamptz
	ReusableAfter        pgtype.Timestamptz
	ReleasedAt           pgtype.Timestamptz
}

type ControlOidcAssertionExchange

type ControlOidcAssertionExchange struct {
	ID              int64
	AssertionDigest []byte
	ConsumedAt      pgtype.Timestamptz
	ExpiresAt       pgtype.Timestamptz
}

type ControlOpaqueServiceHost

type ControlOpaqueServiceHost struct {
	ServiceID string
	GrantID   string
	Hostname  string
	Parent    string
}

type ControlOperatorNameserverHostname

type ControlOperatorNameserverHostname struct {
	Hostname        string
	DelegationSetID string
}

type ControlPreview

type ControlPreview struct {
	ID                  string
	SchemaVersion       int16
	TeamID              pgtype.Text
	GuestID             pgtype.Text
	CreatedByIdentityID pgtype.Text
	IdempotencyKey      string
	CreatedAt           pgtype.Timestamptz
	DemoServiceRunID    pgtype.Text
	TeamAccessEnabled   bool
}

type ControlPreviewService

type ControlPreviewService struct {
	PreviewID string
	TeamID    pgtype.Text
	GuestID   pgtype.Text
	ServiceID string
	AddedAt   pgtype.Timestamptz
}

type ControlProjectService

type ControlProjectService struct {
	TeamID     string
	ProjectKey string
	Name       string
	Protocol   string
}

type ControlPublicServiceVisitor

type ControlPublicServiceVisitor struct {
	WorkloadSessionID    pgtype.Text
	VisitorConnectionID  string
	ServiceID            string
	ServiceRunID         string
	RunNumber            int64
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
	DestinationPort      int32
	SourceDigest         string
	IdentityID           pgtype.Text
	DeviceID             pgtype.Text
	CertificateDigest    []byte
	PromotedAt           pgtype.Timestamptz
	ValidUntil           pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
	ClosedAt             pgtype.Timestamptz
}

type ControlPublisherAccessToken

type ControlPublisherAccessToken struct {
	AccessTokenDigest   []byte
	PublisherIdentityID string
	GrantID             string
	KeyID               string
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
}

type ControlPublisherAliasWildcard

type ControlPublisherAliasWildcard struct {
	Parent            string
	TeamID            string
	DomainID          string
	DomainRevision    int64
	IngressPoolID     string
	ZoneID            string
	Ipv4Address       *netip.Addr
	Ipv6Address       *netip.Addr
	ShadowedLabels    []string
	VerifiedUntil     pgtype.Timestamptz
	AvailableAt       pgtype.Timestamptz
	WorkOwner         pgtype.Text
	WorkEpoch         int64
	WorkExpiresAt     pgtype.Timestamptz
	ConsecutiveErrors int64
}

type ControlPublisherAliasWildcardFact

type ControlPublisherAliasWildcardFact struct {
	ServiceID             string
	Parent                string
	TeamID                pgtype.Text
	DomainID              string
	DomainRevision        int64
	IngressPoolID         string
	CanonicalDomain       string
	DnsAuthorityReference pgtype.Text
}

type ControlPublisherAssertion

type ControlPublisherAssertion struct {
	PublisherIdentityID string
	AssertionID         string
	ExpiresAt           pgtype.Timestamptz
}

type ControlPublisherCertificateCheckpoint

type ControlPublisherCertificateCheckpoint struct {
	PublisherIdentityID string
	PlanDigest          string
	CertificatePlan     []byte
}

type ControlPublisherEnrollment

type ControlPublisherEnrollment struct {
	ID                  string
	EnrollmentKeyDigest []byte
	TeamID              string
	Name                string
	IdentityKind        string
	GrantKind           string
	ServiceID           pgtype.Text
	DomainID            pgtype.Text
	Namespace           pgtype.Text
	MembershipID        pgtype.Text
	NamespaceScope      pgtype.Text
	Protocols           []string
	CreatedByIdentityID string
	Ownership           string
	OwnerMembershipID   pgtype.Text
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	RedeemedIdentityID  pgtype.Text
	RedeemedKeyID       pgtype.Text
	RedeemedGrantID     pgtype.Text
	RedeemedPublicKey   []byte
	RedeemedAt          pgtype.Timestamptz
}

type ControlPublisherGrant

type ControlPublisherGrant struct {
	ID                  string
	PublisherIdentityID string
	TeamID              pgtype.Text
	GuestID             pgtype.Text
	CreatedByIdentityID pgtype.Text
	Kind                string
	ServiceID           pgtype.Text
	Protocols           []string
	DomainID            pgtype.Text
	Namespace           pgtype.Text
	MembershipID        pgtype.Text
	NamespaceScope      pgtype.Text
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	RevokedAt           pgtype.Timestamptz
}

type ControlPublisherIdentity

type ControlPublisherIdentity struct {
	ID                  string
	TeamID              pgtype.Text
	Name                string
	Kind                string
	CreatedByIdentityID pgtype.Text
	Ownership           string
	OwnerMembershipID   pgtype.Text
	GuestID             pgtype.Text
	CreatedAt           pgtype.Timestamptz
	RevokedAt           pgtype.Timestamptz
}

type ControlPublisherIdentityKey

type ControlPublisherIdentityKey struct {
	ID                  string
	PublisherIdentityID string
	PublicKey           []byte
	Revision            int64
	CreatedAt           pgtype.Timestamptz
	RetiredAt           pgtype.Timestamptz
}

type ControlPublisherNamespaceAllocation

type ControlPublisherNamespaceAllocation struct {
	ServiceID                 string
	PublisherIdentityID       string
	PublisherGrantID          string
	InvocationID              string
	DeploymentID              pgtype.Text
	RequiredTemporaryApproval string
	RequestedExpiresAt        pgtype.Timestamptz
}

type ControlPublisherRunPolicyBookmark

type ControlPublisherRunPolicyBookmark struct {
	ServiceRunID string
	Bookmark     string
}

type ControlPublisherRuntime

type ControlPublisherRuntime struct {
	PublisherIdentityID       string
	TeamID                    string
	KeyID                     string
	ScopeID                   string
	ProcessRunID              string
	Epoch                     int64
	AddressFamily             string
	Evidence                  string
	StartedAt                 pgtype.Timestamptz
	ObservedAt                pgtype.Timestamptz
	LastSeenAt                pgtype.Timestamptz
	LeaseExpiresAt            pgtype.Timestamptz
	StoppedAt                 pgtype.Timestamptz
	DeploymentReport          []byte
	DeploymentID              pgtype.Text
	DeploymentFirstObservedAt pgtype.Timestamptz
}

type ControlReadDependencyVersion

type ControlReadDependencyVersion struct {
	Topic    string
	Bucket   int32
	Revision int64
}

type ControlRegisteredKeyWatchVersion

type ControlRegisteredKeyWatchVersion struct {
	TeamID     string
	ProjectKey string
	ServiceID  string
	Revision   int64
}

type ControlRelayCertificateOrder

type ControlRelayCertificateOrder struct {
	ID                     string
	AccountID              string
	RelayServiceID         string
	TlsServerName          string
	PrivateKeyCiphertext   []byte
	PrivateKeyStorageKeyID string
	CsrDer                 []byte
	CsrDigest              []byte
	State                  string
	OrderRevision          int64
	OrderUrl               pgtype.Text
	FinalizeUrl            pgtype.Text
	CertificateUrl         pgtype.Text
	AuthorizationUrl       pgtype.Text
	ChallengeUrl           pgtype.Text
	ChallengeToken         pgtype.Text
	ChallengeDigest        []byte
	PresentationReference  pgtype.Text
	CertificatePem         []byte
	NotBefore              pgtype.Timestamptz
	NotAfter               pgtype.Timestamptz
	RenewAt                pgtype.Timestamptz
	WorkOwner              pgtype.Text
	WorkEpoch              int64
	WorkExpiresAt          pgtype.Timestamptz
	Attempts               int64
	AvailableAt            pgtype.Timestamptz
	LastError              pgtype.Text
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	AuthorizationExpiresAt pgtype.Timestamptz
}

type ControlRelayLease

type ControlRelayLease struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
}

type ControlRelayRunSigningKey

type ControlRelayRunSigningKey struct {
	RelayID              string
	RelayRunID           string
	PeerSigningPublicKey []byte
	SupersededAt         pgtype.Timestamptz
}

type ControlRelayService

type ControlRelayService struct {
	Region                          string
	ID                              int64
	RelayServiceID                  string
	RelayAddress                    string
	TlsServerName                   string
	TransportCertificatePem         pgtype.Text
	TransportPrivateKeyCiphertext   []byte
	TransportPrivateKeyStorageKeyID pgtype.Text
	TransportCertificateSerial      pgtype.Text
	TransportCertificateExpiresAt   pgtype.Timestamptz
	Enabled                         bool
	CreatedAt                       pgtype.Timestamptz
	UpdatedAt                       pgtype.Timestamptz
}

type ControlRelayServiceReservation

type ControlRelayServiceReservation struct {
	RelayServiceID    string
	ReservedSlotCount int64
}

type ControlRunAliasWatchVersion

type ControlRunAliasWatchVersion struct {
	ServiceRunID string
	Revision     int64
}

type ControlService

type ControlService struct {
	ID                      string
	TeamID                  pgtype.Text
	GuestID                 pgtype.Text
	Name                    string
	NameScope               string
	PlacementWorktreeKey    string
	PlacementWorktreeLabel  string
	Protocol                string
	TlsMetadata             []byte
	ConfigurationCiphertext []byte
	StorageKeyID            pgtype.Text
	TrustRevision           int64
	EndpointRevision        int64
	ServiceRevision         int64
	VisitorRevision         int64
	PublisherPool           bool
	Ephemeral               bool
	ExpiresAt               pgtype.Timestamptz
	RequirePostQuantum      bool
	DomainID                pgtype.Text
	CertificateHostname     string
	CertificateScope        string
	RunAliasParent          string
	ServicePort             pgtype.Int4
	IngressPoolID           string
	Public                  bool
	CreatedByIdentityID     pgtype.Text
	IdempotencyKey          string
	RequestDigest           []byte
	Enabled                 bool
	NextRunNumber           int64
	CreatedAt               pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	DeletedAt               pgtype.Timestamptz
}

type ControlServiceAuditEvent

type ControlServiceAuditEvent struct {
	Cursor                int64
	ID                    string
	TeamID                pgtype.Text
	GuestID               pgtype.Text
	ServiceID             string
	EventType             string
	OccurredAt            pgtype.Timestamptz
	ReceivedAt            pgtype.Timestamptz
	ActorIdentityID       pgtype.Text
	DeviceID              pgtype.Text
	PublisherIdentityID   pgtype.Text
	RunID                 pgtype.Text
	VisitorConnectionID   pgtype.Text
	SourceDigest          pgtype.Text
	Outcome               pgtype.Text
	Reason                pgtype.Text
	ConfigurationRevision pgtype.Int8
}

type ControlServiceCertificateRequest

type ControlServiceCertificateRequest struct {
	ServiceRunID   string
	IdempotencyKey string
	RequestDigest  []byte
	IssuanceID     string
}

type ControlServiceClientCertificate

type ControlServiceClientCertificate struct {
	ControlSessionID  pgtype.Text
	CertificateDigest []byte
	ServiceID         string
	IdentityID        string
	DeviceID          string
	CsrDigest         []byte
	CertificatePem    []byte
	CreatedAt         pgtype.Timestamptz
	ExpiresAt         pgtype.Timestamptz
	RevokedAt         pgtype.Timestamptz
}

type ControlServiceClientCertificateIssuer

type ControlServiceClientCertificateIssuer struct {
	ID             bool
	SeedCiphertext []byte
	StorageKeyID   string
	CreatedAt      pgtype.Timestamptz
}

type ControlServiceConnectionSlot

type ControlServiceConnectionSlot struct {
	ServiceRunID                 string
	ServiceID                    string
	RunNumber                    int64
	ConnectionSlot               int16
	PublisherConnectionID        string
	ConnectionAssignmentRevision int64
	RelayServiceID               string
	RelayAddress                 string
	TlsServerName                string
	CredentialDigest             []byte
	CredentialExpiresAt          pgtype.Timestamptz
	RelayID                      pgtype.Text
	RelayRunID                   pgtype.Text
	RelayLeaseRevision           pgtype.Int8
	State                        string
	AssignedAt                   pgtype.Timestamptz
	SessionOpen                  bool
}

type ControlServiceCreationRequest

type ControlServiceCreationRequest struct {
	CreatedByIdentityID string
	IdempotencyKey      string
	ServiceID           string
	RequestDigest       []byte
	CreatedAt           pgtype.Timestamptz
}

type ControlServiceEndpoint

type ControlServiceEndpoint struct {
	Hostname              string
	ServiceID             string
	ServiceRunID          pgtype.Text
	PublisherIdentityID   pgtype.Text
	PublisherAliasParent  pgtype.Text
	DeploymentID          pgtype.Text
	LocalSourceKey        string
	DomainID              string
	Namespace             string
	IngressPoolID         string
	Public                bool
	DnsAutomation         bool
	DnsAuthorityReference pgtype.Text
	DnsState              string
	DnsRevision           int64
	DnsAttempts           int64
	DnsAvailableAt        pgtype.Timestamptz
	DnsLastError          pgtype.Text
	DnsWorkOwner          pgtype.Text
	DnsWorkEpoch          int64
	DnsWorkExpiresAt      pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
	RetiredAt             pgtype.Timestamptz
	ReusableAfter         pgtype.Timestamptz
	DnsConsecutiveErrors  int64
	WildcardDns           bool
}

type ControlServiceHttpBrowserHandoff

type ControlServiceHttpBrowserHandoff struct {
	TokenDigest      []byte
	SessionDigest    []byte
	ServiceID        string
	Hostname         string
	RunIds           []string
	CookieCiphertext []byte
	StorageKeyID     string
	ReturnPath       string
	RedirectUrl      string
	Bridge           bool
	ExpiresAt        pgtype.Timestamptz
	ConsumedAt       pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
}

type ControlServiceHttpBrowserLogin

type ControlServiceHttpBrowserLogin struct {
	StateDigest        []byte
	BindingDigest      []byte
	ServiceID          string
	RunIds             []string
	ReturnPath         string
	Nonce              string
	VerifierCiphertext []byte
	StorageKeyID       string
	ExpiresAt          pgtype.Timestamptz
	ConsumedAt         pgtype.Timestamptz
}

type ControlServiceHttpBrowserSession

type ControlServiceHttpBrowserSession struct {
	TokenDigest            []byte
	ControlSessionID       string
	ParentControlSessionID pgtype.Text
	RefreshCiphertext      []byte
	StorageKeyID           string
	ExpiresAt              pgtype.Timestamptz
	RevokedAt              pgtype.Timestamptz
}

type ControlServiceHttpGrant

type ControlServiceHttpGrant struct {
	ID                  string
	ServiceID           string
	Kind                string
	SecretDigest        []byte
	CreatedByIdentityID string
	ControlSessionID    pgtype.Text
	ExpiresAt           pgtype.Timestamptz
	RevokedAt           pgtype.Timestamptz
}

type ControlServiceInvitation

type ControlServiceInvitation struct {
	ID                  string
	ServiceID           string
	TeamID              string
	NormalizedEmail     string
	TokenDigest         []byte
	CreatedByIdentityID string
	IdempotencyKey      string
	RequestDigest       []byte
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	AcceptedAt          pgtype.Timestamptz
	AcceptedIdentityID  pgtype.Text
	RevokedAt           pgtype.Timestamptz
}

type ControlServiceIpKey

type ControlServiceIpKey struct {
	ServiceID     string
	Purpose       string
	KeyCiphertext []byte
	StorageKeyID  string
}

type ControlServiceNamespaceClaim

type ControlServiceNamespaceClaim struct {
	Namespace      string
	DeploymentID   pgtype.Text
	LocalSourceKey string
	MembershipID   pgtype.Text
	OwnerTeamID    pgtype.Text
	DomainID       string
	CreatedAt      pgtype.Timestamptz
	RetiredAt      pgtype.Timestamptz
	ReusableAfter  pgtype.Timestamptz
}

type ControlServicePolicyWatchBookmark

type ControlServicePolicyWatchBookmark struct {
	ServiceID string
	Bookmark  string
}

type ControlServicePortClaim

type ControlServicePortClaim struct {
	ID                      int64
	ServiceID               string
	IngressPoolID           string
	Port                    int32
	State                   string
	ClaimedAt               pgtype.Timestamptz
	RetiredAt               pgtype.Timestamptz
	ReusableAfter           pgtype.Timestamptz
	RetiredIssuanceRevision pgtype.Int8
	DnsClearedAt            pgtype.Timestamptz
}

type ControlServiceRecoveryEpisode

type ControlServiceRecoveryEpisode struct {
	ID              int64
	ServiceID       string
	ServiceRunID    string
	RunNumber       int64
	State           string
	OpenedAt        pgtype.Timestamptz
	ObservedAt      pgtype.Timestamptz
	CanceledAt      pgtype.Timestamptz
	RecoverySeconds pgtype.Float8
}

type ControlServiceRecoveryHistogram

type ControlServiceRecoveryHistogram struct {
	ID                    int16
	ObservationCount      int64
	ObservationSumSeconds float64
	BucketLe025           int64
	BucketLe05            int64
	BucketLe1             int64
	BucketLe2             int64
	BucketLe5             int64
	BucketLe10            int64
	BucketLe20            int64
	BucketLe30            int64
	BucketLe45            int64
	BucketLe60            int64
	BucketLe120           int64
	UpdatedAt             pgtype.Timestamptz
}

type ControlServiceRun

type ControlServiceRun struct {
	PreferredRegions           []string
	TrafficLimits              []byte
	ID                         string
	ServiceID                  string
	TeamID                     pgtype.Text
	GuestID                    pgtype.Text
	Protocol                   string
	RunNumber                  int64
	PublisherIdentityID        string
	PublisherGrantID           string
	PublisherKeyID             string
	IdempotencyKey             string
	RequestDigest              []byte
	PreparationExpiresAt       pgtype.Timestamptz
	AssignmentSeedCiphertext   []byte
	AssignmentSeedStorageKeyID string
	RunTokenDigest             []byte
	StartedAt                  pgtype.Timestamptz
	State                      string
	Healthy                    bool
	StreamCapacity             int32
	ReportedStreams            int32
	CertificateCacheKey        string
	CertificateScope           string
	CertificateIdentifiers     []string
	CertificateDomainID        pgtype.Text
	CertificateHostname        string
	CertificateNamespace       string
	RunHostname                string
	RunAliasParent             string
	RequirePostQuantum         bool
	CertificateIssuanceID      pgtype.Text
	SuppliedCertificateSha256  pgtype.Text
	CertificateExpiresAt       pgtype.Timestamptz
	CreatedAt                  pgtype.Timestamptz
	PublisherExpiresAt         pgtype.Timestamptz
	ServingObservedAt          pgtype.Timestamptz
	ServingUntil               pgtype.Timestamptz
	ReadyAt                    pgtype.Timestamptz
	ClosedAt                   pgtype.Timestamptz
	AssignmentsOpen            pgtype.Bool
}

type ControlServiceSourceOwner

type ControlServiceSourceOwner struct {
	ServiceID      string
	TeamID         string
	LocalSourceKey string
	MembershipID   pgtype.Text
	OwnerTeamID    pgtype.Text
	Local          bool
}

type ControlServiceSuppliedCertificate

type ControlServiceSuppliedCertificate struct {
	ServiceRunID        string
	CertificateSha256   string
	CertificateDomainID string
	NotAfter            pgtype.Timestamptz
	InstalledAt         pgtype.Timestamptz
}

type ControlServiceVisitorCapacity

type ControlServiceVisitorCapacity struct {
	VisitorConnectionID string
	ServiceRunID        string
	ValidUntil          pgtype.Timestamptz
	ClosedAt            pgtype.Timestamptz
}

type ControlShare

type ControlShare struct {
	ID                   string
	SchemaVersion        int16
	PreviewID            pgtype.Text
	TeamID               pgtype.Text
	GuestID              pgtype.Text
	Scope                string
	EntryServiceID       string
	ControlSessionID     pgtype.Text
	IssuerCompanyContext []byte
	Label                string
	CreatedByIdentityID  pgtype.Text
	IdempotencyKey       string
	RequestDigest        []byte
	SecretDigest         []byte
	CreatedAt            pgtype.Timestamptz
	ExpiresAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	RevokedByIdentityID  pgtype.Text
	RevokedByGuestID     pgtype.Text
}

type ControlShareCookie

type ControlShareCookie struct {
	TokenDigest []byte
	ShareID     string
	ServiceID   string
	Hostname    string
	CreatedAt   pgtype.Timestamptz
	ExpiresAt   pgtype.Timestamptz
}

type ControlShareHandoff

type ControlShareHandoff struct {
	TokenDigest []byte
	ShareID     string
	ServiceID   string
	Hostname    string
	RunIds      []string
	RedirectUrl string
	Bridge      bool
	CreatedAt   pgtype.Timestamptz
	ExpiresAt   pgtype.Timestamptz
	ConsumedAt  pgtype.Timestamptz
}

type ControlShareService

type ControlShareService struct {
	ShareID   string
	TeamID    pgtype.Text
	GuestID   pgtype.Text
	ServiceID string
}

type ControlTeam

type ControlTeam struct {
	ID                     string
	Kind                   string
	DisplayName            string
	ManagedLabel           string
	IngressPoolID          string
	DefaultDomainID        pgtype.Text
	PolicyRevision         int64
	FeedbackAuthors        string
	CreatedByIdentityID    string
	CreationIdempotencyKey pgtype.Text
	CreationRequestDigest  []byte
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	DeletedAt              pgtype.Timestamptz
	CompanySignInRequired  bool
}

type ControlTeamInvitation

type ControlTeamInvitation struct {
	PersonalAccountException   bool
	ID                         string
	TeamID                     string
	SlugReservationID          string
	InitialRole                string
	InvitedByIdentityID        string
	IdempotencyKey             string
	RequestDigest              []byte
	TokenDigest                []byte
	NormalizedEmailRestriction pgtype.Text
	State                      string
	CreatedAt                  pgtype.Timestamptz
	ExpiresAt                  pgtype.Timestamptz
	AcceptedAt                 pgtype.Timestamptz
	AcceptedByIdentityID       pgtype.Text
	AcceptedMembershipID       pgtype.Text
	RevokedAt                  pgtype.Timestamptz
	RevokedByIdentityID        pgtype.Text
}

type ControlTeamInvitationEmailDelivery

type ControlTeamInvitationEmailDelivery struct {
	DeliveryID        string
	PayloadCiphertext []byte
	StorageKeyID      pgtype.Text
	AvailableAt       pgtype.Timestamptz
	Attempts          int64
	LeaseOwner        pgtype.Text
	LeaseExpiresAt    pgtype.Timestamptz
	CompletedAt       pgtype.Timestamptz
	LastHTTPStatus    int32
}

type ControlTeamMembership

type ControlTeamMembership struct {
	ID                       string
	TeamID                   string
	IdentityID               string
	SlugReservationID        string
	ManagedLabel             string
	Role                     string
	AuthorityRevision        int64
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	RemovedAt                pgtype.Timestamptz
	RemovedByIdentityID      pgtype.Text
	IdentityConnectionID     pgtype.Text
	ManualSuspendedAt        pgtype.Timestamptz
	PersonalAccountException bool
}

type ControlVisitorDevice

type ControlVisitorDevice struct {
	ID         string
	IdentityID string
	PublicKey  []byte
	CreatedAt  pgtype.Timestamptz
	RevokedAt  pgtype.Timestamptz
}

type ControlVisitorGrant

type ControlVisitorGrant struct {
	ID                  string
	ServiceID           pgtype.Text
	TeamID              string
	Kind                string
	IdentityID          pgtype.Text
	AutoOwner           bool
	InvitationID        pgtype.Text
	CreatedByIdentityID string
	IdempotencyKey      string
	RequestDigest       []byte
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	RevokedAt           pgtype.Timestamptz
}

type ControlVisitorPolicy

type ControlVisitorPolicy struct {
	ResourceID string
	Revision   int64
	ChangedAt  pgtype.Timestamptz
}

type ControlVisitorPolicyEvent

type ControlVisitorPolicyEvent struct {
	ResourceID string
	Revision   int64
	ChangedAt  pgtype.Timestamptz
}

type ControlVisitorPolicyWatchVersion

type ControlVisitorPolicyWatchVersion struct {
	ServiceID string
	Revision  int64
}

type ControlVisitorTokenIssuer

type ControlVisitorTokenIssuer struct {
	ID     bool
	Issuer string
}

type ControlVisitorTokenKey

type ControlVisitorTokenKey struct {
	ID             string
	PublicKey      []byte
	SeedCiphertext []byte
	StorageKeyID   string
	CreatedAt      pgtype.Timestamptz
	RetainUntil    pgtype.Timestamptz
	RetiredAt      pgtype.Timestamptz
	RevokedAt      pgtype.Timestamptz
}

type ControlVisitorVerificationKeyRevision

type ControlVisitorVerificationKeyRevision struct {
	ID       int16
	Revision int64
}

type ControlWorkloadAssertion

type ControlWorkloadAssertion struct {
	JtiDigest         []byte
	AssertionDigest   []byte
	WorkloadSessionID string
	ExpiresAt         pgtype.Timestamptz
}

type ControlWorkloadAudit

type ControlWorkloadAudit struct {
	WorkloadSessionID string
	Event             string
	ServiceID         pgtype.Text
	OccurredAt        pgtype.Timestamptz
}

type ControlWorkloadClientCertificate

type ControlWorkloadClientCertificate struct {
	CertificateDigest []byte
	WorkloadSessionID string
	ServiceID         string
	CsrDigest         []byte
	CertificatePem    []byte
	ExpiresAt         pgtype.Timestamptz
}

type ControlWorkloadSession

type ControlWorkloadSession struct {
	ID                   string
	TeamID               string
	ProjectKey           string
	WorkloadName         string
	Provider             string
	SessionNonce         string
	RepositoryID         pgtype.Text
	RunID                pgtype.Text
	RunAttempt           pgtype.Text
	CheckRunID           pgtype.Text
	PublicKey            []byte
	RequestDigest        []byte
	Claims               []byte
	Binding              string
	CredentialDigest     []byte
	CredentialCiphertext []byte
	StorageKeyID         string
	CreatedAt            pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ExpiresAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	RenewalSequence      int64
	IdentityExpiresAt    pgtype.Timestamptz
}

type ControlWorkloadSessionService

type ControlWorkloadSessionService struct {
	WorkloadSessionID string
	ServiceID         string
	Service           string
}

type CopyCompanySessionContextsParams

type CopyCompanySessionContextsParams struct {
	DestinationSessionID string
	ExpiresAt            pgtype.Timestamptz
	SourceSessionID      string
	Now                  pgtype.Timestamptz
}

type CountActiveShareCookiesForServiceParams

type CountActiveShareCookiesForServiceParams struct {
	ServiceID string
	Now       pgtype.Timestamptz
}

type CountActiveSharesForServiceParams

type CountActiveSharesForServiceParams struct {
	ServiceID string
	Now       pgtype.Timestamptz
}

type CountConnectorPeerPairOwnersParams

type CountConnectorPeerPairOwnersParams struct {
	ServiceRunID string
	Now          pgtype.Timestamptz
	OwnerLimit   int32
}

type CountOpenServiceRunAssignmentsByRelayServiceRow

type CountOpenServiceRunAssignmentsByRelayServiceRow struct {
	RelayServiceID  string
	AssignmentCount int64
}

type CountRecentGuestTrialsByIPParams

type CountRecentGuestTrialsByIPParams struct {
	SourceIpKeyID    pgtype.Text
	IssuanceIpDigest pgtype.Text
	Since            pgtype.Timestamptz
}

type CountRelayActiveConnectionsParams

type CountRelayActiveConnectionsParams struct {
	RelayID            pgtype.Text
	RelayRunID         pgtype.Text
	RelayLeaseRevision pgtype.Int8
}

type CreateActiveSlugReservationParams

type CreateActiveSlugReservationParams struct {
	ID         string
	TeamID     string
	MemberSlug string
	IdentityID pgtype.Text
	CreatedAt  pgtype.Timestamptz
}

type CreateControlSessionParams

type CreateControlSessionParams struct {
	ID                      string
	IdentityID              string
	AccessTokenID           string
	AccessTokenDigest       []byte
	AccessExpiresAt         pgtype.Timestamptz
	RefreshTokenID          string
	RefreshTokenDigest      []byte
	RetrySecretCiphertext   []byte
	RetrySecretStorageKeyID string
	RefreshExpiresAt        pgtype.Timestamptz
	CreatedAt               pgtype.Timestamptz
}

type CreateCustomDNSAuthorityParams

type CreateCustomDNSAuthorityParams struct {
	AuthorityReference   string
	TeamID               string
	DomainID             string
	CanonicalDomain      string
	CreateIdempotencyKey string
	CreateRequestDigest  []byte
	DelegationSetID      string
	NameserverDomain     string
	ClaimProofName       string
	ClaimProofValue      string
	ClaimExpiresAt       pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
}

type CreateCustomDomainParams

type CreateCustomDomainParams struct {
	ID                    string
	TeamID                pgtype.Text
	CanonicalDomain       string
	DnsAuthorityReference pgtype.Text
	AuthorityRevision     int64
	CreatedByIdentityID   pgtype.Text
	ClaimIdempotencyKey   pgtype.Text
	ClaimRequestDigest    []byte
	MakeDefaultWhenReady  bool
	CreatedAt             pgtype.Timestamptz
}

type CreateGuestShareParams

type CreateGuestShareParams struct {
	ID             string
	Label          string
	IdempotencyKey string
	RequestDigest  []byte
	SecretDigest   []byte
	Now            pgtype.Timestamptz
	ExpiresAt      pgtype.Timestamptz
	GuestID        string
	ServiceID      string
}

type CreateInvitationEmailParams

type CreateInvitationEmailParams struct {
	DeliveryID        string
	PayloadCiphertext []byte
	StorageKeyID      pgtype.Text
	AvailableAt       pgtype.Timestamptz
}

type CreateManagedDomainParams

type CreateManagedDomainParams struct {
	ID              string
	CanonicalDomain string
	CreatedAt       pgtype.Timestamptz
}

type CreateOIDCIdentityParams

type CreateOIDCIdentityParams struct {
	ID              string
	Issuer          pgtype.Text
	Subject         pgtype.Text
	DisplayName     string
	NormalizedEmail pgtype.Text
	EmailVerified   bool
	CreatedAt       pgtype.Timestamptz
}

type CreateOrganizationTeamParams

type CreateOrganizationTeamParams struct {
	ID                     string
	DisplayName            string
	ManagedLabel           string
	DefaultDomainID        pgtype.Text
	CreatedByIdentityID    string
	CreationIdempotencyKey pgtype.Text
	CreationRequestDigest  []byte
	CreatedAt              pgtype.Timestamptz
}

type CreateOrganizationTeamRow

type CreateOrganizationTeamRow struct {
	ID              string
	Kind            string
	DisplayName     string
	ManagedLabel    string
	DefaultDomainID pgtype.Text
	PolicyRevision  int64
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type CreateOwnerMembershipParams

type CreateOwnerMembershipParams struct {
	ID                string
	TeamID            string
	IdentityID        string
	SlugReservationID string
	ManagedLabel      string
	CreatedAt         pgtype.Timestamptz
}

type CreatePersonalTeamParams

type CreatePersonalTeamParams struct {
	ID                  string
	DisplayName         string
	ManagedLabel        string
	CreatedByIdentityID string
	CreatedAt           pgtype.Timestamptz
}

type CreatePreviewParams

type CreatePreviewParams struct {
	ID                  string
	TeamID              pgtype.Text
	CreatedByIdentityID pgtype.Text
	IdempotencyKey      string
	CreatedAt           pgtype.Timestamptz
}

type CreatePreviewRow

type CreatePreviewRow struct {
	ID                  string
	SchemaVersion       int16
	TeamID              pgtype.Text
	GuestID             pgtype.Text
	CreatedByIdentityID pgtype.Text
	CreatedAt           pgtype.Timestamptz
	TeamAccessEnabled   bool
}

type CreateSeedMemberParams

type CreateSeedMemberParams struct {
	ID                string
	TeamID            string
	IdentityID        string
	SlugReservationID string
	ManagedLabel      string
	CreatedAt         pgtype.Timestamptz
}

type CreateServiceIPKeyParams

type CreateServiceIPKeyParams struct {
	ServiceID     string
	Purpose       string
	KeyCiphertext []byte
	StorageKeyID  string
}

type CreateServiceRunPreviewParams

type CreateServiceRunPreviewParams struct {
	ID           string
	Now          pgtype.Timestamptz
	ServiceRunID string
	ServiceID    string
	RunNumber    int64
}

type CreateShareParams

type CreateShareParams struct {
	ID                   string
	PreviewID            pgtype.Text
	TeamID               pgtype.Text
	Scope                string
	Label                string
	EntryServiceID       string
	ControlSessionID     pgtype.Text
	IssuerCompanyContext pgtype.Text
	CreatedByIdentityID  pgtype.Text
	IdempotencyKey       string
	RequestDigest        []byte
	SecretDigest         []byte
	CreatedAt            pgtype.Timestamptz
	ExpiresAt            pgtype.Timestamptz
}

type CreateTeamInvitationParams

type CreateTeamInvitationParams struct {
	PersonalAccountException   bool
	ID                         string
	TeamID                     string
	SlugReservationID          string
	InitialRole                string
	InvitedByIdentityID        string
	IdempotencyKey             string
	RequestDigest              []byte
	TokenDigest                []byte
	NormalizedEmailRestriction pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	ExpiresAt                  pgtype.Timestamptz
}

type CreateTeamMembershipParams

type CreateTeamMembershipParams struct {
	ID                string
	TeamID            string
	IdentityID        string
	SlugReservationID string
	ManagedLabel      string
	Role              string
	AuthorityRevision int64
	CreatedAt         pgtype.Timestamptz
}

type CreateVisitorTokenSigningKeyParams

type CreateVisitorTokenSigningKeyParams struct {
	ID             string
	PublicKey      []byte
	SeedCiphertext []byte
	StorageKeyID   string
	Now            pgtype.Timestamptz
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DNSAuthorityReleaseReadyParams

type DNSAuthorityReleaseReadyParams struct {
	AuthorityDomainID pgtype.Text
	ObservedAt        pgtype.Timestamptz
}

type DeleteServiceConnectionSlotParams

type DeleteServiceConnectionSlotParams struct {
	PublisherConnectionID string
	ServiceRunID          string
	Now                   pgtype.Timestamptz
}

type DeleteServiceParams

type DeleteServiceParams struct {
	Now     pgtype.Timestamptz
	ID      string
	TeamID  pgtype.Text
	GuestID pgtype.Text
}

type DemoteServiceRunParams

type DemoteServiceRunParams struct {
	ID        string
	ServiceID string
	RunNumber int64
}

type DeploymentManagementPublisherAllowedParams

type DeploymentManagementPublisherAllowedParams struct {
	GrantID     string
	PublisherID string
}

type DeploymentPublisherServiceAllowedParams

type DeploymentPublisherServiceAllowedParams struct {
	PublisherID  string
	DeploymentID string
	Service      string
	ServiceID    string
}

type DisconnectServiceConnectionSlotParams

type DisconnectServiceConnectionSlotParams struct {
	PublisherConnectionID        string
	ServiceRunID                 string
	RunNumber                    int64
	ConnectionAssignmentRevision int64
	RelayID                      pgtype.Text
	RelayRunID                   pgtype.Text
	RelayLeaseRevision           pgtype.Int8
}

type EnableIngressPoolParams

type EnableIngressPoolParams struct {
	Ipv4Address *netip.Addr
	Ipv6Address *netip.Addr
	UpdatedAt   pgtype.Timestamptz
	ID          string
}

type EnsureACMEAccountParams

type EnsureACMEAccountParams struct {
	ID                     string
	DirectoryUrl           string
	ContactEmail           string
	AccountKeyCiphertext   []byte
	AccountKeyStorageKeyID string
	CreatedAt              pgtype.Timestamptz
}

type ExpireServiceConnectionSlotParams

type ExpireServiceConnectionSlotParams struct {
	PublisherConnectionID string
	ServiceRunID          string
	Now                   pgtype.Timestamptz
}

type ExpireTeamInvitationsParams

type ExpireTeamInvitationsParams struct {
	TeamID string
	Now    pgtype.Timestamptz
}

type FeedbackRunScopeParams

type FeedbackRunScopeParams struct {
	ServiceRunID string
	ServiceID    string
	PreviewID    string
	RunNumber    int64
	Now          pgtype.Timestamptz
}

type FeedbackRunScopeRow

type FeedbackRunScopeRow struct {
	ServiceRunID     string
	ServiceID        string
	RunNumber        int64
	TeamID           pgtype.Text
	GuestID          pgtype.Text
	PreviewID        string
	DemoServiceRunID pgtype.Text
}

type FeedbackServiceScopeParams

type FeedbackServiceScopeParams struct {
	ServiceID string
	PreviewID string
}

type FeedbackServiceScopeRow

type FeedbackServiceScopeRow struct {
	TeamID  pgtype.Text
	GuestID pgtype.Text
}

type FenceIngressRunParams

type FenceIngressRunParams struct {
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
}

type FindDeploymentManagementRequestParams

type FindDeploymentManagementRequestParams struct {
	TeamID         string
	ProjectKey     string
	ActorID        string
	IdempotencyKey string
}

type FindDeploymentManagementRequestRow

type FindDeploymentManagementRequestRow struct {
	ControlDeploymentManagementGrant ControlDeploymentManagementGrant
	PublisherIdentityID              string
	ExpiresAt                        pgtype.Timestamptz
}

type FindDeploymentPublisherEnrollmentRequestParams

type FindDeploymentPublisherEnrollmentRequestParams struct {
	DeploymentID   string
	PrincipalID    string
	IdempotencyKey string
}

type FindGuestServiceAllocationParams

type FindGuestServiceAllocationParams struct {
	GuestID        pgtype.Text
	IdempotencyKey string
}

type FindGuestShareRequestParams

type FindGuestShareRequestParams struct {
	GuestID        pgtype.Text
	IdempotencyKey string
}

type FindOIDCIdentityParams

type FindOIDCIdentityParams struct {
	Issuer  pgtype.Text
	Subject pgtype.Text
}

type FindPublisherAllocationParams

type FindPublisherAllocationParams struct {
	PublisherIdentityID string
	PublisherGrantID    string
	InvocationID        string
}

type FindServiceInvitationRequestParams

type FindServiceInvitationRequestParams struct {
	CreatedByIdentityID string
	IdempotencyKey      string
}

type FindShareRequestParams

type FindShareRequestParams struct {
	CreatedByIdentityID pgtype.Text
	IdempotencyKey      string
}

type FinishGuestServiceRunParams

type FinishGuestServiceRunParams struct {
	CloseReason  string
	ClosedAt     pgtype.Timestamptz
	ServiceRunID pgtype.Text
}

type FinishInvitationEmailParams

type FinishInvitationEmailParams struct {
	Complete       bool
	Now            pgtype.Timestamptz
	AvailableAt    pgtype.Timestamptz
	LastHTTPStatus int32
	DeliveryID     string
	LeaseOwner     pgtype.Text
}

type ForgetExpiredGuestCredentialsParams

type ForgetExpiredGuestCredentialsParams struct {
	Now       pgtype.Timestamptz
	BatchSize int32
}

type ForgetExpiredGuestServiceConfigurationsParams

type ForgetExpiredGuestServiceConfigurationsParams struct {
	Now       pgtype.Timestamptz
	BatchSize int32
}

type ForgetOldGuestIssuanceDigestsParams

type ForgetOldGuestIssuanceDigestsParams struct {
	Cutoff    pgtype.Timestamptz
	BatchSize int32
}

type GetActiveShareForServiceParams

type GetActiveShareForServiceParams struct {
	ShareID   string
	ServiceID string
	Now       pgtype.Timestamptz
}

type GetAdminRuntimeCountsRow

type GetAdminRuntimeCountsRow struct {
	EnabledServices     int64
	SuspendedServices   int64
	StartingServiceRuns int64
	ReadyServiceRuns    int64
	IngressLeases       int64
	RelayLeases         int64
}

type GetAppliedProjectParams

type GetAppliedProjectParams struct {
	TeamID     string
	ProjectKey string
}

type GetCompanyEligibilityParams

type GetCompanyEligibilityParams struct {
	IdentityConnectionID string
	IdentityID           string
}

type GetConnectorPeerPairForOwnerParams

type GetConnectorPeerPairForOwnerParams struct {
	SubjectKind  string
	SubjectID    string
	ServiceRunID string
	OwnerKey     string
}

type GetControlSessionByAccessIDRow

type GetControlSessionByAccessIDRow struct {
	ID                      string
	IdentityID              string
	AccessTokenDigest       []byte
	AccessExpiresAt         pgtype.Timestamptz
	RetrySecretCiphertext   []byte
	RetrySecretStorageKeyID string
	RefreshExpiresAt        pgtype.Timestamptz
	Administrator           bool
	Issuer                  pgtype.Text
	Subject                 pgtype.Text
}

type GetCustomDomainByIdempotencyParams

type GetCustomDomainByIdempotencyParams struct {
	IdentityID     pgtype.Text
	TeamID         pgtype.Text
	IdempotencyKey pgtype.Text
}

type GetCustomDomainByIdempotencyRow

type GetCustomDomainByIdempotencyRow struct {
	ID                      string
	Kind                    string
	TeamID                  pgtype.Text
	CanonicalDomain         string
	DnsAuthorityReference   pgtype.Text
	State                   string
	AuthorityRevision       int64
	VerificationTokenDigest []byte
	CreatedByIdentityID     pgtype.Text
	ClaimIdempotencyKey     pgtype.Text
	ClaimRequestDigest      []byte
	MakeDefaultWhenReady    bool
	CreatedAt               pgtype.Timestamptz
	VerifiedAt              pgtype.Timestamptz
	ReusableAfter           pgtype.Timestamptz
	ReleasedAt              pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	Nameservers             []string
	ClaimProofName          string
	ClaimProofValue         string
	ClaimProofVerifiedAt    pgtype.Timestamptz
	ClaimExpiresAt          pgtype.Timestamptz
	ProviderZoneID          pgtype.Text
}

type GetDNSChallengeChangeParams

type GetDNSChallengeChangeParams struct {
	ZoneID     string
	RecordName string
}

type GetDNSChallengeChangeRow

type GetDNSChallengeChangeRow struct {
	DesiredDigest []byte
	ChangeID      string
}

type GetDNSChallengeSubjectParams

type GetDNSChallengeSubjectParams struct {
	AuthorizationID string
	OwnerID         string
}

type GetDNSChallengeSubjectRow

type GetDNSChallengeSubjectRow struct {
	ServiceID        string
	ServiceRunID     string
	ServiceRunNumber int64
}

type GetDeploymentPublisherStatusParams

type GetDeploymentPublisherStatusParams struct {
	DeploymentID string
	PublisherID  string
}

type GetDeploymentPublisherStatusRow

type GetDeploymentPublisherStatusRow struct {
	ControlDeploymentPublisherMember ControlDeploymentPublisherMember
	RevokedAt                        pgtype.Timestamptz
	TeamID                           string
	ProjectKey                       string
	DeploymentName                   string
	CurrentRevision                  int64
}

type GetDeploymentServiceConfigurationRow

type GetDeploymentServiceConfigurationRow struct {
	ControlDeployment ControlDeployment
	Service           string
}

type GetIdentityContextIdentityRow

type GetIdentityContextIdentityRow struct {
	ID              string
	DisplayName     string
	NormalizedEmail pgtype.Text
	EmailVerified   bool
	Administrator   bool
	CreatedAt       pgtype.Timestamptz
	PersonalTeamID  string
	DefaultTeamID   string
}

type GetIdentityTeamDomainReleaseParams

type GetIdentityTeamDomainReleaseParams struct {
	ObservedAt pgtype.Timestamptz
	DomainID   string
	TeamID     pgtype.Text
	IdentityID string
}

type GetIdentityTeamDomainReleaseRow

type GetIdentityTeamDomainReleaseRow struct {
	ID                    string
	Kind                  string
	TeamID                pgtype.Text
	CanonicalDomain       string
	DnsAuthorityReference pgtype.Text
	State                 string
	AuthorityRevision     int64
	CreatedAt             pgtype.Timestamptz
	VerifiedAt            pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
	ReleasedAt            pgtype.Timestamptz
	Nameservers           []string
	ClaimProofName        string
	ClaimProofValue       string
	ClaimProofVerifiedAt  pgtype.Timestamptz
	ClaimExpiresAt        pgtype.Timestamptz
	ProviderZoneID        pgtype.Text
	ObservedAt            pgtype.Timestamptz
	ReleaseBlockers       []string
	CertificateExpiresAt  pgtype.Timestamptz
}

type GetIdentityTeamParams

type GetIdentityTeamParams struct {
	IdentityID string
	TeamID     string
}

type GetIdentityTeamRow

type GetIdentityTeamRow struct {
	ID              string
	Kind            string
	DisplayName     string
	ManagedLabel    string
	DefaultDomainID pgtype.Text
	PolicyRevision  int64
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type GetIngressLeaseParams

type GetIngressLeaseParams struct {
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
	Now                  pgtype.Timestamptz
}

type GetIngressServingLeaseParams

type GetIngressServingLeaseParams struct {
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
	Now                  pgtype.Timestamptz
}

type GetInvitationByIdempotencyParams

type GetInvitationByIdempotencyParams struct {
	IdentityID     string
	TeamID         string
	IdempotencyKey string
}

type GetInvitationByIdempotencyRow

type GetInvitationByIdempotencyRow struct {
	PersonalAccountException   bool
	ID                         string
	TeamID                     string
	SlugReservationID          string
	InitialRole                string
	InvitedByIdentityID        string
	IdempotencyKey             string
	RequestDigest              []byte
	TokenDigest                []byte
	NormalizedEmailRestriction pgtype.Text
	State                      string
	CreatedAt                  pgtype.Timestamptz
	ExpiresAt                  pgtype.Timestamptz
	AcceptedAt                 pgtype.Timestamptz
	AcceptedByIdentityID       pgtype.Text
	AcceptedMembershipID       pgtype.Text
	RevokedAt                  pgtype.Timestamptz
	RevokedByIdentityID        pgtype.Text
	MemberSlug                 string
}

type GetLocalProjectServiceParams

type GetLocalProjectServiceParams struct {
	TeamID      string
	ProjectKey  string
	Service     string
	WorktreeKey string
}

type GetLocalProjectServiceRow

type GetLocalProjectServiceRow struct {
	SourceFingerprint string
	ControlService    ControlService
}

type GetOrganizationTeamByIdempotencyParams

type GetOrganizationTeamByIdempotencyParams struct {
	IdentityID     string
	IdempotencyKey pgtype.Text
}

type GetOrganizationTeamByIdempotencyRow

type GetOrganizationTeamByIdempotencyRow struct {
	ID                    string
	Kind                  string
	DisplayName           string
	ManagedLabel          string
	DefaultDomainID       pgtype.Text
	PolicyRevision        int64
	CreationRequestDigest []byte
	CreatedAt             pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type GetPreviewRow

type GetPreviewRow struct {
	ID                  string
	SchemaVersion       int16
	TeamID              pgtype.Text
	GuestID             pgtype.Text
	CreatedByIdentityID pgtype.Text
	CreatedAt           pgtype.Timestamptz
	TeamAccessEnabled   bool
	DemoServiceRunID    pgtype.Text
}

type GetPrivateDNSChallengeContextParams

type GetPrivateDNSChallengeContextParams struct {
	ServiceID       string
	AuthorizationID string
}

type GetPrivateDNSChallengeContextRow

type GetPrivateDNSChallengeContextRow struct {
	ServiceID              string
	TeamID                 pgtype.Text
	DomainID               pgtype.Text
	DnsAuthorityReference  pgtype.Text
	CertificateIdentifiers []string
	CanonicalDomain        string
	AuthorizationID        string
	Identifier             string
	ChallengeDigest        []byte
	PresentationReference  pgtype.Text
	State                  string
}

type GetPublisherDomainParams

type GetPublisherDomainParams struct {
	ID     string
	TeamID pgtype.Text
}

type GetPublisherGrantParams

type GetPublisherGrantParams struct {
	ID                  string
	PublisherIdentityID string
}

type GetPublisherKeyParams

type GetPublisherKeyParams struct {
	ID                  string
	PublisherIdentityID string
}

type GetRelayDNSChallengeContextRow

type GetRelayDNSChallengeContextRow struct {
	ID                    string
	RelayServiceID        string
	TlsServerName         string
	State                 string
	ChallengeDigest       []byte
	PresentationReference pgtype.Text
}

type GetRelayLeaseForClaimRow

type GetRelayLeaseForClaimRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type GetRelayLeaseForReadyRow

type GetRelayLeaseForReadyRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type GetRelayTransportCertificateParams

type GetRelayTransportCertificateParams struct {
	RelayServiceID     string
	RelayID            string
	RelayRunID         string
	RelayLeaseRevision int64
	Now                pgtype.Timestamptz
}

type GetServiceCertificateOrderByCSRParams

type GetServiceCertificateOrderByCSRParams struct {
	PublisherIdentityID    string
	AccountID              string
	CsrDigest              []byte
	CertificateCacheKey    string
	CertificateScope       string
	CertificateIdentifiers []string
	DomainID               pgtype.Text
}

type GetServiceCertificateRequestParams

type GetServiceCertificateRequestParams struct {
	ServiceRunID   string
	IdempotencyKey string
}

type GetServiceConfigurationRow

type GetServiceConfigurationRow struct {
	Service                   string
	ConfigurationCiphertext   []byte
	StorageKeyID              pgtype.Text
	LocalOwned                bool
	DeploymentOwned           bool
	AllocationOwned           bool
	RequiredTemporaryApproval string
}

type GetServiceCreationRequestParams

type GetServiceCreationRequestParams struct {
	CreatedByIdentityID string
	IdempotencyKey      string
}

type GetServiceCreationRequestRow

type GetServiceCreationRequestRow struct {
	ServiceID     string
	RequestDigest []byte
}

type GetServiceRunPublisherIdentityParams

type GetServiceRunPublisherIdentityParams struct {
	Now                 pgtype.Timestamptz
	ID                  string
	RunNumber           int64
	ServiceID           string
	PublisherIdentityID string
	PublisherGrantID    string
	PublisherKeyID      string
}

type GetServiceSourceRow

type GetServiceSourceRow struct {
	ProjectKey        string
	SourceFingerprint string
	Service           string
	WorktreeKey       string
}

type GetTeamActorContextParams

type GetTeamActorContextParams struct {
	IdentityID string
	TeamID     string
}

type GetTeamActorContextRow

type GetTeamActorContextRow struct {
	ID                string
	Kind              string
	DisplayName       string
	ManagedLabel      string
	DefaultDomainID   pgtype.Text
	PolicyRevision    int64
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ActorMembershipID string
	ActorRole         string
}

type GetTeamMembershipContextParams

type GetTeamMembershipContextParams struct {
	MembershipID string
	TeamID       string
}

type GetTeamMembershipContextRow

type GetTeamMembershipContextRow struct {
	IdentityConnectionID     pgtype.Text
	ManualSuspendedAt        pgtype.Timestamptz
	PersonalAccountException bool
	CompanySignInRequired    bool
	Active                   bool
	ID                       string
	TeamID                   string
	IdentityID               string
	TeamDisplayName          string
	TeamKind                 string
	Role                     string
	MemberSlug               string
	ManagedLabel             string
	PolicyRevision           int64
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
}

type GetTeamNamingRow

type GetTeamNamingRow struct {
	DisplayName  string
	ManagedLabel string
}

type GuestOwnsServiceParams

type GuestOwnsServiceParams struct {
	ServiceID string
	GuestID   pgtype.Text
}

type GuestRunAllowanceSpentParams

type GuestRunAllowanceSpentParams struct {
	Now          pgtype.Timestamptz
	ServiceRunID pgtype.Text
}

type GuestServiceServingDeadlineParams

type GuestServiceServingDeadlineParams struct {
	Now       pgtype.Timestamptz
	ServiceID string
}

type HasRetainedConnectorPeerPairParams

type HasRetainedConnectorPeerPairParams struct {
	ServiceID           string
	ServiceRunID        string
	RunNumber           int64
	PublisherIdentityID string
	Now                 pgtype.Timestamptz
}

type HasTeamMembershipHistoryParams

type HasTeamMembershipHistoryParams struct {
	TeamID     string
	IdentityID string
}

type IngressRegistrationDrainExpiredParams

type IngressRegistrationDrainExpiredParams struct {
	IngressID         string
	IngressRunID      string
	Region            string
	IngressPoolID     string
	Https             bool
	ServicePortRanges pgtype.Multirange[pgtype.Range[pgtype.Int4]]
	Now               pgtype.Timestamptz
}

type InitializeConnectorPeerSessionParams

type InitializeConnectorPeerSessionParams struct {
	Ciphertext    []byte
	Digest        []byte
	StorageKeyID  pgtype.Text
	TrustRevision int64
	ID            string
}

type InsertAdminAuditEventParams

type InsertAdminAuditEventParams struct {
	ActorIdentityID pgtype.Text
	Actor           string
	RequestID       string
	Operation       string
	TargetKind      string
	TargetID        string
	Details         []byte
	OccurredAt      pgtype.Timestamptz
}

type InsertCertificateIssuanceAuditEventParams

type InsertCertificateIssuanceAuditEventParams struct {
	ActorIdentityID pgtype.Text
	RequestID       string
	IssuanceID      string
	OccurredAt      pgtype.Timestamptz
}

type InsertCompanyAccessAuditParams

type InsertCompanyAccessAuditParams struct {
	TeamID               string
	IdentityConnectionID pgtype.Text
	ActorIdentityID      pgtype.Text
	TargetIdentityID     pgtype.Text
	Operation            string
	Revision             int64
	Now                  pgtype.Timestamptz
	Details              string
}

type InsertCompanySessionContextParams

type InsertCompanySessionContextParams struct {
	SessionID          string
	TeamID             string
	ConnectionID       string
	ConnectionRevision int64
	Subject            string
	AuthenticatedAt    pgtype.Timestamptz
	ExpiresAt          pgtype.Timestamptz
}

type InsertConnectorPeerPairParams

type InsertConnectorPeerPairParams struct {
	ID                     string
	ServiceID              string
	ServiceRunID           string
	RunNumber              int64
	PublisherIdentityID    string
	SubjectKind            string
	SubjectID              string
	ParentControlSessionID pgtype.Text
	OwnerKey               string
	IdempotencyKey         string
	OwnerPublicKey         []byte
	RequestDigest          []byte
	KeyDigest              []byte
	KeyCiphertext          []byte
	DeliveryID             []byte
	StorageKeyID           string
	Slots                  []byte
	Now                    pgtype.Timestamptz
	RequestAt              pgtype.Timestamptz
	ExpiresAt              pgtype.Timestamptz
}

type InsertConnectorPeerPendingBindingParams

type InsertConnectorPeerPendingBindingParams struct {
	PairID             string
	DeliveryGeneration int64
	OperationID        string
	Challenge          []byte
	Slots              []byte
	KeyCiphertext      []byte
	KeyDigest          []byte
	StorageKeyID       string
	Now                pgtype.Timestamptz
	PendingUntil       pgtype.Timestamptz
}

type InsertDeviceLoginParams

type InsertDeviceLoginParams struct {
	CredentialDigest []byte
	UserCode         string
	ExpiresAt        pgtype.Timestamptz
	Payload          []byte
	StorageKeyID     string
}

type InsertGuestTrialParams

type InsertGuestTrialParams struct {
	ID                    string
	CredentialID          pgtype.Text
	CredentialHash        []byte
	NamespaceLabel        string
	DomainID              string
	IngressPoolID         string
	DnsAuthorityReference string
	SourceIpDigest        pgtype.Text
	SourceIpKeyID         pgtype.Text
	IssuanceIpDigest      pgtype.Text
	ExpiresAt             pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
}

type InsertPublisherAccessParams

type InsertPublisherAccessParams struct {
	AccessTokenDigest   []byte
	PublisherIdentityID string
	GrantID             string
	KeyID               string
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
}

type InsertPublisherAllocationParams

type InsertPublisherAllocationParams struct {
	ServiceID                 string
	PublisherIdentityID       string
	PublisherGrantID          string
	InvocationID              string
	DeploymentID              pgtype.Text
	RequiredTemporaryApproval string
	RequestedExpiresAt        pgtype.Timestamptz
}

type InsertPublisherEnrollmentParams

type InsertPublisherEnrollmentParams struct {
	ID                  string
	EnrollmentKeyDigest []byte
	TeamID              string
	Name                string
	IdentityKind        string
	GrantKind           string
	ServiceID           pgtype.Text
	DomainID            pgtype.Text
	Namespace           pgtype.Text
	MembershipID        pgtype.Text
	NamespaceScope      pgtype.Text
	Protocols           []string
	CreatedByIdentityID string
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	Ownership           string
	OwnerMembershipID   pgtype.Text
}

type InsertPublisherGrantParams

type InsertPublisherGrantParams struct {
	ID                  string
	CreatedByIdentityID pgtype.Text
	Kind                string
	ServiceID           pgtype.Text
	DomainID            pgtype.Text
	Namespace           pgtype.Text
	MembershipID        pgtype.Text
	NamespaceScope      pgtype.Text
	Protocols           []string
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	PublisherIdentityID string
}

type InsertPublisherIdentityParams

type InsertPublisherIdentityParams struct {
	ID                  string
	TeamID              pgtype.Text
	Name                string
	Kind                string
	CreatedByIdentityID pgtype.Text
	GuestID             pgtype.Text
	CreatedAt           pgtype.Timestamptz
	Ownership           string
	OwnerMembershipID   pgtype.Text
}

type InsertPublisherKeyParams

type InsertPublisherKeyParams struct {
	ID                  string
	PublisherIdentityID string
	PublicKey           []byte
	Revision            int64
	CreatedAt           pgtype.Timestamptz
}

type InsertRelayCertificateOrderParams

type InsertRelayCertificateOrderParams struct {
	ID                     string
	AccountID              string
	RelayServiceID         string
	TlsServerName          string
	PrivateKeyCiphertext   []byte
	PrivateKeyStorageKeyID string
	CsrDer                 []byte
	CsrDigest              []byte
	CreatedAt              pgtype.Timestamptz
}

type InsertServiceAuditEventsParams

type InsertServiceAuditEventsParams struct {
	ReceivedAt pgtype.Timestamptz
	Ids        []string
	Teams      []string
	Services   []string
	Kinds      []string
	Times      []pgtype.Timestamptz
	Actors     []string
	Devices    []string
	Publishers []string
	Runs       []string
	Visitors   []string
	Sources    []string
	Outcomes   []string
	Reasons    []string
	Revisions  []int64
	TeamID     pgtype.Text
	GuestID    pgtype.Text
}

type InsertServiceCertificateOrderParams

type InsertServiceCertificateOrderParams struct {
	ID             string
	AccountID      string
	IdempotencyKey string
	RequestDigest  []byte
	CsrDer         []byte
	CsrDigest      []byte
	Now            pgtype.Timestamptz
	ServiceRunID   string
}

type InsertServiceCertificateRequestParams

type InsertServiceCertificateRequestParams struct {
	ServiceRunID   string
	IdempotencyKey string
	RequestDigest  []byte
	IssuanceID     string
}

type InsertServiceConnectionSlotParams

type InsertServiceConnectionSlotParams struct {
	PublisherConnectionID        string
	ServiceRunID                 string
	ServiceID                    string
	RunNumber                    int64
	ConnectionSlot               int16
	ConnectionAssignmentRevision int64
	RelayServiceID               string
	RelayAddress                 string
	TlsServerName                string
	CredentialDigest             []byte
	CredentialExpiresAt          pgtype.Timestamptz
	AssignedAt                   pgtype.Timestamptz
}

type InsertServiceCreationRequestParams

type InsertServiceCreationRequestParams struct {
	CreatedByIdentityID string
	IdempotencyKey      string
	ServiceID           string
	RequestDigest       []byte
	CreatedAt           pgtype.Timestamptz
}

type InsertServiceGrantParams

type InsertServiceGrantParams struct {
	ID                  string
	ServiceID           pgtype.Text
	TeamID              string
	Kind                string
	IdentityID          pgtype.Text
	InvitationID        pgtype.Text
	CreatedByIdentityID string
	IdempotencyKey      string
	RequestDigest       []byte
	Now                 pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
}

type InsertServiceHTTPBrowserHandoffParams

type InsertServiceHTTPBrowserHandoffParams struct {
	TokenDigest      []byte
	SessionDigest    []byte
	ServiceID        string
	RunIds           []string
	CookieCiphertext []byte
	StorageKeyID     string
	ReturnPath       string
	RedirectUrl      string
	Bridge           bool
	ExpiresAt        pgtype.Timestamptz
	Hostname         string
}

type InsertServiceHTTPBrowserLoginParams

type InsertServiceHTTPBrowserLoginParams struct {
	StateDigest        []byte
	BindingDigest      []byte
	ServiceID          string
	RunIds             []string
	ReturnPath         string
	Nonce              string
	VerifierCiphertext []byte
	StorageKeyID       string
	ExpiresAt          pgtype.Timestamptz
}

type InsertServiceHTTPBrowserSessionParams

type InsertServiceHTTPBrowserSessionParams struct {
	TokenDigest            []byte
	ControlSessionID       string
	ExpiresAt              pgtype.Timestamptz
	RefreshCiphertext      []byte
	StorageKeyID           string
	ParentControlSessionID pgtype.Text
}

type InsertServiceHTTPGrantParams

type InsertServiceHTTPGrantParams struct {
	ID                  string
	ServiceID           string
	Kind                string
	SecretDigest        []byte
	CreatedByIdentityID string
	ExpiresAt           pgtype.Timestamptz
	ControlSessionID    pgtype.Text
}

type InsertServiceInvitationParams

type InsertServiceInvitationParams struct {
	ID                  string
	ServiceID           string
	TeamID              string
	NormalizedEmail     string
	TokenDigest         []byte
	CreatedByIdentityID string
	IdempotencyKey      string
	RequestDigest       []byte
	Now                 pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
}

type InsertServiceParams

type InsertServiceParams struct {
	ID                  string
	TeamID              pgtype.Text
	Name                string
	NameScope           string
	CreatedByIdentityID pgtype.Text
	IdempotencyKey      string
	RequestDigest       []byte
	Now                 pgtype.Timestamptz
}

type InsertShareCookieParams

type InsertShareCookieParams struct {
	TokenDigest []byte
	CreatedAt   pgtype.Timestamptz
	ExpiresAt   pgtype.Timestamptz
	Hostname    string
	ServiceID   string
	ShareID     string
}

type InsertShareHandoffParams

type InsertShareHandoffParams struct {
	TokenDigest []byte
	RunIds      []string
	NextUrl     string
	Bridge      bool
	CreatedAt   pgtype.Timestamptz
	ExpiresAt   pgtype.Timestamptz
	Hostname    string
	ServiceID   string
	ShareID     string
}

type LimitConnectorPeerPairParams

type LimitConnectorPeerPairParams struct {
	AuthorityExpiresAt pgtype.Timestamptz
	ID                 string
	Now                pgtype.Timestamptz
}

type LimitConnectorPeerPendingForClaimParams

type LimitConnectorPeerPendingForClaimParams struct {
	ConfirmedUntil pgtype.Timestamptz
	PairID         string
}

type LimitConnectorPeerPreparedForClaimParams

type LimitConnectorPeerPreparedForClaimParams struct {
	ConfirmedUntil pgtype.Timestamptz
	PairID         string
}

type LimitGuestServiceRunExpiryParams

type LimitGuestServiceRunExpiryParams struct {
	Deadline     pgtype.Timestamptz
	ServiceRunID string
}

type ListAdminRelayLeasesParams

type ListAdminRelayLeasesParams struct {
	Now       pgtype.Timestamptz
	Cursor    pgtype.Text
	PageLimit int32
}

type ListAdminRelayLeasesRow

type ListAdminRelayLeasesRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type ListAppliedProjectServicesParams

type ListAppliedProjectServicesParams struct {
	TeamID     string
	ProjectKey string
}

type ListAuthorizedDeploymentsParams

type ListAuthorizedDeploymentsParams struct {
	GrantID   string
	AfterID   string
	PageLimit int32
}

type ListAvailableServicesParams

type ListAvailableServicesParams struct {
	IdentityID       string
	ControlSessionID string
	Now              pgtype.Timestamptz
	AfterID          string
	AccessPath       string
}

type ListAvailableServicesRow

type ListAvailableServicesRow struct {
	ID                  string
	TeamID              pgtype.Text
	TeamName            string
	Name                string
	CreatedAt           pgtype.Timestamptz
	Protocol            string
	PublisherPool       bool
	TrustRevision       int64
	RequirePostQuantum  bool
	CertificateHostname string
	ServicePort         pgtype.Int4
	Public              bool
	ServiceRunID        pgtype.Text
	RunNumber           pgtype.Int8
	VisitorAccess       string
}

type ListConnectorPeerPairCandidatesParams

type ListConnectorPeerPairCandidatesParams struct {
	Now                 pgtype.Timestamptz
	ServiceID           string
	ServiceRunID        string
	RunNumber           int64
	PublisherIdentityID string
	IncludeCandidates   bool
	AfterID             string
}

type ListConnectorPeerPairCandidatesRow

type ListConnectorPeerPairCandidatesRow struct {
	ID                 string
	DeliveryGeneration int64
	OwnerRevision      int64
	RetiredAt          pgtype.Timestamptz
	RetainedUntil      pgtype.Timestamptz
}

type ListDNSChallengePresentationsRow

type ListDNSChallengePresentationsRow struct {
	ChallengeDigest []byte
	State           string
}

type ListDeploymentPublisherIDsParams

type ListDeploymentPublisherIDsParams struct {
	DeploymentID    string
	AfterID         string
	ManagementGrant string
	PageLimit       int32
}

type ListDeploymentPublisherStatusParams

type ListDeploymentPublisherStatusParams struct {
	Now        pgtype.Timestamptz
	TeamID     string
	ProjectKey string
}

type ListDeploymentPublisherStatusRow

type ListDeploymentPublisherStatusRow struct {
	DeploymentID        string
	DeploymentName      string
	PublisherIdentityID string
	KeyID               string
	ObservedRevision    int64
	CurrentRevision     int64
	AcknowledgedAt      pgtype.Timestamptz
	Healthy             bool
	LeaseExpiresAt      pgtype.Timestamptz
}

type ListDeploymentServiceConfigurationsRow

type ListDeploymentServiceConfigurationsRow struct {
	ServiceID         pgtype.Text
	Service           string
	ControlDeployment ControlDeployment
}

type ListDeploymentsParams

type ListDeploymentsParams struct {
	TeamID     string
	ProjectKey string
	AfterID    string
	PageLimit  int32
}

type ListDiscoverablePreviewsParams

type ListDiscoverablePreviewsParams struct {
	TeamID              pgtype.Text
	CreatedByIdentityID pgtype.Text
	AfterID             string
}

type ListDiscoverablePreviewsRow

type ListDiscoverablePreviewsRow struct {
	ID        string
	CreatedAt pgtype.Timestamptz
}

type ListDiscoverableProjectsParams

type ListDiscoverableProjectsParams struct {
	TeamID   string
	AfterKey string
}

type ListDiscoverableProjectsRow

type ListDiscoverableProjectsRow struct {
	ProjectKey   string
	ProjectLabel string
	Revision     int64
	UpdatedAt    pgtype.Timestamptz
}

type ListIdentityMembershipContextsRow

type ListIdentityMembershipContextsRow struct {
	IdentityConnectionID     pgtype.Text
	ManualSuspendedAt        pgtype.Timestamptz
	PersonalAccountException bool
	CompanySignInRequired    bool
	Active                   bool
	ID                       string
	TeamID                   string
	IdentityID               string
	TeamDisplayName          string
	TeamManagedLabel         string
	TeamKind                 string
	Role                     string
	MemberSlug               string
	ManagedLabel             string
	PolicyRevision           int64
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
}

type ListIdentityTeamDomainsParams

type ListIdentityTeamDomainsParams struct {
	TeamID     pgtype.Text
	IdentityID string
}

type ListIdentityTeamDomainsRow

type ListIdentityTeamDomainsRow struct {
	ID                    string
	Kind                  string
	TeamID                pgtype.Text
	CanonicalDomain       string
	DnsAuthorityReference pgtype.Text
	State                 string
	AuthorityRevision     int64
	Nameservers           []string
	ClaimProofName        string
	ClaimProofValue       string
	ClaimProofVerifiedAt  pgtype.Timestamptz
	ClaimExpiresAt        pgtype.Timestamptz
	ProviderZoneID        pgtype.Text
	CreatedAt             pgtype.Timestamptz
	VerifiedAt            pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type ListIdentityTeamsRow

type ListIdentityTeamsRow struct {
	ID              string
	Kind            string
	DisplayName     string
	ManagedLabel    string
	DefaultDomainID pgtype.Text
	PolicyRevision  int64
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type ListIngressServiceRelaysParams

type ListIngressServiceRelaysParams struct {
	ServiceRunIds []string
	Now           pgtype.Timestamptz
}

type ListIngressServiceRelaysRow

type ListIngressServiceRelaysRow struct {
	ServiceRunID                 string
	PublisherConnectionID        string
	ConnectionSlot               int16
	ConnectionAssignmentRevision int64
	RelayServiceID               string
	RelayID                      string
	RelayRunID                   string
	RelayLeaseRevision           int64
	InternalRelayAddress         string
	LeaseExpiresAt               pgtype.Timestamptz
	ServingUntil                 pgtype.Timestamptz
	TlsServerName                string
}

type ListIngressServiceRunsParams

type ListIngressServiceRunsParams struct {
	Now    pgtype.Timestamptz
	RunIds []string
}

type ListIngressServiceRunsRow

type ListIngressServiceRunsRow struct {
	ServiceID             string
	RunID                 string
	RunNumber             int64
	Protocol              string
	CertificateHostname   string
	ServicePort           pgtype.Int4
	EndpointRevision      int64
	TrafficLimits         []byte
	VisitorPolicyRevision int64
	PermissionUntil       pgtype.Timestamptz
	RecheckAt             pgtype.Timestamptz
	Buckets               []int32
	AliasHostname         string
	AliasDnsUntil         pgtype.Timestamptz
}

type ListLiveIngressRunsParams

type ListLiveIngressRunsParams struct {
	IngressPoolID string
	Now           pgtype.Timestamptz
}

type ListLiveIngressRunsRow

type ListLiveIngressRunsRow struct {
	ID                string
	RunTokenDigest    []byte
	ValidUntil        pgtype.Timestamptz
	RecoveryEpisodeID pgtype.Int8
}

type ListProjectDeploymentsParams

type ListProjectDeploymentsParams struct {
	TeamID     string
	ProjectKey string
}

type ListProjectPublicationsParams

type ListProjectPublicationsParams struct {
	AfterKey   string
	TeamID     string
	ProjectKey string
}

type ListProjectPublicationsRow

type ListProjectPublicationsRow struct {
	Service              string
	Deployment           string
	WorktreeKey          string
	ServiceID            pgtype.Text
	Hostname             string
	Port                 int32
	Enabled              bool
	Public               bool
	DnsState             string
	RunID                string
	RunNumber            int64
	PublicationState     string
	PublisherExpiresAt   pgtype.Timestamptz
	CertificateExpiresAt pgtype.Timestamptz
	Healthy              bool
	ReadyAt              pgtype.Timestamptz
	CursorKey            string
}

type ListProjectServiceDeclarationsParams

type ListProjectServiceDeclarationsParams struct {
	TeamID     string
	ProjectKey string
}

type ListProjectServiceDeclarationsRow

type ListProjectServiceDeclarationsRow struct {
	Name     string
	Protocol string
}

type ListPublisherIdentitiesParams

type ListPublisherIdentitiesParams struct {
	TeamID  pgtype.Text
	AfterID string
}

type ListReadDependencyVersionsRow

type ListReadDependencyVersionsRow struct {
	Bucket   int32
	Revision int64
}

type ListReadyShareServicesParams

type ListReadyShareServicesParams struct {
	ShareID string
	Now     pgtype.Timestamptz
}

type ListReadyShareServicesRow

type ListReadyShareServicesRow struct {
	ServiceID           string
	CertificateHostname string
	RunIds              []string
}

type ListRelayDNSChallengePresentationsRow

type ListRelayDNSChallengePresentationsRow struct {
	ChallengeDigest []byte
	State           string
}

type ListRelayServiceAssignmentTotalsRow

type ListRelayServiceAssignmentTotalsRow struct {
	RelayServiceID  string
	AssignmentCount int64
}

type ListServiceAuditEventsParams

type ListServiceAuditEventsParams struct {
	TeamID        pgtype.Text
	AfterCursor   int64
	RetainedAfter pgtype.Timestamptz
	Since         pgtype.Timestamptz
	ServiceID     pgtype.Text
	PageLimit     int32
}

type ListServiceAuditOwnersRow

type ListServiceAuditOwnersRow struct {
	ID      string
	TeamID  pgtype.Text
	GuestID pgtype.Text
}

type ListServiceConfigurationsRow

type ListServiceConfigurationsRow struct {
	ServiceID                 string
	Service                   string
	ConfigurationCiphertext   []byte
	StorageKeyID              pgtype.Text
	LocalOwned                bool
	DeploymentOwned           bool
	AllocationOwned           bool
	RequiredTemporaryApproval string
}

type ListServiceConnectionSlotsNeedingReplacementParams

type ListServiceConnectionSlotsNeedingReplacementParams struct {
	ServiceRunID string
	Now          pgtype.Timestamptz
}

type ListServiceConnectionSlotsNeedingReplacementRow

type ListServiceConnectionSlotsNeedingReplacementRow struct {
	ServiceRunID                 string
	ServiceID                    string
	RunNumber                    int64
	ConnectionSlot               int16
	PublisherConnectionID        string
	ConnectionAssignmentRevision int64
	RelayServiceID               string
	RelayAddress                 string
	TlsServerName                string
	CredentialDigest             []byte
	CredentialExpiresAt          pgtype.Timestamptz
	RelayID                      pgtype.Text
	RelayRunID                   pgtype.Text
	RelayLeaseRevision           pgtype.Int8
	State                        string
	AssignedAt                   pgtype.Timestamptz
	SessionOpen                  bool
	Unexpected                   bool
}

type ListServiceGrantsParams

type ListServiceGrantsParams struct {
	ServiceID pgtype.Text
	AfterID   string
}

type ListServiceHTTPGrantsRow

type ListServiceHTTPGrantsRow struct {
	ID        string
	Kind      string
	ExpiresAt pgtype.Timestamptz
	RevokedAt pgtype.Timestamptz
}

type ListServiceInvitationsParams

type ListServiceInvitationsParams struct {
	ServiceID string
	AfterID   string
}

type ListServiceReservationCandidatesParams

type ListServiceReservationCandidatesParams struct {
	TeamID    pgtype.Text
	Name      string
	NameScope string
	Hostname  string
}

type ListServicesForTeamParams

type ListServicesForTeamParams struct {
	TeamID  pgtype.Text
	AfterID string
}

type ListSharesParams

type ListSharesParams struct {
	PreviewID pgtype.Text
	AfterID   string
}

type ListTeamInvitationsRow

type ListTeamInvitationsRow struct {
	PersonalAccountException   bool
	ID                         string
	TeamID                     string
	SlugReservationID          string
	InitialRole                string
	InvitedByIdentityID        string
	IdempotencyKey             string
	RequestDigest              []byte
	TokenDigest                []byte
	NormalizedEmailRestriction pgtype.Text
	State                      string
	CreatedAt                  pgtype.Timestamptz
	ExpiresAt                  pgtype.Timestamptz
	AcceptedAt                 pgtype.Timestamptz
	AcceptedByIdentityID       pgtype.Text
	AcceptedMembershipID       pgtype.Text
	RevokedAt                  pgtype.Timestamptz
	RevokedByIdentityID        pgtype.Text
	MemberSlug                 string
}

type ListTeamMembershipContextsParams

type ListTeamMembershipContextsParams struct {
	TeamID     string
	IdentityID string
}

type ListTeamMembershipContextsRow

type ListTeamMembershipContextsRow struct {
	IdentityConnectionID     pgtype.Text
	ManualSuspendedAt        pgtype.Timestamptz
	PersonalAccountException bool
	CompanySignInRequired    bool
	Active                   bool
	ID                       string
	TeamID                   string
	IdentityID               string
	TeamDisplayName          string
	TeamKind                 string
	Role                     string
	MemberSlug               string
	ManagedLabel             string
	PolicyRevision           int64
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
}

type ListTeamNamespaceLabelsRow

type ListTeamNamespaceLabelsRow struct {
	ManagedLabel string
	MemberSlug   string
}

type ListTeamSharesParams

type ListTeamSharesParams struct {
	TeamID     pgtype.Text
	IdentityID pgtype.Text
	AfterID    string
}

type ListWorkloadSessionServicesRow

type ListWorkloadSessionServicesRow struct {
	ServiceID string
	Service   string
}

type LockAppliedProjectParams

type LockAppliedProjectParams struct {
	TeamID     string
	ProjectKey string
}

type LockControlSessionByRefreshIDRow

type LockControlSessionByRefreshIDRow struct {
	ID                 string
	IdentityID         string
	RefreshTokenDigest []byte
	RefreshExpiresAt   pgtype.Timestamptz
	Administrator      bool
}

type LockDeploymentParams

type LockDeploymentParams struct {
	TeamID     string
	ProjectKey string
	Selector   string
}

type LockEligibleRelayLeasesParams

type LockEligibleRelayLeasesParams struct {
	Now             pgtype.Timestamptz
	RelayServiceIds []string
	ProtocolVersion int64
}

type LockEligibleRelayLeasesRow

type LockEligibleRelayLeasesRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type LockIdentityConnectionParams

type LockIdentityConnectionParams struct {
	TeamID string
	ID     string
}

type LockIdentityForTeamCreationRow

type LockIdentityForTeamCreationRow struct {
	ID          string
	DisplayName string
}

type LockIngressLeaseParams

type LockIngressLeaseParams struct {
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
	Now                  pgtype.Timestamptz
}

type LockInvitationByTokenDigestParams

type LockInvitationByTokenDigestParams struct {
	IdentityID  string
	TokenDigest []byte
}

type LockInvitationByTokenDigestRow

type LockInvitationByTokenDigestRow struct {
	PersonalAccountException   bool
	ID                         string
	TeamID                     string
	SlugReservationID          string
	InitialRole                string
	InvitedByIdentityID        string
	IdempotencyKey             string
	RequestDigest              []byte
	TokenDigest                []byte
	NormalizedEmailRestriction pgtype.Text
	State                      string
	CreatedAt                  pgtype.Timestamptz
	ExpiresAt                  pgtype.Timestamptz
	AcceptedAt                 pgtype.Timestamptz
	AcceptedByIdentityID       pgtype.Text
	AcceptedMembershipID       pgtype.Text
	RevokedAt                  pgtype.Timestamptz
	RevokedByIdentityID        pgtype.Text
	MemberSlug                 string
	TeamKind                   string
	TeamDisplayName            string
	AcceptingNormalizedEmail   pgtype.Text
	AcceptingEmailVerified     bool
}

type LockPendingServiceInvitationParams

type LockPendingServiceInvitationParams struct {
	ID        string
	ServiceID string
	Now       pgtype.Timestamptz
}

type LockPreviewForTeamAccessRow

type LockPreviewForTeamAccessRow struct {
	ID                  string
	TeamID              pgtype.Text
	GuestID             pgtype.Text
	CreatedByIdentityID pgtype.Text
	TeamAccessEnabled   bool
	DemoServiceRunID    pgtype.Text
}

type LockServiceAuditClockParams

type LockServiceAuditClockParams struct {
	TeamID  pgtype.Text
	GuestID pgtype.Text
}

type LockServiceRunFirstReadyEndpointParams

type LockServiceRunFirstReadyEndpointParams struct {
	ServiceID     string
	Hostname      string
	DomainID      string
	IngressPoolID string
}

type LockServiceRunParams

type LockServiceRunParams struct {
	ID        string
	ServiceID string
}

type LockTeamActorContextParams

type LockTeamActorContextParams struct {
	IdentityID string
	TeamID     string
}

type LockTeamActorContextRow

type LockTeamActorContextRow struct {
	ID                string
	Kind              string
	DisplayName       string
	ManagedLabel      string
	DefaultDomainID   pgtype.Text
	PolicyRevision    int64
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ActorMembershipID string
	ActorRole         string
}

type LockTeamDomainParams

type LockTeamDomainParams struct {
	DomainID string
	TeamID   pgtype.Text
}

type LockTeamDomainRow

type LockTeamDomainRow struct {
	ID                      string
	Kind                    string
	TeamID                  pgtype.Text
	CanonicalDomain         string
	DnsAuthorityReference   pgtype.Text
	State                   string
	AuthorityRevision       int64
	VerificationTokenDigest []byte
	CreatedByIdentityID     pgtype.Text
	ClaimIdempotencyKey     pgtype.Text
	ClaimRequestDigest      []byte
	MakeDefaultWhenReady    bool
	CreatedAt               pgtype.Timestamptz
	VerifiedAt              pgtype.Timestamptz
	ReusableAfter           pgtype.Timestamptz
	ReleasedAt              pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	Nameservers             []string
}

type LockTeamInvitationParams

type LockTeamInvitationParams struct {
	InvitationID string
	TeamID       string
}

type LockTeamInvitationRow

type LockTeamInvitationRow struct {
	PersonalAccountException   bool
	ID                         string
	TeamID                     string
	SlugReservationID          string
	InitialRole                string
	InvitedByIdentityID        string
	IdempotencyKey             string
	RequestDigest              []byte
	TokenDigest                []byte
	NormalizedEmailRestriction pgtype.Text
	State                      string
	CreatedAt                  pgtype.Timestamptz
	ExpiresAt                  pgtype.Timestamptz
	AcceptedAt                 pgtype.Timestamptz
	AcceptedByIdentityID       pgtype.Text
	AcceptedMembershipID       pgtype.Text
	RevokedAt                  pgtype.Timestamptz
	RevokedByIdentityID        pgtype.Text
	MemberSlug                 string
}

type LockTeamMembershipParams

type LockTeamMembershipParams struct {
	MembershipID string
	TeamID       string
}

type LockTeamMembershipRow

type LockTeamMembershipRow struct {
	ID                       string
	TeamID                   string
	IdentityID               string
	SlugReservationID        string
	ManagedLabel             string
	Role                     string
	AuthorityRevision        int64
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	RemovedAt                pgtype.Timestamptz
	RemovedByIdentityID      pgtype.Text
	IdentityConnectionID     pgtype.Text
	ManualSuspendedAt        pgtype.Timestamptz
	PersonalAccountException bool
	MemberSlug               string
}

type MarkACMEOrderInstalledParams

type MarkACMEOrderInstalledParams struct {
	InstalledAt pgtype.Timestamptz
	IssuanceID  string
}

type MarkCustomDomainReleasingParams

type MarkCustomDomainReleasingParams struct {
	AuthorityRevision int64
	UpdatedAt         pgtype.Timestamptz
	DomainID          string
	TeamID            pgtype.Text
}

type MarkDNSAuthorityReleasingParams

type MarkDNSAuthorityReleasingParams struct {
	UpdatedAt          pgtype.Timestamptz
	AuthorityReference string
}

type MarkGuestRunReadyParams

type MarkGuestRunReadyParams struct {
	ReadyAt      pgtype.Timestamptz
	ServiceRunID pgtype.Text
}

type MarkSupersededRelayRunSigningKeysParams

type MarkSupersededRelayRunSigningKeysParams struct {
	RelayRunID   string
	SupersededAt pgtype.Timestamptz
	RelayID      string
}

type ObserveAppliedProjectParams

type ObserveAppliedProjectParams struct {
	TeamID     string
	ProjectKey string
}

type ObserveDeploymentParams

type ObserveDeploymentParams struct {
	TeamID     string
	ProjectKey string
	Selector   string
}

type ObserveServiceRecoveryEpisodeParams

type ObserveServiceRecoveryEpisodeParams struct {
	ObservedAt        pgtype.Timestamptz
	ObservedSeconds   pgtype.Float8
	RecoveryEpisodeID int64
}

type ObserveServiceRunParams

type ObserveServiceRunParams struct {
	ID        string
	ServiceID string
}

type OpenServiceRecoveryEpisodeParams

type OpenServiceRecoveryEpisodeParams struct {
	ServiceID    string
	ServiceRunID string
	RunNumber    int64
	OpenedAt     pgtype.Timestamptz
}

type OtherPreviewForTeamAccessParams

type OtherPreviewForTeamAccessParams struct {
	ServiceID string
	PreviewID string
}

type OtherTeamAccessForServiceParams

type OtherTeamAccessForServiceParams struct {
	ServiceID string
	PreviewID string
}

type PrepareConnectorPeerRebindParams

type PrepareConnectorPeerRebindParams struct {
	DeliveryGeneration int64
	OperationID        string
	RequestDigest      []byte
	PairID             string
}

type PrepareServiceRunParams

type PrepareServiceRunParams struct {
	PreferredRegions           []string
	TrafficLimits              []byte
	ID                         string
	ServiceID                  string
	TeamID                     pgtype.Text
	RunNumber                  int64
	PublisherIdentityID        string
	PublisherGrantID           string
	PublisherKeyID             string
	IdempotencyKey             string
	RequestDigest              []byte
	PreparationExpiresAt       pgtype.Timestamptz
	AssignmentSeedCiphertext   []byte
	AssignmentSeedStorageKeyID string
	CertificateCacheKey        string
	CertificateScope           string
	CertificateIdentifiers     []string
	CertificateDomainID        pgtype.Text
	CertificateHostname        string
	RunHostname                string
	RunAliasParent             string
	RequirePostQuantum         bool
	Now                        pgtype.Timestamptz
	PublisherExpiresAt         pgtype.Timestamptz
}

type PreviewInvitationParams

type PreviewInvitationParams struct {
	IdentityID  string
	TokenDigest []byte
}

type PreviewInvitationRow

type PreviewInvitationRow struct {
	DisplayName                string
	InitialRole                string
	ExpiresAt                  pgtype.Timestamptz
	State                      string
	NormalizedEmailRestriction pgtype.Text
	NormalizedEmail            pgtype.Text
	EmailVerified              bool
}

type PrunePublisherAccessParams

type PrunePublisherAccessParams struct {
	PublisherIdentityID string
	Now                 pgtype.Timestamptz
}

type PrunePublisherAssertionsParams

type PrunePublisherAssertionsParams struct {
	PublisherIdentityID string
	Now                 pgtype.Timestamptz
}

type PublisherRuntimeActiveParams

type PublisherRuntimeActiveParams struct {
	PublisherIdentityID string
	ProcessRunID        string
	Epoch               int64
	Now                 pgtype.Timestamptz
}

type PublisherScopeAvailableParams

type PublisherScopeAvailableParams struct {
	PublisherIdentityID string
	GrantID             string
	Now                 pgtype.Timestamptz
}

type PutCompanyEligibilityParams

type PutCompanyEligibilityParams struct {
	IdentityConnectionID string
	TeamID               string
	IdentityID           string
	Subject              string
	ConnectionRevision   int64
	Revision             int64
	Eligible             bool
	ValidUntil           pgtype.Timestamptz
	RequestDigest        []byte
	Now                  pgtype.Timestamptz
}

type QuarantineMemberSlugParams

type QuarantineMemberSlugParams struct {
	QuarantinedAt     pgtype.Timestamptz
	SlugReservationID string
}

type Querier

type Querier interface {
	AbortConnectorPeerRebind(ctx context.Context, arg AbortConnectorPeerRebindParams) (int64, error)
	// verified_actor_email comes only from the consumed configured-issuer assertion;
	// control sessions retain their stored verified email check.
	AcceptServiceInvitation(ctx context.Context, arg AcceptServiceInvitationParams) (ControlServiceInvitation, error)
	AcceptTeamInvitation(ctx context.Context, arg AcceptTeamInvitationParams) (int64, error)
	AcknowledgeDeploymentPublisherConfiguration(ctx context.Context, arg AcknowledgeDeploymentPublisherConfigurationParams) error
	ActivateConnectorPeerBinding(ctx context.Context, arg ActivateConnectorPeerBindingParams) (int64, error)
	ActivateMemberSlug(ctx context.Context, arg ActivateMemberSlugParams) (int64, error)
	ActiveCompanyMembership(ctx context.Context, arg ActiveCompanyMembershipParams) (bool, error)
	ActiveTeamSubject(ctx context.Context, arg ActiveTeamSubjectParams) (bool, error)
	AddGuestShareService(ctx context.Context, arg AddGuestShareServiceParams) (int64, error)
	AddPreviewService(ctx context.Context, arg AddPreviewServiceParams) (string, error)
	AddServiceRunPreviewService(ctx context.Context, arg AddServiceRunPreviewServiceParams) error
	AddShareService(ctx context.Context, arg AddShareServiceParams) (string, error)
	AdvanceGuestDemoNumber(ctx context.Context, arg AdvanceGuestDemoNumberParams) (int64, error)
	AdvanceServiceRunNumber(ctx context.Context, arg AdvanceServiceRunNumberParams) (int64, error)
	AdvanceTeamPolicyRevision(ctx context.Context, arg AdvanceTeamPolicyRevisionParams) (int64, error)
	BeginAdminRelayDrain(ctx context.Context, arg BeginAdminRelayDrainParams) (BeginAdminRelayDrainRow, error)
	BeginGuestServiceRun(ctx context.Context, arg BeginGuestServiceRunParams) (int64, error)
	BeginIngressDrain(ctx context.Context, arg BeginIngressDrainParams) (ControlIngressLease, error)
	BeginRelayDrain(ctx context.Context, arg BeginRelayDrainParams) (BeginRelayDrainRow, error)
	BindInitialOIDCMembership(ctx context.Context, arg BindInitialOIDCMembershipParams) error
	// run only after RegisterRelay succeeds, inside the same transaction. on a
	// mismatched historical key the caller rolls back the lease replacement too.
	BindRelayRunSigningKey(ctx context.Context, arg BindRelayRunSigningKeyParams) (int64, error)
	CancelOpenServiceRecoveryEpisode(ctx context.Context, arg CancelOpenServiceRecoveryEpisodeParams) error
	ClaimACMEOrderWork(ctx context.Context, arg ClaimACMEOrderWorkParams) (ControlAcmeOrder, error)
	ClaimDNSAuthorityWork(ctx context.Context, arg ClaimDNSAuthorityWorkParams) (ControlDnsAuthority, error)
	ClaimInvitationEmail(ctx context.Context, arg ClaimInvitationEmailParams) (ControlTeamInvitationEmailDelivery, error)
	ClaimPublisherAssertion(ctx context.Context, arg ClaimPublisherAssertionParams) (int64, error)
	ClaimRelayCertificateOrderWork(ctx context.Context, arg ClaimRelayCertificateOrderWorkParams) (ControlRelayCertificateOrder, error)
	ClaimRelayServiceForCertificateOrder(ctx context.Context, arg ClaimRelayServiceForCertificateOrderParams) (ControlRelayService, error)
	ClaimServiceConnectionSlot(ctx context.Context, arg ClaimServiceConnectionSlotParams) (ControlServiceConnectionSlot, error)
	ClaimServiceEndpointDNSWork(ctx context.Context, arg ClaimServiceEndpointDNSWorkParams) (ControlServiceEndpoint, error)
	CleanupExpiredConnectorPeerPairs(ctx context.Context, arg CleanupExpiredConnectorPeerPairsParams) (int64, error)
	CleanupServiceAuditEvents(ctx context.Context, arg CleanupServiceAuditEventsParams) (int64, error)
	// lock the lease before key rows, as registration does. skip a relay being
	// registered: deleting its old binding before its key check would allow a
	// different key on a returning run. never delete the current run's key.
	CleanupSupersededRelayRunSigningKeys(ctx context.Context, arg CleanupSupersededRelayRunSigningKeysParams) (int64, error)
	CleanupVisitorHandoffs(ctx context.Context, now pgtype.Timestamptz) error
	CleanupVisitorLogins(ctx context.Context, now pgtype.Timestamptz) error
	CleanupVisitorSessions(ctx context.Context, now pgtype.Timestamptz) error
	CleanupWorkloadAssertions(ctx context.Context, arg CleanupWorkloadAssertionsParams) (int64, error)
	CleanupWorkloadAudit(ctx context.Context, arg CleanupWorkloadAuditParams) (int64, error)
	CleanupWorkloadCertificates(ctx context.Context, arg CleanupWorkloadCertificatesParams) (int64, error)
	// each phase has its own budget so a busy leaf cannot starve its parents.
	// select only unreferenced candidates before LIMIT; never cascade subject state.
	CleanupWorkloadPublicServiceVisitors(ctx context.Context, arg CleanupWorkloadPublicServiceVisitorsParams) (int64, error)
	// keep the exact service snapshot until all other session references are gone.
	CleanupWorkloadServiceRights(ctx context.Context, arg CleanupWorkloadServiceRightsParams) (int64, error)
	CleanupWorkloadSessions(ctx context.Context, arg CleanupWorkloadSessionsParams) (int64, error)
	CloseServiceRun(ctx context.Context, arg CloseServiceRunParams) (int64, error)
	// only an exact stored terminal tuple proves a finite traffic budget can retire.
	ClosedServiceRuns(ctx context.Context, runIds []string) ([]ClosedServiceRunsRow, error)
	CompanySessionAuthorized(ctx context.Context, arg CompanySessionAuthorizedParams) (bool, error)
	CompanySessionRefreshValid(ctx context.Context, arg CompanySessionRefreshValidParams) (pgtype.Bool, error)
	CompanySubjectDeadline(ctx context.Context, arg CompanySubjectDeadlineParams) (pgtype.Timestamptz, error)
	CompanySubjectSessionAuthorized(ctx context.Context, arg CompanySubjectSessionAuthorizedParams) (bool, error)
	// only a checked publisher report can advance this startup barrier. a retry
	// retains a newer report, capped by the currently checked delivery authority.
	ConfirmConnectorPeerPairPrepared(ctx context.Context, arg ConfirmConnectorPeerPairPreparedParams) (int64, error)
	ConfirmConnectorPeerPendingPrepared(ctx context.Context, arg ConfirmConnectorPeerPendingPreparedParams) (int64, error)
	ConsumeAuthenticationSeed(ctx context.Context, arg ConsumeAuthenticationSeedParams) (int64, error)
	ConsumeCompanyLoginIntent(ctx context.Context, arg ConsumeCompanyLoginIntentParams) (int64, error)
	ConsumeOIDCAssertion(ctx context.Context, arg ConsumeOIDCAssertionParams) (int64, error)
	ConsumeServiceHTTPBrowserLogin(ctx context.Context, arg ConsumeServiceHTTPBrowserLoginParams) (ControlServiceHttpBrowserLogin, error)
	ConsumeShareHandoff(ctx context.Context, arg ConsumeShareHandoffParams) (ConsumeShareHandoffRow, error)
	CopyCompanySessionContexts(ctx context.Context, arg CopyCompanySessionContextsParams) error
	CountActiveShareCookiesForService(ctx context.Context, arg CountActiveShareCookiesForServiceParams) (int64, error)
	CountActiveSharesForService(ctx context.Context, arg CountActiveSharesForServiceParams) (int64, error)
	CountConnectorPeerPairOwners(ctx context.Context, arg CountConnectorPeerPairOwnersParams) (int64, error)
	CountGuestCurrentServices(ctx context.Context, guestID pgtype.Text) (int64, error)
	// diagnostic/test oracle only; joins the parent to check slot eligibility.
	CountOpenServiceRunAssignmentsByRelayService(ctx context.Context) ([]CountOpenServiceRunAssignmentsByRelayServiceRow, error)
	CountRecentGuestTrialsByIP(ctx context.Context, arg CountRecentGuestTrialsByIPParams) (int64, error)
	CountRelayActiveConnections(ctx context.Context, arg CountRelayActiveConnectionsParams) (int64, error)
	CountTeamOwners(ctx context.Context, teamID string) (int64, error)
	CreateActiveSlugReservation(ctx context.Context, arg CreateActiveSlugReservationParams) error
	CreateControlSession(ctx context.Context, arg CreateControlSessionParams) error
	CreateCustomDNSAuthority(ctx context.Context, arg CreateCustomDNSAuthorityParams) error
	CreateCustomDomain(ctx context.Context, arg CreateCustomDomainParams) (ControlDomain, error)
	// caller holds the trial and exact service and verifies the trial credential
	// and observed source. publication permission alone never authorizes sharing.
	CreateGuestShare(ctx context.Context, arg CreateGuestShareParams) (ControlShare, error)
	CreateInvitationEmail(ctx context.Context, arg CreateInvitationEmailParams) error
	CreateManagedDomain(ctx context.Context, arg CreateManagedDomainParams) error
	CreateOIDCIdentity(ctx context.Context, arg CreateOIDCIdentityParams) (ControlIdentity, error)
	CreateOrganizationTeam(ctx context.Context, arg CreateOrganizationTeamParams) (CreateOrganizationTeamRow, error)
	CreateOwnerMembership(ctx context.Context, arg CreateOwnerMembershipParams) error
	CreatePersonalTeam(ctx context.Context, arg CreatePersonalTeamParams) error
	CreatePreview(ctx context.Context, arg CreatePreviewParams) (CreatePreviewRow, error)
	CreateSeedMember(ctx context.Context, arg CreateSeedMemberParams) error
	CreateServiceIPKey(ctx context.Context, arg CreateServiceIPKeyParams) error
	CreateServiceRunPreview(ctx context.Context, arg CreateServiceRunPreviewParams) (ControlPreview, error)
	CreateShare(ctx context.Context, arg CreateShareParams) (ControlShare, error)
	CreateTeamInvitation(ctx context.Context, arg CreateTeamInvitationParams) (ControlTeamInvitation, error)
	CreateTeamMembership(ctx context.Context, arg CreateTeamMembershipParams) error
	CreateVisitorTokenSigningKey(ctx context.Context, arg CreateVisitorTokenSigningKeyParams) (ControlVisitorTokenKey, error)
	DNSAuthorityReleaseReady(ctx context.Context, arg DNSAuthorityReleaseReadyParams) (pgtype.Bool, error)
	DeleteConnectorPeerPairLegClaims(ctx context.Context, pairID string) (int64, error)
	DeleteConnectorPeerPendingBinding(ctx context.Context, pairID string) (int64, error)
	DeleteExpiredDeviceLogins(ctx context.Context, now pgtype.Timestamptz) error
	DeleteExpiredOIDCAssertionExchanges(ctx context.Context, now pgtype.Timestamptz) error
	DeleteExpiredShareCookies(ctx context.Context, now pgtype.Timestamptz) error
	DeleteExpiredVisitorTokenSigningKeys(ctx context.Context, now pgtype.Timestamptz) error
	DeleteFinishedShareHandoffs(ctx context.Context, now pgtype.Timestamptz) error
	// caller closes all current runs and publishes a tombstone under this service
	// lock in the same transaction.
	DeleteService(ctx context.Context, arg DeleteServiceParams) (ControlService, error)
	DeleteServiceConnectionSlot(ctx context.Context, arg DeleteServiceConnectionSlotParams) (int64, error)
	DemoteServiceRun(ctx context.Context, arg DemoteServiceRunParams) (int64, error)
	DeploymentManagementPublisherAllowed(ctx context.Context, arg DeploymentManagementPublisherAllowedParams) (bool, error)
	DeploymentPublisherServiceAllowed(ctx context.Context, arg DeploymentPublisherServiceAllowedParams) (bool, error)
	DiscardInactiveInvitationEmails(ctx context.Context, now pgtype.Timestamptz) error
	DisconnectServiceConnectionSlot(ctx context.Context, arg DisconnectServiceConnectionSlotParams) (ControlServiceConnectionSlot, error)
	EnableIngressPool(ctx context.Context, arg EnableIngressPoolParams) (ControlIngressPool, error)
	EnsureACMEAccount(ctx context.Context, arg EnsureACMEAccountParams) (ControlAcmeAccount, error)
	EnsureVisitorTokenIssuer(ctx context.Context, issuer string) error
	ExpireConnectorPeerRebind(ctx context.Context, pairID string) (int64, error)
	ExpireServiceConnectionSlot(ctx context.Context, arg ExpireServiceConnectionSlotParams) (int64, error)
	ExpireTeamInvitations(ctx context.Context, arg ExpireTeamInvitationsParams) ([]string, error)
	FeedbackRunScope(ctx context.Context, arg FeedbackRunScopeParams) (FeedbackRunScopeRow, error)
	FeedbackServiceScope(ctx context.Context, arg FeedbackServiceScopeParams) (FeedbackServiceScopeRow, error)
	FenceIngressRun(ctx context.Context, arg FenceIngressRunParams) (int64, error)
	FindDeploymentManagementRequest(ctx context.Context, arg FindDeploymentManagementRequestParams) (FindDeploymentManagementRequestRow, error)
	FindDeploymentPublisherEnrollmentRequest(ctx context.Context, arg FindDeploymentPublisherEnrollmentRequestParams) (ControlDeploymentPublisherEnrollment, error)
	// terminal allocations remain discoverable so a retry cannot recreate them.
	FindGuestServiceAllocation(ctx context.Context, arg FindGuestServiceAllocationParams) (ControlService, error)
	FindGuestShareRequest(ctx context.Context, arg FindGuestShareRequestParams) (ControlShare, error)
	FindInvitationTeamByTokenDigest(ctx context.Context, tokenDigest []byte) (string, error)
	FindManagedDomain(ctx context.Context) (ControlDomain, error)
	FindOIDCIdentity(ctx context.Context, arg FindOIDCIdentityParams) (ControlIdentity, error)
	FindPublisherAllocation(ctx context.Context, arg FindPublisherAllocationParams) (ControlPublisherNamespaceAllocation, error)
	FindSeedTeam(ctx context.Context, displayName string) (ControlTeam, error)
	// the caller rechecks current management before recovering metadata, never secrets.
	FindServiceInvitationRequest(ctx context.Context, arg FindServiceInvitationRequestParams) (ControlServiceInvitation, error)
	FindShareRequest(ctx context.Context, arg FindShareRequestParams) (ControlShare, error)
	FinishGuestServiceRun(ctx context.Context, arg FinishGuestServiceRunParams) (int64, error)
	FinishInvitationEmail(ctx context.Context, arg FinishInvitationEmailParams) (int64, error)
	ForgetExpiredGuestCredentials(ctx context.Context, arg ForgetExpiredGuestCredentialsParams) (int64, error)
	// terminal allocation keys/digests remain; targets and declarations do not.
	ForgetExpiredGuestServiceConfigurations(ctx context.Context, arg ForgetExpiredGuestServiceConfigurationsParams) (int64, error)
	ForgetOldGuestIssuanceDigests(ctx context.Context, arg ForgetOldGuestIssuanceDigestsParams) (int64, error)
	GetACMEAccountByDirectory(ctx context.Context, directoryUrl string) (ControlAcmeAccount, error)
	GetACMEOrder(ctx context.Context, issuanceID string) (ControlAcmeOrder, error)
	GetActiveShareForService(ctx context.Context, arg GetActiveShareForServiceParams) (ControlShare, error)
	GetAdminRuntimeCounts(ctx context.Context, now pgtype.Timestamptz) (GetAdminRuntimeCountsRow, error)
	GetAppliedProject(ctx context.Context, arg GetAppliedProjectParams) (ControlAppliedProject, error)
	GetCompanyAuthenticationDeadline(ctx context.Context, sessionID string) (pgtype.Timestamptz, error)
	GetCompanyEligibility(ctx context.Context, arg GetCompanyEligibilityParams) (ControlCompanyEligibility, error)
	GetConnectorPeerPairForOwner(ctx context.Context, arg GetConnectorPeerPairForOwnerParams) (ControlConnectorPeerPair, error)
	GetConnectorPeerPendingBinding(ctx context.Context, pairID string) (ControlConnectorPeerPendingBinding, error)
	GetControlSessionByAccessID(ctx context.Context, accessTokenID string) (GetControlSessionByAccessIDRow, error)
	GetCurrentIdentityConnection(ctx context.Context, teamID string) (ControlIdentityConnection, error)
	GetCustomDomainByIdempotency(ctx context.Context, arg GetCustomDomainByIdempotencyParams) (GetCustomDomainByIdempotencyRow, error)
	GetDNSAuthority(ctx context.Context, authorityReference string) (ControlDnsAuthority, error)
	GetDNSChallengeChange(ctx context.Context, arg GetDNSChallengeChangeParams) (GetDNSChallengeChangeRow, error)
	GetDNSChallengeSubject(ctx context.Context, arg GetDNSChallengeSubjectParams) (GetDNSChallengeSubjectRow, error)
	GetDeploymentManagementGrant(ctx context.Context, grantID string) (ControlDeploymentManagementGrant, error)
	GetDeploymentPublisherStatus(ctx context.Context, arg GetDeploymentPublisherStatusParams) (GetDeploymentPublisherStatusRow, error)
	GetDeploymentServiceConfiguration(ctx context.Context, serviceID pgtype.Text) (GetDeploymentServiceConfigurationRow, error)
	GetFeedbackService(ctx context.Context, id string) (ControlService, error)
	GetGuestTrialByCredentialID(ctx context.Context, credentialID pgtype.Text) (ControlGuestTrial, error)
	GetGuestTrialByID(ctx context.Context, id string) (ControlGuestTrial, error)
	GetIdentityContextIdentity(ctx context.Context, identityID string) (GetIdentityContextIdentityRow, error)
	GetIdentityTeam(ctx context.Context, arg GetIdentityTeamParams) (GetIdentityTeamRow, error)
	GetIdentityTeamDomainRelease(ctx context.Context, arg GetIdentityTeamDomainReleaseParams) (GetIdentityTeamDomainReleaseRow, error)
	GetIngressLease(ctx context.Context, arg GetIngressLeaseParams) (ControlIngressLease, error)
	GetIngressPool(ctx context.Context, id string) (ControlIngressPool, error)
	GetIngressServingLease(ctx context.Context, arg GetIngressServingLeaseParams) (ControlIngressLease, error)
	GetInvitationByIdempotency(ctx context.Context, arg GetInvitationByIdempotencyParams) (GetInvitationByIdempotencyRow, error)
	GetLocalProjectService(ctx context.Context, arg GetLocalProjectServiceParams) (GetLocalProjectServiceRow, error)
	GetManagedCertificateDomainKind(ctx context.Context, domainID string) (string, error)
	GetOpenServiceRecoveryEpisode(ctx context.Context, serviceRunID string) (ControlServiceRecoveryEpisode, error)
	GetOrganizationTeamByIdempotency(ctx context.Context, arg GetOrganizationTeamByIdempotencyParams) (GetOrganizationTeamByIdempotencyRow, error)
	GetPreview(ctx context.Context, id string) (GetPreviewRow, error)
	GetPrivateDNSChallengeContext(ctx context.Context, arg GetPrivateDNSChallengeContextParams) (GetPrivateDNSChallengeContextRow, error)
	GetPublisherAccess(ctx context.Context, accessTokenDigest []byte) (ControlPublisherAccessToken, error)
	GetPublisherAllocation(ctx context.Context, serviceID string) (ControlPublisherNamespaceAllocation, error)
	// publisher checks may already hold a service lock. never acquire a domain lock
	// afterward: authority mutations hold team -> domain -> service. a snapshot read
	// permits the heartbeat to commit before a waiting release closes its run.
	GetPublisherDomain(ctx context.Context, arg GetPublisherDomainParams) (ControlDomain, error)
	GetPublisherGrant(ctx context.Context, arg GetPublisherGrantParams) (ControlPublisherGrant, error)
	GetPublisherKey(ctx context.Context, arg GetPublisherKeyParams) (ControlPublisherIdentityKey, error)
	GetPublisherRuntime(ctx context.Context, publisherIdentityID string) (ControlPublisherRuntime, error)
	GetRelayDNSChallengeContext(ctx context.Context, orderID string) (GetRelayDNSChallengeContextRow, error)
	// claims and readiness share the relay-service guard across processes.
	// claims take NO KEY UPDATE on the selected lease to serialize capacity with
	// other claims, renewal, and drain. readiness takes compatible KEY SHARE
	// because it uses an existing reservation. service guards precede lease rows.
	GetRelayLeaseForClaim(ctx context.Context, relayID string) (GetRelayLeaseForClaimRow, error)
	// keep the service guard through routing publication so registration cannot
	// replace the relay process between readiness and the published projection.
	// KEY SHARE does not block claims or other readiness work. renewal or drain may
	// overlap; readiness checks its lease, and projection reads exclude drained leases.
	GetRelayLeaseForReady(ctx context.Context, relayID string) (GetRelayLeaseForReadyRow, error)
	GetRelayTransportCertificate(ctx context.Context, arg GetRelayTransportCertificateParams) (ControlRelayService, error)
	GetService(ctx context.Context, id string) (ControlService, error)
	GetServiceCertificateOrderByCSR(ctx context.Context, arg GetServiceCertificateOrderByCSRParams) (ControlAcmeOrder, error)
	GetServiceCertificateRequest(ctx context.Context, arg GetServiceCertificateRequestParams) (ControlServiceCertificateRequest, error)
	// local normalization uses the logical service key, not its generated saved name.
	GetServiceConfiguration(ctx context.Context, serviceID string) (GetServiceConfigurationRow, error)
	GetServiceCreationRequest(ctx context.Context, arg GetServiceCreationRequestParams) (GetServiceCreationRequestRow, error)
	// starting a run requires its exact authenticated publisher, grant and key.
	GetServiceRunPublisherIdentity(ctx context.Context, arg GetServiceRunPublisherIdentityParams) ([]byte, error)
	GetServiceSource(ctx context.Context, serviceID pgtype.Text) (GetServiceSourceRow, error)
	GetShare(ctx context.Context, id string) (ControlShare, error)
	GetTeamActorContext(ctx context.Context, arg GetTeamActorContextParams) (GetTeamActorContextRow, error)
	GetTeamMembershipContext(ctx context.Context, arg GetTeamMembershipContextParams) (GetTeamMembershipContextRow, error)
	GetTeamNaming(ctx context.Context, teamID string) (GetTeamNamingRow, error)
	GetVisitorParentSession(ctx context.Context, id string) (ControlControlSession, error)
	GetVisitorPolicyRevision(ctx context.Context, teamID string) (int64, error)
	GetWorkloadSession(ctx context.Context, id string) (ControlWorkloadSession, error)
	GuestForService(ctx context.Context, serviceID string) (pgtype.Text, error)
	GuestNamespaceReserved(ctx context.Context, label string) (bool, error)
	GuestOwnsService(ctx context.Context, arg GuestOwnsServiceParams) (bool, error)
	GuestRunAllowanceSpent(ctx context.Context, arg GuestRunAllowanceSpentParams) (string, error)
	// preparation observations do not grant visitor permission or spend ready time.
	GuestServiceServingDeadline(ctx context.Context, arg GuestServiceServingDeadlineParams) (pgtype.Timestamptz, error)
	// the exact run token grants negative reads only while an existing window remains.
	HasRetainedConnectorPeerPair(ctx context.Context, arg HasRetainedConnectorPeerPairParams) (bool, error)
	HasTeamMembershipHistory(ctx context.Context, arg HasTeamMembershipHistoryParams) (bool, error)
	HasVisitorPolicyRegisteredKeyCandidates(ctx context.Context, serviceID string) (bool, error)
	// a refused upsert retains the lease row lock. distinguish only its expired
	// same-run drain from configuration conflicts and another live process.
	IngressRegistrationDrainExpired(ctx context.Context, arg IngressRegistrationDrainExpiredParams) (bool, error)
	InitializeConnectorPeerSession(ctx context.Context, arg InitializeConnectorPeerSessionParams) (ControlConnectorPeerPair, error)
	InsertAdminAuditEvent(ctx context.Context, arg InsertAdminAuditEventParams) error
	InsertCertificateIssuanceAuditEvent(ctx context.Context, arg InsertCertificateIssuanceAuditEventParams) error
	InsertCompanyAccessAudit(ctx context.Context, arg InsertCompanyAccessAuditParams) error
	InsertCompanySessionContext(ctx context.Context, arg InsertCompanySessionContextParams) error
	InsertConnectorPeerPair(ctx context.Context, arg InsertConnectorPeerPairParams) (ControlConnectorPeerPair, error)
	// the following positive statements replace the operation owners' inline SQL
	// after normal generation. storage guards fence those inline writers meanwhile.
	InsertConnectorPeerPendingBinding(ctx context.Context, arg InsertConnectorPeerPendingBindingParams) (ControlConnectorPeerPendingBinding, error)
	InsertDeviceLogin(ctx context.Context, arg InsertDeviceLoginParams) (int64, error)
	InsertGuestTrial(ctx context.Context, arg InsertGuestTrialParams) (ControlGuestTrial, error)
	InsertPublisherAccess(ctx context.Context, arg InsertPublisherAccessParams) error
	InsertPublisherAllocation(ctx context.Context, arg InsertPublisherAllocationParams) error
	InsertPublisherEnrollment(ctx context.Context, arg InsertPublisherEnrollmentParams) (ControlPublisherEnrollment, error)
	InsertPublisherGrant(ctx context.Context, arg InsertPublisherGrantParams) (ControlPublisherGrant, error)
	InsertPublisherIdentity(ctx context.Context, arg InsertPublisherIdentityParams) (ControlPublisherIdentity, error)
	InsertPublisherKey(ctx context.Context, arg InsertPublisherKeyParams) error
	InsertRelayCertificateOrder(ctx context.Context, arg InsertRelayCertificateOrderParams) (ControlRelayCertificateOrder, error)
	InsertService(ctx context.Context, arg InsertServiceParams) (ControlService, error)
	// earlier owners are already locked in order. take the final owner's clock
	// before allocating a cursor; the arrays have one element per event.
	InsertServiceAuditEvents(ctx context.Context, arg InsertServiceAuditEventsParams) ([]string, error)
	InsertServiceCertificateOrder(ctx context.Context, arg InsertServiceCertificateOrderParams) (ControlAcmeOrder, error)
	InsertServiceCertificateRequest(ctx context.Context, arg InsertServiceCertificateRequestParams) error
	InsertServiceConnectionSlot(ctx context.Context, arg InsertServiceConnectionSlotParams) (ControlServiceConnectionSlot, error)
	InsertServiceCreationRequest(ctx context.Context, arg InsertServiceCreationRequestParams) error
	InsertServiceGrant(ctx context.Context, arg InsertServiceGrantParams) (ControlVisitorGrant, error)
	InsertServiceHTTPBrowserHandoff(ctx context.Context, arg InsertServiceHTTPBrowserHandoffParams) error
	InsertServiceHTTPBrowserLogin(ctx context.Context, arg InsertServiceHTTPBrowserLoginParams) error
	InsertServiceHTTPBrowserSession(ctx context.Context, arg InsertServiceHTTPBrowserSessionParams) error
	InsertServiceHTTPGrant(ctx context.Context, arg InsertServiceHTTPGrantParams) error
	InsertServiceInvitation(ctx context.Context, arg InsertServiceInvitationParams) (ControlServiceInvitation, error)
	InsertShareCookie(ctx context.Context, arg InsertShareCookieParams) ([]byte, error)
	InsertShareHandoff(ctx context.Context, arg InsertShareHandoffParams) ([]byte, error)
	InvalidateDeploymentPublisherRuntimeHealth(ctx context.Context, publisherIdentityID string) error
	// an uncertain delivery retry may only shorten the existing deadline.
	LimitConnectorPeerPair(ctx context.Context, arg LimitConnectorPeerPairParams) (ControlConnectorPeerPair, error)
	LimitConnectorPeerPendingForClaim(ctx context.Context, arg LimitConnectorPeerPendingForClaimParams) (int64, error)
	// a fresh claim may shorten a prior installation, never silently grow it.
	LimitConnectorPeerPreparedForClaim(ctx context.Context, arg LimitConnectorPeerPreparedForClaimParams) error
	LimitGuestServiceRunExpiry(ctx context.Context, arg LimitGuestServiceRunExpiryParams) (ControlServiceRun, error)
	ListACMEOrderAuthorizations(ctx context.Context, issuanceID string) ([]ControlAcmeAuthorization, error)
	ListAdminRelayLeases(ctx context.Context, arg ListAdminRelayLeasesParams) ([]ListAdminRelayLeasesRow, error)
	ListAppliedProjectServices(ctx context.Context, arg ListAppliedProjectServicesParams) ([]ControlAppliedProjectService, error)
	ListAuthorizedDeployments(ctx context.Context, arg ListAuthorizedDeploymentsParams) ([]ControlDeployment, error)
	// connector candidates already have native identity permission. public HTTP
	// candidates are authorized by the existing HTTP permission owner before paging.
	// keep offline services, bound each scan, and never select publisher-only trust.
	ListAvailableServices(ctx context.Context, arg ListAvailableServicesParams) ([]ListAvailableServicesRow, error)
	// candidates convey no delivery authority. the publisher checks each delivery
	// separately after the exact relay claims have been accepted.
	ListConnectorPeerPairCandidates(ctx context.Context, arg ListConnectorPeerPairCandidatesParams) ([]ListConnectorPeerPairCandidatesRow, error)
	ListCurrentDomainNames(ctx context.Context) ([]string, error)
	ListDNSChallengePresentations(ctx context.Context, baseIdentifier string) ([]ListDNSChallengePresentationsRow, error)
	ListDeploymentManagementDeployments(ctx context.Context, grantID string) ([]string, error)
	ListDeploymentManagementServices(ctx context.Context, grantID string) ([]ControlDeploymentManagementService, error)
	ListDeploymentPublisherEnrollmentServices(ctx context.Context, enrollmentID string) ([]ControlDeploymentPublisherEnrollmentService, error)
	ListDeploymentPublisherIDs(ctx context.Context, arg ListDeploymentPublisherIDsParams) ([]string, error)
	ListDeploymentPublisherServices(ctx context.Context, deploymentID string) ([]ControlAppliedProjectService, error)
	ListDeploymentPublisherStatus(ctx context.Context, arg ListDeploymentPublisherStatusParams) ([]ListDeploymentPublisherStatusRow, error)
	ListDeploymentServiceConfigurations(ctx context.Context, serviceIds []string) ([]ListDeploymentServiceConfigurationsRow, error)
	ListDeployments(ctx context.Context, arg ListDeploymentsParams) ([]ControlDeployment, error)
	ListDiscoverablePreviews(ctx context.Context, arg ListDiscoverablePreviewsParams) ([]ListDiscoverablePreviewsRow, error)
	ListDiscoverableProjects(ctx context.Context, arg ListDiscoverableProjectsParams) ([]ListDiscoverableProjectsRow, error)
	ListIdentityMembershipContexts(ctx context.Context, identityID string) ([]ListIdentityMembershipContextsRow, error)
	ListIdentityTeamDomains(ctx context.Context, arg ListIdentityTeamDomainsParams) ([]ListIdentityTeamDomainsRow, error)
	ListIdentityTeams(ctx context.Context, identityID string) ([]ListIdentityTeamsRow, error)
	ListIngressServiceRelays(ctx context.Context, arg ListIngressServiceRelaysParams) ([]ListIngressServiceRelaysRow, error)
	// only recompute permission and DNS for runs with changed inputs. membership
	// eligibility may expire without changing a row or the grant's own deadline.
	ListIngressServiceRuns(ctx context.Context, arg ListIngressServiceRunsParams) ([]ListIngressServiceRunsRow, error)
	// heartbeat deadlines and signing input always come from the current snapshot.
	ListLiveIngressRuns(ctx context.Context, arg ListLiveIngressRunsParams) ([]ListLiveIngressRunsRow, error)
	ListMaintenanceControls(ctx context.Context) ([]ControlMaintenanceControl, error)
	ListOperatorNameserverHostnames(ctx context.Context) ([]string, error)
	ListPreviewServices(ctx context.Context, previewID string) ([]string, error)
	ListProjectDeployments(ctx context.Context, arg ListProjectDeploymentsParams) ([]ControlDeployment, error)
	// one row per open publication, or one row for an idle/unrealized resource.
	// worktree bytes are encoded so separators cannot alias another cursor key.
	ListProjectPublications(ctx context.Context, arg ListProjectPublicationsParams) ([]ListProjectPublicationsRow, error)
	ListProjectServiceDeclarations(ctx context.Context, arg ListProjectServiceDeclarationsParams) ([]ListProjectServiceDeclarationsRow, error)
	ListPublisherCertificateCheckpoints(ctx context.Context, publisherIdentityID string) ([][]byte, error)
	ListPublisherGrants(ctx context.Context, publisherIdentityID string) ([]ControlPublisherGrant, error)
	ListPublisherIdentities(ctx context.Context, arg ListPublisherIdentitiesParams) ([]ControlPublisherIdentity, error)
	ListReadDependencyVersions(ctx context.Context, topic string) ([]ListReadDependencyVersionsRow, error)
	// aggregate replica runs before building one redirect per service hostname.
	ListReadyShareServices(ctx context.Context, arg ListReadyShareServicesParams) ([]ListReadyShareServicesRow, error)
	ListRelayDNSChallengePresentations(ctx context.Context, tlsServerName string) ([]ListRelayDNSChallengePresentationsRow, error)
	ListRelayServiceAssignmentTotals(ctx context.Context) ([]ListRelayServiceAssignmentTotalsRow, error)
	ListServiceAuditEvents(ctx context.Context, arg ListServiceAuditEventsParams) ([]ControlServiceAuditEvent, error)
	ListServiceAuditEventsByID(ctx context.Context, eventIds []string) ([]ControlServiceAuditEvent, error)
	ListServiceAuditOwners(ctx context.Context, serviceIds []string) ([]ListServiceAuditOwnersRow, error)
	// service_id is unique on each binding. join it once rather than planning an
	// existence subquery for every row of a batch, including single-service reads.
	ListServiceConfigurations(ctx context.Context, serviceIds []string) ([]ListServiceConfigurationsRow, error)
	ListServiceConnectionSlots(ctx context.Context, serviceRunID string) ([]ControlServiceConnectionSlot, error)
	// replace expired never-ready claims even with a live relay lease.
	// disabled services cannot accept their outstanding unclaimed assignments.
	// ready slots retain ownership and streams while their matching lease is live.
	ListServiceConnectionSlotsNeedingReplacement(ctx context.Context, arg ListServiceConnectionSlotsNeedingReplacementParams) ([]ListServiceConnectionSlotsNeedingReplacementRow, error)
	ListServiceGrants(ctx context.Context, arg ListServiceGrantsParams) ([]ControlVisitorGrant, error)
	ListServiceHTTPGrants(ctx context.Context, serviceID string) ([]ListServiceHTTPGrantsRow, error)
	ListServiceInvitations(ctx context.Context, arg ListServiceInvitationsParams) ([]ControlServiceInvitation, error)
	// current exact namespace authority is checked under the team guard before this
	// bounded point selection; it is never an administrator inventory fallback.
	ListServiceReservationCandidates(ctx context.Context, arg ListServiceReservationCandidatesParams) ([]ControlService, error)
	ListServicesForTeam(ctx context.Context, arg ListServicesForTeamParams) ([]ControlService, error)
	ListShareServices(ctx context.Context, shareID string) ([]string, error)
	ListShares(ctx context.Context, arg ListSharesParams) ([]ControlShare, error)
	ListTeamInvitations(ctx context.Context, teamID string) ([]ListTeamInvitationsRow, error)
	ListTeamMembershipContexts(ctx context.Context, arg ListTeamMembershipContextsParams) ([]ListTeamMembershipContextsRow, error)
	// invitations and quarantined memberships still own their reserved namespaces.
	ListTeamNamespaceLabels(ctx context.Context, teamID string) ([]ListTeamNamespaceLabelsRow, error)
	ListTeamShares(ctx context.Context, arg ListTeamSharesParams) ([]ControlShare, error)
	ListWorkloadSessionServices(ctx context.Context, workloadSessionID string) ([]ListWorkloadSessionServicesRow, error)
	LockACMEOrder(ctx context.Context, issuanceID string) (ControlAcmeOrder, error)
	LockAppliedProject(ctx context.Context, arg LockAppliedProjectParams) (ControlAppliedProject, error)
	LockCertificateIssuanceControl(ctx context.Context) (bool, error)
	LockCompanyLoginIntent(ctx context.Context, id string) (ControlCompanyLoginIntent, error)
	LockConnectorPeerPairForLegClaim(ctx context.Context, id string) (ControlConnectorPeerPair, error)
	LockConnectorPeerRetirementGuest(ctx context.Context, guestID string) (string, error)
	// use the existing owner guard without requiring current team authority.
	LockConnectorPeerRetirementTeam(ctx context.Context, teamID string) (string, error)
	LockControlSessionByRefreshID(ctx context.Context, refreshTokenID string) (LockControlSessionByRefreshIDRow, error)
	LockDNSAuthority(ctx context.Context, authorityReference string) (ControlDnsAuthority, error)
	LockDNSAuthorityLocalDomain(ctx context.Context, authorityReference pgtype.Text) error
	LockDNSAuthorityLocalTeam(ctx context.Context, authorityReference pgtype.Text) error
	LockDeployment(ctx context.Context, arg LockDeploymentParams) (ControlDeployment, error)
	LockDeploymentByID(ctx context.Context, id string) (ControlDeployment, error)
	LockDeploymentPublisherEnrollment(ctx context.Context, id string) (ControlDeploymentPublisherEnrollment, error)
	LockDeviceLoginByCode(ctx context.Context, userCode string) (ControlDeviceLogin, error)
	LockDeviceLoginByCredential(ctx context.Context, credentialDigest []byte) (ControlDeviceLogin, error)
	LockDeviceLoginByState(ctx context.Context, stateDigest []byte) (ControlDeviceLogin, error)
	LockDeviceLoginCapacity(ctx context.Context) error
	LockEligibleRelayLeases(ctx context.Context, arg LockEligibleRelayLeasesParams) ([]LockEligibleRelayLeasesRow, error)
	LockGuestTrialByID(ctx context.Context, id string) (ControlGuestTrial, error)
	LockIdentityBootstrap(ctx context.Context) error
	LockIdentityConnection(ctx context.Context, arg LockIdentityConnectionParams) (ControlIdentityConnection, error)
	LockIdentityForTeamCreation(ctx context.Context, identityID string) (LockIdentityForTeamCreationRow, error)
	LockIngressLease(ctx context.Context, arg LockIngressLeaseParams) (ControlIngressLease, error)
	LockIngressPoolForProvision(ctx context.Context, id string) (ControlIngressPool, error)
	// registration and the final ready transition serialize membership, without
	// taking ingress lease locks beneath the public URL/run locks.
	LockIngressPoolMembership(ctx context.Context, id string) error
	LockInvitationByTokenDigest(ctx context.Context, arg LockInvitationByTokenDigestParams) (LockInvitationByTokenDigestRow, error)
	// local authority mutations lock the team before identities, memberships,
	// domains, DNS authorities, and public URLs. recheck authorization under this
	// transaction-held guard; hosted teams need no fabricated local rows.
	// queue writers with publish run readers through the advisory lock: row-lock
	// readers alone can bypass a waiting writer indefinitely.
	LockLocalTeamForMutation(ctx context.Context, teamID string) (string, error)
	// publish run creation reads authority under this guard before locking its
	// public URL. different public URLs may start together while team, role, or
	// domain mutations wait. callers must not upgrade this guard by writing the team.
	LockLocalTeamForSession(ctx context.Context, teamID string) (string, error)
	LockMaintenanceControl(ctx context.Context, operation string) (bool, error)
	LockManagedDomainForClaim(ctx context.Context) (ControlDomain, error)
	LockPendingServiceInvitation(ctx context.Context, arg LockPendingServiceInvitationParams) (ControlServiceInvitation, error)
	LockPreviewForTeamAccess(ctx context.Context, id string) (LockPreviewForTeamAccessRow, error)
	LockPublisherEnrollment(ctx context.Context, id string) (ControlPublisherEnrollment, error)
	LockPublisherIdentity(ctx context.Context, id string) (ControlPublisherIdentity, error)
	LockRelayServiceForCertificate(ctx context.Context, relayServiceID string) (string, error)
	LockRelayServicesForPlacement(ctx context.Context, ids []string) ([]string, error)
	LockService(ctx context.Context, id string) (ControlService, error)
	LockServiceAuditClock(ctx context.Context, arg LockServiceAuditClockParams) error
	// run closure holds its parent first. lock shared orders in stable order before
	// taking a fresh consumer snapshot, so concurrent final closes cannot miss both.
	LockServiceCertificateOrdersForConsumer(ctx context.Context, serviceRunID string) ([]string, error)
	LockServiceHTTPBrowserSession(ctx context.Context, tokenDigest []byte) ([]byte, error)
	LockServiceRecoveryEpisode(ctx context.Context, id int64) (ControlServiceRecoveryEpisode, error)
	LockServiceRun(ctx context.Context, arg LockServiceRunParams) (ControlServiceRun, error)
	// guest first readiness retains DNS publication through the clock transition.
	LockServiceRunFirstReadyEndpoint(ctx context.Context, arg LockServiceRunFirstReadyEndpointParams) (string, error)
	LockServiceRunsForClose(ctx context.Context, serviceID string) ([]ControlServiceRun, error)
	LockTeamActorContext(ctx context.Context, arg LockTeamActorContextParams) (LockTeamActorContextRow, error)
	LockTeamDomain(ctx context.Context, arg LockTeamDomainParams) (LockTeamDomainRow, error)
	LockTeamForInvitationAcceptance(ctx context.Context, teamID string) (string, error)
	LockTeamInvitation(ctx context.Context, arg LockTeamInvitationParams) (LockTeamInvitationRow, error)
	LockTeamMembership(ctx context.Context, arg LockTeamMembershipParams) (LockTeamMembershipRow, error)
	LockVisitorControlSession(ctx context.Context, accessTokenID string) (ControlControlSession, error)
	LockVisitorIdentity(ctx context.Context, id string) (ControlIdentity, error)
	LockVisitorTokenIssuer(ctx context.Context) (string, error)
	LockVisitorTokenSigningAuthority(ctx context.Context) (ControlVisitorTokenKey, error)
	LockVisitorTokenSigningKey(ctx context.Context) (ControlVisitorTokenKey, error)
	LockWorkloadSession(ctx context.Context, id string) (ControlWorkloadSession, error)
	LoginTeamRequiresCompany(ctx context.Context, id string) (bool, error)
	MarkACMEOrderInstalled(ctx context.Context, arg MarkACMEOrderInstalledParams) (ControlAcmeOrder, error)
	MarkCustomDomainReleasing(ctx context.Context, arg MarkCustomDomainReleasingParams) (int64, error)
	MarkDNSAuthorityReleasing(ctx context.Context, arg MarkDNSAuthorityReleasingParams) (int64, error)
	MarkGuestRunReady(ctx context.Context, arg MarkGuestRunReadyParams) (int64, error)
	MarkInvitationExpired(ctx context.Context, invitationID string) (int64, error)
	// registration holds the lease row lock until this update commits. a matching
	// old run clears its supersession only after it has passed lease and key checks.
	MarkSupersededRelayRunSigningKeys(ctx context.Context, arg MarkSupersededRelayRunSigningKeysParams) error
	ObserveAppliedProject(ctx context.Context, arg ObserveAppliedProjectParams) (ControlAppliedProject, error)
	ObserveDeployment(ctx context.Context, arg ObserveDeploymentParams) (ControlDeployment, error)
	ObserveIdentityBootstrap(ctx context.Context) error
	// redemption checks the approved service but only writes the enrollment and
	// the new publisher. serialize with service edits, not sibling observations.
	ObservePublisherEnrollmentService(ctx context.Context, id string) (ControlService, error)
	ObserveServiceRecoveryEpisode(ctx context.Context, arg ObserveServiceRecoveryEpisodeParams) (ControlServiceRecoveryEpisode, error)
	ObserveServiceRun(ctx context.Context, arg ObserveServiceRunParams) (ControlServiceRun, error)
	OpenServiceRecoveryEpisode(ctx context.Context, arg OpenServiceRecoveryEpisodeParams) error
	OtherPreviewForTeamAccess(ctx context.Context, arg OtherPreviewForTeamAccessParams) (string, error)
	OtherTeamAccessForService(ctx context.Context, arg OtherTeamAccessForServiceParams) (string, error)
	PrepareConnectorPeerRebind(ctx context.Context, arg PrepareConnectorPeerRebindParams) (int64, error)
	// caller locks the service, checks the live publisher grant and enrolled key,
	// allocates one run number and captures its protocol and managed certificate plan.
	// a retry with the same idempotency key returns the same prepared row.
	// endpoint retirement does not revoke the saved connector identity. capture
	// retained provenance only for this exact service, hostname and domain.
	PrepareServiceRun(ctx context.Context, arg PrepareServiceRunParams) (ControlServiceRun, error)
	PreviewInvitation(ctx context.Context, arg PreviewInvitationParams) (PreviewInvitationRow, error)
	PrunePublisherAccess(ctx context.Context, arg PrunePublisherAccessParams) error
	PrunePublisherAssertions(ctx context.Context, arg PrunePublisherAssertionsParams) error
	PublisherRuntimeActive(ctx context.Context, arg PublisherRuntimeActiveParams) (bool, error)
	// this read does not lock resources after identities. service run
	// transactions lock their saved service first and recheck the grant.
	PublisherScopeAvailable(ctx context.Context, arg PublisherScopeAvailableParams) (bool, error)
	PutCompanyEligibility(ctx context.Context, arg PutCompanyEligibilityParams) error
	QuarantineMemberSlug(ctx context.Context, arg QuarantineMemberSlugParams) (int64, error)
	ReadConnectorPeerBindingClaims(ctx context.Context, arg ReadConnectorPeerBindingClaimsParams) ([]ControlConnectorPeerPairLegClaim, error)
	ReadConnectorPeerClaimBounds(ctx context.Context, pairID string) ([]ReadConnectorPeerClaimBoundsRow, error)
	// relay leases are current-state recheck deadlines, not pair renewals.
	ReadConnectorPeerObservationRelayBounds(ctx context.Context, arg ReadConnectorPeerObservationRelayBoundsParams) ([]ReadConnectorPeerObservationRelayBoundsRow, error)
	// called only for scopes whose change records differ, in the same snapshot.
	ReadConnectorPeerWatchVersions(ctx context.Context, runIds []string) ([]ReadConnectorPeerWatchVersionsRow, error)
	ReadPlacementAssignmentTotals(ctx context.Context, ids []string) ([]ReadPlacementAssignmentTotalsRow, error)
	ReadPublisherGrant(ctx context.Context, arg ReadPublisherGrantParams) (ControlPublisherGrant, error)
	ReadPublisherIdentity(ctx context.Context, id string) (ControlPublisherIdentity, error)
	// confirm only ordinary scopes without time-dependent parents.
	// every check, including the change bookmark, uses one statement snapshot.
	ReadPublisherPolicyConfirmation(ctx context.Context, arg ReadPublisherPolicyConfirmationParams) (ReadPublisherPolicyConfirmationRow, error)
	// an unbound service cannot gain a registered key from a change to another
	// service's project. the binding counter survives removal and recreation.
	ReadRegisteredKeyWatchVersion(ctx context.Context, serviceID string) (ReadRegisteredKeyWatchVersionRow, error)
	// a ranking hint only. recheck the selected services and leases under lock.
	ReadRelayPlacementCandidates(ctx context.Context, now pgtype.Timestamptz) ([]ReadRelayPlacementCandidatesRow, error)
	ReadServiceHTTPBrowserSession(ctx context.Context, arg ReadServiceHTTPBrowserSessionParams) (ReadServiceHTTPBrowserSessionRow, error)
	ReadServiceIPKey(ctx context.Context, arg ReadServiceIPKeyParams) (ReadServiceIPKeyRow, error)
	ReadVisitorPolicyEvents(ctx context.Context, arg ReadVisitorPolicyEventsParams) ([]ReadVisitorPolicyEventsRow, error)
	ReadVisitorPolicyRegisteredKeys(ctx context.Context, arg ReadVisitorPolicyRegisteredKeysParams) ([]ReadVisitorPolicyRegisteredKeysRow, error)
	ReadVisitorPolicyRevision(ctx context.Context, resourceID string) (int64, error)
	ReadVisitorPolicyService(ctx context.Context, id string) (ControlService, error)
	ReadVisitorTokenIssuer(ctx context.Context) (string, error)
	ReadVisitorVerificationKeyRevision(ctx context.Context) (int64, error)
	ReadyServiceBrowserHosts(ctx context.Context, arg ReadyServiceBrowserHostsParams) ([]ReadyServiceBrowserHostsRow, error)
	ReadyServiceConnectionSlot(ctx context.Context, arg ReadyServiceConnectionSlotParams) (ControlServiceConnectionSlot, error)
	ReadyServiceRun(ctx context.Context, arg ReadyServiceRunParams) (ControlServiceRun, error)
	RecentGuestTrialStats(ctx context.Context, since pgtype.Timestamptz) (RecentGuestTrialStatsRow, error)
	RedeemPublisherEnrollment(ctx context.Context, arg RedeemPublisherEnrollmentParams) error
	RedeemServiceHTTPBrowserHandoff(ctx context.Context, arg RedeemServiceHTTPBrowserHandoffParams) (RedeemServiceHTTPBrowserHandoffRow, error)
	RegisterIngress(ctx context.Context, arg RegisterIngressParams) (ControlIngressLease, error)
	// blocking relay-service operations take the transaction advisory guard before
	// service and lease rows. row readers can bypass a waiting writer without this
	// queue, starving registration, placement, or certificate updates.
	// SKIP LOCKED certificate preparation and key rotation only take row locks;
	// they must not wait for this guard while holding a row.
	RegisterRelay(ctx context.Context, arg RegisterRelayParams) (RegisterRelayRow, error)
	ReleaseInvitedMemberSlug(ctx context.Context, arg ReleaseInvitedMemberSlugParams) (int64, error)
	RemoveProjectServiceDeclarations(ctx context.Context, arg RemoveProjectServiceDeclarationsParams) error
	RemoveTeamMembership(ctx context.Context, arg RemoveTeamMembershipParams) (int64, error)
	// only a fresh signed renewal after the last successful authorization can
	// extend the same pair; an expired row never regains serving authority.
	RenewConnectorPeerPair(ctx context.Context, arg RenewConnectorPeerPairParams) (ControlConnectorPeerPair, error)
	RenewIngress(ctx context.Context, arg RenewIngressParams) (ControlIngressLease, error)
	RenewPublisherRuntime(ctx context.Context, arg RenewPublisherRuntimeParams) (ControlPublisherRuntime, error)
	RenewRelay(ctx context.Context, arg RenewRelayParams) (RenewRelayRow, error)
	RenewServiceRun(ctx context.Context, arg RenewServiceRunParams) (ControlServiceRun, error)
	ReplaceConnectorPeerPair(ctx context.Context, id string) (int64, error)
	ReserveInvitedMemberSlug(ctx context.Context, arg ReserveInvitedMemberSlugParams) (string, error)
	ReserveManagedLabel(ctx context.Context, arg ReserveManagedLabelParams) (string, error)
	ResolveLoginTeam(ctx context.Context, selection string) (string, error)
	RetainVisitorTokenSigningKey(ctx context.Context, arg RetainVisitorTokenSigningKeyParams) (int64, error)
	RetireConnectorPeerAuditBindings(ctx context.Context, arg RetireConnectorPeerAuditBindingsParams) (int64, error)
	// the caller holds owner -> service -> run -> exact pair and verifies both proofs.
	// terminal retries compare the stored digest; no upsert or deadline advance exists.
	RetireConnectorPeerPair(ctx context.Context, arg RetireConnectorPeerPairParams) (ControlConnectorPeerPair, error)
	RetirePublisherKey(ctx context.Context, arg RetirePublisherKeyParams) (int64, error)
	// a captured, current plan is interest even before its sibling submits a CSR.
	// publisher_service_permission remains the authority for service/grant/owner
	// policy. serving_until is authority; shorter publisher liveness is not expiry.
	RetireUnusedServiceCertificateOrder(ctx context.Context, arg RetireUnusedServiceCertificateOrderParams) error
	RetireVisitorTokenSigningKeys(ctx context.Context, now pgtype.Timestamptz) error
	RevokeControlSession(ctx context.Context, arg RevokeControlSessionParams) (int64, error)
	RevokeGuestShare(ctx context.Context, arg RevokeGuestShareParams) (ControlShare, error)
	RevokePublisherGrant(ctx context.Context, arg RevokePublisherGrantParams) (int64, error)
	RevokePublisherIdentity(ctx context.Context, arg RevokePublisherIdentityParams) (int64, error)
	RevokeServiceGrant(ctx context.Context, arg RevokeServiceGrantParams) (int64, error)
	RevokeServiceHTTPBrowserSession(ctx context.Context, arg RevokeServiceHTTPBrowserSessionParams) error
	RevokeServiceHTTPGrant(ctx context.Context, arg RevokeServiceHTTPGrantParams) (int64, error)
	RevokeServiceInvitation(ctx context.Context, arg RevokeServiceInvitationParams) (int64, error)
	// caller revokes invitation and accepted grant in the same transaction.
	RevokeServiceInvitationGrant(ctx context.Context, arg RevokeServiceInvitationGrantParams) (int64, error)
	RevokeShare(ctx context.Context, arg RevokeShareParams) (ControlShare, error)
	RevokeTeamInvitation(ctx context.Context, arg RevokeTeamInvitationParams) (int64, error)
	RevokeVisitorTokenSigningKeys(ctx context.Context, now pgtype.Timestamptz) error
	RotateACMEAccountKey(ctx context.Context, arg RotateACMEAccountKeyParams) error
	RotateControlSessionCredentials(ctx context.Context, arg RotateControlSessionCredentialsParams) (int64, error)
	RotateControlSessionRetrySecret(ctx context.Context, arg RotateControlSessionRetrySecretParams) error
	RotateRelayCertificateOrderPrivateKey(ctx context.Context, arg RotateRelayCertificateOrderPrivateKeyParams) error
	RotateRelayServicePrivateKey(ctx context.Context, arg RotateRelayServicePrivateKeyParams) error
	RotateServiceHTTPBrowserSession(ctx context.Context, arg RotateServiceHTTPBrowserSessionParams) error
	SaveACMEAuthorizationWork(ctx context.Context, arg SaveACMEAuthorizationWorkParams) (ControlAcmeAuthorization, error)
	SaveACMEOrderWork(ctx context.Context, arg SaveACMEOrderWorkParams) (ControlAcmeOrder, error)
	SaveConnectorPeerAuditBinding(ctx context.Context, arg SaveConnectorPeerAuditBindingParams) (int64, error)
	// two rows maximum per binding. an uncertain response requires a fresh proof from
	// the same observed source and the same relay process, never the old nonce.
	SaveConnectorPeerPairLegClaim(ctx context.Context, arg SaveConnectorPeerPairLegClaimParams) (string, error)
	SaveConnectorPeerPendingPublisherProof(ctx context.Context, arg SaveConnectorPeerPendingPublisherProofParams) (int64, error)
	SaveConnectorPeerPublisherProof(ctx context.Context, arg SaveConnectorPeerPublisherProofParams) (int64, error)
	SaveDNSAuthorityWork(ctx context.Context, arg SaveDNSAuthorityWorkParams) (ControlDnsAuthority, error)
	SaveProjectServiceDeclaration(ctx context.Context, arg SaveProjectServiceDeclarationParams) error
	SaveRelayCertificateOrderWork(ctx context.Context, arg SaveRelayCertificateOrderWorkParams) (ControlRelayCertificateOrder, error)
	SaveServiceEndpointDNSWork(ctx context.Context, arg SaveServiceEndpointDNSWorkParams) (ControlServiceEndpoint, error)
	SeedAdministrator(ctx context.Context, arg SeedAdministratorParams) error
	// current permission covers the selected service using the original grant.
	SelectServiceForPublisher(ctx context.Context, arg SelectServiceForPublisherParams) (ControlService, error)
	ServiceHTTPBrowserEndpoint(ctx context.Context, arg ServiceHTTPBrowserEndpointParams) (ServiceHTTPBrowserEndpointRow, error)
	ServiceHTTPBrowserPermission(ctx context.Context, arg ServiceHTTPBrowserPermissionParams) (ServiceHTTPBrowserPermissionRow, error)
	ServiceHTTPPreviewTeamPermission(ctx context.Context, arg ServiceHTTPPreviewTeamPermissionParams) (pgtype.Timestamptz, error)
	ServiceNamespaceOwnsHostname(ctx context.Context, hostname string) (bool, error)
	ServicePortPoolCapacity(ctx context.Context) ([]ServicePortPoolCapacityRow, error)
	ServicePublicEndpointBinding(ctx context.Context, visitorConnectionID string) (ServicePublicEndpointBindingRow, error)
	// the caller holds the service lock and validates the run's preparation facts.
	// use current DNS, relay, and ingress facts without authorizing visitor access.
	ServiceRunPublicEndpointReady(ctx context.Context, arg ServiceRunPublicEndpointReadyParams) (ServiceRunPublicEndpointReadyRow, error)
	SetDNSReadyDomainDefault(ctx context.Context, arg SetDNSReadyDomainDefaultParams) (int64, error)
	SetDomainAuthorityRevision(ctx context.Context, arg SetDomainAuthorityRevisionParams) error
	SetIdentityInitialTeam(ctx context.Context, arg SetIdentityInitialTeamParams) error
	SetMaintenanceControl(ctx context.Context, arg SetMaintenanceControlParams) (ControlMaintenanceControl, error)
	SetPersonalTeamDefaultDomain(ctx context.Context, arg SetPersonalTeamDefaultDomainParams) error
	SetPreviewTeamAccess(ctx context.Context, arg SetPreviewTeamAccessParams) error
	SetServiceConfiguration(ctx context.Context, arg SetServiceConfigurationParams) (int64, error)
	SetServiceEnabled(ctx context.Context, arg SetServiceEnabledParams) (ControlService, error)
	SetTeamDefaultDomain(ctx context.Context, arg SetTeamDefaultDomainParams) (int64, error)
	SetVisitorFeedbackPolicy(ctx context.Context, arg SetVisitorFeedbackPolicyParams) error
	StartPublisherRuntime(ctx context.Context, arg StartPublisherRuntimeParams) (ControlPublisherRuntime, error)
	StopPublisherRuntime(ctx context.Context, arg StopPublisherRuntimeParams) (ControlPublisherRuntime, error)
	StoreRelayTransportCertificate(ctx context.Context, arg StoreRelayTransportCertificateParams) (ControlRelayService, error)
	TeamMemberSlugReserved(ctx context.Context, arg TeamMemberSlugReservedParams) (bool, error)
	TeamMembershipIdentityExists(ctx context.Context, arg TeamMembershipIdentityExistsParams) (bool, error)
	TeamSharedNameInUse(ctx context.Context, arg TeamSharedNameInUseParams) (bool, error)
	UpdateACMEAccountRegistration(ctx context.Context, arg UpdateACMEAccountRegistrationParams) (ControlAcmeAccount, error)
	UpdateDeviceLogin(ctx context.Context, arg UpdateDeviceLoginParams) error
	// retain issued ready authority after closure so an offline owner cannot overlap
	// its replacement. the run lock serializes readiness, heartbeat and settlement.
	UpdateGuestServingAuthority(ctx context.Context, arg UpdateGuestServingAuthorityParams) (pgtype.Timestamptz, error)
	UpdateLocalDomainForDNSAuthority(ctx context.Context, arg UpdateLocalDomainForDNSAuthorityParams) (UpdateLocalDomainForDNSAuthorityRow, error)
	UpdateMembershipRole(ctx context.Context, arg UpdateMembershipRoleParams) (int64, error)
	UpdateOIDCIdentity(ctx context.Context, arg UpdateOIDCIdentityParams) (ControlIdentity, error)
	UpdateServiceRecoveryHistogram(ctx context.Context, arg UpdateServiceRecoveryHistogramParams) error
	UpsertDNSChallengeChange(ctx context.Context, arg UpsertDNSChallengeChangeParams) error
	// use the same publication candidate as claim, including first-ready guests.
	ValidateServiceEndpointDNSWork(ctx context.Context, arg ValidateServiceEndpointDNSWorkParams) (bool, error)
	ValidateVerifiedCompanyProof(ctx context.Context, arg ValidateVerifiedCompanyProofParams) (bool, error)
	VisitorCurrentMembership(ctx context.Context, arg VisitorCurrentMembershipParams) (string, error)
	VisitorFeedbackPolicy(ctx context.Context, id string) (string, error)
	VisitorPermission(ctx context.Context, arg VisitorPermissionParams) (VisitorPermissionRow, error)
	VisitorTokenVerificationKeys(ctx context.Context, now pgtype.Timestamptz) ([]VisitorTokenVerificationKeysRow, error)
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AbortConnectorPeerRebind

func (q *Queries) AbortConnectorPeerRebind(ctx context.Context, arg AbortConnectorPeerRebindParams) (int64, error)

func (*Queries) AcceptServiceInvitation

func (q *Queries) AcceptServiceInvitation(ctx context.Context, arg AcceptServiceInvitationParams) (ControlServiceInvitation, error)

verified_actor_email comes only from the consumed configured-issuer assertion; control sessions retain their stored verified email check.

func (*Queries) AcceptTeamInvitation

func (q *Queries) AcceptTeamInvitation(ctx context.Context, arg AcceptTeamInvitationParams) (int64, error)

func (*Queries) AcknowledgeDeploymentPublisherConfiguration

func (q *Queries) AcknowledgeDeploymentPublisherConfiguration(ctx context.Context, arg AcknowledgeDeploymentPublisherConfigurationParams) error

func (*Queries) ActivateConnectorPeerBinding

func (q *Queries) ActivateConnectorPeerBinding(ctx context.Context, arg ActivateConnectorPeerBindingParams) (int64, error)

func (*Queries) ActivateMemberSlug

func (q *Queries) ActivateMemberSlug(ctx context.Context, arg ActivateMemberSlugParams) (int64, error)

func (*Queries) ActiveCompanyMembership

func (q *Queries) ActiveCompanyMembership(ctx context.Context, arg ActiveCompanyMembershipParams) (bool, error)

func (*Queries) ActiveTeamSubject

func (q *Queries) ActiveTeamSubject(ctx context.Context, arg ActiveTeamSubjectParams) (bool, error)

func (*Queries) AddGuestShareService

func (q *Queries) AddGuestShareService(ctx context.Context, arg AddGuestShareServiceParams) (int64, error)

func (*Queries) AddPreviewService

func (q *Queries) AddPreviewService(ctx context.Context, arg AddPreviewServiceParams) (string, error)

func (*Queries) AddServiceRunPreviewService

func (q *Queries) AddServiceRunPreviewService(ctx context.Context, arg AddServiceRunPreviewServiceParams) error

func (*Queries) AddShareService

func (q *Queries) AddShareService(ctx context.Context, arg AddShareServiceParams) (string, error)

func (*Queries) AdvanceGuestDemoNumber

func (q *Queries) AdvanceGuestDemoNumber(ctx context.Context, arg AdvanceGuestDemoNumberParams) (int64, error)

func (*Queries) AdvanceServiceRunNumber

func (q *Queries) AdvanceServiceRunNumber(ctx context.Context, arg AdvanceServiceRunNumberParams) (int64, error)

func (*Queries) AdvanceTeamPolicyRevision

func (q *Queries) AdvanceTeamPolicyRevision(ctx context.Context, arg AdvanceTeamPolicyRevisionParams) (int64, error)

func (*Queries) BeginAdminRelayDrain

func (q *Queries) BeginAdminRelayDrain(ctx context.Context, arg BeginAdminRelayDrainParams) (BeginAdminRelayDrainRow, error)

func (*Queries) BeginGuestServiceRun

func (q *Queries) BeginGuestServiceRun(ctx context.Context, arg BeginGuestServiceRunParams) (int64, error)

func (*Queries) BeginIngressDrain

func (q *Queries) BeginIngressDrain(ctx context.Context, arg BeginIngressDrainParams) (ControlIngressLease, error)

func (*Queries) BeginRelayDrain

func (q *Queries) BeginRelayDrain(ctx context.Context, arg BeginRelayDrainParams) (BeginRelayDrainRow, error)

func (*Queries) BindInitialOIDCMembership

func (q *Queries) BindInitialOIDCMembership(ctx context.Context, arg BindInitialOIDCMembershipParams) error

func (*Queries) BindRelayRunSigningKey

func (q *Queries) BindRelayRunSigningKey(ctx context.Context, arg BindRelayRunSigningKeyParams) (int64, error)

run only after RegisterRelay succeeds, inside the same transaction. on a mismatched historical key the caller rolls back the lease replacement too.

func (*Queries) CancelOpenServiceRecoveryEpisode

func (q *Queries) CancelOpenServiceRecoveryEpisode(ctx context.Context, arg CancelOpenServiceRecoveryEpisodeParams) error

func (*Queries) ClaimACMEOrderWork

func (q *Queries) ClaimACMEOrderWork(ctx context.Context, arg ClaimACMEOrderWorkParams) (ControlAcmeOrder, error)

func (*Queries) ClaimDNSAuthorityWork

func (q *Queries) ClaimDNSAuthorityWork(ctx context.Context, arg ClaimDNSAuthorityWorkParams) (ControlDnsAuthority, error)

func (*Queries) ClaimPublisherAssertion

func (q *Queries) ClaimPublisherAssertion(ctx context.Context, arg ClaimPublisherAssertionParams) (int64, error)

func (*Queries) ClaimRelayServiceForCertificateOrder

func (q *Queries) ClaimRelayServiceForCertificateOrder(ctx context.Context, arg ClaimRelayServiceForCertificateOrderParams) (ControlRelayService, error)

func (*Queries) ClaimServiceEndpointDNSWork

func (q *Queries) ClaimServiceEndpointDNSWork(ctx context.Context, arg ClaimServiceEndpointDNSWorkParams) (ControlServiceEndpoint, error)

func (*Queries) CleanupExpiredConnectorPeerPairs

func (q *Queries) CleanupExpiredConnectorPeerPairs(ctx context.Context, arg CleanupExpiredConnectorPeerPairsParams) (int64, error)

func (*Queries) CleanupServiceAuditEvents

func (q *Queries) CleanupServiceAuditEvents(ctx context.Context, arg CleanupServiceAuditEventsParams) (int64, error)

func (*Queries) CleanupSupersededRelayRunSigningKeys

func (q *Queries) CleanupSupersededRelayRunSigningKeys(ctx context.Context, arg CleanupSupersededRelayRunSigningKeysParams) (int64, error)

lock the lease before key rows, as registration does. skip a relay being registered: deleting its old binding before its key check would allow a different key on a returning run. never delete the current run's key.

func (*Queries) CleanupVisitorHandoffs

func (q *Queries) CleanupVisitorHandoffs(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) CleanupVisitorLogins

func (q *Queries) CleanupVisitorLogins(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) CleanupVisitorSessions

func (q *Queries) CleanupVisitorSessions(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) CleanupWorkloadAssertions

func (q *Queries) CleanupWorkloadAssertions(ctx context.Context, arg CleanupWorkloadAssertionsParams) (int64, error)

func (*Queries) CleanupWorkloadAudit

func (q *Queries) CleanupWorkloadAudit(ctx context.Context, arg CleanupWorkloadAuditParams) (int64, error)

func (*Queries) CleanupWorkloadCertificates

func (q *Queries) CleanupWorkloadCertificates(ctx context.Context, arg CleanupWorkloadCertificatesParams) (int64, error)

func (*Queries) CleanupWorkloadPublicServiceVisitors

func (q *Queries) CleanupWorkloadPublicServiceVisitors(ctx context.Context, arg CleanupWorkloadPublicServiceVisitorsParams) (int64, error)

each phase has its own budget so a busy leaf cannot starve its parents. select only unreferenced candidates before LIMIT; never cascade subject state.

func (*Queries) CleanupWorkloadServiceRights

func (q *Queries) CleanupWorkloadServiceRights(ctx context.Context, arg CleanupWorkloadServiceRightsParams) (int64, error)

keep the exact service snapshot until all other session references are gone.

func (*Queries) CleanupWorkloadSessions

func (q *Queries) CleanupWorkloadSessions(ctx context.Context, arg CleanupWorkloadSessionsParams) (int64, error)

func (*Queries) CloseServiceRun

func (q *Queries) CloseServiceRun(ctx context.Context, arg CloseServiceRunParams) (int64, error)

func (*Queries) ClosedServiceRuns

func (q *Queries) ClosedServiceRuns(ctx context.Context, runIds []string) ([]ClosedServiceRunsRow, error)

only an exact stored terminal tuple proves a finite traffic budget can retire.

func (*Queries) CompanySessionAuthorized

func (q *Queries) CompanySessionAuthorized(ctx context.Context, arg CompanySessionAuthorizedParams) (bool, error)

func (*Queries) CompanySessionRefreshValid

func (q *Queries) CompanySessionRefreshValid(ctx context.Context, arg CompanySessionRefreshValidParams) (pgtype.Bool, error)

func (*Queries) CompanySubjectDeadline

func (q *Queries) CompanySubjectDeadline(ctx context.Context, arg CompanySubjectDeadlineParams) (pgtype.Timestamptz, error)

func (*Queries) CompanySubjectSessionAuthorized

func (q *Queries) CompanySubjectSessionAuthorized(ctx context.Context, arg CompanySubjectSessionAuthorizedParams) (bool, error)

func (*Queries) ConfirmConnectorPeerPairPrepared

func (q *Queries) ConfirmConnectorPeerPairPrepared(ctx context.Context, arg ConfirmConnectorPeerPairPreparedParams) (int64, error)

only a checked publisher report can advance this startup barrier. a retry retains a newer report, capped by the currently checked delivery authority.

func (*Queries) ConfirmConnectorPeerPendingPrepared

func (q *Queries) ConfirmConnectorPeerPendingPrepared(ctx context.Context, arg ConfirmConnectorPeerPendingPreparedParams) (int64, error)

func (*Queries) ConsumeAuthenticationSeed

func (q *Queries) ConsumeAuthenticationSeed(ctx context.Context, arg ConsumeAuthenticationSeedParams) (int64, error)

func (*Queries) ConsumeCompanyLoginIntent

func (q *Queries) ConsumeCompanyLoginIntent(ctx context.Context, arg ConsumeCompanyLoginIntentParams) (int64, error)

func (*Queries) ConsumeOIDCAssertion

func (q *Queries) ConsumeOIDCAssertion(ctx context.Context, arg ConsumeOIDCAssertionParams) (int64, error)

func (*Queries) ConsumeShareHandoff

func (q *Queries) ConsumeShareHandoff(ctx context.Context, arg ConsumeShareHandoffParams) (ConsumeShareHandoffRow, error)

func (*Queries) CopyCompanySessionContexts

func (q *Queries) CopyCompanySessionContexts(ctx context.Context, arg CopyCompanySessionContextsParams) error

func (*Queries) CountActiveShareCookiesForService

func (q *Queries) CountActiveShareCookiesForService(ctx context.Context, arg CountActiveShareCookiesForServiceParams) (int64, error)

func (*Queries) CountActiveSharesForService

func (q *Queries) CountActiveSharesForService(ctx context.Context, arg CountActiveSharesForServiceParams) (int64, error)

func (*Queries) CountConnectorPeerPairOwners

func (q *Queries) CountConnectorPeerPairOwners(ctx context.Context, arg CountConnectorPeerPairOwnersParams) (int64, error)

func (*Queries) CountGuestCurrentServices

func (q *Queries) CountGuestCurrentServices(ctx context.Context, guestID pgtype.Text) (int64, error)

func (*Queries) CountOpenServiceRunAssignmentsByRelayService

func (q *Queries) CountOpenServiceRunAssignmentsByRelayService(ctx context.Context) ([]CountOpenServiceRunAssignmentsByRelayServiceRow, error)

diagnostic/test oracle only; joins the parent to check slot eligibility.

func (*Queries) CountRecentGuestTrialsByIP

func (q *Queries) CountRecentGuestTrialsByIP(ctx context.Context, arg CountRecentGuestTrialsByIPParams) (int64, error)

func (*Queries) CountRelayActiveConnections

func (q *Queries) CountRelayActiveConnections(ctx context.Context, arg CountRelayActiveConnectionsParams) (int64, error)

func (*Queries) CountTeamOwners

func (q *Queries) CountTeamOwners(ctx context.Context, teamID string) (int64, error)

func (*Queries) CreateActiveSlugReservation

func (q *Queries) CreateActiveSlugReservation(ctx context.Context, arg CreateActiveSlugReservationParams) error

func (*Queries) CreateControlSession

func (q *Queries) CreateControlSession(ctx context.Context, arg CreateControlSessionParams) error

func (*Queries) CreateCustomDNSAuthority

func (q *Queries) CreateCustomDNSAuthority(ctx context.Context, arg CreateCustomDNSAuthorityParams) error

func (*Queries) CreateCustomDomain

func (q *Queries) CreateCustomDomain(ctx context.Context, arg CreateCustomDomainParams) (ControlDomain, error)

func (*Queries) CreateGuestShare

func (q *Queries) CreateGuestShare(ctx context.Context, arg CreateGuestShareParams) (ControlShare, error)

caller holds the trial and exact service and verifies the trial credential and observed source. publication permission alone never authorizes sharing.

func (*Queries) CreateInvitationEmail

func (q *Queries) CreateInvitationEmail(ctx context.Context, arg CreateInvitationEmailParams) error

func (*Queries) CreateManagedDomain

func (q *Queries) CreateManagedDomain(ctx context.Context, arg CreateManagedDomainParams) error

func (*Queries) CreateOIDCIdentity

func (q *Queries) CreateOIDCIdentity(ctx context.Context, arg CreateOIDCIdentityParams) (ControlIdentity, error)

func (*Queries) CreateOrganizationTeam

func (q *Queries) CreateOrganizationTeam(ctx context.Context, arg CreateOrganizationTeamParams) (CreateOrganizationTeamRow, error)

func (*Queries) CreateOwnerMembership

func (q *Queries) CreateOwnerMembership(ctx context.Context, arg CreateOwnerMembershipParams) error

func (*Queries) CreatePersonalTeam

func (q *Queries) CreatePersonalTeam(ctx context.Context, arg CreatePersonalTeamParams) error

func (*Queries) CreatePreview

func (q *Queries) CreatePreview(ctx context.Context, arg CreatePreviewParams) (CreatePreviewRow, error)

func (*Queries) CreateSeedMember

func (q *Queries) CreateSeedMember(ctx context.Context, arg CreateSeedMemberParams) error

func (*Queries) CreateServiceIPKey

func (q *Queries) CreateServiceIPKey(ctx context.Context, arg CreateServiceIPKeyParams) error

func (*Queries) CreateServiceRunPreview

func (q *Queries) CreateServiceRunPreview(ctx context.Context, arg CreateServiceRunPreviewParams) (ControlPreview, error)

func (*Queries) CreateShare

func (q *Queries) CreateShare(ctx context.Context, arg CreateShareParams) (ControlShare, error)

func (*Queries) CreateTeamInvitation

func (q *Queries) CreateTeamInvitation(ctx context.Context, arg CreateTeamInvitationParams) (ControlTeamInvitation, error)

func (*Queries) CreateTeamMembership

func (q *Queries) CreateTeamMembership(ctx context.Context, arg CreateTeamMembershipParams) error

func (*Queries) CreateVisitorTokenSigningKey

func (q *Queries) CreateVisitorTokenSigningKey(ctx context.Context, arg CreateVisitorTokenSigningKeyParams) (ControlVisitorTokenKey, error)

func (*Queries) DNSAuthorityReleaseReady

func (q *Queries) DNSAuthorityReleaseReady(ctx context.Context, arg DNSAuthorityReleaseReadyParams) (pgtype.Bool, error)

func (*Queries) DeleteConnectorPeerPairLegClaims

func (q *Queries) DeleteConnectorPeerPairLegClaims(ctx context.Context, pairID string) (int64, error)

func (*Queries) DeleteConnectorPeerPendingBinding

func (q *Queries) DeleteConnectorPeerPendingBinding(ctx context.Context, pairID string) (int64, error)

func (*Queries) DeleteExpiredDeviceLogins

func (q *Queries) DeleteExpiredDeviceLogins(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) DeleteExpiredOIDCAssertionExchanges

func (q *Queries) DeleteExpiredOIDCAssertionExchanges(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) DeleteExpiredShareCookies

func (q *Queries) DeleteExpiredShareCookies(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) DeleteExpiredVisitorTokenSigningKeys

func (q *Queries) DeleteExpiredVisitorTokenSigningKeys(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) DeleteFinishedShareHandoffs

func (q *Queries) DeleteFinishedShareHandoffs(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) DeleteService

func (q *Queries) DeleteService(ctx context.Context, arg DeleteServiceParams) (ControlService, error)

caller closes all current runs and publishes a tombstone under this service lock in the same transaction.

func (*Queries) DeleteServiceConnectionSlot

func (q *Queries) DeleteServiceConnectionSlot(ctx context.Context, arg DeleteServiceConnectionSlotParams) (int64, error)

func (*Queries) DemoteServiceRun

func (q *Queries) DemoteServiceRun(ctx context.Context, arg DemoteServiceRunParams) (int64, error)

func (*Queries) DeploymentManagementPublisherAllowed

func (q *Queries) DeploymentManagementPublisherAllowed(ctx context.Context, arg DeploymentManagementPublisherAllowedParams) (bool, error)

func (*Queries) DeploymentPublisherServiceAllowed

func (q *Queries) DeploymentPublisherServiceAllowed(ctx context.Context, arg DeploymentPublisherServiceAllowedParams) (bool, error)

func (*Queries) DiscardInactiveInvitationEmails

func (q *Queries) DiscardInactiveInvitationEmails(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) EnableIngressPool

func (q *Queries) EnableIngressPool(ctx context.Context, arg EnableIngressPoolParams) (ControlIngressPool, error)

func (*Queries) EnsureACMEAccount

func (q *Queries) EnsureACMEAccount(ctx context.Context, arg EnsureACMEAccountParams) (ControlAcmeAccount, error)

func (*Queries) EnsureVisitorTokenIssuer

func (q *Queries) EnsureVisitorTokenIssuer(ctx context.Context, issuer string) error

func (*Queries) ExpireConnectorPeerRebind

func (q *Queries) ExpireConnectorPeerRebind(ctx context.Context, pairID string) (int64, error)

func (*Queries) ExpireServiceConnectionSlot

func (q *Queries) ExpireServiceConnectionSlot(ctx context.Context, arg ExpireServiceConnectionSlotParams) (int64, error)

func (*Queries) ExpireTeamInvitations

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

func (*Queries) FeedbackRunScope

func (q *Queries) FeedbackRunScope(ctx context.Context, arg FeedbackRunScopeParams) (FeedbackRunScopeRow, error)

func (*Queries) FeedbackServiceScope

func (q *Queries) FeedbackServiceScope(ctx context.Context, arg FeedbackServiceScopeParams) (FeedbackServiceScopeRow, error)

func (*Queries) FenceIngressRun

func (q *Queries) FenceIngressRun(ctx context.Context, arg FenceIngressRunParams) (int64, error)

func (*Queries) FindGuestServiceAllocation

func (q *Queries) FindGuestServiceAllocation(ctx context.Context, arg FindGuestServiceAllocationParams) (ControlService, error)

terminal allocations remain discoverable so a retry cannot recreate them.

func (*Queries) FindGuestShareRequest

func (q *Queries) FindGuestShareRequest(ctx context.Context, arg FindGuestShareRequestParams) (ControlShare, error)

func (*Queries) FindInvitationTeamByTokenDigest

func (q *Queries) FindInvitationTeamByTokenDigest(ctx context.Context, tokenDigest []byte) (string, error)

func (*Queries) FindManagedDomain

func (q *Queries) FindManagedDomain(ctx context.Context) (ControlDomain, error)

func (*Queries) FindOIDCIdentity

func (q *Queries) FindOIDCIdentity(ctx context.Context, arg FindOIDCIdentityParams) (ControlIdentity, error)

func (*Queries) FindSeedTeam

func (q *Queries) FindSeedTeam(ctx context.Context, displayName string) (ControlTeam, error)

func (*Queries) FindServiceInvitationRequest

func (q *Queries) FindServiceInvitationRequest(ctx context.Context, arg FindServiceInvitationRequestParams) (ControlServiceInvitation, error)

the caller rechecks current management before recovering metadata, never secrets.

func (*Queries) FindShareRequest

func (q *Queries) FindShareRequest(ctx context.Context, arg FindShareRequestParams) (ControlShare, error)

func (*Queries) FinishGuestServiceRun

func (q *Queries) FinishGuestServiceRun(ctx context.Context, arg FinishGuestServiceRunParams) (int64, error)

func (*Queries) FinishInvitationEmail

func (q *Queries) FinishInvitationEmail(ctx context.Context, arg FinishInvitationEmailParams) (int64, error)

func (*Queries) ForgetExpiredGuestCredentials

func (q *Queries) ForgetExpiredGuestCredentials(ctx context.Context, arg ForgetExpiredGuestCredentialsParams) (int64, error)

func (*Queries) ForgetExpiredGuestServiceConfigurations

func (q *Queries) ForgetExpiredGuestServiceConfigurations(ctx context.Context, arg ForgetExpiredGuestServiceConfigurationsParams) (int64, error)

terminal allocation keys/digests remain; targets and declarations do not.

func (*Queries) ForgetOldGuestIssuanceDigests

func (q *Queries) ForgetOldGuestIssuanceDigests(ctx context.Context, arg ForgetOldGuestIssuanceDigestsParams) (int64, error)

func (*Queries) GetACMEAccountByDirectory

func (q *Queries) GetACMEAccountByDirectory(ctx context.Context, directoryUrl string) (ControlAcmeAccount, error)

func (*Queries) GetACMEOrder

func (q *Queries) GetACMEOrder(ctx context.Context, issuanceID string) (ControlAcmeOrder, error)

func (*Queries) GetActiveShareForService

func (q *Queries) GetActiveShareForService(ctx context.Context, arg GetActiveShareForServiceParams) (ControlShare, error)

func (*Queries) GetAdminRuntimeCounts

func (q *Queries) GetAdminRuntimeCounts(ctx context.Context, now pgtype.Timestamptz) (GetAdminRuntimeCountsRow, error)

func (*Queries) GetAppliedProject

func (q *Queries) GetAppliedProject(ctx context.Context, arg GetAppliedProjectParams) (ControlAppliedProject, error)

func (*Queries) GetCompanyAuthenticationDeadline

func (q *Queries) GetCompanyAuthenticationDeadline(ctx context.Context, sessionID string) (pgtype.Timestamptz, error)

func (*Queries) GetCompanyEligibility

func (q *Queries) GetCompanyEligibility(ctx context.Context, arg GetCompanyEligibilityParams) (ControlCompanyEligibility, error)

func (*Queries) GetConnectorPeerPairForOwner

func (q *Queries) GetConnectorPeerPairForOwner(ctx context.Context, arg GetConnectorPeerPairForOwnerParams) (ControlConnectorPeerPair, error)

func (*Queries) GetConnectorPeerPendingBinding

func (q *Queries) GetConnectorPeerPendingBinding(ctx context.Context, pairID string) (ControlConnectorPeerPendingBinding, error)

func (*Queries) GetControlSessionByAccessID

func (q *Queries) GetControlSessionByAccessID(ctx context.Context, accessTokenID string) (GetControlSessionByAccessIDRow, error)

func (*Queries) GetCurrentIdentityConnection

func (q *Queries) GetCurrentIdentityConnection(ctx context.Context, teamID string) (ControlIdentityConnection, error)

func (*Queries) GetDNSAuthority

func (q *Queries) GetDNSAuthority(ctx context.Context, authorityReference string) (ControlDnsAuthority, error)

func (*Queries) GetDNSChallengeChange

func (q *Queries) GetDNSChallengeChange(ctx context.Context, arg GetDNSChallengeChangeParams) (GetDNSChallengeChangeRow, error)

func (*Queries) GetDNSChallengeSubject

func (q *Queries) GetDNSChallengeSubject(ctx context.Context, arg GetDNSChallengeSubjectParams) (GetDNSChallengeSubjectRow, error)

func (*Queries) GetDeploymentManagementGrant

func (q *Queries) GetDeploymentManagementGrant(ctx context.Context, grantID string) (ControlDeploymentManagementGrant, error)

func (*Queries) GetDeploymentServiceConfiguration

func (q *Queries) GetDeploymentServiceConfiguration(ctx context.Context, serviceID pgtype.Text) (GetDeploymentServiceConfigurationRow, error)

func (*Queries) GetFeedbackService

func (q *Queries) GetFeedbackService(ctx context.Context, id string) (ControlService, error)

func (*Queries) GetGuestTrialByCredentialID

func (q *Queries) GetGuestTrialByCredentialID(ctx context.Context, credentialID pgtype.Text) (ControlGuestTrial, error)

func (*Queries) GetGuestTrialByID

func (q *Queries) GetGuestTrialByID(ctx context.Context, id string) (ControlGuestTrial, error)

func (*Queries) GetIdentityContextIdentity

func (q *Queries) GetIdentityContextIdentity(ctx context.Context, identityID string) (GetIdentityContextIdentityRow, error)

func (*Queries) GetIdentityTeam

func (q *Queries) GetIdentityTeam(ctx context.Context, arg GetIdentityTeamParams) (GetIdentityTeamRow, error)

func (*Queries) GetIngressLease

func (q *Queries) GetIngressLease(ctx context.Context, arg GetIngressLeaseParams) (ControlIngressLease, error)

func (*Queries) GetIngressPool

func (q *Queries) GetIngressPool(ctx context.Context, id string) (ControlIngressPool, error)

func (*Queries) GetIngressServingLease

func (q *Queries) GetIngressServingLease(ctx context.Context, arg GetIngressServingLeaseParams) (ControlIngressLease, error)

func (*Queries) GetLocalProjectService

func (q *Queries) GetLocalProjectService(ctx context.Context, arg GetLocalProjectServiceParams) (GetLocalProjectServiceRow, error)

func (*Queries) GetManagedCertificateDomainKind

func (q *Queries) GetManagedCertificateDomainKind(ctx context.Context, domainID string) (string, error)

func (*Queries) GetOpenServiceRecoveryEpisode

func (q *Queries) GetOpenServiceRecoveryEpisode(ctx context.Context, serviceRunID string) (ControlServiceRecoveryEpisode, error)

func (*Queries) GetPreview

func (q *Queries) GetPreview(ctx context.Context, id string) (GetPreviewRow, error)

func (*Queries) GetPublisherAccess

func (q *Queries) GetPublisherAccess(ctx context.Context, accessTokenDigest []byte) (ControlPublisherAccessToken, error)

func (*Queries) GetPublisherAllocation

func (q *Queries) GetPublisherAllocation(ctx context.Context, serviceID string) (ControlPublisherNamespaceAllocation, error)

func (*Queries) GetPublisherDomain

func (q *Queries) GetPublisherDomain(ctx context.Context, arg GetPublisherDomainParams) (ControlDomain, error)

publisher checks may already hold a service lock. never acquire a domain lock afterward: authority mutations hold team -> domain -> service. a snapshot read permits the heartbeat to commit before a waiting release closes its run.

func (*Queries) GetPublisherGrant

func (q *Queries) GetPublisherGrant(ctx context.Context, arg GetPublisherGrantParams) (ControlPublisherGrant, error)

func (*Queries) GetPublisherKey

func (*Queries) GetPublisherRuntime

func (q *Queries) GetPublisherRuntime(ctx context.Context, publisherIdentityID string) (ControlPublisherRuntime, error)

func (*Queries) GetRelayDNSChallengeContext

func (q *Queries) GetRelayDNSChallengeContext(ctx context.Context, orderID string) (GetRelayDNSChallengeContextRow, error)

func (*Queries) GetRelayLeaseForClaim

func (q *Queries) GetRelayLeaseForClaim(ctx context.Context, relayID string) (GetRelayLeaseForClaimRow, error)

claims and readiness share the relay-service guard across processes. claims take NO KEY UPDATE on the selected lease to serialize capacity with other claims, renewal, and drain. readiness takes compatible KEY SHARE because it uses an existing reservation. service guards precede lease rows.

func (*Queries) GetRelayLeaseForReady

func (q *Queries) GetRelayLeaseForReady(ctx context.Context, relayID string) (GetRelayLeaseForReadyRow, error)

keep the service guard through routing publication so registration cannot replace the relay process between readiness and the published projection. KEY SHARE does not block claims or other readiness work. renewal or drain may overlap; readiness checks its lease, and projection reads exclude drained leases.

func (*Queries) GetRelayTransportCertificate

func (q *Queries) GetRelayTransportCertificate(ctx context.Context, arg GetRelayTransportCertificateParams) (ControlRelayService, error)

func (*Queries) GetService

func (q *Queries) GetService(ctx context.Context, id string) (ControlService, error)

func (*Queries) GetServiceCertificateOrderByCSR

func (q *Queries) GetServiceCertificateOrderByCSR(ctx context.Context, arg GetServiceCertificateOrderByCSRParams) (ControlAcmeOrder, error)

func (*Queries) GetServiceConfiguration

func (q *Queries) GetServiceConfiguration(ctx context.Context, serviceID string) (GetServiceConfigurationRow, error)

local normalization uses the logical service key, not its generated saved name.

func (*Queries) GetServiceRunPublisherIdentity

func (q *Queries) GetServiceRunPublisherIdentity(ctx context.Context, arg GetServiceRunPublisherIdentityParams) ([]byte, error)

starting a run requires its exact authenticated publisher, grant and key.

func (*Queries) GetServiceSource

func (q *Queries) GetServiceSource(ctx context.Context, serviceID pgtype.Text) (GetServiceSourceRow, error)

func (*Queries) GetShare

func (q *Queries) GetShare(ctx context.Context, id string) (ControlShare, error)

func (*Queries) GetTeamActorContext

func (q *Queries) GetTeamActorContext(ctx context.Context, arg GetTeamActorContextParams) (GetTeamActorContextRow, error)

func (*Queries) GetTeamMembershipContext

func (*Queries) GetTeamNaming

func (q *Queries) GetTeamNaming(ctx context.Context, teamID string) (GetTeamNamingRow, error)

func (*Queries) GetVisitorParentSession

func (q *Queries) GetVisitorParentSession(ctx context.Context, id string) (ControlControlSession, error)

func (*Queries) GetVisitorPolicyRevision

func (q *Queries) GetVisitorPolicyRevision(ctx context.Context, teamID string) (int64, error)

func (*Queries) GetWorkloadSession

func (q *Queries) GetWorkloadSession(ctx context.Context, id string) (ControlWorkloadSession, error)

func (*Queries) GuestForService

func (q *Queries) GuestForService(ctx context.Context, serviceID string) (pgtype.Text, error)

func (*Queries) GuestNamespaceReserved

func (q *Queries) GuestNamespaceReserved(ctx context.Context, label string) (bool, error)

func (*Queries) GuestOwnsService

func (q *Queries) GuestOwnsService(ctx context.Context, arg GuestOwnsServiceParams) (bool, error)

func (*Queries) GuestRunAllowanceSpent

func (q *Queries) GuestRunAllowanceSpent(ctx context.Context, arg GuestRunAllowanceSpentParams) (string, error)

func (*Queries) GuestServiceServingDeadline

func (q *Queries) GuestServiceServingDeadline(ctx context.Context, arg GuestServiceServingDeadlineParams) (pgtype.Timestamptz, error)

preparation observations do not grant visitor permission or spend ready time.

func (*Queries) HasRetainedConnectorPeerPair

func (q *Queries) HasRetainedConnectorPeerPair(ctx context.Context, arg HasRetainedConnectorPeerPairParams) (bool, error)

the exact run token grants negative reads only while an existing window remains.

func (*Queries) HasTeamMembershipHistory

func (q *Queries) HasTeamMembershipHistory(ctx context.Context, arg HasTeamMembershipHistoryParams) (bool, error)

func (*Queries) HasVisitorPolicyRegisteredKeyCandidates

func (q *Queries) HasVisitorPolicyRegisteredKeyCandidates(ctx context.Context, serviceID string) (bool, error)

func (*Queries) IngressRegistrationDrainExpired

func (q *Queries) IngressRegistrationDrainExpired(ctx context.Context, arg IngressRegistrationDrainExpiredParams) (bool, error)

a refused upsert retains the lease row lock. distinguish only its expired same-run drain from configuration conflicts and another live process.

func (*Queries) InitializeConnectorPeerSession

func (q *Queries) InitializeConnectorPeerSession(ctx context.Context, arg InitializeConnectorPeerSessionParams) (ControlConnectorPeerPair, error)

func (*Queries) InsertAdminAuditEvent

func (q *Queries) InsertAdminAuditEvent(ctx context.Context, arg InsertAdminAuditEventParams) error

func (*Queries) InsertCertificateIssuanceAuditEvent

func (q *Queries) InsertCertificateIssuanceAuditEvent(ctx context.Context, arg InsertCertificateIssuanceAuditEventParams) error

func (*Queries) InsertCompanyAccessAudit

func (q *Queries) InsertCompanyAccessAudit(ctx context.Context, arg InsertCompanyAccessAuditParams) error

func (*Queries) InsertCompanySessionContext

func (q *Queries) InsertCompanySessionContext(ctx context.Context, arg InsertCompanySessionContextParams) error

func (*Queries) InsertConnectorPeerPair

func (q *Queries) InsertConnectorPeerPair(ctx context.Context, arg InsertConnectorPeerPairParams) (ControlConnectorPeerPair, error)

func (*Queries) InsertConnectorPeerPendingBinding

the following positive statements replace the operation owners' inline SQL after normal generation. storage guards fence those inline writers meanwhile.

func (*Queries) InsertDeviceLogin

func (q *Queries) InsertDeviceLogin(ctx context.Context, arg InsertDeviceLoginParams) (int64, error)

func (*Queries) InsertGuestTrial

func (q *Queries) InsertGuestTrial(ctx context.Context, arg InsertGuestTrialParams) (ControlGuestTrial, error)

func (*Queries) InsertPublisherAccess

func (q *Queries) InsertPublisherAccess(ctx context.Context, arg InsertPublisherAccessParams) error

func (*Queries) InsertPublisherAllocation

func (q *Queries) InsertPublisherAllocation(ctx context.Context, arg InsertPublisherAllocationParams) error

func (*Queries) InsertPublisherEnrollment

func (q *Queries) InsertPublisherEnrollment(ctx context.Context, arg InsertPublisherEnrollmentParams) (ControlPublisherEnrollment, error)

func (*Queries) InsertPublisherGrant

func (q *Queries) InsertPublisherGrant(ctx context.Context, arg InsertPublisherGrantParams) (ControlPublisherGrant, error)

func (*Queries) InsertPublisherIdentity

func (q *Queries) InsertPublisherIdentity(ctx context.Context, arg InsertPublisherIdentityParams) (ControlPublisherIdentity, error)

func (*Queries) InsertPublisherKey

func (q *Queries) InsertPublisherKey(ctx context.Context, arg InsertPublisherKeyParams) error

func (*Queries) InsertService

func (q *Queries) InsertService(ctx context.Context, arg InsertServiceParams) (ControlService, error)

func (*Queries) InsertServiceAuditEvents

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

earlier owners are already locked in order. take the final owner's clock before allocating a cursor; the arrays have one element per event.

func (*Queries) InsertServiceCertificateOrder

func (q *Queries) InsertServiceCertificateOrder(ctx context.Context, arg InsertServiceCertificateOrderParams) (ControlAcmeOrder, error)

func (*Queries) InsertServiceCertificateRequest

func (q *Queries) InsertServiceCertificateRequest(ctx context.Context, arg InsertServiceCertificateRequestParams) error

func (*Queries) InsertServiceCreationRequest

func (q *Queries) InsertServiceCreationRequest(ctx context.Context, arg InsertServiceCreationRequestParams) error

func (*Queries) InsertServiceGrant

func (q *Queries) InsertServiceGrant(ctx context.Context, arg InsertServiceGrantParams) (ControlVisitorGrant, error)

func (*Queries) InsertServiceHTTPBrowserHandoff

func (q *Queries) InsertServiceHTTPBrowserHandoff(ctx context.Context, arg InsertServiceHTTPBrowserHandoffParams) error

func (*Queries) InsertServiceHTTPBrowserLogin

func (q *Queries) InsertServiceHTTPBrowserLogin(ctx context.Context, arg InsertServiceHTTPBrowserLoginParams) error

func (*Queries) InsertServiceHTTPBrowserSession

func (q *Queries) InsertServiceHTTPBrowserSession(ctx context.Context, arg InsertServiceHTTPBrowserSessionParams) error

func (*Queries) InsertServiceHTTPGrant

func (q *Queries) InsertServiceHTTPGrant(ctx context.Context, arg InsertServiceHTTPGrantParams) error

func (*Queries) InsertServiceInvitation

func (q *Queries) InsertServiceInvitation(ctx context.Context, arg InsertServiceInvitationParams) (ControlServiceInvitation, error)

func (*Queries) InsertShareCookie

func (q *Queries) InsertShareCookie(ctx context.Context, arg InsertShareCookieParams) ([]byte, error)

func (*Queries) InsertShareHandoff

func (q *Queries) InsertShareHandoff(ctx context.Context, arg InsertShareHandoffParams) ([]byte, error)

func (*Queries) InvalidateDeploymentPublisherRuntimeHealth

func (q *Queries) InvalidateDeploymentPublisherRuntimeHealth(ctx context.Context, publisherIdentityID string) error

func (*Queries) LimitConnectorPeerPair

func (q *Queries) LimitConnectorPeerPair(ctx context.Context, arg LimitConnectorPeerPairParams) (ControlConnectorPeerPair, error)

an uncertain delivery retry may only shorten the existing deadline.

func (*Queries) LimitConnectorPeerPendingForClaim

func (q *Queries) LimitConnectorPeerPendingForClaim(ctx context.Context, arg LimitConnectorPeerPendingForClaimParams) (int64, error)

func (*Queries) LimitConnectorPeerPreparedForClaim

func (q *Queries) LimitConnectorPeerPreparedForClaim(ctx context.Context, arg LimitConnectorPeerPreparedForClaimParams) error

a fresh claim may shorten a prior installation, never silently grow it.

func (*Queries) LimitGuestServiceRunExpiry

func (q *Queries) LimitGuestServiceRunExpiry(ctx context.Context, arg LimitGuestServiceRunExpiryParams) (ControlServiceRun, error)

func (*Queries) ListACMEOrderAuthorizations

func (q *Queries) ListACMEOrderAuthorizations(ctx context.Context, issuanceID string) ([]ControlAcmeAuthorization, error)

func (*Queries) ListAdminRelayLeases

func (q *Queries) ListAdminRelayLeases(ctx context.Context, arg ListAdminRelayLeasesParams) ([]ListAdminRelayLeasesRow, error)

func (*Queries) ListAppliedProjectServices

func (q *Queries) ListAppliedProjectServices(ctx context.Context, arg ListAppliedProjectServicesParams) ([]ControlAppliedProjectService, error)

func (*Queries) ListAuthorizedDeployments

func (q *Queries) ListAuthorizedDeployments(ctx context.Context, arg ListAuthorizedDeploymentsParams) ([]ControlDeployment, error)

func (*Queries) ListAvailableServices

func (q *Queries) ListAvailableServices(ctx context.Context, arg ListAvailableServicesParams) ([]ListAvailableServicesRow, error)

connector candidates already have native identity permission. public HTTP candidates are authorized by the existing HTTP permission owner before paging. keep offline services, bound each scan, and never select publisher-only trust.

func (*Queries) ListConnectorPeerPairCandidates

candidates convey no delivery authority. the publisher checks each delivery separately after the exact relay claims have been accepted.

func (*Queries) ListCurrentDomainNames

func (q *Queries) ListCurrentDomainNames(ctx context.Context) ([]string, error)

func (*Queries) ListDNSChallengePresentations

func (q *Queries) ListDNSChallengePresentations(ctx context.Context, baseIdentifier string) ([]ListDNSChallengePresentationsRow, error)

func (*Queries) ListDeploymentManagementDeployments

func (q *Queries) ListDeploymentManagementDeployments(ctx context.Context, grantID string) ([]string, error)

func (*Queries) ListDeploymentManagementServices

func (q *Queries) ListDeploymentManagementServices(ctx context.Context, grantID string) ([]ControlDeploymentManagementService, error)

func (*Queries) ListDeploymentPublisherEnrollmentServices

func (q *Queries) ListDeploymentPublisherEnrollmentServices(ctx context.Context, enrollmentID string) ([]ControlDeploymentPublisherEnrollmentService, error)

func (*Queries) ListDeploymentPublisherIDs

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

func (*Queries) ListDeploymentPublisherServices

func (q *Queries) ListDeploymentPublisherServices(ctx context.Context, deploymentID string) ([]ControlAppliedProjectService, error)

func (*Queries) ListDeploymentServiceConfigurations

func (q *Queries) ListDeploymentServiceConfigurations(ctx context.Context, serviceIds []string) ([]ListDeploymentServiceConfigurationsRow, error)

func (*Queries) ListDeployments

func (q *Queries) ListDeployments(ctx context.Context, arg ListDeploymentsParams) ([]ControlDeployment, error)

func (*Queries) ListDiscoverablePreviews

func (q *Queries) ListDiscoverablePreviews(ctx context.Context, arg ListDiscoverablePreviewsParams) ([]ListDiscoverablePreviewsRow, error)

func (*Queries) ListDiscoverableProjects

func (q *Queries) ListDiscoverableProjects(ctx context.Context, arg ListDiscoverableProjectsParams) ([]ListDiscoverableProjectsRow, error)

func (*Queries) ListIdentityMembershipContexts

func (q *Queries) ListIdentityMembershipContexts(ctx context.Context, identityID string) ([]ListIdentityMembershipContextsRow, error)

func (*Queries) ListIdentityTeamDomains

func (q *Queries) ListIdentityTeamDomains(ctx context.Context, arg ListIdentityTeamDomainsParams) ([]ListIdentityTeamDomainsRow, error)

func (*Queries) ListIdentityTeams

func (q *Queries) ListIdentityTeams(ctx context.Context, identityID string) ([]ListIdentityTeamsRow, error)

func (*Queries) ListIngressServiceRelays

func (q *Queries) ListIngressServiceRelays(ctx context.Context, arg ListIngressServiceRelaysParams) ([]ListIngressServiceRelaysRow, error)

func (*Queries) ListIngressServiceRuns

func (q *Queries) ListIngressServiceRuns(ctx context.Context, arg ListIngressServiceRunsParams) ([]ListIngressServiceRunsRow, error)

only recompute permission and DNS for runs with changed inputs. membership eligibility may expire without changing a row or the grant's own deadline.

func (*Queries) ListLiveIngressRuns

func (q *Queries) ListLiveIngressRuns(ctx context.Context, arg ListLiveIngressRunsParams) ([]ListLiveIngressRunsRow, error)

heartbeat deadlines and signing input always come from the current snapshot.

func (*Queries) ListMaintenanceControls

func (q *Queries) ListMaintenanceControls(ctx context.Context) ([]ControlMaintenanceControl, error)

func (*Queries) ListOperatorNameserverHostnames

func (q *Queries) ListOperatorNameserverHostnames(ctx context.Context) ([]string, error)

func (*Queries) ListPreviewServices

func (q *Queries) ListPreviewServices(ctx context.Context, previewID string) ([]string, error)

func (*Queries) ListProjectDeployments

func (q *Queries) ListProjectDeployments(ctx context.Context, arg ListProjectDeploymentsParams) ([]ControlDeployment, error)

func (*Queries) ListProjectPublications

func (q *Queries) ListProjectPublications(ctx context.Context, arg ListProjectPublicationsParams) ([]ListProjectPublicationsRow, error)

one row per open publication, or one row for an idle/unrealized resource. worktree bytes are encoded so separators cannot alias another cursor key.

func (*Queries) ListPublisherCertificateCheckpoints

func (q *Queries) ListPublisherCertificateCheckpoints(ctx context.Context, publisherIdentityID string) ([][]byte, error)

func (*Queries) ListPublisherGrants

func (q *Queries) ListPublisherGrants(ctx context.Context, publisherIdentityID string) ([]ControlPublisherGrant, error)

func (*Queries) ListPublisherIdentities

func (q *Queries) ListPublisherIdentities(ctx context.Context, arg ListPublisherIdentitiesParams) ([]ControlPublisherIdentity, error)

func (*Queries) ListReadDependencyVersions

func (q *Queries) ListReadDependencyVersions(ctx context.Context, topic string) ([]ListReadDependencyVersionsRow, error)

func (*Queries) ListReadyShareServices

func (q *Queries) ListReadyShareServices(ctx context.Context, arg ListReadyShareServicesParams) ([]ListReadyShareServicesRow, error)

aggregate replica runs before building one redirect per service hostname.

func (*Queries) ListRelayDNSChallengePresentations

func (q *Queries) ListRelayDNSChallengePresentations(ctx context.Context, tlsServerName string) ([]ListRelayDNSChallengePresentationsRow, error)

func (*Queries) ListRelayServiceAssignmentTotals

func (q *Queries) ListRelayServiceAssignmentTotals(ctx context.Context) ([]ListRelayServiceAssignmentTotalsRow, error)

func (*Queries) ListServiceAuditEvents

func (q *Queries) ListServiceAuditEvents(ctx context.Context, arg ListServiceAuditEventsParams) ([]ControlServiceAuditEvent, error)

func (*Queries) ListServiceAuditEventsByID

func (q *Queries) ListServiceAuditEventsByID(ctx context.Context, eventIds []string) ([]ControlServiceAuditEvent, error)

func (*Queries) ListServiceAuditOwners

func (q *Queries) ListServiceAuditOwners(ctx context.Context, serviceIds []string) ([]ListServiceAuditOwnersRow, error)

func (*Queries) ListServiceConfigurations

func (q *Queries) ListServiceConfigurations(ctx context.Context, serviceIds []string) ([]ListServiceConfigurationsRow, error)

service_id is unique on each binding. join it once rather than planning an existence subquery for every row of a batch, including single-service reads.

func (*Queries) ListServiceConnectionSlots

func (q *Queries) ListServiceConnectionSlots(ctx context.Context, serviceRunID string) ([]ControlServiceConnectionSlot, error)

func (*Queries) ListServiceConnectionSlotsNeedingReplacement

replace expired never-ready claims even with a live relay lease. disabled services cannot accept their outstanding unclaimed assignments. ready slots retain ownership and streams while their matching lease is live.

func (*Queries) ListServiceGrants

func (q *Queries) ListServiceGrants(ctx context.Context, arg ListServiceGrantsParams) ([]ControlVisitorGrant, error)

func (*Queries) ListServiceHTTPGrants

func (q *Queries) ListServiceHTTPGrants(ctx context.Context, serviceID string) ([]ListServiceHTTPGrantsRow, error)

func (*Queries) ListServiceInvitations

func (q *Queries) ListServiceInvitations(ctx context.Context, arg ListServiceInvitationsParams) ([]ControlServiceInvitation, error)

func (*Queries) ListServiceReservationCandidates

func (q *Queries) ListServiceReservationCandidates(ctx context.Context, arg ListServiceReservationCandidatesParams) ([]ControlService, error)

current exact namespace authority is checked under the team guard before this bounded point selection; it is never an administrator inventory fallback.

func (*Queries) ListServicesForTeam

func (q *Queries) ListServicesForTeam(ctx context.Context, arg ListServicesForTeamParams) ([]ControlService, error)

func (*Queries) ListShareServices

func (q *Queries) ListShareServices(ctx context.Context, shareID string) ([]string, error)

func (*Queries) ListShares

func (q *Queries) ListShares(ctx context.Context, arg ListSharesParams) ([]ControlShare, error)

func (*Queries) ListTeamInvitations

func (q *Queries) ListTeamInvitations(ctx context.Context, teamID string) ([]ListTeamInvitationsRow, error)

func (*Queries) ListTeamMembershipContexts

func (q *Queries) ListTeamMembershipContexts(ctx context.Context, arg ListTeamMembershipContextsParams) ([]ListTeamMembershipContextsRow, error)

func (*Queries) ListTeamNamespaceLabels

func (q *Queries) ListTeamNamespaceLabels(ctx context.Context, teamID string) ([]ListTeamNamespaceLabelsRow, error)

invitations and quarantined memberships still own their reserved namespaces.

func (*Queries) ListTeamShares

func (q *Queries) ListTeamShares(ctx context.Context, arg ListTeamSharesParams) ([]ControlShare, error)

func (*Queries) ListWorkloadSessionServices

func (q *Queries) ListWorkloadSessionServices(ctx context.Context, workloadSessionID string) ([]ListWorkloadSessionServicesRow, error)

func (*Queries) LockACMEOrder

func (q *Queries) LockACMEOrder(ctx context.Context, issuanceID string) (ControlAcmeOrder, error)

func (*Queries) LockAppliedProject

func (q *Queries) LockAppliedProject(ctx context.Context, arg LockAppliedProjectParams) (ControlAppliedProject, error)

func (*Queries) LockCertificateIssuanceControl

func (q *Queries) LockCertificateIssuanceControl(ctx context.Context) (bool, error)

func (*Queries) LockCompanyLoginIntent

func (q *Queries) LockCompanyLoginIntent(ctx context.Context, id string) (ControlCompanyLoginIntent, error)

func (*Queries) LockConnectorPeerPairForLegClaim

func (q *Queries) LockConnectorPeerPairForLegClaim(ctx context.Context, id string) (ControlConnectorPeerPair, error)

func (*Queries) LockConnectorPeerRetirementGuest

func (q *Queries) LockConnectorPeerRetirementGuest(ctx context.Context, guestID string) (string, error)

func (*Queries) LockConnectorPeerRetirementTeam

func (q *Queries) LockConnectorPeerRetirementTeam(ctx context.Context, teamID string) (string, error)

use the existing owner guard without requiring current team authority.

func (*Queries) LockControlSessionByRefreshID

func (q *Queries) LockControlSessionByRefreshID(ctx context.Context, refreshTokenID string) (LockControlSessionByRefreshIDRow, error)

func (*Queries) LockDNSAuthority

func (q *Queries) LockDNSAuthority(ctx context.Context, authorityReference string) (ControlDnsAuthority, error)

func (*Queries) LockDNSAuthorityLocalDomain

func (q *Queries) LockDNSAuthorityLocalDomain(ctx context.Context, authorityReference pgtype.Text) error

func (*Queries) LockDNSAuthorityLocalTeam

func (q *Queries) LockDNSAuthorityLocalTeam(ctx context.Context, authorityReference pgtype.Text) error

func (*Queries) LockDeployment

func (q *Queries) LockDeployment(ctx context.Context, arg LockDeploymentParams) (ControlDeployment, error)

func (*Queries) LockDeploymentByID

func (q *Queries) LockDeploymentByID(ctx context.Context, id string) (ControlDeployment, error)

func (*Queries) LockDeploymentPublisherEnrollment

func (q *Queries) LockDeploymentPublisherEnrollment(ctx context.Context, id string) (ControlDeploymentPublisherEnrollment, error)

func (*Queries) LockDeviceLoginByCode

func (q *Queries) LockDeviceLoginByCode(ctx context.Context, userCode string) (ControlDeviceLogin, error)

func (*Queries) LockDeviceLoginByCredential

func (q *Queries) LockDeviceLoginByCredential(ctx context.Context, credentialDigest []byte) (ControlDeviceLogin, error)

func (*Queries) LockDeviceLoginByState

func (q *Queries) LockDeviceLoginByState(ctx context.Context, stateDigest []byte) (ControlDeviceLogin, error)

func (*Queries) LockDeviceLoginCapacity

func (q *Queries) LockDeviceLoginCapacity(ctx context.Context) error

func (*Queries) LockEligibleRelayLeases

func (q *Queries) LockEligibleRelayLeases(ctx context.Context, arg LockEligibleRelayLeasesParams) ([]LockEligibleRelayLeasesRow, error)

func (*Queries) LockGuestTrialByID

func (q *Queries) LockGuestTrialByID(ctx context.Context, id string) (ControlGuestTrial, error)

func (*Queries) LockIdentityBootstrap

func (q *Queries) LockIdentityBootstrap(ctx context.Context) error

func (*Queries) LockIdentityConnection

func (q *Queries) LockIdentityConnection(ctx context.Context, arg LockIdentityConnectionParams) (ControlIdentityConnection, error)

func (*Queries) LockIdentityForTeamCreation

func (q *Queries) LockIdentityForTeamCreation(ctx context.Context, identityID string) (LockIdentityForTeamCreationRow, error)

func (*Queries) LockIngressLease

func (q *Queries) LockIngressLease(ctx context.Context, arg LockIngressLeaseParams) (ControlIngressLease, error)

func (*Queries) LockIngressPoolForProvision

func (q *Queries) LockIngressPoolForProvision(ctx context.Context, id string) (ControlIngressPool, error)

func (*Queries) LockIngressPoolMembership

func (q *Queries) LockIngressPoolMembership(ctx context.Context, id string) error

registration and the final ready transition serialize membership, without taking ingress lease locks beneath the public URL/run locks.

func (*Queries) LockLocalTeamForMutation

func (q *Queries) LockLocalTeamForMutation(ctx context.Context, teamID string) (string, error)

local authority mutations lock the team before identities, memberships, domains, DNS authorities, and public URLs. recheck authorization under this transaction-held guard; hosted teams need no fabricated local rows. queue writers with publish run readers through the advisory lock: row-lock readers alone can bypass a waiting writer indefinitely.

func (*Queries) LockLocalTeamForSession

func (q *Queries) LockLocalTeamForSession(ctx context.Context, teamID string) (string, error)

publish run creation reads authority under this guard before locking its public URL. different public URLs may start together while team, role, or domain mutations wait. callers must not upgrade this guard by writing the team.

func (*Queries) LockMaintenanceControl

func (q *Queries) LockMaintenanceControl(ctx context.Context, operation string) (bool, error)

func (*Queries) LockManagedDomainForClaim

func (q *Queries) LockManagedDomainForClaim(ctx context.Context) (ControlDomain, error)

func (*Queries) LockPendingServiceInvitation

func (q *Queries) LockPendingServiceInvitation(ctx context.Context, arg LockPendingServiceInvitationParams) (ControlServiceInvitation, error)

func (*Queries) LockPreviewForTeamAccess

func (q *Queries) LockPreviewForTeamAccess(ctx context.Context, id string) (LockPreviewForTeamAccessRow, error)

func (*Queries) LockPublisherEnrollment

func (q *Queries) LockPublisherEnrollment(ctx context.Context, id string) (ControlPublisherEnrollment, error)

func (*Queries) LockPublisherIdentity

func (q *Queries) LockPublisherIdentity(ctx context.Context, id string) (ControlPublisherIdentity, error)

func (*Queries) LockRelayServiceForCertificate

func (q *Queries) LockRelayServiceForCertificate(ctx context.Context, relayServiceID string) (string, error)

func (*Queries) LockRelayServicesForPlacement

func (q *Queries) LockRelayServicesForPlacement(ctx context.Context, ids []string) ([]string, error)

func (*Queries) LockService

func (q *Queries) LockService(ctx context.Context, id string) (ControlService, error)

func (*Queries) LockServiceAuditClock

func (q *Queries) LockServiceAuditClock(ctx context.Context, arg LockServiceAuditClockParams) error

func (*Queries) LockServiceCertificateOrdersForConsumer

func (q *Queries) LockServiceCertificateOrdersForConsumer(ctx context.Context, serviceRunID string) ([]string, error)

run closure holds its parent first. lock shared orders in stable order before taking a fresh consumer snapshot, so concurrent final closes cannot miss both.

func (*Queries) LockServiceHTTPBrowserSession

func (q *Queries) LockServiceHTTPBrowserSession(ctx context.Context, tokenDigest []byte) ([]byte, error)

func (*Queries) LockServiceRecoveryEpisode

func (q *Queries) LockServiceRecoveryEpisode(ctx context.Context, id int64) (ControlServiceRecoveryEpisode, error)

func (*Queries) LockServiceRun

func (q *Queries) LockServiceRun(ctx context.Context, arg LockServiceRunParams) (ControlServiceRun, error)

func (*Queries) LockServiceRunFirstReadyEndpoint

func (q *Queries) LockServiceRunFirstReadyEndpoint(ctx context.Context, arg LockServiceRunFirstReadyEndpointParams) (string, error)

guest first readiness retains DNS publication through the clock transition.

func (*Queries) LockServiceRunsForClose

func (q *Queries) LockServiceRunsForClose(ctx context.Context, serviceID string) ([]ControlServiceRun, error)

func (*Queries) LockTeamActorContext

func (q *Queries) LockTeamActorContext(ctx context.Context, arg LockTeamActorContextParams) (LockTeamActorContextRow, error)

func (*Queries) LockTeamDomain

func (q *Queries) LockTeamDomain(ctx context.Context, arg LockTeamDomainParams) (LockTeamDomainRow, error)

func (*Queries) LockTeamForInvitationAcceptance

func (q *Queries) LockTeamForInvitationAcceptance(ctx context.Context, teamID string) (string, error)

func (*Queries) LockTeamInvitation

func (q *Queries) LockTeamInvitation(ctx context.Context, arg LockTeamInvitationParams) (LockTeamInvitationRow, error)

func (*Queries) LockTeamMembership

func (q *Queries) LockTeamMembership(ctx context.Context, arg LockTeamMembershipParams) (LockTeamMembershipRow, error)

func (*Queries) LockVisitorControlSession

func (q *Queries) LockVisitorControlSession(ctx context.Context, accessTokenID string) (ControlControlSession, error)

func (*Queries) LockVisitorIdentity

func (q *Queries) LockVisitorIdentity(ctx context.Context, id string) (ControlIdentity, error)

func (*Queries) LockVisitorTokenIssuer

func (q *Queries) LockVisitorTokenIssuer(ctx context.Context) (string, error)

func (*Queries) LockVisitorTokenSigningAuthority

func (q *Queries) LockVisitorTokenSigningAuthority(ctx context.Context) (ControlVisitorTokenKey, error)

func (*Queries) LockVisitorTokenSigningKey

func (q *Queries) LockVisitorTokenSigningKey(ctx context.Context) (ControlVisitorTokenKey, error)

func (*Queries) LockWorkloadSession

func (q *Queries) LockWorkloadSession(ctx context.Context, id string) (ControlWorkloadSession, error)

func (*Queries) LoginTeamRequiresCompany

func (q *Queries) LoginTeamRequiresCompany(ctx context.Context, id string) (bool, error)

func (*Queries) MarkACMEOrderInstalled

func (q *Queries) MarkACMEOrderInstalled(ctx context.Context, arg MarkACMEOrderInstalledParams) (ControlAcmeOrder, error)

func (*Queries) MarkCustomDomainReleasing

func (q *Queries) MarkCustomDomainReleasing(ctx context.Context, arg MarkCustomDomainReleasingParams) (int64, error)

func (*Queries) MarkDNSAuthorityReleasing

func (q *Queries) MarkDNSAuthorityReleasing(ctx context.Context, arg MarkDNSAuthorityReleasingParams) (int64, error)

func (*Queries) MarkGuestRunReady

func (q *Queries) MarkGuestRunReady(ctx context.Context, arg MarkGuestRunReadyParams) (int64, error)

func (*Queries) MarkInvitationExpired

func (q *Queries) MarkInvitationExpired(ctx context.Context, invitationID string) (int64, error)

func (*Queries) MarkSupersededRelayRunSigningKeys

func (q *Queries) MarkSupersededRelayRunSigningKeys(ctx context.Context, arg MarkSupersededRelayRunSigningKeysParams) error

registration holds the lease row lock until this update commits. a matching old run clears its supersession only after it has passed lease and key checks.

func (*Queries) ObserveAppliedProject

func (q *Queries) ObserveAppliedProject(ctx context.Context, arg ObserveAppliedProjectParams) (ControlAppliedProject, error)

func (*Queries) ObserveDeployment

func (q *Queries) ObserveDeployment(ctx context.Context, arg ObserveDeploymentParams) (ControlDeployment, error)

func (*Queries) ObserveIdentityBootstrap

func (q *Queries) ObserveIdentityBootstrap(ctx context.Context) error

func (*Queries) ObservePublisherEnrollmentService

func (q *Queries) ObservePublisherEnrollmentService(ctx context.Context, id string) (ControlService, error)

redemption checks the approved service but only writes the enrollment and the new publisher. serialize with service edits, not sibling observations.

func (*Queries) ObserveServiceRun

func (q *Queries) ObserveServiceRun(ctx context.Context, arg ObserveServiceRunParams) (ControlServiceRun, error)

func (*Queries) OpenServiceRecoveryEpisode

func (q *Queries) OpenServiceRecoveryEpisode(ctx context.Context, arg OpenServiceRecoveryEpisodeParams) error

func (*Queries) OtherPreviewForTeamAccess

func (q *Queries) OtherPreviewForTeamAccess(ctx context.Context, arg OtherPreviewForTeamAccessParams) (string, error)

func (*Queries) OtherTeamAccessForService

func (q *Queries) OtherTeamAccessForService(ctx context.Context, arg OtherTeamAccessForServiceParams) (string, error)

func (*Queries) PrepareConnectorPeerRebind

func (q *Queries) PrepareConnectorPeerRebind(ctx context.Context, arg PrepareConnectorPeerRebindParams) (int64, error)

func (*Queries) PrepareServiceRun

func (q *Queries) PrepareServiceRun(ctx context.Context, arg PrepareServiceRunParams) (ControlServiceRun, error)

caller locks the service, checks the live publisher grant and enrolled key, allocates one run number and captures its protocol and managed certificate plan. a retry with the same idempotency key returns the same prepared row. endpoint retirement does not revoke the saved connector identity. capture retained provenance only for this exact service, hostname and domain.

func (*Queries) PreviewInvitation

func (q *Queries) PreviewInvitation(ctx context.Context, arg PreviewInvitationParams) (PreviewInvitationRow, error)

func (*Queries) PrunePublisherAccess

func (q *Queries) PrunePublisherAccess(ctx context.Context, arg PrunePublisherAccessParams) error

func (*Queries) PrunePublisherAssertions

func (q *Queries) PrunePublisherAssertions(ctx context.Context, arg PrunePublisherAssertionsParams) error

func (*Queries) PublisherRuntimeActive

func (q *Queries) PublisherRuntimeActive(ctx context.Context, arg PublisherRuntimeActiveParams) (bool, error)

func (*Queries) PublisherScopeAvailable

func (q *Queries) PublisherScopeAvailable(ctx context.Context, arg PublisherScopeAvailableParams) (bool, error)

this read does not lock resources after identities. service run transactions lock their saved service first and recheck the grant.

func (*Queries) PutCompanyEligibility

func (q *Queries) PutCompanyEligibility(ctx context.Context, arg PutCompanyEligibilityParams) error

func (*Queries) QuarantineMemberSlug

func (q *Queries) QuarantineMemberSlug(ctx context.Context, arg QuarantineMemberSlugParams) (int64, error)

func (*Queries) ReadConnectorPeerClaimBounds

func (q *Queries) ReadConnectorPeerClaimBounds(ctx context.Context, pairID string) ([]ReadConnectorPeerClaimBoundsRow, error)

func (*Queries) ReadConnectorPeerObservationRelayBounds

relay leases are current-state recheck deadlines, not pair renewals.

func (*Queries) ReadConnectorPeerWatchVersions

func (q *Queries) ReadConnectorPeerWatchVersions(ctx context.Context, runIds []string) ([]ReadConnectorPeerWatchVersionsRow, error)

called only for scopes whose change records differ, in the same snapshot.

func (*Queries) ReadPlacementAssignmentTotals

func (q *Queries) ReadPlacementAssignmentTotals(ctx context.Context, ids []string) ([]ReadPlacementAssignmentTotalsRow, error)

func (*Queries) ReadPublisherGrant

func (q *Queries) ReadPublisherGrant(ctx context.Context, arg ReadPublisherGrantParams) (ControlPublisherGrant, error)

func (*Queries) ReadPublisherIdentity

func (q *Queries) ReadPublisherIdentity(ctx context.Context, id string) (ControlPublisherIdentity, error)

func (*Queries) ReadPublisherPolicyConfirmation

confirm only ordinary scopes without time-dependent parents. every check, including the change bookmark, uses one statement snapshot.

func (*Queries) ReadRegisteredKeyWatchVersion

func (q *Queries) ReadRegisteredKeyWatchVersion(ctx context.Context, serviceID string) (ReadRegisteredKeyWatchVersionRow, error)

an unbound service cannot gain a registered key from a change to another service's project. the binding counter survives removal and recreation.

func (*Queries) ReadRelayPlacementCandidates

func (q *Queries) ReadRelayPlacementCandidates(ctx context.Context, now pgtype.Timestamptz) ([]ReadRelayPlacementCandidatesRow, error)

a ranking hint only. recheck the selected services and leases under lock.

func (*Queries) ReadServiceIPKey

func (q *Queries) ReadServiceIPKey(ctx context.Context, arg ReadServiceIPKeyParams) (ReadServiceIPKeyRow, error)

func (*Queries) ReadVisitorPolicyEvents

func (q *Queries) ReadVisitorPolicyEvents(ctx context.Context, arg ReadVisitorPolicyEventsParams) ([]ReadVisitorPolicyEventsRow, error)

func (*Queries) ReadVisitorPolicyRevision

func (q *Queries) ReadVisitorPolicyRevision(ctx context.Context, resourceID string) (int64, error)

func (*Queries) ReadVisitorPolicyService

func (q *Queries) ReadVisitorPolicyService(ctx context.Context, id string) (ControlService, error)

func (*Queries) ReadVisitorTokenIssuer

func (q *Queries) ReadVisitorTokenIssuer(ctx context.Context) (string, error)

func (*Queries) ReadVisitorVerificationKeyRevision

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

func (*Queries) ReadyServiceBrowserHosts

func (q *Queries) ReadyServiceBrowserHosts(ctx context.Context, arg ReadyServiceBrowserHostsParams) ([]ReadyServiceBrowserHostsRow, error)

func (*Queries) ReadyServiceRun

func (q *Queries) ReadyServiceRun(ctx context.Context, arg ReadyServiceRunParams) (ControlServiceRun, error)

func (*Queries) RecentGuestTrialStats

func (q *Queries) RecentGuestTrialStats(ctx context.Context, since pgtype.Timestamptz) (RecentGuestTrialStatsRow, error)

func (*Queries) RedeemPublisherEnrollment

func (q *Queries) RedeemPublisherEnrollment(ctx context.Context, arg RedeemPublisherEnrollmentParams) error

func (*Queries) RegisterIngress

func (q *Queries) RegisterIngress(ctx context.Context, arg RegisterIngressParams) (ControlIngressLease, error)

func (*Queries) RegisterRelay

func (q *Queries) RegisterRelay(ctx context.Context, arg RegisterRelayParams) (RegisterRelayRow, error)

blocking relay-service operations take the transaction advisory guard before service and lease rows. row readers can bypass a waiting writer without this queue, starving registration, placement, or certificate updates. SKIP LOCKED certificate preparation and key rotation only take row locks; they must not wait for this guard while holding a row.

func (*Queries) ReleaseInvitedMemberSlug

func (q *Queries) ReleaseInvitedMemberSlug(ctx context.Context, arg ReleaseInvitedMemberSlugParams) (int64, error)

func (*Queries) RemoveProjectServiceDeclarations

func (q *Queries) RemoveProjectServiceDeclarations(ctx context.Context, arg RemoveProjectServiceDeclarationsParams) error

func (*Queries) RemoveTeamMembership

func (q *Queries) RemoveTeamMembership(ctx context.Context, arg RemoveTeamMembershipParams) (int64, error)

func (*Queries) RenewConnectorPeerPair

func (q *Queries) RenewConnectorPeerPair(ctx context.Context, arg RenewConnectorPeerPairParams) (ControlConnectorPeerPair, error)

only a fresh signed renewal after the last successful authorization can extend the same pair; an expired row never regains serving authority.

func (*Queries) RenewIngress

func (q *Queries) RenewIngress(ctx context.Context, arg RenewIngressParams) (ControlIngressLease, error)

func (*Queries) RenewPublisherRuntime

func (q *Queries) RenewPublisherRuntime(ctx context.Context, arg RenewPublisherRuntimeParams) (ControlPublisherRuntime, error)

func (*Queries) RenewRelay

func (q *Queries) RenewRelay(ctx context.Context, arg RenewRelayParams) (RenewRelayRow, error)

func (*Queries) RenewServiceRun

func (q *Queries) RenewServiceRun(ctx context.Context, arg RenewServiceRunParams) (ControlServiceRun, error)

func (*Queries) ReplaceConnectorPeerPair

func (q *Queries) ReplaceConnectorPeerPair(ctx context.Context, id string) (int64, error)

func (*Queries) ReserveInvitedMemberSlug

func (q *Queries) ReserveInvitedMemberSlug(ctx context.Context, arg ReserveInvitedMemberSlugParams) (string, error)

func (*Queries) ReserveManagedLabel

func (q *Queries) ReserveManagedLabel(ctx context.Context, arg ReserveManagedLabelParams) (string, error)

func (*Queries) ResolveLoginTeam

func (q *Queries) ResolveLoginTeam(ctx context.Context, selection string) (string, error)

func (*Queries) RetainVisitorTokenSigningKey

func (q *Queries) RetainVisitorTokenSigningKey(ctx context.Context, arg RetainVisitorTokenSigningKeyParams) (int64, error)

func (*Queries) RetireConnectorPeerAuditBindings

func (q *Queries) RetireConnectorPeerAuditBindings(ctx context.Context, arg RetireConnectorPeerAuditBindingsParams) (int64, error)

func (*Queries) RetireConnectorPeerPair

func (q *Queries) RetireConnectorPeerPair(ctx context.Context, arg RetireConnectorPeerPairParams) (ControlConnectorPeerPair, error)

the caller holds owner -> service -> run -> exact pair and verifies both proofs. terminal retries compare the stored digest; no upsert or deadline advance exists.

func (*Queries) RetirePublisherKey

func (q *Queries) RetirePublisherKey(ctx context.Context, arg RetirePublisherKeyParams) (int64, error)

func (*Queries) RetireUnusedServiceCertificateOrder

func (q *Queries) RetireUnusedServiceCertificateOrder(ctx context.Context, arg RetireUnusedServiceCertificateOrderParams) error

a captured, current plan is interest even before its sibling submits a CSR. publisher_service_permission remains the authority for service/grant/owner policy. serving_until is authority; shorter publisher liveness is not expiry.

func (*Queries) RetireVisitorTokenSigningKeys

func (q *Queries) RetireVisitorTokenSigningKeys(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) RevokeControlSession

func (q *Queries) RevokeControlSession(ctx context.Context, arg RevokeControlSessionParams) (int64, error)

func (*Queries) RevokeGuestShare

func (q *Queries) RevokeGuestShare(ctx context.Context, arg RevokeGuestShareParams) (ControlShare, error)

func (*Queries) RevokePublisherGrant

func (q *Queries) RevokePublisherGrant(ctx context.Context, arg RevokePublisherGrantParams) (int64, error)

func (*Queries) RevokePublisherIdentity

func (q *Queries) RevokePublisherIdentity(ctx context.Context, arg RevokePublisherIdentityParams) (int64, error)

func (*Queries) RevokeServiceGrant

func (q *Queries) RevokeServiceGrant(ctx context.Context, arg RevokeServiceGrantParams) (int64, error)

func (*Queries) RevokeServiceHTTPBrowserSession

func (q *Queries) RevokeServiceHTTPBrowserSession(ctx context.Context, arg RevokeServiceHTTPBrowserSessionParams) error

func (*Queries) RevokeServiceHTTPGrant

func (q *Queries) RevokeServiceHTTPGrant(ctx context.Context, arg RevokeServiceHTTPGrantParams) (int64, error)

func (*Queries) RevokeServiceInvitation

func (q *Queries) RevokeServiceInvitation(ctx context.Context, arg RevokeServiceInvitationParams) (int64, error)

func (*Queries) RevokeServiceInvitationGrant

func (q *Queries) RevokeServiceInvitationGrant(ctx context.Context, arg RevokeServiceInvitationGrantParams) (int64, error)

caller revokes invitation and accepted grant in the same transaction.

func (*Queries) RevokeShare

func (q *Queries) RevokeShare(ctx context.Context, arg RevokeShareParams) (ControlShare, error)

func (*Queries) RevokeTeamInvitation

func (q *Queries) RevokeTeamInvitation(ctx context.Context, arg RevokeTeamInvitationParams) (int64, error)

func (*Queries) RevokeVisitorTokenSigningKeys

func (q *Queries) RevokeVisitorTokenSigningKeys(ctx context.Context, now pgtype.Timestamptz) error

func (*Queries) RotateACMEAccountKey

func (q *Queries) RotateACMEAccountKey(ctx context.Context, arg RotateACMEAccountKeyParams) error

func (*Queries) RotateControlSessionCredentials

func (q *Queries) RotateControlSessionCredentials(ctx context.Context, arg RotateControlSessionCredentialsParams) (int64, error)

func (*Queries) RotateControlSessionRetrySecret

func (q *Queries) RotateControlSessionRetrySecret(ctx context.Context, arg RotateControlSessionRetrySecretParams) error

func (*Queries) RotateRelayCertificateOrderPrivateKey

func (q *Queries) RotateRelayCertificateOrderPrivateKey(ctx context.Context, arg RotateRelayCertificateOrderPrivateKeyParams) error

func (*Queries) RotateRelayServicePrivateKey

func (q *Queries) RotateRelayServicePrivateKey(ctx context.Context, arg RotateRelayServicePrivateKeyParams) error

func (*Queries) RotateServiceHTTPBrowserSession

func (q *Queries) RotateServiceHTTPBrowserSession(ctx context.Context, arg RotateServiceHTTPBrowserSessionParams) error

func (*Queries) SaveACMEAuthorizationWork

func (q *Queries) SaveACMEAuthorizationWork(ctx context.Context, arg SaveACMEAuthorizationWorkParams) (ControlAcmeAuthorization, error)

func (*Queries) SaveACMEOrderWork

func (q *Queries) SaveACMEOrderWork(ctx context.Context, arg SaveACMEOrderWorkParams) (ControlAcmeOrder, error)

func (*Queries) SaveConnectorPeerAuditBinding

func (q *Queries) SaveConnectorPeerAuditBinding(ctx context.Context, arg SaveConnectorPeerAuditBindingParams) (int64, error)

func (*Queries) SaveConnectorPeerPairLegClaim

func (q *Queries) SaveConnectorPeerPairLegClaim(ctx context.Context, arg SaveConnectorPeerPairLegClaimParams) (string, error)

two rows maximum per binding. an uncertain response requires a fresh proof from the same observed source and the same relay process, never the old nonce.

func (*Queries) SaveConnectorPeerPendingPublisherProof

func (q *Queries) SaveConnectorPeerPendingPublisherProof(ctx context.Context, arg SaveConnectorPeerPendingPublisherProofParams) (int64, error)

func (*Queries) SaveConnectorPeerPublisherProof

func (q *Queries) SaveConnectorPeerPublisherProof(ctx context.Context, arg SaveConnectorPeerPublisherProofParams) (int64, error)

func (*Queries) SaveDNSAuthorityWork

func (q *Queries) SaveDNSAuthorityWork(ctx context.Context, arg SaveDNSAuthorityWorkParams) (ControlDnsAuthority, error)

func (*Queries) SaveProjectServiceDeclaration

func (q *Queries) SaveProjectServiceDeclaration(ctx context.Context, arg SaveProjectServiceDeclarationParams) error

func (*Queries) SaveServiceEndpointDNSWork

func (q *Queries) SaveServiceEndpointDNSWork(ctx context.Context, arg SaveServiceEndpointDNSWorkParams) (ControlServiceEndpoint, error)

func (*Queries) SeedAdministrator

func (q *Queries) SeedAdministrator(ctx context.Context, arg SeedAdministratorParams) error

func (*Queries) SelectServiceForPublisher

func (q *Queries) SelectServiceForPublisher(ctx context.Context, arg SelectServiceForPublisherParams) (ControlService, error)

current permission covers the selected service using the original grant.

func (*Queries) ServiceHTTPPreviewTeamPermission

func (q *Queries) ServiceHTTPPreviewTeamPermission(ctx context.Context, arg ServiceHTTPPreviewTeamPermissionParams) (pgtype.Timestamptz, error)

func (*Queries) ServiceNamespaceOwnsHostname

func (q *Queries) ServiceNamespaceOwnsHostname(ctx context.Context, hostname string) (bool, error)

func (*Queries) ServicePortPoolCapacity

func (q *Queries) ServicePortPoolCapacity(ctx context.Context) ([]ServicePortPoolCapacityRow, error)

func (*Queries) ServicePublicEndpointBinding

func (q *Queries) ServicePublicEndpointBinding(ctx context.Context, visitorConnectionID string) (ServicePublicEndpointBindingRow, error)

func (*Queries) ServiceRunPublicEndpointReady

the caller holds the service lock and validates the run's preparation facts. use current DNS, relay, and ingress facts without authorizing visitor access.

func (*Queries) SetDNSReadyDomainDefault

func (q *Queries) SetDNSReadyDomainDefault(ctx context.Context, arg SetDNSReadyDomainDefaultParams) (int64, error)

func (*Queries) SetDomainAuthorityRevision

func (q *Queries) SetDomainAuthorityRevision(ctx context.Context, arg SetDomainAuthorityRevisionParams) error

func (*Queries) SetIdentityInitialTeam

func (q *Queries) SetIdentityInitialTeam(ctx context.Context, arg SetIdentityInitialTeamParams) error

func (*Queries) SetMaintenanceControl

func (q *Queries) SetMaintenanceControl(ctx context.Context, arg SetMaintenanceControlParams) (ControlMaintenanceControl, error)

func (*Queries) SetPersonalTeamDefaultDomain

func (q *Queries) SetPersonalTeamDefaultDomain(ctx context.Context, arg SetPersonalTeamDefaultDomainParams) error

func (*Queries) SetPreviewTeamAccess

func (q *Queries) SetPreviewTeamAccess(ctx context.Context, arg SetPreviewTeamAccessParams) error

func (*Queries) SetServiceConfiguration

func (q *Queries) SetServiceConfiguration(ctx context.Context, arg SetServiceConfigurationParams) (int64, error)

func (*Queries) SetServiceEnabled

func (q *Queries) SetServiceEnabled(ctx context.Context, arg SetServiceEnabledParams) (ControlService, error)

func (*Queries) SetTeamDefaultDomain

func (q *Queries) SetTeamDefaultDomain(ctx context.Context, arg SetTeamDefaultDomainParams) (int64, error)

func (*Queries) SetVisitorFeedbackPolicy

func (q *Queries) SetVisitorFeedbackPolicy(ctx context.Context, arg SetVisitorFeedbackPolicyParams) error

func (*Queries) StartPublisherRuntime

func (q *Queries) StartPublisherRuntime(ctx context.Context, arg StartPublisherRuntimeParams) (ControlPublisherRuntime, error)

func (*Queries) StopPublisherRuntime

func (q *Queries) StopPublisherRuntime(ctx context.Context, arg StopPublisherRuntimeParams) (ControlPublisherRuntime, error)

func (*Queries) StoreRelayTransportCertificate

func (q *Queries) StoreRelayTransportCertificate(ctx context.Context, arg StoreRelayTransportCertificateParams) (ControlRelayService, error)

func (*Queries) TeamMemberSlugReserved

func (q *Queries) TeamMemberSlugReserved(ctx context.Context, arg TeamMemberSlugReservedParams) (bool, error)

func (*Queries) TeamMembershipIdentityExists

func (q *Queries) TeamMembershipIdentityExists(ctx context.Context, arg TeamMembershipIdentityExistsParams) (bool, error)

func (*Queries) TeamSharedNameInUse

func (q *Queries) TeamSharedNameInUse(ctx context.Context, arg TeamSharedNameInUseParams) (bool, error)

func (*Queries) UpdateACMEAccountRegistration

func (q *Queries) UpdateACMEAccountRegistration(ctx context.Context, arg UpdateACMEAccountRegistrationParams) (ControlAcmeAccount, error)

func (*Queries) UpdateDeviceLogin

func (q *Queries) UpdateDeviceLogin(ctx context.Context, arg UpdateDeviceLoginParams) error

func (*Queries) UpdateGuestServingAuthority

func (q *Queries) UpdateGuestServingAuthority(ctx context.Context, arg UpdateGuestServingAuthorityParams) (pgtype.Timestamptz, error)

retain issued ready authority after closure so an offline owner cannot overlap its replacement. the run lock serializes readiness, heartbeat and settlement.

func (*Queries) UpdateMembershipRole

func (q *Queries) UpdateMembershipRole(ctx context.Context, arg UpdateMembershipRoleParams) (int64, error)

func (*Queries) UpdateOIDCIdentity

func (q *Queries) UpdateOIDCIdentity(ctx context.Context, arg UpdateOIDCIdentityParams) (ControlIdentity, error)

func (*Queries) UpdateServiceRecoveryHistogram

func (q *Queries) UpdateServiceRecoveryHistogram(ctx context.Context, arg UpdateServiceRecoveryHistogramParams) error

func (*Queries) UpsertDNSChallengeChange

func (q *Queries) UpsertDNSChallengeChange(ctx context.Context, arg UpsertDNSChallengeChangeParams) error

func (*Queries) ValidateServiceEndpointDNSWork

func (q *Queries) ValidateServiceEndpointDNSWork(ctx context.Context, arg ValidateServiceEndpointDNSWorkParams) (bool, error)

use the same publication candidate as claim, including first-ready guests.

func (*Queries) ValidateVerifiedCompanyProof

func (q *Queries) ValidateVerifiedCompanyProof(ctx context.Context, arg ValidateVerifiedCompanyProofParams) (bool, error)

func (*Queries) VisitorCurrentMembership

func (q *Queries) VisitorCurrentMembership(ctx context.Context, arg VisitorCurrentMembershipParams) (string, error)

func (*Queries) VisitorFeedbackPolicy

func (q *Queries) VisitorFeedbackPolicy(ctx context.Context, id string) (string, error)

func (*Queries) VisitorPermission

func (q *Queries) VisitorPermission(ctx context.Context, arg VisitorPermissionParams) (VisitorPermissionRow, error)

func (*Queries) VisitorTokenVerificationKeys

func (q *Queries) VisitorTokenVerificationKeys(ctx context.Context, now pgtype.Timestamptz) ([]VisitorTokenVerificationKeysRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type ReadConnectorPeerBindingClaimsParams

type ReadConnectorPeerBindingClaimsParams struct {
	PairID             string
	DeliveryGeneration int64
}

type ReadConnectorPeerClaimBoundsRow

type ReadConnectorPeerClaimBoundsRow struct {
	ConnectionSlot     int16
	CheckedAt          pgtype.Timestamptz
	ConfirmedUntil     pgtype.Timestamptz
	SourceDigest       string
	RelayID            string
	RelayRunID         string
	RelayLeaseRevision int64
}

type ReadConnectorPeerObservationRelayBoundsParams

type ReadConnectorPeerObservationRelayBoundsParams struct {
	ServiceRunID string
	ServiceID    string
	Now          pgtype.Timestamptz
}

type ReadConnectorPeerObservationRelayBoundsRow

type ReadConnectorPeerObservationRelayBoundsRow struct {
	ConnectionSlot int16
	ServingUntil   pgtype.Timestamptz
	RelayAddress   string
	TlsServerName  string
}

type ReadConnectorPeerWatchVersionsRow

type ReadConnectorPeerWatchVersionsRow struct {
	RunID          string
	RunBucket      int32
	ServiceBucket  int32
	Revision       int64
	PolicyBookmark string
}

type ReadPlacementAssignmentTotalsRow

type ReadPlacementAssignmentTotalsRow struct {
	RelayServiceID  string
	AssignmentCount int64
}

type ReadPublisherGrantParams

type ReadPublisherGrantParams struct {
	ID                  string
	PublisherIdentityID string
}

type ReadPublisherPolicyConfirmationParams

type ReadPublisherPolicyConfirmationParams struct {
	MaxUntil  pgtype.Timestamptz
	RunID     string
	ServiceID string
	RunNumber int64
}

type ReadPublisherPolicyConfirmationRow

type ReadPublisherPolicyConfirmationRow struct {
	Bookmark            string
	Issuer              string
	CertificateHostname string
	AliasHostname       string
	ValidUntil          pgtype.Timestamptz
}

type ReadRegisteredKeyWatchVersionRow

type ReadRegisteredKeyWatchVersionRow struct {
	BindingRevision int64
	ProjectRevision int64
	TeamRevision    int64
}

type ReadRelayPlacementCandidatesRow

type ReadRelayPlacementCandidatesRow struct {
	RelayServiceID string
	Region         string
	Capacity       int64
	Assignments    int64
}

type ReadServiceHTTPBrowserSessionParams

type ReadServiceHTTPBrowserSessionParams struct {
	CookieDigest []byte
	ExpiresAt    pgtype.Timestamptz
	ServiceID    string
	Hostname     string
}

type ReadServiceHTTPBrowserSessionRow

type ReadServiceHTTPBrowserSessionRow struct {
	TokenDigest            []byte
	ControlSessionID       string
	ParentControlSessionID pgtype.Text
	RefreshCiphertext      []byte
	StorageKeyID           string
	ExpiresAt              pgtype.Timestamptz
	RevokedAt              pgtype.Timestamptz
	IdentityID             string
	DisplayName            string
	AccessExpiresAt        pgtype.Timestamptz
	RefreshExpiresAt       pgtype.Timestamptz
	ParentRevokedAt        pgtype.Timestamptz
}

type ReadServiceIPKeyParams

type ReadServiceIPKeyParams struct {
	ServiceID string
	Purpose   string
}

type ReadServiceIPKeyRow

type ReadServiceIPKeyRow struct {
	KeyCiphertext []byte
	StorageKeyID  string
}

type ReadVisitorPolicyEventsParams

type ReadVisitorPolicyEventsParams struct {
	ResourceID    string
	AfterRevision int64
}

type ReadVisitorPolicyEventsRow

type ReadVisitorPolicyEventsRow struct {
	Revision  int64
	ChangedAt pgtype.Timestamptz
}

type ReadVisitorPolicyRegisteredKeysParams

type ReadVisitorPolicyRegisteredKeysParams struct {
	ServiceID string
	AtTime    pgtype.Timestamptz
}

type ReadVisitorPolicyRegisteredKeysRow

type ReadVisitorPolicyRegisteredKeysRow struct {
	GrantID   string
	KeyID     string
	PublicKey []byte
	ExpiresAt pgtype.Timestamptz
}

type ReadyServiceBrowserHostsParams

type ReadyServiceBrowserHostsParams struct {
	Now       pgtype.Timestamptz
	ServiceID string
	PreviewID string
}

type ReadyServiceBrowserHostsRow

type ReadyServiceBrowserHostsRow struct {
	ServiceID           string
	CertificateHostname string
	RunIds              []string
}

type ReadyServiceConnectionSlotParams

type ReadyServiceConnectionSlotParams struct {
	PublisherConnectionID        string
	ConnectionAssignmentRevision int64
	Now                          pgtype.Timestamptz
}

type ReadyServiceRunParams

type ReadyServiceRunParams struct {
	Now       pgtype.Timestamptz
	ID        string
	RunNumber int64
	ServiceID string
}

type RecentGuestTrialStatsRow

type RecentGuestTrialStatsRow struct {
	Issued     int64
	Allocated  int64
	Ready      int64
	Expired    int64
	ReadyLimit int64
}

type RedeemPublisherEnrollmentParams

type RedeemPublisherEnrollmentParams struct {
	IdentityID pgtype.Text
	KeyID      pgtype.Text
	GrantID    pgtype.Text
	PublicKey  []byte
	Now        pgtype.Timestamptz
	ID         string
}

type RedeemServiceHTTPBrowserHandoffParams

type RedeemServiceHTTPBrowserHandoffParams struct {
	Now          pgtype.Timestamptz
	TokenDigest  []byte
	ServiceID    string
	Hostname     string
	ServiceRunID string
}

type RedeemServiceHTTPBrowserHandoffRow

type RedeemServiceHTTPBrowserHandoffRow struct {
	SessionDigest    []byte
	CookieCiphertext []byte
	StorageKeyID     string
	ReturnPath       string
	RedirectUrl      string
	Bridge           bool
	ExpiresAt        pgtype.Timestamptz
}

type RegisterIngressParams

type RegisterIngressParams struct {
	Region             string
	IngressID          string
	IngressRunID       string
	ProtocolVersion    int64
	ConnectionCapacity int64
	IngressPoolID      string
	Https              bool
	ServicePortRanges  pgtype.Multirange[pgtype.Range[pgtype.Int4]]
	RegisteredAt       pgtype.Timestamptz
	RenewedAt          pgtype.Timestamptz
	LeaseExpiresAt     pgtype.Timestamptz
	ServingUntil       pgtype.Timestamptz
}

type RegisterRelayParams

type RegisterRelayParams struct {
	RelayServiceID       string
	Region               string
	RelayAddress         string
	TlsServerName        string
	RegisteredAt         pgtype.Timestamptz
	RelayID              string
	RelayRunID           string
	PeerSigningPublicKey []byte
	ProtocolVersion      int64
	InternalRelayAddress string
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
}

type RegisterRelayRow

type RegisterRelayRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type ReleaseInvitedMemberSlugParams

type ReleaseInvitedMemberSlugParams struct {
	ReleasedAt        pgtype.Timestamptz
	SlugReservationID string
}

type RemoveProjectServiceDeclarationsParams

type RemoveProjectServiceDeclarationsParams struct {
	TeamID     string
	ProjectKey string
	Names      []string
}

type RemoveTeamMembershipParams

type RemoveTeamMembershipParams struct {
	AuthorityRevision   int64
	RemovedAt           pgtype.Timestamptz
	RemovedByIdentityID pgtype.Text
	MembershipID        string
	TeamID              string
}

type RenewConnectorPeerPairParams

type RenewConnectorPeerPairParams struct {
	AuthorityExpiresAt pgtype.Timestamptz
	Now                pgtype.Timestamptz
	RequestAt          pgtype.Timestamptz
	RenewalDigest      []byte
	ID                 string
}

type RenewIngressParams

type RenewIngressParams struct {
	ReportedConnections  int64
	RenewedAt            pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	IngressID            string
	IngressRunID         string
	IngressLeaseRevision int64
}

type RenewPublisherRuntimeParams

type RenewPublisherRuntimeParams struct {
	AddressFamily       string
	Now                 pgtype.Timestamptz
	LeaseExpiresAt      pgtype.Timestamptz
	PublisherIdentityID string
	ProcessRunID        string
	Epoch               int64
}

type RenewRelayParams

type RenewRelayParams struct {
	ReportedConnections int64
	ReportedStreams     int64
	RenewedAt           pgtype.Timestamptz
	ServingUntil        pgtype.Timestamptz
	LeaseExpiresAt      pgtype.Timestamptz
	RelayServiceID      string
	RelayID             string
	RelayRunID          string
	RelayLeaseRevision  int64
}

type RenewRelayRow

type RenewRelayRow struct {
	Region               string
	PeerSigningPublicKey []byte
	ID                   int64
	RelayID              string
	RelayServiceID       string
	RelayRunID           string
	RelayLeaseRevision   int64
	ProtocolVersion      int64
	InternalRelayAddress string
	ObservedAddress      *netip.Addr
	InternalNetworks     []netip.Prefix
	ConnectionCapacity   int64
	StreamCapacity       int64
	ReportedConnections  int64
	ReportedStreams      int64
	Draining             bool
	DrainDeadline        pgtype.Timestamptz
	RegisteredAt         pgtype.Timestamptz
	RenewedAt            pgtype.Timestamptz
	LeaseExpiresAt       pgtype.Timestamptz
	ServingUntil         pgtype.Timestamptz
	RelayAddress         string
	TlsServerName        string
}

type RenewServiceRunParams

type RenewServiceRunParams struct {
	PublisherExpiresAt pgtype.Timestamptz
	Healthy            bool
	StreamCapacity     int32
	ReportedStreams    int32
	ServingObservedAt  pgtype.Timestamptz
	ServingUntil       pgtype.Timestamptz
	ID                 string
	RunNumber          int64
	ServiceID          string
	RunTokenDigest     []byte
	Now                pgtype.Timestamptz
}

type ReserveInvitedMemberSlugParams

type ReserveInvitedMemberSlugParams struct {
	ID                   string
	TeamID               string
	MemberSlug           string
	ReservedByIdentityID pgtype.Text
	CreatedAt            pgtype.Timestamptz
}

type ReserveManagedLabelParams

type ReserveManagedLabelParams struct {
	Label     string
	CreatedAt pgtype.Timestamptz
}

type RetainVisitorTokenSigningKeyParams

type RetainVisitorTokenSigningKeyParams struct {
	ExpiresAt pgtype.Timestamptz
	ID        string
}

type RetireConnectorPeerAuditBindingsParams

type RetireConnectorPeerAuditBindingsParams struct {
	Now    pgtype.Timestamptz
	PairID string
}

type RetireConnectorPeerPairParams

type RetireConnectorPeerPairParams struct {
	Now                 pgtype.Timestamptz
	RetireRequestDigest []byte
	ID                  string
	ServiceID           string
	ServiceRunID        string
	RunNumber           int64
	PublisherIdentityID string
	DeliveryID          []byte
	OwnerKey            string
}

type RetirePublisherKeyParams

type RetirePublisherKeyParams struct {
	Now pgtype.Timestamptz
	ID  string
}

type RetireUnusedServiceCertificateOrderParams

type RetireUnusedServiceCertificateOrderParams struct {
	Now        pgtype.Timestamptz
	IssuanceID string
}

type RevokeControlSessionParams

type RevokeControlSessionParams struct {
	RevokedAt pgtype.Timestamptz
	RevokedBy pgtype.Text
	ID        string
}

type RevokeGuestShareParams

type RevokeGuestShareParams struct {
	Now     pgtype.Timestamptz
	ShareID string
	GuestID pgtype.Text
}

type RevokePublisherGrantParams

type RevokePublisherGrantParams struct {
	Now                 pgtype.Timestamptz
	ID                  string
	PublisherIdentityID string
}

type RevokePublisherIdentityParams

type RevokePublisherIdentityParams struct {
	Now    pgtype.Timestamptz
	ID     string
	TeamID pgtype.Text
}

type RevokeServiceGrantParams

type RevokeServiceGrantParams struct {
	Now       pgtype.Timestamptz
	ID        string
	ServiceID pgtype.Text
}

type RevokeServiceHTTPBrowserSessionParams

type RevokeServiceHTTPBrowserSessionParams struct {
	Now          pgtype.Timestamptz
	CookieDigest []byte
	ServiceID    string
	Hostname     string
}

type RevokeServiceHTTPGrantParams

type RevokeServiceHTTPGrantParams struct {
	Now       pgtype.Timestamptz
	ID        string
	ServiceID string
}

type RevokeServiceInvitationGrantParams

type RevokeServiceInvitationGrantParams struct {
	Now          pgtype.Timestamptz
	InvitationID pgtype.Text
	ServiceID    pgtype.Text
}

type RevokeServiceInvitationParams

type RevokeServiceInvitationParams struct {
	Now       pgtype.Timestamptz
	ID        string
	ServiceID string
}

type RevokeShareParams

type RevokeShareParams struct {
	RevokedAt  pgtype.Timestamptz
	IdentityID string
	ShareID    string
}

type RevokeTeamInvitationParams

type RevokeTeamInvitationParams struct {
	RevokedAt    pgtype.Timestamptz
	IdentityID   pgtype.Text
	InvitationID string
}

type RotateACMEAccountKeyParams

type RotateACMEAccountKeyParams struct {
	AccountKeyCiphertext   []byte
	AccountKeyStorageKeyID string
	UpdatedAt              pgtype.Timestamptz
	AccountID              string
	PreviousKeyID          string
	PreviousCiphertext     []byte
}

type RotateControlSessionCredentialsParams

type RotateControlSessionCredentialsParams struct {
	AccessTokenID      string
	AccessTokenDigest  []byte
	AccessExpiresAt    pgtype.Timestamptz
	RefreshTokenID     string
	RefreshTokenDigest []byte
	RefreshedAt        pgtype.Timestamptz
	ID                 string
}

type RotateControlSessionRetrySecretParams

type RotateControlSessionRetrySecretParams struct {
	RetrySecretCiphertext   []byte
	RetrySecretStorageKeyID string
	ID                      string
	PreviousKeyID           string
	PreviousCiphertext      []byte
}

type RotateRelayCertificateOrderPrivateKeyParams

type RotateRelayCertificateOrderPrivateKeyParams struct {
	PrivateKeyCiphertext   []byte
	PrivateKeyStorageKeyID string
	UpdatedAt              pgtype.Timestamptz
	OrderID                string
	PreviousKeyID          string
	PreviousCiphertext     []byte
}

type RotateRelayServicePrivateKeyParams

type RotateRelayServicePrivateKeyParams struct {
	TransportPrivateKeyCiphertext   []byte
	TransportPrivateKeyStorageKeyID pgtype.Text
	UpdatedAt                       pgtype.Timestamptz
	RelayServiceID                  string
	PreviousKeyID                   pgtype.Text
	PreviousCiphertext              []byte
}

type RotateServiceHTTPBrowserSessionParams

type RotateServiceHTTPBrowserSessionParams struct {
	TokenDigest       []byte
	RefreshCiphertext []byte
	StorageKeyID      string
}

type SaveACMEAuthorizationWorkParams

type SaveACMEAuthorizationWorkParams struct {
	ID                            string
	OrderID                       string
	Identifier                    string
	AuthorizationUrl              string
	ChallengeType                 pgtype.Text
	ChallengeUrl                  pgtype.Text
	ChallengeToken                pgtype.Text
	ChallengeDigest               []byte
	PresentationReference         pgtype.Text
	State                         string
	AuthorizationRevision         int64
	Attempts                      int64
	AvailableAt                   pgtype.Timestamptz
	PresentedAt                   pgtype.Timestamptz
	ValidatedAt                   pgtype.Timestamptz
	CleanupCompletedAt            pgtype.Timestamptz
	ExpiresAt                     pgtype.Timestamptz
	LastError                     pgtype.Text
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	ExpectedAuthorizationRevision int64
}

type SaveACMEOrderWorkParams

type SaveACMEOrderWorkParams struct {
	State                 string
	OrderUrl              pgtype.Text
	FinalizeUrl           pgtype.Text
	FinalizationPossible  bool
	CertificateUrl        pgtype.Text
	CertificatePem        []byte
	NotBefore             pgtype.Timestamptz
	NotAfter              pgtype.Timestamptz
	RenewAt               pgtype.Timestamptz
	AvailableAt           pgtype.Timestamptz
	LastError             pgtype.Text
	CompletedAt           pgtype.Timestamptz
	IssuanceID            string
	WorkOwner             pgtype.Text
	WorkEpoch             int64
	ExpectedOrderRevision int64
}

type SaveConnectorPeerAuditBindingParams

type SaveConnectorPeerAuditBindingParams struct {
	PairID              string
	ServiceID           string
	ServiceRunID        string
	RunNumber           int64
	PublisherIdentityID string
	IdentityID          pgtype.Text
	DeviceID            pgtype.Text
	SourceDigest        string
	CreatedAt           pgtype.Timestamptz
	ExpiresAt           pgtype.Timestamptz
	DeliveryGeneration  int64
}

type SaveConnectorPeerPairLegClaimParams

type SaveConnectorPeerPairLegClaimParams struct {
	PairID             string
	ConnectionSlot     int16
	RequestedAt        pgtype.Timestamptz
	NonceDigest        []byte
	SourceDigest       string
	SourceCiphertext   []byte
	SourceStorageKeyID string
	RelayID            string
	RelayRunID         string
	RelayLeaseRevision int64
	CheckedAt          pgtype.Timestamptz
	ConfirmedUntil     pgtype.Timestamptz
	DeliveryGeneration int64
}

type SaveConnectorPeerPendingPublisherProofParams

type SaveConnectorPeerPendingPublisherProofParams struct {
	ProvedUntil pgtype.Timestamptz
	ProofDigest []byte
	PairID      string
}

type SaveConnectorPeerPublisherProofParams

type SaveConnectorPeerPublisherProofParams struct {
	ProvedUntil pgtype.Timestamptz
	ProofDigest []byte
	PairID      string
}

type SaveDNSAuthorityWorkParams

type SaveDNSAuthorityWorkParams struct {
	ProviderZoneID       pgtype.Text
	State                string
	Nameservers          []string
	ClaimProofVerifiedAt pgtype.Timestamptz
	AvailableAt          pgtype.Timestamptz
	LastError            pgtype.Text
	CompletedAt          pgtype.Timestamptz
	AuthorityReference   string
	WorkOwner            pgtype.Text
	WorkEpoch            int64
	ExpectedWorkRevision int64
}

type SaveProjectServiceDeclarationParams

type SaveProjectServiceDeclarationParams struct {
	TeamID     string
	ProjectKey string
	Name       string
	Protocol   string
}

type SaveRelayCertificateOrderWorkParams

type SaveRelayCertificateOrderWorkParams struct {
	State                  string
	OrderUrl               pgtype.Text
	FinalizeUrl            pgtype.Text
	CertificateUrl         pgtype.Text
	AuthorizationUrl       pgtype.Text
	AuthorizationExpiresAt pgtype.Timestamptz
	ChallengeUrl           pgtype.Text
	ChallengeToken         pgtype.Text
	ChallengeDigest        []byte
	PresentationReference  pgtype.Text
	CertificatePem         []byte
	NotBefore              pgtype.Timestamptz
	NotAfter               pgtype.Timestamptz
	RenewAt                pgtype.Timestamptz
	AvailableAt            pgtype.Timestamptz
	LastError              pgtype.Text
	CompletedAt            pgtype.Timestamptz
	OrderID                string
	WorkOwner              pgtype.Text
	WorkEpoch              int64
	ExpectedOrderRevision  int64
}

type SaveServiceEndpointDNSWorkParams

type SaveServiceEndpointDNSWorkParams struct {
	State       string
	AvailableAt pgtype.Timestamptz
	LastError   pgtype.Text
	Hostname    string
	ServiceID   string
	Revision    int64
	Worker      pgtype.Text
	Epoch       int64
	Now         pgtype.Timestamptz
}

type SeedAdministratorParams

type SeedAdministratorParams struct {
	IdentityID string
	SeedKey    string
	AppliedAt  pgtype.Timestamptz
}

type SelectServiceForPublisherParams

type SelectServiceForPublisherParams struct {
	ServiceID           string
	PublisherIdentityID string
	PublisherGrantID    string
	Now                 pgtype.Timestamptz
}

type ServiceHTTPBrowserEndpointParams

type ServiceHTTPBrowserEndpointParams struct {
	Hostname  string
	Now       pgtype.Timestamptz
	ServiceID string
}

type ServiceHTTPBrowserEndpointRow

type ServiceHTTPBrowserEndpointRow struct {
	TeamID              pgtype.Text
	GuestID             pgtype.Text
	CertificateHostname string
	ServicePort         pgtype.Int4
	RunIds              []string
}

type ServiceHTTPBrowserPermissionParams

type ServiceHTTPBrowserPermissionParams struct {
	CookieDigest []byte
	Now          pgtype.Timestamptz
	ServiceID    string
	Hostname     string
}

type ServiceHTTPBrowserPermissionRow

type ServiceHTTPBrowserPermissionRow struct {
	IdentityID       string
	ControlSessionID string
	DisplayName      string
	ExpiresAt        pgtype.Timestamptz
}

type ServiceHTTPPreviewTeamPermissionParams

type ServiceHTTPPreviewTeamPermissionParams struct {
	IdentityID       string
	ControlSessionID string
	Now              pgtype.Timestamptz
	ServiceID        string
}

type ServicePortPoolCapacityRow

type ServicePortPoolCapacityRow struct {
	IngressPoolID string
	Configured    int64
	Claimed       int64
	Quarantined   int64
	Available     int64
}

type ServicePublicEndpointBindingRow

type ServicePublicEndpointBindingRow struct {
	DestinationPort   int32
	IdentityID        pgtype.Text
	DeviceID          pgtype.Text
	WorkloadSessionID pgtype.Text
}

type ServiceRunPublicEndpointReadyParams

type ServiceRunPublicEndpointReadyParams struct {
	Hostname             string
	AliasHostname        string
	ServiceID            string
	DomainID             string
	IngressPoolID        string
	ServiceRunID         string
	Now                  pgtype.Timestamptz
	PrimaryIngressPoolID string
	Protocol             string
	ServicePort          int32
}

type ServiceRunPublicEndpointReadyRow

type ServiceRunPublicEndpointReadyRow struct {
	Canonical bool
	Alias     bool
}

type SetDNSReadyDomainDefaultParams

type SetDNSReadyDomainDefaultParams struct {
	UpdatedAt          pgtype.Timestamptz
	AuthorityReference pgtype.Text
}

type SetDomainAuthorityRevisionParams

type SetDomainAuthorityRevisionParams struct {
	AuthorityRevision  int64
	UpdatedAt          pgtype.Timestamptz
	AuthorityReference pgtype.Text
}

type SetIdentityInitialTeamParams

type SetIdentityInitialTeamParams struct {
	TeamID     pgtype.Text
	IdentityID string
}

type SetMaintenanceControlParams

type SetMaintenanceControlParams struct {
	Allowed     bool
	UpdatedAt   pgtype.Timestamptz
	UpdatedBy   string
	ControlName string
}

type SetPersonalTeamDefaultDomainParams

type SetPersonalTeamDefaultDomainParams struct {
	DomainID  pgtype.Text
	UpdatedAt pgtype.Timestamptz
	TeamID    string
}

type SetPreviewTeamAccessParams

type SetPreviewTeamAccessParams struct {
	Enabled   bool
	PreviewID string
}

type SetServiceConfigurationParams

type SetServiceConfigurationParams struct {
	Ciphertext   []byte
	StorageKeyID pgtype.Text
	ServiceID    string
}

type SetServiceEnabledParams

type SetServiceEnabledParams struct {
	Enabled bool
	Now     pgtype.Timestamptz
	ID      string
}

type SetTeamDefaultDomainParams

type SetTeamDefaultDomainParams struct {
	DomainID  pgtype.Text
	UpdatedAt pgtype.Timestamptz
	TeamID    string
}

type SetVisitorFeedbackPolicyParams

type SetVisitorFeedbackPolicyParams struct {
	ID              string
	FeedbackAuthors string
}

type StartPublisherRuntimeParams

type StartPublisherRuntimeParams struct {
	PublisherIdentityID       string
	TeamID                    string
	KeyID                     string
	ScopeID                   string
	ProcessRunID              string
	Epoch                     int64
	AddressFamily             string
	Now                       pgtype.Timestamptz
	LeaseExpiresAt            pgtype.Timestamptz
	DeploymentReport          []byte
	DeploymentID              pgtype.Text
	DeploymentFirstObservedAt pgtype.Timestamptz
}

type StopPublisherRuntimeParams

type StopPublisherRuntimeParams struct {
	Now                 pgtype.Timestamptz
	PublisherIdentityID string
	ProcessRunID        string
	Epoch               int64
}

type StoreRelayTransportCertificateParams

type StoreRelayTransportCertificateParams struct {
	TransportCertificatePem         pgtype.Text
	TransportPrivateKeyCiphertext   []byte
	TransportPrivateKeyStorageKeyID pgtype.Text
	TransportCertificateSerial      pgtype.Text
	TransportCertificateExpiresAt   pgtype.Timestamptz
	UpdatedAt                       pgtype.Timestamptz
	RelayServiceID                  string
	TlsServerName                   string
}

type TeamMemberSlugReservedParams

type TeamMemberSlugReservedParams struct {
	TeamID string
	Label  string
}

type TeamMembershipIdentityExistsParams

type TeamMembershipIdentityExistsParams struct {
	TeamID     string
	IdentityID string
}

type TeamSharedNameInUseParams

type TeamSharedNameInUseParams struct {
	TeamID pgtype.Text
	Label  string
}

type UpdateACMEAccountRegistrationParams

type UpdateACMEAccountRegistrationParams struct {
	ContactEmail     string
	AccountUrl       pgtype.Text
	AcceptedTermsUrl pgtype.Text
	UpdatedAt        pgtype.Timestamptz
	AccountID        string
}

type UpdateDeviceLoginParams

type UpdateDeviceLoginParams struct {
	Payload          []byte
	StorageKeyID     string
	StateDigest      []byte
	CredentialDigest []byte
}

type UpdateGuestServingAuthorityParams

type UpdateGuestServingAuthorityParams struct {
	ServiceRunID string
	Now          pgtype.Timestamptz
}

type UpdateLocalDomainForDNSAuthorityParams

type UpdateLocalDomainForDNSAuthorityParams struct {
	State              string
	UpdatedAt          pgtype.Timestamptz
	AuthorityReference pgtype.Text
}

type UpdateLocalDomainForDNSAuthorityRow

type UpdateLocalDomainForDNSAuthorityRow struct {
	ID                   string
	TeamID               pgtype.Text
	MakeDefaultWhenReady bool
}

type UpdateMembershipRoleParams

type UpdateMembershipRoleParams struct {
	Role              string
	AuthorityRevision int64
	UpdatedAt         pgtype.Timestamptz
	MembershipID      string
	TeamID            string
}

type UpdateOIDCIdentityParams

type UpdateOIDCIdentityParams struct {
	DisplayName     string
	NormalizedEmail pgtype.Text
	EmailVerified   bool
	UpdatedAt       pgtype.Timestamptz
	ID              string
}

type UpdateServiceRecoveryHistogramParams

type UpdateServiceRecoveryHistogramParams struct {
	ObservedSeconds float64
	UpdatedAt       pgtype.Timestamptz
}

type UpsertDNSChallengeChangeParams

type UpsertDNSChallengeChangeParams struct {
	ZoneID        string
	RecordName    string
	DesiredDigest []byte
	ChangeID      string
	UpdatedAt     pgtype.Timestamptz
}

type ValidateServiceEndpointDNSWorkParams

type ValidateServiceEndpointDNSWorkParams struct {
	Hostname  string
	ServiceID string
	Revision  int64
	Worker    string
	Epoch     int64
	Now       pgtype.Timestamptz
}

type ValidateVerifiedCompanyProofParams

type ValidateVerifiedCompanyProofParams struct {
	ConnectionID       string
	TeamID             string
	Issuer             string
	SourceID           string
	ConnectionRevision int64
	IdentityID         string
	Subject            string
	Now                pgtype.Timestamptz
}

type VisitorCurrentMembershipParams

type VisitorCurrentMembershipParams struct {
	TeamID     string
	IdentityID string
}

type VisitorPermissionParams

type VisitorPermissionParams struct {
	ResourceKind     string
	ResourceID       string
	IdentityID       string
	ControlSessionID string
	PreviewID        string
	Now              pgtype.Timestamptz
}

type VisitorPermissionRow

type VisitorPermissionRow struct {
	Reason    string
	ExpiresAt pgtype.Timestamptz
	GrantID   string
}

type VisitorTokenVerificationKeysRow

type VisitorTokenVerificationKeysRow struct {
	ID        string
	PublicKey []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL