Files
archie/internal/infrastructure/postgres/postgresdb/models.go
T
sam f92c5b4536
ci/woodpecker/pr/quality Pipeline was successful
Quality / check (pull_request) Canceled after 7m39s
chore(runtime): delete Kit and external agent harness support (#1877)
Archie runs its own agent loop only. Removes Kit resolution and launch,
the harness runner and adapters, the setup terminal and sandbox view,
harness secrets and OAuth capture (table dropped in migration 0075), the
task-tools contract that only Kit containers reached, and the
sandbox-kit-spec dependency. Agent profiles carry image and tools only.
The egress proxy keeps the model-session path; the sandbox relay code
stays for #1867.
2026-11-12 21:29:05 +11:00

637 lines
12 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.31.1
package postgresdb
import (
"time"
"github.com/jackc/pgx/v5/pgtype"
)
type AccessDenial struct {
ID int64
OrgID string
Principal string
Action string
ResourceKind string
ResourceID string
Level string
Policies []string
MinuteAt time.Time
Count int64
CreatedAt time.Time
UpdatedAt time.Time
}
type AccessPolicy struct {
Level string
OrgID string
WorkspaceID string
ObjectKind string
ObjectID string
PolicyID string
Text string
UpdatedAt time.Time
}
type AccessPolicyRevision struct {
OnlyRow bool
Version int64
UpdatedAt time.Time
}
type AccessPolicyVersion struct {
Level string
OrgID string
WorkspaceID string
Version int64
UpdatedAt time.Time
}
type Account struct {
IdentityID string
Email string
PasswordHash string
RecoveryHash pgtype.Text
FailedAttempts int32
LockedUntil pgtype.Timestamptz
}
type AccountSession struct {
TokenHash string
IdentityID string
ExpiresAt time.Time
IssuedAt time.Time
}
type Alert struct {
ID int64
OrgID string
Kind string
Subject string
Severity string
Title string
Body string
Link string
IsCondition bool
State string
FirstRaised time.Time
LastSeen time.Time
Count int64
ClosedBy string
ClosedAt pgtype.Timestamptz
}
type AlertDelivery struct {
ID int64
AlertID int64
Event string
State string
CreatedAt time.Time
NextAttemptAt time.Time
Attempts int64
}
type AlertDeliveryAttempt struct {
ID int64
DeliveryID int64
Attempt int64
At time.Time
StatusCode int64
Error string
}
type ApplyStatus struct {
Process string
Kind string
AppliedVersion int64
Error string
ReportedAt time.Time
}
type AuthenticationSetting struct {
Singleton bool
PublicUrl string
OidcIssuer string
OidcAudience string
OidcClientID string
}
type Binding struct {
ID string
Name string
Source string
Mapping string
Workflow string
Owner string
Repo string
Version int64
Status string
Secret string
CreatedAt time.Time
UpdatedAt time.Time
Filter string
Inputs string
RepoParam string
OrgID string
WorkspaceID string
}
type BindingDispatch struct {
Binding string
BindingVersion int64
Capture string
TaskID int64
DispatchedAt time.Time
Reason string
Delivery string
}
type Capture struct {
ID string
Source string
RemoteAddr string
ContentType string
Headers string
Body string
Authenticated bool
ReceivedAt time.Time
Unsigned bool
EventType string
OrgID string
WorkspaceID string
Delivery string
}
type CaptureRefusal struct {
Source string
Addr string
RefusedAt time.Time
}
type ChannelStatus struct {
ID string
Name string
State string
Detail string
Configured bool
ReloadSupported bool
ObservedAt time.Time
}
type ChatIssueNumber struct {
Owner string
Repo string
LastNumber int64
}
type ConfigSnapshot struct {
ID int64
Schema string
Document string
PublishedAt time.Time
}
type Event struct {
ID int64
At time.Time
Kind string
TaskID int64
Repo string
Issue int64
Workflow string
Stage string
Attempt int64
ActorID string
ActorKind string
PrincipalID string
Detail string
Data string
OrgID string
WorkspaceID string
}
type EventType struct {
ID string
Source string
Name string
Rule string
Schema string
CreatedAt time.Time
UpdatedAt time.Time
OrgID string
WorkspaceID string
}
type Identity struct {
ID string
Kind string
DisplayName string
Lifecycle string
Version int64
CreatedAt time.Time
UpdatedAt time.Time
}
type IdentityAlias struct {
Alias string
IdentityID string
}
type IdentityEvent struct {
ID int64
IdentityID string
EventType string
FromLifecycle string
ToLifecycle string
DisplayName string
ActorID string
Source string
RequestID string
At time.Time
OrgID pgtype.Text
}
type IdentitySubject struct {
Issuer string
Subject string
IdentityID string
BoundAt time.Time
Name string
ExpiresAt pgtype.Timestamptz
LastUsedAt pgtype.Timestamptz
}
type InstalledPackage struct {
OrgID string
Name string
Reference string
Digest string
Descriptor []byte
Layer []byte
UpdatePolicy string
InstalledAt time.Time
AcceptedAuthority []byte
PendingReference pgtype.Text
PendingDigest pgtype.Text
PendingAuthority []byte
PreviousReference pgtype.Text
PreviousDigest pgtype.Text
PreviousAcceptedAuthority []byte
}
type InstalledPackageContribution struct {
OrgID string
PackageName string
Family string
EntryID string
}
type InstalledPackageRequirement struct {
OrgID string
PackageName string
RequiredName string
RequiredDigest string
}
type Mapping struct {
ID string
Name string
SourceHint string
Fields string
CreatedAt time.Time
UpdatedAt time.Time
EventType string
OrgID string
WorkspaceID string
BuiltIn bool
}
type MappingMatch struct {
Mapping string
Capture string
MatchedAt time.Time
}
type Membership struct {
IdentityID string
OrgID string
WorkspaceID pgtype.Text
Role string
CreatedAt time.Time
}
type Message struct {
ID int64
MessageID string
SessionID string
SourceID string
Sender string
SenderID string
Role string
Text string
Ts int64
Search interface{}
Media []byte
}
type ModelUsage struct {
ID int64
OrgID string
Source string
TaskID int64
Attempt int64
Workflow string
Step string
Alias string
Provider string
Model string
InputTokens int64
OutputTokens int64
CachedTokens int64
At time.Time
IdentityID string
}
type Org struct {
ID string
Name string
CreatedAt time.Time
UpdatedAt time.Time
}
type OrgAgent struct {
IdentityID string
OrgID string
CreatedAt time.Time
}
type OrgUpgrade struct {
Phase string
CompletedAt time.Time
}
type Passkey struct {
CredentialID string
IdentityID string
Name string
Credential []byte
CreatedAt time.Time
}
type PasskeyCeremony struct {
TokenHash string
IdentityID string
Registration bool
SessionData []byte
ExpiresAt time.Time
}
type PlaybookDispatch struct {
PlaybookID string
PlaybookVersion string
EventID string
ActionID string
DispatchedAt time.Time
}
type Presence struct {
Service string
InstanceID string
Version string
InstallType string
StartedAt time.Time
ReportedAt time.Time
Ready bool
Detail string
Checks []byte
}
type Resource struct {
Kind string
Value []byte
Version int64
UpdatedAt time.Time
OrgID string
}
type ResourceHistory struct {
ID int64
Kind string
Value []byte
Version int64
Actor string
Source string
RequestID string
ExpectedVersion int64
CurrentVersion int64
At time.Time
OrgID string
}
type RunCredential struct {
Digest []byte
TaskID int64
ExpiresAt time.Time
}
type Schedule struct {
ID string
OwnerKind string
OwnerID string
Name string
Enabled bool
BuiltIn bool
TimingKind string
IntervalSeconds int64
Cron string
RunAt pgtype.Timestamptz
Anchor time.Time
NextRun pgtype.Timestamptz
Zone string
CreatedAt time.Time
UpdatedAt time.Time
}
type ScheduleRun struct {
ID int64
ScheduleID string
ScheduledFor time.Time
StartedAt pgtype.Timestamptz
FinishedAt pgtype.Timestamptz
Result string
Error string
CaptureID string
}
type Session struct {
SessionID string
Platform string
BotUser string
ChannelID string
ThreadID string
Title string
ParentSessionID string
BranchName string
CreatedAt int64
LastActiveAt int64
OrgID string
}
type Source struct {
Path string
Signing string
Secret string
CreatedAt time.Time
UpdatedAt time.Time
OrgID string
WorkspaceID string
Name string
DeliveryHeader string
}
type StepExecution struct {
ID int64
OrgID string
WorkspaceID string
ExecutionID int64
Attempt int64
ParentID pgtype.Int8
Depth int32
Kind string
Name string
CalledExecutionID int64
Status string
Detail string
TokensUsed int64
StartedAt pgtype.Timestamptz
FinishedAt pgtype.Timestamptz
Results []byte
}
type SysAudit struct {
ID int64
At time.Time
TableName string
RecordKey string
Field string
OldValue []byte
NewValue []byte
RecordVersion int64
Actor string
Source string
RequestID string
OrgID string
}
type Task struct {
ID int64
Owner string
Repo string
IssueNumber int64
Title string
Body string
Labels string
Status string
Workflow string
Branch string
Plan string
Notes string
PrNumber int64
TokensUsed int64
Iterations int64
Attempt int64
ParkReason string
WatchCommentID int64
ParkClass string
RemediationRounds int64
RetryCount int64
Source string
Identity string
BindingID string
BindingVersion int64
ReviewPayload string
WorkflowDefinitionVersion int64
WorkflowDefinitionDigest string
WorkflowDefinitionYaml string
CreatedAt time.Time
UpdatedAt time.Time
ReviewCursor int64
Inputs string
OrgID string
WorkspaceID string
CallParentTaskID int64
CallDepth int32
Outputs string
ReviewGate string
RereviewRounds int64
RetryMode string
ResumeFrom string
ResumeResults []byte
PendingReviews []byte
Origin string
CallKey string
BindingSignature string
BindingAddr string
ParkBlocker string
OutcomePostedStatus string
PlanDocument string
HandoffFromTaskID pgtype.Int8
HandoffToTaskID pgtype.Int8
ResumeHistory []byte
RestartRequeues int64
}
type ToolCall struct {
ID string
TaskID int64
Attempt int64
Tool string
Args string
Result string
Error string
DurationMs int64
CalledAt time.Time
OrgID string
WorkspaceID string
}
type Transition struct {
ID int64
TaskID int64
At time.Time
FromStatus string
ToStatus string
Detail string
OrgID string
WorkspaceID string
}
type Turn struct {
TurnID string
SessionID string
SourceID string
Status string
Attempt int64
OwnerID string
InputMessageID string
AssistantMessageID string
PartialText string
ResponseText string
ToolCalls string
Error string
CreatedAt int64
UpdatedAt int64
}
type Workspace struct {
ID string
OrgID string
Name string
Environment string
CreatedAt time.Time
UpdatedAt time.Time
}