dbgen

package
v0.0.0-...-5106b98 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbandonProjectRepositorySetupParams

type AbandonProjectRepositorySetupParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	SetupSlug   slug.Slug
	LeaseOwner  pgtype.Text
}

type AbandonProjectRepositorySetupRow

type AbandonProjectRepositorySetupRow struct {
	Slug        slug.Slug
	Request     []byte
	Result      []byte
	Status      string
	FailureCode string
	AbandonedAt pgtype.Timestamptz
}

type AbuseControlBucket

type AbuseControlBucket struct {
	Scope           string
	SubjectHash     []byte
	WindowStartedAt pgtype.Timestamptz
	AttemptCount    int64
}

type AcceptOrganizationMemberInvitationParams

type AcceptOrganizationMemberInvitationParams struct {
	AcceptedUserSlug pgtype.Text
	AcceptedAt       pgtype.Timestamp
	OrgSlug          pgtype.Text
	InvitationSlug   pgtype.Text
}

type AcceptOrganizationMemberInvitationRow

type AcceptOrganizationMemberInvitationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type AcceptPipelineCompletionSnapshotParams

type AcceptPipelineCompletionSnapshotParams struct {
	ChildRunSlug  pgtype.Text
	ExecutionArgs []byte
	OrgSlug       slug.Slug
	SnapshotID    int
}

type AcceptPipelineWebhookDeliveryParams

type AcceptPipelineWebhookDeliveryParams struct {
	ReceiverID               string
	DeliveryID               string
	PayloadDigest            string
	PayloadSizeBytes         int64
	KeyVersion               int32
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	RunSlug                  string
	EncryptedEnvelope        []byte
	EnvelopeExpiresAt        pgtype.Timestamptz
	ReceivedAt               pgtype.Timestamptz
}

type AcceptPipelineWebhookDeliveryRow

type AcceptPipelineWebhookDeliveryRow struct {
	PayloadDigest string
	RunSlug       string
	Status        string
	Inserted      bool
}

type AccountDeletionProcessingPendingParams

type AccountDeletionProcessingPendingParams struct {
	UserID   pgtype.Int4
	UserSlug string
}

type AccountDeletionRequest

type AccountDeletionRequest struct {
	ID          int
	Slug        slug.Slug
	UserID      pgtype.Int4
	State       string
	RequestedAt pgtype.Timestamptz
	CompletedAt pgtype.Timestamptz
	FailureCode pgtype.Text
}

type AcknowledgeNotificationRecordParams

type AcknowledgeNotificationRecordParams struct {
	OrgSlug        pgtype.Text
	RecordSlug     pgtype.Text
	AcknowledgedAt pgtype.Timestamptz
}

type AcknowledgeNotificationRecordRow

type AcknowledgeNotificationRecordRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ProjectSlug       string
	EnvironmentSlug   string
}

type ActivateGitLabProofWebhookParams

type ActivateGitLabProofWebhookParams struct {
	HookID           int64
	OrganizationSlug slug.Slug
	DataSourceSlug   slug.Slug
	RouteKeyHash     string
}

type ActiveProofCandidateMapping

type ActiveProofCandidateMapping struct {
	ID                   int64
	OrganizationID       int32
	ProjectID            int64
	ProjectEnvironmentID int64
	DataSourceID         int64
	Provider             string
	ProviderConnectionID string
	RepositoryID         string
	TargetRef            string
	PipelinePath         string
	CreatedAt            pgtype.Timestamptz
	DisabledAt           pgtype.Timestamptz
}

type AddGitHubAppRepositoryByProviderInstallationParams

type AddGitHubAppRepositoryByProviderInstallationParams struct {
	RepositoryID           int64
	FullName               string
	OwnerLogin             string
	Name                   string
	ProviderInstallationID int64
}

type AddPermissionToRoleParams

type AddPermissionToRoleParams struct {
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
	Resource pgtype.Text
	Action   pgtype.Text
}

type AlertDeliveryAttempt

type AlertDeliveryAttempt struct {
	ID                       int
	Slug                     slug.Slug
	NotificationRecordID     int64
	AlertPolicyID            pgtype.Int8
	DestinationID            pgtype.Int8
	DestinationType          string
	Status                   string
	ProviderAttempt          int32
	JobKind                  string
	JobQueue                 string
	JobState                 string
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	QueuedAt                 pgtype.Timestamptz
	SentAt                   pgtype.Timestamptz
	FailedAt                 pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	OrganizationID           int32
	DeliveryLeaseUntil       pgtype.Timestamptz
	RetryAfterAt             pgtype.Timestamptz
}

type AlertDestination

type AlertDestination struct {
	ID              int
	OrganizationID  int32
	Slug            slug.Slug
	Name            string
	Type            string
	NonSecretConfig []byte
	Enabled         bool
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type AlertPolicy

type AlertPolicy struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Name             string
	Scope            string
	ProjectID        pgtype.Int8
	EnvironmentID    pgtype.Int8
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceRef        pgtype.Text
	Enabled          bool
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	SourceAction     pgtype.Text
}

type AlertPolicyDestination

type AlertPolicyDestination struct {
	ID             int
	OrganizationID int32
	AlertPolicyID  int64
	DestinationID  int64
	CreatedAt      pgtype.Timestamptz
}

type ApiKey

type ApiKey struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Name              string
	Description       pgtype.Text
	TokenHash         string
	TokenPrefix       string
	CreatedByMemberID pgtype.Int4
	RoleID            int32
	ExpiresAt         pgtype.Timestamptz
	RevokedAt         pgtype.Timestamptz
	LastUsedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	CanManageApiKeys  bool
}

type AppendRetainedFileChunkParams

type AppendRetainedFileChunkParams struct {
	RequestID  pgtype.UUID
	ClaimToken pgtype.UUID
	OrgSlug    string
	Sequence   int32
	PlainBytes int32
	Ciphertext []byte
}

type AttachOrganizationGitLabConnectionParams

type AttachOrganizationGitLabConnectionParams struct {
	OrgSlug                slug.Slug
	DataSourceSlug         slug.Slug
	ExpectedRepositoryID   string
	ExpectedCredentialSlug slug.Slug
}

type AttemptAbuseControlParams

type AttemptAbuseControlParams struct {
	AttemptLimit  pgtype.Int4
	WindowSeconds pgtype.Float8
	Scope         pgtype.Text
	SubjectHash   []byte
}

type AttemptAbuseControlRow

type AttemptAbuseControlRow struct {
	Allowed bool
	ResetAt pgtype.Timestamptz
}

type BeginPipelineSinkEffectParams

type BeginPipelineSinkEffectParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	ReplayIdentity    string
	SinkStepSlug      string
	IdempotencyKey    string
	IdempotencyClass  string
	ReplayMethod      string
	ReplayDecision    string
	DiagnosticCode    pgtype.Text
	DiagnosticSummary pgtype.Text
}

type BeginPipelineSinkEffectRow

type BeginPipelineSinkEffectRow struct {
	ID                   int
	ProjectEnvironmentID int64
	RunSlug              string
	SinkStepSlug         string
	IdempotencyKey       string
	IdempotencyClass     string
	ReplayMethod         string
	ReplayDecision       string
	State                string
	DiagnosticCode       pgtype.Text
	DiagnosticSummary    pgtype.Text
	StartedAt            pgtype.Timestamptz
	SucceededAt          pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	Claimed              bool
}

type BeginRetainedFileParams

type BeginRetainedFileParams struct {
	RequestID  pgtype.UUID
	ClaimToken pgtype.UUID
	OrgSlug    string
	MaxBytes   int64
	ExpiresAt  pgtype.Timestamptz
}

type BindAlertPolicyDestinationParams

type BindAlertPolicyDestinationParams struct {
	OrgSlug         slug.Slug
	AlertPolicySlug slug.Slug
	DestinationSlug slug.Slug
}

type BindAlertPolicyDestinationRow

type BindAlertPolicyDestinationRow struct {
	PolicyExists      bool
	DestinationExists bool
	Inserted          bool
}

type BindExecutionRequestSourceParams

type BindExecutionRequestSourceParams struct {
	RequestID  pgtype.UUID
	OrgSlug    slug.Slug
	SourceSlug slug.Slug
}

type BindExecutionRequestUserParams

type BindExecutionRequestUserParams struct {
	RequestID pgtype.Text
	OrgSlug   pgtype.Text
	UserSlug  pgtype.Text
}

type BindPipelineRunWorkerJobParams

type BindPipelineRunWorkerJobParams struct {
	WorkerJobID     pgtype.Int8
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type BindProjectGitBranchProposalAuthorityParams

type BindProjectGitBranchProposalAuthorityParams struct {
	OrgSlug        slug.Slug
	ProjectSlug    slug.Slug
	DataSourceSlug slug.Slug
}

type BindProjectGitHubProposalAuthorityParams

type BindProjectGitHubProposalAuthorityParams struct {
	ExecutingPrincipalID      string
	ExecutingPrincipalDisplay string
	OrgSlug                   slug.Slug
	ProjectSlug               slug.Slug
	DataSourceSlug            slug.Slug
	CredentialSlug            slug.Slug
	ProviderAccountID         string
	ProviderCredentialID      string
	ProviderRepositoryID      string
}

type BootstrapIncrementalCheckpointParams

type BootstrapIncrementalCheckpointParams struct {
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	CheckpointKind      string
	DataSourceSlug      string
	OperationType       string
	OperationRef        pgtype.Text
	OperationInlineHash pgtype.Text
	OperationIdentity   string
	ObservedLowerBound  []byte
	ObservedUpperBound  []byte
	DisplayMetadata     []byte
	ObservedRunSlug     string
	CommittingRunSlug   pgtype.Text
	ObservedAt          pgtype.Timestamptz
	CommittedAt         pgtype.Timestamptz
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
	PipelineVersionID   int
}

type CancelObsoleteProofObservationJobsParams

type CancelObsoleteProofObservationJobsParams struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
}

type CancelObsoleteProofObservationJobsRow

type CancelObsoleteProofObservationJobsRow struct {
	Slug          slug.Slug
	RequestDigest string
}

type CancelProofObservationJobParams

type CancelProofObservationJobParams struct {
	OrgSlug slug.Slug
	JobSlug slug.Slug
}

type CheckConnectorDispatchParams

type CheckConnectorDispatchParams struct {
	RequestID           pgtype.UUID
	ExpectedClaimToken  pgtype.UUID
	OrganizationSlug    string
	DataSourceSlug      string
	DataSourceType      string
	ExpectedConfig      []byte
	CredentialSlug      pgtype.Text
	CredentialUpdatedAt pgtype.Timestamptz
	ReadOnly            bool
}

type ClaimConnectionDeliveryParams

type ClaimConnectionDeliveryParams struct {
	AttemptSlug     slug.Slug
	Now             pgtype.Timestamptz
	LeaseUntil      pgtype.Timestamptz
	RecordSlug      slug.Slug
	DestinationSlug slug.Slug
	AlertPolicySlug slug.Slug
	OrgSlug         slug.Slug
}

type ClaimConnectionDeliveryRow

type ClaimConnectionDeliveryRow struct {
	Slug               slug.Slug
	ProviderAttempt    int32
	Status             string
	JobState           string
	DeliveryLeaseUntil pgtype.Timestamptz
	RetryAfterAt       pgtype.Timestamptz
	Acquired           bool
}

type ClaimGitLabProofWebhookSetupParams

type ClaimGitLabProofWebhookSetupParams struct {
	ProjectID             int64
	HookID                int64
	RouteKeyHash          string
	EncryptedSigningToken []byte
	DataSourceSlug        slug.Slug
	OrganizationSlug      slug.Slug
}

type ClaimHTTPOAuthRefreshParams

type ClaimHTTPOAuthRefreshParams struct {
	ClaimID        string
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	CredentialSlug slug.Slug
	GrantUpdatedAt pgtype.Timestamptz
}

type ClaimProjectRepositorySetupParams

type ClaimProjectRepositorySetupParams struct {
	LeaseOwner  pgtype.Text
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	SetupSlug   slug.Slug
}

type ClaimProjectRepositorySetupRow

type ClaimProjectRepositorySetupRow struct {
	Slug        slug.Slug
	Request     []byte
	Result      []byte
	Status      string
	FailureCode string
	AbandonedAt pgtype.Timestamptz
}

type ClaimProofWebhookDeliveryParams

type ClaimProofWebhookDeliveryParams struct {
	Provider      string
	DeliveryID    string
	PayloadSha256 string
}

type ClaimScheduleFireParams

type ClaimScheduleFireParams struct {
	TriggerRevision int64
	ScheduledFireAt pgtype.Timestamptz
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	FireSlug        string
	ActualFireAt    pgtype.Timestamptz
	MisfireResult   string
}

type ClaimScheduleFireRow

type ClaimScheduleFireRow struct {
	Claimed  bool
	FireSlug pgtype.Text
}

type ClearAlertPolicyDestinationsParams

type ClearAlertPolicyDestinationsParams struct {
	OrgSlug    slug.Slug
	PolicySlug slug.Slug
}

type ClearProjectEnvironmentDefaultParams

type ClearProjectEnvironmentDefaultParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type ClearProjectPipelineBackendParams

type ClearProjectPipelineBackendParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type ClearRolePermissionsParams

type ClearRolePermissionsParams struct {
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
}

type CloseLatestProofChangeCandidateParams

type CloseLatestProofChangeCandidateParams struct {
	OrgSlug         slug.Slug
	MappingID       int64
	ChangeRequestID string
	HeadSha         string
}

type CompletePipelineDraftPublishParams

type CompletePipelineDraftPublishParams struct {
	OrgSlug               pgtype.Text
	ProjectSlug           pgtype.Text
	PipelineSlug          pgtype.Text
	MemberSlug            pgtype.Text
	DraftState            pgtype.Text
	BranchName            pgtype.Text
	BranchHeadSha         pgtype.Text
	ProposalProvider      pgtype.Text
	ProposalID            pgtype.Text
	ProposalUrl           pgtype.Text
	ProposalState         pgtype.Text
	LastProposedDraftHash pgtype.Text
	PublishAttemptID      pgtype.Text
}

type CompletePipelineDraftPublishRow

type CompletePipelineDraftPublishRow struct {
	DraftExists bool
	Updated     bool
}

type CompletePipelineRunParams

type CompletePipelineRunParams struct {
	PipelineVersionID          pgtype.Int8
	DeploymentID               pgtype.Int8
	DeploymentRevision         pgtype.Int8
	DeploymentResolutionDigest pgtype.Text
	Status                     string
	DurationMs                 int64
	StepCount                  int32
	StepSlug                   string
	ErrorSummary               pgtype.Text
	FailureKind                pgtype.Text
	FailureSide                pgtype.Text
	StartedAt                  pgtype.Timestamptz
	EndedAt                    pgtype.Timestamptz
	ReplayOfRunSlug            pgtype.Text
	ReplayFromStep             pgtype.Text
	RunMode                    string
	CheckpointStatus           string
	IncrementalSourceStepSlug  pgtype.Text
	IncrementalBlockedReason   pgtype.Text
	ReplaySafetyStatus         pgtype.Text
	ReplayBlockedReason        pgtype.Text
	BackfillSeriesSlug         pgtype.Text
	BackfillChunkIndex         int32
	BackfillChunkCount         int32
	IncrementalDiagnostics     []byte
	Timeline                   []byte
	OrgSlug                    slug.Slug
	ProjectSlug                slug.Slug
	EnvironmentSlug            slug.Slug
	PipelineSlug               string
	RunSlug                    string
}

type CompletePipelineRunRow

type CompletePipelineRunRow struct {
	PipelineRun   PipelineRun
	SourceWebhook []byte
}

type CompletePipelineWebhookDeliveryParams

type CompletePipelineWebhookDeliveryParams struct {
	Status         string
	FailureKind    pgtype.Text
	DecisionReason pgtype.Text
	CompletedAt    pgtype.Timestamptz
	ReceiverID     string
	DeliveryID     string
	AttemptNumber  int32
}

type CompleteScheduleFireParams

type CompleteScheduleFireParams struct {
	Status          string
	RunSlug         pgtype.Text
	SourceEventSlug pgtype.Text
	ErrorSummary    pgtype.Text
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	TriggerRevision int64
	ScheduledFireAt pgtype.Timestamptz
}

type CompleteTriggerRetryAttemptParams

type CompleteTriggerRetryAttemptParams struct {
	Status          string
	SourceEventSlug pgtype.Text
	ErrorSummary    pgtype.Text
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	AttemptSlug     string
}

type ConsumeOAuthInstallParams

type ConsumeOAuthInstallParams struct {
	ConsumedAt pgtype.Timestamptz
	Provider   string
	StateHash  string
}

type ConsumeOAuthInstallRow

type ConsumeOAuthInstallRow struct {
	ID                         int
	OrganizationID             int32
	DataSourceID               pgtype.Int8
	Slug                       slug.Slug
	Provider                   string
	StateHash                  string
	EncryptedPkceVerifier      []byte
	Intent                     string
	ExpectedCredentialSlug     string
	ExpectedCredentialStatus   string
	ExpectedSourceRevision     pgtype.Int8
	RepositorySetupSlug        pgtype.Text
	RepositorySetupProjectSlug pgtype.Text
	ActorType                  string
	ActorSlug                  pgtype.Text
	RequestedScopes            []string
	ExpiresAt                  pgtype.Timestamptz
	ConsumedAt                 pgtype.Timestamptz
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	OrgSlug                    string
	DataSourceSlug             string
	OrganizationOwned          bool
	NotificationConnectionSlug string
	StateStatus                string
}

type CountOrganizationMembersByRoleParams

type CountOrganizationMembersByRoleParams struct {
	OrgSlug  slug.Slug
	RoleSlug slug.Slug
}

type CreateAPIKeyParams

type CreateAPIKeyParams struct {
	ApiKeySlug        slug.Slug
	Name              string
	Description       pgtype.Text
	TokenHash         string
	TokenPrefix       string
	CreatedByUserSlug slug.Slug
	ExpiresAt         pgtype.Timestamptz
	CanManageApiKeys  bool
	OrgSlug           slug.Slug
	RoleSlug          slug.Slug
}

type CreateAccountDeletionRequestParams

type CreateAccountDeletionRequestParams struct {
	RequestSlug slug.Slug
	UserID      pgtype.Int4
}

type CreateAlertDeliveryAttemptParams

type CreateAlertDeliveryAttemptParams struct {
	OrgSlug                  pgtype.Text
	RecordSlug               pgtype.Text
	AlertPolicySlug          pgtype.Text
	DestinationSlug          pgtype.Text
	Slug                     pgtype.Text
	DestinationType          pgtype.Text
	Status                   pgtype.Text
	ProviderAttempt          pgtype.Int4
	JobKind                  pgtype.Text
	JobQueue                 pgtype.Text
	JobState                 pgtype.Text
	ProviderResponseMetadata []byte
	QueuedAt                 pgtype.Timestamptz
}

type CreateAlertDeliveryAttemptRow

type CreateAlertDeliveryAttemptRow struct {
	ID                       int
	Slug                     slug.Slug
	NotificationRecordID     int64
	AlertPolicyID            pgtype.Int8
	DestinationID            pgtype.Int8
	DestinationType          string
	Status                   string
	ProviderAttempt          int32
	JobKind                  string
	JobQueue                 string
	JobState                 string
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	QueuedAt                 pgtype.Timestamptz
	SentAt                   pgtype.Timestamptz
	FailedAt                 pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	OrganizationID           int32
	DeliveryLeaseUntil       pgtype.Timestamptz
	RetryAfterAt             pgtype.Timestamptz
	OrgSlug                  slug.Slug
	NotificationRecordSlug   slug.Slug
	AlertPolicySlug          string
	DestinationSlug          string
	DestinationName          string
}

type CreateAlertDestinationParams

type CreateAlertDestinationParams struct {
	Slug            slug.Slug
	Name            string
	Type            string
	NonSecretConfig []byte
	Enabled         bool
	OrgSlug         slug.Slug
}

type CreateAlertPolicyParams

type CreateAlertPolicyParams struct {
	Slug             pgtype.Text
	Name             pgtype.Text
	Scope            pgtype.Text
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceAction     pgtype.Text
	SourceRef        pgtype.Text
	Enabled          pgtype.Bool
	ProjectSlug      pgtype.Text
	EnvironmentSlug  pgtype.Text
	OrgSlug          pgtype.Text
}

type CreateAlertPolicyRow

type CreateAlertPolicyRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Name             string
	Scope            string
	ProjectID        pgtype.Int8
	EnvironmentID    pgtype.Int8
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceRef        pgtype.Text
	Enabled          bool
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	SourceAction     pgtype.Text
	ProjectSlug      string
	EnvironmentSlug  string
}

type CreateDataSourceParams

type CreateDataSourceParams struct {
	Name           string
	Slug           slug.Slug
	Type           string
	ConfigJson     []byte
	ReadOnly       bool
	OrgSlug        slug.Slug
	CredentialSlug slug.Slug
}

type CreateDataSourceRefParams

type CreateDataSourceRefParams struct {
	DataSourceRefSlug    slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	OrgSlug              slug.Slug
	ProjectSlug          slug.Slug
	PipelineSlug         slug.Slug
}

type CreateDataSourceRefRow

type CreateDataSourceRefRow struct {
	ID                   int
	Slug                 slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	PipelineSpecID       int64
	PipelineSlug         slug.Slug
}

type CreateDriftImpactReportParams

type CreateDriftImpactReportParams struct {
	Slug           slug.Slug
	ReportType     string
	Status         string
	Severity       string
	Summary        string
	Changes        []byte
	Impacts        []byte
	ProjectSlug    pgtype.Text
	PipelineSlug   pgtype.Text
	DataSourceSlug pgtype.Text
	OrgSlug        slug.Slug
}

type CreateEmailVerificationTokenParams

type CreateEmailVerificationTokenParams struct {
	EmailVerificationTokenHash      pgtype.Text
	EmailVerificationTokenExpiresAt pgtype.Timestamp
	Slug                            slug.Slug
}

type CreateEnvironmentParams

type CreateEnvironmentParams struct {
	EnvironmentSlug slug.Slug
	Name            string
	Description     pgtype.Text
	Color           string
	Protected       bool
	OrgSlug         slug.Slug
}

type CreateEventParams

type CreateEventParams struct {
	Slug          pgtype.Text
	EventClass    pgtype.Text
	ActorType     pgtype.Text
	ActorSlug     pgtype.Text
	EntityType    pgtype.Text
	EntitySlug    pgtype.Text
	Action        pgtype.Text
	OccurredAt    pgtype.Timestamptz
	RequestID     pgtype.Text
	SchemaVersion pgtype.Int4
	Metadata      []byte
	OrgSlug       pgtype.Text
}

type CreateGitHubAppInstallIntentParams

type CreateGitHubAppInstallIntentParams struct {
	ActorSlug             string
	StateHash             string
	ExpiresAt             pgtype.Timestamptz
	RepositorySetupSlug   pgtype.Text
	RequestedAccountLogin pgtype.Text
	OrganizationSlug      slug.Slug
}

type CreateInstanceAdminAuditParams

type CreateInstanceAdminAuditParams struct {
	TargetUserSlug string
	PreviousRole   string
	NewRole        string
}

type CreateNotificationConnectionOAuthGrantParams

type CreateNotificationConnectionOAuthGrantParams struct {
	OrgSlug                    slug.Slug
	NotificationConnectionSlug slug.Slug
	CredentialSlug             slug.Slug
	Status                     string
	Intent                     pgtype.Text
	Provider                   string
	EncryptedTokenSet          []byte
	AccessTokenExpiresAt       pgtype.Timestamptz
	Scopes                     []string
	Account                    []byte
	LastRefreshedAt            pgtype.Timestamptz
}

type CreateNotificationConnectionOAuthGrantRow

type CreateNotificationConnectionOAuthGrantRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type CreateNotificationConnectionOAuthInstallParams

type CreateNotificationConnectionOAuthInstallParams struct {
	InstallSlug                slug.Slug
	Provider                   string
	StateHash                  string
	Intent                     string
	ActorType                  string
	ActorSlug                  pgtype.Text
	RequestedScopes            []string
	ExpiresAt                  pgtype.Timestamptz
	OrgSlug                    slug.Slug
	NotificationConnectionSlug slug.Slug
}

type CreateNotificationConnectionParams

type CreateNotificationConnectionParams struct {
	CredentialSlug             pgtype.Text
	OrgSlug                    pgtype.Text
	NotificationConnectionSlug pgtype.Text
	Name                       pgtype.Text
	Provider                   pgtype.Text
}

type CreateNotificationConnectionRow

type CreateNotificationConnectionRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Kind             string
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
}

type CreateOAuthGrantParams

type CreateOAuthGrantParams struct {
	OrgSlug              slug.Slug
	DataSourceSlug       slug.Slug
	Intent               pgtype.Text
	CredentialSlug       slug.Slug
	Status               string
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
}

type CreateOAuthGrantRow

type CreateOAuthGrantRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type CreateOAuthInstallParams

type CreateOAuthInstallParams struct {
	InstallSlug           slug.Slug
	Provider              string
	StateHash             string
	EncryptedPkceVerifier []byte
	Intent                string
	ActorType             string
	ActorSlug             pgtype.Text
	RequestedScopes       []string
	ExpiresAt             pgtype.Timestamptz
	OrgSlug               slug.Slug
	DataSourceSlug        slug.Slug
}

type CreateOAuthInstallRow

type CreateOAuthInstallRow struct {
	ID                       int
	OrganizationID           int32
	DataSourceID             pgtype.Int8
	Slug                     slug.Slug
	Provider                 string
	StateHash                string
	EncryptedPkceVerifier    []byte
	Intent                   string
	ExpectedCredentialSlug   slug.Slug
	ExpectedCredentialStatus string
	ExpectedSourceRevision   pgtype.Int8
	ActorType                string
	ActorSlug                pgtype.Text
	RequestedScopes          []string
	ExpiresAt                pgtype.Timestamptz
	ConsumedAt               pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
}

type CreateODCSArtifactParams

type CreateODCSArtifactParams struct {
	RevisionSlug   string
	SourceRepo     string
	SourceCommit   string
	SourcePath     string
	Format         string
	ArtifactDigest string
	Original       []byte
	OrgSlug        slug.Slug
	ProjectSlug    slug.Slug
	ContractSlug   slug.Slug
}

type CreateODCSContractParams

type CreateODCSContractParams struct {
	ContractSlug slug.Slug
	Name         string
	OdcsID       string
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
}

type CreateODCSRevisionParams

type CreateODCSRevisionParams struct {
	RevisionSlug    slug.Slug
	Digest          string
	OdcsVersion     string
	DocumentVersion string
	DeclaredStatus  string
	Document        []byte
	SchemaObjects   []byte
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	ContractSlug    slug.Slug
}

type CreateOIDCUserParams

type CreateOIDCUserParams struct {
	Slug           slug.Slug
	Email          string
	FullName       string
	OidcProvider   string
	OidcProviderID pgtype.Text
	AvatarUrl      pgtype.Text
	Role           string
	VerifiedAt     pgtype.Timestamp
	Locale         string
}

type CreateOrganizationGitLabConnectionParams

type CreateOrganizationGitLabConnectionParams struct {
	CredentialSlug pgtype.Text
	OrgSlug        pgtype.Text
}

type CreateOrganizationGitLabConnectionRow

type CreateOrganizationGitLabConnectionRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Kind             string
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
}

type CreateOrganizationGitLabOAuthGrantParams

type CreateOrganizationGitLabOAuthGrantParams struct {
	OrgSlug              slug.Slug
	CredentialSlug       slug.Slug
	Status               string
	Intent               pgtype.Text
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
}

type CreateOrganizationGitLabOAuthGrantRow

type CreateOrganizationGitLabOAuthGrantRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type CreateOrganizationGitLabOAuthInstallParams

type CreateOrganizationGitLabOAuthInstallParams struct {
	InstallSlug                slug.Slug
	Provider                   string
	StateHash                  string
	Intent                     string
	ActorType                  string
	ActorSlug                  pgtype.Text
	RequestedScopes            []string
	ExpiresAt                  pgtype.Timestamptz
	RepositorySetupSlug        pgtype.Text
	RepositorySetupProjectSlug pgtype.Text
	OrgSlug                    slug.Slug
}

type CreateOrganizationMemberInvitationParams

type CreateOrganizationMemberInvitationParams struct {
	OrgSlug           pgtype.Text
	InvitationSlug    pgtype.Text
	Email             pgtype.Text
	RoleSlug          pgtype.Text
	InvitedByUserSlug pgtype.Text
	TokenHash         pgtype.Text
	ExpiresAt         pgtype.Timestamp
}

type CreateOrganizationMemberInvitationRow

type CreateOrganizationMemberInvitationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type CreateOrganizationMemberParams

type CreateOrganizationMemberParams struct {
	OrgSlug  pgtype.Text
	UserSlug pgtype.Text
	RoleSlug pgtype.Text
}

type CreateOrganizationMemberRow

type CreateOrganizationMemberRow struct {
	ID             int
	OrganizationID int32
	UserID         int32
	RoleID         int32
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	Email          string
}

type CreateOrganizationParams

type CreateOrganizationParams struct {
	Name string
	Slug slug.Slug
}

type CreateOrganizationRetentionRunParams

type CreateOrganizationRetentionRunParams struct {
	Slug                     slug.Slug
	SourceJobID              int64
	Attempt                  int32
	Status                   string
	PolicySnapshot           []byte
	QueryExecutionsDeleted   int64
	ReplayCheckpointsDeleted int64
	PipelineRunsDeleted      int64
	EventsDeleted            int64
	FailureCode              pgtype.Text
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
	OrgSlug                  slug.Slug
}

type CreatePasswordResetTokenParams

type CreatePasswordResetTokenParams struct {
	PasswordResetTokenHash      pgtype.Text
	PasswordResetTokenExpiresAt pgtype.Timestamp
	Slug                        slug.Slug
}

type CreatePendingOAuthCredentialParams

type CreatePendingOAuthCredentialParams struct {
	CredentialSlug slug.Slug
	Status         string
	OrgSlug        slug.Slug
}

type CreatePermissionParams

type CreatePermissionParams struct {
	Resource string
	Action   string
}

type CreatePersonalAccessTokenParams

type CreatePersonalAccessTokenParams struct {
	PatSlug                       slug.Slug
	Name                          string
	Description                   pgtype.Text
	TokenHash                     string
	TokenPrefix                   string
	ExpiresAt                     pgtype.Timestamptz
	CanManagePersonalAccessTokens bool
	UserSlug                      slug.Slug
}

type CreatePipelineCompiledPlanParams

type CreatePipelineCompiledPlanParams struct {
	PipelineSlug     string
	Digest           string
	AuthoredSpecHash string
	FormatVersion    int32
	Materialization  []byte
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
}

type CreatePipelineCompiledPlanRow

type CreatePipelineCompiledPlanRow struct {
	PipelineSlug     string
	Digest           string
	AuthoredSpecHash string
	FormatVersion    int32
	Materialization  []byte
	CreatedAt        pgtype.Timestamptz
}

type CreatePipelineCreationProposalParams

type CreatePipelineCreationProposalParams struct {
	CreationSlug     slug.Slug
	PipelineSlug     string
	Request          []byte
	PublishAttemptID string
	ProjectSlug      slug.Slug
	MemberSlug       slug.Slug
	OrgSlug          slug.Slug
}

type CreatePipelineDeploymentResolutionParams

type CreatePipelineDeploymentResolutionParams struct {
	Digest          string
	Materialization []byte
	PipelineSlug    string
	CompiledDigest  string
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type CreatePipelineDeploymentResolutionRow

type CreatePipelineDeploymentResolutionRow struct {
	Digest          string
	Materialization []byte
}

type CreatePipelineRunParams

type CreatePipelineRunParams struct {
	WorkerJobID                   pgtype.Int8
	DeploymentResolutionDigest    pgtype.Text
	DeploymentID                  pgtype.Int8
	DeploymentRevision            pgtype.Int8
	ApiVersion                    string
	PipelineSlug                  string
	RunSlug                       string
	RequestID                     pgtype.Text
	SourceType                    string
	SourceSummary                 string
	SourceEntrypoint              string
	SourceActorType               string
	SourceActorSlug               pgtype.Text
	SourceRequestID               pgtype.Text
	SourceTraceID                 pgtype.Text
	SourceParameterKeys           []string
	SourceScheduleTriggerSlug     pgtype.Text
	SourceScheduleTriggerRevision pgtype.Int8
	SourceScheduleCron            pgtype.Text
	SourceScheduleTimezone        pgtype.Text
	SourceScheduleScheduledFireAt pgtype.Timestamptz
	SourceScheduleActualFireAt    pgtype.Timestamptz
	SourceScheduleMisfireResult   pgtype.Text
	SourceWebhookDeliveryID       pgtype.Int8
	Status                        string
	DurationMs                    int64
	StepCount                     int32
	StepSlug                      string
	ErrorSummary                  pgtype.Text
	FailureKind                   pgtype.Text
	FailureSide                   pgtype.Text
	StartedAt                     pgtype.Timestamptz
	EndedAt                       pgtype.Timestamptz
	ReplayOfRunSlug               pgtype.Text
	ReplayFromStep                pgtype.Text
	SourceAttemptNumber           int32
	SourceRootRunSlug             pgtype.Text
	SourceRetryOfRunSlug          pgtype.Text
	RunMode                       string
	CheckpointStatus              string
	IncrementalSourceStepSlug     pgtype.Text
	IncrementalBlockedReason      pgtype.Text
	ReplaySafetyStatus            pgtype.Text
	ReplayBlockedReason           pgtype.Text
	BackfillSeriesSlug            pgtype.Text
	BackfillChunkIndex            int32
	BackfillChunkCount            int32
	IncrementalDiagnostics        []byte
	Timeline                      []byte
	PipelineVersionID             pgtype.Int8
	OrgSlug                       slug.Slug
	ProjectSlug                   slug.Slug
	EnvironmentSlug               slug.Slug
}

type CreatePipelineRunRow

type CreatePipelineRunRow struct {
	Inserted      bool
	PipelineRun   PipelineRun
	SourceWebhook []byte
}

type CreatePipelineTriggerParams

type CreatePipelineTriggerParams struct {
	ProjectSlug                 slug.Slug
	EnvironmentSlug             slug.Slug
	PipelineSlug                slug.Slug
	PinnedVersionHash           pgtype.Text
	OrgSlug                     slug.Slug
	VersionPolicy               string
	TriggerSlug                 slug.Slug
	Name                        string
	TriggerType                 string
	Enabled                     bool
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	CompletionConfig            []byte
	CreatedByActorType          string
	CreatedByActorSlug          pgtype.Text
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
}

type CreatePipelineTriggerRow

type CreatePipelineTriggerRow struct {
	ID                          int
	ProjectID                   int64
	ProjectEnvironmentID        int64
	PipelineID                  int64
	PipelineSlug                string
	PinnedPipelineVersionID     pgtype.Int8
	Slug                        slug.Slug
	Name                        string
	TriggerType                 string
	Enabled                     bool
	Revision                    int64
	VersionPolicy               string
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	CreatedByActorType          string
	CreatedByActorSlug          pgtype.Text
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
	DisabledAt                  pgtype.Timestamptz
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	CompletionConfig            []byte
	EnvironmentSlug             slug.Slug
	PipelineSlug_2              slug.Slug
	PinnedVersionHash           pgtype.Text
	EnabledKeyVersions          []int32
}

type CreatePipelineValidationResultParams

type CreatePipelineValidationResultParams struct {
	PipelineSlug     slug.Slug
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	EnvironmentSlug  slug.Slug
	ValidationSlug   string
	Source           string
	Valid            bool
	SpecHash         pgtype.Text
	Diagnostics      []byte
	ImpactReportSlug pgtype.Text
}

type CreatePipelineValidationResultRow

type CreatePipelineValidationResultRow struct {
	ID                   int
	ProjectEnvironmentID int64
	PipelineID           pgtype.Int8
	PipelineVersionID    pgtype.Int8
	ValidationSlug       string
	PipelineSlug         string
	Source               string
	Valid                bool
	SpecHash             pgtype.Text
	Diagnostics          []byte
	ImpactReportSlug     pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	ProjectID            int64
	ImpactPipelineID     pgtype.Int8
	OrgSlug              slug.Slug
	ProjectSlug          slug.Slug
	EnvironmentSlug      slug.Slug
}

type CreatePipelineVersionParams

type CreatePipelineVersionParams struct {
	PipelineSlug      string
	GitCommitSha      pgtype.Text
	SourcePath        pgtype.Text
	SpecJsonb         []byte
	SpecHash          string
	ResolvedContracts []byte
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
}

type CreatePipelineWebhookCredentialParams

type CreatePipelineWebhookCredentialParams struct {
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	EnvironmentSlug  slug.Slug
	TriggerSlug      slug.Slug
	CredentialSlug   slug.Slug
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
}

type CreatePipelineWebhookCredentialRow

type CreatePipelineWebhookCredentialRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Kind             string
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	KeyVersion       int32
}

type CreateProjectParams

type CreateProjectParams struct {
	ProjectSlug slug.Slug
	Name        string
	OrgSlug     slug.Slug
}

type CreateProjectRepositorySetupParams

type CreateProjectRepositorySetupParams struct {
	SetupSlug   slug.Slug
	Request     []byte
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type CreateProjectRow

type CreateProjectRow struct {
	ID                             int
	OrganizationID                 int32
	Slug                           slug.Slug
	Name                           string
	PipelineBackendDataSourceID    pgtype.Int8
	PipelineBackendRepo            pgtype.Text
	PipelineBackendTrackedBranch   pgtype.Text
	CreatedAt                      pgtype.Timestamp
	UpdatedAt                      pgtype.Timestamp
	PipelineBackendPipelineDir     pgtype.Text
	PipelineBackendFirstCommitSha  pgtype.Text
	PipelineBackendDataSourceSlug  pgtype.Text
	PipelineBackendRepo_2          string
	PipelineBackendTrackedBranch_2 string
}

type CreateProofChangeCandidateMappingParams

type CreateProofChangeCandidateMappingParams struct {
	Provider               string
	ProviderConnectionID   string
	RepositoryID           string
	TargetRef              string
	PipelinePath           string
	OrgSlug                slug.Slug
	ProjectSlug            slug.Slug
	ProviderConnectionSlug slug.Slug
	EnvironmentSlug        slug.Slug
}

type CreateProofChangeCandidateParams

type CreateProofChangeCandidateParams struct {
	CandidateSlug         slug.Slug
	CandidateKey          string
	ChangeRequestID       string
	SourceRef             string
	HeadSha               string
	SourceSha256          string
	SpecHash              string
	CanonicalSpec         []byte
	SupersedesCandidateID pgtype.Int8
	MappingID             int64
	OrgSlug               slug.Slug
}

type CreateProofDeploymentLinkParams

type CreateProofDeploymentLinkParams struct {
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
	OrgSlug         slug.Slug
	ReceiptSlug     slug.Slug
	Identifier      string
	SpecHash        string
	LinkedAt        pgtype.Timestamptz
}

type CreateProofDeploymentLinkRow

type CreateProofDeploymentLinkRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	ReceiptID             int64
	CandidateID           int64
	Kind                  string
	Identifier            string
	DeploymentID          pgtype.Int8
	RunID                 pgtype.Int8
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	LinkedAt              pgtype.Timestamptz
	ReceiptSlug           slug.Slug
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type CreateProofEvidenceParams

type CreateProofEvidenceParams struct {
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	Kind                  string
	Digest                string
	SourceIdentifier      string
	ObservedAt            pgtype.Timestamptz
	ExpiresAt             pgtype.Timestamptz
}

type CreateProofEvidenceRow

type CreateProofEvidenceRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	Kind                  string
	Digest                string
	SourceIdentifier      string
	ObservedAt            pgtype.Timestamptz
	ExpiresAt             pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
}

type CreateProofObservationJobParams

type CreateProofObservationJobParams struct {
	JobSlug              slug.Slug
	RequestDigest        string
	Request              []byte
	Authorization        []byte
	TargetCiphertext     []byte
	PolicyVersion        string
	WorkerIdentity       string
	Operation            string
	ReservedRequests     int64
	ReservedBytes        int64
	ReservedRows         int64
	ReservedCost         int64
	BudgetExpiresAt      pgtype.Timestamptz
	DeadlineAt           pgtype.Timestamptz
	TimeoutMicroseconds  int64
	EvidenceRetainUntil  pgtype.Timestamptz
	MetadataRetainUntil  pgtype.Timestamptz
	OrgSlug              slug.Slug
	CandidateSlug        slug.Slug
	HeadSha              string
	SpecHash             string
	ProjectID            int64
	ProjectEnvironmentID int64
	DataSourceSlug       slug.Slug
	ConnectorType        string
}

type CreateProofReceiptParams

type CreateProofReceiptParams struct {
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	EvidenceID            int64
	ReceiptSlug           slug.Slug
	ReceiptKey            string
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	CompilerVersion       string
	PolicyVersion         string
	AggregateVerdict      string
	Receipt               []byte
	SupersedesReceiptID   pgtype.Int8
	CreatedAt             pgtype.Timestamptz
	RetainUntil           pgtype.Timestamptz
}

type CreateProofReceiptRow

type CreateProofReceiptRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	EvidenceID            int64
	Slug                  slug.Slug
	ReceiptKey            string
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	CompilerVersion       string
	PolicyVersion         string
	AggregateVerdict      string
	Receipt               []byte
	SupersedesReceiptID   pgtype.Int8
	CreatedAt             pgtype.Timestamptz
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type CreateProofRunLinkParams

type CreateProofRunLinkParams struct {
	ProjectSlug          slug.Slug
	EnvironmentSlug      slug.Slug
	RunSlug              string
	OrgSlug              slug.Slug
	DeploymentID         pgtype.Int8
	DeploymentIdentifier string
	Identifier           string
	LinkedAt             pgtype.Timestamptz
}

type CreateProofRunLinkRow

type CreateProofRunLinkRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	ReceiptID             int64
	CandidateID           int64
	Kind                  string
	Identifier            string
	DeploymentID          pgtype.Int8
	RunID                 pgtype.Int8
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	LinkedAt              pgtype.Timestamptz
	ReceiptSlug           slug.Slug
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type CreateQueryExecutionParams

type CreateQueryExecutionParams struct {
	Slug           slug.Slug
	Status         string
	Result         []byte
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type CreateQueryParameterParams

type CreateQueryParameterParams struct {
	Slug           slug.Slug
	Name           string
	DataType       string
	IsRequired     bool
	DefaultValue   pgtype.Text
	Description    pgtype.Text
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type CreateQueryParams

type CreateQueryParams struct {
	Slug                     slug.Slug
	Name                     string
	Description              pgtype.Text
	Data                     []byte
	ExpectedInputContract    []byte
	ExpectedInputContractRef []byte
	OutputContract           []byte
	OutputContractRef        []byte
	OrgSlug                  slug.Slug
	DataSourceSlug           slug.Slug
}

type CreateRoleParams

type CreateRoleParams struct {
	OrgSlug   pgtype.Text
	RoleSlug  pgtype.Text
	Name      pgtype.Text
	IsDefault pgtype.Bool
}

type CreateRunRecencyEpisodeParams

type CreateRunRecencyEpisodeParams struct {
	Slug                       slug.Slug
	ExpectationID              int64
	DeploymentID               int64
	DeploymentRevision         int64
	PipelineVersionID          int64
	DeploymentResolutionDigest pgtype.Text
	DeployedAt                 pgtype.Timestamptz
	DeadlineAt                 pgtype.Timestamptz
	BreachedAt                 pgtype.Timestamptz
	LastSuccessRunSlug         pgtype.Text
	LastSuccessAt              pgtype.Timestamptz
}

type CreateRunRecencyExpectationParams

type CreateRunRecencyExpectationParams struct {
	Revision          int64
	MaximumAgeSeconds int64
	Enabled           bool
	EnabledAt         pgtype.Timestamptz
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	PipelineSlug      string
}

type CreateStaticCredentialParams

type CreateStaticCredentialParams struct {
	CredentialSlug   slug.Slug
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	OrgSlug          slug.Slug
}

type CreateUserMFAChallengeParams

type CreateUserMFAChallengeParams struct {
	ChallengeTokenHash string
	CodeHash           string
	ExpiresAt          pgtype.Timestamptz
	UserSlug           slug.Slug
}

type CreateUserParams

type CreateUserParams struct {
	Slug     slug.Slug
	Email    string
	FullName string
	Password pgtype.Text
	Role     string
	Locale   string
}

type Credential

type Credential struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Kind             string
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
}

type CredentialHttpOauthApp

type CredentialHttpOauthApp struct {
	OrganizationID        int32
	DataSourceID          int64
	EncryptedConfig       []byte
	RefreshClaimID        pgtype.Text
	RefreshClaimExpiresAt pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type CredentialOauthGrant

type CredentialOauthGrant struct {
	ID                   int
	CredentialID         int64
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
}

type CredentialOauthInstall

type CredentialOauthInstall struct {
	ID                             int
	OrganizationID                 int32
	DataSourceID                   pgtype.Int8
	Slug                           slug.Slug
	Provider                       string
	StateHash                      string
	Intent                         string
	ActorType                      string
	ActorSlug                      pgtype.Text
	RequestedScopes                []string
	ExpiresAt                      pgtype.Timestamptz
	ConsumedAt                     pgtype.Timestamptz
	CreatedAt                      pgtype.Timestamptz
	UpdatedAt                      pgtype.Timestamptz
	ExpectedCredentialID           int64
	ExpectedCredentialStatus       string
	OrganizationGitlabConnectionID pgtype.Int8
	ExpectedSourceRevision         pgtype.Int8
	EncryptedPkceVerifier          []byte
	NotificationConnectionID       pgtype.Int8
	RepositorySetupSlug            pgtype.Text
	RepositorySetupProjectSlug     pgtype.Text
}

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 DataSource

type DataSource struct {
	ID                             int
	OrganizationID                 int32
	CredentialID                   int64
	Name                           string
	Slug                           slug.Slug
	Type                           string
	Config                         []byte
	IsActive                       bool
	ReadOnly                       bool
	DeletedAt                      pgtype.Timestamptz
	DeleteReason                   pgtype.Text
	LastTestedAt                   pgtype.Timestamptz
	TestError                      pgtype.Text
	CreatedAt                      pgtype.Timestamptz
	UpdatedAt                      pgtype.Timestamptz
	SchemaImportStatus             string
	SchemaImportErrorCode          pgtype.Text
	SchemaImportErrorMessage       pgtype.Text
	SchemaImportAttemptID          pgtype.Text
	SchemaImportStartedAt          pgtype.Timestamptz
	SchemaImportFinishedAt         pgtype.Timestamptz
	ConnectionTestRevision         int64
	OrganizationGitlabConnectionID pgtype.Int8
	ProofEnabled                   bool
	ProofChecksEnabled             bool
}

type DataSourceBinding

type DataSourceBinding struct {
	ID                   int
	ProjectEnvironmentID int64
	DataSourceRefID      int64
	DataSourceID         int64
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	OrganizationID       int32
	ProjectID            int64
	PipelineSpecID       int64
}

type DataSourceHasProjectBackendReferencesParams

type DataSourceHasProjectBackendReferencesParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type DataSourceRef

type DataSourceRef struct {
	ID                   int
	Slug                 slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	PipelineSpecID       int64
}

type DeclineOrganizationMemberInvitationParams

type DeclineOrganizationMemberInvitationParams struct {
	DeclinedAt     pgtype.Timestamp
	OrgSlug        pgtype.Text
	InvitationSlug pgtype.Text
}

type DeclineOrganizationMemberInvitationRow

type DeclineOrganizationMemberInvitationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type DeferCompletionRunFinalizationParams

type DeferCompletionRunFinalizationParams struct {
	Reason     pgtype.Text
	OrgSlug    slug.Slug
	SnapshotID int
	RunSlug    string
}

type DeferPipelineCompletionSnapshotParams

type DeferPipelineCompletionSnapshotParams struct {
	Reason     pgtype.Text
	OrgSlug    slug.Slug
	SnapshotID int
}

type DeleteAlertDestinationParams

type DeleteAlertDestinationParams struct {
	OrgSlug         slug.Slug
	DestinationSlug slug.Slug
}

type DeleteAlertPolicyParams

type DeleteAlertPolicyParams struct {
	OrgSlug    slug.Slug
	PolicySlug slug.Slug
}

type DeleteDataSourceBindingParams

type DeleteDataSourceBindingParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
}

type DeleteDataSourceParams

type DeleteDataSourceParams struct {
	DeleteReason pgtype.Text
	OrgSlug      slug.Slug
	DsSlug       slug.Slug
}

type DeleteDataSourceRefParams

type DeleteDataSourceRefParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
}

type DeleteDataSourceRefsForPipelineParams

type DeleteDataSourceRefsForPipelineParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug slug.Slug
}

type DeleteEnvironmentParams

type DeleteEnvironmentParams struct {
	DeleteReason    pgtype.Text
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type DeleteEnvironmentSecretParams

type DeleteEnvironmentSecretParams struct {
	OrgSlug              slug.Slug
	EnvironmentSlug      slug.Slug
	EnvironmentSecretKey string
}

type DeleteEnvironmentSecretsForEnvironmentParams

type DeleteEnvironmentSecretsForEnvironmentParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type DeleteExpiredOrganizationEventsParams

type DeleteExpiredOrganizationEventsParams struct {
	OrgSlug slug.Slug
	Cutoff  pgtype.Timestamptz
}

type DeleteExpiredOrganizationPipelineRunsParams

type DeleteExpiredOrganizationPipelineRunsParams struct {
	OrgSlug slug.Slug
	Cutoff  pgtype.Timestamptz
}

type DeleteExpiredOrganizationQueryExecutionsParams

type DeleteExpiredOrganizationQueryExecutionsParams struct {
	OrgSlug slug.Slug
	Cutoff  pgtype.Timestamptz
}

type DeleteExpiredOrganizationReplayCheckpointsParams

type DeleteExpiredOrganizationReplayCheckpointsParams struct {
	OrgSlug slug.Slug
	Cutoff  pgtype.Timestamptz
}

type DeleteExpiredOrganizationRetentionRunsParams

type DeleteExpiredOrganizationRetentionRunsParams struct {
	OrgSlug slug.Slug
	Cutoff  pgtype.Timestamptz
}

type DeleteExpiredProofObservationJobsParams

type DeleteExpiredProofObservationJobsParams struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
}

type DeleteExpiredProofObservationJobsRow

type DeleteExpiredProofObservationJobsRow struct {
	Slug          slug.Slug
	RequestDigest string
}

type DeleteExpiredProofReceiptsRow

type DeleteExpiredProofReceiptsRow struct {
	Slug       slug.Slug
	ReceiptKey string
	EvidenceID int64
}

type DeletePipelineDraftParams

type DeletePipelineDraftParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
	MemberSlug   slug.Slug
}

type DeletePipelineReferenceParams

type DeletePipelineReferenceParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	Slug        slug.Slug
}

type DeletePipelineSpecParams

type DeletePipelineSpecParams struct {
	DeletedBySlug slug.Slug
	DeleteReason  pgtype.Text
	OrgSlug       slug.Slug
	ProjectSlug   slug.Slug
	Slug          slug.Slug
}

type DeletePipelineTriggerParams

type DeletePipelineTriggerParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
}

type DeleteProjectParams

type DeleteProjectParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type DeleteQueryParametersByQueryParams

type DeleteQueryParametersByQueryParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type DeleteQueryParams

type DeleteQueryParams struct {
	DeleteReason   pgtype.Text
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type DeleteRevokedAPIKeyParams

type DeleteRevokedAPIKeyParams struct {
	OrgSlug    slug.Slug
	ApiKeySlug slug.Slug
}

type DeleteRevokedPersonalAccessTokenParams

type DeleteRevokedPersonalAccessTokenParams struct {
	UserSlug slug.Slug
	PatSlug  slug.Slug
}

type DeleteRevokedSnowflakeWIFBindingParams

type DeleteRevokedSnowflakeWIFBindingParams struct {
	BindingID int
	OrgSlug   slug.Slug
	DsSlug    slug.Slug
}

type DeleteRoleParams

type DeleteRoleParams struct {
	DeleteReason pgtype.Text
	OrgSlug      pgtype.Text
	RoleSlug     pgtype.Text
}

type DeleteRuntimeVariableParams

type DeleteRuntimeVariableParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
	VariableKey     string
}

type DeleteSchemaMetadataByDataSourceSlugParams

type DeleteSchemaMetadataByDataSourceSlugParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type DeleteUnusedProofEvidenceParams

type DeleteUnusedProofEvidenceParams struct {
	OrgSlug     slug.Slug
	EvidenceIds []int64
}

type DisableProjectEnvironmentParams

type DisableProjectEnvironmentParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type DisableProofObservationPolicyParams

type DisableProofObservationPolicyParams struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
}

type DiscardRetainedFileParams

type DiscardRetainedFileParams struct {
	RequestID  pgtype.UUID
	ClaimToken pgtype.UUID
	OrgSlug    string
}

type DriftImpactReport

type DriftImpactReport struct {
	ID             int
	PipelineSpecID pgtype.Int8
	DataSourceID   pgtype.Int8
	Slug           slug.Slug
	ReportType     string
	Status         string
	Severity       string
	Summary        string
	Changes        []byte
	Impacts        []byte
	CreatedAt      pgtype.Timestamptz
	SupersededAt   pgtype.Timestamptz
}

type EnableProjectEnvironmentParams

type EnableProjectEnvironmentParams struct {
	IsDefault       bool
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type EnableProjectEnvironmentRow

type EnableProjectEnvironmentRow struct {
	ID                     int
	ProjectID              int64
	EnvironmentID          int64
	IsDefault              bool
	DeletedAt              pgtype.Timestamptz
	DeleteReason           pgtype.Text
	EnabledAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	OrganizationID         int32
	EnvironmentSlug        slug.Slug
	EnvironmentName        string
	EnvironmentDescription pgtype.Text
	EnvironmentColor       string
	EnvironmentProtected   bool
	EnvironmentDeletedAt   pgtype.Timestamptz
	EnvironmentCreatedAt   pgtype.Timestamptz
	EnvironmentUpdatedAt   pgtype.Timestamptz
}

type EnsureDefaultRoleParams

type EnsureDefaultRoleParams struct {
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
	Name     pgtype.Text
}

type EnsureDefaultRoleRow

type EnsureDefaultRoleRow struct {
	ID             int
	OrganizationID int32
	Slug           slug.Slug
	Name           string
	IsDefault      bool
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	DeletedAt      pgtype.Timestamptz
	DeleteReason   pgtype.Text
}

type EnsureIncrementalCheckpointCommitLockParams

type EnsureIncrementalCheckpointCommitLockParams struct {
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	OperationIdentity   string
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
}

type Environment

type Environment struct {
	ID             int
	OrganizationID int32
	Slug           slug.Slug
	Name           string
	Description    pgtype.Text
	Protected      bool
	DeletedAt      pgtype.Timestamptz
	DeleteReason   pgtype.Text
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
	Color          string
}

type EnvironmentRuntimeVariable

type EnvironmentRuntimeVariable struct {
	ID             int
	OrganizationID int64
	EnvironmentID  int64
	Key            string
	ValueType      string
	ValueText      string
	Description    pgtype.Text
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
}

type EnvironmentSecret

type EnvironmentSecret struct {
	ID             int
	EnvironmentID  int64
	CredentialID   int64
	Key            string
	Description    pgtype.Text
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
	OrganizationID int32
}

type Event

type Event struct {
	ID             int
	OrganizationID int32
	Slug           slug.Slug
	ActorType      string
	ActorSlug      pgtype.Text
	EntityType     string
	EntitySlug     pgtype.Text
	Action         string
	OccurredAt     pgtype.Timestamptz
	Metadata       []byte
	CreatedAt      pgtype.Timestamptz
	EventClass     string
	RequestID      pgtype.Text
	SchemaVersion  int32
}

type ExecutionRequest

type ExecutionRequest struct {
	ID                int
	OrganizationID    int32
	Kind              string
	State             string
	RequestCiphertext []byte
	ResultCiphertext  []byte
	DeadlineAt        pgtype.Timestamptz
	CancelRequestedAt pgtype.Timestamptz
	LeaseExpiresAt    pgtype.Timestamptz
	StartedAt         pgtype.Timestamptz
	CompletedAt       pgtype.Timestamptz
	ExpiresAt         pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	DataSourceID      pgtype.Int8
	ConcurrencyLimit  pgtype.Int4
	QueueCapacity     pgtype.Int4
	QueueDeadlineAt   pgtype.Timestamptz
	InitiatingUserID  pgtype.Int4
	ScopeDataSourceID pgtype.Int8
	ClaimToken        pgtype.UUID
}

type ExpireOrganizationMemberInvitationParams

type ExpireOrganizationMemberInvitationParams struct {
	ExpiredAt      pgtype.Timestamp
	OrgSlug        pgtype.Text
	InvitationSlug pgtype.Text
}

type ExpireOrganizationMemberInvitationRow

type ExpireOrganizationMemberInvitationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type ExpirePendingOrganizationMemberInvitationsParams

type ExpirePendingOrganizationMemberInvitationsParams struct {
	ExpiredAt pgtype.Timestamp
	OrgSlug   pgtype.Text
}

type ExpirePendingOrganizationMemberInvitationsRow

type ExpirePendingOrganizationMemberInvitationsRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type ExpirePipelineWebhookDeliveryParams

type ExpirePipelineWebhookDeliveryParams struct {
	Now        pgtype.Timestamptz
	ReceiverID string
	DeliveryID string
}

type ExpireProofObservationJobsParams

type ExpireProofObservationJobsParams struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
}

type ExpireProofObservationJobsRow

type ExpireProofObservationJobsRow struct {
	Slug          slug.Slug
	RequestDigest string
}

type FailGitLabProofWebhookSetupParams

type FailGitLabProofWebhookSetupParams struct {
	OrganizationSlug slug.Slug
	DataSourceSlug   slug.Slug
	RouteKeyHash     string
}

type FailPipelineDraftProposalRefreshParams

type FailPipelineDraftProposalRefreshParams struct {
	OrgSlug          pgtype.Text
	ProjectSlug      pgtype.Text
	PipelineSlug     pgtype.Text
	MemberSlug       pgtype.Text
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	ProposalID       pgtype.Text
	RefreshAttemptID pgtype.Text
}

type FailPipelineDraftProposalRefreshRow

type FailPipelineDraftProposalRefreshRow struct {
	DraftExists bool
	Updated     bool
}

type FailPipelineDraftPublishParams

type FailPipelineDraftPublishParams struct {
	DraftState       pgtype.Text
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	PipelineSlug     string
	PublishAttemptID pgtype.Text
	MemberSlug       slug.Slug
}

type FenceCompletionRetryDecisionParams

type FenceCompletionRetryDecisionParams struct {
	OrgSlug    slug.Slug
	SnapshotID int
}

type FindAPIKeyBySlugParams

type FindAPIKeyBySlugParams struct {
	OrgSlug    slug.Slug
	ApiKeySlug slug.Slug
}

type FindAPIKeyBySlugRow

type FindAPIKeyBySlugRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Name              string
	Description       pgtype.Text
	TokenHash         string
	TokenPrefix       string
	CreatedByMemberID pgtype.Int4
	RoleID            int32
	ExpiresAt         pgtype.Timestamptz
	RevokedAt         pgtype.Timestamptz
	LastUsedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	CanManageApiKeys  bool
	RoleSlug          slug.Slug
	CreatedByUserSlug slug.Slug
}

type FindActiveAPIKeyByTokenHashRow

type FindActiveAPIKeyByTokenHashRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Name              string
	Description       pgtype.Text
	TokenHash         string
	TokenPrefix       string
	CreatedByMemberID pgtype.Int4
	RoleID            int32
	ExpiresAt         pgtype.Timestamptz
	RevokedAt         pgtype.Timestamptz
	LastUsedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	CanManageApiKeys  bool
	OrgSlug           slug.Slug
	RoleSlug          slug.Slug
}

type FindActivePersonalAccessTokenByTokenHashRow

type FindActivePersonalAccessTokenByTokenHashRow struct {
	ID                            int
	UserID                        int32
	Slug                          slug.Slug
	Name                          string
	Description                   pgtype.Text
	TokenHash                     string
	TokenPrefix                   string
	ExpiresAt                     pgtype.Timestamptz
	RevokedAt                     pgtype.Timestamptz
	LastUsedAt                    pgtype.Timestamptz
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CanManagePersonalAccessTokens bool
	UserSlug                      slug.Slug
}

type FindAlertDestinationBySlugParams

type FindAlertDestinationBySlugParams struct {
	OrgSlug         slug.Slug
	DestinationSlug slug.Slug
}

type FindAlertPolicyBySlugParams

type FindAlertPolicyBySlugParams struct {
	OrgSlug    slug.Slug
	PolicySlug slug.Slug
}

type FindAlertPolicyBySlugRow

type FindAlertPolicyBySlugRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Name             string
	Scope            string
	ProjectID        pgtype.Int8
	EnvironmentID    pgtype.Int8
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceRef        pgtype.Text
	Enabled          bool
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	SourceAction     pgtype.Text
	ProjectSlug      string
	EnvironmentSlug  string
	DestinationSlugs []string
}

type FindAnyEnvironmentBySlugParams

type FindAnyEnvironmentBySlugParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type FindAnyPipelineDraftBySlugParams

type FindAnyPipelineDraftBySlugParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
}

type FindAnyPipelineDraftBySlugRow

type FindAnyPipelineDraftBySlugRow struct {
	ID                        int
	ProjectID                 int64
	PipelineSlug              string
	MemberID                  int32
	BasedOnVersionID          pgtype.Int8
	SpecJsonb                 []byte
	DraftState                pgtype.Text
	BaseRef                   pgtype.Text
	BaseCommitSha             pgtype.Text
	BranchName                pgtype.Text
	BranchHeadSha             pgtype.Text
	ProposalProvider          pgtype.Text
	ProposalID                pgtype.Text
	ProposalUrl               pgtype.Text
	ProposalState             pgtype.Text
	LastProposedDraftHash     pgtype.Text
	QueuedAt                  pgtype.Timestamptz
	ProposalUpdatedAt         pgtype.Timestamptz
	FailedAt                  pgtype.Timestamptz
	CreatedAt                 pgtype.Timestamptz
	UpdatedAt                 pgtype.Timestamptz
	PublishAttemptID          pgtype.Text
	RefreshAttemptID          pgtype.Text
	FailureCode               pgtype.Text
	FailureMessage            pgtype.Text
	ProposalAuthorityID       pgtype.Int8
	PublicationMode           pgtype.Text
	ProviderHost              pgtype.Text
	ProviderAccountID         pgtype.Text
	ProviderRepositoryID      pgtype.Text
	ProviderCredentialID      pgtype.Text
	ExecutingPrincipalID      pgtype.Text
	ExecutingPrincipalDisplay pgtype.Text
	AuthoritySource           pgtype.Text
	OrganizationID            int32
	BasedOnSpecHash           pgtype.Text
	CurrentVersionID          pgtype.Int8
}

type FindCurrentDataSourceSchemaImportAttemptParams

type FindCurrentDataSourceSchemaImportAttemptParams struct {
	OrgSlug   slug.Slug
	DsSlug    slug.Slug
	AttemptID pgtype.Text
}

type FindCurrentDataSourceSchemaImportAttemptRow

type FindCurrentDataSourceSchemaImportAttemptRow struct {
	Slug                     slug.Slug
	SchemaImportStatus       string
	SchemaImportErrorCode    pgtype.Text
	SchemaImportErrorMessage pgtype.Text
	SchemaImportStartedAt    pgtype.Timestamptz
	SchemaImportFinishedAt   pgtype.Timestamptz
	Started                  bool
}

type FindCurrentRunRecencyExpectationForSystemParams

type FindCurrentRunRecencyExpectationForSystemParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type FindCurrentRunRecencyExpectationForSystemRow

type FindCurrentRunRecencyExpectationForSystemRow struct {
	ID                      int
	ProjectEnvironmentID    int64
	PipelineSlug            string
	Revision                int64
	MaximumAgeSeconds       int64
	Enabled                 bool
	EnabledAt               pgtype.Timestamptz
	CreatedAt               pgtype.Timestamptz
	OrgSlug                 slug.Slug
	ProjectSlug             slug.Slug
	EnvironmentSlug         slug.Slug
	DeploymentID            int64
	DeploymentRevision      int64
	CurrentVersionID        int64
	CurrentResolutionDigest pgtype.Text
	DeployedAt              pgtype.Timestamptz
	SuccessRunSlug          pgtype.Text
	SucceededAt             pgtype.Timestamptz
	ScopeDisabled           pgtype.Bool
}

type FindDataSourceBindingParams

type FindDataSourceBindingParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
}

type FindDataSourceBindingRow

type FindDataSourceBindingRow struct {
	ID                      int
	ProjectEnvironmentID    int64
	DataSourceRefID         int64
	DataSourceID            int64
	CreatedAt               pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	OrganizationID          int32
	ProjectID               int64
	PipelineSpecID          int64
	PipelineSlug            slug.Slug
	DataSourceRefSlug       slug.Slug
	DataSourceRefName       string
	RefDataSourceType       string
	RefRequiredCapabilities []string
	EnvironmentSlug         slug.Slug
	DataSourceSlug          slug.Slug
	DataSourceName          string
	DataSourceType          string
	DataSourceActive        bool
	DataSourceReadOnly      bool
}

type FindDataSourceBySlugParams

type FindDataSourceBySlugParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type FindDataSourceBySlugRow

type FindDataSourceBySlugRow struct {
	DataSource         DataSource
	CredentialMetadata []byte
}

type FindDataSourceRefBySlugParams

type FindDataSourceRefBySlugParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
}

type FindDataSourceRefBySlugRow

type FindDataSourceRefBySlugRow struct {
	ID                   int
	Slug                 slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	PipelineSpecID       int64
	PipelineSlug         slug.Slug
}

type FindDataSourceSchemaImportStateParams

type FindDataSourceSchemaImportStateParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type FindDataSourceSchemaImportStateRow

type FindDataSourceSchemaImportStateRow struct {
	Slug                     slug.Slug
	SchemaImportStatus       string
	SchemaImportErrorCode    pgtype.Text
	SchemaImportErrorMessage pgtype.Text
	SchemaImportStartedAt    pgtype.Timestamptz
	SchemaImportFinishedAt   pgtype.Timestamptz
	Started                  bool
}

type FindDriftImpactReportBySlugParams

type FindDriftImpactReportBySlugParams struct {
	ProjectSlug string
	OrgSlug     slug.Slug
	ReportSlug  slug.Slug
}

type FindDriftImpactReportBySlugRow

type FindDriftImpactReportBySlugRow struct {
	ID             int
	PipelineSpecID pgtype.Int8
	DataSourceID   pgtype.Int8
	Slug           slug.Slug
	ReportType     string
	Status         string
	Severity       string
	Summary        string
	Changes        []byte
	Impacts        []byte
	CreatedAt      pgtype.Timestamptz
	SupersededAt   pgtype.Timestamptz
	ProjectSlug    slug.Slug
	PipelineSlug   slug.Slug
	DataSourceSlug slug.Slug
}

type FindEnvironmentBySlugParams

type FindEnvironmentBySlugParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type FindEnvironmentSecretParams

type FindEnvironmentSecretParams struct {
	OrgSlug              slug.Slug
	EnvironmentSlug      slug.Slug
	EnvironmentSecretKey string
}

type FindEnvironmentSecretRow

type FindEnvironmentSecretRow struct {
	ID              int
	EnvironmentID   int64
	CredentialID    int64
	Key             string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	OrganizationID  int32
	EnvironmentSlug slug.Slug
	CredentialSlug  slug.Slug
}

type FindEventBySlugParams

type FindEventBySlugParams struct {
	OrgSlug slug.Slug
	Slug    slug.Slug
}

type FindHTTPOAuthAppParams

type FindHTTPOAuthAppParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type FindInstanceAdminUserForUpdateRow

type FindInstanceAdminUserForUpdateRow struct {
	Slug       slug.Slug
	Role       string
	VerifiedAt pgtype.Timestamp
}

type FindLatestPipelineRunByPipelineSlugParams

type FindLatestPipelineRunByPipelineSlugParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type FindLatestPipelineRunByPipelineSlugRow

type FindLatestPipelineRunByPipelineSlugRow struct {
	PipelineRun   PipelineRun
	SourceWebhook []byte
}

type FindLatestProofChangeCandidateParams

type FindLatestProofChangeCandidateParams struct {
	OrgSlug         slug.Slug
	MappingID       int64
	ChangeRequestID string
}

type FindLatestProofReceiptForCandidateParams

type FindLatestProofReceiptForCandidateParams struct {
	OrgSlug       slug.Slug
	CandidateSlug slug.Slug
}

type FindLatestProofReceiptForCandidateRow

type FindLatestProofReceiptForCandidateRow struct {
	Receipt    []byte
	Superseded bool
}

type FindLatestProofReceiptForChangeParams

type FindLatestProofReceiptForChangeParams struct {
	OrganizationID        int32
	MappingID             int64
	ChangeRequestID       string
	CandidateID           int64
	SupersedesCandidateID int64
	ReceiptKey            string
}

type FindLatestProofReceiptForChangeRow

type FindLatestProofReceiptForChangeRow struct {
	ID   int
	Slug slug.Slug
}

type FindLatestRunRecencyExpectationParams

type FindLatestRunRecencyExpectationParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type FindLatestSuccessfulQueryExecutionByOrganizationRow

type FindLatestSuccessfulQueryExecutionByOrganizationRow struct {
	ExecutionSlug  slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
	ExecutedAt     pgtype.Timestamptz
}

type FindNotificationConnectionCredentialParams

type FindNotificationConnectionCredentialParams struct {
	OrgSlug                    slug.Slug
	NotificationConnectionSlug slug.Slug
}

type FindNotificationConnectionCredentialRow

type FindNotificationConnectionCredentialRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Kind             string
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	Provider         string
}

type FindNotificationConnectionOAuthGrantParams

type FindNotificationConnectionOAuthGrantParams struct {
	OrgSlug                    slug.Slug
	NotificationConnectionSlug slug.Slug
}

type FindNotificationConnectionOAuthGrantRow

type FindNotificationConnectionOAuthGrantRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type FindNotificationDeliveryWorkParams

type FindNotificationDeliveryWorkParams struct {
	AlertPolicySlug slug.Slug
	OrgSlug         slug.Slug
	RecordSlug      slug.Slug
	DestinationSlug slug.Slug
}

type FindNotificationDeliveryWorkRow

type FindNotificationDeliveryWorkRow struct {
	OrgSlug          slug.Slug
	OrganizationName string
	RecordSlug       slug.Slug
	AlertPolicySlug  slug.Slug
	DestinationSlug  slug.Slug
	DestinationName  string
	DestinationType  string
	NonSecretConfig  []byte
	NotificationType string
	Severity         string
	SourceEntityType string
	SourceAction     string
	SourceRefs       []byte
	SafeMetadata     []byte
	OccurrenceCount  int32
}

type FindNotificationRecordBySlugParams

type FindNotificationRecordBySlugParams struct {
	OrgSlug    slug.Slug
	RecordSlug slug.Slug
}

type FindNotificationRecordBySlugRow

type FindNotificationRecordBySlugRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ProjectSlug       string
	EnvironmentSlug   string
}

type FindOAuthGrantByDataSourceParams

type FindOAuthGrantByDataSourceParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type FindOAuthGrantByDataSourceRow

type FindOAuthGrantByDataSourceRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	OrganizationOwned    bool
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type FindOAuthInstallByStateParams

type FindOAuthInstallByStateParams struct {
	Now       pgtype.Timestamptz
	Provider  string
	StateHash string
}

type FindOAuthInstallByStateRow

type FindOAuthInstallByStateRow struct {
	ID                         int
	OrganizationID             int32
	DataSourceID               pgtype.Int8
	Slug                       slug.Slug
	Provider                   string
	StateHash                  string
	EncryptedPkceVerifier      []byte
	Intent                     string
	ExpectedCredentialSlug     slug.Slug
	ExpectedCredentialStatus   string
	ExpectedSourceRevision     pgtype.Int8
	RepositorySetupSlug        pgtype.Text
	RepositorySetupProjectSlug pgtype.Text
	ActorType                  string
	ActorSlug                  pgtype.Text
	RequestedScopes            []string
	ExpiresAt                  pgtype.Timestamptz
	ConsumedAt                 pgtype.Timestamptz
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	OrgSlug                    slug.Slug
	DataSourceSlug             string
	OrganizationOwned          bool
	NotificationConnectionSlug string
	StateStatus                string
}

type FindODCSArtifactParams

type FindODCSArtifactParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	SourceRepo   string
	SourceCommit string
	SourcePath   string
}

type FindODCSArtifactRow

type FindODCSArtifactRow struct {
	OrganizationID int32
	ProjectID      int32
	ContractID     int32
	RevisionSlug   string
	SourceRepo     string
	SourceCommit   string
	SourcePath     string
	Format         string
	ArtifactDigest string
	Original       []byte
	CreatedAt      pgtype.Timestamptz
	ContractSlug   slug.Slug
}

type FindODCSContractByIdentityParams

type FindODCSContractByIdentityParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	OdcsID      string
}

type FindODCSContractParams

type FindODCSContractParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	ContractSlug slug.Slug
}

type FindODCSRevisionByDigestParams

type FindODCSRevisionByDigestParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	ContractSlug slug.Slug
	Digest       string
}

type FindODCSRevisionParams

type FindODCSRevisionParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	ContractSlug slug.Slug
	RevisionSlug slug.Slug
}

type FindOrCreatePermissionsParams

type FindOrCreatePermissionsParams struct {
	Resources []string
	Actions   []string
}

type FindOrganizationGitLabOAuthGrantRow

type FindOrganizationGitLabOAuthGrantRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type FindOrganizationMemberByEmailParams

type FindOrganizationMemberByEmailParams struct {
	OrgSlug slug.Slug
	Email   string
}

type FindOrganizationMemberByEmailRow

type FindOrganizationMemberByEmailRow struct {
	ID             int
	OrganizationID int32
	UserID         int32
	RoleID         int32
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	Slug           slug.Slug
	Email          string
	RoleSlug       slug.Slug
}

type FindOrganizationMemberInvitationByTokenHashRow

type FindOrganizationMemberInvitationByTokenHashRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type FindOrganizationMemberInvitationParams

type FindOrganizationMemberInvitationParams struct {
	OrgSlug        slug.Slug
	InvitationSlug slug.Slug
}

type FindOrganizationMemberInvitationRow

type FindOrganizationMemberInvitationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type FindOrganizationMemberParams

type FindOrganizationMemberParams struct {
	OrgSlug  slug.Slug
	UserSlug slug.Slug
}

type FindOrganizationMemberRow

type FindOrganizationMemberRow struct {
	ID             int
	OrganizationID int32
	UserID         int32
	RoleID         int32
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	Slug           slug.Slug
	Email          string
	RoleSlug       slug.Slug
}

type FindPendingOrganizationMemberInvitationByEmailParams

type FindPendingOrganizationMemberInvitationByEmailParams struct {
	OrgSlug slug.Slug
	Email   string
}

type FindPendingOrganizationMemberInvitationByEmailRow

type FindPendingOrganizationMemberInvitationByEmailRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type FindPersonalAccessTokenBySlugParams

type FindPersonalAccessTokenBySlugParams struct {
	UserSlug slug.Slug
	PatSlug  slug.Slug
}

type FindPersonalAccessTokenBySlugRow

type FindPersonalAccessTokenBySlugRow struct {
	ID                            int
	UserID                        int32
	Slug                          slug.Slug
	Name                          string
	Description                   pgtype.Text
	TokenHash                     string
	TokenPrefix                   string
	ExpiresAt                     pgtype.Timestamptz
	RevokedAt                     pgtype.Timestamptz
	LastUsedAt                    pgtype.Timestamptz
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CanManagePersonalAccessTokens bool
	UserSlug                      slug.Slug
}

type FindPipelineCompiledPlanParams

type FindPipelineCompiledPlanParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
	Digest       string
}

type FindPipelineCompiledPlanRow

type FindPipelineCompiledPlanRow struct {
	PipelineSlug     string
	Digest           string
	AuthoredSpecHash string
	FormatVersion    int32
	Materialization  []byte
	CreatedAt        pgtype.Timestamptz
}

type FindPipelineCreationProposalParams

type FindPipelineCreationProposalParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
}

type FindPipelineCreationProposalRow

type FindPipelineCreationProposalRow struct {
	OrganizationID   int32
	ProjectID        int64
	MemberID         int32
	Slug             slug.Slug
	PipelineSlug     string
	Request          []byte
	Result           []byte
	Status           string
	FailureCode      string
	PublishAttemptID string
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	MemberSlug       slug.Slug
}

type FindPipelineDeploymentParams

type FindPipelineDeploymentParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type FindPipelineDeploymentResolutionParams

type FindPipelineDeploymentResolutionParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
	Digest          string
}

type FindPipelineDeploymentResolutionRow

type FindPipelineDeploymentResolutionRow struct {
	Digest          string
	Materialization []byte
}

type FindPipelineDeploymentRow

type FindPipelineDeploymentRow struct {
	ID                       int
	ProjectEnvironmentID     int64
	PipelineSlug             string
	CurrentVersionID         int64
	PreviousVersionID        pgtype.Int8
	DeployedByActorType      string
	DeployedByActorSlug      pgtype.Text
	DeployedAt               pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	ProjectID                int64
	Revision                 int64
	CurrentResolutionDigest  pgtype.Text
	PreviousResolutionDigest pgtype.Text
	ProjectSlug              slug.Slug
	EnvironmentSlug          slug.Slug
	CurrentVersionSpecHash   string
	PreviousVersionSpecHash  pgtype.Text
}

type FindPipelineDraftBySlugParams

type FindPipelineDraftBySlugParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
	MemberSlug   slug.Slug
}

type FindPipelineDraftBySlugRow

type FindPipelineDraftBySlugRow struct {
	ID                        int
	ProjectID                 int64
	PipelineSlug              string
	MemberID                  int32
	BasedOnVersionID          pgtype.Int8
	SpecJsonb                 []byte
	DraftState                pgtype.Text
	BaseRef                   pgtype.Text
	BaseCommitSha             pgtype.Text
	BranchName                pgtype.Text
	BranchHeadSha             pgtype.Text
	ProposalProvider          pgtype.Text
	ProposalID                pgtype.Text
	ProposalUrl               pgtype.Text
	ProposalState             pgtype.Text
	LastProposedDraftHash     pgtype.Text
	QueuedAt                  pgtype.Timestamptz
	ProposalUpdatedAt         pgtype.Timestamptz
	FailedAt                  pgtype.Timestamptz
	CreatedAt                 pgtype.Timestamptz
	UpdatedAt                 pgtype.Timestamptz
	PublishAttemptID          pgtype.Text
	RefreshAttemptID          pgtype.Text
	FailureCode               pgtype.Text
	FailureMessage            pgtype.Text
	ProposalAuthorityID       pgtype.Int8
	PublicationMode           pgtype.Text
	ProviderHost              pgtype.Text
	ProviderAccountID         pgtype.Text
	ProviderRepositoryID      pgtype.Text
	ProviderCredentialID      pgtype.Text
	ExecutingPrincipalID      pgtype.Text
	ExecutingPrincipalDisplay pgtype.Text
	AuthoritySource           pgtype.Text
	OrganizationID            int32
	BasedOnSpecHash           pgtype.Text
	CurrentVersionID          pgtype.Int8
}

type FindPipelineProposalAuthorityParams

type FindPipelineProposalAuthorityParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type FindPipelineProposalAuthorityRow

type FindPipelineProposalAuthorityRow struct {
	ID                        int
	PublicationMode           string
	ProviderHost              string
	ProviderAccountID         string
	ProviderRepositoryID      string
	ProviderCredentialID      string
	ExecutingPrincipalID      string
	ExecutingPrincipalDisplay string
	AuthoritySource           string
	GitConfiguration          []byte
	GitRepository             string
	GitBaseBranch             string
	GitDataSourceSlug         slug.Slug
	GitCredentialSlug         slug.Slug
	GitCredentialUpdatedAt    pgtype.Timestamptz
}

type FindPipelineReferenceBySlugParams

type FindPipelineReferenceBySlugParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	Slug        slug.Slug
}

type FindPipelineRunByRunSlugParams

type FindPipelineRunByRunSlugParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type FindPipelineRunByRunSlugRow

type FindPipelineRunByRunSlugRow struct {
	PipelineRun   PipelineRun
	SourceWebhook []byte
}

type FindPipelineSpecBySlugForUpdateParams

type FindPipelineSpecBySlugForUpdateParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	Slug        slug.Slug
}

type FindPipelineSpecBySlugForUpdateRow

type FindPipelineSpecBySlugForUpdateRow struct {
	ID                     int
	ProjectID              int64
	Slug                   slug.Slug
	Name                   string
	CurrentVersionID       pgtype.Int8
	SpecJsonb              []byte
	SpecHash               string
	SyncStatus             string
	SourcePath             string
	SourceRef              string
	LastAppliedCommit      string
	DeletedAt              pgtype.Timestamptz
	DeletedBy              pgtype.Int4
	DeleteReason           pgtype.Text
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	CurrentVersionSpecHash pgtype.Text
}

type FindPipelineSpecBySlugParams

type FindPipelineSpecBySlugParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	Slug        slug.Slug
}

type FindPipelineSpecBySlugRow

type FindPipelineSpecBySlugRow struct {
	ID                     int
	ProjectID              int64
	Slug                   slug.Slug
	Name                   string
	CurrentVersionID       pgtype.Int8
	SpecJsonb              []byte
	SpecHash               string
	SyncStatus             string
	SourcePath             string
	SourceRef              string
	LastAppliedCommit      string
	DeletedAt              pgtype.Timestamptz
	DeletedBy              pgtype.Int4
	DeleteReason           pgtype.Text
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	CurrentVersionSpecHash pgtype.Text
}

type FindPipelineSpecDeletedAtForUpdateParams

type FindPipelineSpecDeletedAtForUpdateParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	Slug        slug.Slug
}

type FindPipelineTriggerBySlugParams

type FindPipelineTriggerBySlugParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
}

type FindPipelineTriggerBySlugRow

type FindPipelineTriggerBySlugRow struct {
	ID                          int
	ProjectID                   int64
	ProjectEnvironmentID        int64
	PipelineID                  int64
	PipelineSlug                string
	PinnedPipelineVersionID     pgtype.Int8
	Slug                        slug.Slug
	Name                        string
	TriggerType                 string
	Enabled                     bool
	Revision                    int64
	VersionPolicy               string
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	CreatedByActorType          string
	CreatedByActorSlug          pgtype.Text
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
	DisabledAt                  pgtype.Timestamptz
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	CompletionConfig            []byte
	EnvironmentSlug             slug.Slug
	PipelineSlug_2              slug.Slug
	PinnedVersionHash           pgtype.Text
	EnabledKeyVersions          []int32
}

type FindPipelineValidationResultBySlugParams

type FindPipelineValidationResultBySlugParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	ValidationSlug  string
}

type FindPipelineValidationResultBySlugRow

type FindPipelineValidationResultBySlugRow struct {
	ID                   int
	ProjectEnvironmentID int64
	PipelineID           pgtype.Int8
	PipelineVersionID    pgtype.Int8
	ValidationSlug       string
	PipelineSlug         string
	Source               string
	Valid                bool
	SpecHash             pgtype.Text
	Diagnostics          []byte
	ImpactReportSlug     pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	ProjectID            int64
	ImpactPipelineID     pgtype.Int8
	OrgSlug              slug.Slug
	ProjectSlug          slug.Slug
	EnvironmentSlug      slug.Slug
}

type FindPipelineVersionByCommitSHAParams

type FindPipelineVersionByCommitSHAParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
	GitCommitSha pgtype.Text
}

type FindPipelineVersionByIDParams

type FindPipelineVersionByIDParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
	VersionID    int
}

type FindPipelineVersionBySpecHashParams

type FindPipelineVersionBySpecHashParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
	SpecHash     string
}

type FindPipelineVersionsBySpecHashPrefixParams

type FindPipelineVersionsBySpecHashPrefixParams struct {
	OrgSlug        slug.Slug
	ProjectSlug    slug.Slug
	PipelineSlug   string
	SpecHashPrefix string
}

type FindPreviousSuccessfulPipelineRunParams

type FindPreviousSuccessfulPipelineRunParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	PipelineSlug      string
	PipelineVersionID pgtype.Int8
	BeforeAt          pgtype.Timestamptz
}

type FindPreviousSuccessfulPipelineRunRow

type FindPreviousSuccessfulPipelineRunRow struct {
	RunSlug   string
	StartedAt pgtype.Timestamptz
	EndedAt   pgtype.Timestamptz
}

type FindProjectBySlugForUpdateParams

type FindProjectBySlugForUpdateParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type FindProjectBySlugForUpdateRow

type FindProjectBySlugForUpdateRow struct {
	ID                             int
	OrganizationID                 int32
	Slug                           slug.Slug
	Name                           string
	PipelineBackendDataSourceID    pgtype.Int8
	PipelineBackendRepo            pgtype.Text
	PipelineBackendTrackedBranch   pgtype.Text
	CreatedAt                      pgtype.Timestamp
	UpdatedAt                      pgtype.Timestamp
	PipelineBackendPipelineDir     pgtype.Text
	PipelineBackendFirstCommitSha  pgtype.Text
	PipelineBackendDataSourceSlug  pgtype.Text
	PipelineBackendRepo_2          string
	PipelineBackendTrackedBranch_2 string
}

type FindProjectBySlugParams

type FindProjectBySlugParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type FindProjectBySlugRow

type FindProjectBySlugRow struct {
	ID                             int
	OrganizationID                 int32
	Slug                           slug.Slug
	Name                           string
	PipelineBackendDataSourceID    pgtype.Int8
	PipelineBackendRepo            pgtype.Text
	PipelineBackendTrackedBranch   pgtype.Text
	CreatedAt                      pgtype.Timestamp
	UpdatedAt                      pgtype.Timestamp
	PipelineBackendPipelineDir     pgtype.Text
	PipelineBackendFirstCommitSha  pgtype.Text
	PipelineBackendDataSourceSlug  pgtype.Text
	PipelineBackendRepo_2          string
	PipelineBackendTrackedBranch_2 string
}

type FindProjectEnvironmentCatalogProtectionParams

type FindProjectEnvironmentCatalogProtectionParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type FindProjectEnvironmentCatalogProtectionRow

type FindProjectEnvironmentCatalogProtectionRow struct {
	EnvironmentSlug slug.Slug
	Protected       bool
}

type FindProjectEnvironmentProtectionParams

type FindProjectEnvironmentProtectionParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type FindProjectEnvironmentProtectionRow

type FindProjectEnvironmentProtectionRow struct {
	EnvironmentSlug slug.Slug
	Protected       bool
}

type FindProjectForRepositorySetupParams

type FindProjectForRepositorySetupParams struct {
	OrgSlug   slug.Slug
	SetupSlug slug.Slug
}

type FindProofCandidateReceiptTargetParams

type FindProofCandidateReceiptTargetParams struct {
	OrgSlug       slug.Slug
	CandidateSlug slug.Slug
}

type FindProofCandidateReceiptTargetRow

type FindProofCandidateReceiptTargetRow struct {
	ID                     int64
	OrganizationID         int32
	MappingID              int64
	Slug                   slug.Slug
	CandidateKey           string
	ChangeRequestID        string
	SourceRef              string
	HeadSha                string
	SourceSha256           string
	SpecHash               string
	CanonicalSpec          []byte
	SupersedesCandidateID  pgtype.Int8
	ClosedAt               pgtype.Timestamptz
	CreatedAt              pgtype.Timestamptz
	OrganizationID_2       int32
	ProjectID              int64
	ProjectEnvironmentID   int64
	ProviderConnectionID   string
	RepositoryID           string
	TargetRef              string
	PipelinePath           string
	OrganizationSlug       slug.Slug
	ProjectSlug            slug.Slug
	EnvironmentSlug        slug.Slug
	ProviderConnectionSlug slug.Slug
}

type FindProofChangeCandidateByIDParams

type FindProofChangeCandidateByIDParams struct {
	OrgSlug     slug.Slug
	CandidateID int64
}

type FindProofChangeCandidateByKeyParams

type FindProofChangeCandidateByKeyParams struct {
	OrgSlug      slug.Slug
	CandidateKey string
}

type FindProofDeploymentLinkParams

type FindProofDeploymentLinkParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type FindProofDeploymentLinkRow

type FindProofDeploymentLinkRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	ReceiptID             int64
	CandidateID           int64
	Kind                  string
	Identifier            string
	DeploymentID          pgtype.Int8
	RunID                 pgtype.Int8
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	LinkedAt              pgtype.Timestamptz
	ReceiptSlug           slug.Slug
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type FindProofObservationJobParams

type FindProofObservationJobParams struct {
	OrgSlug slug.Slug
	JobSlug slug.Slug
}

type FindProofObservationSlugByDigestParams

type FindProofObservationSlugByDigestParams struct {
	OrgSlug       slug.Slug
	RequestDigest string
}

type FindProofOperationalRunParams

type FindProofOperationalRunParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type FindProofOperationalRunRow

type FindProofOperationalRunRow struct {
	PipelineSlug        string
	RunSlug             string
	SourceAttemptNumber int32
	Status              string
	Timeline            []byte
	EndedAt             pgtype.Timestamptz
	SpecHash            string
	GitCommitSha        pgtype.Text
	ResolutionDigest    string
	Materialization     []byte
	Settings            []byte
}

type FindProofReceiptBySlugParams

type FindProofReceiptBySlugParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	ReceiptSlug     slug.Slug
}

type FindProofReceiptBySlugRow

type FindProofReceiptBySlugRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	EvidenceID            int64
	Slug                  slug.Slug
	ReceiptKey            string
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	CompilerVersion       string
	PolicyVersion         string
	AggregateVerdict      string
	Receipt               []byte
	SupersedesReceiptID   pgtype.Int8
	CreatedAt             pgtype.Timestamptz
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type FindProofRunLinkParams

type FindProofRunLinkParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type FindProofRunLinkRow

type FindProofRunLinkRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	ReceiptID             int64
	CandidateID           int64
	Kind                  string
	Identifier            string
	DeploymentID          pgtype.Int8
	RunID                 pgtype.Int8
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	LinkedAt              pgtype.Timestamptz
	ReceiptSlug           slug.Slug
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type FindQueryBySlugParams

type FindQueryBySlugParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type FindQueryDeletionStateParams

type FindQueryDeletionStateParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type FindQueryExecutionBySlugParams

type FindQueryExecutionBySlugParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
	ExecutionSlug  slug.Slug
}

type FindRoleBySlugParams

type FindRoleBySlugParams struct {
	OrgSlug  slug.Slug
	RoleSlug slug.Slug
}

type FindRuntimeVariableParams

type FindRuntimeVariableParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
	VariableKey     string
}

type FindRuntimeVariableRow

type FindRuntimeVariableRow struct {
	ID              int
	OrganizationID  int64
	EnvironmentID   int64
	Key             string
	ValueType       string
	ValueText       string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	EnvironmentSlug slug.Slug
}

type FindSavedOperationSnapshotParams

type FindSavedOperationSnapshotParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type FindSavedOperationSnapshotRow

type FindSavedOperationSnapshotRow struct {
	DataSourceType           string
	Data                     []byte
	ExpectedInputContract    []byte
	ExpectedInputContractRef []byte
	OutputContract           []byte
	OutputContractRef        []byte
	UpdatedAt                pgtype.Timestamptz
	Parameters               []byte
}

type FindSchemaMetadataByDataSourceSlugParams

type FindSchemaMetadataByDataSourceSlugParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type FindScopedProofObservationJobParams

type FindScopedProofObservationJobParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	JobSlug         slug.Slug
}

type FindStaticCredentialByDataSourceParams

type FindStaticCredentialByDataSourceParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type FindStaticCredentialByEnvironmentSecretParams

type FindStaticCredentialByEnvironmentSecretParams struct {
	OrgSlug              slug.Slug
	EnvironmentSlug      slug.Slug
	EnvironmentSecretKey string
}

type FindUserByOIDCProviderParams

type FindUserByOIDCProviderParams struct {
	OidcProvider   string
	OidcProviderID pgtype.Text
}

type FindUserMFAChallengeByTokenRow

type FindUserMFAChallengeByTokenRow struct {
	ID                        int
	UserID                    int32
	ChallengeTokenHash        string
	CodeHash                  string
	ExpiresAt                 pgtype.Timestamptz
	ConsumedAt                pgtype.Timestamptz
	AttemptCount              int32
	CreatedAt                 pgtype.Timestamptz
	UpdatedAt                 pgtype.Timestamptz
	AuthenticationVersion     int64
	UserSlug                  slug.Slug
	Email                     string
	FullName                  string
	Role                      string
	Locale                    string
	OidcProvider              pgtype.Text
	OidcProviderID            pgtype.Text
	AvatarUrl                 pgtype.Text
	PhoneNumber               pgtype.Text
	JobTitle                  pgtype.Text
	Timezone                  pgtype.Text
	MfaEmailEnabled           bool
	UserAuthenticationVersion int64
	HasLocalPassword          pgtype.Bool
	VerifiedAt                pgtype.Timestamp
	UserCreatedAt             pgtype.Timestamp
	UserUpdatedAt             pgtype.Timestamp
}

type FinishConnectionDeliveryParams

type FinishConnectionDeliveryParams struct {
	Status                   string
	JobState                 string
	RetryAfterAt             pgtype.Timestamptz
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	ProviderResponseMetadata []byte
	Now                      pgtype.Timestamptz
	OrgSlug                  slug.Slug
	AttemptSlug              slug.Slug
	ProviderAttempt          int32
}

type FinishInterruptedProofObservationParams

type FinishInterruptedProofObservationParams struct {
	OrgSlug       slug.Slug
	JobSlug       slug.Slug
	RequestDigest string
}

type FinishProofObservationParams

type FinishProofObservationParams struct {
	Observation       []byte
	ProtectedSnapshot []byte
	OrgSlug           slug.Slug
	JobSlug           slug.Slug
	RequestDigest     string
}

type GetCheckpointParams

type GetCheckpointParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type GetCurrentIncrementalCheckpointParams

type GetCurrentIncrementalCheckpointParams struct {
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	OperationIdentity   string
}

type GetGitHubAppInstallIntentForUpdateRow

type GetGitHubAppInstallIntentForUpdateRow struct {
	ID                    int
	OrganizationID        int32
	ActorSlug             string
	StateHash             string
	ExpiresAt             pgtype.Timestamptz
	ConsumedAt            pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
	RepositorySetupSlug   pgtype.Text
	RequestedAccountLogin pgtype.Text
	OrganizationSlug      slug.Slug
}

type GetGitHubAppInstallIntentRow

type GetGitHubAppInstallIntentRow struct {
	ID                    int
	OrganizationID        int32
	ActorSlug             string
	StateHash             string
	ExpiresAt             pgtype.Timestamptz
	ConsumedAt            pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
	RepositorySetupSlug   pgtype.Text
	RequestedAccountLogin pgtype.Text
	OrganizationSlug      slug.Slug
}

type GetGitLabProofWebhookByDataSourceParams

type GetGitLabProofWebhookByDataSourceParams struct {
	OrganizationSlug slug.Slug
	DataSourceSlug   slug.Slug
}

type GetGitLabProofWebhookByDataSourceRow

type GetGitLabProofWebhookByDataSourceRow struct {
	ID                    int
	OrganizationID        int32
	OrganizationSlug      slug.Slug
	DataSourceSlug        slug.Slug
	ProjectID             int64
	HookID                int64
	Status                string
	RouteKeyHash          string
	EncryptedSigningToken []byte
}

type GetGitLabProofWebhookByRouteRow

type GetGitLabProofWebhookByRouteRow struct {
	ID                    int
	OrganizationID        int32
	OrganizationSlug      slug.Slug
	DataSourceSlug        slug.Slug
	ProjectID             int64
	HookID                int64
	Status                string
	RouteKeyHash          string
	EncryptedSigningToken []byte
}

type GetPipelineCreationProposalParams

type GetPipelineCreationProposalParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	CreationSlug slug.Slug
}

type GetPipelineCreationProposalRow

type GetPipelineCreationProposalRow struct {
	OrganizationID   int32
	ProjectID        int64
	MemberID         int32
	Slug             slug.Slug
	PipelineSlug     string
	Request          []byte
	Result           []byte
	Status           string
	FailureCode      string
	PublishAttemptID string
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	MemberSlug       slug.Slug
}

type GetPipelineWebhookDeliveryForTriggerParams

type GetPipelineWebhookDeliveryForTriggerParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	DeliveryID      string
}

type GetPipelineWebhookDeliveryForTriggerRow

type GetPipelineWebhookDeliveryForTriggerRow struct {
	ID                       int
	OrganizationID           int32
	ProjectID                int64
	ProjectEnvironmentID     int64
	PipelineTriggerID        int64
	ReceiverID               string
	DeliveryID               string
	PayloadDigest            string
	PayloadSizeBytes         int64
	KeyVersion               int32
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	PipelineVersionSpecHash  pgtype.Text
	RunSlug                  string
	AttemptNumber            int32
	Status                   string
	FailureKind              pgtype.Text
	DecisionReason           pgtype.Text
	NextRetryAt              pgtype.Timestamptz
	EncryptedEnvelope        []byte
	EnvelopeExpiresAt        pgtype.Timestamptz
	ReceivedAt               pgtype.Timestamptz
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	DuplicateCount           int32
	LastDuplicateAt          pgtype.Timestamptz
	TriggerSlug              slug.Slug
	LinkedRunSlug            string
}

type GetPipelineWebhookIntakeParams

type GetPipelineWebhookIntakeParams struct {
	ReceiverID string
	DeliveryID string
}

type GetPipelineWebhookIntakeRow

type GetPipelineWebhookIntakeRow struct {
	ID               int
	ReceiverID       string
	DeliveryID       string
	PayloadDigest    string
	PayloadSizeBytes int64
	RunSlug          string
	ReceivedAt       pgtype.Timestamptz
	TriggerRevision  int64
	PipelineSlug     string
	RuntimeInputKeys []string
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	EnvironmentSlug  slug.Slug
	TriggerSlug      slug.Slug
}

type GetProjectRepositorySetupAttemptParams

type GetProjectRepositorySetupAttemptParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	SetupSlug   slug.Slug
}

type GetProjectRepositorySetupAttemptRow

type GetProjectRepositorySetupAttemptRow struct {
	Slug        slug.Slug
	Request     []byte
	Result      []byte
	Status      string
	FailureCode string
	AbandonedAt pgtype.Timestamptz
}

type GetProjectRepositorySetupParams

type GetProjectRepositorySetupParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type GetProjectRepositorySetupRow

type GetProjectRepositorySetupRow struct {
	Slug        slug.Slug
	Request     []byte
	Result      []byte
	Status      string
	FailureCode string
	AbandonedAt pgtype.Timestamptz
}

type GetProofWebhookDeliveryDigestParams

type GetProofWebhookDeliveryDigestParams struct {
	Provider   string
	DeliveryID string
}

type GetRunTimelineParams

type GetRunTimelineParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type GetSnowflakeWIFBindingForReconciliationParams

type GetSnowflakeWIFBindingForReconciliationParams struct {
	BindingID int
	OrgSlug   slug.Slug
	DsSlug    slug.Slug
}

type GetSnowflakeWIFBindingForReconciliationRow

type GetSnowflakeWIFBindingForReconciliationRow struct {
	ID               int
	OrganizationID   int32
	DataSourceID     int64
	Issuer           string
	Account          string
	Desired          bool
	State            string
	EntryID          string
	VerifiedAt       pgtype.Timestamptz
	ReconcileAfter   pgtype.Timestamptz
	Organization     slug.Slug
	DataSource       slug.Slug
	EffectiveDesired bool
}

type GetSnowflakeWIFOnboardingStateParams

type GetSnowflakeWIFOnboardingStateParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
	Account string
	Issuer  string
}

type GetUserPermissionsInOrganizationParams

type GetUserPermissionsInOrganizationParams struct {
	OrgSlug  slug.Slug
	UserSlug slug.Slug
}

type GetUserPermissionsInOrganizationRow

type GetUserPermissionsInOrganizationRow struct {
	Resource string
	Action   string
}

type GithubAppInstallIntent

type GithubAppInstallIntent struct {
	ID                    int
	OrganizationID        int32
	ActorSlug             string
	StateHash             string
	ExpiresAt             pgtype.Timestamptz
	ConsumedAt            pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
	RepositorySetupSlug   pgtype.Text
	RequestedAccountLogin pgtype.Text
}

type GithubAppInstallation

type GithubAppInstallation struct {
	ID                  int
	OrganizationID      int32
	InstallationID      int64
	AccountID           int64
	AccountLogin        string
	AccountType         string
	RepositorySelection string
	SuspendedAt         pgtype.Timestamptz
	DeletedAt           pgtype.Timestamptz
	CreatedAt           pgtype.Timestamptz
	UpdatedAt           pgtype.Timestamptz
}

type GithubAppRepository

type GithubAppRepository struct {
	ID             int
	OrganizationID int32
	InstallationID int64
	RepositoryID   int64
	FullName       string
	OwnerLogin     string
	Name           string
	RemovedAt      pgtype.Timestamptz
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
}

type GitlabProofWebhook

type GitlabProofWebhook struct {
	ID                    int
	OrganizationID        int32
	DataSourceID          int64
	ProjectID             int64
	HookID                int64
	Status                string
	RouteKeyHash          string
	EncryptedSigningToken []byte
	CreatedAt             pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
}

type HardDeleteAccountParams

type HardDeleteAccountParams struct {
	UserID   pgtype.Int4
	UserSlug pgtype.Text
}

type HasOtherAccountDeletionAdminParams

type HasOtherAccountDeletionAdminParams struct {
	OrgSlug slug.Slug
	UserID  int
}

type HasOtherAccountDeletionMemberParams

type HasOtherAccountDeletionMemberParams struct {
	OrgSlug slug.Slug
	UserID  int
}

type HasSucceededOrganizationRetentionRunForJobParams

type HasSucceededOrganizationRetentionRunForJobParams struct {
	OrgSlug     slug.Slug
	SourceJobID int64
}

type InsertBlockedIncrementalCheckpointParams

type InsertBlockedIncrementalCheckpointParams struct {
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	CheckpointKind      string
	DataSourceSlug      string
	OperationType       string
	OperationRef        pgtype.Text
	OperationInlineHash pgtype.Text
	OperationIdentity   string
	ObservedLowerBound  []byte
	ObservedUpperBound  []byte
	DisplayMetadata     []byte
	ObservedRunSlug     string
	BlockedReason       pgtype.Text
	ObservedAt          pgtype.Timestamptz
	BlockedAt           pgtype.Timestamptz
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
	PipelineVersionID   int
}

type InsertCommittedIncrementalCheckpointParams

type InsertCommittedIncrementalCheckpointParams struct {
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	CheckpointKind      string
	DataSourceSlug      string
	OperationType       string
	OperationRef        pgtype.Text
	OperationInlineHash pgtype.Text
	OperationIdentity   string
	ObservedLowerBound  []byte
	ObservedUpperBound  []byte
	DisplayMetadata     []byte
	ObservedRunSlug     string
	CommittingRunSlug   pgtype.Text
	ObservedAt          pgtype.Timestamptz
	CommittedAt         pgtype.Timestamptz
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
	PipelineVersionID   int
}

type InspectPipelineLogicalRunParams

type InspectPipelineLogicalRunParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type InspectPipelineLogicalRunRow

type InspectPipelineLogicalRunRow struct {
	RootRunSlug             string
	Closed                  pgtype.Bool
	Outcome                 pgtype.Text
	FinalAttemptRunSlug     pgtype.Text
	DecisionReason          pgtype.Text
	WaitingForRetry         bool
	PipelineSlug            string
	RunSlug                 string
	SourceAttemptNumber     int32
	Status                  string
	PipelineVersionSpecHash pgtype.Text
	DeploymentRevision      pgtype.Int8
}

type InspectRunRecencyEpisodesParams

type InspectRunRecencyEpisodesParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type InspectRunRecencyEpisodesRow

type InspectRunRecencyEpisodesRow struct {
	ID                         int
	Slug                       slug.Slug
	ExpectationID              int64
	DeploymentID               int64
	DeploymentRevision         int64
	PipelineVersionID          int64
	DeploymentResolutionDigest pgtype.Text
	DeployedAt                 pgtype.Timestamptz
	DeadlineAt                 pgtype.Timestamptz
	BreachedAt                 pgtype.Timestamptz
	LastSuccessRunSlug         pgtype.Text
	LastSuccessAt              pgtype.Timestamptz
	ResolvedAt                 pgtype.Timestamptz
	ResolutionReason           pgtype.Text
	RecoveryRunSlug            pgtype.Text
	RecoverySucceededAt        pgtype.Timestamptz
	ExpectationRevision        int64
	MaximumAgeSeconds          int64
	EnabledAt                  pgtype.Timestamptz
	VersionSpecHash            string
}

type InspectRunRecencyParams

type InspectRunRecencyParams struct {
	PipelineSlug    slug.Slug
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type InspectRunRecencyRow

type InspectRunRecencyRow struct {
	ExpectationID           int64
	ProjectEnvironmentID    int
	Revision                int64
	MaximumAgeSeconds       int64
	Enabled                 bool
	EnabledAt               pgtype.Timestamptz
	DeploymentID            int64
	DeploymentRevision      int64
	CurrentVersionID        int64
	VersionSpecHash         pgtype.Text
	CurrentResolutionDigest pgtype.Text
	DeployedAt              pgtype.Timestamptz
	SuccessRunSlug          pgtype.Text
	SucceededAt             pgtype.Timestamptz
	ScopeDisabled           pgtype.Bool
}

type InstanceAdminAudit

type InstanceAdminAudit struct {
	ID               int
	TargetUserSlug   string
	PreviousRole     string
	NewRole          string
	OperatorIdentity string
	OccurredAt       pgtype.Timestamptz
}

type IsDataSourceSlugReservedParams

type IsDataSourceSlugReservedParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type IsProofObservationActiveParams

type IsProofObservationActiveParams struct {
	OrgSlug       slug.Slug
	JobSlug       slug.Slug
	RequestDigest string
}

type ListAPIKeysByOrganizationParams

type ListAPIKeysByOrganizationParams struct {
	OrgSlug         slug.Slug
	RoleSlugFilter  string
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListAPIKeysByOrganizationRow

type ListAPIKeysByOrganizationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Name              string
	Description       pgtype.Text
	TokenHash         string
	TokenPrefix       string
	CreatedByMemberID pgtype.Int4
	RoleID            int32
	ExpiresAt         pgtype.Timestamptz
	RevokedAt         pgtype.Timestamptz
	LastUsedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	CanManageApiKeys  bool
	RoleSlug          slug.Slug
	CreatedByUserSlug slug.Slug
}

type ListActiveRunRecencyEpisodesParams

type ListActiveRunRecencyEpisodesParams struct {
	ProjectEnvironmentID int64
	PipelineSlug         string
}

type ListAlertDeliveryAttemptsForRecordParams

type ListAlertDeliveryAttemptsForRecordParams struct {
	OrgSlug         slug.Slug
	RecordSlug      slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListAlertDeliveryAttemptsForRecordRow

type ListAlertDeliveryAttemptsForRecordRow struct {
	ID                       int
	Slug                     slug.Slug
	NotificationRecordID     int64
	AlertPolicyID            pgtype.Int8
	DestinationID            pgtype.Int8
	DestinationType          string
	Status                   string
	ProviderAttempt          int32
	JobKind                  string
	JobQueue                 string
	JobState                 string
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	QueuedAt                 pgtype.Timestamptz
	SentAt                   pgtype.Timestamptz
	FailedAt                 pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	OrganizationID           int32
	DeliveryLeaseUntil       pgtype.Timestamptz
	RetryAfterAt             pgtype.Timestamptz
	OrgSlug                  slug.Slug
	NotificationRecordSlug   slug.Slug
	AlertPolicySlug          string
	DestinationSlug          string
	DestinationName          string
}

type ListAlertDestinationsByOrganizationParams

type ListAlertDestinationsByOrganizationParams struct {
	OrgSlug         slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListAlertPoliciesByOrganizationParams

type ListAlertPoliciesByOrganizationParams struct {
	OrgSlug         slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListAlertPoliciesByOrganizationRow

type ListAlertPoliciesByOrganizationRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Name             string
	Scope            string
	ProjectID        pgtype.Int8
	EnvironmentID    pgtype.Int8
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceRef        pgtype.Text
	Enabled          bool
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	SourceAction     pgtype.Text
	ProjectSlug      string
	EnvironmentSlug  string
	DestinationSlugs []string
}

type ListAllEnvironmentSecretsParams

type ListAllEnvironmentSecretsParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type ListAllEnvironmentSecretsRow

type ListAllEnvironmentSecretsRow struct {
	ID              int
	EnvironmentID   int64
	CredentialID    int64
	Key             string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	OrganizationID  int32
	EnvironmentSlug slug.Slug
	CredentialSlug  slug.Slug
}

type ListAllRuntimeVariablesParams

type ListAllRuntimeVariablesParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type ListAllRuntimeVariablesRow

type ListAllRuntimeVariablesRow struct {
	ID              int
	OrganizationID  int64
	EnvironmentID   int64
	Key             string
	ValueType       string
	ValueText       string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	EnvironmentSlug slug.Slug
}

type ListCompletionRunFinalizationsForSystemRow

type ListCompletionRunFinalizationsForSystemRow struct {
	ID              int
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	FailedRunSlug   string
}

type ListCredentialCiphertextsParams

type ListCredentialCiphertextsParams struct {
	AfterFamily int32
	AfterID     int64
	BatchSize   int32
}

type ListCredentialCiphertextsRow

type ListCredentialCiphertextsRow struct {
	Family      int32
	RecordID    int64
	Tenant      string
	Resource    string
	ResourceAux string
	Purpose     string
	Ciphertext  []byte
}

type ListDataSourceBindingsForDataSourceRefParams

type ListDataSourceBindingsForDataSourceRefParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
}

type ListDataSourceBindingsForDataSourceRefRow

type ListDataSourceBindingsForDataSourceRefRow struct {
	ID                      int
	ProjectEnvironmentID    int64
	DataSourceRefID         int64
	DataSourceID            int64
	CreatedAt               pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	OrganizationID          int32
	ProjectID               int64
	PipelineSpecID          int64
	PipelineSlug            slug.Slug
	DataSourceRefSlug       slug.Slug
	DataSourceRefName       string
	RefRequiredCapabilities []string
	EnvironmentSlug         slug.Slug
	DataSourceSlug          slug.Slug
	DataSourceName          string
	DataSourceType          string
	DataSourceActive        bool
	DataSourceReadOnly      bool
}

type ListDataSourceBindingsParams

type ListDataSourceBindingsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListDataSourceBindingsRow

type ListDataSourceBindingsRow struct {
	ID                      int
	ProjectEnvironmentID    int64
	DataSourceRefID         int64
	DataSourceID            int64
	CreatedAt               pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	OrganizationID          int32
	ProjectID               int64
	PipelineSpecID          int64
	PipelineSlug            slug.Slug
	DataSourceRefSlug       slug.Slug
	DataSourceRefName       string
	RefDataSourceType       string
	RefRequiredCapabilities []string
	EnvironmentSlug         slug.Slug
	DataSourceSlug          slug.Slug
	DataSourceName          string
	DataSourceType          string
	DataSourceActive        bool
	DataSourceReadOnly      bool
}

type ListDataSourceProofConfigurationsParams

type ListDataSourceProofConfigurationsParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug string
}

type ListDataSourceProofConfigurationsRow

type ListDataSourceProofConfigurationsRow struct {
	Slug                   slug.Slug
	Name                   string
	Type                   string
	ProofEnabled           bool
	ProofChecksEnabled     bool
	RepositoryID           string
	IsActive               bool
	CredentialKind         string
	CredentialStatus       string
	RevokedAt              pgtype.Timestamptz
	MappingsCurrent        pgtype.Bool
	InstallationID         string
	GithubConnected        bool
	GithubRepositoryAccess bool
	GitlabWebhookReady     bool
}

type ListDataSourceProofTargetContextsParams

type ListDataSourceProofTargetContextsParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type ListDataSourceProofTargetContextsRow

type ListDataSourceProofTargetContextsRow struct {
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	TargetRef         string
	PipelineDirectory pgtype.Text
}

type ListDataSourceProofTargetsParams

type ListDataSourceProofTargetsParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type ListDataSourceProofTargetsRow

type ListDataSourceProofTargetsRow struct {
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TargetRef       string
	PipelinePath    string
}

type ListDataSourceRefsByPipelineParams

type ListDataSourceRefsByPipelineParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug slug.Slug
}

type ListDataSourceRefsByPipelineRow

type ListDataSourceRefsByPipelineRow struct {
	ID                   int
	Slug                 slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	PipelineSpecID       int64
	PipelineSlug         slug.Slug
}

type ListDataSourceRefsParams

type ListDataSourceRefsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListDataSourceRefsRow

type ListDataSourceRefsRow struct {
	ID                   int
	Slug                 slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	PipelineSpecID       int64
	PipelineSlug         slug.Slug
}

type ListDataSourcesByOrgParams

type ListDataSourcesByOrgParams struct {
	OrgSlug         slug.Slug
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListDataSourcesByOrgRow

type ListDataSourcesByOrgRow struct {
	DataSource         DataSource
	CredentialMetadata []byte
}

type ListDelayedScheduleFiresForSystemRow

type ListDelayedScheduleFiresForSystemRow struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	TriggerRevision int64
	PipelineSlug    string
	ScheduledFireAt pgtype.Timestamptz
	ActualFireAt    pgtype.Timestamptz
}

type ListDriftImpactReportsParams

type ListDriftImpactReportsParams struct {
	ProjectSlug    pgtype.Text
	OrgSlug        slug.Slug
	PipelineSlug   pgtype.Text
	DataSourceSlug pgtype.Text
	Status         pgtype.Text
	Severity       pgtype.Text
	LimitCount     int64
}

type ListDriftImpactReportsRow

type ListDriftImpactReportsRow struct {
	ID             int
	PipelineSpecID pgtype.Int8
	DataSourceID   pgtype.Int8
	Slug           slug.Slug
	ReportType     string
	Status         string
	Severity       string
	Summary        string
	Changes        []byte
	Impacts        []byte
	CreatedAt      pgtype.Timestamptz
	SupersededAt   pgtype.Timestamptz
	ProjectSlug    slug.Slug
	PipelineSlug   slug.Slug
	DataSourceSlug slug.Slug
}

type ListDueScheduleTriggersRow

type ListDueScheduleTriggersRow struct {
	OrgSlug                  slug.Slug
	ProjectSlug              slug.Slug
	EnvironmentSlug          slug.Slug
	TriggerSlug              slug.Slug
	TriggerRevision          int64
	Enabled                  bool
	PipelineSlug             slug.Slug
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	ScheduleCron             pgtype.Text
	ScheduleTimezone         pgtype.Text
	ScheduleMisfirePolicy    pgtype.Text
	TriggerCreatedAt         pgtype.Timestamptz
	LastScheduledFireAt      pgtype.Timestamptz
}

type ListEnvironmentSecretsParams

type ListEnvironmentSecretsParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
	CursorKey       pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListEnvironmentSecretsRow

type ListEnvironmentSecretsRow struct {
	ID              int
	EnvironmentID   int64
	CredentialID    int64
	Key             string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	OrganizationID  int32
	EnvironmentSlug slug.Slug
	CredentialSlug  slug.Slug
}

type ListEnvironmentsByOrgParams

type ListEnvironmentsByOrgParams struct {
	OrgSlug         slug.Slug
	IncludeDeleted  bool
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListEventSourceRefsByOrganizationParams

type ListEventSourceRefsByOrganizationParams struct {
	LimitCount      int64
	OrgSlug         slug.Slug
	SourceKind      pgtype.Text
	SourceAction    pgtype.Text
	ProjectSlug     pgtype.Text
	EnvironmentSlug pgtype.Text
}

type ListEventSourceRefsByOrganizationRow

type ListEventSourceRefsByOrganizationRow struct {
	SourceRef   string
	SourceLabel string
}

type ListEventsByOrganizationParams

type ListEventsByOrganizationParams struct {
	OrgSlug         slug.Slug
	EventClass      pgtype.Text
	RequestID       pgtype.Text
	OccurredFrom    pgtype.Timestamptz
	OccurredBefore  pgtype.Timestamptz
	ActorType       pgtype.Text
	ActorSlug       pgtype.Text
	EntityType      pgtype.Text
	EntitySlug      pgtype.Text
	Action          pgtype.Text
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListInterruptedPipelineRunsForSystemRow

type ListInterruptedPipelineRunsForSystemRow struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
	JobState        string
}

type ListNotificationConnectionsRow

type ListNotificationConnectionsRow struct {
	Slug      slug.Slug
	Name      string
	Provider  string
	Status    string
	UpdatedAt pgtype.Timestamptz
	Account   []byte
}

type ListNotificationDeliveryTargetsForRecordParams

type ListNotificationDeliveryTargetsForRecordParams struct {
	OrgSlug    slug.Slug
	RecordSlug slug.Slug
}

type ListNotificationDeliveryTargetsForRecordRow

type ListNotificationDeliveryTargetsForRecordRow struct {
	OrgSlug          string
	OrganizationName string
	RecordSlug       string
	AlertPolicySlug  string
	DestinationSlug  string
	DestinationName  string
	DestinationType  string
	NonSecretConfig  []byte
	NotificationType string
	Severity         string
	SourceEntityType string
	SourceAction     string
	SourceRefs       []byte
	SafeMetadata     []byte
	OccurrenceCount  int32
}

type ListNotificationRecordsByOrganizationParams

type ListNotificationRecordsByOrganizationParams struct {
	OrgSlug          slug.Slug
	LifecycleState   pgtype.Text
	IncludeResolved  bool
	NotificationType pgtype.Text
	Severity         pgtype.Text
	SourceKind       pgtype.Text
	SourceAction     pgtype.Text
	SourceRef        pgtype.Text
	CursorSlug       pgtype.Text
	OrderDir         pgtype.Text
	CursorTimestamp  pgtype.Timestamptz
	LimitCount       int64
}

type ListNotificationRecordsByOrganizationRow

type ListNotificationRecordsByOrganizationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ProjectSlug       string
	EnvironmentSlug   string
}

type ListODCSConsumerSnapshotsParams

type ListODCSConsumerSnapshotsParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type ListODCSConsumerSnapshotsRow

type ListODCSConsumerSnapshotsRow struct {
	Origin            string
	EnvironmentSlug   string
	SpecHash          string
	SpecJsonb         []byte
	ResolvedContracts []byte
}

type ListODCSContractsParams

type ListODCSContractsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        string
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListODCSRevisionsParams

type ListODCSRevisionsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	ContractSlug    slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        string
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListODCSRevisionsRow

type ListODCSRevisionsRow struct {
	ID              int
	OrganizationID  int32
	ProjectID       int32
	ContractID      int32
	Slug            slug.Slug
	Digest          string
	OdcsVersion     string
	DocumentVersion string
	DeclaredStatus  string
	Status          string
	SchemaObjects   []byte
	CreatedAt       pgtype.Timestamptz
}

type ListOrganizationMemberInvitationsParams

type ListOrganizationMemberInvitationsParams struct {
	OrgSlug         slug.Slug
	Status          pgtype.Text
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListOrganizationMemberInvitationsRow

type ListOrganizationMemberInvitationsRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type ListOrganizationMembersParams

type ListOrganizationMembersParams struct {
	OrgSlug         slug.Slug
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListOrganizationMembersRow

type ListOrganizationMembersRow struct {
	ID             int
	OrganizationID int32
	UserID         int32
	RoleID         int32
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	Slug           slug.Slug
	Email          string
	RoleSlug       slug.Slug
}

type ListOrganizationRetentionRunsRow

type ListOrganizationRetentionRunsRow struct {
	Slug                     slug.Slug
	Attempt                  int32
	Status                   string
	PolicySnapshot           []byte
	QueryExecutionsDeleted   int64
	ReplayCheckpointsDeleted int64
	PipelineRunsDeleted      int64
	EventsDeleted            int64
	FailureCode              pgtype.Text
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
}

type ListOrganizationRetentionSettingsRow

type ListOrganizationRetentionSettingsRow struct {
	Slug     slug.Slug
	Settings []byte
}

type ListPendingOrganizationMemberInvitationsByEmailParams

type ListPendingOrganizationMemberInvitationsByEmailParams struct {
	Email string
	AsOf  pgtype.Timestamp
}

type ListPendingOrganizationMemberInvitationsByEmailRow

type ListPendingOrganizationMemberInvitationsByEmailRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type ListPendingPipelineCompletionsForSystemRow

type ListPendingPipelineCompletionsForSystemRow struct {
	ID              int
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type ListPendingRunFinalizationsForSystemRow

type ListPendingRunFinalizationsForSystemRow struct {
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	EnvironmentSlug  slug.Slug
	TriggerSlug      slug.Slug
	TriggerRevision  int64
	ScheduledAt      pgtype.Timestamptz
	RetryAttemptSlug string
	ReceiverID       string
	DeliveryID       string
	AttemptNumber    int32
}

type ListPermissionsForRoleParams

type ListPermissionsForRoleParams struct {
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
}

type ListPersonalAccessTokensByUserParams

type ListPersonalAccessTokensByUserParams struct {
	UserSlug        slug.Slug
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListPersonalAccessTokensByUserRow

type ListPersonalAccessTokensByUserRow struct {
	ID                            int
	UserID                        int32
	Slug                          slug.Slug
	Name                          string
	Description                   pgtype.Text
	TokenHash                     string
	TokenPrefix                   string
	ExpiresAt                     pgtype.Timestamptz
	RevokedAt                     pgtype.Timestamptz
	LastUsedAt                    pgtype.Timestamptz
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CanManagePersonalAccessTokens bool
	UserSlug                      slug.Slug
}

type ListPipelineCompletionEdgesParams

type ListPipelineCompletionEdgesParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type ListPipelineCompletionEdgesRow

type ListPipelineCompletionEdgesRow struct {
	Slug             slug.Slug
	PipelineSlug     string
	Enabled          bool
	CompletionConfig []byte
}

type ListPipelineCompletionRepairsForSystemRow

type ListPipelineCompletionRepairsForSystemRow struct {
	ID              int
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	ExecutionArgs   []byte
}

type ListPipelineCreationProposalsParams

type ListPipelineCreationProposalsParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	AfterSlug   slug.Slug
	PageLimit   int64
}

type ListPipelineCreationProposalsRow

type ListPipelineCreationProposalsRow struct {
	OrganizationID   int32
	ProjectID        int64
	MemberID         int32
	Slug             slug.Slug
	PipelineSlug     string
	Request          []byte
	Result           []byte
	Status           string
	FailureCode      string
	PublishAttemptID string
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	MemberSlug       slug.Slug
}

type ListPipelineDeploymentsParams

type ListPipelineDeploymentsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type ListPipelineDeploymentsRow

type ListPipelineDeploymentsRow struct {
	ID                       int
	ProjectEnvironmentID     int64
	PipelineSlug             string
	CurrentVersionID         int64
	PreviousVersionID        pgtype.Int8
	DeployedByActorType      string
	DeployedByActorSlug      pgtype.Text
	DeployedAt               pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	ProjectID                int64
	Revision                 int64
	CurrentResolutionDigest  pgtype.Text
	PreviousResolutionDigest pgtype.Text
	ProjectSlug              slug.Slug
	EnvironmentSlug          slug.Slug
	CurrentVersionSpecHash   string
	PreviousVersionSpecHash  pgtype.Text
}

type ListPipelineReferencesByProjectParams

type ListPipelineReferencesByProjectParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type ListPipelineRunCompletionDecisionsParams

type ListPipelineRunCompletionDecisionsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type ListPipelineRunCompletionDecisionsRow

type ListPipelineRunCompletionDecisionsRow struct {
	IsParent                   bool
	TriggerSlug                string
	TriggerRevision            int64
	UpstreamPipelineSlug       string
	RootRunSlug                string
	FinalAttemptRunSlug        string
	DownstreamPipelineSlug     string
	Condition                  string
	State                      string
	DecisionReason             pgtype.Text
	ChildRunSlug               pgtype.Text
	ChildStatus                pgtype.Text
	ChildOutcome               pgtype.Text
	SelectedVersionHash        pgtype.Text
	SelectedDeploymentRevision pgtype.Int8
	SelectedResolutionDigest   pgtype.Text
}

type ListPipelineRunsByProjectParams

type ListPipelineRunsByProjectParams struct {
	OrgSlug            slug.Slug
	ProjectSlug        slug.Slug
	EnvironmentSlug    slug.Slug
	Status             pgtype.Text
	PipelineSlug       pgtype.Text
	RunMode            pgtype.Text
	BackfillSeriesSlug pgtype.Text
	CursorSlug         pgtype.Text
	OrderDir           pgtype.Text
	CursorTimestamp    pgtype.Timestamptz
	LimitCount         int64
}

type ListPipelineRunsByProjectRow

type ListPipelineRunsByProjectRow struct {
	PipelineRun   PipelineRun
	SourceWebhook []byte
}

type ListPipelineSpecsByProjectParams

type ListPipelineSpecsByProjectParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        string
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListPipelineSpecsByProjectRow

type ListPipelineSpecsByProjectRow struct {
	ID                     int
	ProjectID              int64
	Slug                   slug.Slug
	Name                   string
	CurrentVersionID       pgtype.Int8
	SpecJsonb              []byte
	SpecHash               string
	SyncStatus             string
	SourcePath             string
	SourceRef              string
	LastAppliedCommit      string
	DeletedAt              pgtype.Timestamptz
	DeletedBy              pgtype.Int4
	DeleteReason           pgtype.Text
	CreatedAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	CurrentVersionSpecHash pgtype.Text
}

type ListPipelineTriggersParams

type ListPipelineTriggersParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListPipelineTriggersRow

type ListPipelineTriggersRow struct {
	ID                          int
	ProjectID                   int64
	ProjectEnvironmentID        int64
	PipelineID                  int64
	PipelineSlug                string
	PinnedPipelineVersionID     pgtype.Int8
	Slug                        slug.Slug
	Name                        string
	TriggerType                 string
	Enabled                     bool
	Revision                    int64
	VersionPolicy               string
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	CreatedByActorType          string
	CreatedByActorSlug          pgtype.Text
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
	DisabledAt                  pgtype.Timestamptz
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	CompletionConfig            []byte
	EnvironmentSlug             slug.Slug
	PipelineSlug_2              slug.Slug
	PinnedVersionHash           pgtype.Text
	EnabledKeyVersions          []int32
}

type ListPipelineValidationResultsParams

type ListPipelineValidationResultsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    pgtype.Text
	LimitCount      int64
}

type ListPipelineValidationResultsRow

type ListPipelineValidationResultsRow struct {
	ID                   int
	ProjectEnvironmentID int64
	PipelineID           pgtype.Int8
	PipelineVersionID    pgtype.Int8
	ValidationSlug       string
	PipelineSlug         string
	Source               string
	Valid                bool
	SpecHash             pgtype.Text
	Diagnostics          []byte
	ImpactReportSlug     pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	ProjectID            int64
	ImpactPipelineID     pgtype.Int8
	OrgSlug              slug.Slug
	ProjectSlug          slug.Slug
	EnvironmentSlug      slug.Slug
}

type ListPipelineVersionsByPipelineParams

type ListPipelineVersionsByPipelineParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug string
}

type ListPipelineWebhookDeliveriesForTriggerParams

type ListPipelineWebhookDeliveriesForTriggerParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListPipelineWebhookDeliveriesForTriggerRow

type ListPipelineWebhookDeliveriesForTriggerRow struct {
	ID                       int
	OrganizationID           int32
	ProjectID                int64
	ProjectEnvironmentID     int64
	PipelineTriggerID        int64
	ReceiverID               string
	DeliveryID               string
	PayloadDigest            string
	PayloadSizeBytes         int64
	KeyVersion               int32
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	PipelineVersionSpecHash  pgtype.Text
	RunSlug                  string
	AttemptNumber            int32
	Status                   string
	FailureKind              pgtype.Text
	DecisionReason           pgtype.Text
	NextRetryAt              pgtype.Timestamptz
	EncryptedEnvelope        []byte
	EnvelopeExpiresAt        pgtype.Timestamptz
	ReceivedAt               pgtype.Timestamptz
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	DuplicateCount           int32
	LastDuplicateAt          pgtype.Timestamptz
	TriggerSlug              slug.Slug
	LinkedRunSlug            string
}

type ListProjectEnvironmentsParams

type ListProjectEnvironmentsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListProjectEnvironmentsRow

type ListProjectEnvironmentsRow struct {
	ID                     int
	ProjectID              int64
	EnvironmentID          int64
	IsDefault              bool
	DeletedAt              pgtype.Timestamptz
	DeleteReason           pgtype.Text
	EnabledAt              pgtype.Timestamptz
	UpdatedAt              pgtype.Timestamptz
	OrganizationID         int32
	EnvironmentSlug        slug.Slug
	EnvironmentName        string
	EnvironmentDescription pgtype.Text
	EnvironmentColor       string
	EnvironmentProtected   bool
	EnvironmentDeletedAt   pgtype.Timestamptz
	EnvironmentCreatedAt   pgtype.Timestamptz
	EnvironmentUpdatedAt   pgtype.Timestamptz
}

type ListProjectsByOrgParams

type ListProjectsByOrgParams struct {
	OrgSlug         slug.Slug
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListProjectsByOrgRow

type ListProjectsByOrgRow struct {
	ID                             int
	OrganizationID                 int32
	Slug                           slug.Slug
	Name                           string
	PipelineBackendDataSourceID    pgtype.Int8
	PipelineBackendRepo            pgtype.Text
	PipelineBackendTrackedBranch   pgtype.Text
	CreatedAt                      pgtype.Timestamp
	UpdatedAt                      pgtype.Timestamp
	PipelineBackendPipelineDir     pgtype.Text
	PipelineBackendFirstCommitSha  pgtype.Text
	PipelineBackendDataSourceSlug  pgtype.Text
	PipelineBackendRepo_2          string
	PipelineBackendTrackedBranch_2 string
}

type ListProofLifecycleLinksByReceiptParams

type ListProofLifecycleLinksByReceiptParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	ReceiptSlug     slug.Slug
}

type ListProofLifecycleLinksByReceiptRow

type ListProofLifecycleLinksByReceiptRow struct {
	ID                     int
	OrganizationID         int32
	ProjectID              int64
	ProjectEnvironmentID   int64
	ReceiptID              int64
	CandidateID            int64
	Kind                   string
	Identifier             string
	DeploymentID           pgtype.Int8
	RunID                  pgtype.Int8
	SpecHash               string
	BindingFingerprint     string
	CapabilityFingerprint  string
	LinkedAt               pgtype.Timestamptz
	ReceiptSlug            slug.Slug
	RetainUntil            pgtype.Timestamptz
	Superseded             bool
	PipelineSlug           pgtype.Text
	CurrentVersionSpecHash string
	DeployedAt             pgtype.Timestamptz
	RunSlug                pgtype.Text
}

type ListProofObservationMaintenanceScopesParams

type ListProofObservationMaintenanceScopesParams struct {
	AfterOrganizationID       int32
	AfterProjectEnvironmentID int64
}

type ListProofObservationMaintenanceScopesRow

type ListProofObservationMaintenanceScopesRow struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
	OrganizationSlug     slug.Slug
	ProjectSlug          slug.Slug
	EnvironmentSlug      slug.Slug
	Disabled             bool
}

type ListProofReceiptMaintenanceOrganizationsRow

type ListProofReceiptMaintenanceOrganizationsRow struct {
	Slug           slug.Slug
	OrganizationID int32
}

type ListProofReceiptsParams

type ListProofReceiptsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListProofReceiptsRow

type ListProofReceiptsRow struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	EvidenceID            int64
	Slug                  slug.Slug
	ReceiptKey            string
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	CompilerVersion       string
	PolicyVersion         string
	AggregateVerdict      string
	Receipt               []byte
	SupersedesReceiptID   pgtype.Int8
	CreatedAt             pgtype.Timestamptz
	RetainUntil           pgtype.Timestamptz
	Superseded            bool
}

type ListProtectedBindingEnvironmentsForDataSourceRefParams

type ListProtectedBindingEnvironmentsForDataSourceRefParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
}

type ListProtectedBindingEnvironmentsForDataSourceRefRow

type ListProtectedBindingEnvironmentsForDataSourceRefRow struct {
	EnvironmentSlug slug.Slug
	Protected       bool
}

type ListQueriesByDataSourceParams

type ListQueriesByDataSourceParams struct {
	OrgSlug         slug.Slug
	DataSourceSlug  slug.Slug
	IncludeDeleted  bool
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListQueryExecutionsByQueryParams

type ListQueryExecutionsByQueryParams struct {
	OrgSlug         slug.Slug
	DataSourceSlug  slug.Slug
	QuerySlug       slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListQueryParametersByQueryParams

type ListQueryParametersByQueryParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type ListRecentAlertDeliveryAttemptsForRecordsParams

type ListRecentAlertDeliveryAttemptsForRecordsParams struct {
	LimitPerRecord int32
	OrgSlug        slug.Slug
	RecordSlugs    []string
}

type ListRecentAlertDeliveryAttemptsForRecordsRow

type ListRecentAlertDeliveryAttemptsForRecordsRow struct {
	ID                       int
	Slug                     slug.Slug
	NotificationRecordID     int64
	AlertPolicyID            pgtype.Int8
	DestinationID            pgtype.Int8
	DestinationType          string
	Status                   string
	ProviderAttempt          int32
	JobKind                  string
	JobQueue                 string
	JobState                 string
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	QueuedAt                 pgtype.Timestamptz
	SentAt                   pgtype.Timestamptz
	FailedAt                 pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	OrganizationID           int32
	DeliveryLeaseUntil       pgtype.Timestamptz
	RetryAfterAt             pgtype.Timestamptz
	OrgSlug                  string
	NotificationRecordSlug   string
	AlertPolicySlug          string
	DestinationSlug          string
	DestinationName          string
	AttemptRank              int64
}

type ListRolesByOrganizationParams

type ListRolesByOrganizationParams struct {
	OrgSlug         pgtype.Text
	OnlyDeleted     pgtype.Bool
	IncludeDeleted  pgtype.Bool
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      pgtype.Int8
}

type ListRunRecencyExpectationsForSystemRow

type ListRunRecencyExpectationsForSystemRow struct {
	ID                      int
	ProjectEnvironmentID    int64
	PipelineSlug            string
	Revision                int64
	MaximumAgeSeconds       int64
	Enabled                 bool
	EnabledAt               pgtype.Timestamptz
	CreatedAt               pgtype.Timestamptz
	OrgSlug                 slug.Slug
	ProjectSlug             slug.Slug
	EnvironmentSlug         slug.Slug
	DeploymentID            int64
	DeploymentRevision      int64
	CurrentVersionID        int64
	CurrentResolutionDigest pgtype.Text
	DeployedAt              pgtype.Timestamptz
	SuccessRunSlug          pgtype.Text
	SucceededAt             pgtype.Timestamptz
	ScopeDisabled           pgtype.Bool
}

type ListRuntimeVariablesParams

type ListRuntimeVariablesParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
	CursorKey       pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListRuntimeVariablesRow

type ListRuntimeVariablesRow struct {
	ID              int
	OrganizationID  int64
	EnvironmentID   int64
	Key             string
	ValueType       string
	ValueText       string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	EnvironmentSlug slug.Slug
}

type ListScheduleFiresForTriggerParams

type ListScheduleFiresForTriggerParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	CursorSlug      pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	LimitCount      int64
}

type ListScheduleFiresForTriggerRow

type ListScheduleFiresForTriggerRow struct {
	FireSlug        string
	TriggerSlug     slug.Slug
	TriggerRevision int64
	PipelineSlug    string
	ScheduledFireAt pgtype.Timestamptz
	ActualFireAt    pgtype.Timestamptz
	Status          string
	MisfireResult   string
	RunSlug         pgtype.Text
	SourceEventSlug pgtype.Text
	ErrorSummary    pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type ListSnowflakeWIFReconciliationRow

type ListSnowflakeWIFReconciliationRow struct {
	ID           int
	Organization slug.Slug
	DataSource   slug.Slug
}

type ListTriggerRetryAttemptsForRunParams

type ListTriggerRetryAttemptsForRunParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type ListTriggerRetryAttemptsForRunRow

type ListTriggerRetryAttemptsForRunRow struct {
	AttemptSlug     string
	Status          string
	DecisionReason  pgtype.Text
	TriggerSlug     string
	TriggerRevision int64
	PipelineSlug    string
	RootRunSlug     string
	RetryOfRunSlug  string
	RunSlug         string
	AttemptNumber   int32
	FailureKind     pgtype.Text
	SourceEventSlug pgtype.Text
	ScheduledAt     pgtype.Timestamptz
	EnqueuedAt      pgtype.Timestamptz
	StartedAt       pgtype.Timestamptz
	CompletedAt     pgtype.Timestamptz
	ErrorSummary    pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type ListUserOrganizationsParams

type ListUserOrganizationsParams struct {
	Slug            slug.Slug
	CursorSlug      pgtype.Text
	SortBy          pgtype.Text
	OrderDir        pgtype.Text
	CursorTimestamp pgtype.Timestamptz
	CursorText      pgtype.Text
	LimitCount      int64
}

type ListUserOrganizationsRow

type ListUserOrganizationsRow struct {
	ID             int
	OrganizationID int32
	UserID         int32
	RoleID         int32
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	Name           string
	Slug           slug.Slug
	Settings       []byte
	OrgCreatedAt   pgtype.Timestamp
	OrgUpdatedAt   pgtype.Timestamp
	RoleSlug       slug.Slug
}

type LoadClaimedScheduleFireParams

type LoadClaimedScheduleFireParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	TriggerRevision int64
	ScheduledFireAt pgtype.Timestamptz
}

type LoadClaimedScheduleFireRow

type LoadClaimedScheduleFireRow struct {
	OrgSlug                  slug.Slug
	ProjectSlug              slug.Slug
	EnvironmentSlug          slug.Slug
	TriggerSlug              slug.Slug
	FireSlug                 string
	Status                   string
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	ScheduleCron             string
	ScheduleTimezone         string
	ScheduleMisfirePolicy    string
	ScheduledFireAt          pgtype.Timestamptz
	ActualFireAt             pgtype.Timestamptz
	MisfireResult            string
	TriggerCreatedAt         pgtype.Timestamptz
}

type LoadPipelineCompletionSnapshotParams

type LoadPipelineCompletionSnapshotParams struct {
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	OrgSlug         slug.Slug
	SnapshotID      int
}

type LoadPipelineCompletionSnapshotRow

type LoadPipelineCompletionSnapshotRow struct {
	ID                         int
	OrganizationID             int64
	ProjectEnvironmentID       int64
	ClosureID                  int64
	TriggerID                  int64
	TriggerRevision            int64
	TriggerSlug                string
	RootRunSlug                string
	FinalAttemptRunSlug        string
	DownstreamPipelineSlug     string
	SelectedVersionID          pgtype.Int8
	SelectedVersionHash        pgtype.Text
	SelectedDeploymentRevision pgtype.Int8
	SelectedResolutionDigest   pgtype.Text
	SelectedMaterialization    []byte
	TriggerConfiguration       []byte
	ClosureAuthority           []byte
	CausalDepth                int32
	State                      string
	DecisionReason             pgtype.Text
	ChildRunSlug               pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	CompletedAt                pgtype.Timestamptz
	ExecutionArgs              []byte
	NextEvaluationAt           pgtype.Timestamptz
	SelectedDeploymentID       pgtype.Int8
	AncestorPipelineSlugs      []string
	ResourceRefusal            string
	RetryPolicy                []byte
	CurrentAuthority           []byte
}

type LoadPipelineWebhookDeliveryParams

type LoadPipelineWebhookDeliveryParams struct {
	ReceiverID    string
	DeliveryID    string
	AttemptNumber int32
	Now           pgtype.Timestamptz
}

type LoadPipelineWebhookDeliveryRow

type LoadPipelineWebhookDeliveryRow struct {
	ID                       int
	OrganizationID           int32
	ProjectID                int64
	ProjectEnvironmentID     int64
	PipelineTriggerID        int64
	ReceiverID               string
	DeliveryID               string
	PayloadDigest            string
	PayloadSizeBytes         int64
	KeyVersion               int32
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	PipelineVersionSpecHash  pgtype.Text
	RunSlug                  string
	AttemptNumber            int32
	Status                   string
	FailureKind              pgtype.Text
	DecisionReason           pgtype.Text
	NextRetryAt              pgtype.Timestamptz
	EncryptedEnvelope        []byte
	EnvelopeExpiresAt        pgtype.Timestamptz
	ReceivedAt               pgtype.Timestamptz
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	DuplicateCount           int32
	LastDuplicateAt          pgtype.Timestamptz
	OrgSlug                  slug.Slug
	ProjectSlug              slug.Slug
	EnvironmentSlug          slug.Slug
	TriggerSlug              slug.Slug
}

type LoadTriggerRetryAttemptForExecutionParams

type LoadTriggerRetryAttemptForExecutionParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	AttemptSlug     string
}

type LoadTriggerRetryAttemptForExecutionRow

type LoadTriggerRetryAttemptForExecutionRow struct {
	ID                            int
	ProjectEnvironmentID          int64
	PipelineTriggerID             pgtype.Int8
	AttemptSlug                   string
	Status                        string
	DecisionReason                pgtype.Text
	TriggerRevision               int64
	PipelineSlug                  string
	VersionPolicy                 string
	PinnedVersionHash             pgtype.Text
	PipelineVersionSpecHash       string
	RuntimeInputKeys              []string
	RetryEnabled                  bool
	RetryMaxAttempts              int32
	RetryBackoffStrategy          string
	RetryInitialDelaySeconds      int32
	RetryMaxDelaySeconds          int32
	RetryJitter                   bool
	RetryableFailureKinds         []string
	RetryMaxElapsedSeconds        pgtype.Int4
	SourceType                    string
	SourceSummary                 string
	SourceEntrypoint              string
	SourceActorType               string
	SourceActorSlug               pgtype.Text
	SourceRequestID               pgtype.Text
	SourceTraceID                 pgtype.Text
	SourceEventSlug               pgtype.Text
	SourceParameterKeys           []string
	SourceScheduleTriggerSlug     pgtype.Text
	SourceScheduleTriggerRevision pgtype.Int8
	SourceScheduleCron            pgtype.Text
	SourceScheduleTimezone        pgtype.Text
	SourceScheduleScheduledFireAt pgtype.Timestamptz
	SourceScheduleActualFireAt    pgtype.Timestamptz
	SourceScheduleMisfireResult   pgtype.Text
	RootRunSlug                   string
	RetryOfRunSlug                string
	RunSlug                       string
	AttemptNumber                 int32
	FailureKind                   pgtype.Text
	ScheduledAt                   pgtype.Timestamptz
	EnqueuedAt                    pgtype.Timestamptz
	StartedAt                     pgtype.Timestamptz
	CompletedAt                   pgtype.Timestamptz
	ErrorSummary                  pgtype.Text
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CompletionExecutionArgs       []byte
	CompletionTriggerSlug         pgtype.Text
	OrgSlug                       slug.Slug
	ProjectSlug                   slug.Slug
	EnvironmentSlug               slug.Slug
	TriggerSlug                   slug.Slug
}

type LockAccountDeletionOrganizationsRow

type LockAccountDeletionOrganizationsRow struct {
	Slug     slug.Slug
	RoleSlug slug.Slug
}

type LockAccountForDeletionRow

type LockAccountForDeletionRow struct {
	ID        int
	Slug      slug.Slug
	Email     string
	DeletedAt pgtype.Timestamptz
}

type LockDataSourceForUpdateParams

type LockDataSourceForUpdateParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type LockDeletionSubjectByIDRow

type LockDeletionSubjectByIDRow struct {
	ID        int
	Slug      slug.Slug
	Email     string
	DeletedAt pgtype.Timestamptz
}

type LockIncrementalCheckpointCommitParams

type LockIncrementalCheckpointCommitParams struct {
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	OperationIdentity   string
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
}

type LockNotificationConnectionOAuthGrantIntentParams

type LockNotificationConnectionOAuthGrantIntentParams struct {
	OrgSlug                    slug.Slug
	NotificationConnectionSlug slug.Slug
}

type LockNotificationConnectionOAuthGrantIntentRow

type LockNotificationConnectionOAuthGrantIntentRow struct {
	CredentialSlug slug.Slug
	Kind           string
	Status         string
	HasGrant       bool
}

type LockOAuthGrantIntentParams

type LockOAuthGrantIntentParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type LockOAuthGrantIntentRow

type LockOAuthGrantIntentRow struct {
	CredentialSlug         slug.Slug
	Kind                   string
	Status                 string
	ConnectionTestRevision int64
	HasGrant               bool
}

type LockODCSContractParams

type LockODCSContractParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	ContractSlug slug.Slug
}

type LockOrganizationGitLabOAuthGrantIntentRow

type LockOrganizationGitLabOAuthGrantIntentRow struct {
	CredentialSlug slug.Slug
	Kind           string
	Status         string
	HasGrant       bool
}

type LockPipelineRunRecoveryFenceParams

type LockPipelineRunRecoveryFenceParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type LockPipelineTriggerTopologyParams

type LockPipelineTriggerTopologyParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type LockPipelineWebhookCredentialOwnerParams

type LockPipelineWebhookCredentialOwnerParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
}

type LockProofObservationMaintenanceScopeParams

type LockProofObservationMaintenanceScopeParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type LockProofObservationMaintenanceScopeRow

type LockProofObservationMaintenanceScopeRow struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
	OrganizationSlug     string
	ProjectSlug          string
	EnvironmentSlug      string
	Disabled             bool
}

type LockProofObservationPolicyForCleanupParams

type LockProofObservationPolicyForCleanupParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type LockProofObservationPolicyParams

type LockProofObservationPolicyParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type LockRunRecencyScopeParams

type LockRunRecencyScopeParams struct {
	OrgSlug         string
	ProjectSlug     string
	EnvironmentSlug string
	PipelineSlug    string
}

type LockSnowflakeWIFConnectionParams

type LockSnowflakeWIFConnectionParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type MarkAPIKeyUsedParams

type MarkAPIKeyUsedParams struct {
	OrgSlug    slug.Slug
	ApiKeySlug slug.Slug
}

type MarkAlertDeliveryAttemptFailedParams

type MarkAlertDeliveryAttemptFailedParams struct {
	OrgSlug                  pgtype.Text
	ProviderAttempt          pgtype.Int4
	JobState                 pgtype.Text
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	FailedAt                 pgtype.Timestamptz
	AttemptSlug              pgtype.Text
}

type MarkAlertDeliveryAttemptFailedRow

type MarkAlertDeliveryAttemptFailedRow struct {
	ID                       int
	Slug                     slug.Slug
	NotificationRecordID     int64
	AlertPolicyID            pgtype.Int8
	DestinationID            pgtype.Int8
	DestinationType          string
	Status                   string
	ProviderAttempt          int32
	JobKind                  string
	JobQueue                 string
	JobState                 string
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	QueuedAt                 pgtype.Timestamptz
	SentAt                   pgtype.Timestamptz
	FailedAt                 pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	OrganizationID           int32
	DeliveryLeaseUntil       pgtype.Timestamptz
	RetryAfterAt             pgtype.Timestamptz
	OrgSlug                  slug.Slug
	NotificationRecordSlug   slug.Slug
	AlertPolicySlug          string
	DestinationSlug          string
	DestinationName          string
}

type MarkAlertDeliveryAttemptSentParams

type MarkAlertDeliveryAttemptSentParams struct {
	OrgSlug                  pgtype.Text
	ProviderAttempt          pgtype.Int4
	JobState                 pgtype.Text
	ProviderResponseMetadata []byte
	SentAt                   pgtype.Timestamptz
	AttemptSlug              pgtype.Text
}

type MarkAlertDeliveryAttemptSentRow

type MarkAlertDeliveryAttemptSentRow struct {
	ID                       int
	Slug                     slug.Slug
	NotificationRecordID     int64
	AlertPolicyID            pgtype.Int8
	DestinationID            pgtype.Int8
	DestinationType          string
	Status                   string
	ProviderAttempt          int32
	JobKind                  string
	JobQueue                 string
	JobState                 string
	ProviderResponseMetadata []byte
	ErrorCategory            pgtype.Text
	ErrorMessage             pgtype.Text
	QueuedAt                 pgtype.Timestamptz
	SentAt                   pgtype.Timestamptz
	FailedAt                 pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	OrganizationID           int32
	DeliveryLeaseUntil       pgtype.Timestamptz
	RetryAfterAt             pgtype.Timestamptz
	OrgSlug                  slug.Slug
	NotificationRecordSlug   slug.Slug
	AlertPolicySlug          string
	DestinationSlug          string
	DestinationName          string
}

type MarkAsVerifiedParams

type MarkAsVerifiedParams struct {
	VerifiedAt pgtype.Timestamp
	Slug       slug.Slug
}

type MarkCredentialRevokedParams

type MarkCredentialRevokedParams struct {
	OrgSlug                    slug.Slug
	ExpectedCredentialSlug     slug.Slug
	ExpectedGrantUpdatedAt     pgtype.Timestamptz
	OwnerKind                  string
	NotificationConnectionSlug slug.Slug
	DataSourceSlug             slug.Slug
	RevokedAt                  pgtype.Timestamptz
	FailureCode                pgtype.Text
	FailureMessage             pgtype.Text
}

type MarkCredentialRevokedRow

type MarkCredentialRevokedRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Kind             string
	CredentialType   pgtype.Text
	Status           string
	EncryptedPayload []byte
	RotatedAt        pgtype.Timestamptz
	RevokedAt        pgtype.Timestamptz
	FailureCode      pgtype.Text
	FailureMessage   pgtype.Text
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	GrantUpdatedAt   pgtype.Timestamptz
}

type MarkDataSourceSchemaImportFailedParams

type MarkDataSourceSchemaImportFailedParams struct {
	ErrorCode    pgtype.Text
	ErrorMessage pgtype.Text
	FinishedAt   pgtype.Timestamptz
	OrgSlug      slug.Slug
	DsSlug       slug.Slug
	AttemptID    pgtype.Text
}

type MarkDataSourceSchemaImportFailedRow

type MarkDataSourceSchemaImportFailedRow struct {
	Slug                     slug.Slug
	SchemaImportStatus       string
	SchemaImportErrorCode    pgtype.Text
	SchemaImportErrorMessage pgtype.Text
	SchemaImportStartedAt    pgtype.Timestamptz
	SchemaImportFinishedAt   pgtype.Timestamptz
	Started                  bool
}

type MarkDataSourceSchemaImportReadyParams

type MarkDataSourceSchemaImportReadyParams struct {
	FinishedAt pgtype.Timestamptz
	OrgSlug    slug.Slug
	DsSlug     slug.Slug
	AttemptID  pgtype.Text
}

type MarkDataSourceSchemaImportReadyRow

type MarkDataSourceSchemaImportReadyRow struct {
	Slug                     slug.Slug
	SchemaImportStatus       string
	SchemaImportErrorCode    pgtype.Text
	SchemaImportErrorMessage pgtype.Text
	SchemaImportStartedAt    pgtype.Timestamptz
	SchemaImportFinishedAt   pgtype.Timestamptz
	Started                  bool
}

type MarkDataSourceTestFailureParams

type MarkDataSourceTestFailureParams struct {
	ErrorMessage     pgtype.Text
	TestedAtTs       pgtype.Timestamptz
	OrgSlug          slug.Slug
	DsSlug           slug.Slug
	ExpectedRevision int64
}

type MarkDataSourceTestSuccessParams

type MarkDataSourceTestSuccessParams struct {
	TestedAtTs       pgtype.Timestamptz
	OrgSlug          slug.Slug
	DsSlug           slug.Slug
	ExpectedRevision int64
}

type MarkPersonalAccessTokenUsedParams

type MarkPersonalAccessTokenUsedParams struct {
	UserSlug slug.Slug
	PatSlug  slug.Slug
}

type MarkPipelineRunRunningParams

type MarkPipelineRunRunningParams struct {
	StartedAt       pgtype.Timestamptz
	Timeline        []byte
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
	RunSlug         string
}

type MarkPipelineRunRunningRow

type MarkPipelineRunRunningRow struct {
	PipelineRun   PipelineRun
	SourceWebhook []byte
}

type MarkPipelineSinkEffectSucceededParams

type MarkPipelineSinkEffectSucceededParams struct {
	ReplayDecision    string
	DiagnosticCode    pgtype.Text
	DiagnosticSummary pgtype.Text
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	ReplayIdentity    string
	SinkStepSlug      string
	IdempotencyKey    string
}

type MarkPipelineWebhookDeliveryRunningParams

type MarkPipelineWebhookDeliveryRunningParams struct {
	StartedAt     pgtype.Timestamptz
	ReceiverID    string
	DeliveryID    string
	AttemptNumber int32
}

type MarkScheduleFireRunningParams

type MarkScheduleFireRunningParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	TriggerRevision int64
	ScheduledFireAt pgtype.Timestamptz
}

type MarkStaticEnvironmentSecretRevokedParams

type MarkStaticEnvironmentSecretRevokedParams struct {
	RevokedAt            pgtype.Timestamptz
	OrgSlug              slug.Slug
	EnvironmentSlug      slug.Slug
	EnvironmentSecretKey string
}

type MarkStaticEnvironmentSecretRotatedParams

type MarkStaticEnvironmentSecretRotatedParams struct {
	RotatedAt                 pgtype.Timestamptz
	OrgSlug                   slug.Slug
	EnvironmentSlug           slug.Slug
	EnvironmentSecretKey      string
	ReplacementCredentialSlug slug.Slug
}

type MarkTriggerRetryAttemptRunningParams

type MarkTriggerRetryAttemptRunningParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	AttemptSlug     string
}

type NotificationConnection

type NotificationConnection struct {
	ID             int
	OrganizationID int32
	Slug           slug.Slug
	Name           string
	Provider       string
	CredentialID   int64
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
}

type NotificationRecord

type NotificationRecord struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
}

type NullRiverJobState

type NullRiverJobState struct {
	RiverJobState RiverJobState
	Valid         bool // Valid is true if RiverJobState is not NULL
}

func (*NullRiverJobState) Scan

func (ns *NullRiverJobState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullRiverJobState) Value

func (ns NullRiverJobState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type ObservePipelineRunWorkerParams

type ObservePipelineRunWorkerParams struct {
	ObservedAt      pgtype.Timestamptz
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type OdcsArtifact

type OdcsArtifact struct {
	OrganizationID int32
	ProjectID      int32
	ContractID     int32
	RevisionSlug   string
	SourceRepo     string
	SourceCommit   string
	SourcePath     string
	Format         string
	ArtifactDigest string
	Original       []byte
	CreatedAt      pgtype.Timestamptz
}

type OdcsContract

type OdcsContract struct {
	ID             int
	OrganizationID int32
	ProjectID      int32
	Slug           slug.Slug
	Name           string
	OdcsID         string
	Status         string
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
}

type OdcsContractRevision

type OdcsContractRevision struct {
	ID              int
	OrganizationID  int32
	ProjectID       int32
	ContractID      int32
	Slug            slug.Slug
	Digest          string
	OdcsVersion     string
	DocumentVersion string
	DeclaredStatus  string
	Status          string
	Document        []byte
	SchemaObjects   []byte
	CreatedAt       pgtype.Timestamptz
}

type Organization

type Organization struct {
	ID        int
	Name      string
	Slug      slug.Slug
	Settings  []byte
	CreatedAt pgtype.Timestamp
	UpdatedAt pgtype.Timestamp
}

type OrganizationGitlabConnection

type OrganizationGitlabConnection struct {
	ID             int
	OrganizationID int32
	CredentialID   int64
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
}

type OrganizationMember

type OrganizationMember struct {
	ID             int
	OrganizationID int32
	UserID         int32
	RoleID         int32
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
}

type OrganizationMemberInvitation

type OrganizationMemberInvitation struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Email            string
	RoleID           int32
	InvitedByUserID  pgtype.Int4
	AcceptedByUserID pgtype.Int4
	AcceptedMemberID pgtype.Int4
	TokenHash        string
	Status           string
	ExpiresAt        pgtype.Timestamp
	LastSentAt       pgtype.Timestamp
	AcceptedAt       pgtype.Timestamp
	DeclinedAt       pgtype.Timestamp
	RevokedAt        pgtype.Timestamp
	ExpiredAt        pgtype.Timestamp
	CreatedAt        pgtype.Timestamp
	UpdatedAt        pgtype.Timestamp
}

type OrganizationRetentionRun

type OrganizationRetentionRun struct {
	ID                       int
	OrganizationID           int32
	Slug                     slug.Slug
	SourceJobID              int64
	Attempt                  int32
	Status                   string
	PolicySnapshot           []byte
	QueryExecutionsDeleted   int64
	ReplayCheckpointsDeleted int64
	PipelineRunsDeleted      int64
	EventsDeleted            int64
	FailureCode              pgtype.Text
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
}

type Permission

type Permission struct {
	ID       int
	Resource string
	Action   string
}

type PersonalAccessToken

type PersonalAccessToken struct {
	ID                            int
	UserID                        int32
	Slug                          slug.Slug
	Name                          string
	Description                   pgtype.Text
	TokenHash                     string
	TokenPrefix                   string
	ExpiresAt                     pgtype.Timestamptz
	RevokedAt                     pgtype.Timestamptz
	LastUsedAt                    pgtype.Timestamptz
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CanManagePersonalAccessTokens bool
}

type PipelineCheckpoint

type PipelineCheckpoint struct {
	ID                         int
	ProjectEnvironmentID       int64
	RunSlug                    string
	StepSlug                   string
	PipelineSpec               []byte
	StepResults                []byte
	IncrementalSourceWindows   []byte
	CreatedAt                  pgtype.Timestamptz
	UpdatedAt                  pgtype.Timestamptz
	CompiledPlan               []byte
	CompiledPlanDigest         pgtype.Text
	DeploymentPlan             []byte
	DeploymentResolutionDigest pgtype.Text
}

type PipelineCompiledPlan

type PipelineCompiledPlan struct {
	ID               int
	ProjectID        int64
	PipelineSlug     string
	Digest           string
	AuthoredSpecHash string
	FormatVersion    int32
	Materialization  []byte
	CreatedAt        pgtype.Timestamptz
}

type PipelineCompletionCapacity

type PipelineCompletionCapacity struct {
	OrganizationID int64
	Slot           int32
	ClosureID      int64
}

type PipelineCompletionSnapshot

type PipelineCompletionSnapshot struct {
	ID                         int
	OrganizationID             int64
	ProjectEnvironmentID       int64
	ClosureID                  int64
	TriggerID                  int64
	TriggerRevision            int64
	TriggerSlug                string
	RootRunSlug                string
	FinalAttemptRunSlug        string
	DownstreamPipelineSlug     string
	SelectedVersionID          pgtype.Int8
	SelectedVersionHash        pgtype.Text
	SelectedDeploymentRevision pgtype.Int8
	SelectedResolutionDigest   pgtype.Text
	SelectedMaterialization    []byte
	TriggerConfiguration       []byte
	ClosureAuthority           []byte
	CausalDepth                int32
	State                      string
	DecisionReason             pgtype.Text
	ChildRunSlug               pgtype.Text
	CreatedAt                  pgtype.Timestamptz
	CompletedAt                pgtype.Timestamptz
	ExecutionArgs              []byte
	NextEvaluationAt           pgtype.Timestamptz
	SelectedDeploymentID       pgtype.Int8
	AncestorPipelineSlugs      []string
}

type PipelineCompletionTombstone

type PipelineCompletionTombstone struct {
	OrganizationID  int64
	ClosureID       int64
	TriggerID       int64
	TriggerRevision int64
}

type PipelineCompletionTriggerRevision

type PipelineCompletionTriggerRevision struct {
	OrganizationID       int64
	ProjectEnvironmentID int64
	TriggerID            int64
	TriggerSlug          string
	Revision             int64
	Configuration        []byte
	RevokedAt            pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
}

type PipelineCreationProposal

type PipelineCreationProposal struct {
	OrganizationID   int32
	ProjectID        int64
	MemberID         int32
	Slug             slug.Slug
	PipelineSlug     string
	Request          []byte
	Result           []byte
	Status           string
	FailureCode      string
	PublishAttemptID string
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
}

type PipelineDeployment

type PipelineDeployment struct {
	ID                       int
	ProjectEnvironmentID     int64
	PipelineSlug             string
	CurrentVersionID         int64
	PreviousVersionID        pgtype.Int8
	DeployedByActorType      string
	DeployedByActorSlug      pgtype.Text
	DeployedAt               pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	ProjectID                int64
	Revision                 int64
	CurrentResolutionDigest  pgtype.Text
	PreviousResolutionDigest pgtype.Text
}

type PipelineDeploymentResolution

type PipelineDeploymentResolution struct {
	ID                   int
	ProjectID            int64
	ProjectEnvironmentID int64
	PipelineSlug         string
	CompiledDigest       string
	Digest               string
	Materialization      []byte
	CreatedAt            pgtype.Timestamptz
}

type PipelineDraft

type PipelineDraft struct {
	ID                        int
	ProjectID                 int64
	PipelineSlug              string
	MemberID                  int32
	BasedOnVersionID          pgtype.Int8
	SpecJsonb                 []byte
	DraftState                pgtype.Text
	BaseRef                   pgtype.Text
	BaseCommitSha             pgtype.Text
	BranchName                pgtype.Text
	BranchHeadSha             pgtype.Text
	ProposalProvider          pgtype.Text
	ProposalID                pgtype.Text
	ProposalUrl               pgtype.Text
	ProposalState             pgtype.Text
	LastProposedDraftHash     pgtype.Text
	QueuedAt                  pgtype.Timestamptz
	ProposalUpdatedAt         pgtype.Timestamptz
	FailedAt                  pgtype.Timestamptz
	CreatedAt                 pgtype.Timestamptz
	UpdatedAt                 pgtype.Timestamptz
	PublishAttemptID          pgtype.Text
	RefreshAttemptID          pgtype.Text
	FailureCode               pgtype.Text
	FailureMessage            pgtype.Text
	ProposalAuthorityID       pgtype.Int8
	PublicationMode           pgtype.Text
	ProviderHost              pgtype.Text
	ProviderAccountID         pgtype.Text
	ProviderRepositoryID      pgtype.Text
	ProviderCredentialID      pgtype.Text
	ExecutingPrincipalID      pgtype.Text
	ExecutingPrincipalDisplay pgtype.Text
	AuthoritySource           pgtype.Text
	OrganizationID            int32
}

type PipelineIncrementalCheckpoint

type PipelineIncrementalCheckpoint struct {
	ID                   int
	ProjectID            int64
	ProjectEnvironmentID int64
	PipelineSlug         string
	PipelineVersionID    int64
	SourceStepSlug       string
	CheckpointNamespace  string
	CheckpointKind       string
	DataSourceSlug       string
	OperationType        string
	OperationRef         pgtype.Text
	OperationInlineHash  pgtype.Text
	OperationIdentity    string
	ObservedLowerBound   []byte
	ObservedUpperBound   []byte
	DisplayMetadata      []byte
	CommitStatus         string
	ObservedRunSlug      string
	CommittingRunSlug    pgtype.Text
	BlockedReason        pgtype.Text
	ObservedAt           pgtype.Timestamptz
	CommittedAt          pgtype.Timestamptz
	SupersededAt         pgtype.Timestamptz
	BlockedAt            pgtype.Timestamptz
	ExpiredAt            pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
}

type PipelineIncrementalCheckpointLock

type PipelineIncrementalCheckpointLock struct {
	ID                   int
	ProjectID            int64
	ProjectEnvironmentID int64
	PipelineSlug         string
	SourceStepSlug       string
	CheckpointNamespace  string
	OperationIdentity    string
	CreatedAt            pgtype.Timestamptz
}

type PipelineProposalAuthority

type PipelineProposalAuthority struct {
	ID                        int
	OrganizationID            int32
	ProjectID                 int64
	DataSourceID              int64
	CredentialID              int64
	PublicationMode           string
	ProviderHost              string
	ProviderAccountID         string
	ProviderRepositoryID      string
	ProviderCredentialID      string
	ExecutingPrincipalID      string
	ExecutingPrincipalDisplay string
	AuthoritySource           string
	RevokedAt                 pgtype.Timestamptz
	CreatedAt                 pgtype.Timestamptz
	UpdatedAt                 pgtype.Timestamptz
}

type PipelineReference

type PipelineReference struct {
	ID               int
	ProjectID        int64
	Slug             slug.Slug
	Name             string
	CurrentVersionID pgtype.Int8
	HasDraft         bool
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
}

type PipelineRun

type PipelineRun struct {
	ID                            int
	ProjectEnvironmentID          int64
	PipelineVersionID             pgtype.Int8
	PipelineVersionSpecHash       pgtype.Text
	ApiVersion                    string
	PipelineSlug                  string
	RunSlug                       string
	RequestID                     pgtype.Text
	SourceType                    string
	SourceSummary                 string
	SourceEntrypoint              string
	SourceActorType               string
	SourceActorSlug               pgtype.Text
	SourceRequestID               pgtype.Text
	SourceTraceID                 pgtype.Text
	SourceEnvironmentSlug         string
	SourceParameterKeys           []string
	Status                        string
	DurationMs                    int64
	StepCount                     int32
	StepSlug                      string
	ErrorSummary                  pgtype.Text
	FailureKind                   pgtype.Text
	FailureSide                   pgtype.Text
	StartedAt                     pgtype.Timestamptz
	EndedAt                       pgtype.Timestamptz
	ReplayOfRunSlug               pgtype.Text
	ReplayFromStep                pgtype.Text
	SourceEventSlug               pgtype.Text
	SourceAttemptNumber           int32
	SourceRootRunSlug             pgtype.Text
	SourceRetryOfRunSlug          pgtype.Text
	SourceScheduleTriggerSlug     pgtype.Text
	SourceScheduleTriggerRevision pgtype.Int8
	SourceScheduleCron            pgtype.Text
	SourceScheduleTimezone        pgtype.Text
	SourceScheduleScheduledFireAt pgtype.Timestamptz
	SourceScheduleActualFireAt    pgtype.Timestamptz
	SourceScheduleMisfireResult   pgtype.Text
	RunMode                       string
	CheckpointStatus              string
	IncrementalSourceStepSlug     pgtype.Text
	IncrementalBlockedReason      pgtype.Text
	ReplaySafetyStatus            pgtype.Text
	ReplayBlockedReason           pgtype.Text
	BackfillSeriesSlug            pgtype.Text
	BackfillChunkIndex            int32
	BackfillChunkCount            int32
	IncrementalDiagnostics        []byte
	Timeline                      []byte
	CreatedAt                     pgtype.Timestamptz
	SourceWebhookDeliveryID       pgtype.Int8
	ProjectID                     int64
	DeploymentResolutionDigest    pgtype.Text
	DeploymentID                  pgtype.Int8
	DeploymentRevision            pgtype.Int8
	WorkerJobID                   pgtype.Int8
}

type PipelineRunLogicalClosure

type PipelineRunLogicalClosure struct {
	ID                   int
	OrganizationID       int64
	ProjectEnvironmentID int64
	RootRunSlug          string
	FinalAttemptRunSlug  string
	Status               string
	DecisionReason       string
	ClosedAt             pgtype.Timestamptz
}

type PipelineRunRecencyEpisode

type PipelineRunRecencyEpisode struct {
	ID                         int
	Slug                       slug.Slug
	ExpectationID              int64
	DeploymentID               int64
	DeploymentRevision         int64
	PipelineVersionID          int64
	DeploymentResolutionDigest pgtype.Text
	DeployedAt                 pgtype.Timestamptz
	DeadlineAt                 pgtype.Timestamptz
	BreachedAt                 pgtype.Timestamptz
	LastSuccessRunSlug         pgtype.Text
	LastSuccessAt              pgtype.Timestamptz
	ResolvedAt                 pgtype.Timestamptz
	ResolutionReason           pgtype.Text
	RecoveryRunSlug            pgtype.Text
	RecoverySucceededAt        pgtype.Timestamptz
}

type PipelineRunRecencyExpectation

type PipelineRunRecencyExpectation struct {
	ID                   int
	ProjectEnvironmentID int64
	PipelineSlug         string
	Revision             int64
	MaximumAgeSeconds    int64
	Enabled              bool
	EnabledAt            pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
}

type PipelineRunRecencySuccess

type PipelineRunRecencySuccess struct {
	ProjectEnvironmentID       int64
	PipelineSlug               string
	DeploymentID               int64
	DeploymentRevision         int64
	PipelineVersionID          int64
	DeploymentResolutionDigest pgtype.Text
	RunSlug                    string
	SucceededAt                pgtype.Timestamptz
}

type PipelineRunTerminalObligation

type PipelineRunTerminalObligation struct {
	ID                   int
	OrganizationID       int64
	ProjectEnvironmentID int64
	RootRunSlug          string
	AttemptRunSlug       string
	AttemptStatus        string
	SourceType           string
	OutcomeUncertain     bool
	Excluded             bool
	ExclusionReason      pgtype.Text
	ResolvedAt           pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
	NextEvaluationAt     pgtype.Timestamptz
	FinalizationReason   pgtype.Text
}

type PipelineScheduleFire

type PipelineScheduleFire struct {
	ID                       int
	ProjectEnvironmentID     int64
	PipelineTriggerID        int64
	FireSlug                 string
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	ScheduleCron             string
	ScheduleTimezone         string
	ScheduleMisfirePolicy    string
	ScheduledFireAt          pgtype.Timestamptz
	ActualFireAt             pgtype.Timestamptz
	MisfireResult            string
	Status                   string
	RunSlug                  pgtype.Text
	SourceEventSlug          pgtype.Text
	ErrorSummary             pgtype.Text
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
}

type PipelineSinkEffect

type PipelineSinkEffect struct {
	ID                   int
	ProjectEnvironmentID int64
	RunSlug              string
	SinkStepSlug         string
	IdempotencyKey       string
	IdempotencyClass     string
	ReplayMethod         string
	ReplayDecision       string
	State                string
	DiagnosticCode       pgtype.Text
	DiagnosticSummary    pgtype.Text
	StartedAt            pgtype.Timestamptz
	SucceededAt          pgtype.Timestamptz
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
}

type PipelineSpec

type PipelineSpec struct {
	ID                int
	ProjectID         int64
	Slug              slug.Slug
	Name              string
	CurrentVersionID  pgtype.Int8
	SpecJsonb         []byte
	SpecHash          string
	SyncStatus        string
	SourcePath        string
	SourceRef         string
	LastAppliedCommit string
	DeletedAt         pgtype.Timestamptz
	DeletedBy         pgtype.Int4
	DeleteReason      pgtype.Text
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
}

type PipelineTrigger

type PipelineTrigger struct {
	ID                          int
	ProjectID                   int64
	ProjectEnvironmentID        int64
	PipelineID                  int64
	PipelineSlug                string
	PinnedPipelineVersionID     pgtype.Int8
	Slug                        slug.Slug
	Name                        string
	TriggerType                 string
	Enabled                     bool
	Revision                    int64
	VersionPolicy               string
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	CreatedByActorType          string
	CreatedByActorSlug          pgtype.Text
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
	DisabledAt                  pgtype.Timestamptz
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	CompletionConfig            []byte
}

type PipelineTriggerDeploymentExistsParams

type PipelineTriggerDeploymentExistsParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	PipelineSlug    string
}

type PipelineTriggerPinnedVersionsByHashPrefixParams

type PipelineTriggerPinnedVersionsByHashPrefixParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	PipelineSlug      string
	PinnedVersionHash string
}

type PipelineTriggerPipelineExistsParams

type PipelineTriggerPipelineExistsParams struct {
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug slug.Slug
}

type PipelineTriggerProjectEnvironmentEnabledParams

type PipelineTriggerProjectEnvironmentEnabledParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type PipelineTriggerRetryAttempt

type PipelineTriggerRetryAttempt struct {
	ID                            int
	ProjectEnvironmentID          int64
	PipelineTriggerID             pgtype.Int8
	AttemptSlug                   string
	Status                        string
	DecisionReason                pgtype.Text
	TriggerRevision               int64
	PipelineSlug                  string
	VersionPolicy                 string
	PinnedVersionHash             pgtype.Text
	PipelineVersionSpecHash       string
	RuntimeInputKeys              []string
	RetryEnabled                  bool
	RetryMaxAttempts              int32
	RetryBackoffStrategy          string
	RetryInitialDelaySeconds      int32
	RetryMaxDelaySeconds          int32
	RetryJitter                   bool
	RetryableFailureKinds         []string
	RetryMaxElapsedSeconds        pgtype.Int4
	SourceType                    string
	SourceSummary                 string
	SourceEntrypoint              string
	SourceActorType               string
	SourceActorSlug               pgtype.Text
	SourceRequestID               pgtype.Text
	SourceTraceID                 pgtype.Text
	SourceEventSlug               pgtype.Text
	SourceParameterKeys           []string
	SourceScheduleTriggerSlug     pgtype.Text
	SourceScheduleTriggerRevision pgtype.Int8
	SourceScheduleCron            pgtype.Text
	SourceScheduleTimezone        pgtype.Text
	SourceScheduleScheduledFireAt pgtype.Timestamptz
	SourceScheduleActualFireAt    pgtype.Timestamptz
	SourceScheduleMisfireResult   pgtype.Text
	RootRunSlug                   string
	RetryOfRunSlug                string
	RunSlug                       string
	AttemptNumber                 int32
	FailureKind                   pgtype.Text
	ScheduledAt                   pgtype.Timestamptz
	EnqueuedAt                    pgtype.Timestamptz
	StartedAt                     pgtype.Timestamptz
	CompletedAt                   pgtype.Timestamptz
	ErrorSummary                  pgtype.Text
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CompletionExecutionArgs       []byte
	CompletionTriggerSlug         pgtype.Text
}

type PipelineValidationResult

type PipelineValidationResult struct {
	ID                   int
	ProjectEnvironmentID int64
	PipelineID           pgtype.Int8
	PipelineVersionID    pgtype.Int8
	ValidationSlug       string
	PipelineSlug         string
	Source               string
	Valid                bool
	SpecHash             pgtype.Text
	Diagnostics          []byte
	ImpactReportSlug     pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	ProjectID            int64
	ImpactPipelineID     pgtype.Int8
}

type PipelineVersion

type PipelineVersion struct {
	ID                int
	ProjectID         int64
	PipelineSlug      string
	GitCommitSha      pgtype.Text
	SpecJsonb         []byte
	SpecHash          string
	CreatedAt         pgtype.Timestamptz
	ResolvedContracts []byte
	SourcePath        pgtype.Text
}

type PipelineWebhookDelivery

type PipelineWebhookDelivery struct {
	ID                       int
	OrganizationID           int32
	ProjectID                int64
	ProjectEnvironmentID     int64
	PipelineTriggerID        int64
	ReceiverID               string
	DeliveryID               string
	PayloadDigest            string
	PayloadSizeBytes         int64
	KeyVersion               int32
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	PipelineVersionSpecHash  pgtype.Text
	RunSlug                  string
	AttemptNumber            int32
	Status                   string
	FailureKind              pgtype.Text
	DecisionReason           pgtype.Text
	NextRetryAt              pgtype.Timestamptz
	EncryptedEnvelope        []byte
	EnvelopeExpiresAt        pgtype.Timestamptz
	ReceivedAt               pgtype.Timestamptz
	StartedAt                pgtype.Timestamptz
	CompletedAt              pgtype.Timestamptz
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	DuplicateCount           int32
	LastDuplicateAt          pgtype.Timestamptz
}

type PipelineWebhookSecretVersion

type PipelineWebhookSecretVersion struct {
	OrganizationID    int32
	ProjectID         int64
	PipelineTriggerID int64
	CredentialID      int64
	KeyVersion        int32
	Enabled           bool
	CreatedAt         pgtype.Timestamptz
	DisabledAt        pgtype.Timestamptz
}

type Project

type Project struct {
	ID                            int
	OrganizationID                int32
	Slug                          slug.Slug
	Name                          string
	PipelineBackendDataSourceID   pgtype.Int8
	PipelineBackendRepo           pgtype.Text
	PipelineBackendTrackedBranch  pgtype.Text
	CreatedAt                     pgtype.Timestamp
	UpdatedAt                     pgtype.Timestamp
	PipelineBackendPipelineDir    pgtype.Text
	PipelineBackendFirstCommitSha pgtype.Text
}

type ProjectEnvironment

type ProjectEnvironment struct {
	ID             int
	ProjectID      int64
	EnvironmentID  int64
	IsDefault      bool
	DeletedAt      pgtype.Timestamptz
	DeleteReason   pgtype.Text
	EnabledAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
	OrganizationID int32
}

type ProjectEnvironmentEnabledParams

type ProjectEnvironmentEnabledParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type ProjectRepositorySetup

type ProjectRepositorySetup struct {
	OrganizationID int32
	ProjectID      int64
	Slug           slug.Slug
	Request        []byte
	Result         []byte
	Status         string
	FailureCode    string
	LeaseOwner     pgtype.Text
	LeaseUntil     pgtype.Timestamptz
	CreatedAt      pgtype.Timestamptz
	UpdatedAt      pgtype.Timestamptz
	AbandonedAt    pgtype.Timestamptz
}

type ProofChangeCandidate

type ProofChangeCandidate struct {
	ID                    int64
	OrganizationID        int32
	MappingID             int64
	Slug                  slug.Slug
	CandidateKey          string
	ChangeRequestID       string
	SourceRef             string
	HeadSha               string
	SourceSha256          string
	SpecHash              string
	CanonicalSpec         []byte
	SupersedesCandidateID pgtype.Int8
	ClosedAt              pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
}

type ProofChangeCandidateMapping

type ProofChangeCandidateMapping struct {
	ID                   int64
	OrganizationID       int32
	ProjectID            int64
	ProjectEnvironmentID int64
	DataSourceID         int64
	Provider             string
	ProviderConnectionID string
	RepositoryID         string
	TargetRef            string
	PipelinePath         string
	CreatedAt            pgtype.Timestamptz
	DisabledAt           pgtype.Timestamptz
}

type ProofEvidence

type ProofEvidence struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	Kind                  string
	Digest                string
	SourceIdentifier      string
	ObservedAt            pgtype.Timestamptz
	ExpiresAt             pgtype.Timestamptz
	CreatedAt             pgtype.Timestamptz
}
type ProofLifecycleLink struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	ReceiptID             int64
	CandidateID           int64
	Kind                  string
	Identifier            string
	DeploymentID          pgtype.Int8
	RunID                 pgtype.Int8
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	LinkedAt              pgtype.Timestamptz
}

type ProofObservationActivityRow

type ProofObservationActivityRow struct {
	Starts  int64
	Outcome string
	Results int64
}

type ProofObservationBudgetUsageParams

type ProofObservationBudgetUsageParams struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
	ConnectorType        string
	Operation            string
}

type ProofObservationBudgetUsageRow

type ProofObservationBudgetUsageRow struct {
	ActiveJobs int64
	Requests   int64
	Bytes      int64
	Rows       int64
	Cost       int64
}

type ProofObservationJob

type ProofObservationJob struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	CandidateID           int64
	DataSourceID          int64
	Slug                  slug.Slug
	RequestDigest         string
	Request               []byte
	AuthorizationDecision []byte
	TargetCiphertext      []byte
	PolicyVersion         string
	WorkerIdentity        string
	ConnectorType         string
	Operation             string
	State                 string
	ReservedRequests      int64
	ReservedBytes         int64
	ReservedRows          int64
	ReservedCost          int64
	BudgetExpiresAt       pgtype.Timestamptz
	DeadlineAt            pgtype.Timestamptz
	EvidenceRetainUntil   pgtype.Timestamptz
	MetadataRetainUntil   pgtype.Timestamptz
	CanceledAt            pgtype.Timestamptz
	StartedAt             pgtype.Timestamptz
	CompletedAt           pgtype.Timestamptz
	Result                []byte
	SnapshotCiphertext    []byte
	CreatedAt             pgtype.Timestamptz
}

type ProofObservationMaintenanceHealthRow

type ProofObservationMaintenanceHealthRow struct {
	LastSuccessTimestamp float64
	RecentFailures       int64
	CancellationDue      int64
	ExpiryDue            int64
	EvidenceDue          int64
	MetadataDue          int64
}

type ProofObservationPolicy

type ProofObservationPolicy struct {
	OrganizationID       int32
	ProjectID            int64
	ProjectEnvironmentID int64
	Version              string
	Enabled              bool
	WorkerIdentity       string
	Policy               []byte
	UpdatedAt            pgtype.Timestamptz
}

type ProofReceipt

type ProofReceipt struct {
	ID                    int
	OrganizationID        int32
	ProjectID             int64
	ProjectEnvironmentID  int64
	MappingID             int64
	CandidateID           int64
	EvidenceID            int64
	Slug                  slug.Slug
	ReceiptKey            string
	SpecHash              string
	BindingFingerprint    string
	CapabilityFingerprint string
	CompilerVersion       string
	PolicyVersion         string
	AggregateVerdict      string
	Receipt               []byte
	SupersedesReceiptID   pgtype.Int8
	CreatedAt             pgtype.Timestamptz
	RetainUntil           pgtype.Timestamptz
}

type ProofReceiptPublicationEnabledParams

type ProofReceiptPublicationEnabledParams struct {
	OrgSlug     slug.Slug
	ReceiptSlug slug.Slug
}

type ProofWebhookDelivery

type ProofWebhookDelivery struct {
	Provider      string
	DeliveryID    string
	PayloadSha256 string
	CreatedAt     pgtype.Timestamptz
}

type PrunePipelineCompletionDetailsParams

type PrunePipelineCompletionDetailsParams struct {
	OrgSlug slug.Slug
	Cutoff  pgtype.Timestamptz
}

type PurgeProofObservationSnapshotsParams

type PurgeProofObservationSnapshotsParams struct {
	OrganizationID       int32
	ProjectEnvironmentID int64
}

type PurgeProofObservationSnapshotsRow

type PurgeProofObservationSnapshotsRow struct {
	Slug          slug.Slug
	RequestDigest string
}

type PurgeQueryParams

type PurgeQueryParams struct {
	OrgSlug        pgtype.Text
	DataSourceSlug pgtype.Text
	QuerySlug      pgtype.Text
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AcceptPipelineCompletionSnapshot

func (q *Queries) AcceptPipelineCompletionSnapshot(ctx context.Context, arg AcceptPipelineCompletionSnapshotParams) (int64, error)

func (*Queries) AcceptPipelineWebhookDelivery

Pre-tenant acceptance: the opaque receiver ID resolves the trigger-owned tenant, and the inserted delivery copies those tenant IDs inside this transaction.

func (*Queries) AccountDeletionLegacyProcessingPending

func (q *Queries) AccountDeletionLegacyProcessingPending(ctx context.Context, userID int32) (pgtype.Bool, error)

func (*Queries) AccountDeletionProcessingPending

func (q *Queries) AccountDeletionProcessingPending(ctx context.Context, arg AccountDeletionProcessingPendingParams) (pgtype.Bool, error)

func (*Queries) ActivateGitLabProofWebhook

func (q *Queries) ActivateGitLabProofWebhook(ctx context.Context, arg ActivateGitLabProofWebhookParams) (GitlabProofWebhook, error)

func (*Queries) AddGitHubAppRepositoryByProviderInstallation

func (q *Queries) AddGitHubAppRepositoryByProviderInstallation(ctx context.Context, arg AddGitHubAppRepositoryByProviderInstallationParams) (int64, error)

func (*Queries) AddPermissionToRole

func (q *Queries) AddPermissionToRole(ctx context.Context, arg AddPermissionToRoleParams) error

func (*Queries) AppendRetainedFileChunk

func (q *Queries) AppendRetainedFileChunk(ctx context.Context, arg AppendRetainedFileChunkParams) (bool, error)

func (*Queries) AttachOrganizationGitLabConnection

func (q *Queries) AttachOrganizationGitLabConnection(ctx context.Context, arg AttachOrganizationGitLabConnectionParams) (int, error)

func (*Queries) AttemptAbuseControl

func (q *Queries) AttemptAbuseControl(ctx context.Context, arg AttemptAbuseControlParams) (AttemptAbuseControlRow, error)

func (*Queries) BeginPipelineSinkEffect

func (q *Queries) BeginPipelineSinkEffect(ctx context.Context, arg BeginPipelineSinkEffectParams) (BeginPipelineSinkEffectRow, error)

===================== Pipeline Sink Effects =====================

func (*Queries) BeginRetainedFile

func (q *Queries) BeginRetainedFile(ctx context.Context, arg BeginRetainedFileParams) (bool, error)

func (*Queries) BindExecutionRequestSource

func (q *Queries) BindExecutionRequestSource(ctx context.Context, arg BindExecutionRequestSourceParams) (int64, error)

func (*Queries) BindExecutionRequestUser

func (q *Queries) BindExecutionRequestUser(ctx context.Context, arg BindExecutionRequestUserParams) (int64, error)

func (*Queries) BindPipelineRunWorkerJob

func (q *Queries) BindPipelineRunWorkerJob(ctx context.Context, arg BindPipelineRunWorkerJobParams) (int64, error)

func (*Queries) BindProjectGitBranchProposalAuthority

func (q *Queries) BindProjectGitBranchProposalAuthority(ctx context.Context, arg BindProjectGitBranchProposalAuthorityParams) (int64, error)

func (*Queries) BindProjectGitHubProposalAuthority

func (q *Queries) BindProjectGitHubProposalAuthority(ctx context.Context, arg BindProjectGitHubProposalAuthorityParams) (int64, error)

func (*Queries) CancelAccountExecutionRequests

func (q *Queries) CancelAccountExecutionRequests(ctx context.Context, userID pgtype.Int4) error

func (*Queries) CancelProofObservationJob

func (q *Queries) CancelProofObservationJob(ctx context.Context, arg CancelProofObservationJobParams) (int64, error)

func (*Queries) CheckConnectorDispatch

func (q *Queries) CheckConnectorDispatch(ctx context.Context, arg CheckConnectorDispatchParams) (bool, error)

func (*Queries) ClaimConnectionDelivery

func (q *Queries) ClaimConnectionDelivery(ctx context.Context, arg ClaimConnectionDeliveryParams) (ClaimConnectionDeliveryRow, error)

func (*Queries) ClaimGitLabProofWebhookSetup

func (q *Queries) ClaimGitLabProofWebhookSetup(ctx context.Context, arg ClaimGitLabProofWebhookSetupParams) (GitlabProofWebhook, error)

func (*Queries) ClaimHTTPOAuthRefresh

func (q *Queries) ClaimHTTPOAuthRefresh(ctx context.Context, arg ClaimHTTPOAuthRefreshParams) (bool, error)

func (*Queries) ClaimProofWebhookDelivery

func (q *Queries) ClaimProofWebhookDelivery(ctx context.Context, arg ClaimProofWebhookDeliveryParams) (string, error)

func (*Queries) ClaimScheduleFire

func (q *Queries) ClaimScheduleFire(ctx context.Context, arg ClaimScheduleFireParams) (ClaimScheduleFireRow, error)

func (*Queries) ClearAlertPolicyDestinations

func (q *Queries) ClearAlertPolicyDestinations(ctx context.Context, arg ClearAlertPolicyDestinationsParams) (int64, error)

func (*Queries) ClearProjectEnvironmentDefault

func (q *Queries) ClearProjectEnvironmentDefault(ctx context.Context, arg ClearProjectEnvironmentDefaultParams) (int64, error)

func (*Queries) ClearProjectPipelineBackend

func (q *Queries) ClearProjectPipelineBackend(ctx context.Context, arg ClearProjectPipelineBackendParams) (int64, error)

func (*Queries) ClearRolePermissions

func (q *Queries) ClearRolePermissions(ctx context.Context, arg ClearRolePermissionsParams) error

func (*Queries) CloseLatestProofChangeCandidate

func (q *Queries) CloseLatestProofChangeCandidate(ctx context.Context, arg CloseLatestProofChangeCandidateParams) (ProofChangeCandidate, error)

func (*Queries) CompleteAccountDeletionRequest

func (q *Queries) CompleteAccountDeletionRequest(ctx context.Context, requestID int) (AccountDeletionRequest, error)

func (*Queries) CompletePipelineCompletionSnapshotsForSystem

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

func (*Queries) CompletePipelineRun

func (q *Queries) CompletePipelineRun(ctx context.Context, arg CompletePipelineRunParams) (CompletePipelineRunRow, error)

func (*Queries) CompletePipelineWebhookDelivery

func (q *Queries) CompletePipelineWebhookDelivery(ctx context.Context, arg CompletePipelineWebhookDeliveryParams) (int64, error)

func (*Queries) CompleteScheduleFire

func (q *Queries) CompleteScheduleFire(ctx context.Context, arg CompleteScheduleFireParams) (int64, error)

func (*Queries) CompleteTriggerRetryAttempt

func (q *Queries) CompleteTriggerRetryAttempt(ctx context.Context, arg CompleteTriggerRetryAttemptParams) (int64, error)

func (*Queries) ConsumeGitHubAppInstallIntent

func (q *Queries) ConsumeGitHubAppInstallIntent(ctx context.Context, id int) (int, error)

func (*Queries) ConsumeOAuthInstall

func (q *Queries) ConsumeOAuthInstall(ctx context.Context, arg ConsumeOAuthInstallParams) (ConsumeOAuthInstallRow, error)

func (*Queries) ConsumeUserMFAChallenge

func (q *Queries) ConsumeUserMFAChallenge(ctx context.Context, id int) (int, error)

func (*Queries) CountOrganizationMembers

func (q *Queries) CountOrganizationMembers(ctx context.Context, orgSlug slug.Slug) (int64, error)

func (*Queries) CountOrganizationMembersByRole

func (q *Queries) CountOrganizationMembersByRole(ctx context.Context, arg CountOrganizationMembersByRoleParams) (int64, error)

func (*Queries) CountSuperAdmins

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

func (*Queries) CreateAPIKey

func (q *Queries) CreateAPIKey(ctx context.Context, arg CreateAPIKeyParams) (ApiKey, error)

===================== API Keys =====================

func (*Queries) CreateAccountDeletionRequest

func (q *Queries) CreateAccountDeletionRequest(ctx context.Context, arg CreateAccountDeletionRequestParams) (AccountDeletionRequest, error)

func (*Queries) CreateAlertDestination

func (q *Queries) CreateAlertDestination(ctx context.Context, arg CreateAlertDestinationParams) (AlertDestination, error)

===================== Notifications =====================

func (*Queries) CreateAlertPolicy

func (q *Queries) CreateAlertPolicy(ctx context.Context, arg CreateAlertPolicyParams) (CreateAlertPolicyRow, error)

func (*Queries) CreateDataSource

func (q *Queries) CreateDataSource(ctx context.Context, arg CreateDataSourceParams) (DataSource, error)

===================== Data Sources =====================

func (*Queries) CreateDataSourceRef

func (q *Queries) CreateDataSourceRef(ctx context.Context, arg CreateDataSourceRefParams) (CreateDataSourceRefRow, error)

===================== Data Source Refs and Bindings =====================

func (*Queries) CreateDriftImpactReport

func (q *Queries) CreateDriftImpactReport(ctx context.Context, arg CreateDriftImpactReportParams) (DriftImpactReport, error)

func (*Queries) CreateEmailVerificationToken

func (q *Queries) CreateEmailVerificationToken(ctx context.Context, arg CreateEmailVerificationTokenParams) error

func (*Queries) CreateEnvironment

func (q *Queries) CreateEnvironment(ctx context.Context, arg CreateEnvironmentParams) (Environment, error)

===================== Environments =====================

func (*Queries) CreateEvent

func (q *Queries) CreateEvent(ctx context.Context, arg CreateEventParams) (Event, error)

===================== Events =====================

func (*Queries) CreateGitHubAppInstallIntent

func (q *Queries) CreateGitHubAppInstallIntent(ctx context.Context, arg CreateGitHubAppInstallIntentParams) (GithubAppInstallIntent, error)

func (*Queries) CreateInstanceAdminAudit

func (q *Queries) CreateInstanceAdminAudit(ctx context.Context, arg CreateInstanceAdminAuditParams) error

func (*Queries) CreateOAuthGrant

func (q *Queries) CreateOAuthGrant(ctx context.Context, arg CreateOAuthGrantParams) (CreateOAuthGrantRow, error)

func (*Queries) CreateOAuthInstall

func (q *Queries) CreateOAuthInstall(ctx context.Context, arg CreateOAuthInstallParams) (CreateOAuthInstallRow, error)

func (*Queries) CreateODCSArtifact

func (q *Queries) CreateODCSArtifact(ctx context.Context, arg CreateODCSArtifactParams) (int64, error)

func (*Queries) CreateODCSContract

func (q *Queries) CreateODCSContract(ctx context.Context, arg CreateODCSContractParams) (OdcsContract, error)

===================== ODCS contract catalog =====================

func (*Queries) CreateODCSRevision

func (q *Queries) CreateODCSRevision(ctx context.Context, arg CreateODCSRevisionParams) (OdcsContractRevision, error)

func (*Queries) CreateOIDCUser

func (q *Queries) CreateOIDCUser(ctx context.Context, arg CreateOIDCUserParams) (User, error)

func (*Queries) CreateOrganization

func (q *Queries) CreateOrganization(ctx context.Context, arg CreateOrganizationParams) (Organization, error)

===================== Organizations =====================

func (*Queries) CreateOrganizationMember

===================== Organization Members =====================

func (*Queries) CreateOrganizationMemberInvitation

===================== Organization Member Invitations =====================

func (*Queries) CreateOrganizationRetentionRun

func (q *Queries) CreateOrganizationRetentionRun(ctx context.Context, arg CreateOrganizationRetentionRunParams) (int64, error)

func (*Queries) CreatePasswordResetToken

func (q *Queries) CreatePasswordResetToken(ctx context.Context, arg CreatePasswordResetTokenParams) error

func (*Queries) CreatePendingOAuthCredential

func (q *Queries) CreatePendingOAuthCredential(ctx context.Context, arg CreatePendingOAuthCredentialParams) (Credential, error)

===================== Credentials =====================

func (*Queries) CreatePermission

func (q *Queries) CreatePermission(ctx context.Context, arg CreatePermissionParams) (Permission, error)

===================== Permissions =====================

func (*Queries) CreatePersonalAccessToken

func (q *Queries) CreatePersonalAccessToken(ctx context.Context, arg CreatePersonalAccessTokenParams) (PersonalAccessToken, error)

===================== Personal Access Tokens =====================

func (*Queries) CreatePipelineCreationProposal

func (q *Queries) CreatePipelineCreationProposal(ctx context.Context, arg CreatePipelineCreationProposalParams) (int64, error)

func (*Queries) CreatePipelineRun

func (q *Queries) CreatePipelineRun(ctx context.Context, arg CreatePipelineRunParams) (CreatePipelineRunRow, error)

===================== Pipeline Runs ===================== Preserve the row so duplicate intake can be inspected without aborting its enqueue transaction.

func (*Queries) CreatePipelineTrigger

func (q *Queries) CreatePipelineTrigger(ctx context.Context, arg CreatePipelineTriggerParams) (CreatePipelineTriggerRow, error)

func (*Queries) CreatePipelineVersion

func (q *Queries) CreatePipelineVersion(ctx context.Context, arg CreatePipelineVersionParams) (PipelineVersion, error)

func (*Queries) CreateProject

func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (CreateProjectRow, error)

===================== Projects =====================

func (*Queries) CreateProjectRepositorySetup

func (q *Queries) CreateProjectRepositorySetup(ctx context.Context, arg CreateProjectRepositorySetupParams) (int64, error)

func (*Queries) CreateProofChangeCandidate

func (q *Queries) CreateProofChangeCandidate(ctx context.Context, arg CreateProofChangeCandidateParams) (ProofChangeCandidate, error)

func (*Queries) CreateProofChangeCandidateMapping

func (q *Queries) CreateProofChangeCandidateMapping(ctx context.Context, arg CreateProofChangeCandidateMappingParams) (int64, error)

===================== Proof change candidates =====================

func (*Queries) CreateProofEvidence

func (q *Queries) CreateProofEvidence(ctx context.Context, arg CreateProofEvidenceParams) (CreateProofEvidenceRow, error)

func (*Queries) CreateProofObservationJob

func (q *Queries) CreateProofObservationJob(ctx context.Context, arg CreateProofObservationJobParams) (ProofObservationJob, error)

func (*Queries) CreateProofReceipt

func (q *Queries) CreateProofReceipt(ctx context.Context, arg CreateProofReceiptParams) (CreateProofReceiptRow, error)
func (q *Queries) CreateProofRunLink(ctx context.Context, arg CreateProofRunLinkParams) (CreateProofRunLinkRow, error)

func (*Queries) CreateQuery

func (q *Queries) CreateQuery(ctx context.Context, arg CreateQueryParams) (Query, error)

===================== Queries =====================

func (*Queries) CreateQueryExecution

func (q *Queries) CreateQueryExecution(ctx context.Context, arg CreateQueryExecutionParams) (QueryExecution, error)

===================== Query Executions =====================

func (*Queries) CreateQueryParameter

func (q *Queries) CreateQueryParameter(ctx context.Context, arg CreateQueryParameterParams) (QueryParameter, error)

===================== Query Parameters =====================

func (*Queries) CreateRole

func (q *Queries) CreateRole(ctx context.Context, arg CreateRoleParams) (Role, error)

===================== Roles =====================

func (*Queries) CreateRunRecencyEpisode

func (q *Queries) CreateRunRecencyEpisode(ctx context.Context, arg CreateRunRecencyEpisodeParams) (PipelineRunRecencyEpisode, error)

func (*Queries) CreateStaticCredential

func (q *Queries) CreateStaticCredential(ctx context.Context, arg CreateStaticCredentialParams) (Credential, error)

func (*Queries) CreateUser

func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)

func (*Queries) CreateUserMFAChallenge

func (q *Queries) CreateUserMFAChallenge(ctx context.Context, arg CreateUserMFAChallengeParams) (UserMfaChallenge, error)

func (*Queries) DataSourceHasProjectBackendReferences

func (q *Queries) DataSourceHasProjectBackendReferences(ctx context.Context, arg DataSourceHasProjectBackendReferencesParams) (bool, error)

func (*Queries) DeferCompletionRunFinalization

func (q *Queries) DeferCompletionRunFinalization(ctx context.Context, arg DeferCompletionRunFinalizationParams) (int64, error)

func (*Queries) DeferPipelineCompletionSnapshot

func (q *Queries) DeferPipelineCompletionSnapshot(ctx context.Context, arg DeferPipelineCompletionSnapshotParams) (int64, error)

func (*Queries) DeleteAccountMFAChallenges

func (q *Queries) DeleteAccountMFAChallenges(ctx context.Context, userID int32) error

func (*Queries) DeleteAccountMemberships

func (q *Queries) DeleteAccountMemberships(ctx context.Context, userID int32) error

func (*Queries) DeleteAccountPATs

func (q *Queries) DeleteAccountPATs(ctx context.Context, userID int32) error

func (*Queries) DeleteAlertDestination

func (q *Queries) DeleteAlertDestination(ctx context.Context, arg DeleteAlertDestinationParams) (slug.Slug, error)

func (*Queries) DeleteAlertPolicy

func (q *Queries) DeleteAlertPolicy(ctx context.Context, arg DeleteAlertPolicyParams) (slug.Slug, error)

func (*Queries) DeleteDataSource

func (q *Queries) DeleteDataSource(ctx context.Context, arg DeleteDataSourceParams) (pgconn.CommandTag, error)

func (*Queries) DeleteDataSourceBinding

func (q *Queries) DeleteDataSourceBinding(ctx context.Context, arg DeleteDataSourceBindingParams) (int64, error)

func (*Queries) DeleteDataSourceRef

func (q *Queries) DeleteDataSourceRef(ctx context.Context, arg DeleteDataSourceRefParams) (int64, error)

func (*Queries) DeleteDataSourceRefsForPipeline

func (q *Queries) DeleteDataSourceRefsForPipeline(ctx context.Context, arg DeleteDataSourceRefsForPipelineParams) (int64, error)

func (*Queries) DeleteEnvironment

func (q *Queries) DeleteEnvironment(ctx context.Context, arg DeleteEnvironmentParams) (int64, error)

func (*Queries) DeleteEnvironmentSecret

func (q *Queries) DeleteEnvironmentSecret(ctx context.Context, arg DeleteEnvironmentSecretParams) (int64, error)

func (*Queries) DeleteEnvironmentSecretsForEnvironment

func (q *Queries) DeleteEnvironmentSecretsForEnvironment(ctx context.Context, arg DeleteEnvironmentSecretsForEnvironmentParams) (int64, error)

func (*Queries) DeleteEventsOccurredBefore

func (q *Queries) DeleteEventsOccurredBefore(ctx context.Context, cutoff pgtype.Timestamptz) (int64, error)

func (*Queries) DeleteExpiredAbuseControlBuckets

func (q *Queries) DeleteExpiredAbuseControlBuckets(ctx context.Context, cutoff pgtype.Timestamptz) (int64, error)

func (*Queries) DeleteExpiredOrganizationEvents

func (q *Queries) DeleteExpiredOrganizationEvents(ctx context.Context, arg DeleteExpiredOrganizationEventsParams) (int64, error)

func (*Queries) DeleteExpiredOrganizationPipelineRuns

func (q *Queries) DeleteExpiredOrganizationPipelineRuns(ctx context.Context, arg DeleteExpiredOrganizationPipelineRunsParams) (int64, error)

func (*Queries) DeleteExpiredOrganizationQueryExecutions

func (q *Queries) DeleteExpiredOrganizationQueryExecutions(ctx context.Context, arg DeleteExpiredOrganizationQueryExecutionsParams) (int64, error)

func (*Queries) DeleteExpiredOrganizationReplayCheckpoints

func (q *Queries) DeleteExpiredOrganizationReplayCheckpoints(ctx context.Context, arg DeleteExpiredOrganizationReplayCheckpointsParams) (int64, error)

func (*Queries) DeleteExpiredOrganizationRetentionRuns

func (q *Queries) DeleteExpiredOrganizationRetentionRuns(ctx context.Context, arg DeleteExpiredOrganizationRetentionRunsParams) (int64, error)

func (*Queries) DeleteExpiredProofReceipts

func (q *Queries) DeleteExpiredProofReceipts(ctx context.Context, orgSlug slug.Slug) ([]DeleteExpiredProofReceiptsRow, error)

func (*Queries) DeleteExpiredWishlistRegistrations

func (q *Queries) DeleteExpiredWishlistRegistrations(ctx context.Context, cutoff pgtype.Timestamptz) (int64, error)

func (*Queries) DeleteOrganization

func (q *Queries) DeleteOrganization(ctx context.Context, orgSlug pgtype.Text) (int64, error)

func (*Queries) DeletePipelineDraft

func (q *Queries) DeletePipelineDraft(ctx context.Context, arg DeletePipelineDraftParams) (pgconn.CommandTag, error)

func (*Queries) DeletePipelineReference

func (q *Queries) DeletePipelineReference(ctx context.Context, arg DeletePipelineReferenceParams) (pgconn.CommandTag, error)

func (*Queries) DeletePipelineSpec

func (q *Queries) DeletePipelineSpec(ctx context.Context, arg DeletePipelineSpecParams) (pgconn.CommandTag, error)

func (*Queries) DeletePipelineTrigger

func (q *Queries) DeletePipelineTrigger(ctx context.Context, arg DeletePipelineTriggerParams) (int64, error)

func (*Queries) DeleteProject

func (q *Queries) DeleteProject(ctx context.Context, arg DeleteProjectParams) (pgconn.CommandTag, error)

func (*Queries) DeleteQuery

func (q *Queries) DeleteQuery(ctx context.Context, arg DeleteQueryParams) (pgconn.CommandTag, error)

func (*Queries) DeleteQueryParametersByQuery

func (q *Queries) DeleteQueryParametersByQuery(ctx context.Context, arg DeleteQueryParametersByQueryParams) error

func (*Queries) DeleteRevokedAPIKey

func (q *Queries) DeleteRevokedAPIKey(ctx context.Context, arg DeleteRevokedAPIKeyParams) (int64, error)

func (*Queries) DeleteRevokedPersonalAccessToken

func (q *Queries) DeleteRevokedPersonalAccessToken(ctx context.Context, arg DeleteRevokedPersonalAccessTokenParams) (int64, error)

func (*Queries) DeleteRevokedSnowflakeWIFBinding

func (q *Queries) DeleteRevokedSnowflakeWIFBinding(ctx context.Context, arg DeleteRevokedSnowflakeWIFBindingParams) error

func (*Queries) DeleteRole

func (q *Queries) DeleteRole(ctx context.Context, arg DeleteRoleParams) (pgconn.CommandTag, error)

func (*Queries) DeleteRuntimeVariable

func (q *Queries) DeleteRuntimeVariable(ctx context.Context, arg DeleteRuntimeVariableParams) (int64, error)

func (*Queries) DeleteSchemaMetadataByDataSourceSlug

func (q *Queries) DeleteSchemaMetadataByDataSourceSlug(ctx context.Context, arg DeleteSchemaMetadataByDataSourceSlugParams) error

func (*Queries) DeleteUnusedProofEvidence

func (q *Queries) DeleteUnusedProofEvidence(ctx context.Context, arg DeleteUnusedProofEvidenceParams) error

func (*Queries) DisableProjectEnvironment

func (q *Queries) DisableProjectEnvironment(ctx context.Context, arg DisableProjectEnvironmentParams) (int64, error)

func (*Queries) DisableProofObservationPolicy

func (q *Queries) DisableProofObservationPolicy(ctx context.Context, arg DisableProofObservationPolicyParams) error

func (*Queries) DiscardRetainedFile

func (q *Queries) DiscardRetainedFile(ctx context.Context, arg DiscardRetainedFileParams) (bool, error)

func (*Queries) DisconnectGitHubAppInstallation

func (q *Queries) DisconnectGitHubAppInstallation(ctx context.Context, organizationSlug slug.Slug) (int64, error)

func (*Queries) EnableProjectEnvironment

func (*Queries) EnsureDefaultRole

func (q *Queries) EnsureDefaultRole(ctx context.Context, arg EnsureDefaultRoleParams) (EnsureDefaultRoleRow, error)

func (*Queries) EnsureIncrementalCheckpointCommitLock

func (q *Queries) EnsureIncrementalCheckpointCommitLock(ctx context.Context, arg EnsureIncrementalCheckpointCommitLockParams) error

func (*Queries) ExpireExecutionRequests

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

Payload expiry must not erase an unresolved processing obligation. A lease can mark started work cancelled without acknowledgement from its executor.

func (*Queries) ExpirePipelineWebhookDelivery

func (q *Queries) ExpirePipelineWebhookDelivery(ctx context.Context, arg ExpirePipelineWebhookDeliveryParams) (int64, error)

func (*Queries) ExpireProofObservationJobs

func (q *Queries) ExpireProofObservationJobs(ctx context.Context, arg ExpireProofObservationJobsParams) ([]ExpireProofObservationJobsRow, error)

func (*Queries) FailAccountDeletionRequest

func (q *Queries) FailAccountDeletionRequest(ctx context.Context, requestSlug slug.Slug) error

func (*Queries) FailGitLabProofWebhookSetup

func (q *Queries) FailGitLabProofWebhookSetup(ctx context.Context, arg FailGitLabProofWebhookSetupParams) error

func (*Queries) FailPipelineDraftPublish

func (q *Queries) FailPipelineDraftPublish(ctx context.Context, arg FailPipelineDraftPublishParams) (pgconn.CommandTag, error)

func (*Queries) FenceCompletionRetryDecision

func (q *Queries) FenceCompletionRetryDecision(ctx context.Context, arg FenceCompletionRetryDecisionParams) (pgtype.Timestamptz, error)

A row write makes repeatable-read contenders retry with a fresh decision view.

func (*Queries) FindAPIKeyBySlug

func (q *Queries) FindAPIKeyBySlug(ctx context.Context, arg FindAPIKeyBySlugParams) (FindAPIKeyBySlugRow, error)

func (*Queries) FindAccountDeletionRequest

func (q *Queries) FindAccountDeletionRequest(ctx context.Context, userID pgtype.Int4) (AccountDeletionRequest, error)

func (*Queries) FindActiveAPIKeyByTokenHash

func (q *Queries) FindActiveAPIKeyByTokenHash(ctx context.Context, tokenHash string) (FindActiveAPIKeyByTokenHashRow, error)

func (*Queries) FindActivePersonalAccessTokenByTokenHash

func (q *Queries) FindActivePersonalAccessTokenByTokenHash(ctx context.Context, tokenHash string) (FindActivePersonalAccessTokenByTokenHashRow, error)

func (*Queries) FindAlertDestinationBySlug

func (q *Queries) FindAlertDestinationBySlug(ctx context.Context, arg FindAlertDestinationBySlugParams) (AlertDestination, error)

func (*Queries) FindAlertPolicyBySlug

func (q *Queries) FindAlertPolicyBySlug(ctx context.Context, arg FindAlertPolicyBySlugParams) (FindAlertPolicyBySlugRow, error)

func (*Queries) FindAnyEnvironmentBySlug

func (q *Queries) FindAnyEnvironmentBySlug(ctx context.Context, arg FindAnyEnvironmentBySlugParams) (Environment, error)

func (*Queries) FindDataSourceBinding

func (q *Queries) FindDataSourceBinding(ctx context.Context, arg FindDataSourceBindingParams) (FindDataSourceBindingRow, error)

func (*Queries) FindDataSourceBySlug

func (q *Queries) FindDataSourceBySlug(ctx context.Context, arg FindDataSourceBySlugParams) (FindDataSourceBySlugRow, error)

func (*Queries) FindDataSourceRefBySlug

func (q *Queries) FindDataSourceRefBySlug(ctx context.Context, arg FindDataSourceRefBySlugParams) (FindDataSourceRefBySlugRow, error)

func (*Queries) FindEnvironmentBySlug

func (q *Queries) FindEnvironmentBySlug(ctx context.Context, arg FindEnvironmentBySlugParams) (Environment, error)

func (*Queries) FindEnvironmentSecret

func (q *Queries) FindEnvironmentSecret(ctx context.Context, arg FindEnvironmentSecretParams) (FindEnvironmentSecretRow, error)

func (*Queries) FindEventBySlug

func (q *Queries) FindEventBySlug(ctx context.Context, arg FindEventBySlugParams) (Event, error)

func (*Queries) FindHTTPOAuthApp

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

func (*Queries) FindInstanceAdminUserForUpdate

func (q *Queries) FindInstanceAdminUserForUpdate(ctx context.Context, argSlug slug.Slug) (FindInstanceAdminUserForUpdateRow, error)

func (*Queries) FindLatestPipelineRunByPipelineSlug

Historical reads intentionally do not filter environments.deleted_at. Deleting an environment catalog row must not hide persisted run/audit history.

func (*Queries) FindLatestProofChangeCandidate

func (q *Queries) FindLatestProofChangeCandidate(ctx context.Context, arg FindLatestProofChangeCandidateParams) (ProofChangeCandidate, error)

func (*Queries) FindLatestSuccessfulQueryExecutionByOrganization

func (q *Queries) FindLatestSuccessfulQueryExecutionByOrganization(ctx context.Context, orgSlug slug.Slug) (FindLatestSuccessfulQueryExecutionByOrganizationRow, error)

func (*Queries) FindOAuthInstallByState

func (q *Queries) FindOAuthInstallByState(ctx context.Context, arg FindOAuthInstallByStateParams) (FindOAuthInstallByStateRow, error)

func (*Queries) FindODCSArtifact

func (q *Queries) FindODCSArtifact(ctx context.Context, arg FindODCSArtifactParams) (FindODCSArtifactRow, error)

func (*Queries) FindODCSContract

func (q *Queries) FindODCSContract(ctx context.Context, arg FindODCSContractParams) (OdcsContract, error)

func (*Queries) FindODCSContractByIdentity

func (q *Queries) FindODCSContractByIdentity(ctx context.Context, arg FindODCSContractByIdentityParams) (OdcsContract, error)

func (*Queries) FindODCSRevision

func (q *Queries) FindODCSRevision(ctx context.Context, arg FindODCSRevisionParams) (OdcsContractRevision, error)

func (*Queries) FindODCSRevisionByDigest

func (q *Queries) FindODCSRevisionByDigest(ctx context.Context, arg FindODCSRevisionByDigestParams) (OdcsContractRevision, error)

func (*Queries) FindOrCreatePermissions

func (q *Queries) FindOrCreatePermissions(ctx context.Context, arg FindOrCreatePermissionsParams) ([]Permission, error)

func (*Queries) FindOrganizationBySlug

func (q *Queries) FindOrganizationBySlug(ctx context.Context, argSlug slug.Slug) (Organization, error)

func (*Queries) FindOrganizationBySlugForUpdate

func (q *Queries) FindOrganizationBySlugForUpdate(ctx context.Context, argSlug slug.Slug) (Organization, error)

func (*Queries) FindOrganizationGitLabConnection

func (q *Queries) FindOrganizationGitLabConnection(ctx context.Context, orgSlug slug.Slug) (Credential, error)

func (*Queries) FindOrganizationGitLabOAuthGrant

func (q *Queries) FindOrganizationGitLabOAuthGrant(ctx context.Context, orgSlug slug.Slug) (FindOrganizationGitLabOAuthGrantRow, error)

func (*Queries) FindOrganizationMember

func (q *Queries) FindOrganizationMember(ctx context.Context, arg FindOrganizationMemberParams) (FindOrganizationMemberRow, error)

func (*Queries) FindOrganizationMemberInvitationByTokenHash

func (q *Queries) FindOrganizationMemberInvitationByTokenHash(ctx context.Context, tokenHash string) (FindOrganizationMemberInvitationByTokenHashRow, error)

func (*Queries) FindPipelineCompiledPlan

func (*Queries) FindPipelineDeployment

func (q *Queries) FindPipelineDeployment(ctx context.Context, arg FindPipelineDeploymentParams) (FindPipelineDeploymentRow, error)

func (*Queries) FindPipelineDraftBySlug

func (q *Queries) FindPipelineDraftBySlug(ctx context.Context, arg FindPipelineDraftBySlugParams) (FindPipelineDraftBySlugRow, error)

func (*Queries) FindPipelineReferenceBySlug

func (q *Queries) FindPipelineReferenceBySlug(ctx context.Context, arg FindPipelineReferenceBySlugParams) (PipelineReference, error)

func (*Queries) FindPipelineRunByRunSlug

Historical reads intentionally do not filter environments.deleted_at. Deleting an environment catalog row must not hide persisted run/audit history.

func (*Queries) FindPipelineSpecBySlug

func (q *Queries) FindPipelineSpecBySlug(ctx context.Context, arg FindPipelineSpecBySlugParams) (FindPipelineSpecBySlugRow, error)

func (*Queries) FindPipelineSpecDeletedAtForUpdate

func (q *Queries) FindPipelineSpecDeletedAtForUpdate(ctx context.Context, arg FindPipelineSpecDeletedAtForUpdateParams) (pgtype.Timestamptz, error)

func (*Queries) FindPipelineVersionByCommitSHA

func (q *Queries) FindPipelineVersionByCommitSHA(ctx context.Context, arg FindPipelineVersionByCommitSHAParams) (PipelineVersion, error)

func (*Queries) FindPipelineVersionByID

func (q *Queries) FindPipelineVersionByID(ctx context.Context, arg FindPipelineVersionByIDParams) (PipelineVersion, error)

func (*Queries) FindPipelineVersionBySpecHash

func (q *Queries) FindPipelineVersionBySpecHash(ctx context.Context, arg FindPipelineVersionBySpecHashParams) (PipelineVersion, error)

func (*Queries) FindPipelineVersionsBySpecHashPrefix

func (q *Queries) FindPipelineVersionsBySpecHashPrefix(ctx context.Context, arg FindPipelineVersionsBySpecHashPrefixParams) ([]PipelineVersion, error)

func (*Queries) FindProjectBySlug

func (q *Queries) FindProjectBySlug(ctx context.Context, arg FindProjectBySlugParams) (FindProjectBySlugRow, error)

func (*Queries) FindProjectForRepositorySetup

func (q *Queries) FindProjectForRepositorySetup(ctx context.Context, arg FindProjectForRepositorySetupParams) (slug.Slug, error)

func (*Queries) FindProofChangeCandidateByID

func (q *Queries) FindProofChangeCandidateByID(ctx context.Context, arg FindProofChangeCandidateByIDParams) (ProofChangeCandidate, error)

func (*Queries) FindProofChangeCandidateByKey

func (q *Queries) FindProofChangeCandidateByKey(ctx context.Context, arg FindProofChangeCandidateByKeyParams) (ProofChangeCandidate, error)
func (q *Queries) FindProofDeploymentLink(ctx context.Context, arg FindProofDeploymentLinkParams) (FindProofDeploymentLinkRow, error)

func (*Queries) FindProofObservationJob

func (q *Queries) FindProofObservationJob(ctx context.Context, arg FindProofObservationJobParams) (ProofObservationJob, error)

func (*Queries) FindProofObservationSlugByDigest

func (q *Queries) FindProofObservationSlugByDigest(ctx context.Context, arg FindProofObservationSlugByDigestParams) (slug.Slug, error)

func (*Queries) FindProofOperationalRun

func (q *Queries) FindProofOperationalRun(ctx context.Context, arg FindProofOperationalRunParams) (FindProofOperationalRunRow, error)

func (*Queries) FindProofReceiptBySlug

func (q *Queries) FindProofReceiptBySlug(ctx context.Context, arg FindProofReceiptBySlugParams) (FindProofReceiptBySlugRow, error)
func (q *Queries) FindProofRunLink(ctx context.Context, arg FindProofRunLinkParams) (FindProofRunLinkRow, error)

func (*Queries) FindQueryBySlug

func (q *Queries) FindQueryBySlug(ctx context.Context, arg FindQueryBySlugParams) (Query, error)

func (*Queries) FindQueryDeletionState

func (q *Queries) FindQueryDeletionState(ctx context.Context, arg FindQueryDeletionStateParams) (pgtype.Timestamptz, error)

func (*Queries) FindQueryExecutionBySlug

func (q *Queries) FindQueryExecutionBySlug(ctx context.Context, arg FindQueryExecutionBySlugParams) (QueryExecution, error)

func (*Queries) FindRoleBySlug

func (q *Queries) FindRoleBySlug(ctx context.Context, arg FindRoleBySlugParams) (Role, error)

func (*Queries) FindRuntimeVariable

func (q *Queries) FindRuntimeVariable(ctx context.Context, arg FindRuntimeVariableParams) (FindRuntimeVariableRow, error)

func (*Queries) FindSchemaMetadataByDataSourceSlug

func (q *Queries) FindSchemaMetadataByDataSourceSlug(ctx context.Context, arg FindSchemaMetadataByDataSourceSlugParams) (SchemaMetadatum, error)

===================== Schema Metadata =====================

func (*Queries) FindScopedProofObservationJob

func (q *Queries) FindScopedProofObservationJob(ctx context.Context, arg FindScopedProofObservationJobParams) (ProofObservationJob, error)

func (*Queries) FindStaticCredentialByDataSource

func (q *Queries) FindStaticCredentialByDataSource(ctx context.Context, arg FindStaticCredentialByDataSourceParams) (Credential, error)

func (*Queries) FindStaticCredentialByEnvironmentSecret

func (q *Queries) FindStaticCredentialByEnvironmentSecret(ctx context.Context, arg FindStaticCredentialByEnvironmentSecretParams) (Credential, error)

func (*Queries) FindUserByEmail

func (q *Queries) FindUserByEmail(ctx context.Context, email string) (User, error)

func (*Queries) FindUserByEmailVerificationToken

func (q *Queries) FindUserByEmailVerificationToken(ctx context.Context, emailVerificationTokenHash pgtype.Text) (User, error)

func (*Queries) FindUserByOIDCProvider

func (q *Queries) FindUserByOIDCProvider(ctx context.Context, arg FindUserByOIDCProviderParams) (User, error)

func (*Queries) FindUserByPasswordResetToken

func (q *Queries) FindUserByPasswordResetToken(ctx context.Context, passwordResetTokenHash pgtype.Text) (User, error)

func (*Queries) FindUserBySlug

func (q *Queries) FindUserBySlug(ctx context.Context, argSlug slug.Slug) (User, error)

func (*Queries) FindUserBySlugForUpdate

func (q *Queries) FindUserBySlugForUpdate(ctx context.Context, argSlug slug.Slug) (User, error)

func (*Queries) FindUserMFAChallengeByToken

func (q *Queries) FindUserMFAChallengeByToken(ctx context.Context, challengeTokenHash string) (FindUserMFAChallengeByTokenRow, error)

func (*Queries) FinishConnectionDelivery

func (q *Queries) FinishConnectionDelivery(ctx context.Context, arg FinishConnectionDeliveryParams) (int64, error)

func (*Queries) FinishInterruptedProofObservation

func (q *Queries) FinishInterruptedProofObservation(ctx context.Context, arg FinishInterruptedProofObservationParams) (int64, error)

func (*Queries) FinishProofObservation

func (q *Queries) FinishProofObservation(ctx context.Context, arg FinishProofObservationParams) (int64, error)

func (*Queries) GetCheckpoint

func (q *Queries) GetCheckpoint(ctx context.Context, arg GetCheckpointParams) (PipelineCheckpoint, error)

Historical reads intentionally do not filter environments.deleted_at. Deleting an environment catalog row must not hide persisted replay history.

func (*Queries) GetGitHubAppInstallIntent

func (q *Queries) GetGitHubAppInstallIntent(ctx context.Context, stateHash string) (GetGitHubAppInstallIntentRow, error)

func (*Queries) GetGitHubAppInstallIntentForUpdate

func (q *Queries) GetGitHubAppInstallIntentForUpdate(ctx context.Context, stateHash string) (GetGitHubAppInstallIntentForUpdateRow, error)

func (*Queries) GetGitHubAppInstallationByOrg

func (q *Queries) GetGitHubAppInstallationByOrg(ctx context.Context, organizationSlug slug.Slug) (GithubAppInstallation, error)

func (*Queries) GetGitHubAppOrganizationByInstallation

func (q *Queries) GetGitHubAppOrganizationByInstallation(ctx context.Context, providerInstallationID int64) (slug.Slug, error)

func (*Queries) GetGitLabProofWebhookByRoute

func (q *Queries) GetGitLabProofWebhookByRoute(ctx context.Context, routeKeyHash string) (GetGitLabProofWebhookByRouteRow, error)

func (*Queries) GetPipelineWebhookIntake

Queue-owned lookup: private receiver/delivery identity yields only retained source metadata.

func (*Queries) GetProofWebhookDeliveryDigest

func (q *Queries) GetProofWebhookDeliveryDigest(ctx context.Context, arg GetProofWebhookDeliveryDigestParams) (string, error)

func (*Queries) GetRunTimeline

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

Historical reads intentionally do not filter environments.deleted_at. Deleting an environment catalog row must not hide persisted diagnostics.

func (*Queries) GetSnowflakeWIFOnboardingState

func (q *Queries) GetSnowflakeWIFOnboardingState(ctx context.Context, arg GetSnowflakeWIFOnboardingStateParams) (string, error)

func (*Queries) HardDeleteAccount

func (q *Queries) HardDeleteAccount(ctx context.Context, arg HardDeleteAccountParams) (int64, error)

func (*Queries) HasOtherAccountDeletionAdmin

func (q *Queries) HasOtherAccountDeletionAdmin(ctx context.Context, arg HasOtherAccountDeletionAdminParams) (bool, error)

func (*Queries) HasOtherAccountDeletionMember

func (q *Queries) HasOtherAccountDeletionMember(ctx context.Context, arg HasOtherAccountDeletionMemberParams) (bool, error)

func (*Queries) HasSucceededOrganizationRetentionRunForJob

func (q *Queries) HasSucceededOrganizationRetentionRunForJob(ctx context.Context, arg HasSucceededOrganizationRetentionRunForJobParams) (bool, error)

func (*Queries) IncrementUserMFAChallengeAttempts

func (q *Queries) IncrementUserMFAChallengeAttempts(ctx context.Context, id int) error

func (*Queries) InspectPipelineLogicalRun

func (q *Queries) InspectPipelineLogicalRun(ctx context.Context, arg InspectPipelineLogicalRunParams) ([]InspectPipelineLogicalRunRow, error)

func (*Queries) InspectRunRecency

func (q *Queries) InspectRunRecency(ctx context.Context, arg InspectRunRecencyParams) (InspectRunRecencyRow, error)

func (*Queries) InspectRunRecencyEpisodes

func (q *Queries) InspectRunRecencyEpisodes(ctx context.Context, arg InspectRunRecencyEpisodesParams) ([]InspectRunRecencyEpisodesRow, error)

func (*Queries) IsDataSourceSlugReserved

func (q *Queries) IsDataSourceSlugReserved(ctx context.Context, arg IsDataSourceSlugReservedParams) (bool, error)

func (*Queries) IsProofObservationActive

func (q *Queries) IsProofObservationActive(ctx context.Context, arg IsProofObservationActiveParams) (bool, error)

func (*Queries) IsUserSlugReserved

func (q *Queries) IsUserSlugReserved(ctx context.Context, userSlug slug.Slug) (bool, error)

func (*Queries) ListAPIKeysByOrganization

func (q *Queries) ListAPIKeysByOrganization(ctx context.Context, arg ListAPIKeysByOrganizationParams) ([]ListAPIKeysByOrganizationRow, error)

func (*Queries) ListActiveRunRecencyEpisodes

func (q *Queries) ListActiveRunRecencyEpisodes(ctx context.Context, arg ListActiveRunRecencyEpisodesParams) ([]PipelineRunRecencyEpisode, error)

func (*Queries) ListAlertDestinationsByOrganization

func (q *Queries) ListAlertDestinationsByOrganization(ctx context.Context, arg ListAlertDestinationsByOrganizationParams) ([]AlertDestination, error)

func (*Queries) ListAllEnvironmentSecrets

func (q *Queries) ListAllEnvironmentSecrets(ctx context.Context, arg ListAllEnvironmentSecretsParams) ([]ListAllEnvironmentSecretsRow, error)

func (*Queries) ListAllPermissions

func (q *Queries) ListAllPermissions(ctx context.Context) ([]Permission, error)

Bounded by design: permissions are generated from finite resource/action enums.

func (*Queries) ListAllRuntimeVariables

func (q *Queries) ListAllRuntimeVariables(ctx context.Context, arg ListAllRuntimeVariablesParams) ([]ListAllRuntimeVariablesRow, error)

func (*Queries) ListCompletionRunFinalizationsForSystem

func (q *Queries) ListCompletionRunFinalizationsForSystem(ctx context.Context) ([]ListCompletionRunFinalizationsForSystemRow, error)

Immutable failed-attempt obligations drive policy decisions, never missing jobs.

func (*Queries) ListCredentialCiphertexts

func (q *Queries) ListCredentialCiphertexts(ctx context.Context, arg ListCredentialCiphertextsParams) ([]ListCredentialCiphertextsRow, error)

Operator-only census includes retained ciphertext for deleted/expired owners.

func (*Queries) ListDataSourceBindings

func (q *Queries) ListDataSourceBindings(ctx context.Context, arg ListDataSourceBindingsParams) ([]ListDataSourceBindingsRow, error)

func (*Queries) ListDataSourceProofTargets

func (q *Queries) ListDataSourceProofTargets(ctx context.Context, arg ListDataSourceProofTargetsParams) ([]ListDataSourceProofTargetsRow, error)

func (*Queries) ListDataSourceRefs

func (q *Queries) ListDataSourceRefs(ctx context.Context, arg ListDataSourceRefsParams) ([]ListDataSourceRefsRow, error)

func (*Queries) ListDataSourcesByOrg

func (q *Queries) ListDataSourcesByOrg(ctx context.Context, arg ListDataSourcesByOrgParams) ([]ListDataSourcesByOrgRow, error)

func (*Queries) ListDelayedScheduleFiresForSystem

func (q *Queries) ListDelayedScheduleFiresForSystem(ctx context.Context, beforeAt pgtype.Timestamptz) ([]ListDelayedScheduleFiresForSystemRow, error)

func (*Queries) ListDriftImpactReports

func (q *Queries) ListDriftImpactReports(ctx context.Context, arg ListDriftImpactReportsParams) ([]ListDriftImpactReportsRow, error)

func (*Queries) ListDueScheduleTriggers

func (q *Queries) ListDueScheduleTriggers(ctx context.Context) ([]ListDueScheduleTriggersRow, error)

func (*Queries) ListEnvironmentSecrets

func (q *Queries) ListEnvironmentSecrets(ctx context.Context, arg ListEnvironmentSecretsParams) ([]ListEnvironmentSecretsRow, error)

func (*Queries) ListEnvironmentsByOrg

func (q *Queries) ListEnvironmentsByOrg(ctx context.Context, arg ListEnvironmentsByOrgParams) ([]Environment, error)

func (*Queries) ListEventsByOrganization

func (q *Queries) ListEventsByOrganization(ctx context.Context, arg ListEventsByOrganizationParams) ([]Event, error)

func (*Queries) ListGitHubAppRepositoriesByOrg

func (q *Queries) ListGitHubAppRepositoriesByOrg(ctx context.Context, organizationSlug slug.Slug) ([]GithubAppRepository, error)

func (*Queries) ListInterruptedPipelineRunsForSystem

func (q *Queries) ListInterruptedPipelineRunsForSystem(ctx context.Context, cutoff pgtype.Timestamptz) ([]ListInterruptedPipelineRunsForSystemRow, error)

Queue state fences recovery; silence or an absent queue row never proves worker loss.

func (*Queries) ListNotificationConnections

func (q *Queries) ListNotificationConnections(ctx context.Context, orgSlug slug.Slug) ([]ListNotificationConnectionsRow, error)

func (*Queries) ListODCSConsumerSnapshots

func (q *Queries) ListODCSConsumerSnapshots(ctx context.Context, arg ListODCSConsumerSnapshotsParams) ([]ListODCSConsumerSnapshotsRow, error)

func (*Queries) ListODCSContracts

func (q *Queries) ListODCSContracts(ctx context.Context, arg ListODCSContractsParams) ([]OdcsContract, error)

func (*Queries) ListODCSRevisions

func (q *Queries) ListODCSRevisions(ctx context.Context, arg ListODCSRevisionsParams) ([]ListODCSRevisionsRow, error)

func (*Queries) ListOrganizationMembers

func (q *Queries) ListOrganizationMembers(ctx context.Context, arg ListOrganizationMembersParams) ([]ListOrganizationMembersRow, error)

func (*Queries) ListOrganizationRetentionRuns

func (q *Queries) ListOrganizationRetentionRuns(ctx context.Context, orgSlug slug.Slug) ([]ListOrganizationRetentionRunsRow, error)

func (*Queries) ListOrganizationRetentionSettings

func (q *Queries) ListOrganizationRetentionSettings(ctx context.Context) ([]ListOrganizationRetentionSettingsRow, error)

Used by the daily retention worker; unbounded across organizations by design.

func (*Queries) ListPendingPipelineCompletionsForSystem

func (q *Queries) ListPendingPipelineCompletionsForSystem(ctx context.Context) ([]ListPendingPipelineCompletionsForSystemRow, error)

Worker-only bounded discovery; admission reloads and locks the tenant scope.

func (*Queries) ListPendingRunFinalizationsForSystem

func (q *Queries) ListPendingRunFinalizationsForSystem(ctx context.Context) ([]ListPendingRunFinalizationsForSystemRow, error)

func (*Queries) ListPermissionsForRole

func (q *Queries) ListPermissionsForRole(ctx context.Context, arg ListPermissionsForRoleParams) ([]Permission, error)

func (*Queries) ListPipelineCompletionRepairsForSystem

func (q *Queries) ListPipelineCompletionRepairsForSystem(ctx context.Context) ([]ListPipelineCompletionRepairsForSystemRow, error)

Repair queued attempts only. A running attempt may already have provider effects.

func (*Queries) ListPipelineDeployments

func (q *Queries) ListPipelineDeployments(ctx context.Context, arg ListPipelineDeploymentsParams) ([]ListPipelineDeploymentsRow, error)

func (*Queries) ListPipelineReferencesByProject

func (q *Queries) ListPipelineReferencesByProject(ctx context.Context, arg ListPipelineReferencesByProjectParams) ([]PipelineReference, error)

func (*Queries) ListPipelineRunsByProject

func (q *Queries) ListPipelineRunsByProject(ctx context.Context, arg ListPipelineRunsByProjectParams) ([]ListPipelineRunsByProjectRow, error)

Historical reads intentionally do not filter environments.deleted_at. Deleting an environment catalog row must not hide persisted run/audit history.

func (*Queries) ListPipelineSpecsByProject

func (q *Queries) ListPipelineSpecsByProject(ctx context.Context, arg ListPipelineSpecsByProjectParams) ([]ListPipelineSpecsByProjectRow, error)

func (*Queries) ListPipelineTriggers

func (q *Queries) ListPipelineTriggers(ctx context.Context, arg ListPipelineTriggersParams) ([]ListPipelineTriggersRow, error)

func (*Queries) ListPipelineVersionsByPipeline

func (q *Queries) ListPipelineVersionsByPipeline(ctx context.Context, arg ListPipelineVersionsByPipelineParams) ([]PipelineVersion, error)

func (*Queries) ListProjectEnvironments

func (q *Queries) ListProjectEnvironments(ctx context.Context, arg ListProjectEnvironmentsParams) ([]ListProjectEnvironmentsRow, error)

func (*Queries) ListProjectsByOrg

func (q *Queries) ListProjectsByOrg(ctx context.Context, arg ListProjectsByOrgParams) ([]ListProjectsByOrgRow, error)

func (*Queries) ListProofReceiptMaintenanceOrganizations

func (q *Queries) ListProofReceiptMaintenanceOrganizations(ctx context.Context, afterOrganizationID int32) ([]ListProofReceiptMaintenanceOrganizationsRow, error)

func (*Queries) ListProofReceipts

func (q *Queries) ListProofReceipts(ctx context.Context, arg ListProofReceiptsParams) ([]ListProofReceiptsRow, error)

func (*Queries) ListQueriesByDataSource

func (q *Queries) ListQueriesByDataSource(ctx context.Context, arg ListQueriesByDataSourceParams) ([]Query, error)

func (*Queries) ListQueryExecutionsByQuery

func (q *Queries) ListQueryExecutionsByQuery(ctx context.Context, arg ListQueryExecutionsByQueryParams) ([]QueryExecution, error)

func (*Queries) ListQueryParametersByQuery

func (q *Queries) ListQueryParametersByQuery(ctx context.Context, arg ListQueryParametersByQueryParams) ([]QueryParameter, error)

func (*Queries) ListRolesByOrganization

func (q *Queries) ListRolesByOrganization(ctx context.Context, arg ListRolesByOrganizationParams) ([]Role, error)

func (*Queries) ListRunRecencyExpectationsForSystem

func (q *Queries) ListRunRecencyExpectationsForSystem(ctx context.Context) ([]ListRunRecencyExpectationsForSystemRow, error)

Worker-only cross-organization enumeration. Every mutation below retains the environment identity selected here; this is not exposed to tenant callers.

func (*Queries) ListRuntimeVariables

func (q *Queries) ListRuntimeVariables(ctx context.Context, arg ListRuntimeVariablesParams) ([]ListRuntimeVariablesRow, error)

func (*Queries) ListSnowflakeWIFReconciliation

func (q *Queries) ListSnowflakeWIFReconciliation(ctx context.Context) ([]ListSnowflakeWIFReconciliationRow, error)

func (*Queries) ListTriggerRetryAttemptsForRun

Historical retry reads intentionally do not filter environments.deleted_at. Deleting an environment catalog row must not hide persisted run/retry history.

func (*Queries) ListUserOrganizations

func (q *Queries) ListUserOrganizations(ctx context.Context, arg ListUserOrganizationsParams) ([]ListUserOrganizationsRow, error)

func (*Queries) LoadClaimedScheduleFire

func (q *Queries) LoadClaimedScheduleFire(ctx context.Context, arg LoadClaimedScheduleFireParams) (LoadClaimedScheduleFireRow, error)

func (*Queries) LockAccountDeletionOrganizations

func (q *Queries) LockAccountDeletionOrganizations(ctx context.Context, userID int32) ([]LockAccountDeletionOrganizationsRow, error)

func (*Queries) LockAccountDeletionRequest

func (q *Queries) LockAccountDeletionRequest(ctx context.Context, requestSlug slug.Slug) (AccountDeletionRequest, error)

func (*Queries) LockAccountForDeletion

func (q *Queries) LockAccountForDeletion(ctx context.Context, userSlug slug.Slug) (LockAccountForDeletionRow, error)

func (*Queries) LockAccountJobs

func (q *Queries) LockAccountJobs(ctx context.Context, userSlug string) ([]int, error)

Account removal crosses memberships but cancels only the subject's own jobs.

func (*Queries) LockDataSourceForUpdate

func (q *Queries) LockDataSourceForUpdate(ctx context.Context, arg LockDataSourceForUpdateParams) (int, error)

func (*Queries) LockDeletionSubjectByID

func (q *Queries) LockDeletionSubjectByID(ctx context.Context, userID int) (LockDeletionSubjectByIDRow, error)

func (*Queries) LockExecutionInitiatingAccount

func (q *Queries) LockExecutionInitiatingAccount(ctx context.Context, userSlug slug.Slug) (bool, error)

func (*Queries) LockIncrementalCheckpointCommit

func (q *Queries) LockIncrementalCheckpointCommit(ctx context.Context, arg LockIncrementalCheckpointCommitParams) (int, error)

func (*Queries) LockInstanceAdminRoleChanges

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

func (*Queries) LockOAuthGrantIntent

func (q *Queries) LockOAuthGrantIntent(ctx context.Context, arg LockOAuthGrantIntentParams) (LockOAuthGrantIntentRow, error)

func (*Queries) LockODCSContract

func (q *Queries) LockODCSContract(ctx context.Context, arg LockODCSContractParams) (OdcsContract, error)

func (*Queries) LockOrganizationGitLabOAuthGrantIntent

func (q *Queries) LockOrganizationGitLabOAuthGrantIntent(ctx context.Context, orgSlug slug.Slug) (LockOrganizationGitLabOAuthGrantIntentRow, error)

func (*Queries) LockPipelineRunRecoveryFence

func (q *Queries) LockPipelineRunRecoveryFence(ctx context.Context, arg LockPipelineRunRecoveryFenceParams) (int, error)

A retained queue row must prove ownership has ended; absence and silence do not.

func (*Queries) LockPipelineTriggerTopology

func (q *Queries) LockPipelineTriggerTopology(ctx context.Context, arg LockPipelineTriggerTopologyParams) (bool, error)

Serialize topology without upgrading concurrent run inserts' foreign-key locks.

func (*Queries) LockPipelineWebhookCredentialOwner

func (q *Queries) LockPipelineWebhookCredentialOwner(ctx context.Context, arg LockPipelineWebhookCredentialOwnerParams) (int, error)

func (*Queries) LockProofObservationPolicy

func (q *Queries) LockProofObservationPolicy(ctx context.Context, arg LockProofObservationPolicyParams) (ProofObservationPolicy, error)

func (*Queries) LockProofReceiptTarget

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

func (*Queries) LockRunRecencyScope

func (q *Queries) LockRunRecencyScope(ctx context.Context, arg LockRunRecencyScopeParams) error

func (*Queries) LockSnowflakeWIFConnection

func (q *Queries) LockSnowflakeWIFConnection(ctx context.Context, arg LockSnowflakeWIFConnectionParams) (int, error)

===================== Snowflake workload identity lifecycle =====================

func (*Queries) MarkAPIKeyUsed

func (q *Queries) MarkAPIKeyUsed(ctx context.Context, arg MarkAPIKeyUsedParams) (int64, error)

func (*Queries) MarkAsVerified

func (q *Queries) MarkAsVerified(ctx context.Context, arg MarkAsVerifiedParams) error

func (*Queries) MarkCredentialRevoked

func (q *Queries) MarkCredentialRevoked(ctx context.Context, arg MarkCredentialRevokedParams) (MarkCredentialRevokedRow, error)

func (*Queries) MarkDataSourceTestFailure

func (q *Queries) MarkDataSourceTestFailure(ctx context.Context, arg MarkDataSourceTestFailureParams) (DataSource, error)

func (*Queries) MarkDataSourceTestSuccess

func (q *Queries) MarkDataSourceTestSuccess(ctx context.Context, arg MarkDataSourceTestSuccessParams) (DataSource, error)

func (*Queries) MarkPersonalAccessTokenUsed

func (q *Queries) MarkPersonalAccessTokenUsed(ctx context.Context, arg MarkPersonalAccessTokenUsedParams) (int64, error)

func (*Queries) MarkPipelineRunRunning

func (q *Queries) MarkPipelineRunRunning(ctx context.Context, arg MarkPipelineRunRunningParams) (MarkPipelineRunRunningRow, error)

Completion authority is fenced by the claim owner; retired contexts still need a refusal outcome.

func (*Queries) MarkPipelineSinkEffectSucceeded

func (q *Queries) MarkPipelineSinkEffectSucceeded(ctx context.Context, arg MarkPipelineSinkEffectSucceededParams) (PipelineSinkEffect, error)

func (*Queries) MarkPipelineWebhookDeliveryRunning

func (q *Queries) MarkPipelineWebhookDeliveryRunning(ctx context.Context, arg MarkPipelineWebhookDeliveryRunningParams) (int64, error)

func (*Queries) MarkScheduleFireRunning

func (q *Queries) MarkScheduleFireRunning(ctx context.Context, arg MarkScheduleFireRunningParams) (int64, error)

func (*Queries) MarkStaticEnvironmentSecretRevoked

func (q *Queries) MarkStaticEnvironmentSecretRevoked(ctx context.Context, arg MarkStaticEnvironmentSecretRevokedParams) (Credential, error)

func (*Queries) MarkStaticEnvironmentSecretRotated

func (q *Queries) MarkStaticEnvironmentSecretRotated(ctx context.Context, arg MarkStaticEnvironmentSecretRotatedParams) ([]Credential, error)

func (*Queries) MarkTriggerRetryAttemptRunning

func (q *Queries) MarkTriggerRetryAttemptRunning(ctx context.Context, arg MarkTriggerRetryAttemptRunningParams) (int64, error)

func (*Queries) ObservePipelineRunWorker

func (q *Queries) ObservePipelineRunWorker(ctx context.Context, arg ObservePipelineRunWorkerParams) (int64, error)

func (*Queries) OrganizationDeletionBlocked

func (q *Queries) OrganizationDeletionBlocked(ctx context.Context, orgSlug slug.Slug) (pgtype.Bool, error)

Keep existing queue rows pinned through deletion so a completed job cannot be retried between the processing check and removal.

func (*Queries) PipelineTriggerDeploymentExists

func (q *Queries) PipelineTriggerDeploymentExists(ctx context.Context, arg PipelineTriggerDeploymentExistsParams) (bool, error)

func (*Queries) PipelineTriggerPinnedVersionsByHashPrefix

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

func (*Queries) PipelineTriggerPipelineExists

func (q *Queries) PipelineTriggerPipelineExists(ctx context.Context, arg PipelineTriggerPipelineExistsParams) (bool, error)

func (*Queries) PipelineTriggerProjectEnvironmentEnabled

func (q *Queries) PipelineTriggerProjectEnvironmentEnabled(ctx context.Context, arg PipelineTriggerProjectEnvironmentEnabledParams) (bool, error)

===================== Pipeline Triggers =====================

func (*Queries) ProjectEnvironmentEnabled

func (q *Queries) ProjectEnvironmentEnabled(ctx context.Context, arg ProjectEnvironmentEnabledParams) (bool, error)

func (*Queries) ProofObservationActivity

func (q *Queries) ProofObservationActivity(ctx context.Context) ([]ProofObservationActivityRow, error)

Deployment-only counts. The repository maps stored outcomes to the closed vocabulary.

func (*Queries) ProofObservationMaintenanceHealth

func (q *Queries) ProofObservationMaintenanceHealth(ctx context.Context) (ProofObservationMaintenanceHealthRow, error)

Deployment-only aggregates: no tenant identities or protected values leave this query.

func (*Queries) ProofReceiptPublicationEnabled

func (q *Queries) ProofReceiptPublicationEnabled(ctx context.Context, arg ProofReceiptPublicationEnabledParams) (bool, error)

func (*Queries) PrunePipelineCompletionDetails

func (q *Queries) PrunePipelineCompletionDetails(ctx context.Context, arg PrunePipelineCompletionDetailsParams) (int64, error)

func (*Queries) PurgeQuery

func (q *Queries) PurgeQuery(ctx context.Context, arg PurgeQueryParams) (pgconn.CommandTag, error)

func (*Queries) QueuePipelineDraftProposalRefresh

func (q *Queries) QueuePipelineDraftProposalRefresh(ctx context.Context, arg QueuePipelineDraftProposalRefreshParams) (pgconn.CommandTag, error)

func (*Queries) QueuePipelineDraftPublish

func (q *Queries) QueuePipelineDraftPublish(ctx context.Context, arg QueuePipelineDraftPublishParams) (pgconn.CommandTag, error)

func (*Queries) ReadRetainedFile

func (q *Queries) ReadRetainedFile(ctx context.Context, arg ReadRetainedFileParams) (ReadRetainedFileRow, error)

func (*Queries) ReadRetainedFileChunk

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

func (*Queries) ReconcilePipelineRunFinalizationsForSystem

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

func (*Queries) RecordPipelineWebhookDeliveryRetry

func (q *Queries) RecordPipelineWebhookDeliveryRetry(ctx context.Context, arg RecordPipelineWebhookDeliveryRetryParams) (int64, error)

func (*Queries) RecordPipelineWebhookDuplicate

A signed duplicate is trusted only after receiver resolution and HMAC verification. The CTE locks an existing identity so concurrent callers cannot both report it as new.

func (*Queries) RecordRunRecencySuccess

func (q *Queries) RecordRunRecencySuccess(ctx context.Context, arg RecordRunRecencySuccessParams) error

func (*Queries) RefusePipelineCompletionSnapshot

func (q *Queries) RefusePipelineCompletionSnapshot(ctx context.Context, arg RefusePipelineCompletionSnapshotParams) (int64, error)

func (*Queries) RejectPipelineWebhookDelivery

Persist only safe rejection metadata after the request signature has been verified.

func (*Queries) ReleaseHTTPOAuthRefresh

func (q *Queries) ReleaseHTTPOAuthRefresh(ctx context.Context, arg ReleaseHTTPOAuthRefreshParams) error

func (*Queries) ReleaseProjectRepositorySetup

func (q *Queries) ReleaseProjectRepositorySetup(ctx context.Context, arg ReleaseProjectRepositorySetupParams) (int64, error)

func (*Queries) RemoveGitHubAppRepositoryByProviderInstallation

func (q *Queries) RemoveGitHubAppRepositoryByProviderInstallation(ctx context.Context, arg RemoveGitHubAppRepositoryByProviderInstallationParams) (int64, error)

func (*Queries) RemoveMissingGitHubAppRepositories

func (q *Queries) RemoveMissingGitHubAppRepositories(ctx context.Context, arg RemoveMissingGitHubAppRepositoriesParams) error

func (*Queries) RemoveOrganizationMember

func (q *Queries) RemoveOrganizationMember(ctx context.Context, arg RemoveOrganizationMemberParams) error

func (*Queries) RemovePermissionFromRole

func (q *Queries) RemovePermissionFromRole(ctx context.Context, arg RemovePermissionFromRoleParams) error

func (*Queries) ReopenProofChangeCandidateByKey

func (q *Queries) ReopenProofChangeCandidateByKey(ctx context.Context, arg ReopenProofChangeCandidateByKeyParams) (ProofChangeCandidate, error)

func (*Queries) ReplaceCredentialCiphertext

func (q *Queries) ReplaceCredentialCiphertext(ctx context.Context, arg ReplaceCredentialCiphertextParams) (int64, error)

Compare-and-swap preserves concurrent refresh/revocation and lifecycle versions.

func (*Queries) ReplayPipelineWebhookDelivery

Replay is limited to failures that never created a run; linked runs use the pipeline run replay contract so sink idempotency remains enforced there.

func (*Queries) ResetPipelineWebhookPreflight

func (q *Queries) ResetPipelineWebhookPreflight(ctx context.Context, arg ResetPipelineWebhookPreflightParams) (int64, error)

func (*Queries) ResolvePipelineWebhookCredential

func (q *Queries) ResolvePipelineWebhookCredential(ctx context.Context, arg ResolvePipelineWebhookCredentialParams) (Credential, error)

func (*Queries) ResolvePipelineWebhookReceiver

func (q *Queries) ResolvePipelineWebhookReceiver(ctx context.Context, receiverID pgtype.Text) (ResolvePipelineWebhookReceiverRow, error)

Pre-tenant lookup: the public receiver presents only an opaque receiver ID. Tenant identity is derived from the trigger and scopes every downstream call.

func (*Queries) ResolveProofChangeCandidateMappings

ponytail: one mapping-row lock serializes candidate writes; use a keyed advisory lock only if one repository mapping becomes a measured bottleneck.

func (*Queries) ResolveProofChangeWebhookMappings

Pre-tenant webhook intake derives tenancy from the verified provider installation. The provider connection, repository, and target ref identify candidates; organization/project/environment/data-source/credential joins enforce the tenant boundary and fail closed for inactive credentials.

func (*Queries) ResolveRunRecencyEpisode

func (q *Queries) ResolveRunRecencyEpisode(ctx context.Context, arg ResolveRunRecencyEpisodeParams) error

func (*Queries) RestoreDataSource

func (q *Queries) RestoreDataSource(ctx context.Context, arg RestoreDataSourceParams) (pgconn.CommandTag, error)

func (*Queries) RestorePipelineSpec

func (q *Queries) RestorePipelineSpec(ctx context.Context, arg RestorePipelineSpecParams) (pgconn.CommandTag, error)

func (*Queries) RestoreQuery

func (q *Queries) RestoreQuery(ctx context.Context, arg RestoreQueryParams) (pgconn.CommandTag, error)

func (*Queries) RestoreRole

func (q *Queries) RestoreRole(ctx context.Context, arg RestoreRoleParams) (pgconn.CommandTag, error)

func (*Queries) RetainedFileCapabilitiesReady

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

func (*Queries) RetireDataSourceProofTargets

func (q *Queries) RetireDataSourceProofTargets(ctx context.Context, arg RetireDataSourceProofTargetsParams) error

func (*Queries) RevokeAPIKey

func (q *Queries) RevokeAPIKey(ctx context.Context, arg RevokeAPIKeyParams) error

func (*Queries) RevokeAccount

func (q *Queries) RevokeAccount(ctx context.Context, userID int) error

func (*Queries) RevokeAccountPendingInvitations

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

func (*Queries) RevokeChangedProjectProposalAuthority

func (q *Queries) RevokeChangedProjectProposalAuthority(ctx context.Context, arg RevokeChangedProjectProposalAuthorityParams) error

func (*Queries) RevokeOtherSnowflakeWIFBindings

func (q *Queries) RevokeOtherSnowflakeWIFBindings(ctx context.Context, arg RevokeOtherSnowflakeWIFBindingsParams) error

func (*Queries) RevokePersonalAccessToken

func (q *Queries) RevokePersonalAccessToken(ctx context.Context, arg RevokePersonalAccessTokenParams) (int64, error)

func (*Queries) RevokePipelineWebhookCredentials

func (q *Queries) RevokePipelineWebhookCredentials(ctx context.Context, arg RevokePipelineWebhookCredentialsParams) ([]Credential, error)

func (*Queries) RotateAPIKey

func (q *Queries) RotateAPIKey(ctx context.Context, arg RotateAPIKeyParams) (RotateAPIKeyRow, error)

func (*Queries) SaveCheckpoint

func (q *Queries) SaveCheckpoint(ctx context.Context, arg SaveCheckpointParams) (PipelineCheckpoint, error)

Checkpoint writes are active runtime operations, so they require an active environment catalog row and active project-environment enablement.

func (*Queries) SaveCompletionRetryExecution

func (q *Queries) SaveCompletionRetryExecution(ctx context.Context, arg SaveCompletionRetryExecutionParams) (int64, error)

func (*Queries) SaveHTTPOAuthApp

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

func (*Queries) SaveProofObservationPolicy

func (q *Queries) SaveProofObservationPolicy(ctx context.Context, arg SaveProofObservationPolicyParams) (ProofObservationPolicy, error)

func (*Queries) SealRetainedFile

func (q *Queries) SealRetainedFile(ctx context.Context, arg SealRetainedFileParams) (bool, error)

func (*Queries) SetCurrentPipelineVersion

func (q *Queries) SetCurrentPipelineVersion(ctx context.Context, arg SetCurrentPipelineVersionParams) (pgconn.CommandTag, error)

func (*Queries) SetDataSourceProofControls

func (q *Queries) SetDataSourceProofControls(ctx context.Context, arg SetDataSourceProofControlsParams) (int64, error)

func (*Queries) SetDataSourceReadOnly

func (q *Queries) SetDataSourceReadOnly(ctx context.Context, arg SetDataSourceReadOnlyParams) error

func (*Queries) SetInstanceAdminUserRole

func (q *Queries) SetInstanceAdminUserRole(ctx context.Context, arg SetInstanceAdminUserRoleParams) (int64, error)

func (*Queries) SetPipelineReferenceHasDraft

func (q *Queries) SetPipelineReferenceHasDraft(ctx context.Context, arg SetPipelineReferenceHasDraftParams) (pgconn.CommandTag, error)

func (*Queries) SetProjectPipelineBackend

func (q *Queries) SetProjectPipelineBackend(ctx context.Context, arg SetProjectPipelineBackendParams) (int64, error)

func (*Queries) SetSnowflakeWIFBindingState

func (q *Queries) SetSnowflakeWIFBindingState(ctx context.Context, arg SetSnowflakeWIFBindingStateParams) error

func (*Queries) SnowflakeWIFReady

func (q *Queries) SnowflakeWIFReady(ctx context.Context, arg SnowflakeWIFReadyParams) (bool, error)

func (*Queries) StartProofObservation

func (q *Queries) StartProofObservation(ctx context.Context, arg StartProofObservationParams) (int64, error)

func (*Queries) SupersedeCurrentIncrementalCheckpoint

func (q *Queries) SupersedeCurrentIncrementalCheckpoint(ctx context.Context, arg SupersedeCurrentIncrementalCheckpointParams) error

func (*Queries) SupersedeOpenDriftImpactReports

func (q *Queries) SupersedeOpenDriftImpactReports(ctx context.Context, arg SupersedeOpenDriftImpactReportsParams) error

===================== Drift Impact Reports =====================

func (*Queries) UpdateAPIKey

func (q *Queries) UpdateAPIKey(ctx context.Context, arg UpdateAPIKeyParams) error

func (*Queries) UpdateAlertDestination

func (q *Queries) UpdateAlertDestination(ctx context.Context, arg UpdateAlertDestinationParams) (UpdateAlertDestinationRow, error)

func (*Queries) UpdateAlertPolicy

func (q *Queries) UpdateAlertPolicy(ctx context.Context, arg UpdateAlertPolicyParams) (UpdateAlertPolicyRow, error)

func (*Queries) UpdateDataSource

func (q *Queries) UpdateDataSource(ctx context.Context, arg UpdateDataSourceParams) error

func (*Queries) UpdateDataSourceCredentials

func (q *Queries) UpdateDataSourceCredentials(ctx context.Context, arg UpdateDataSourceCredentialsParams) error

func (*Queries) UpdateDataSourceRef

func (q *Queries) UpdateDataSourceRef(ctx context.Context, arg UpdateDataSourceRefParams) (UpdateDataSourceRefRow, error)

func (*Queries) UpdateEnvironment

func (q *Queries) UpdateEnvironment(ctx context.Context, arg UpdateEnvironmentParams) (Environment, error)

func (*Queries) UpdateGitHubAppInstallationLifecycle

func (q *Queries) UpdateGitHubAppInstallationLifecycle(ctx context.Context, arg UpdateGitHubAppInstallationLifecycleParams) (int64, error)

func (*Queries) UpdateODCSContract

func (q *Queries) UpdateODCSContract(ctx context.Context, arg UpdateODCSContractParams) (OdcsContract, error)

func (*Queries) UpdateOrganization

func (q *Queries) UpdateOrganization(ctx context.Context, arg UpdateOrganizationParams) error

func (*Queries) UpdateOrganizationMember

func (q *Queries) UpdateOrganizationMember(ctx context.Context, arg UpdateOrganizationMemberParams) error

func (*Queries) UpdateOrganizationSettings

func (q *Queries) UpdateOrganizationSettings(ctx context.Context, arg UpdateOrganizationSettingsParams) error

func (*Queries) UpdatePersonalAccessToken

func (q *Queries) UpdatePersonalAccessToken(ctx context.Context, arg UpdatePersonalAccessTokenParams) (int64, error)

func (*Queries) UpdatePipelineCreationProposalResult

func (q *Queries) UpdatePipelineCreationProposalResult(ctx context.Context, arg UpdatePipelineCreationProposalResultParams) (int64, error)

func (*Queries) UpdatePipelineRunSourceEvent

func (q *Queries) UpdatePipelineRunSourceEvent(ctx context.Context, arg UpdatePipelineRunSourceEventParams) (int64, error)

func (*Queries) UpdatePipelineTrigger

func (q *Queries) UpdatePipelineTrigger(ctx context.Context, arg UpdatePipelineTriggerParams) (UpdatePipelineTriggerRow, error)

func (*Queries) UpdateProject

func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (int64, error)

func (*Queries) UpdateProjectRepositorySetup

func (q *Queries) UpdateProjectRepositorySetup(ctx context.Context, arg UpdateProjectRepositorySetupParams) (int64, error)

func (*Queries) UpdateQuery

func (q *Queries) UpdateQuery(ctx context.Context, arg UpdateQueryParams) (Query, error)

func (*Queries) UpdateRole

func (q *Queries) UpdateRole(ctx context.Context, arg UpdateRoleParams) (pgconn.CommandTag, error)

func (*Queries) UpdateUserPassword

func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUserPasswordParams) error

func (*Queries) UpdateUserProfile

func (q *Queries) UpdateUserProfile(ctx context.Context, arg UpdateUserProfileParams) error

func (*Queries) UpsertDataSourceBinding

func (q *Queries) UpsertDataSourceBinding(ctx context.Context, arg UpsertDataSourceBindingParams) (UpsertDataSourceBindingRow, error)

func (*Queries) UpsertEnvironmentSecret

func (q *Queries) UpsertEnvironmentSecret(ctx context.Context, arg UpsertEnvironmentSecretParams) (UpsertEnvironmentSecretRow, error)

func (*Queries) UpsertGitHubAppInstallation

func (q *Queries) UpsertGitHubAppInstallation(ctx context.Context, arg UpsertGitHubAppInstallationParams) (GithubAppInstallation, error)

func (*Queries) UpsertGitHubAppRepository

func (q *Queries) UpsertGitHubAppRepository(ctx context.Context, arg UpsertGitHubAppRepositoryParams) error

func (*Queries) UpsertNotificationRecord

func (*Queries) UpsertOAuthGrant

func (q *Queries) UpsertOAuthGrant(ctx context.Context, arg UpsertOAuthGrantParams) (UpsertOAuthGrantRow, error)

func (*Queries) UpsertPipelineDeployment

func (*Queries) UpsertPipelineDraft

func (q *Queries) UpsertPipelineDraft(ctx context.Context, arg UpsertPipelineDraftParams) (PipelineDraft, error)

func (*Queries) UpsertPipelineReference

func (q *Queries) UpsertPipelineReference(ctx context.Context, arg UpsertPipelineReferenceParams) (PipelineReference, error)

func (*Queries) UpsertPipelineSpec

func (q *Queries) UpsertPipelineSpec(ctx context.Context, arg UpsertPipelineSpecParams) (UpsertPipelineSpecRow, error)

func (*Queries) UpsertRuntimeVariable

func (q *Queries) UpsertRuntimeVariable(ctx context.Context, arg UpsertRuntimeVariableParams) (UpsertRuntimeVariableRow, error)

func (*Queries) UpsertSchemaMetadataByDataSourceSlug

func (q *Queries) UpsertSchemaMetadataByDataSourceSlug(ctx context.Context, arg UpsertSchemaMetadataByDataSourceSlugParams) (SchemaMetadatum, error)

func (*Queries) UpsertSnowflakeWIFBinding

func (q *Queries) UpsertSnowflakeWIFBinding(ctx context.Context, arg UpsertSnowflakeWIFBindingParams) error

func (*Queries) UpsertWishlistRegistration

func (q *Queries) UpsertWishlistRegistration(ctx context.Context, arg UpsertWishlistRegistrationParams) (WishlistRegistration, error)

===================== Wishlist registrations ===================== Re-submission refreshes mutable fields with the latest submitted values.

func (*Queries) WithTx

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

type Query

type Query struct {
	ID                       int
	DataSourceID             int64
	Slug                     slug.Slug
	Name                     string
	Description              pgtype.Text
	Data                     []byte
	ExpectedInputContract    []byte
	DeletedAt                pgtype.Timestamptz
	DeleteReason             pgtype.Text
	CreatedAt                pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	ExpectedInputContractRef []byte
	OutputContract           []byte
	OutputContractRef        []byte
}

type QueryExecution

type QueryExecution struct {
	ID         int
	QueryID    int64
	Slug       slug.Slug
	Status     string
	Result     []byte
	ExecutedAt pgtype.Timestamptz
}

type QueryParameter

type QueryParameter struct {
	ID           int
	QueryID      int64
	Slug         slug.Slug
	Name         string
	DataType     string
	IsRequired   bool
	DefaultValue pgtype.Text
	Description  pgtype.Text
	CreatedAt    pgtype.Timestamptz
}

type QueuePipelineDraftProposalRefreshParams

type QueuePipelineDraftProposalRefreshParams struct {
	RefreshAttemptID pgtype.Text
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	PipelineSlug     string
	ProposalID       pgtype.Text
	MemberSlug       slug.Slug
}

type QueuePipelineDraftPublishParams

type QueuePipelineDraftPublishParams struct {
	DraftState                pgtype.Text
	BaseRef                   pgtype.Text
	BaseCommitSha             pgtype.Text
	BranchName                pgtype.Text
	PublishAttemptID          pgtype.Text
	ProposalAuthorityID       pgtype.Int8
	PublicationMode           pgtype.Text
	ProviderHost              pgtype.Text
	ProviderAccountID         pgtype.Text
	ProviderRepositoryID      pgtype.Text
	ProviderCredentialID      pgtype.Text
	ExecutingPrincipalID      pgtype.Text
	ExecutingPrincipalDisplay pgtype.Text
	AuthoritySource           pgtype.Text
	OrgSlug                   slug.Slug
	ProjectSlug               slug.Slug
	PipelineSlug              string
	MemberSlug                slug.Slug
}

type ReadRetainedFileChunkParams

type ReadRetainedFileChunkParams struct {
	RequestID       pgtype.UUID
	ClaimToken      pgtype.UUID
	OrgSlug         string
	SourceRequestID pgtype.UUID
	Sequence        int32
}

type ReadRetainedFileParams

type ReadRetainedFileParams struct {
	RequestID       pgtype.UUID
	ClaimToken      pgtype.UUID
	OrgSlug         string
	SourceRequestID pgtype.UUID
}

type ReadRetainedFileRow

type ReadRetainedFileRow struct {
	SizeBytes  int64
	ChunkCount int32
	Sha256     string
	ExpiresAt  pgtype.Timestamptz
}

type RecordPipelineWebhookDeliveryRetryParams

type RecordPipelineWebhookDeliveryRetryParams struct {
	PipelineVersionSpecHash pgtype.Text
	NextAttemptNumber       int32
	FailureKind             pgtype.Text
	NextRetryAt             pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	ReceiverID              string
	DeliveryID              string
	AttemptNumber           int32
}

type RecordPipelineWebhookDuplicateParams

type RecordPipelineWebhookDuplicateParams struct {
	ReceiverID    pgtype.Text
	DeliveryID    pgtype.Text
	ReceivedAt    pgtype.Timestamptz
	PayloadDigest pgtype.Text
}

type RecordPipelineWebhookDuplicateRow

type RecordPipelineWebhookDuplicateRow struct {
	PayloadDigest string
	RunSlug       string
	Status        string
	Duplicate     pgtype.Bool
}

type RecordRunRecencySuccessParams

type RecordRunRecencySuccessParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type RecordTriggerRetryAttemptParams

type RecordTriggerRetryAttemptParams struct {
	OrgSlug                       slug.Slug
	ProjectSlug                   slug.Slug
	EnvironmentSlug               slug.Slug
	TriggerSlug                   slug.Slug
	SourceType                    string
	Status                        string
	RootRunSlug                   string
	TriggerRevision               int64
	PipelineSlug                  string
	PipelineVersionSpecHash       string
	AttemptSlug                   string
	DecisionReason                pgtype.Text
	VersionPolicy                 string
	PinnedVersionHash             pgtype.Text
	RuntimeInputKeys              []string
	RetryEnabled                  bool
	RetryMaxAttempts              int32
	RetryBackoffStrategy          string
	RetryInitialDelaySeconds      int32
	RetryMaxDelaySeconds          int32
	RetryJitter                   bool
	RetryableFailureKinds         []string
	RetryMaxElapsedSeconds        pgtype.Int4
	SourceSummary                 string
	SourceEntrypoint              string
	SourceActorType               string
	SourceActorSlug               pgtype.Text
	SourceRequestID               pgtype.Text
	SourceTraceID                 pgtype.Text
	SourceEventSlug               pgtype.Text
	SourceParameterKeys           []string
	SourceScheduleTriggerSlug     pgtype.Text
	SourceScheduleTriggerRevision pgtype.Int8
	SourceScheduleCron            pgtype.Text
	SourceScheduleTimezone        pgtype.Text
	SourceScheduleScheduledFireAt pgtype.Timestamptz
	SourceScheduleActualFireAt    pgtype.Timestamptz
	SourceScheduleMisfireResult   pgtype.Text
	RetryOfRunSlug                string
	RunSlug                       string
	AttemptNumber                 int32
	FailureKind                   pgtype.Text
	ScheduledAt                   pgtype.Timestamptz
}

type RecordTriggerRetryAttemptRow

type RecordTriggerRetryAttemptRow struct {
	ID                            int
	ProjectEnvironmentID          int64
	PipelineTriggerID             pgtype.Int8
	AttemptSlug                   string
	Status                        string
	DecisionReason                pgtype.Text
	TriggerRevision               int64
	PipelineSlug                  string
	VersionPolicy                 string
	PinnedVersionHash             pgtype.Text
	PipelineVersionSpecHash       string
	RuntimeInputKeys              []string
	RetryEnabled                  bool
	RetryMaxAttempts              int32
	RetryBackoffStrategy          string
	RetryInitialDelaySeconds      int32
	RetryMaxDelaySeconds          int32
	RetryJitter                   bool
	RetryableFailureKinds         []string
	RetryMaxElapsedSeconds        pgtype.Int4
	SourceType                    string
	SourceSummary                 string
	SourceEntrypoint              string
	SourceActorType               string
	SourceActorSlug               pgtype.Text
	SourceRequestID               pgtype.Text
	SourceTraceID                 pgtype.Text
	SourceEventSlug               pgtype.Text
	SourceParameterKeys           []string
	SourceScheduleTriggerSlug     pgtype.Text
	SourceScheduleTriggerRevision pgtype.Int8
	SourceScheduleCron            pgtype.Text
	SourceScheduleTimezone        pgtype.Text
	SourceScheduleScheduledFireAt pgtype.Timestamptz
	SourceScheduleActualFireAt    pgtype.Timestamptz
	SourceScheduleMisfireResult   pgtype.Text
	RootRunSlug                   string
	RetryOfRunSlug                string
	RunSlug                       string
	AttemptNumber                 int32
	FailureKind                   pgtype.Text
	ScheduledAt                   pgtype.Timestamptz
	EnqueuedAt                    pgtype.Timestamptz
	StartedAt                     pgtype.Timestamptz
	CompletedAt                   pgtype.Timestamptz
	ErrorSummary                  pgtype.Text
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CompletionExecutionArgs       []byte
	CompletionTriggerSlug         pgtype.Text
}

type RefreshOrganizationMemberInvitationTokenParams

type RefreshOrganizationMemberInvitationTokenParams struct {
	TokenHash      pgtype.Text
	ExpiresAt      pgtype.Timestamp
	LastSentAt     pgtype.Timestamp
	OrgSlug        pgtype.Text
	InvitationSlug pgtype.Text
}

type RefreshOrganizationMemberInvitationTokenRow

type RefreshOrganizationMemberInvitationTokenRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type RefreshPipelineDraftProposalParams

type RefreshPipelineDraftProposalParams struct {
	OrgSlug          pgtype.Text
	ProjectSlug      pgtype.Text
	PipelineSlug     pgtype.Text
	MemberSlug       pgtype.Text
	DraftState       pgtype.Text
	BranchName       pgtype.Text
	BranchHeadSha    pgtype.Text
	ProposalProvider pgtype.Text
	ProposalUrl      pgtype.Text
	ProposalState    pgtype.Text
	ProposalID       pgtype.Text
	RefreshAttemptID pgtype.Text
}

type RefreshPipelineDraftProposalRow

type RefreshPipelineDraftProposalRow struct {
	DraftExists bool
	Updated     bool
}

type RefusePipelineCompletionSnapshotParams

type RefusePipelineCompletionSnapshotParams struct {
	Reason     pgtype.Text
	OrgSlug    slug.Slug
	SnapshotID int
}

type RejectPipelineWebhookDeliveryParams

type RejectPipelineWebhookDeliveryParams struct {
	ReceiverID               string
	DeliveryID               string
	PayloadDigest            string
	PayloadSizeBytes         int64
	KeyVersion               int32
	TriggerRevision          int64
	PipelineSlug             string
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
	RunSlug                  string
	DecisionReason           pgtype.Text
	ReceivedAt               pgtype.Timestamptz
}

type RejectPipelineWebhookDeliveryRow

type RejectPipelineWebhookDeliveryRow struct {
	PayloadDigest string
	RunSlug       string
	Status        string
	Inserted      bool
}

type ReleaseHTTPOAuthRefreshParams

type ReleaseHTTPOAuthRefreshParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	ClaimID        string
}

type ReleaseProjectRepositorySetupParams

type ReleaseProjectRepositorySetupParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	LeaseOwner  pgtype.Text
}

type RemoveGitHubAppRepositoryByProviderInstallationParams

type RemoveGitHubAppRepositoryByProviderInstallationParams struct {
	ProviderInstallationID int64
	RepositoryID           int64
}

type RemoveMissingGitHubAppRepositoriesParams

type RemoveMissingGitHubAppRepositoriesParams struct {
	OrganizationID int32
	InstallationID int64
	RepositoryIds  []int64
}

type RemoveOrganizationMemberParams

type RemoveOrganizationMemberParams struct {
	OrgSlug  pgtype.Text
	UserSlug pgtype.Text
}

type RemovePermissionFromRoleParams

type RemovePermissionFromRoleParams struct {
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
	Resource pgtype.Text
	Action   pgtype.Text
}

type ReopenProofChangeCandidateByKeyParams

type ReopenProofChangeCandidateByKeyParams struct {
	OrgSlug      slug.Slug
	CandidateKey string
}

type ReplaceCredentialCiphertextParams

type ReplaceCredentialCiphertextParams struct {
	Replacement []byte
	Family      int32
	RecordID    int64
	Tenant      string
	Resource    string
	Expected    []byte
	ResourceAux string
}

type ReplayPipelineWebhookDeliveryParams

type ReplayPipelineWebhookDeliveryParams struct {
	ReplayedAt      pgtype.Timestamptz
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	DeliveryID      string
}

type ReplayPipelineWebhookDeliveryRow

type ReplayPipelineWebhookDeliveryRow struct {
	ReceiverID    string
	DeliveryID    string
	AttemptNumber int32
}

type ResetDataSourceSchemaImportParams

type ResetDataSourceSchemaImportParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type ResetDataSourceSchemaImportRow

type ResetDataSourceSchemaImportRow struct {
	Slug                     slug.Slug
	SchemaImportStatus       string
	SchemaImportErrorCode    pgtype.Text
	SchemaImportErrorMessage pgtype.Text
	SchemaImportStartedAt    pgtype.Timestamptz
	SchemaImportFinishedAt   pgtype.Timestamptz
	Started                  bool
}

type ResetPipelineWebhookPreflightParams

type ResetPipelineWebhookPreflightParams struct {
	ReceiverID    string
	DeliveryID    string
	AttemptNumber int32
}

type ResolveGitHubAppRepositoryBindingParams

type ResolveGitHubAppRepositoryBindingParams struct {
	RepositoryID           int64
	ProviderInstallationID int64
}

type ResolveGitHubAppRepositoryBindingRow

type ResolveGitHubAppRepositoryBindingRow struct {
	OrganizationSlug slug.Slug
	InstallationID   int64
}

type ResolveNotificationRecordParams

type ResolveNotificationRecordParams struct {
	OrgSlug    pgtype.Text
	RecordSlug pgtype.Text
	ResolvedAt pgtype.Timestamptz
}

type ResolveNotificationRecordRow

type ResolveNotificationRecordRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ProjectSlug       string
	EnvironmentSlug   string
}

type ResolvePipelineWebhookCredentialParams

type ResolvePipelineWebhookCredentialParams struct {
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
	KeyVersion      int32
}

type ResolvePipelineWebhookReceiverRow

type ResolvePipelineWebhookReceiverRow struct {
	OrgSlug                  slug.Slug
	ProjectSlug              slug.Slug
	EnvironmentSlug          slug.Slug
	TriggerSlug              slug.Slug
	TriggerRevision          int64
	PipelineSlug             slug.Slug
	VersionPolicy            string
	PinnedVersionHash        pgtype.Text
	RuntimeInputKeys         []string
	WebhookInputMappings     []byte
	RetryEnabled             bool
	RetryMaxAttempts         int32
	RetryBackoffStrategy     string
	RetryInitialDelaySeconds int32
	RetryMaxDelaySeconds     int32
	RetryJitter              bool
	RetryableFailureKinds    []string
	RetryMaxElapsedSeconds   pgtype.Int4
}

type ResolveProofChangeCandidateMappingsParams

type ResolveProofChangeCandidateMappingsParams struct {
	Provider             string
	MappingID            int64
	OrgSlug              slug.Slug
	ProviderConnectionID string
	RepositoryID         string
	TargetRef            string
	PipelinePath         string
}

type ResolveProofChangeCandidateMappingsRow

type ResolveProofChangeCandidateMappingsRow struct {
	ID                     int64
	OrganizationSlug       slug.Slug
	ProjectSlug            slug.Slug
	EnvironmentSlug        slug.Slug
	ProviderConnectionSlug slug.Slug
	Provider               string
	ProviderConnectionID   string
	RepositoryID           string
	TargetRef              string
	PipelinePath           string
}

type ResolveProofChangeWebhookMappingsParams

type ResolveProofChangeWebhookMappingsParams struct {
	Provider             string
	ProviderConnectionID string
	RepositoryID         string
	TargetRef            string
}

type ResolveProofChangeWebhookMappingsRow

type ResolveProofChangeWebhookMappingsRow struct {
	ID                     int64
	OrganizationSlug       slug.Slug
	ProjectSlug            slug.Slug
	EnvironmentSlug        slug.Slug
	ProviderConnectionSlug slug.Slug
	Provider               string
	ProviderConnectionID   string
	RepositoryID           string
	TargetRef              string
	PipelinePath           string
}

type ResolveRunRecencyEpisodeParams

type ResolveRunRecencyEpisodeParams struct {
	ResolvedAt           pgtype.Timestamptz
	ResolutionReason     pgtype.Text
	RecoveryRunSlug      pgtype.Text
	RecoverySucceededAt  pgtype.Timestamptz
	ProjectEnvironmentID int64
	PipelineSlug         string
	Slug                 slug.Slug
}

type RestoreDataSourceParams

type RestoreDataSourceParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type RestorePipelineSpecParams

type RestorePipelineSpecParams struct {
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	Slug        slug.Slug
}

type RestoreQueryParams

type RestoreQueryParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
	QuerySlug      slug.Slug
}

type RestoreRoleParams

type RestoreRoleParams struct {
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
}

type RetainedFileChunk

type RetainedFileChunk struct {
	RequestID  pgtype.UUID
	Sequence   int32
	Ciphertext []byte
}

type RetainedFileStream

type RetainedFileStream struct {
	RequestID      pgtype.UUID
	OrganizationID int32
	MaxBytes       int64
	SizeBytes      int64
	ChunkCount     int32
	Sha256         pgtype.Text
	Sealed         bool
	ExpiresAt      pgtype.Timestamptz
}

type RetireDataSourceProofTargetsParams

type RetireDataSourceProofTargetsParams struct {
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type RevokeAPIKeyParams

type RevokeAPIKeyParams struct {
	OrgSlug    slug.Slug
	ApiKeySlug slug.Slug
}

type RevokeChangedProjectProposalAuthorityParams

type RevokeChangedProjectProposalAuthorityParams struct {
	OrgSlug              slug.Slug
	ProjectSlug          slug.Slug
	ExecutingPrincipalID string
	DataSourceSlug       slug.Slug
	CredentialSlug       slug.Slug
	ProviderAccountID    string
	ProviderRepositoryID string
	ProviderCredentialID string
}

type RevokeOrganizationMemberInvitationParams

type RevokeOrganizationMemberInvitationParams struct {
	RevokedAt      pgtype.Timestamp
	OrgSlug        pgtype.Text
	InvitationSlug pgtype.Text
}

type RevokeOrganizationMemberInvitationRow

type RevokeOrganizationMemberInvitationRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Email             string
	RoleID            int32
	InvitedByUserID   pgtype.Int4
	AcceptedByUserID  pgtype.Int4
	AcceptedMemberID  pgtype.Int4
	TokenHash         string
	Status            string
	ExpiresAt         pgtype.Timestamp
	LastSentAt        pgtype.Timestamp
	AcceptedAt        pgtype.Timestamp
	DeclinedAt        pgtype.Timestamp
	RevokedAt         pgtype.Timestamp
	ExpiredAt         pgtype.Timestamp
	CreatedAt         pgtype.Timestamp
	UpdatedAt         pgtype.Timestamp
	OrganizationSlug  slug.Slug
	RoleSlug          slug.Slug
	InvitedByUserSlug pgtype.Text
	AcceptedUserSlug  pgtype.Text
}

type RevokeOtherSnowflakeWIFBindingsParams

type RevokeOtherSnowflakeWIFBindingsParams struct {
	OrgSlug slug.Slug
	DsSlug  slug.Slug
	Enabled bool
	Account string
	Issuer  string
}

type RevokePersonalAccessTokenParams

type RevokePersonalAccessTokenParams struct {
	UserSlug slug.Slug
	PatSlug  slug.Slug
}

type RevokePipelineWebhookCredentialsParams

type RevokePipelineWebhookCredentialsParams struct {
	RevokedAt       pgtype.Timestamptz
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	TriggerSlug     slug.Slug
}

type RiverClient

type RiverClient struct {
	ID        string
	CreatedAt pgtype.Timestamptz
	Metadata  []byte
	PausedAt  pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
}

type RiverClientQueue

type RiverClientQueue struct {
	RiverClientID    string
	Name             string
	CreatedAt        pgtype.Timestamptz
	MaxWorkers       int64
	Metadata         []byte
	NumJobsCompleted int64
	NumJobsRunning   int64
	UpdatedAt        pgtype.Timestamptz
}

type RiverJob

type RiverJob struct {
	ID           int
	State        RiverJobState
	Attempt      int16
	MaxAttempts  int16
	AttemptedAt  pgtype.Timestamptz
	CreatedAt    pgtype.Timestamptz
	FinalizedAt  pgtype.Timestamptz
	ScheduledAt  pgtype.Timestamptz
	Priority     int16
	Args         []byte
	AttemptedBy  []string
	Errors       [][]byte
	Kind         string
	Metadata     []byte
	Queue        string
	Tags         []string
	UniqueKey    []byte
	UniqueStates pgtype.Bits
}

type RiverJobState

type RiverJobState string
const (
	RiverJobStateAvailable RiverJobState = "available"
	RiverJobStateCancelled RiverJobState = "cancelled"
	RiverJobStateCompleted RiverJobState = "completed"
	RiverJobStateDiscarded RiverJobState = "discarded"
	RiverJobStatePending   RiverJobState = "pending"
	RiverJobStateRetryable RiverJobState = "retryable"
	RiverJobStateRunning   RiverJobState = "running"
	RiverJobStateScheduled RiverJobState = "scheduled"
)

func (*RiverJobState) Scan

func (e *RiverJobState) Scan(src interface{}) error

type RiverLeader

type RiverLeader struct {
	ElectedAt pgtype.Timestamptz
	ExpiresAt pgtype.Timestamptz
	LeaderID  string
	Name      string
}

type RiverMigration

type RiverMigration struct {
	Line      string
	Version   int64
	CreatedAt pgtype.Timestamptz
}

type RiverQueue

type RiverQueue struct {
	Name      string
	CreatedAt pgtype.Timestamptz
	Metadata  []byte
	PausedAt  pgtype.Timestamptz
	UpdatedAt pgtype.Timestamptz
}

type Role

type Role struct {
	ID             int
	OrganizationID int32
	Slug           slug.Slug
	Name           string
	IsDefault      bool
	CreatedAt      pgtype.Timestamp
	UpdatedAt      pgtype.Timestamp
	DeletedAt      pgtype.Timestamptz
	DeleteReason   pgtype.Text
}

type RolePermission

type RolePermission struct {
	ID           int
	RoleID       int32
	PermissionID int32
	CreatedAt    pgtype.Timestamp
}

type RotateAPIKeyParams

type RotateAPIKeyParams struct {
	TokenHash   string
	TokenPrefix string
	OrgSlug     slug.Slug
	ApiKeySlug  slug.Slug
}

type RotateAPIKeyRow

type RotateAPIKeyRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	Name              string
	Description       pgtype.Text
	TokenHash         string
	TokenPrefix       string
	CreatedByMemberID pgtype.Int4
	RoleID            int32
	ExpiresAt         pgtype.Timestamptz
	RevokedAt         pgtype.Timestamptz
	LastUsedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	CanManageApiKeys  bool
	RoleSlug          slug.Slug
	CreatedByUserSlug slug.Slug
}

type RotatePersonalAccessTokenParams

type RotatePersonalAccessTokenParams struct {
	TokenHash   string
	TokenPrefix string
	UserSlug    slug.Slug
	PatSlug     slug.Slug
}

type RotatePersonalAccessTokenRow

type RotatePersonalAccessTokenRow struct {
	ID                            int
	UserID                        int32
	Slug                          slug.Slug
	Name                          string
	Description                   pgtype.Text
	TokenHash                     string
	TokenPrefix                   string
	ExpiresAt                     pgtype.Timestamptz
	RevokedAt                     pgtype.Timestamptz
	LastUsedAt                    pgtype.Timestamptz
	CreatedAt                     pgtype.Timestamptz
	UpdatedAt                     pgtype.Timestamptz
	CanManagePersonalAccessTokens bool
	UserSlug                      slug.Slug
}

type SaveCheckpointParams

type SaveCheckpointParams struct {
	RunSlug                    string
	StepSlug                   string
	PipelineSpec               []byte
	StepResults                []byte
	IncrementalSourceWindows   []byte
	CompiledPlan               []byte
	CompiledPlanDigest         pgtype.Text
	DeploymentPlan             []byte
	DeploymentResolutionDigest pgtype.Text
	OrgSlug                    slug.Slug
	ProjectSlug                slug.Slug
	EnvironmentSlug            slug.Slug
}

type SaveCompletionRetryExecutionParams

type SaveCompletionRetryExecutionParams struct {
	ExecutionArgs []byte
	SnapshotID    int
	OrgSlug       slug.Slug
	RunSlug       string
}

type SaveHTTPOAuthAppParams

type SaveHTTPOAuthAppParams struct {
	EncryptedConfig []byte
	OrgSlug         slug.Slug
	DataSourceSlug  slug.Slug
}

type SaveProofObservationPolicyParams

type SaveProofObservationPolicyParams struct {
	Version         string
	Enabled         bool
	WorkerIdentity  string
	Policy          []byte
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
}

type SchemaMetadatum

type SchemaMetadatum struct {
	ID           int
	Slug         slug.Slug
	DataSourceID int64
	SchemaData   []byte
	CreatedAt    pgtype.Timestamp
	UpdatedAt    pgtype.Timestamp
}

type SealRetainedFileParams

type SealRetainedFileParams struct {
	RequestID  pgtype.UUID
	ClaimToken pgtype.UUID
	OrgSlug    string
	SizeBytes  int64
	Sha256     string
}

type SetCurrentPipelineVersionParams

type SetCurrentPipelineVersionParams struct {
	PipelineSlug pgtype.Text
	OrgSlug      pgtype.Text
	ProjectSlug  pgtype.Text
	VersionID    pgtype.Int8
}

type SetDataSourceProofControlsParams

type SetDataSourceProofControlsParams struct {
	Enabled        bool
	PublishChecks  bool
	OrgSlug        slug.Slug
	DataSourceSlug slug.Slug
}

type SetDataSourceReadOnlyParams

type SetDataSourceReadOnlyParams struct {
	ReadOnly bool
	OrgSlug  slug.Slug
	DsSlug   slug.Slug
}

type SetInstanceAdminUserRoleParams

type SetInstanceAdminUserRoleParams struct {
	Role string
	Slug slug.Slug
}

type SetPipelineReferenceHasDraftParams

type SetPipelineReferenceHasDraftParams struct {
	HasDraft     bool
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	PipelineSlug slug.Slug
}

type SetProjectPipelineBackendParams

type SetProjectPipelineBackendParams struct {
	PipelineBackendRepo           pgtype.Text
	PipelineBackendTrackedBranch  pgtype.Text
	PipelineBackendPipelineDir    pgtype.Text
	PipelineBackendFirstCommitSha pgtype.Text
	OrgSlug                       slug.Slug
	ProjectSlug                   slug.Slug
	PipelineBackendDataSourceSlug slug.Slug
}

type SetSnowflakeWIFBindingStateParams

type SetSnowflakeWIFBindingStateParams struct {
	Desired   bool
	State     string
	EntryID   string
	BindingID int
	OrgSlug   slug.Slug
	DsSlug    slug.Slug
}

type SnowflakeWIFReadyParams

type SnowflakeWIFReadyParams struct {
	OrgSlug string
	DsSlug  string
	Account string
	Issuer  string
}

type SnowflakeWifBinding

type SnowflakeWifBinding struct {
	ID             int
	OrganizationID int32
	DataSourceID   int64
	Issuer         string
	Account        string
	Desired        bool
	State          string
	EntryID        string
	VerifiedAt     pgtype.Timestamptz
	ReconcileAfter pgtype.Timestamptz
}

type StartDataSourceSchemaImportParams

type StartDataSourceSchemaImportParams struct {
	OrgSlug   slug.Slug
	DsSlug    slug.Slug
	AttemptID pgtype.Text
	StartedAt pgtype.Timestamptz
}

type StartDataSourceSchemaImportRow

type StartDataSourceSchemaImportRow struct {
	Slug                     slug.Slug
	SchemaImportStatus       string
	SchemaImportErrorCode    pgtype.Text
	SchemaImportErrorMessage pgtype.Text
	SchemaImportStartedAt    pgtype.Timestamptz
	SchemaImportFinishedAt   pgtype.Timestamptz
	Started                  bool
}

type StartProofObservationParams

type StartProofObservationParams struct {
	OrgSlug       slug.Slug
	JobSlug       slug.Slug
	RequestDigest string
}

type SupersedeCurrentIncrementalCheckpointParams

type SupersedeCurrentIncrementalCheckpointParams struct {
	SupersededAt        pgtype.Timestamptz
	OrgSlug             slug.Slug
	ProjectSlug         slug.Slug
	EnvironmentSlug     slug.Slug
	PipelineSlug        string
	SourceStepSlug      string
	CheckpointNamespace string
	OperationIdentity   string
}

type SupersedeOpenDriftImpactReportsParams

type SupersedeOpenDriftImpactReportsParams struct {
	ReportType     string
	OrgSlug        slug.Slug
	PipelineSlug   pgtype.Text
	DataSourceSlug pgtype.Text
	ProjectSlug    pgtype.Text
}

type UpdateAPIKeyParams

type UpdateAPIKeyParams struct {
	Name                string
	Description         pgtype.Text
	ExpiresAt           pgtype.Timestamptz
	CanManageApiKeysSet bool
	CanManageApiKeys    bool
	OrgSlug             slug.Slug
	ApiKeySlug          slug.Slug
}

type UpdateAlertDestinationParams

type UpdateAlertDestinationParams struct {
	OrgSlug         pgtype.Text
	Name            pgtype.Text
	Type            pgtype.Text
	NonSecretConfig []byte
	Enabled         pgtype.Bool
	DestinationSlug pgtype.Text
}

type UpdateAlertDestinationRow

type UpdateAlertDestinationRow struct {
	ID              int
	OrganizationID  int32
	Slug            slug.Slug
	Name            string
	Type            string
	NonSecretConfig []byte
	Enabled         bool
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
}

type UpdateAlertPolicyParams

type UpdateAlertPolicyParams struct {
	OrgSlug          pgtype.Text
	ProjectSlug      pgtype.Text
	EnvironmentSlug  pgtype.Text
	Name             pgtype.Text
	Scope            pgtype.Text
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceAction     pgtype.Text
	SourceRef        pgtype.Text
	Enabled          pgtype.Bool
	PolicySlug       pgtype.Text
}

type UpdateAlertPolicyRow

type UpdateAlertPolicyRow struct {
	ID               int
	OrganizationID   int32
	Slug             slug.Slug
	Name             string
	Scope            string
	ProjectID        pgtype.Int8
	EnvironmentID    pgtype.Int8
	NotificationType pgtype.Text
	Severity         pgtype.Text
	LifecycleState   pgtype.Text
	SourceKind       pgtype.Text
	SourceRef        pgtype.Text
	Enabled          bool
	CreatedAt        pgtype.Timestamptz
	UpdatedAt        pgtype.Timestamptz
	SourceAction     pgtype.Text
	ProjectSlug      string
	EnvironmentSlug  string
	DestinationSlugs []string
}

type UpdateDataSourceCredentialsParams

type UpdateDataSourceCredentialsParams struct {
	OrgSlug        slug.Slug
	DsSlug         slug.Slug
	CredentialSlug slug.Slug
}

type UpdateDataSourceParams

type UpdateDataSourceParams struct {
	Name       string
	ConfigJson []byte
	IsActive   bool
	ReadOnly   bool
	OrgSlug    slug.Slug
	DsSlug     slug.Slug
}

type UpdateDataSourceRefParams

type UpdateDataSourceRefParams struct {
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	OrgSlug              slug.Slug
	ProjectSlug          slug.Slug
	PipelineSlug         slug.Slug
	DataSourceRefSlug    slug.Slug
}

type UpdateDataSourceRefRow

type UpdateDataSourceRefRow struct {
	ID                   int
	Slug                 slug.Slug
	Name                 string
	DataSourceType       string
	RequiredCapabilities []string
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	PipelineSpecID       int64
	PipelineSlug         slug.Slug
}

type UpdateEnvironmentParams

type UpdateEnvironmentParams struct {
	Name            string
	Description     pgtype.Text
	Color           string
	Protected       bool
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
}

type UpdateGitHubAppInstallationLifecycleParams

type UpdateGitHubAppInstallationLifecycleParams struct {
	Action                 string
	ProviderInstallationID int64
}

type UpdateNotificationRecordDispatchSummaryParams

type UpdateNotificationRecordDispatchSummaryParams struct {
	OrgSlug         pgtype.Text
	DestinationSlug pgtype.Text
	Status          pgtype.Text
	QueuedAt        pgtype.Timestamptz
	JobKind         pgtype.Text
	JobQueue        pgtype.Text
	JobState        pgtype.Text
	RecordSlug      pgtype.Text
}

type UpdateNotificationRecordDispatchSummaryRow

type UpdateNotificationRecordDispatchSummaryRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ProjectSlug       string
	EnvironmentSlug   string
}

type UpdateODCSContractParams

type UpdateODCSContractParams struct {
	Name         string
	Status       string
	OrgSlug      slug.Slug
	ProjectSlug  slug.Slug
	ContractSlug slug.Slug
}

type UpdateOrganizationMemberParams

type UpdateOrganizationMemberParams struct {
	RoleSlug pgtype.Text
	OrgSlug  pgtype.Text
	UserSlug pgtype.Text
}

type UpdateOrganizationParams

type UpdateOrganizationParams struct {
	Name string
	Slug slug.Slug
}

type UpdateOrganizationSettingsParams

type UpdateOrganizationSettingsParams struct {
	Settings []byte
	Slug     slug.Slug
}

type UpdatePersonalAccessTokenParams

type UpdatePersonalAccessTokenParams struct {
	Name                             string
	DescriptionSet                   bool
	Description                      pgtype.Text
	ExpiresAtSet                     bool
	ExpiresAt                        pgtype.Timestamptz
	CanManagePersonalAccessTokensSet bool
	CanManagePersonalAccessTokens    bool
	UserSlug                         slug.Slug
	PatSlug                          slug.Slug
}

type UpdatePipelineCreationProposalResultParams

type UpdatePipelineCreationProposalResultParams struct {
	Status           string
	Result           []byte
	FailureCode      string
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
	CreationSlug     slug.Slug
	PublishAttemptID string
}

type UpdatePipelineRunSourceEventParams

type UpdatePipelineRunSourceEventParams struct {
	SourceEventSlug pgtype.Text
	OrgSlug         slug.Slug
	ProjectSlug     slug.Slug
	EnvironmentSlug slug.Slug
	RunSlug         string
}

type UpdatePipelineTriggerParams

type UpdatePipelineTriggerParams struct {
	PipelineSlug                slug.Slug
	PinnedVersionHash           pgtype.Text
	OrgSlug                     slug.Slug
	ProjectSlug                 slug.Slug
	EnvironmentSlug             slug.Slug
	TriggerSlug                 slug.Slug
	VersionPolicy               pgtype.Text
	CompletionConfig            []byte
	Name                        string
	TriggerType                 string
	Enabled                     bool
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
}

type UpdatePipelineTriggerRow

type UpdatePipelineTriggerRow struct {
	ID                          int
	ProjectID                   int64
	ProjectEnvironmentID        int64
	PipelineID                  int64
	PipelineSlug                string
	PinnedPipelineVersionID     pgtype.Int8
	Slug                        slug.Slug
	Name                        string
	TriggerType                 string
	Enabled                     bool
	Revision                    int64
	VersionPolicy               string
	RuntimeInputKeys            []string
	RetryEnabled                bool
	RetryMaxAttempts            int32
	RetryBackoffStrategy        string
	RetryInitialDelaySeconds    int32
	RetryMaxDelaySeconds        int32
	RetryJitter                 bool
	RetryableFailureKinds       []string
	RetryMaxElapsedSeconds      pgtype.Int4
	ScheduleCron                pgtype.Text
	ScheduleTimezone            pgtype.Text
	ScheduleMisfirePolicy       pgtype.Text
	CreatedByActorType          string
	CreatedByActorSlug          pgtype.Text
	UpdatedByActorType          string
	UpdatedByActorSlug          pgtype.Text
	DisabledAt                  pgtype.Timestamptz
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	ReceiverID                  pgtype.Text
	WebhookVerificationStrategy pgtype.Text
	WebhookInputMappings        []byte
	CompletionConfig            []byte
	EnvironmentSlug             slug.Slug
	PipelineSlug_2              slug.Slug
	PinnedVersionHash           pgtype.Text
	EnabledKeyVersions          []int32
}

type UpdateProjectParams

type UpdateProjectParams struct {
	Name        string
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type UpdateProjectRepositorySetupParams

type UpdateProjectRepositorySetupParams struct {
	Result      []byte
	Status      string
	FailureCode string
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
	LeaseOwner  pgtype.Text
}

type UpdateQueryParams

type UpdateQueryParams struct {
	Name                     string
	Description              pgtype.Text
	Data                     []byte
	ExpectedInputContract    []byte
	ExpectedInputContractRef []byte
	OutputContract           []byte
	OutputContractRef        []byte
	OrgSlug                  slug.Slug
	DataSourceSlug           slug.Slug
	QuerySlug                slug.Slug
}

type UpdateRoleParams

type UpdateRoleParams struct {
	Name     pgtype.Text
	OrgSlug  pgtype.Text
	RoleSlug pgtype.Text
}

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {
	Password pgtype.Text
	Slug     slug.Slug
}

type UpdateUserProfileParams

type UpdateUserProfileParams struct {
	FullNameSet        bool
	FullName           string
	LocaleSet          bool
	Locale             string
	AvatarUrlSet       bool
	AvatarUrl          pgtype.Text
	PhoneNumberSet     bool
	PhoneNumber        pgtype.Text
	JobTitleSet        bool
	JobTitle           pgtype.Text
	TimezoneSet        bool
	Timezone           pgtype.Text
	MfaEmailEnabledSet bool
	MfaEmailEnabled    bool
	Slug               slug.Slug
}

type UpsertDataSourceBindingParams

type UpsertDataSourceBindingParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	EnvironmentSlug   slug.Slug
	PipelineSlug      slug.Slug
	DataSourceRefSlug slug.Slug
	DataSourceSlug    slug.Slug
}

type UpsertDataSourceBindingRow

type UpsertDataSourceBindingRow struct {
	ID                      int
	ProjectEnvironmentID    int64
	DataSourceRefID         int64
	DataSourceID            int64
	CreatedAt               pgtype.Timestamptz
	UpdatedAt               pgtype.Timestamptz
	OrganizationID          int32
	ProjectID               int64
	PipelineSpecID          int64
	PipelineSlug            slug.Slug
	DataSourceRefSlug       slug.Slug
	DataSourceRefName       string
	RefDataSourceType       string
	RefRequiredCapabilities []string
	EnvironmentSlug         slug.Slug
	DataSourceSlug          slug.Slug
	DataSourceName          string
	DataSourceType          string
	DataSourceActive        bool
	DataSourceReadOnly      bool
}

type UpsertEnvironmentSecretParams

type UpsertEnvironmentSecretParams struct {
	OrgSlug              slug.Slug
	EnvironmentSlug      slug.Slug
	CredentialSlug       slug.Slug
	EnvironmentSecretKey string
	Description          pgtype.Text
}

type UpsertEnvironmentSecretRow

type UpsertEnvironmentSecretRow struct {
	ID              int
	EnvironmentID   int64
	CredentialID    int64
	Key             string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	OrganizationID  int32
	EnvironmentSlug string
	CredentialSlug  string
}

type UpsertGitHubAppInstallationParams

type UpsertGitHubAppInstallationParams struct {
	OrganizationID      int32
	InstallationID      int64
	AccountID           int64
	AccountLogin        string
	AccountType         string
	RepositorySelection string
	AllowReplacement    bool
}

type UpsertGitHubAppRepositoryParams

type UpsertGitHubAppRepositoryParams struct {
	OrganizationID int32
	InstallationID int64
	RepositoryID   int64
	FullName       string
	OwnerLogin     string
	Name           string
}

type UpsertNotificationRecordParams

type UpsertNotificationRecordParams struct {
	OrgSlug           pgtype.Text
	ProjectSlug       pgtype.Text
	EnvironmentSlug   pgtype.Text
	Slug              pgtype.Text
	NotificationType  pgtype.Text
	Severity          pgtype.Text
	LifecycleState    pgtype.Text
	DedupeFingerprint pgtype.Text
	SourceEventSlug   pgtype.Text
	SourceEntityType  pgtype.Text
	SourceAction      pgtype.Text
	SourceRefs        []byte
	SafeMetadata      []byte
	ObservedAt        pgtype.Timestamptz
}

type UpsertNotificationRecordRow

type UpsertNotificationRecordRow struct {
	ID                int
	OrganizationID    int32
	Slug              slug.Slug
	ProjectID         pgtype.Int8
	EnvironmentID     pgtype.Int8
	NotificationType  string
	Severity          string
	LifecycleState    string
	DedupeFingerprint string
	SourceEventSlug   pgtype.Text
	SourceEntityType  string
	SourceAction      string
	SourceRefs        []byte
	SafeMetadata      []byte
	FirstSeenAt       pgtype.Timestamptz
	LastSeenAt        pgtype.Timestamptz
	OccurrenceCount   int32
	LastOccurrenceAt  pgtype.Timestamptz
	DispatchSummary   []byte
	AcknowledgedAt    pgtype.Timestamptz
	ResolvedAt        pgtype.Timestamptz
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
	ProjectSlug       string
	EnvironmentSlug   string
}

type UpsertOAuthGrantParams

type UpsertOAuthGrantParams struct {
	OrgSlug                    slug.Slug
	ExpectedCredentialSlug     slug.Slug
	OwnerKind                  string
	NotificationConnectionSlug slug.Slug
	DataSourceSlug             slug.Slug
	Provider                   string
	EncryptedTokenSet          []byte
	AccessTokenExpiresAt       pgtype.Timestamptz
	Scopes                     []string
	Account                    []byte
	LastRefreshedAt            pgtype.Timestamptz
	ExpectedGrantUpdatedAt     pgtype.Timestamptz
}

type UpsertOAuthGrantRow

type UpsertOAuthGrantRow struct {
	ID                   int
	OrganizationID       int32
	Slug                 slug.Slug
	Kind                 string
	CredentialType       pgtype.Text
	Status               string
	EncryptedPayload     []byte
	RotatedAt            pgtype.Timestamptz
	RevokedAt            pgtype.Timestamptz
	FailureCode          pgtype.Text
	FailureMessage       pgtype.Text
	CreatedAt            pgtype.Timestamptz
	UpdatedAt            pgtype.Timestamptz
	GrantID              int
	Provider             string
	EncryptedTokenSet    []byte
	AccessTokenExpiresAt pgtype.Timestamptz
	Scopes               []string
	Account              []byte
	LastRefreshedAt      pgtype.Timestamptz
	GrantCreatedAt       pgtype.Timestamptz
	GrantUpdatedAt       pgtype.Timestamptz
}

type UpsertPipelineDeploymentParams

type UpsertPipelineDeploymentParams struct {
	ProjectSlug             slug.Slug
	EnvironmentSlug         slug.Slug
	OrgSlug                 slug.Slug
	PipelineSlug            string
	VersionID               int
	ResolutionDigest        pgtype.Text
	DeployedByActorType     string
	DeployedByActorSlug     pgtype.Text
	ExpectedCurrentSpecHash pgtype.Text
	ExpectedRevision        pgtype.Int8
}

type UpsertPipelineDeploymentRow

type UpsertPipelineDeploymentRow struct {
	ID                       int
	ProjectEnvironmentID     int64
	PipelineSlug             string
	CurrentVersionID         int64
	PreviousVersionID        pgtype.Int8
	DeployedByActorType      string
	DeployedByActorSlug      pgtype.Text
	DeployedAt               pgtype.Timestamptz
	UpdatedAt                pgtype.Timestamptz
	ProjectID                int64
	Revision                 int64
	CurrentResolutionDigest  pgtype.Text
	PreviousResolutionDigest pgtype.Text
	ProjectSlug              string
	EnvironmentSlug          string
	CurrentVersionSpecHash   string
	PreviousVersionSpecHash  pgtype.Text
}

type UpsertPipelineDraftParams

type UpsertPipelineDraftParams struct {
	PipelineSlug     string
	MemberSlug       slug.Slug
	BasedOnVersionID pgtype.Int8
	SpecJsonb        []byte
	DraftState       pgtype.Text
	OrgSlug          slug.Slug
	ProjectSlug      slug.Slug
}

type UpsertPipelineReferenceParams

type UpsertPipelineReferenceParams struct {
	Slug        slug.Slug
	Name        string
	OrgSlug     slug.Slug
	ProjectSlug slug.Slug
}

type UpsertPipelineSpecParams

type UpsertPipelineSpecParams struct {
	OrgSlug           slug.Slug
	ProjectSlug       slug.Slug
	Slug              slug.Slug
	Name              string
	SpecJsonb         []byte
	SpecHash          string
	SyncStatus        string
	SourcePath        string
	SourceRef         string
	LastAppliedCommit string
}

type UpsertPipelineSpecRow

type UpsertPipelineSpecRow struct {
	ID                int
	ProjectID         int64
	Slug              slug.Slug
	Name              string
	CurrentVersionID  pgtype.Int8
	SpecJsonb         []byte
	SpecHash          string
	SyncStatus        string
	SourcePath        string
	SourceRef         string
	LastAppliedCommit string
	DeletedAt         pgtype.Timestamptz
	DeletedBy         pgtype.Int4
	DeleteReason      pgtype.Text
	CreatedAt         pgtype.Timestamptz
	UpdatedAt         pgtype.Timestamptz
}

type UpsertRuntimeVariableParams

type UpsertRuntimeVariableParams struct {
	OrgSlug         slug.Slug
	EnvironmentSlug slug.Slug
	VariableKey     string
	ValueType       string
	ValueText       string
	Description     pgtype.Text
}

type UpsertRuntimeVariableRow

type UpsertRuntimeVariableRow struct {
	ID              int
	OrganizationID  int64
	EnvironmentID   int64
	Key             string
	ValueType       string
	ValueText       string
	Description     pgtype.Text
	CreatedAt       pgtype.Timestamptz
	UpdatedAt       pgtype.Timestamptz
	EnvironmentSlug string
}

type UpsertSchemaMetadataByDataSourceSlugParams

type UpsertSchemaMetadataByDataSourceSlugParams struct {
	DsSlug     pgtype.Text
	OrgSlug    slug.Slug
	SchemaData []byte
}

type UpsertSnowflakeWIFBindingParams

type UpsertSnowflakeWIFBindingParams struct {
	Issuer  string
	Account string
	OrgSlug slug.Slug
	DsSlug  slug.Slug
}

type UpsertWishlistRegistrationParams

type UpsertWishlistRegistrationParams struct {
	WorkEmail                   string
	CareMostAbout               string
	CommunicationRequestVersion pgtype.Text
	WorkflowToTestFirst         pgtype.Text
}

type User

type User struct {
	ID                              int
	Slug                            slug.Slug
	Email                           string
	FullName                        string
	Password                        pgtype.Text
	Role                            string
	Locale                          string
	OidcProvider                    pgtype.Text
	OidcProviderID                  pgtype.Text
	AvatarUrl                       pgtype.Text
	PhoneNumber                     pgtype.Text
	JobTitle                        pgtype.Text
	Timezone                        pgtype.Text
	MfaEmailEnabled                 bool
	VerifiedAt                      pgtype.Timestamp
	EmailVerificationTokenHash      pgtype.Text
	EmailVerificationTokenExpiresAt pgtype.Timestamp
	PasswordResetTokenHash          pgtype.Text
	PasswordResetTokenExpiresAt     pgtype.Timestamp
	CreatedAt                       pgtype.Timestamp
	UpdatedAt                       pgtype.Timestamp
	DeletedAt                       pgtype.Timestamptz
	AuthenticationVersion           int64
}

type UserMfaChallenge

type UserMfaChallenge struct {
	ID                    int
	UserID                int32
	ChallengeTokenHash    string
	CodeHash              string
	ExpiresAt             pgtype.Timestamptz
	ConsumedAt            pgtype.Timestamptz
	AttemptCount          int32
	CreatedAt             pgtype.Timestamptz
	UpdatedAt             pgtype.Timestamptz
	AuthenticationVersion int64
}

type UserSession

type UserSession struct {
	K string
	V []byte
	E int64
}

type WishlistRegistration

type WishlistRegistration struct {
	ID                          int
	WorkEmail                   string
	CareMostAbout               string
	WorkflowToTestFirst         pgtype.Text
	CreatedAt                   pgtype.Timestamptz
	UpdatedAt                   pgtype.Timestamptz
	CommunicationRequestVersion pgtype.Text
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL