Documentation
¶
Index ¶
- type AbandonAgentSessionParams
- type AbandonUserPromptParams
- type AddTokenTeamParams
- type AddUserTeamMembershipParams
- type AgentSession
- type AgentSessionCheckpoint
- type ApiToken
- type ApiTokenTeam
- type AuditLog
- type CancelExecutionAttemptsByTaskParams
- type CancelPendingExecutionAttemptsParams
- type CancelTaskParams
- type ClearPendingTasksParams
- type CreateTeamParams
- type CreateTokenParams
- type CreateTriggerParams
- type CreateUserParams
- type DBTX
- type DeactivateDefinitionsBySourceParams
- type Definition
- type DefinitionChangeProposal
- type DefinitionSource
- type DefinitionSyncRun
- type DeleteEventCallbackParams
- type DeleteTokensByTeamParams
- type EventCallback
- type ExecutionAttempt
- type ExpirePausedSessionsParams
- type ExtendActiveExecutionAttemptTimeoutParams
- type FailAllExpiredExecutionAttemptsParams
- type FailExpiredExecutionAttemptsParams
- type FailExpiredLeasesParams
- type FailPendingExecutionAttemptsForMissingRunnerParams
- type FailPendingIsolationAttemptsWithoutCapableRunnerParams
- type FailPendingIsolationTasksParams
- type FailPendingResumeTasksForMissingRunnerParams
- type FailPendingUserPromptsForUnavailableRunnerParams
- type GetClaimableExecutionAttemptForUpdateParams
- type GetClaimableExecutionAttemptForUpdateRow
- type GetDefinitionBySourceTypeNameParams
- type GetDefinitionChangeProposalByPRParams
- type GetEventCallbackByNameParams
- type GetExecutionAttemptContextRow
- type GetExecutionAttemptUsageByTaskRow
- type GetGitHubExecutionContextRow
- type GetPausedSessionByArtifactParams
- type GetTokenByHashRow
- type GitIdentity
- type InsertAgentSessionCheckpointParams
- type InsertAgentSessionParams
- type InsertAuditLogParams
- type InsertDefinitionChangeProposalParams
- type InsertDefinitionSyncRunParams
- type InsertEventCallbackParams
- type InsertExecutionAttemptParams
- type InsertModelCatalogParams
- type InsertPendingExecutionAttemptParams
- type InsertTaskArtifactParams
- type InsertTaskEventParams
- type InsertTaskParams
- type InsertTriggerRunParams
- type InsertUserPromptParams
- type IsRunnerAliveParams
- type ListAgentSessionsByTeamsParams
- type ListAgentSessionsParams
- type ListAuditLogParams
- type ListAuditLogRow
- type ListDefinitionChangeProposalsParams
- type ListDefinitionSyncRunsParams
- type ListDefinitionsParams
- type ListEnabledEventCallbacksForEventParams
- type ListEventCallbacksByTeamsParams
- type ListEventCallbacksParams
- type ListExecutionAttemptsForHeartbeatParams
- type ListExecutionAttemptsForHeartbeatRow
- type ListLiveRunnersRow
- type ListReclaimableExecutionAttemptsForUpdateRow
- type ListTaskArtifactsParams
- type ListTaskArtifactsRow
- type ListTaskEventsParams
- type ListTaskEventsSinceParams
- type ListTasksByStatusAndTeamParams
- type ListTasksByStatusAndTeamsParams
- type ListTasksByStatusParams
- type ListTokensRow
- type ListTriggerRunsByTeamParams
- type ListTriggerRunsByTeamRow
- type ListTriggerRunsByTeamsParams
- type ListTriggerRunsByTeamsRow
- type ListTriggerRunsByTriggerParams
- type ListTriggerRunsByTriggerRow
- type ListUsersByTeamRow
- type ListUsersRow
- type MarkAgentSessionResumingParams
- type MarkAgentSessionTerminalByTaskParams
- type MarkDefinitionSourceSyncedParams
- type MarkExecutionAttemptClaimedParams
- type MarkExecutionAttemptLostParams
- type MarkResumingSessionsFailedForUnavailableRunnerParams
- type MarkTaskRunningParams
- type MarkUserPromptRunningByTaskParams
- type MarkUserPromptTerminalByTaskParams
- type ModelCatalog
- type PauseAgentSessionByTaskIDParams
- type PinTaskGitHubInstallationParams
- type Queries
- func (q *Queries) AbandonAgentSession(ctx context.Context, arg AbandonAgentSessionParams) (int64, error)
- func (q *Queries) AbandonUserPrompt(ctx context.Context, arg AbandonUserPromptParams) (int64, error)
- func (q *Queries) AddTokenTeam(ctx context.Context, arg AddTokenTeamParams) error
- func (q *Queries) AddUserTeamMembership(ctx context.Context, arg AddUserTeamMembershipParams) error
- func (q *Queries) CancelExecutionAttemptsByTask(ctx context.Context, arg CancelExecutionAttemptsByTaskParams) (int64, error)
- func (q *Queries) CancelPendingExecutionAttempts(ctx context.Context, arg CancelPendingExecutionAttemptsParams) (int64, error)
- func (q *Queries) CancelTask(ctx context.Context, arg CancelTaskParams) (int64, error)
- func (q *Queries) ClearExpiredExecutionAttemptExports(ctx context.Context, ttlSeconds interface{}) (int64, error)
- func (q *Queries) ClearExpiredSessionCheckpoints(ctx context.Context, ttlSeconds interface{}) (int64, error)
- func (q *Queries) ClearExpiredUserPromptExports(ctx context.Context, ttlSeconds interface{}) (int64, error)
- func (q *Queries) ClearPendingTasks(ctx context.Context, arg ClearPendingTasksParams) (int64, error)
- func (q *Queries) CountExecutionAttemptsByTask(ctx context.Context, taskID string) (int64, error)
- func (q *Queries) CreateTeam(ctx context.Context, arg CreateTeamParams) error
- func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) error
- func (q *Queries) CreateTrigger(ctx context.Context, arg CreateTriggerParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) DeactivateDefinitionsBySource(ctx context.Context, arg DeactivateDefinitionsBySourceParams) error
- func (q *Queries) DeactivateModelCatalogs(ctx context.Context, updatedAt time.Time) error
- func (q *Queries) DeleteEventCallback(ctx context.Context, arg DeleteEventCallbackParams) (int64, error)
- func (q *Queries) DeleteTeam(ctx context.Context, name string) error
- func (q *Queries) DeleteToken(ctx context.Context, name string) error
- func (q *Queries) DeleteTokenTeamsByTeam(ctx context.Context, teamID string) error
- func (q *Queries) DeleteTokensByTeam(ctx context.Context, arg DeleteTokensByTeamParams) error
- func (q *Queries) DeleteTrigger(ctx context.Context, name string) error
- func (q *Queries) DeleteTriggersBySource(ctx context.Context, sourceID sql.NullString) error
- func (q *Queries) DeleteUserTeamMembershipsByTeam(ctx context.Context, teamID string) error
- func (q *Queries) DeleteUsersByTeam(ctx context.Context, teamID string) error
- func (q *Queries) ExpirePausedSessions(ctx context.Context, arg ExpirePausedSessionsParams) (int64, error)
- func (q *Queries) ExtendActiveExecutionAttemptTimeout(ctx context.Context, arg ExtendActiveExecutionAttemptTimeoutParams) (int64, error)
- func (q *Queries) FailAllExpiredExecutionAttempts(ctx context.Context, arg FailAllExpiredExecutionAttemptsParams) (int64, error)
- func (q *Queries) FailExpiredExecutionAttempts(ctx context.Context, arg FailExpiredExecutionAttemptsParams) (int64, error)
- func (q *Queries) FailExpiredLeases(ctx context.Context, arg FailExpiredLeasesParams) (int64, error)
- func (q *Queries) FailPendingExecutionAttemptsForMissingRunner(ctx context.Context, arg FailPendingExecutionAttemptsForMissingRunnerParams) (int64, error)
- func (q *Queries) FailPendingIsolationAttemptsWithoutCapableRunner(ctx context.Context, ...) (int64, error)
- func (q *Queries) FailPendingIsolationTasks(ctx context.Context, arg FailPendingIsolationTasksParams) (int64, error)
- func (q *Queries) FailPendingResumeTasksForMissingRunner(ctx context.Context, arg FailPendingResumeTasksForMissingRunnerParams) (int64, error)
- func (q *Queries) FailPendingUserPromptsForUnavailableRunner(ctx context.Context, arg FailPendingUserPromptsForUnavailableRunnerParams) (int64, error)
- func (q *Queries) GetActiveModelCatalog(ctx context.Context) (ModelCatalog, error)
- func (q *Queries) GetAgentSessionByID(ctx context.Context, id string) (AgentSession, error)
- func (q *Queries) GetAgentSessionByTaskID(ctx context.Context, taskID string) (AgentSession, error)
- func (q *Queries) GetClaimableExecutionAttemptForUpdate(ctx context.Context, arg GetClaimableExecutionAttemptForUpdateParams) (GetClaimableExecutionAttemptForUpdateRow, error)
- func (q *Queries) GetDefinitionBySourceTypeName(ctx context.Context, arg GetDefinitionBySourceTypeNameParams) (Definition, error)
- func (q *Queries) GetDefinitionChangeProposal(ctx context.Context, id string) (DefinitionChangeProposal, error)
- func (q *Queries) GetDefinitionChangeProposalByPR(ctx context.Context, arg GetDefinitionChangeProposalByPRParams) (DefinitionChangeProposal, error)
- func (q *Queries) GetDefinitionSource(ctx context.Context, id string) (DefinitionSource, error)
- func (q *Queries) GetDefinitionSourceByName(ctx context.Context, name string) (DefinitionSource, error)
- func (q *Queries) GetEventCallbackByID(ctx context.Context, id string) (EventCallback, error)
- func (q *Queries) GetEventCallbackByName(ctx context.Context, arg GetEventCallbackByNameParams) (EventCallback, error)
- func (q *Queries) GetExecutionAttemptByID(ctx context.Context, id string) (ExecutionAttempt, error)
- func (q *Queries) GetExecutionAttemptContext(ctx context.Context, id string) (GetExecutionAttemptContextRow, error)
- func (q *Queries) GetExecutionAttemptUsageByTask(ctx context.Context, taskID string) (GetExecutionAttemptUsageByTaskRow, error)
- func (q *Queries) GetGitHubExecutionContext(ctx context.Context, id string) (GetGitHubExecutionContextRow, error)
- func (q *Queries) GetLatestAgentSessionCheckpoint(ctx context.Context, agentSessionID string) (AgentSessionCheckpoint, error)
- func (q *Queries) GetLatestAgentSessionCheckpointByTaskID(ctx context.Context, taskID string) (AgentSessionCheckpoint, error)
- func (q *Queries) GetLatestTaskEvent(ctx context.Context, taskID string) (TaskEvent, error)
- func (q *Queries) GetModelCatalogByName(ctx context.Context, name string) (ModelCatalog, error)
- func (q *Queries) GetNextAgentSessionSequence(ctx context.Context, taskID string) (int32, error)
- func (q *Queries) GetNextExecutionAttemptSequence(ctx context.Context, userPromptID string) (int32, error)
- func (q *Queries) GetNextUserPromptSequence(ctx context.Context, agentSessionID string) (int32, error)
- func (q *Queries) GetPausedSessionByArtifact(ctx context.Context, arg GetPausedSessionByArtifactParams) (AgentSession, error)
- func (q *Queries) GetRunnerHeartbeatMetadata(ctx context.Context, id string) (json.RawMessage, error)
- func (q *Queries) GetRunnerIsolationEnabled(ctx context.Context, id string) (bool, error)
- func (q *Queries) GetTaskByID(ctx context.Context, id string) (Task, error)
- func (q *Queries) GetTeamByID(ctx context.Context, id string) (Team, error)
- func (q *Queries) GetTeamByName(ctx context.Context, name string) (Team, error)
- func (q *Queries) GetTokenByHash(ctx context.Context, tokenHash string) (GetTokenByHashRow, error)
- func (q *Queries) GetTriggerByID(ctx context.Context, id string) (Trigger, error)
- func (q *Queries) GetTriggerByName(ctx context.Context, name string) (Trigger, error)
- func (q *Queries) GetUserByID(ctx context.Context, id string) (User, error)
- func (q *Queries) GetUserPromptByID(ctx context.Context, id string) (UserPrompt, error)
- func (q *Queries) GetUserPromptByTaskID(ctx context.Context, taskID string) (UserPrompt, error)
- func (q *Queries) InsertAgentSession(ctx context.Context, arg InsertAgentSessionParams) error
- func (q *Queries) InsertAgentSessionCheckpoint(ctx context.Context, arg InsertAgentSessionCheckpointParams) error
- func (q *Queries) InsertAuditLog(ctx context.Context, arg InsertAuditLogParams) error
- func (q *Queries) InsertDefinitionChangeProposal(ctx context.Context, arg InsertDefinitionChangeProposalParams) error
- func (q *Queries) InsertDefinitionSyncRun(ctx context.Context, arg InsertDefinitionSyncRunParams) error
- func (q *Queries) InsertEventCallback(ctx context.Context, arg InsertEventCallbackParams) error
- func (q *Queries) InsertExecutionAttempt(ctx context.Context, arg InsertExecutionAttemptParams) error
- func (q *Queries) InsertModelCatalog(ctx context.Context, arg InsertModelCatalogParams) error
- func (q *Queries) InsertPendingExecutionAttempt(ctx context.Context, arg InsertPendingExecutionAttemptParams) error
- func (q *Queries) InsertTask(ctx context.Context, arg InsertTaskParams) error
- func (q *Queries) InsertTaskArtifact(ctx context.Context, arg InsertTaskArtifactParams) error
- func (q *Queries) InsertTaskEvent(ctx context.Context, arg InsertTaskEventParams) error
- func (q *Queries) InsertTriggerRun(ctx context.Context, arg InsertTriggerRunParams) error
- func (q *Queries) InsertUserPrompt(ctx context.Context, arg InsertUserPromptParams) error
- func (q *Queries) IsRunnerAlive(ctx context.Context, arg IsRunnerAliveParams) (bool, error)
- func (q *Queries) ListAgentSessions(ctx context.Context, arg ListAgentSessionsParams) ([]AgentSession, error)
- func (q *Queries) ListAgentSessionsByTeams(ctx context.Context, arg ListAgentSessionsByTeamsParams) ([]AgentSession, error)
- func (q *Queries) ListAuditLog(ctx context.Context, arg ListAuditLogParams) ([]ListAuditLogRow, error)
- func (q *Queries) ListDefinitionChangeProposals(ctx context.Context, arg ListDefinitionChangeProposalsParams) ([]DefinitionChangeProposal, error)
- func (q *Queries) ListDefinitionSources(ctx context.Context) ([]DefinitionSource, error)
- func (q *Queries) ListDefinitionSyncRuns(ctx context.Context, arg ListDefinitionSyncRunsParams) ([]DefinitionSyncRun, error)
- func (q *Queries) ListDefinitions(ctx context.Context, arg ListDefinitionsParams) ([]Definition, error)
- func (q *Queries) ListEnabledEventCallbacksForEvent(ctx context.Context, arg ListEnabledEventCallbacksForEventParams) ([]EventCallback, error)
- func (q *Queries) ListEnabledIssueTriggersByRepo(ctx context.Context, repo json.RawMessage) ([]Trigger, error)
- func (q *Queries) ListEnabledPRReviewTriggersByRepo(ctx context.Context, repo json.RawMessage) ([]Trigger, error)
- func (q *Queries) ListEnabledTriggers(ctx context.Context) ([]Trigger, error)
- func (q *Queries) ListEnabledTriggersByTeam(ctx context.Context, teamID sql.NullString) ([]Trigger, error)
- func (q *Queries) ListEnabledTriggersByTeams(ctx context.Context, teamIds []string) ([]Trigger, error)
- func (q *Queries) ListEnabledTriggersByType(ctx context.Context, triggerType string) ([]Trigger, error)
- func (q *Queries) ListEventCallbacks(ctx context.Context, arg ListEventCallbacksParams) ([]EventCallback, error)
- func (q *Queries) ListEventCallbacksByTeams(ctx context.Context, arg ListEventCallbacksByTeamsParams) ([]EventCallback, error)
- func (q *Queries) ListExecutionAttemptsByPrompt(ctx context.Context, userPromptID string) ([]ExecutionAttempt, error)
- func (q *Queries) ListExecutionAttemptsForHeartbeat(ctx context.Context, arg ListExecutionAttemptsForHeartbeatParams) ([]ListExecutionAttemptsForHeartbeatRow, error)
- func (q *Queries) ListLiveRunners(ctx context.Context, lastSeenAt time.Time) ([]ListLiveRunnersRow, error)
- func (q *Queries) ListModelCatalogs(ctx context.Context) ([]ModelCatalog, error)
- func (q *Queries) ListReclaimableExecutionAttemptsForUpdate(ctx context.Context, leaseExpiresAt sql.NullTime) ([]ListReclaimableExecutionAttemptsForUpdateRow, error)
- func (q *Queries) ListTaskArtifacts(ctx context.Context, arg ListTaskArtifactsParams) ([]ListTaskArtifactsRow, error)
- func (q *Queries) ListTaskEvents(ctx context.Context, arg ListTaskEventsParams) ([]TaskEvent, error)
- func (q *Queries) ListTaskEventsSince(ctx context.Context, arg ListTaskEventsSinceParams) ([]TaskEvent, error)
- func (q *Queries) ListTasksBySelfTestRun(ctx context.Context, selfTestRunID sql.NullString) ([]Task, error)
- func (q *Queries) ListTasksByStatus(ctx context.Context, arg ListTasksByStatusParams) ([]Task, error)
- func (q *Queries) ListTasksByStatusAndTeam(ctx context.Context, arg ListTasksByStatusAndTeamParams) ([]Task, error)
- func (q *Queries) ListTasksByStatusAndTeams(ctx context.Context, arg ListTasksByStatusAndTeamsParams) ([]Task, error)
- func (q *Queries) ListTeams(ctx context.Context) ([]Team, error)
- func (q *Queries) ListTokens(ctx context.Context) ([]ListTokensRow, error)
- func (q *Queries) ListTriggerRunsByTeam(ctx context.Context, arg ListTriggerRunsByTeamParams) ([]ListTriggerRunsByTeamRow, error)
- func (q *Queries) ListTriggerRunsByTeams(ctx context.Context, arg ListTriggerRunsByTeamsParams) ([]ListTriggerRunsByTeamsRow, error)
- func (q *Queries) ListTriggerRunsByTrigger(ctx context.Context, arg ListTriggerRunsByTriggerParams) ([]ListTriggerRunsByTriggerRow, error)
- func (q *Queries) ListTriggers(ctx context.Context) ([]Trigger, error)
- func (q *Queries) ListTriggersByTeam(ctx context.Context, teamID sql.NullString) ([]Trigger, error)
- func (q *Queries) ListTriggersByTeams(ctx context.Context, teamIds []string) ([]Trigger, error)
- func (q *Queries) ListUserPromptsBySession(ctx context.Context, agentSessionID string) ([]UserPrompt, error)
- func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)
- func (q *Queries) ListUsersByTeam(ctx context.Context, teamID string) ([]ListUsersByTeamRow, error)
- func (q *Queries) MarkAgentSessionResuming(ctx context.Context, arg MarkAgentSessionResumingParams) (int64, error)
- func (q *Queries) MarkAgentSessionTerminalByTask(ctx context.Context, arg MarkAgentSessionTerminalByTaskParams) (int64, error)
- func (q *Queries) MarkDefinitionSourceSynced(ctx context.Context, arg MarkDefinitionSourceSyncedParams) error
- func (q *Queries) MarkExecutionAttemptClaimed(ctx context.Context, arg MarkExecutionAttemptClaimedParams) (int64, error)
- func (q *Queries) MarkExecutionAttemptLost(ctx context.Context, arg MarkExecutionAttemptLostParams) (int64, error)
- func (q *Queries) MarkResumingSessionsFailedForUnavailableRunner(ctx context.Context, arg MarkResumingSessionsFailedForUnavailableRunnerParams) (int64, error)
- func (q *Queries) MarkTaskRunning(ctx context.Context, arg MarkTaskRunningParams) (int64, error)
- func (q *Queries) MarkUserPromptRunningByTask(ctx context.Context, arg MarkUserPromptRunningByTaskParams) (int64, error)
- func (q *Queries) MarkUserPromptTerminalByTask(ctx context.Context, arg MarkUserPromptTerminalByTaskParams) (int64, error)
- func (q *Queries) PauseAgentSessionByTaskID(ctx context.Context, arg PauseAgentSessionByTaskIDParams) (int64, error)
- func (q *Queries) PinTaskGitHubInstallation(ctx context.Context, arg PinTaskGitHubInstallationParams) (int64, error)
- func (q *Queries) ReapStaleSessionsForTerminalRuns(ctx context.Context) (int64, error)
- func (q *Queries) ReapStaleUserPrompts(ctx context.Context) (int64, error)
- func (q *Queries) RenewExecutionAttemptLease(ctx context.Context, arg RenewExecutionAttemptLeaseParams) (int64, error)
- func (q *Queries) RequeueTaskAfterExecutionAttemptLost(ctx context.Context, arg RequeueTaskAfterExecutionAttemptLostParams) (int64, error)
- func (q *Queries) RequeueTaskForPrompt(ctx context.Context, arg RequeueTaskForPromptParams) (int64, error)
- func (q *Queries) RevertOrphanedRunningUserPrompts(ctx context.Context) (int64, error)
- func (q *Queries) SearchAgentSessions(ctx context.Context, arg SearchAgentSessionsParams) ([]AgentSession, error)
- func (q *Queries) SearchAgentSessionsByTeams(ctx context.Context, arg SearchAgentSessionsByTeamsParams) ([]AgentSession, error)
- func (q *Queries) SearchAuditLog(ctx context.Context, arg SearchAuditLogParams) ([]SearchAuditLogRow, error)
- func (q *Queries) SearchTaskArtifacts(ctx context.Context, arg SearchTaskArtifactsParams) ([]SearchTaskArtifactsRow, error)
- func (q *Queries) SearchTasks(ctx context.Context, arg SearchTasksParams) ([]Task, error)
- func (q *Queries) SearchTasksByTeams(ctx context.Context, arg SearchTasksByTeamsParams) ([]Task, error)
- func (q *Queries) SetTriggerLastRun(ctx context.Context, arg SetTriggerLastRunParams) error
- func (q *Queries) SetTriggerNextRun(ctx context.Context, arg SetTriggerNextRunParams) error
- func (q *Queries) UpdateAgentSessionFromRunnerEvent(ctx context.Context, arg UpdateAgentSessionFromRunnerEventParams) (int64, error)
- func (q *Queries) UpdateDefinitionChangeProposalStatus(ctx context.Context, arg UpdateDefinitionChangeProposalStatusParams) error
- func (q *Queries) UpdateEventCallback(ctx context.Context, arg UpdateEventCallbackParams) (int64, error)
- func (q *Queries) UpdateExecutionAttemptFromRunnerEvent(ctx context.Context, arg UpdateExecutionAttemptFromRunnerEventParams) (int64, error)
- func (q *Queries) UpdateTaskAggregateFromRunnerEvent(ctx context.Context, arg UpdateTaskAggregateFromRunnerEventParams) (int64, error)
- func (q *Queries) UpdateTaskSearchText(ctx context.Context, id string) error
- func (q *Queries) UpdateTrigger(ctx context.Context, arg UpdateTriggerParams) error
- func (q *Queries) UpdateTriggerRunStatusByTask(ctx context.Context, arg UpdateTriggerRunStatusByTaskParams) error
- func (q *Queries) UpsertDefinition(ctx context.Context, arg UpsertDefinitionParams) error
- func (q *Queries) UpsertDefinitionSource(ctx context.Context, arg UpsertDefinitionSourceParams) error
- func (q *Queries) UpsertRunnerHeartbeat(ctx context.Context, arg UpsertRunnerHeartbeatParams) error
- func (q *Queries) UpsertTrigger(ctx context.Context, arg UpsertTriggerParams) error
- func (q *Queries) ValidateRunnerExecutionClaim(ctx context.Context, arg ValidateRunnerExecutionClaimParams) (ValidateRunnerExecutionClaimRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RenewExecutionAttemptLeaseParams
- type RequeueTaskAfterExecutionAttemptLostParams
- type RequeueTaskForPromptParams
- type Runner
- type SearchAgentSessionsByTeamsParams
- type SearchAgentSessionsParams
- type SearchAuditLogParams
- type SearchAuditLogRow
- type SearchTaskArtifactsParams
- type SearchTaskArtifactsRow
- type SearchTasksByTeamsParams
- type SearchTasksParams
- type SetTriggerLastRunParams
- type SetTriggerNextRunParams
- type Task
- type TaskArtifact
- type TaskEvent
- type Team
- type Trigger
- type TriggerRun
- type UpdateAgentSessionFromRunnerEventParams
- type UpdateDefinitionChangeProposalStatusParams
- type UpdateEventCallbackParams
- type UpdateExecutionAttemptFromRunnerEventParams
- type UpdateTaskAggregateFromRunnerEventParams
- type UpdateTriggerParams
- type UpdateTriggerRunStatusByTaskParams
- type UpsertDefinitionParams
- type UpsertDefinitionSourceParams
- type UpsertRunnerHeartbeatParams
- type UpsertTriggerParams
- type User
- type UserPrompt
- type UserTeamMembership
- type ValidateRunnerExecutionClaimParams
- type ValidateRunnerExecutionClaimRow
- type WebhookDelivery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbandonUserPromptParams ¶
type AddTokenTeamParams ¶
type AgentSession ¶
type AgentSession struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Status string `json:"status"`
ResumeMode string `json:"resume_mode"`
PinnedRunnerID sql.NullString `json:"pinned_runner_id"`
PinnedRunnerName sql.NullString `json:"pinned_runner_name"`
CheckpointID sql.NullString `json:"checkpoint_id"`
WorkspacePath sql.NullString `json:"workspace_path"`
ContainerName sql.NullString `json:"container_name"`
HarnessSessionID sql.NullString `json:"harness_session_id"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
AgentImage sql.NullString `json:"agent_image"`
Agent sql.NullString `json:"agent"`
ProviderID sql.NullString `json:"provider_id"`
ModelID sql.NullString `json:"model_id"`
VariantID sql.NullString `json:"variant_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PausedAt sql.NullTime `json:"paused_at"`
ExpiresAt sql.NullTime `json:"expires_at"`
PauseReason sql.NullString `json:"pause_reason"`
Error sql.NullString `json:"error"`
SearchText sql.NullString `json:"search_text"`
TaskID string `json:"task_id"`
Sequence int32 `json:"sequence"`
Harness sql.NullString `json:"harness"`
Skills json.RawMessage `json:"skills"`
McpEndpoints *json.RawMessage `json:"mcp_endpoints"`
Env json.RawMessage `json:"env"`
CommitAuthorName sql.NullString `json:"commit_author_name"`
CommitAuthorEmail sql.NullString `json:"commit_author_email"`
GitIdentityID sql.NullString `json:"git_identity_id"`
Summary sql.NullString `json:"summary"`
StartedAt sql.NullTime `json:"started_at"`
EndedAt sql.NullTime `json:"ended_at"`
IsolationRequired bool `json:"isolation_required"`
}
type AgentSessionCheckpoint ¶
type AgentSessionCheckpoint struct {
ID string `json:"id"`
AgentSessionID string `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
RunnerID string `json:"runner_id"`
CheckpointPath string `json:"checkpoint_path"`
WorkspacePath string `json:"workspace_path"`
ContainerName sql.NullString `json:"container_name"`
RunscVersion sql.NullString `json:"runsc_version"`
AgentImage sql.NullString `json:"agent_image"`
SizeBytes int64 `json:"size_bytes"`
Status string `json:"status"`
Error sql.NullString `json:"error"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ExpiresAt sql.NullTime `json:"expires_at"`
}
type ApiTokenTeam ¶
type AuditLog ¶
type AuditLog struct {
ID string `json:"id"`
EventType string `json:"event_type"`
CreatedAt time.Time `json:"created_at"`
SourceType sql.NullString `json:"source_type"`
SourceID sql.NullString `json:"source_id"`
TargetType sql.NullString `json:"target_type"`
TargetID sql.NullString `json:"target_id"`
Repo sql.NullString `json:"repo"`
GithubEvent sql.NullString `json:"github_event"`
GithubAction sql.NullString `json:"github_action"`
GithubDeliveryID sql.NullString `json:"github_delivery_id"`
ParentEventID sql.NullString `json:"parent_event_id"`
Detail sql.NullString `json:"detail"`
SearchText sql.NullString `json:"search_text"`
Payload *json.RawMessage `json:"payload"`
TokenID sql.NullString `json:"token_id"`
TokenName sql.NullString `json:"token_name"`
}
type CancelTaskParams ¶
type CancelTaskParams struct {
Error sql.NullString `json:"error"`
FailureMessage sql.NullString `json:"failure_message"`
EndedAt sql.NullTime `json:"ended_at"`
UpdatedAt time.Time `json:"updated_at"`
ID string `json:"id"`
}
type ClearPendingTasksParams ¶
type ClearPendingTasksParams struct {
Error sql.NullString `json:"error"`
FailureMessage sql.NullString `json:"failure_message"`
EndedAt sql.NullTime `json:"ended_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateTeamParams ¶
type CreateTeamParams struct {
ID string `json:"id"`
Name string `json:"name"`
OktaGroupID sql.NullString `json:"okta_group_id"`
OktaGroupName sql.NullString `json:"okta_group_name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateTokenParams ¶
type CreateTriggerParams ¶
type CreateTriggerParams struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Name string `json:"name"`
TriggerType string `json:"trigger_type"`
TriggerConfig json.RawMessage `json:"trigger_config"`
CronExpr string `json:"cron_expr"`
Prompt string `json:"prompt"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
AgentImage sql.NullString `json:"agent_image"`
Agent sql.NullString `json:"agent"`
ProviderID sql.NullString `json:"provider_id"`
ModelID sql.NullString `json:"model_id"`
VariantID sql.NullString `json:"variant_id"`
Harness sql.NullString `json:"harness"`
Skills json.RawMessage `json:"skills"`
TimeoutSec int32 `json:"timeout_sec"`
SourceID sql.NullString `json:"source_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CreateUserParams ¶
type Definition ¶
type Definition struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
DefinitionType string `json:"definition_type"`
Name string `json:"name"`
Scope string `json:"scope"`
TeamID sql.NullString `json:"team_id"`
Repo sql.NullString `json:"repo"`
Path string `json:"path"`
SourceCommit string `json:"source_commit"`
ContentHash string `json:"content_hash"`
Content string `json:"content"`
Metadata *json.RawMessage `json:"metadata"`
Active bool `json:"active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type DefinitionChangeProposal ¶
type DefinitionChangeProposal struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
TaskID sql.NullString `json:"task_id"`
Repo string `json:"repo"`
Branch string `json:"branch"`
BaseBranch string `json:"base_branch"`
PrNumber int32 `json:"pr_number"`
PrUrl string `json:"pr_url"`
Title string `json:"title"`
Body string `json:"body"`
Files json.RawMessage `json:"files"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type DefinitionSource ¶
type DefinitionSource struct {
ID string `json:"id"`
Name string `json:"name"`
Scope string `json:"scope"`
TeamID sql.NullString `json:"team_id"`
Repo sql.NullString `json:"repo"`
RepoUrl string `json:"repo_url"`
Branch string `json:"branch"`
Path string `json:"path"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastSyncAt sql.NullTime `json:"last_sync_at"`
}
type DefinitionSyncRun ¶
type DefinitionSyncRun struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
Status string `json:"status"`
SourceCommit sql.NullString `json:"source_commit"`
DefinitionsCount int32 `json:"definitions_count"`
Error sql.NullString `json:"error"`
StartedAt time.Time `json:"started_at"`
EndedAt time.Time `json:"ended_at"`
CreatedAt time.Time `json:"created_at"`
}
type DeleteEventCallbackParams ¶
type DeleteEventCallbackParams struct {
Name string `json:"name"`
TeamID sql.NullString `json:"team_id"`
}
type EventCallback ¶
type EventCallback struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Name string `json:"name"`
EventType string `json:"event_type"`
ActionType string `json:"action_type"`
ActionConfig json.RawMessage `json:"action_config"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ExecutionAttempt ¶
type ExecutionAttempt struct {
ID string `json:"id"`
UserPromptID string `json:"user_prompt_id"`
Sequence int32 `json:"sequence"`
Status string `json:"status"`
RunnerID sql.NullString `json:"runner_id"`
RequiredRunnerID sql.NullString `json:"required_runner_id"`
ClaimedAt sql.NullTime `json:"claimed_at"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
StartedAt sql.NullTime `json:"started_at"`
EndedAt sql.NullTime `json:"ended_at"`
WorkspacePath sql.NullString `json:"workspace_path"`
ContainerName sql.NullString `json:"container_name"`
HarnessExecutionID sql.NullString `json:"harness_execution_id"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
ErrorCategory sql.NullString `json:"error_category"`
SessionExport sql.NullString `json:"session_export"`
TotalInputTokens int64 `json:"total_input_tokens"`
TotalOutputTokens int64 `json:"total_output_tokens"`
TotalCacheReadTokens int64 `json:"total_cache_read_tokens"`
TotalCacheWriteTokens int64 `json:"total_cache_write_tokens"`
TotalReasoningTokens int64 `json:"total_reasoning_tokens"`
CostCents int64 `json:"cost_cents"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
TimeoutSec int32 `json:"timeout_sec"`
LastEventAt sql.NullTime `json:"last_event_at"`
RunnerImageDigest sql.NullString `json:"runner_image_digest"`
ClaimID string `json:"claim_id"`
}
type FailExpiredLeasesParams ¶
type FailPendingUserPromptsForUnavailableRunnerParams ¶
type FailPendingUserPromptsForUnavailableRunnerParams struct {
}
type GetClaimableExecutionAttemptForUpdateParams ¶
type GetClaimableExecutionAttemptForUpdateParams struct {
RunnerID sql.NullString `json:"runner_id"`
IsolationEnabled interface{} `json:"isolation_enabled"`
}
type GetEventCallbackByNameParams ¶
type GetEventCallbackByNameParams struct {
Name string `json:"name"`
TeamID sql.NullString `json:"team_id"`
}
type GetExecutionAttemptUsageByTaskRow ¶
type GetExecutionAttemptUsageByTaskRow struct {
TotalInputTokens int64 `json:"total_input_tokens"`
TotalOutputTokens int64 `json:"total_output_tokens"`
TotalCacheReadTokens int64 `json:"total_cache_read_tokens"`
TotalCacheWriteTokens int64 `json:"total_cache_write_tokens"`
TotalReasoningTokens int64 `json:"total_reasoning_tokens"`
CostCents int64 `json:"cost_cents"`
}
type GetGitHubExecutionContextRow ¶
type GetGitHubExecutionContextRow struct {
ExecutionAttemptID string `json:"execution_attempt_id"`
UserPromptID string `json:"user_prompt_id"`
AgentSessionID string `json:"agent_session_id"`
TaskID string `json:"task_id"`
RunnerID sql.NullString `json:"runner_id"`
ExecutionStatus string `json:"execution_status"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
TaskStatus string `json:"task_status"`
GithubRepo sql.NullString `json:"github_repo"`
GithubInstallationID sql.NullInt64 `json:"github_installation_id"`
ClaimID string `json:"claim_id"`
}
type GetTokenByHashRow ¶
type GetTokenByHashRow struct {
ID string `json:"id"`
Name string `json:"name"`
TokenHash string `json:"token_hash"`
UserID string `json:"user_id"`
ExpiresAt sql.NullTime `json:"expires_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
UserName string `json:"user_name"`
TeamID string `json:"team_id"`
TeamName string `json:"team_name"`
}
type GitIdentity ¶
type GitIdentity struct {
ID string `json:"id"`
TeamID string `json:"team_id"`
Name string `json:"name"`
GitAuthorName string `json:"git_author_name"`
GitAuthorEmail string `json:"git_author_email"`
CredentialType string `json:"credential_type"`
IsDefault bool `json:"is_default"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InsertAgentSessionCheckpointParams ¶
type InsertAgentSessionCheckpointParams struct {
ID string `json:"id"`
AgentSessionID string `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
RunnerID string `json:"runner_id"`
CheckpointPath string `json:"checkpoint_path"`
WorkspacePath string `json:"workspace_path"`
ContainerName sql.NullString `json:"container_name"`
RunscVersion sql.NullString `json:"runsc_version"`
AgentImage sql.NullString `json:"agent_image"`
SizeBytes int64 `json:"size_bytes"`
Status string `json:"status"`
Error sql.NullString `json:"error"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ExpiresAt sql.NullTime `json:"expires_at"`
}
type InsertAgentSessionParams ¶
type InsertAgentSessionParams struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
Sequence int32 `json:"sequence"`
TeamID sql.NullString `json:"team_id"`
Status string `json:"status"`
ResumeMode string `json:"resume_mode"`
IsolationRequired bool `json:"isolation_required"`
PauseReason sql.NullString `json:"pause_reason"`
ExpiresAt sql.NullTime `json:"expires_at"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
AgentImage sql.NullString `json:"agent_image"`
Agent sql.NullString `json:"agent"`
ProviderID sql.NullString `json:"provider_id"`
ModelID sql.NullString `json:"model_id"`
VariantID sql.NullString `json:"variant_id"`
Harness sql.NullString `json:"harness"`
Skills json.RawMessage `json:"skills"`
McpEndpoints *json.RawMessage `json:"mcp_endpoints"`
Env json.RawMessage `json:"env"`
CommitAuthorName sql.NullString `json:"commit_author_name"`
CommitAuthorEmail sql.NullString `json:"commit_author_email"`
GitIdentityID sql.NullString `json:"git_identity_id"`
SearchText sql.NullString `json:"search_text"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
StartedAt sql.NullTime `json:"started_at"`
}
type InsertAuditLogParams ¶
type InsertAuditLogParams struct {
ID string `json:"id"`
EventType string `json:"event_type"`
CreatedAt time.Time `json:"created_at"`
SourceType sql.NullString `json:"source_type"`
SourceID sql.NullString `json:"source_id"`
TargetType sql.NullString `json:"target_type"`
TargetID sql.NullString `json:"target_id"`
Repo sql.NullString `json:"repo"`
GithubEvent sql.NullString `json:"github_event"`
GithubAction sql.NullString `json:"github_action"`
GithubDeliveryID sql.NullString `json:"github_delivery_id"`
ParentEventID sql.NullString `json:"parent_event_id"`
Detail sql.NullString `json:"detail"`
SearchText sql.NullString `json:"search_text"`
Payload *json.RawMessage `json:"payload"`
TokenID sql.NullString `json:"token_id"`
TokenName sql.NullString `json:"token_name"`
}
type InsertDefinitionChangeProposalParams ¶
type InsertDefinitionChangeProposalParams struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
TaskID sql.NullString `json:"task_id"`
Repo string `json:"repo"`
Branch string `json:"branch"`
BaseBranch string `json:"base_branch"`
PrNumber int32 `json:"pr_number"`
PrUrl string `json:"pr_url"`
Title string `json:"title"`
Body string `json:"body"`
Files json.RawMessage `json:"files"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InsertDefinitionSyncRunParams ¶
type InsertDefinitionSyncRunParams struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
Status string `json:"status"`
SourceCommit sql.NullString `json:"source_commit"`
DefinitionsCount int32 `json:"definitions_count"`
Error sql.NullString `json:"error"`
StartedAt time.Time `json:"started_at"`
EndedAt time.Time `json:"ended_at"`
CreatedAt time.Time `json:"created_at"`
}
type InsertEventCallbackParams ¶
type InsertEventCallbackParams struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Name string `json:"name"`
EventType string `json:"event_type"`
ActionType string `json:"action_type"`
ActionConfig json.RawMessage `json:"action_config"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InsertExecutionAttemptParams ¶
type InsertExecutionAttemptParams struct {
ID string `json:"id"`
UserPromptID string `json:"user_prompt_id"`
Sequence int32 `json:"sequence"`
RunnerID sql.NullString `json:"runner_id"`
RequiredRunnerID sql.NullString `json:"required_runner_id"`
ClaimedAt sql.NullTime `json:"claimed_at"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
TimeoutSec int32 `json:"timeout_sec"`
LastEventAt sql.NullTime `json:"last_event_at"`
StartedAt sql.NullTime `json:"started_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InsertPendingExecutionAttemptParams ¶
type InsertPendingExecutionAttemptParams struct {
ID string `json:"id"`
UserPromptID string `json:"user_prompt_id"`
Sequence int32 `json:"sequence"`
RequiredRunnerID sql.NullString `json:"required_runner_id"`
TimeoutSec int32 `json:"timeout_sec"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InsertTaskArtifactParams ¶
type InsertTaskArtifactParams struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID string `json:"execution_attempt_id"`
ArtifactType string `json:"artifact_type"`
Repo string `json:"repo"`
Number sql.NullInt32 `json:"number"`
Url sql.NullString `json:"url"`
Ref sql.NullString `json:"ref"`
Sha sql.NullString `json:"sha"`
CreatedAt time.Time `json:"created_at"`
DiscoveredAt time.Time `json:"discovered_at"`
DiscoverySource string `json:"discovery_source"`
SearchText sql.NullString `json:"search_text"`
}
type InsertTaskEventParams ¶
type InsertTaskEventParams struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID sql.NullString `json:"execution_attempt_id"`
Subject string `json:"subject"`
Status string `json:"status"`
EventType string `json:"event_type"`
Payload json.RawMessage `json:"payload"`
CreatedAt time.Time `json:"created_at"`
}
type InsertTaskParams ¶
type InsertTaskParams struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Prompt string `json:"prompt"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
GithubRepo sql.NullString `json:"github_repo"`
GithubInstallationID sql.NullInt64 `json:"github_installation_id"`
TriggerName sql.NullString `json:"trigger_name"`
TriggerType sql.NullString `json:"trigger_type"`
SubmissionSource string `json:"submission_source"`
SelfTestRunID sql.NullString `json:"self_test_run_id"`
SelfTestProfile sql.NullString `json:"self_test_profile"`
SelfTestCheck sql.NullString `json:"self_test_check"`
SelfTestNonce sql.NullString `json:"self_test_nonce"`
SearchText sql.NullString `json:"search_text"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type InsertTriggerRunParams ¶
type InsertUserPromptParams ¶
type InsertUserPromptParams struct {
ID string `json:"id"`
AgentSessionID string `json:"agent_session_id"`
TaskID string `json:"task_id"`
Sequence int32 `json:"sequence"`
Status string `json:"status"`
Prompt string `json:"prompt"`
SourceUserPromptID sql.NullString `json:"source_user_prompt_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type IsRunnerAliveParams ¶
type IsRunnerAliveParams struct {
RunnerID string `json:"runner_id"`
StaleSeconds interface{} `json:"stale_seconds"`
}
type ListAgentSessionsParams ¶
type ListAuditLogParams ¶
type ListAuditLogParams struct {
EventTypeFilter string `json:"event_type_filter"`
SourceTypeFilter sql.NullString `json:"source_type_filter"`
SourceIDFilter sql.NullString `json:"source_id_filter"`
TargetTypeFilter sql.NullString `json:"target_type_filter"`
TargetIDFilter sql.NullString `json:"target_id_filter"`
RepoFilter sql.NullString `json:"repo_filter"`
CreatedAfter sql.NullTime `json:"created_after"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListAuditLogRow ¶
type ListAuditLogRow struct {
ID string `json:"id"`
EventType string `json:"event_type"`
CreatedAt time.Time `json:"created_at"`
SourceType sql.NullString `json:"source_type"`
SourceID sql.NullString `json:"source_id"`
TargetType sql.NullString `json:"target_type"`
TargetID sql.NullString `json:"target_id"`
Repo sql.NullString `json:"repo"`
GithubEvent sql.NullString `json:"github_event"`
GithubAction sql.NullString `json:"github_action"`
GithubDeliveryID sql.NullString `json:"github_delivery_id"`
ParentEventID sql.NullString `json:"parent_event_id"`
Detail sql.NullString `json:"detail"`
Payload *json.RawMessage `json:"payload"`
TokenID sql.NullString `json:"token_id"`
TokenName sql.NullString `json:"token_name"`
}
type ListDefinitionChangeProposalsParams ¶
type ListDefinitionChangeProposalsParams struct {
SourceIDFilter interface{} `json:"source_id_filter"`
StatusFilter interface{} `json:"status_filter"`
PageLimit int32 `json:"page_limit"`
}
type ListDefinitionSyncRunsParams ¶
type ListDefinitionSyncRunsParams struct {
SourceIDFilter interface{} `json:"source_id_filter"`
PageLimit int32 `json:"page_limit"`
}
type ListDefinitionsParams ¶
type ListDefinitionsParams struct {
DefinitionTypeFilter interface{} `json:"definition_type_filter"`
SourceIDFilter interface{} `json:"source_id_filter"`
NameFilter interface{} `json:"name_filter"`
}
type ListEnabledEventCallbacksForEventParams ¶
type ListEnabledEventCallbacksForEventParams struct {
TeamID sql.NullString `json:"team_id"`
EventType string `json:"event_type"`
}
type ListEventCallbacksParams ¶
type ListEventCallbacksParams struct {
EnabledOnly interface{} `json:"enabled_only"`
EventTypeFilter interface{} `json:"event_type_filter"`
IncludeGlobal interface{} `json:"include_global"`
TeamID sql.NullString `json:"team_id"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListExecutionAttemptsForHeartbeatParams ¶
type ListExecutionAttemptsForHeartbeatParams struct {
ExecutionIds []string `json:"execution_ids"`
RunnerID sql.NullString `json:"runner_id"`
}
type ListExecutionAttemptsForHeartbeatRow ¶
type ListExecutionAttemptsForHeartbeatRow struct {
ExecutionAttemptID string `json:"execution_attempt_id"`
ClaimID string `json:"claim_id"`
Status string `json:"status"`
Error sql.NullString `json:"error"`
TaskID string `json:"task_id"`
AgentSessionID string `json:"agent_session_id"`
UserPromptID string `json:"user_prompt_id"`
}
type ListLiveRunnersRow ¶
type ListLiveRunnersRow struct {
ID string `json:"id"`
Status string `json:"status"`
ImageRef sql.NullString `json:"image_ref"`
ImageDigest sql.NullString `json:"image_digest"`
Version sql.NullString `json:"version"`
MaxConcurrent int32 `json:"max_concurrent"`
RunningTasks int32 `json:"running_tasks"`
AvailableSlots int32 `json:"available_slots"`
TotalStarted int64 `json:"total_started"`
TotalCompleted int64 `json:"total_completed"`
TotalErrors int64 `json:"total_errors"`
StartedAt sql.NullTime `json:"started_at"`
FirstSeenAt time.Time `json:"first_seen_at"`
LastSeenAt time.Time `json:"last_seen_at"`
UpdatedAt time.Time `json:"updated_at"`
Metadata json.RawMessage `json:"metadata"`
}
type ListReclaimableExecutionAttemptsForUpdateRow ¶
type ListReclaimableExecutionAttemptsForUpdateRow struct {
ExecutionAttemptID string `json:"execution_attempt_id"`
TaskID string `json:"task_id"`
UserPromptID string `json:"user_prompt_id"`
LockedTaskID string `json:"locked_task_id"`
TeamID sql.NullString `json:"team_id"`
RunnerID sql.NullString `json:"runner_id"`
Attempt int32 `json:"attempt"`
MaxAttempts int32 `json:"max_attempts"`
TimeoutSec int32 `json:"timeout_sec"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
}
type ListTaskArtifactsParams ¶
type ListTaskArtifactsParams struct {
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID string `json:"execution_attempt_id"`
ArtifactType string `json:"artifact_type"`
Repo string `json:"repo"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListTaskArtifactsRow ¶
type ListTaskArtifactsRow struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID string `json:"execution_attempt_id"`
ArtifactType string `json:"artifact_type"`
Repo string `json:"repo"`
Number sql.NullInt32 `json:"number"`
Url sql.NullString `json:"url"`
Ref sql.NullString `json:"ref"`
Sha sql.NullString `json:"sha"`
CreatedAt time.Time `json:"created_at"`
DiscoveredAt time.Time `json:"discovered_at"`
DiscoverySource string `json:"discovery_source"`
}
type ListTaskEventsParams ¶
type ListTasksByStatusAndTeamParams ¶
type ListTasksByStatusAndTeamParams struct {
TeamID sql.NullString `json:"team_id"`
StatusFilter interface{} `json:"status_filter"`
TriggerNameFilter interface{} `json:"trigger_name_filter"`
AgentFilter interface{} `json:"agent_filter"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListTasksByStatusAndTeamsParams ¶
type ListTasksByStatusAndTeamsParams struct {
TeamIds []string `json:"team_ids"`
StatusFilter interface{} `json:"status_filter"`
TriggerNameFilter interface{} `json:"trigger_name_filter"`
AgentFilter interface{} `json:"agent_filter"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListTasksByStatusParams ¶
type ListTokensRow ¶
type ListTokensRow struct {
ID string `json:"id"`
Name string `json:"name"`
TokenHash string `json:"token_hash"`
UserID string `json:"user_id"`
ExpiresAt sql.NullTime `json:"expires_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
UserName string `json:"user_name"`
TeamID string `json:"team_id"`
TeamName string `json:"team_name"`
TeamNames string `json:"team_names"`
}
type ListTriggerRunsByTeamParams ¶
type ListTriggerRunsByTeamParams struct {
TeamID sql.NullString `json:"team_id"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListUsersByTeamRow ¶
type ListUsersRow ¶
type MarkAgentSessionTerminalByTaskParams ¶
type MarkAgentSessionTerminalByTaskParams struct {
Status string `json:"status"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
EndedAt sql.NullTime `json:"ended_at"`
UpdatedAt time.Time `json:"updated_at"`
TaskID string `json:"task_id"`
HarnessSessionID interface{} `json:"harness_session_id"`
}
type MarkExecutionAttemptClaimedParams ¶
type MarkExecutionAttemptClaimedParams struct {
RunnerID sql.NullString `json:"runner_id"`
ClaimID string `json:"claim_id"`
ClaimedAt sql.NullTime `json:"claimed_at"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
StartedAt sql.NullTime `json:"started_at"`
LastEventAt sql.NullTime `json:"last_event_at"`
UpdatedAt time.Time `json:"updated_at"`
ID string `json:"id"`
}
type MarkResumingSessionsFailedForUnavailableRunnerParams ¶
type MarkResumingSessionsFailedForUnavailableRunnerParams struct {
}
type MarkTaskRunningParams ¶
type MarkUserPromptTerminalByTaskParams ¶
type MarkUserPromptTerminalByTaskParams struct {
Status string `json:"status"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
SessionExport sql.NullString `json:"session_export"`
StartedAt sql.NullTime `json:"started_at"`
EndedAt sql.NullTime `json:"ended_at"`
UpdatedAt time.Time `json:"updated_at"`
TaskID string `json:"task_id"`
}
type ModelCatalog ¶
type PauseAgentSessionByTaskIDParams ¶
type PauseAgentSessionByTaskIDParams struct {
Status string `json:"status"`
PausedAt sql.NullTime `json:"paused_at"`
UpdatedAt time.Time `json:"updated_at"`
TaskID string `json:"task_id"`
PinnedRunnerID interface{} `json:"pinned_runner_id"`
CheckpointID interface{} `json:"checkpoint_id"`
WorkspacePath interface{} `json:"workspace_path"`
ContainerName interface{} `json:"container_name"`
HarnessSessionID interface{} `json:"harness_session_id"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AbandonAgentSession ¶
func (*Queries) AbandonUserPrompt ¶
func (*Queries) AddTokenTeam ¶
func (q *Queries) AddTokenTeam(ctx context.Context, arg AddTokenTeamParams) error
func (*Queries) AddUserTeamMembership ¶
func (q *Queries) AddUserTeamMembership(ctx context.Context, arg AddUserTeamMembershipParams) error
func (*Queries) CancelExecutionAttemptsByTask ¶
func (*Queries) CancelPendingExecutionAttempts ¶
func (*Queries) CancelTask ¶
func (*Queries) ClearExpiredExecutionAttemptExports ¶
func (*Queries) ClearExpiredSessionCheckpoints ¶
func (*Queries) ClearExpiredUserPromptExports ¶
func (*Queries) ClearPendingTasks ¶
func (*Queries) CountExecutionAttemptsByTask ¶
func (*Queries) CreateTeam ¶
func (q *Queries) CreateTeam(ctx context.Context, arg CreateTeamParams) error
func (*Queries) CreateToken ¶
func (q *Queries) CreateToken(ctx context.Context, arg CreateTokenParams) error
func (*Queries) CreateTrigger ¶
func (q *Queries) CreateTrigger(ctx context.Context, arg CreateTriggerParams) error
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*Queries) DeactivateDefinitionsBySource ¶
func (q *Queries) DeactivateDefinitionsBySource(ctx context.Context, arg DeactivateDefinitionsBySourceParams) error
func (*Queries) DeactivateModelCatalogs ¶
func (*Queries) DeleteEventCallback ¶
func (*Queries) DeleteTokenTeamsByTeam ¶
func (*Queries) DeleteTokensByTeam ¶
func (q *Queries) DeleteTokensByTeam(ctx context.Context, arg DeleteTokensByTeamParams) error
func (*Queries) DeleteTrigger ¶
func (*Queries) DeleteTriggersBySource ¶
func (*Queries) DeleteUserTeamMembershipsByTeam ¶
func (*Queries) DeleteUsersByTeam ¶
func (*Queries) ExpirePausedSessions ¶
func (*Queries) ExtendActiveExecutionAttemptTimeout ¶
func (*Queries) FailAllExpiredExecutionAttempts ¶
func (*Queries) FailExpiredExecutionAttempts ¶
func (*Queries) FailExpiredLeases ¶
func (*Queries) FailPendingExecutionAttemptsForMissingRunner ¶
func (*Queries) FailPendingIsolationAttemptsWithoutCapableRunner ¶
func (q *Queries) FailPendingIsolationAttemptsWithoutCapableRunner(ctx context.Context, arg FailPendingIsolationAttemptsWithoutCapableRunnerParams) (int64, error)
Fails pending attempts whose session requires enforced isolation when no live runner advertises isolation_enabled. The task must never run unsandboxed; without a capable runner it fails fast with error_category isolation_unavailable instead of waiting forever. See issue #291.
func (*Queries) FailPendingIsolationTasks ¶
func (q *Queries) FailPendingIsolationTasks(ctx context.Context, arg FailPendingIsolationTasksParams) (int64, error)
Marks pending tasks whose execution attempts failed with isolation_unavailable as terminal errors. Companion to FailPendingIsolationAttemptsWithoutCapableRunner (issue #291).
func (*Queries) FailPendingResumeTasksForMissingRunner ¶
func (*Queries) FailPendingUserPromptsForUnavailableRunner ¶
func (*Queries) GetActiveModelCatalog ¶
func (q *Queries) GetActiveModelCatalog(ctx context.Context) (ModelCatalog, error)
func (*Queries) GetAgentSessionByID ¶
func (*Queries) GetAgentSessionByTaskID ¶
func (*Queries) GetClaimableExecutionAttemptForUpdate ¶
func (q *Queries) GetClaimableExecutionAttemptForUpdate(ctx context.Context, arg GetClaimableExecutionAttemptForUpdateParams) (GetClaimableExecutionAttemptForUpdateRow, error)
func (*Queries) GetDefinitionBySourceTypeName ¶
func (q *Queries) GetDefinitionBySourceTypeName(ctx context.Context, arg GetDefinitionBySourceTypeNameParams) (Definition, error)
func (*Queries) GetDefinitionChangeProposal ¶
func (*Queries) GetDefinitionChangeProposalByPR ¶
func (q *Queries) GetDefinitionChangeProposalByPR(ctx context.Context, arg GetDefinitionChangeProposalByPRParams) (DefinitionChangeProposal, error)
func (*Queries) GetDefinitionSource ¶
func (*Queries) GetDefinitionSourceByName ¶
func (*Queries) GetEventCallbackByID ¶
func (*Queries) GetEventCallbackByName ¶
func (q *Queries) GetEventCallbackByName(ctx context.Context, arg GetEventCallbackByNameParams) (EventCallback, error)
func (*Queries) GetExecutionAttemptByID ¶
func (*Queries) GetExecutionAttemptContext ¶
func (*Queries) GetExecutionAttemptUsageByTask ¶
func (*Queries) GetGitHubExecutionContext ¶
func (*Queries) GetLatestAgentSessionCheckpoint ¶
func (*Queries) GetLatestAgentSessionCheckpointByTaskID ¶
func (*Queries) GetLatestTaskEvent ¶
func (*Queries) GetModelCatalogByName ¶
func (*Queries) GetNextAgentSessionSequence ¶
func (*Queries) GetNextExecutionAttemptSequence ¶
func (*Queries) GetNextUserPromptSequence ¶
func (*Queries) GetPausedSessionByArtifact ¶
func (q *Queries) GetPausedSessionByArtifact(ctx context.Context, arg GetPausedSessionByArtifactParams) (AgentSession, error)
func (*Queries) GetRunnerHeartbeatMetadata ¶
func (*Queries) GetRunnerIsolationEnabled ¶
func (*Queries) GetTaskByID ¶
func (*Queries) GetTeamByID ¶
func (*Queries) GetTeamByName ¶
func (*Queries) GetTokenByHash ¶
func (*Queries) GetTriggerByID ¶
func (*Queries) GetTriggerByName ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserPromptByID ¶
func (*Queries) GetUserPromptByTaskID ¶
func (*Queries) InsertAgentSession ¶
func (q *Queries) InsertAgentSession(ctx context.Context, arg InsertAgentSessionParams) error
func (*Queries) InsertAgentSessionCheckpoint ¶
func (q *Queries) InsertAgentSessionCheckpoint(ctx context.Context, arg InsertAgentSessionCheckpointParams) error
func (*Queries) InsertAuditLog ¶
func (q *Queries) InsertAuditLog(ctx context.Context, arg InsertAuditLogParams) error
func (*Queries) InsertDefinitionChangeProposal ¶
func (q *Queries) InsertDefinitionChangeProposal(ctx context.Context, arg InsertDefinitionChangeProposalParams) error
func (*Queries) InsertDefinitionSyncRun ¶
func (q *Queries) InsertDefinitionSyncRun(ctx context.Context, arg InsertDefinitionSyncRunParams) error
func (*Queries) InsertEventCallback ¶
func (q *Queries) InsertEventCallback(ctx context.Context, arg InsertEventCallbackParams) error
func (*Queries) InsertExecutionAttempt ¶
func (q *Queries) InsertExecutionAttempt(ctx context.Context, arg InsertExecutionAttemptParams) error
func (*Queries) InsertModelCatalog ¶
func (q *Queries) InsertModelCatalog(ctx context.Context, arg InsertModelCatalogParams) error
func (*Queries) InsertPendingExecutionAttempt ¶
func (q *Queries) InsertPendingExecutionAttempt(ctx context.Context, arg InsertPendingExecutionAttemptParams) error
func (*Queries) InsertTask ¶
func (q *Queries) InsertTask(ctx context.Context, arg InsertTaskParams) error
func (*Queries) InsertTaskArtifact ¶
func (q *Queries) InsertTaskArtifact(ctx context.Context, arg InsertTaskArtifactParams) error
func (*Queries) InsertTaskEvent ¶
func (q *Queries) InsertTaskEvent(ctx context.Context, arg InsertTaskEventParams) error
func (*Queries) InsertTriggerRun ¶
func (q *Queries) InsertTriggerRun(ctx context.Context, arg InsertTriggerRunParams) error
func (*Queries) InsertUserPrompt ¶
func (q *Queries) InsertUserPrompt(ctx context.Context, arg InsertUserPromptParams) error
func (*Queries) IsRunnerAlive ¶
func (*Queries) ListAgentSessions ¶
func (q *Queries) ListAgentSessions(ctx context.Context, arg ListAgentSessionsParams) ([]AgentSession, error)
func (*Queries) ListAgentSessionsByTeams ¶
func (q *Queries) ListAgentSessionsByTeams(ctx context.Context, arg ListAgentSessionsByTeamsParams) ([]AgentSession, error)
func (*Queries) ListAuditLog ¶
func (q *Queries) ListAuditLog(ctx context.Context, arg ListAuditLogParams) ([]ListAuditLogRow, error)
func (*Queries) ListDefinitionChangeProposals ¶
func (q *Queries) ListDefinitionChangeProposals(ctx context.Context, arg ListDefinitionChangeProposalsParams) ([]DefinitionChangeProposal, error)
func (*Queries) ListDefinitionSources ¶
func (q *Queries) ListDefinitionSources(ctx context.Context) ([]DefinitionSource, error)
func (*Queries) ListDefinitionSyncRuns ¶
func (q *Queries) ListDefinitionSyncRuns(ctx context.Context, arg ListDefinitionSyncRunsParams) ([]DefinitionSyncRun, error)
func (*Queries) ListDefinitions ¶
func (q *Queries) ListDefinitions(ctx context.Context, arg ListDefinitionsParams) ([]Definition, error)
func (*Queries) ListEnabledEventCallbacksForEvent ¶
func (q *Queries) ListEnabledEventCallbacksForEvent(ctx context.Context, arg ListEnabledEventCallbacksForEventParams) ([]EventCallback, error)
func (*Queries) ListEnabledIssueTriggersByRepo ¶
func (*Queries) ListEnabledPRReviewTriggersByRepo ¶
func (*Queries) ListEnabledTriggers ¶
func (*Queries) ListEnabledTriggersByTeam ¶
func (*Queries) ListEnabledTriggersByTeams ¶
func (*Queries) ListEnabledTriggersByType ¶
func (*Queries) ListEventCallbacks ¶
func (q *Queries) ListEventCallbacks(ctx context.Context, arg ListEventCallbacksParams) ([]EventCallback, error)
func (*Queries) ListEventCallbacksByTeams ¶
func (q *Queries) ListEventCallbacksByTeams(ctx context.Context, arg ListEventCallbacksByTeamsParams) ([]EventCallback, error)
func (*Queries) ListExecutionAttemptsByPrompt ¶
func (*Queries) ListExecutionAttemptsForHeartbeat ¶
func (q *Queries) ListExecutionAttemptsForHeartbeat(ctx context.Context, arg ListExecutionAttemptsForHeartbeatParams) ([]ListExecutionAttemptsForHeartbeatRow, error)
func (*Queries) ListLiveRunners ¶
func (*Queries) ListModelCatalogs ¶
func (q *Queries) ListModelCatalogs(ctx context.Context) ([]ModelCatalog, error)
func (*Queries) ListReclaimableExecutionAttemptsForUpdate ¶
func (*Queries) ListTaskArtifacts ¶
func (q *Queries) ListTaskArtifacts(ctx context.Context, arg ListTaskArtifactsParams) ([]ListTaskArtifactsRow, error)
func (*Queries) ListTaskEvents ¶
func (*Queries) ListTaskEventsSince ¶
func (*Queries) ListTasksBySelfTestRun ¶
func (*Queries) ListTasksByStatus ¶
func (*Queries) ListTasksByStatusAndTeam ¶
func (*Queries) ListTasksByStatusAndTeams ¶
func (*Queries) ListTokens ¶
func (q *Queries) ListTokens(ctx context.Context) ([]ListTokensRow, error)
func (*Queries) ListTriggerRunsByTeam ¶
func (q *Queries) ListTriggerRunsByTeam(ctx context.Context, arg ListTriggerRunsByTeamParams) ([]ListTriggerRunsByTeamRow, error)
func (*Queries) ListTriggerRunsByTeams ¶
func (q *Queries) ListTriggerRunsByTeams(ctx context.Context, arg ListTriggerRunsByTeamsParams) ([]ListTriggerRunsByTeamsRow, error)
func (*Queries) ListTriggerRunsByTrigger ¶
func (q *Queries) ListTriggerRunsByTrigger(ctx context.Context, arg ListTriggerRunsByTriggerParams) ([]ListTriggerRunsByTriggerRow, error)
func (*Queries) ListTriggers ¶
func (*Queries) ListTriggersByTeam ¶
func (*Queries) ListTriggersByTeams ¶
func (*Queries) ListUserPromptsBySession ¶
func (*Queries) ListUsers ¶
func (q *Queries) ListUsers(ctx context.Context) ([]ListUsersRow, error)
func (*Queries) ListUsersByTeam ¶
func (*Queries) MarkAgentSessionResuming ¶
func (*Queries) MarkAgentSessionTerminalByTask ¶
func (*Queries) MarkDefinitionSourceSynced ¶
func (q *Queries) MarkDefinitionSourceSynced(ctx context.Context, arg MarkDefinitionSourceSyncedParams) error
func (*Queries) MarkExecutionAttemptClaimed ¶
func (*Queries) MarkExecutionAttemptLost ¶
func (*Queries) MarkResumingSessionsFailedForUnavailableRunner ¶
func (*Queries) MarkTaskRunning ¶
func (*Queries) MarkUserPromptRunningByTask ¶
func (*Queries) MarkUserPromptTerminalByTask ¶
func (*Queries) PauseAgentSessionByTaskID ¶
func (*Queries) PinTaskGitHubInstallation ¶
func (*Queries) ReapStaleSessionsForTerminalRuns ¶
func (*Queries) ReapStaleUserPrompts ¶
func (*Queries) RenewExecutionAttemptLease ¶
func (*Queries) RequeueTaskAfterExecutionAttemptLost ¶
func (*Queries) RequeueTaskForPrompt ¶
func (*Queries) RevertOrphanedRunningUserPrompts ¶
func (*Queries) SearchAgentSessions ¶
func (q *Queries) SearchAgentSessions(ctx context.Context, arg SearchAgentSessionsParams) ([]AgentSession, error)
func (*Queries) SearchAgentSessionsByTeams ¶
func (q *Queries) SearchAgentSessionsByTeams(ctx context.Context, arg SearchAgentSessionsByTeamsParams) ([]AgentSession, error)
func (*Queries) SearchAuditLog ¶
func (q *Queries) SearchAuditLog(ctx context.Context, arg SearchAuditLogParams) ([]SearchAuditLogRow, error)
func (*Queries) SearchTaskArtifacts ¶
func (q *Queries) SearchTaskArtifacts(ctx context.Context, arg SearchTaskArtifactsParams) ([]SearchTaskArtifactsRow, error)
func (*Queries) SearchTasks ¶
func (*Queries) SearchTasksByTeams ¶
func (*Queries) SetTriggerLastRun ¶
func (q *Queries) SetTriggerLastRun(ctx context.Context, arg SetTriggerLastRunParams) error
func (*Queries) SetTriggerNextRun ¶
func (q *Queries) SetTriggerNextRun(ctx context.Context, arg SetTriggerNextRunParams) error
func (*Queries) UpdateAgentSessionFromRunnerEvent ¶
func (*Queries) UpdateDefinitionChangeProposalStatus ¶
func (q *Queries) UpdateDefinitionChangeProposalStatus(ctx context.Context, arg UpdateDefinitionChangeProposalStatusParams) error
func (*Queries) UpdateEventCallback ¶
func (*Queries) UpdateExecutionAttemptFromRunnerEvent ¶
func (*Queries) UpdateTaskAggregateFromRunnerEvent ¶
func (*Queries) UpdateTaskSearchText ¶
func (*Queries) UpdateTrigger ¶
func (q *Queries) UpdateTrigger(ctx context.Context, arg UpdateTriggerParams) error
func (*Queries) UpdateTriggerRunStatusByTask ¶
func (q *Queries) UpdateTriggerRunStatusByTask(ctx context.Context, arg UpdateTriggerRunStatusByTaskParams) error
func (*Queries) UpsertDefinition ¶
func (q *Queries) UpsertDefinition(ctx context.Context, arg UpsertDefinitionParams) error
func (*Queries) UpsertDefinitionSource ¶
func (q *Queries) UpsertDefinitionSource(ctx context.Context, arg UpsertDefinitionSourceParams) error
func (*Queries) UpsertRunnerHeartbeat ¶
func (q *Queries) UpsertRunnerHeartbeat(ctx context.Context, arg UpsertRunnerHeartbeatParams) error
func (*Queries) UpsertTrigger ¶
func (q *Queries) UpsertTrigger(ctx context.Context, arg UpsertTriggerParams) error
func (*Queries) ValidateRunnerExecutionClaim ¶
func (q *Queries) ValidateRunnerExecutionClaim(ctx context.Context, arg ValidateRunnerExecutionClaimParams) (ValidateRunnerExecutionClaimRow, error)
type Runner ¶
type Runner struct {
ID string `json:"id"`
Status string `json:"status"`
ImageRef sql.NullString `json:"image_ref"`
ImageDigest sql.NullString `json:"image_digest"`
Version sql.NullString `json:"version"`
MaxConcurrent int32 `json:"max_concurrent"`
RunningTasks int32 `json:"running_tasks"`
AvailableSlots int32 `json:"available_slots"`
TotalStarted int64 `json:"total_started"`
TotalCompleted int64 `json:"total_completed"`
TotalErrors int64 `json:"total_errors"`
StartedAt sql.NullTime `json:"started_at"`
FirstSeenAt time.Time `json:"first_seen_at"`
LastSeenAt time.Time `json:"last_seen_at"`
UpdatedAt time.Time `json:"updated_at"`
Metadata json.RawMessage `json:"metadata"`
IsolationEnabled bool `json:"isolation_enabled"`
}
type SearchAgentSessionsByTeamsParams ¶
type SearchAgentSessionsByTeamsParams struct {
TeamIds []string `json:"team_ids"`
StatusFilter interface{} `json:"status_filter"`
Search sql.NullString `json:"search"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type SearchAgentSessionsParams ¶
type SearchAgentSessionsParams struct {
TeamFilter interface{} `json:"team_filter"`
StatusFilter interface{} `json:"status_filter"`
Search sql.NullString `json:"search"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type SearchAuditLogParams ¶
type SearchAuditLogParams struct {
EventTypeFilter string `json:"event_type_filter"`
SourceTypeFilter sql.NullString `json:"source_type_filter"`
SourceIDFilter sql.NullString `json:"source_id_filter"`
TargetTypeFilter sql.NullString `json:"target_type_filter"`
TargetIDFilter sql.NullString `json:"target_id_filter"`
RepoFilter sql.NullString `json:"repo_filter"`
CreatedAfter sql.NullTime `json:"created_after"`
Search sql.NullString `json:"search"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type SearchAuditLogRow ¶
type SearchAuditLogRow struct {
ID string `json:"id"`
EventType string `json:"event_type"`
CreatedAt time.Time `json:"created_at"`
SourceType sql.NullString `json:"source_type"`
SourceID sql.NullString `json:"source_id"`
TargetType sql.NullString `json:"target_type"`
TargetID sql.NullString `json:"target_id"`
Repo sql.NullString `json:"repo"`
GithubEvent sql.NullString `json:"github_event"`
GithubAction sql.NullString `json:"github_action"`
GithubDeliveryID sql.NullString `json:"github_delivery_id"`
ParentEventID sql.NullString `json:"parent_event_id"`
Detail sql.NullString `json:"detail"`
Payload *json.RawMessage `json:"payload"`
TokenID sql.NullString `json:"token_id"`
TokenName sql.NullString `json:"token_name"`
}
type SearchTaskArtifactsParams ¶
type SearchTaskArtifactsParams struct {
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID string `json:"execution_attempt_id"`
ArtifactType string `json:"artifact_type"`
Repo string `json:"repo"`
Search sql.NullString `json:"search"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type SearchTaskArtifactsRow ¶
type SearchTaskArtifactsRow struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID string `json:"execution_attempt_id"`
ArtifactType string `json:"artifact_type"`
Repo string `json:"repo"`
Number sql.NullInt32 `json:"number"`
Url sql.NullString `json:"url"`
Ref sql.NullString `json:"ref"`
Sha sql.NullString `json:"sha"`
CreatedAt time.Time `json:"created_at"`
DiscoveredAt time.Time `json:"discovered_at"`
DiscoverySource string `json:"discovery_source"`
}
type SearchTasksByTeamsParams ¶
type SearchTasksByTeamsParams struct {
TeamIds []string `json:"team_ids"`
StatusFilter interface{} `json:"status_filter"`
TriggerNameFilter interface{} `json:"trigger_name_filter"`
AgentFilter interface{} `json:"agent_filter"`
Search sql.NullString `json:"search"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type SearchTasksParams ¶
type SearchTasksParams struct {
TeamFilter interface{} `json:"team_filter"`
StatusFilter interface{} `json:"status_filter"`
TriggerNameFilter interface{} `json:"trigger_name_filter"`
AgentFilter interface{} `json:"agent_filter"`
Search sql.NullString `json:"search"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type SetTriggerLastRunParams ¶
type SetTriggerNextRunParams ¶
type Task ¶
type Task struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Status string `json:"status"`
Prompt string `json:"prompt"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
TriggerName sql.NullString `json:"trigger_name"`
TriggerType sql.NullString `json:"trigger_type"`
SubmissionSource string `json:"submission_source"`
MaxAttempts int32 `json:"max_attempts"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
ErrorCategory sql.NullString `json:"error_category"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
EndedAt sql.NullTime `json:"ended_at"`
SearchText sql.NullString `json:"search_text"`
FailureCategory sql.NullString `json:"failure_category"`
FailureMessage sql.NullString `json:"failure_message"`
GithubRepo sql.NullString `json:"github_repo"`
GithubInstallationID sql.NullInt64 `json:"github_installation_id"`
SelfTestRunID sql.NullString `json:"self_test_run_id"`
SelfTestProfile sql.NullString `json:"self_test_profile"`
SelfTestCheck sql.NullString `json:"self_test_check"`
SelfTestNonce sql.NullString `json:"self_test_nonce"`
}
type TaskArtifact ¶
type TaskArtifact struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ArtifactType string `json:"artifact_type"`
Repo string `json:"repo"`
Number sql.NullInt32 `json:"number"`
Url sql.NullString `json:"url"`
Ref sql.NullString `json:"ref"`
Sha sql.NullString `json:"sha"`
CreatedAt time.Time `json:"created_at"`
DiscoveredAt time.Time `json:"discovered_at"`
DiscoverySource string `json:"discovery_source"`
SearchText sql.NullString `json:"search_text"`
ExecutionAttemptID string `json:"execution_attempt_id"`
}
type TaskEvent ¶
type TaskEvent struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
Subject string `json:"subject"`
Status string `json:"status"`
EventType string `json:"event_type"`
Payload json.RawMessage `json:"payload"`
CreatedAt time.Time `json:"created_at"`
AgentSessionID sql.NullString `json:"agent_session_id"`
UserPromptID sql.NullString `json:"user_prompt_id"`
ExecutionAttemptID sql.NullString `json:"execution_attempt_id"`
}
type Team ¶
type Team struct {
ID string `json:"id"`
Name string `json:"name"`
OktaGroupID sql.NullString `json:"okta_group_id"`
OktaGroupName sql.NullString `json:"okta_group_name"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Trigger ¶
type Trigger struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Name string `json:"name"`
TriggerType string `json:"trigger_type"`
TriggerConfig json.RawMessage `json:"trigger_config"`
CronExpr string `json:"cron_expr"`
Prompt string `json:"prompt"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
AgentImage sql.NullString `json:"agent_image"`
Agent sql.NullString `json:"agent"`
ProviderID sql.NullString `json:"provider_id"`
ModelID sql.NullString `json:"model_id"`
VariantID sql.NullString `json:"variant_id"`
Harness sql.NullString `json:"harness"`
Skills json.RawMessage `json:"skills"`
TimeoutSec int32 `json:"timeout_sec"`
Enabled bool `json:"enabled"`
SourceID sql.NullString `json:"source_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastRunAt sql.NullTime `json:"last_run_at"`
NextRunAt sql.NullTime `json:"next_run_at"`
}
type TriggerRun ¶
type UpdateEventCallbackParams ¶
type UpdateEventCallbackParams struct {
EventType string `json:"event_type"`
ActionType string `json:"action_type"`
ActionConfig json.RawMessage `json:"action_config"`
Enabled bool `json:"enabled"`
UpdatedAt time.Time `json:"updated_at"`
Name string `json:"name"`
TeamID sql.NullString `json:"team_id"`
}
type UpdateExecutionAttemptFromRunnerEventParams ¶
type UpdateExecutionAttemptFromRunnerEventParams struct {
Status string `json:"status"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
ErrorCategory string `json:"error_category"`
SessionExport sql.NullString `json:"session_export"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
StartedAt sql.NullTime `json:"started_at"`
EndedAt sql.NullTime `json:"ended_at"`
WorkspacePath string `json:"workspace_path"`
HarnessExecutionID string `json:"harness_execution_id"`
RunnerImageDigest string `json:"runner_image_digest"`
TotalInputTokens int64 `json:"total_input_tokens"`
TotalOutputTokens int64 `json:"total_output_tokens"`
TotalCacheReadTokens int64 `json:"total_cache_read_tokens"`
TotalCacheWriteTokens int64 `json:"total_cache_write_tokens"`
TotalReasoningTokens int64 `json:"total_reasoning_tokens"`
CostCents int64 `json:"cost_cents"`
LastEventAt sql.NullTime `json:"last_event_at"`
UpdatedAt time.Time `json:"updated_at"`
ID string `json:"id"`
RunnerID sql.NullString `json:"runner_id"`
ClaimID string `json:"claim_id"`
}
type UpdateTaskAggregateFromRunnerEventParams ¶
type UpdateTaskAggregateFromRunnerEventParams struct {
Status string `json:"status"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
ErrorCategory interface{} `json:"error_category"`
FailureCategory interface{} `json:"failure_category"`
FailureMessage sql.NullString `json:"failure_message"`
EndedAt sql.NullTime `json:"ended_at"`
UpdatedAt time.Time `json:"updated_at"`
ID string `json:"id"`
}
type UpdateTriggerParams ¶
type UpdateTriggerParams struct {
TriggerType string `json:"trigger_type"`
TriggerConfig json.RawMessage `json:"trigger_config"`
CronExpr string `json:"cron_expr"`
Prompt string `json:"prompt"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
AgentImage sql.NullString `json:"agent_image"`
Agent sql.NullString `json:"agent"`
ProviderID sql.NullString `json:"provider_id"`
ModelID sql.NullString `json:"model_id"`
VariantID sql.NullString `json:"variant_id"`
Harness sql.NullString `json:"harness"`
Skills json.RawMessage `json:"skills"`
TimeoutSec int32 `json:"timeout_sec"`
Enabled bool `json:"enabled"`
UpdatedAt time.Time `json:"updated_at"`
NewName string `json:"new_name"`
OldName string `json:"old_name"`
}
type UpsertDefinitionParams ¶
type UpsertDefinitionParams struct {
ID string `json:"id"`
SourceID string `json:"source_id"`
DefinitionType string `json:"definition_type"`
Name string `json:"name"`
Scope string `json:"scope"`
TeamID sql.NullString `json:"team_id"`
Repo sql.NullString `json:"repo"`
Path string `json:"path"`
SourceCommit string `json:"source_commit"`
ContentHash string `json:"content_hash"`
Content string `json:"content"`
Metadata *json.RawMessage `json:"metadata"`
Active bool `json:"active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type UpsertDefinitionSourceParams ¶
type UpsertDefinitionSourceParams struct {
ID string `json:"id"`
Name string `json:"name"`
Scope string `json:"scope"`
TeamID sql.NullString `json:"team_id"`
Repo sql.NullString `json:"repo"`
RepoUrl string `json:"repo_url"`
Branch string `json:"branch"`
Path string `json:"path"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastSyncAt sql.NullTime `json:"last_sync_at"`
}
type UpsertRunnerHeartbeatParams ¶
type UpsertRunnerHeartbeatParams struct {
ID string `json:"id"`
Status string `json:"status"`
ImageRef sql.NullString `json:"image_ref"`
ImageDigest sql.NullString `json:"image_digest"`
Version sql.NullString `json:"version"`
MaxConcurrent int32 `json:"max_concurrent"`
RunningTasks int32 `json:"running_tasks"`
AvailableSlots int32 `json:"available_slots"`
IsolationEnabled bool `json:"isolation_enabled"`
TotalStarted int64 `json:"total_started"`
TotalCompleted int64 `json:"total_completed"`
TotalErrors int64 `json:"total_errors"`
StartedAt sql.NullTime `json:"started_at"`
FirstSeenAt time.Time `json:"first_seen_at"`
LastSeenAt time.Time `json:"last_seen_at"`
UpdatedAt time.Time `json:"updated_at"`
Metadata json.RawMessage `json:"metadata"`
}
type UpsertTriggerParams ¶
type UpsertTriggerParams struct {
ID string `json:"id"`
TeamID sql.NullString `json:"team_id"`
Name string `json:"name"`
TriggerType string `json:"trigger_type"`
TriggerConfig json.RawMessage `json:"trigger_config"`
CronExpr string `json:"cron_expr"`
Prompt string `json:"prompt"`
GitUrl sql.NullString `json:"git_url"`
GitRef sql.NullString `json:"git_ref"`
AgentImage sql.NullString `json:"agent_image"`
Agent sql.NullString `json:"agent"`
ProviderID sql.NullString `json:"provider_id"`
ModelID sql.NullString `json:"model_id"`
VariantID sql.NullString `json:"variant_id"`
Harness sql.NullString `json:"harness"`
Skills json.RawMessage `json:"skills"`
TimeoutSec int32 `json:"timeout_sec"`
Enabled bool `json:"enabled"`
SourceID sql.NullString `json:"source_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type UserPrompt ¶
type UserPrompt struct {
ID string `json:"id"`
AgentSessionID string `json:"agent_session_id"`
TaskID string `json:"task_id"`
Status string `json:"status"`
Prompt string `json:"prompt"`
Summary sql.NullString `json:"summary"`
Error sql.NullString `json:"error"`
SessionExport sql.NullString `json:"session_export"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
StartedAt sql.NullTime `json:"started_at"`
EndedAt sql.NullTime `json:"ended_at"`
Sequence int32 `json:"sequence"`
SourceUserPromptID sql.NullString `json:"source_user_prompt_id"`
}
type UserTeamMembership ¶
type ValidateRunnerExecutionClaimParams ¶
type ValidateRunnerExecutionClaimParams struct {
ExecutionID string `json:"execution_id"`
TaskID string `json:"task_id"`
RunnerID sql.NullString `json:"runner_id"`
ClaimID string `json:"claim_id"`
}
type ValidateRunnerExecutionClaimRow ¶
type ValidateRunnerExecutionClaimRow struct {
ExecutionAttemptID string `json:"execution_attempt_id"`
ClaimID string `json:"claim_id"`
RunnerID sql.NullString `json:"runner_id"`
Status string `json:"status"`
LeaseExpiresAt sql.NullTime `json:"lease_expires_at"`
TaskID string `json:"task_id"`
AgentSessionID string `json:"agent_session_id"`
UserPromptID string `json:"user_prompt_id"`
}
type WebhookDelivery ¶
type WebhookDelivery struct {
ID string `json:"id"`
DeliveryID string `json:"delivery_id"`
EventType string `json:"event_type"`
EventAction string `json:"event_action"`
Payload string `json:"payload"`
Status string `json:"status"`
Attempts int32 `json:"attempts"`
MaxAttempts int32 `json:"max_attempts"`
Error sql.NullString `json:"error"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
NextAttemptAt sql.NullTime `json:"next_attempt_at"`
ProcessedAt sql.NullTime `json:"processed_at"`
}
Click to show internal directories.
Click to hide internal directories.