Documentation
¶
Index ¶
- type AgentQualification
- type AlertDelivery
- type AlertSetting
- type Artifact
- type AuditEvent
- type AutopilotAttempt
- type AutopilotBotMerge
- type AutopilotRequest
- type AutopilotSetting
- type Bootstrap
- type BudgetLimit
- type BudgetReservation
- type BudgetRoute
- type BudgetSpend
- type Campaign
- type CampaignMember
- type CampaignPreview
- type CampaignRepositoryScope
- type Connection
- type ConnectionRoute
- type ConnectionSecret
- type CustomProfile
- type CustomProfileRun
- type DBTX
- type Deployment
- type DeploymentConfiguration
- type DeploymentGate
- type DeploymentHealthReport
- type EnvironmentHealth
- type GetOrganisationRow
- type GithubAppSetup
- type GithubInstallationBinding
- type GitopsConfiguration
- type GitopsGate
- type GitopsHealthReport
- type GitopsPromotion
- type InventoryCandidate
- type InventoryChange
- type InventoryDelivery
- type InventoryJob
- type InventoryRepositoryState
- type InventorySchedulerCursor
- type InventorySource
- type InventoryTenant
- type InventoryWebhook
- type MaintenanceConfig
- type MaintenanceFinding
- type MaintenanceObservation
- type MaintenanceRepair
- type MaintenanceScan
- type MaintenanceSchedulerCursor
- type MemberRepository
- type Membership
- type MergeConfiguration
- type MergeExecutionCheck
- type MergeGate
- type MergeOperation
- type ModelTurn
- type OidcLogin
- type OrgOidcConfig
- type OrgOidcInvitation
- type OrgOidcSecret
- type Organisation
- type PlatformInvitation
- type PolicyBinding
- type PolicyVersion
- type PrivateRoute
- type Queries
- type ReleaseReceipt
- type RepairRun
- type Repository
- type RunLog
- type Runner
- type RunnerEnrollment
- type RunnerJobCredential
- type RunnerPool
- type RunnerPoolRepository
- type Session
- type SetOrganisationPauseParams
- type SetOrganisationPauseRow
- type Team
- type TeamMembership
- type TeamRepository
- type User
- type WorkflowAttempt
- type WorkflowEvent
- type WorkflowEventHead
- type WorkflowJob
- type WorkflowOutbox
- type WorkflowPause
- type WorkflowRepoFairness
- type WorkflowScheduler
- type WorkflowTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentQualification ¶
type AgentQualification struct {
OrgID pgtype.UUID `json:"org_id"`
ConnectionID pgtype.UUID `json:"connection_id"`
EvidenceID pgtype.UUID `json:"evidence_id"`
Document []byte `json:"document"`
CheckedAt pgtype.Timestamptz `json:"checked_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
CreatedBy pgtype.UUID `json:"created_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AlertDelivery ¶
type AlertDelivery struct {
OrgID pgtype.UUID `json:"org_id"`
Key string `json:"key"`
SentAt pgtype.Timestamptz `json:"sent_at"`
}
type AlertSetting ¶
type AlertSetting struct {
OrgID pgtype.UUID `json:"org_id"`
Enabled bool `json:"enabled"`
Recipients []byte `json:"recipients"`
Version int64 `json:"version"`
SmtpAddress string `json:"smtp_address"`
SmtpUsername string `json:"smtp_username"`
SmtpFrom string `json:"smtp_from"`
SmtpPassword []byte `json:"smtp_password"`
SmtpSecurity string `json:"smtp_security"`
SmtpVerify bool `json:"smtp_verify"`
}
type Artifact ¶
type Artifact struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
TaskID pgtype.UUID `json:"task_id"`
AttemptID pgtype.UUID `json:"attempt_id"`
Name string `json:"name"`
MediaType string `json:"media_type"`
Size int64 `json:"size"`
Sha256 string `json:"sha256"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type AuditEvent ¶
type AuditEvent struct {
ID pgtype.UUID `json:"id"`
OrgID pgtype.UUID `json:"org_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
ActorID string `json:"actor_id"`
Action string `json:"action"`
ObjectID string `json:"object_id"`
RequestID string `json:"request_id"`
Data []byte `json:"data"`
OccurredAt pgtype.Timestamptz `json:"occurred_at"`
}
type AutopilotAttempt ¶
type AutopilotAttempt struct {
OrgID pgtype.UUID `json:"org_id"`
FindingID pgtype.UUID `json:"finding_id"`
FindingVersion int64 `json:"finding_version"`
TaskID pgtype.UUID `json:"task_id"`
Outcome string `json:"outcome"`
Reason string `json:"reason"`
RetryAfter pgtype.Timestamptz `json:"retry_after"`
MergeReason string `json:"merge_reason"`
MergeAfter pgtype.Timestamptz `json:"merge_after"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Runs int32 `json:"runs"`
Capability string `json:"capability"`
BlockerKind string `json:"blocker_kind"`
MaxRuns int32 `json:"max_runs"`
MergeNeedsHuman bool `json:"merge_needs_human"`
}
type AutopilotBotMerge ¶
type AutopilotBotMerge struct {
OrgID pgtype.UUID `json:"org_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
ChangeID string `json:"change_id"`
HeadSha string `json:"head_sha"`
Reason string `json:"reason"`
MergeAfter pgtype.Timestamptz `json:"merge_after"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
NeedsHuman bool `json:"needs_human"`
}
type AutopilotRequest ¶
type AutopilotSetting ¶
type Bootstrap ¶
type Bootstrap struct {
ID bool `json:"id"`
TokenHash string `json:"token_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
}
type BudgetLimit ¶
type BudgetLimit struct {
OrgID pgtype.UUID `json:"org_id"`
ScopeKind string `json:"scope_kind"`
ScopeID pgtype.UUID `json:"scope_id"`
Period string `json:"period"`
PeriodStart pgtype.Timestamptz `json:"period_start"`
PeriodEnd pgtype.Timestamptz `json:"period_end"`
Caps []byte `json:"caps"`
Held []byte `json:"held"`
Paused bool `json:"paused"`
Version int64 `json:"version"`
}
type BudgetReservation ¶
type BudgetReservation struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
OperationID pgtype.UUID `json:"operation_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
TaskID pgtype.UUID `json:"task_id"`
JobID pgtype.UUID `json:"job_id"`
AttemptID pgtype.UUID `json:"attempt_id"`
Fingerprint string `json:"fingerprint"`
Record []byte `json:"record"`
State string `json:"state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type BudgetRoute ¶
type BudgetSpend ¶
type Campaign ¶
type Campaign struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
PreviewID pgtype.UUID `json:"preview_id"`
IdempotencyKey string `json:"idempotency_key"`
RequestedBy pgtype.UUID `json:"requested_by"`
RequestedSessionID pgtype.UUID `json:"requested_session_id"`
GrantExpiresAt pgtype.Timestamptz `json:"grant_expires_at"`
Spec []byte `json:"spec"`
Name string `json:"name"`
Kind string `json:"kind"`
State string `json:"state"`
Reason string `json:"reason"`
Version int64 `json:"version"`
Stage int32 `json:"stage"`
ObservingSince pgtype.Timestamptz `json:"observing_since"`
ObserveDue pgtype.Timestamptz `json:"observe_due"`
ControllerID pgtype.UUID `json:"controller_id"`
ControllerUntil pgtype.Timestamptz `json:"controller_until"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CampaignMember ¶
type CampaignMember struct {
OrgID pgtype.UUID `json:"org_id"`
CampaignID pgtype.UUID `json:"campaign_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Document []byte `json:"document"`
State string `json:"state"`
Reason string `json:"reason"`
Stage int32 `json:"stage"`
ActionID pgtype.UUID `json:"action_id"`
GateID pgtype.UUID `json:"gate_id"`
SucceededAt pgtype.Timestamptz `json:"succeeded_at"`
Halt bool `json:"halt"`
StopComplete bool `json:"stop_complete"`
ResumeRequested bool `json:"resume_requested"`
ObserveDue pgtype.Timestamptz `json:"observe_due"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CampaignPreview ¶
type CampaignRepositoryScope ¶
type Connection ¶
type Connection struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Kind string `json:"kind"`
Provider string `json:"provider"`
Name string `json:"name"`
Endpoint string `json:"endpoint"`
Settings []byte `json:"settings"`
State string `json:"state"`
Reason string `json:"reason"`
Capabilities []byte `json:"capabilities"`
ServerVersion string `json:"server_version"`
VerifiedAt pgtype.Timestamptz `json:"verified_at"`
SecretID pgtype.UUID `json:"secret_id"`
CredentialVersion int64 `json:"credential_version"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
KeyConfirmedAt pgtype.Timestamptz `json:"key_confirmed_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
}
type ConnectionRoute ¶
type ConnectionRoute struct {
OrgID pgtype.UUID `json:"org_id"`
ConnectionID pgtype.UUID `json:"connection_id"`
RunnerID pgtype.UUID `json:"runner_id"`
Hostname string `json:"hostname"`
Cidrs []string `json:"cidrs"`
ApprovedBy pgtype.UUID `json:"approved_by"`
ApprovedAt pgtype.Timestamptz `json:"approved_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
}
type ConnectionSecret ¶
type CustomProfile ¶
type CustomProfile struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Version int64 `json:"version"`
ImageDigest string `json:"image_digest"`
Executable string `json:"executable"`
Argv []byte `json:"argv"`
ProtocolVersion int32 `json:"protocol_version"`
MaxWallSeconds int32 `json:"max_wall_seconds"`
MaxOutputBytes int64 `json:"max_output_bytes"`
MaxTurns int32 `json:"max_turns"`
Concurrency int32 `json:"concurrency"`
ApprovalEvidence string `json:"approval_evidence"`
ApprovedBy pgtype.UUID `json:"approved_by"`
ApprovedAt pgtype.Timestamptz `json:"approved_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedBy pgtype.UUID `json:"created_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CustomProfileRun ¶
type CustomProfileRun struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
ProfileID pgtype.UUID `json:"profile_id"`
ProfileVersion int64 `json:"profile_version"`
ImageDigest string `json:"image_digest"`
TaskID pgtype.UUID `json:"task_id"`
RequestedBy pgtype.UUID `json:"requested_by"`
State string `json:"state"`
Usage []byte `json:"usage"`
Reason string `json:"reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
AttemptID pgtype.UUID `json:"attempt_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Events []byte `json:"events"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
ReservationID pgtype.UUID `json:"reservation_id"`
}
type Deployment ¶
type Deployment struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Environment string `json:"environment"`
GateID pgtype.UUID `json:"gate_id"`
RequestedBy pgtype.UUID `json:"requested_by"`
IdempotencyKey string `json:"idempotency_key"`
State string `json:"state"`
Reason string `json:"reason"`
DispatchID pgtype.UUID `json:"dispatch_id"`
NativeResult []byte `json:"native_result"`
RecoveryOf pgtype.UUID `json:"recovery_of"`
Version int64 `json:"version"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
FirstHealthyAt pgtype.Timestamptz `json:"first_healthy_at"`
LastHealthAt pgtype.Timestamptz `json:"last_health_at"`
ObserveAfter pgtype.Timestamptz `json:"observe_after"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
CancelRequested bool `json:"cancel_requested"`
CancelDispatchID pgtype.UUID `json:"cancel_dispatch_id"`
CancelState string `json:"cancel_state"`
NativeEnvironment string `json:"native_environment"`
}
type DeploymentConfiguration ¶
type DeploymentGate ¶
type DeploymentHealthReport ¶
type EnvironmentHealth ¶ added in v0.2.38
type EnvironmentHealth struct {
OrgID pgtype.UUID `json:"org_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Environment string `json:"environment"`
Kind string `json:"kind"`
OperationID pgtype.UUID `json:"operation_id"`
ConfigurationVersion int64 `json:"configuration_version"`
ReleaseCreatedAt pgtype.Timestamptz `json:"release_created_at"`
SourceSha string `json:"source_sha"`
ArtifactDigest string `json:"artifact_digest"`
Healthy bool `json:"healthy"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Document []byte `json:"document"`
}
type GetOrganisationRow ¶ added in v0.2.19
type GithubAppSetup ¶
type GithubAppSetup struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
SessionID pgtype.UUID `json:"session_id"`
Mode string `json:"mode"`
Phase string `json:"phase"`
Name string `json:"name"`
GithubOrg string `json:"github_org"`
StateHash pgtype.Text `json:"state_hash"`
ConnectionID pgtype.UUID `json:"connection_id"`
WebhookID pgtype.UUID `json:"webhook_id"`
AppID pgtype.Int8 `json:"app_id"`
AppSlug string `json:"app_slug"`
OwnerID pgtype.Int8 `json:"owner_id"`
InstallationID pgtype.Int8 `json:"installation_id"`
Envelope []byte `json:"envelope"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type GitopsConfiguration ¶
type GitopsConfiguration struct {
OrgID pgtype.UUID `json:"org_id"`
Environment string `json:"environment"`
SourceRepositoryID pgtype.UUID `json:"source_repository_id"`
DeliveryRepositoryID pgtype.UUID `json:"delivery_repository_id"`
Version int64 `json:"version"`
Document []byte `json:"document"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GitopsGate ¶
type GitopsGate struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Environment string `json:"environment"`
SourceRepositoryID pgtype.UUID `json:"source_repository_id"`
DeliveryRepositoryID pgtype.UUID `json:"delivery_repository_id"`
Document []byte `json:"document"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type GitopsHealthReport ¶
type GitopsPromotion ¶
type GitopsPromotion struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Environment string `json:"environment"`
SourceRepositoryID pgtype.UUID `json:"source_repository_id"`
DeliveryRepositoryID pgtype.UUID `json:"delivery_repository_id"`
GateID pgtype.UUID `json:"gate_id"`
RequestedBy pgtype.UUID `json:"requested_by"`
IdempotencyKey string `json:"idempotency_key"`
State string `json:"state"`
Reason string `json:"reason"`
Branch string `json:"branch"`
TargetBranch string `json:"target_branch"`
ManifestPath string `json:"manifest_path"`
Pointer string `json:"pointer"`
CancelRequested bool `json:"cancel_requested"`
CandidateSha string `json:"candidate_sha"`
NativeChange []byte `json:"native_change"`
MergeSha string `json:"merge_sha"`
StageDispatchID pgtype.UUID `json:"stage_dispatch_id"`
PublishDispatchID pgtype.UUID `json:"publish_dispatch_id"`
RecoveryOf pgtype.UUID `json:"recovery_of"`
Version int64 `json:"version"`
FirstHealthyAt pgtype.Timestamptz `json:"first_healthy_at"`
LastHealthAt pgtype.Timestamptz `json:"last_health_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
ObserveAfter pgtype.Timestamptz `json:"observe_after"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type InventoryCandidate ¶
type InventoryChange ¶
type InventoryDelivery ¶
type InventoryJob ¶
type InventoryJob struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
ConnectionID pgtype.UUID `json:"connection_id"`
ConnectionVersion int64 `json:"connection_version"`
Namespace string `json:"namespace"`
Kind string `json:"kind"`
RepositoryID pgtype.UUID `json:"repository_id"`
ParentID pgtype.UUID `json:"parent_id"`
RequestedBy pgtype.UUID `json:"requested_by"`
Input []byte `json:"input"`
State string `json:"state"`
Reason string `json:"reason"`
Cursor string `json:"cursor"`
Phase string `json:"phase"`
Pages int32 `json:"pages"`
Processed int32 `json:"processed"`
Failures int32 `json:"failures"`
FencingToken int64 `json:"fencing_token"`
LeaseOwner string `json:"lease_owner"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
AvailableAt pgtype.Timestamptz `json:"available_at"`
LastClaimed pgtype.Timestamptz `json:"last_claimed"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type InventoryRepositoryState ¶
type InventoryRepositoryState struct {
OrgID pgtype.UUID `json:"org_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
ConnectionID pgtype.UUID `json:"connection_id"`
Namespace string `json:"namespace"`
ConnectionVersion int64 `json:"connection_version"`
ScanID pgtype.UUID `json:"scan_id"`
State string `json:"state"`
Reason string `json:"reason"`
RefreshDue pgtype.Timestamptz `json:"refresh_due"`
ChangesObservedAt pgtype.Timestamptz `json:"changes_observed_at"`
}
type InventorySource ¶
type InventorySource struct {
OrgID pgtype.UUID `json:"org_id"`
ConnectionID pgtype.UUID `json:"connection_id"`
Namespace string `json:"namespace"`
PollDue pgtype.Timestamptz `json:"poll_due"`
LastServed pgtype.Timestamptz `json:"last_served"`
}
type InventoryTenant ¶
type InventoryWebhook ¶
type InventoryWebhook struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
ConnectionID pgtype.UUID `json:"connection_id"`
Envelope []byte `json:"envelope"`
Version int64 `json:"version"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MaintenanceConfig ¶
type MaintenanceFinding ¶
type MaintenanceFinding struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Fingerprint string `json:"fingerprint"`
FingerprintVersion int32 `json:"fingerprint_version"`
Source string `json:"source"`
SourceID string `json:"source_id"`
Category string `json:"category"`
Severity string `json:"severity"`
Title string `json:"title"`
Evidence []byte `json:"evidence"`
EvidenceDigest string `json:"evidence_digest"`
State string `json:"state"`
Reason string `json:"reason"`
AssignedTo pgtype.UUID `json:"assigned_to"`
SnoozeUntil pgtype.Timestamptz `json:"snooze_until"`
SupersededBy pgtype.UUID `json:"superseded_by"`
Version int64 `json:"version"`
FirstSeen pgtype.Timestamptz `json:"first_seen"`
LastSeen pgtype.Timestamptz `json:"last_seen"`
}
type MaintenanceObservation ¶
type MaintenanceRepair ¶
type MaintenanceRepair struct {
OrgID pgtype.UUID `json:"org_id"`
FindingID pgtype.UUID `json:"finding_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
TaskID pgtype.UUID `json:"task_id"`
EvidenceDigest string `json:"evidence_digest"`
Active bool `json:"active"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Supersession []byte `json:"supersession"`
}
type MaintenanceScan ¶
type MaintenanceScan struct {
OrgID pgtype.UUID `json:"org_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
RequestedBy pgtype.UUID `json:"requested_by"`
State string `json:"state"`
Reason string `json:"reason"`
Fence int64 `json:"fence"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
AvailableAt pgtype.Timestamptz `json:"available_at"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
Version int64 `json:"version"`
}
type MemberRepository ¶
type Membership ¶
type MergeConfiguration ¶
type MergeExecutionCheck ¶
type MergeExecutionCheck struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
OperationID pgtype.UUID `json:"operation_id"`
GateID pgtype.UUID `json:"gate_id"`
Sha string `json:"sha"`
Phase string `json:"phase"`
State string `json:"state"`
NativeID string `json:"native_id"`
DispatchID pgtype.UUID `json:"dispatch_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MergeGate ¶
type MergeGate struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
ChangeID string `json:"change_id"`
ConfigurationVersion int64 `json:"configuration_version"`
Document []byte `json:"document"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MergeOperation ¶
type MergeOperation struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
GateID pgtype.UUID `json:"gate_id"`
RequestedGateID pgtype.UUID `json:"requested_gate_id"`
ChangeID string `json:"change_id"`
TargetBranch string `json:"target_branch"`
IdempotencyKey string `json:"idempotency_key"`
RequestedBy pgtype.UUID `json:"requested_by"`
State string `json:"state"`
Reason string `json:"reason"`
NativeResult []byte `json:"native_result"`
CancelRequested bool `json:"cancel_requested"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ObserveAfter pgtype.Timestamptz `json:"observe_after"`
NativeQueueID string `json:"native_queue_id"`
}
type ModelTurn ¶
type ModelTurn struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
TaskID pgtype.UUID `json:"task_id"`
AttemptID pgtype.UUID `json:"attempt_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
ReservationID pgtype.UUID `json:"reservation_id"`
RequestHash string `json:"request_hash"`
State string `json:"state"`
ResultEnvelope []byte `json:"result_envelope"`
Usage []byte `json:"usage"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
Failure string `json:"failure"`
}
type OidcLogin ¶
type OidcLogin struct {
StateHash string `json:"state_hash"`
BrowserHash string `json:"browser_hash"`
Nonce string `json:"nonce"`
Verifier string `json:"verifier"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
OrgID pgtype.UUID `json:"org_id"`
ConfigID pgtype.UUID `json:"config_id"`
ConfigVersion pgtype.Int8 `json:"config_version"`
Issuer pgtype.Text `json:"issuer"`
ClientID pgtype.Text `json:"client_id"`
InvitationOrgID pgtype.UUID `json:"invitation_org_id"`
InvitationID pgtype.UUID `json:"invitation_id"`
InvitationHash pgtype.Text `json:"invitation_hash"`
}
type OrgOidcConfig ¶
type OrgOidcConfig struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Issuer string `json:"issuer"`
ClientID string `json:"client_id"`
Status string `json:"status"`
Version int64 `json:"version"`
VerifiedVersion pgtype.Int8 `json:"verified_version"`
VerifiedAt pgtype.Timestamptz `json:"verified_at"`
ProbeAttemptAt pgtype.Timestamptz `json:"probe_attempt_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type OrgOidcInvitation ¶
type OrgOidcInvitation struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Email string `json:"email"`
Role string `json:"role"`
OidcConfigID pgtype.UUID `json:"oidc_config_id"`
OidcConfigVersion int64 `json:"oidc_config_version"`
Issuer string `json:"issuer"`
TokenHash string `json:"token_hash"`
CreatedBy pgtype.UUID `json:"created_by"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RedeemedAt pgtype.Timestamptz `json:"redeemed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type OrgOidcSecret ¶
type Organisation ¶
type PlatformInvitation ¶ added in v0.2.19
type PlatformInvitation struct {
ID pgtype.UUID `json:"id"`
TokenHash string `json:"token_hash"`
Email string `json:"email"`
OrgName string `json:"org_name"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RedeemedAt pgtype.Timestamptz `json:"redeemed_at"`
RedeemedBy pgtype.UUID `json:"redeemed_by"`
OrgID pgtype.UUID `json:"org_id"`
TargetOrgID pgtype.UUID `json:"target_org_id"`
Role string `json:"role"`
InvitedBy pgtype.UUID `json:"invited_by"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
Slug pgtype.Text `json:"slug"`
}
type PolicyBinding ¶
type PolicyBinding struct {
OrgID pgtype.UUID `json:"org_id"`
ScopeKind string `json:"scope_kind"`
ScopeID pgtype.UUID `json:"scope_id"`
PolicyVersionID pgtype.UUID `json:"policy_version_id"`
Version int64 `json:"version"`
PrimaryTeamID pgtype.UUID `json:"primary_team_id"`
SimulationHash string `json:"simulation_hash"`
}
type PolicyVersion ¶
type PolicyVersion struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
ScopeKind string `json:"scope_kind"`
ScopeID pgtype.UUID `json:"scope_id"`
Document []byte `json:"document"`
PolicyHash string `json:"policy_hash"`
ActorID pgtype.UUID `json:"actor_id"`
Reason string `json:"reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type PrivateRoute ¶ added in v0.2.35
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) GetOrganisation ¶
func (*Queries) SetOrganisationPause ¶
func (q *Queries) SetOrganisationPause(ctx context.Context, arg SetOrganisationPauseParams) (SetOrganisationPauseRow, error)
type ReleaseReceipt ¶ added in v0.2.38
type ReleaseReceipt struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Environment string `json:"environment"`
Kind string `json:"kind"`
ConfigurationVersion int64 `json:"configuration_version"`
SourceSha string `json:"source_sha"`
TargetSha string `json:"target_sha"`
ArtifactDigest string `json:"artifact_digest"`
BuildID string `json:"build_id"`
Document []byte `json:"document"`
ReceivedAt pgtype.Timestamptz `json:"received_at"`
}
type RepairRun ¶
type RepairRun struct {
OrgID pgtype.UUID `json:"org_id"`
TaskID pgtype.UUID `json:"task_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
FindingID pgtype.UUID `json:"finding_id"`
RequestedBy pgtype.UUID `json:"requested_by"`
FindingVersion int64 `json:"finding_version"`
FindingDigest string `json:"finding_digest"`
Context []byte `json:"context"`
Report []byte `json:"report"`
State string `json:"state"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Branch string `json:"branch"`
CandidateSha string `json:"candidate_sha"`
CandidateChecks []byte `json:"candidate_checks"`
NativeChange []byte `json:"native_change"`
CandidateArtifacts []byte `json:"candidate_artifacts"`
BotGateID pgtype.UUID `json:"bot_gate_id"`
BotRevalidationVersion int64 `json:"bot_revalidation_version"`
BotRevalidationState string `json:"bot_revalidation_state"`
BotRevalidationReason string `json:"bot_revalidation_reason"`
BotObserveAfter pgtype.Timestamptz `json:"bot_observe_after"`
BotObservedAt pgtype.Timestamptz `json:"bot_observed_at"`
Checkpoint []byte `json:"checkpoint"`
PostMergeState string `json:"post_merge_state"`
PostMergeSince pgtype.Timestamptz `json:"post_merge_since"`
}
type Repository ¶
type Repository struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
ConnectionID pgtype.UUID `json:"connection_id"`
NativeID string `json:"native_id"`
Name string `json:"name"`
Url string `json:"url"`
DefaultBranch string `json:"default_branch"`
Provider string `json:"provider"`
Archived bool `json:"archived"`
Paused bool `json:"paused"`
Accessible bool `json:"accessible"`
LastSyncedAt pgtype.Timestamptz `json:"last_synced_at"`
Version int64 `json:"version"`
}
type Runner ¶
type Runner struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
PoolID pgtype.UUID `json:"pool_id"`
Name string `json:"name"`
State string `json:"state"`
CredentialHash string `json:"credential_hash"`
CredentialExpiresAt pgtype.Timestamptz `json:"credential_expires_at"`
CredentialVersion int64 `json:"credential_version"`
Version int64 `json:"version"`
EnrolledAt pgtype.Timestamptz `json:"enrolled_at"`
LastSeenAt pgtype.Timestamptz `json:"last_seen_at"`
Slots int32 `json:"slots"`
}
type RunnerEnrollment ¶
type RunnerEnrollment struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
PoolID pgtype.UUID `json:"pool_id"`
TokenHash string `json:"token_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedBy pgtype.UUID `json:"created_by"`
}
type RunnerJobCredential ¶
type RunnerJobCredential struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RunnerID pgtype.UUID `json:"runner_id"`
PoolID pgtype.UUID `json:"pool_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
TaskID pgtype.UUID `json:"task_id"`
JobID pgtype.UUID `json:"job_id"`
AttemptID pgtype.UUID `json:"attempt_id"`
OperationID pgtype.UUID `json:"operation_id"`
FencingToken int64 `json:"fencing_token"`
PolicyHash string `json:"policy_hash"`
TokenHash string `json:"token_hash"`
Methods []string `json:"methods"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type RunnerPool ¶
type RunnerPool struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
State string `json:"state"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Builtin bool `json:"builtin"`
MaxConcurrent pgtype.Int4 `json:"max_concurrent"`
}
type RunnerPoolRepository ¶
type Session ¶
type Session struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
TokenHash string `json:"token_hash"`
CsrfToken string `json:"csrf_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
OrgID pgtype.UUID `json:"org_id"`
OidcConfigID pgtype.UUID `json:"oidc_config_id"`
OidcConfigVersion pgtype.Int8 `json:"oidc_config_version"`
}
type SetOrganisationPauseRow ¶ added in v0.2.19
type TeamMembership ¶
type TeamRepository ¶
type WorkflowAttempt ¶
type WorkflowAttempt struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
TaskID pgtype.UUID `json:"task_id"`
JobID pgtype.UUID `json:"job_id"`
Number int32 `json:"number"`
Fence int64 `json:"fence"`
LeaseOwner string `json:"lease_owner"`
State string `json:"state"`
StartedAt pgtype.Timestamptz `json:"started_at"`
EndedAt pgtype.Timestamptz `json:"ended_at"`
}
type WorkflowEvent ¶
type WorkflowEvent struct {
OrgID pgtype.UUID `json:"org_id"`
ID int64 `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
Type string `json:"type"`
AggregateType string `json:"aggregate_type"`
AggregateID pgtype.UUID `json:"aggregate_id"`
AggregateVersion int64 `json:"aggregate_version"`
OccurredAt pgtype.Timestamptz `json:"occurred_at"`
RequestID string `json:"request_id"`
DataVersion int32 `json:"data_version"`
Data []byte `json:"data"`
}
type WorkflowEventHead ¶
type WorkflowJob ¶
type WorkflowJob struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
TaskID pgtype.UUID `json:"task_id"`
OperationID pgtype.UUID `json:"operation_id"`
State string `json:"state"`
Fence int64 `json:"fence"`
Attempts int32 `json:"attempts"`
LeaseOwner string `json:"lease_owner"`
LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
AvailableAt pgtype.Timestamptz `json:"available_at"`
Priority int32 `json:"priority"`
}
type WorkflowOutbox ¶
type WorkflowOutbox struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
TaskID pgtype.UUID `json:"task_id"`
RepositoryID pgtype.UUID `json:"repository_id"`
OperationID pgtype.UUID `json:"operation_id"`
Kind string `json:"kind"`
IdempotencyKey string `json:"idempotency_key"`
Payload []byte `json:"payload"`
PayloadHash string `json:"payload_hash"`
State string `json:"state"`
DispatchCount int32 `json:"dispatch_count"`
Evidence string `json:"evidence"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WorkflowPause ¶
type WorkflowRepoFairness ¶
type WorkflowScheduler ¶
type WorkflowScheduler struct {
OrgID pgtype.UUID `json:"org_id"`
LastClaimedAt pgtype.Timestamptz `json:"last_claimed_at"`
}
type WorkflowTask ¶
type WorkflowTask struct {
OrgID pgtype.UUID `json:"org_id"`
ID pgtype.UUID `json:"id"`
RepositoryID pgtype.UUID `json:"repository_id"`
OperationID pgtype.UUID `json:"operation_id"`
IdempotencyKey string `json:"idempotency_key"`
RequestHash string `json:"request_hash"`
Recipe string `json:"recipe"`
RecipeVersion string `json:"recipe_version"`
TargetBranch string `json:"target_branch"`
ModelConnectionID pgtype.UUID `json:"model_connection_id"`
CampaignID pgtype.UUID `json:"campaign_id"`
RunnerPoolID pgtype.UUID `json:"runner_pool_id"`
PolicyHash string `json:"policy_hash"`
StartingPolicyHash string `json:"starting_policy_hash"`
State string `json:"state"`
Reason string `json:"reason"`
Version int64 `json:"version"`
CancelVersion int64 `json:"cancel_version"`
MaxAttempts int32 `json:"max_attempts"`
CreatedBy pgtype.UUID `json:"created_by"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ModelRoute string `json:"model_route"`
CancellationRequested bool `json:"cancellation_requested"`
}
Click to show internal directories.
Click to hide internal directories.