sqlc

package
v0.0.14-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminAssetCountsRow

type AdminAssetCountsRow struct {
	Agents               int64 `json:"agents"`
	Skills               int64 `json:"skills"`
	EnvironmentTemplates int64 `json:"environment_templates"`
	Files                int64 `json:"files"`
	Vaults               int64 `json:"vaults"`
	Credentials          int64 `json:"credentials"`
}

type AdminAuditLog

type AdminAuditLog struct {
	ID                pgtype.UUID        `json:"id"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	ProjectID         pgtype.UUID        `json:"project_id"`
	AdminCredentialID string             `json:"admin_credential_id"`
	ActorLabel        string             `json:"actor_label"`
	Action            string             `json:"action"`
	ResourceType      string             `json:"resource_type"`
	ResourceID        string             `json:"resource_id"`
	RequestID         string             `json:"request_id"`
	TraceID           string             `json:"trace_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
}

type AdminRuntimeCursorParams

type AdminRuntimeCursorParams struct {
	ID        pgtype.UUID   `json:"id"`
	TenantIds []pgtype.UUID `json:"tenant_ids"`
}

type AdminRuntimeTargetsParams

type AdminRuntimeTargetsParams struct {
	TenantIds []pgtype.UUID      `json:"tenant_ids"`
	AfterTime pgtype.Timestamptz `json:"after_time"`
	Ascending bool               `json:"ascending"`
	AfterID   pgtype.UUID        `json:"after_id"`
	PageLimit int32              `json:"page_limit"`
}

type AdminRuntimeTargetsRow

type AdminRuntimeTargetsRow struct {
	ID        pgtype.UUID        `json:"id"`
	TenantID  pgtype.UUID        `json:"tenant_id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type AdminSummarySessionsParams

type AdminSummarySessionsParams struct {
	TenantID      pgtype.UUID        `json:"tenant_id"`
	CreatedAfter  pgtype.Timestamptz `json:"created_after"`
	CreatedBefore pgtype.Timestamptz `json:"created_before"`
	AfterID       pgtype.UUID        `json:"after_id"`
}

type AdminSummarySessionsRow

type AdminSummarySessionsRow struct {
	Session       Session     `json:"session"`
	CreationKeyID pgtype.Text `json:"creation_key_id"`
}

type AdvanceAutomationParams added in v0.0.14

type AdvanceAutomationParams struct {
	NextRunAt pgtype.Timestamptz `json:"next_run_at"`
	Completed bool               `json:"completed"`
	ID        pgtype.UUID        `json:"id"`
}

type AdvanceEnvironmentConnectionParams

type AdvanceEnvironmentConnectionParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Revision      int64       `json:"revision"`
}

type AdvanceSkillVersionParams

type AdvanceSkillVersionParams struct {
	MakeDefault bool        `json:"make_default"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	TenantID    pgtype.UUID `json:"tenant_id"`
	ID          pgtype.UUID `json:"id"`
}

type Agent

type Agent struct {
	ID            pgtype.UUID        `json:"id"`
	TenantID      pgtype.UUID        `json:"tenant_id"`
	Metadata      []byte             `json:"metadata"`
	Configuration []byte             `json:"configuration"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
}

type AgentModelExecution

type AgentModelExecution struct {
	AgentID         pgtype.UUID `json:"agent_id"`
	EncryptedConfig []byte      `json:"encrypted_config"`
}

type AppendSessionEventParams

type AppendSessionEventParams struct {
	ID      pgtype.UUID `json:"id"`
	Payload []byte      `json:"payload"`
}

type ApplyFunctionResultParams

type ApplyFunctionResultParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	CallID    string      `json:"call_id"`
}

type ApplySubagentLifecycleParams

type ApplySubagentLifecycleParams struct {
	SessionID     pgtype.UUID `json:"session_id"`
	ID            pgtype.UUID `json:"id"`
	Status        string      `json:"status"`
	ClosedAtMs    pgtype.Int8 `json:"closed_at_ms"`
	LifecycleAtMs int64       `json:"lifecycle_at_ms"`
}

type AttachSessionEnvironmentParams added in v0.0.14

type AttachSessionEnvironmentParams struct {
	ID            pgtype.UUID `json:"id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type AuthenticateEnvironmentExecutorParams

type AuthenticateEnvironmentExecutorParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	TokenSha256   string      `json:"token_sha256"`
}

type AuthorizeRuntimeEnrollmentParams

type AuthorizeRuntimeEnrollmentParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	TokenSha256   string      `json:"token_sha256"`
	TenantID      pgtype.UUID `json:"tenant_id"`
}

type AuthorizeRuntimeEnrollmentRow

type AuthorizeRuntimeEnrollmentRow struct {
	KeyID              pgtype.UUID `json:"key_id"`
	SessionID          pgtype.UUID `json:"session_id"`
	WorkspaceDirectory string      `json:"workspace_directory"`
}

type Automation added in v0.0.14

type Automation struct {
	ID             pgtype.UUID        `json:"id"`
	TenantID       pgtype.UUID        `json:"tenant_id"`
	Type           string             `json:"type"`
	Name           string             `json:"name"`
	Metadata       []byte             `json:"metadata"`
	Status         string             `json:"status"`
	RunAt          pgtype.Timestamptz `json:"run_at"`
	Expression     pgtype.Text        `json:"expression"`
	Timezone       pgtype.Text        `json:"timezone"`
	NextRunAt      pgtype.Timestamptz `json:"next_run_at"`
	Target         []byte             `json:"target"`
	TargetContents []byte             `json:"target_contents"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
}

type AutomationInvocation added in v0.0.14

type AutomationInvocation struct {
	ID                 pgtype.UUID        `json:"id"`
	AutomationID       pgtype.UUID        `json:"automation_id"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	ScheduledAt        pgtype.Timestamptz `json:"scheduled_at"`
	AutomationSnapshot []byte             `json:"automation_snapshot"`
	Status             string             `json:"status"`
	SkipReason         pgtype.Text        `json:"skip_reason"`
	SessionID          pgtype.UUID        `json:"session_id"`
	ErrorCode          pgtype.Text        `json:"error_code"`
	ErrorMessage       pgtype.Text        `json:"error_message"`
	Delivery           []byte             `json:"delivery"`
	AttemptedAt        pgtype.Timestamptz `json:"attempted_at"`
}

type AutomationQueueRow added in v0.0.14

type AutomationQueueRow struct {
	Pending bool `json:"pending"`
	Queued  bool `json:"queued"`
}

type BeginTurnArtifactCaptureParams

type BeginTurnArtifactCaptureParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type BindHostedSessionDeviceParams added in v0.0.10

type BindHostedSessionDeviceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
	ID_2     pgtype.UUID `json:"id_2"`
}

type BindSessionDeviceParams

type BindSessionDeviceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
	ID_2     pgtype.UUID `json:"id_2"`
}

type CheckEnvironmentInputGateParams

type CheckEnvironmentInputGateParams struct {
	Batch          []byte      `json:"batch"`
	SessionID      pgtype.UUID `json:"session_id"`
	IdempotencyKey string      `json:"idempotency_key"`
}

type CheckEnvironmentInputGateRow

type CheckEnvironmentInputGateRow struct {
	Matches bool `json:"matches"`
	Blocked bool `json:"blocked"`
}

type ClearRuntimeWakeParams

type ClearRuntimeWakeParams struct {
	ID                pgtype.UUID        `json:"id"`
	ComputeActivityAt pgtype.Timestamptz `json:"compute_activity_at"`
}

type ConnectRuntimeNodeParams

type ConnectRuntimeNodeParams struct {
	ID           pgtype.UUID `json:"id"`
	ConnectionID pgtype.UUID `json:"connection_id"`
	OwnerEpoch   int64       `json:"owner_epoch"`
}

type ConsumeRuntimeEnrollmentParams

type ConsumeRuntimeEnrollmentParams struct {
	TokenSha256 string      `json:"token_sha256"`
	NodeID      pgtype.UUID `json:"node_id"`
}

type CoreExecutionSnapshotParams

type CoreExecutionSnapshotParams struct {
	ConnectedDeviceIds []pgtype.UUID      `json:"connected_device_ids"`
	ObservedAt         pgtype.Timestamptz `json:"observed_at"`
}

type CoreExecutionSnapshotRow

type CoreExecutionSnapshotRow struct {
	QueuedTurns         int64   `json:"queued_turns"`
	WaitingForDaemon    int64   `json:"waiting_for_daemon"`
	InProgressTurns     int64   `json:"in_progress_turns"`
	OldestQueuedSeconds float64 `json:"oldest_queued_seconds"`
}

type CoreInterruptedTurnsParams

type CoreInterruptedTurnsParams struct {
	RangeStart pgtype.Timestamptz `json:"range_start"`
	RangeEnd   pgtype.Timestamptz `json:"range_end"`
}

type CoreQueueWaitBucketsParams

type CoreQueueWaitBucketsParams struct {
	RangeStart        pgtype.Timestamptz `json:"range_start"`
	ResolutionSeconds int32              `json:"resolution_seconds"`
	RangeEnd          pgtype.Timestamptz `json:"range_end"`
}

type CoreQueueWaitBucketsRow

type CoreQueueWaitBucketsRow struct {
	BucketNumber int32   `json:"bucket_number"`
	Samples      int64   `json:"samples"`
	P95Ms        float64 `json:"p95_ms"`
}

type CoreQueueWaitSummaryParams

type CoreQueueWaitSummaryParams struct {
	RangeStart pgtype.Timestamptz `json:"range_start"`
	RangeEnd   pgtype.Timestamptz `json:"range_end"`
}

type CoreQueueWaitSummaryRow

type CoreQueueWaitSummaryRow struct {
	Samples int64   `json:"samples"`
	P50Ms   float64 `json:"p50_ms"`
	P95Ms   float64 `json:"p95_ms"`
}

type CountAddressBindingsRow

type CountAddressBindingsRow struct {
	Nodes               int64 `json:"nodes"`
	NodesOnOtherAddress int64 `json:"nodes_on_other_address"`
	SelfHostedExecutors int64 `json:"self_hosted_executors"`
}

type CountRuntimeDeploymentResourcesRow

type CountRuntimeDeploymentResourcesRow struct {
	Allocations int64 `json:"allocations"`
	Pending     int64 `json:"pending"`
}

type CountTurnEventParams

type CountTurnEventParams struct {
	SessionID    pgtype.UUID `json:"session_id"`
	ID           pgtype.UUID `json:"id"`
	EventCount   int32       `json:"event_count"`
	PayloadBytes int64       `json:"payload_bytes"`
}

type CreateAgentParams

type CreateAgentParams struct {
	ID            pgtype.UUID `json:"id"`
	TenantID      pgtype.UUID `json:"tenant_id"`
	Metadata      []byte      `json:"metadata"`
	Configuration []byte      `json:"configuration"`
}

type CreateDeviceParams

type CreateDeviceParams struct {
	ID             pgtype.UUID `json:"id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	Name           string      `json:"name"`
	CredentialHash pgtype.Text `json:"credential_hash"`
}

type CreateEnvironmentDeviceParams

type CreateEnvironmentDeviceParams struct {
	ID             pgtype.UUID `json:"id"`
	Name           string      `json:"name"`
	CredentialHash pgtype.Text `json:"credential_hash"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	EnvironmentID  pgtype.UUID `json:"environment_id"`
}

type CreateEnvironmentFileWriteParams

type CreateEnvironmentFileWriteParams struct {
	ID            pgtype.UUID `json:"id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	DeviceID      pgtype.UUID `json:"device_id"`
	RequestSha256 string      `json:"request_sha256"`
	AuditSource   []byte      `json:"audit_source"`
}

type CreateEnvironmentInputReservationParams

type CreateEnvironmentInputReservationParams struct {
	ID             pgtype.UUID `json:"id"`
	SessionID      pgtype.UUID `json:"session_id"`
	IdempotencyKey string      `json:"idempotency_key"`
	Batch          []byte      `json:"batch"`
	IsInitial      bool        `json:"is_initial"`
	Settings       []byte      `json:"settings"`
}

type CreateEnvironmentParams

type CreateEnvironmentParams struct {
	ID             pgtype.UUID `json:"id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	Configuration  []byte      `json:"configuration"`
	IdempotencyKey pgtype.Text `json:"idempotency_key"`
	Prepared       bool        `json:"prepared"`
	RequestHash    pgtype.Text `json:"request_hash"`
	CreatorKind    pgtype.Text `json:"creator_kind"`
	CreatorID      pgtype.Text `json:"creator_id"`
}

type CreateEnvironmentSetupParams

type CreateEnvironmentSetupParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Contents      []byte      `json:"contents"`
}

type CreateEnvironmentTemplateParams

type CreateEnvironmentTemplateParams struct {
	ID                    pgtype.UUID `json:"id"`
	TenantID              pgtype.UUID `json:"tenant_id"`
	Name                  pgtype.Text `json:"name"`
	NetworkAccess         string      `json:"network_access"`
	Files                 []byte      `json:"files"`
	FileContents          []byte      `json:"file_contents"`
	Packages              []byte      `json:"packages"`
	EnvContents           []byte      `json:"env_contents"`
	SetupContents         []byte      `json:"setup_contents"`
	Skills                []byte      `json:"skills"`
	SkillContents         []byte      `json:"skill_contents"`
	NetworkAllowedDomains []string    `json:"network_allowed_domains"`
	Plugins               []byte      `json:"plugins"`
	PluginContents        []byte      `json:"plugin_contents"`
	CapabilityDirectories []string    `json:"capability_directories"`
}

type CreateEnvironmentTemplateRow

type CreateEnvironmentTemplateRow struct {
	ID                    pgtype.UUID        `json:"id"`
	TenantID              pgtype.UUID        `json:"tenant_id"`
	Name                  pgtype.Text        `json:"name"`
	NetworkAccess         string             `json:"network_access"`
	NetworkAllowedDomains []string           `json:"network_allowed_domains"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	Files                 []byte             `json:"files"`
	Packages              []byte             `json:"packages"`
	Skills                []byte             `json:"skills"`
	Plugins               []byte             `json:"plugins"`
	CapabilityDirectories []string           `json:"capability_directories"`
}

type CreateFunctionCallParams

type CreateFunctionCallParams struct {
	SessionID      pgtype.UUID `json:"session_id"`
	TurnID         pgtype.UUID `json:"turn_id"`
	CallID         string      `json:"call_id"`
	ExecutorCallID string      `json:"executor_call_id"`
	Name           string      `json:"name"`
	Arguments      []byte      `json:"arguments"`
}

type CreateInitialEnvironmentFileParams

type CreateInitialEnvironmentFileParams struct {
	ID            pgtype.UUID `json:"id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Position      int32       `json:"position"`
	Path          string      `json:"path"`
	SizeBytes     int64       `json:"size_bytes"`
	Contents      []byte      `json:"contents"`
}

type CreateOAuthCredentialParams

type CreateOAuthCredentialParams struct {
	ID              pgtype.UUID `json:"id"`
	Name            string      `json:"name"`
	McpServerUrl    string      `json:"mcp_server_url"`
	TokenCiphertext []byte      `json:"token_ciphertext"`
	OauthMetadata   []byte      `json:"oauth_metadata"`
	Metadata        []byte      `json:"metadata"`
	TenantID        pgtype.UUID `json:"tenant_id"`
	VaultID         pgtype.UUID `json:"vault_id"`
}

type CreateOAuthCredentialRow

type CreateOAuthCredentialRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type CreateProjectAPIKeyParams

type CreateProjectAPIKeyParams struct {
	ID          pgtype.UUID `json:"id"`
	Name        string      `json:"name"`
	Prefix      string      `json:"prefix"`
	TokenSha256 string      `json:"token_sha256"`
	ProjectID   pgtype.UUID `json:"project_id"`
}

type CreateProjectParams

type CreateProjectParams struct {
	ID        pgtype.UUID `json:"id"`
	Name      string      `json:"name"`
	TenantID  pgtype.UUID `json:"tenant_id"`
	SubjectID string      `json:"subject_id"`
}

type CreateRuntimeAllocationParams

type CreateRuntimeAllocationParams struct {
	ID                   pgtype.UUID `json:"id"`
	EnvironmentID        pgtype.UUID `json:"environment_id"`
	DeviceID             pgtype.UUID `json:"device_id"`
	ProviderKey          pgtype.UUID `json:"provider_key"`
	NodeID               pgtype.UUID `json:"node_id"`
	DeploymentGeneration pgtype.Int8 `json:"deployment_generation"`
}

type CreateRuntimeEnrollmentParams

type CreateRuntimeEnrollmentParams struct {
	ID             pgtype.UUID `json:"id"`
	TokenSha256    string      `json:"token_sha256"`
	InstallationID pgtype.UUID `json:"installation_id"`
	MaxActive      pgtype.Int4 `json:"max_active"`
	MaxRetained    pgtype.Int4 `json:"max_retained"`
}

type CreateRuntimePlacementParams

type CreateRuntimePlacementParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	NodeID        pgtype.UUID `json:"node_id"`
	Generation    int64       `json:"generation"`
}

type CreateSessionParams

type CreateSessionParams struct {
	ID                  pgtype.UUID `json:"id"`
	TenantID            pgtype.UUID `json:"tenant_id"`
	Engine              string      `json:"engine"`
	Metadata            []byte      `json:"metadata"`
	IdempotencyKey      string      `json:"idempotency_key"`
	RequestHash         string      `json:"request_hash"`
	Configuration       []byte      `json:"configuration"`
	CreationRequestHash pgtype.Text `json:"creation_request_hash"`
	CreatorKind         pgtype.Text `json:"creator_kind"`
	CreatorID           pgtype.Text `json:"creator_id"`
}

type CreateSkillParams

type CreateSkillParams struct {
	ID          pgtype.UUID `json:"id"`
	TenantID    pgtype.UUID `json:"tenant_id"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
}

type CreateSkillVersionParams

type CreateSkillVersionParams struct {
	ID          pgtype.UUID `json:"id"`
	TenantID    pgtype.UUID `json:"tenant_id"`
	SkillID     pgtype.UUID `json:"skill_id"`
	Version     int64       `json:"version"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	Contents    []byte      `json:"contents"`
}

type CreateSkillVersionRow

type CreateSkillVersionRow struct {
	ID          pgtype.UUID        `json:"id"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SkillID     pgtype.UUID        `json:"skill_id"`
	Version     int64              `json:"version"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
}

type CreateSourceFileParams

type CreateSourceFileParams struct {
	ID        pgtype.UUID   `json:"id"`
	TenantID  pgtype.UUID   `json:"tenant_id"`
	Filename  string        `json:"filename"`
	Purpose   string        `json:"purpose"`
	BodyOid   pgtype.Uint32 `json:"body_oid"`
	SizeBytes int64         `json:"size_bytes"`
	Sha256    string        `json:"sha256"`
}

type CreateStaticCredentialParams

type CreateStaticCredentialParams struct {
	ID              pgtype.UUID `json:"id"`
	Name            string      `json:"name"`
	McpServerUrl    string      `json:"mcp_server_url"`
	TokenCiphertext []byte      `json:"token_ciphertext"`
	Metadata        []byte      `json:"metadata"`
	TenantID        pgtype.UUID `json:"tenant_id"`
	VaultID         pgtype.UUID `json:"vault_id"`
}

type CreateStaticCredentialRow

type CreateStaticCredentialRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type CreateTurnInputParams

type CreateTurnInputParams struct {
	SessionID      pgtype.UUID `json:"session_id"`
	TurnID         pgtype.UUID `json:"turn_id"`
	IdempotencyKey string      `json:"idempotency_key"`
	Kind           string      `json:"kind"`
	Payload        []byte      `json:"payload"`
	BatchPosition  int32       `json:"batch_position"`
}

type CreateTurnParams

type CreateTurnParams struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_id"`
	Settings  []byte      `json:"settings"`
}

type CreateVaultParams

type CreateVaultParams struct {
	ID       pgtype.UUID `json:"id"`
	TenantID pgtype.UUID `json:"tenant_id"`
	Name     pgtype.Text `json:"name"`
	Metadata []byte      `json:"metadata"`
}

type DBTX

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

type DeleteAgentParams

type DeleteAgentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeleteAutomationParams added in v0.0.14

type DeleteAutomationParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeleteCredentialParams

type DeleteCredentialParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	VaultID  pgtype.UUID `json:"vault_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeleteEnvironmentTemplateParams

type DeleteEnvironmentTemplateParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeleteExpiredWriteOperationsParams

type DeleteExpiredWriteOperationsParams struct {
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	Limit     int32              `json:"limit"`
}

type DeleteNodeGenerationStatusParams

type DeleteNodeGenerationStatusParams struct {
	NodeID     pgtype.UUID `json:"node_id"`
	Generation int64       `json:"generation"`
}

type DeleteSessionArtifactParams

type DeleteSessionArtifactParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type DeleteSkillParams

type DeleteSkillParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeleteSkillVersionParams

type DeleteSkillVersionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	SkillID  pgtype.UUID `json:"skill_id"`
	Version  int64       `json:"version"`
}

type DeleteSkillVersionRow

type DeleteSkillVersionRow struct {
	ID          pgtype.UUID        `json:"id"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SkillID     pgtype.UUID        `json:"skill_id"`
	Version     int64              `json:"version"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
}

type DeleteSourceFileParams

type DeleteSourceFileParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeleteUnchangedTurnArtifactsParams

type DeleteUnchangedTurnArtifactsParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
}

type DeleteUnpublishedTurnArtifactsParams

type DeleteUnpublishedTurnArtifactsParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
}

type DeleteVaultParams

type DeleteVaultParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type DeliverableInvocationsRow added in v0.0.14

type DeliverableInvocationsRow struct {
	ID             pgtype.UUID `json:"id"`
	AutomationID   pgtype.UUID `json:"automation_id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	TargetType     string      `json:"target_type"`
	Delivery       []byte      `json:"delivery"`
	SubjectKind    string      `json:"subject_kind"`
	SubjectID      string      `json:"subject_id"`
	OrganizationID string      `json:"organization_id"`
	ProjectID      string      `json:"project_id"`
}

type DeploymentModelProvider

type DeploymentModelProvider struct {
	Harness         string             `json:"harness"`
	Protocol        string             `json:"protocol"`
	BaseUrl         string             `json:"base_url"`
	ContextWindow   int32              `json:"context_window"`
	MaxOutputTokens int32              `json:"max_output_tokens"`
	EncryptedApiKey []byte             `json:"encrypted_api_key"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Revision        pgtype.UUID        `json:"revision"`
	LastUsedAt      pgtype.Timestamptz `json:"last_used_at"`
	LastErrorCode   pgtype.Text        `json:"last_error_code"`
	LastErrorAt     pgtype.Timestamptz `json:"last_error_at"`
	RecoveryPending bool               `json:"recovery_pending"`
	Model           string             `json:"model"`
	HarnessConfig   []byte             `json:"harness_config"`
}

type Device

type Device struct {
	ID                  pgtype.UUID        `json:"id"`
	TenantID            pgtype.UUID        `json:"tenant_id"`
	Name                string             `json:"name"`
	CredentialHash      pgtype.Text        `json:"credential_hash"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	LastSeenAt          pgtype.Timestamptz `json:"last_seen_at"`
	RevokedAt           pgtype.Timestamptz `json:"revoked_at"`
	EnvironmentID       pgtype.UUID        `json:"environment_id"`
	ExecutorKeyID       pgtype.UUID        `json:"executor_key_id"`
	ArchiveCancelTurnID pgtype.UUID        `json:"archive_cancel_turn_id"`
	SupportedAgentKinds []byte             `json:"supported_agent_kinds"`
}

type DisconnectRuntimeNodeParams

type DisconnectRuntimeNodeParams struct {
	ID           pgtype.UUID `json:"id"`
	ConnectionID pgtype.UUID `json:"connection_id"`
	OwnerEpoch   int64       `json:"owner_epoch"`
}

type DueAutomationIDsParams added in v0.0.14

type DueAutomationIDsParams struct {
	Now       pgtype.Timestamptz `json:"now"`
	PageLimit int32              `json:"page_limit"`
}

type DueAutomationIDsRow added in v0.0.14

type DueAutomationIDsRow struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type EnrollRuntimeDeviceParams

type EnrollRuntimeDeviceParams struct {
	ID            pgtype.UUID `json:"id"`
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	ExecutorKeyID pgtype.UUID `json:"executor_key_id"`
}

type EnrollRuntimeDeviceRow

type EnrollRuntimeDeviceRow struct {
	ID            pgtype.UUID `json:"id"`
	Name          string      `json:"name"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type EnsureProjectScopeParams

type EnsureProjectScopeParams struct {
	TenantID       pgtype.UUID `json:"tenant_id"`
	OrganizationID string      `json:"organization_id"`
	ProjectID      string      `json:"project_id"`
}

type Environment

type Environment struct {
	ID                  pgtype.UUID        `json:"id"`
	Status              string             `json:"status"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	FailureReason       pgtype.Text        `json:"failure_reason"`
	FailedAt            pgtype.Timestamptz `json:"failed_at"`
	FailureDetail       []byte             `json:"failure_detail"`
	Initialization      string             `json:"initialization"`
	InitializationSteps []byte             `json:"initialization_steps"`
	TenantID            pgtype.UUID        `json:"tenant_id"`
	Configuration       []byte             `json:"configuration"`
	SessionOwned        bool               `json:"session_owned"`
	IdempotencyKey      pgtype.Text        `json:"idempotency_key"`
	RequestHash         pgtype.Text        `json:"request_hash"`
	CreatorKind         pgtype.Text        `json:"creator_kind"`
	CreatorID           pgtype.Text        `json:"creator_id"`
}

type EnvironmentConnection

type EnvironmentConnection struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Generation    pgtype.UUID `json:"generation"`
	Revision      int64       `json:"revision"`
}

type EnvironmentExecutorCredential

type EnvironmentExecutorCredential struct {
	EnvironmentID pgtype.UUID        `json:"environment_id"`
	TokenSha256   string             `json:"token_sha256"`
	IssuedAt      pgtype.Timestamptz `json:"issued_at"`
	RevokedAt     pgtype.Timestamptz `json:"revoked_at"`
	KeyID         pgtype.UUID        `json:"key_id"`
	TenantID      pgtype.UUID        `json:"tenant_id"`
	SubjectKind   pgtype.Text        `json:"subject_kind"`
	SubjectID     pgtype.Text        `json:"subject_id"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
}

type EnvironmentFileWrite

type EnvironmentFileWrite struct {
	ID            pgtype.UUID        `json:"id"`
	EnvironmentID pgtype.UUID        `json:"environment_id"`
	DeviceID      pgtype.UUID        `json:"device_id"`
	RequestSha256 string             `json:"request_sha256"`
	State         string             `json:"state"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	SettledAt     pgtype.Timestamptz `json:"settled_at"`
	AuditSource   []byte             `json:"audit_source"`
}

type EnvironmentInputReservation

type EnvironmentInputReservation struct {
	ID             pgtype.UUID        `json:"id"`
	SessionID      pgtype.UUID        `json:"session_id"`
	IdempotencyKey string             `json:"idempotency_key"`
	Batch          []byte             `json:"batch"`
	State          string             `json:"state"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	Deadline       pgtype.Timestamptz `json:"deadline"`
	SettledAt      pgtype.Timestamptz `json:"settled_at"`
	IsInitial      bool               `json:"is_initial"`
	FailureCode    pgtype.Text        `json:"failure_code"`
	Settings       []byte             `json:"settings"`
}

type EnvironmentLiveness added in v0.0.14

type EnvironmentLiveness struct {
	ID     pgtype.UUID `json:"id"`
	Ended  pgtype.Bool `json:"ended"`
	Active pgtype.Bool `json:"active"`
}

type EnvironmentSetup

type EnvironmentSetup struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Contents      []byte      `json:"contents"`
}

type EnvironmentTemplate

type EnvironmentTemplate struct {
	ID                    pgtype.UUID        `json:"id"`
	TenantID              pgtype.UUID        `json:"tenant_id"`
	Name                  pgtype.Text        `json:"name"`
	NetworkAccess         string             `json:"network_access"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	Files                 []byte             `json:"files"`
	FileContents          []byte             `json:"file_contents"`
	Packages              []byte             `json:"packages"`
	EnvContents           []byte             `json:"env_contents"`
	SetupContents         []byte             `json:"setup_contents"`
	Skills                []byte             `json:"skills"`
	SkillContents         []byte             `json:"skill_contents"`
	NetworkAllowedDomains []string           `json:"network_allowed_domains"`
	Plugins               []byte             `json:"plugins"`
	PluginContents        []byte             `json:"plugin_contents"`
	CapabilityDirectories []string           `json:"capability_directories"`
}

type EnvironmentWorkspace added in v0.0.10

type EnvironmentWorkspace struct {
	ObjectID        pgtype.UUID `json:"object_id"`
	EnvironmentID   pgtype.UUID `json:"environment_id"`
	ConfigurationID pgtype.UUID `json:"configuration_id"`
	State           string      `json:"state"`
	Attachment      []byte      `json:"attachment"`
	CapacityMib     int64       `json:"capacity_mib"`
}

type ExecutionProjectScope

type ExecutionProjectScope struct {
	TenantID       pgtype.UUID `json:"tenant_id"`
	OrganizationID string      `json:"organization_id"`
	ProjectID      string      `json:"project_id"`
}

type ExecutorProjectScopeExistsParams

type ExecutorProjectScopeExistsParams struct {
	TenantID       pgtype.UUID `json:"tenant_id"`
	OrganizationID string      `json:"organization_id"`
	ProjectID      string      `json:"project_id"`
}

type ExpireEnvironmentInputReservationParams

type ExpireEnvironmentInputReservationParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type ExpireEnvironmentParams added in v0.0.14

type ExpireEnvironmentParams struct {
	ID       pgtype.UUID `json:"id"`
	TenantID pgtype.UUID `json:"tenant_id"`
}

type ExpireRuntimeCheckpointParams added in v0.0.12

type ExpireRuntimeCheckpointParams struct {
	ID              pgtype.UUID `json:"id"`
	ComputeRevision int64       `json:"compute_revision"`
}

type FailEnvironmentInputParams

type FailEnvironmentInputParams struct {
	FailureCode pgtype.Text `json:"failure_code"`
	SessionID   pgtype.UUID `json:"session_id"`
	ID          pgtype.UUID `json:"id"`
}

type FindEnvironmentCreationParams added in v0.0.14

type FindEnvironmentCreationParams struct {
	TenantID       pgtype.UUID `json:"tenant_id"`
	CreatorKind    pgtype.Text `json:"creator_kind"`
	CreatorID      pgtype.Text `json:"creator_id"`
	IdempotencyKey pgtype.Text `json:"idempotency_key"`
}

type FindEnvironmentCreationRow added in v0.0.14

type FindEnvironmentCreationRow struct {
	ID             pgtype.UUID `json:"id"`
	IdempotencyKey pgtype.Text `json:"idempotency_key"`
	RequestHash    pgtype.Text `json:"request_hash"`
	CreatorKind    pgtype.Text `json:"creator_kind"`
	CreatorID      pgtype.Text `json:"creator_id"`
}

type FindEnvironmentInputReservationParams

type FindEnvironmentInputReservationParams struct {
	Batch          []byte      `json:"batch"`
	SessionID      pgtype.UUID `json:"session_id"`
	IdempotencyKey string      `json:"idempotency_key"`
}

type FindEnvironmentInputReservationRow

type FindEnvironmentInputReservationRow struct {
	EnvironmentInputReservation EnvironmentInputReservation `json:"environment_input_reservation"`
	Matches                     bool                        `json:"matches"`
}

type FindFunctionCallTurnParams added in v0.0.13

type FindFunctionCallTurnParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	CallID    string      `json:"call_id"`
}

type FindFunctionCallTurnRow added in v0.0.13

type FindFunctionCallTurnRow struct {
	TurnID         pgtype.UUID `json:"turn_id"`
	ExecutorCallID string      `json:"executor_call_id"`
}

type FindInputBatchParams

type FindInputBatchParams struct {
	SessionID      pgtype.UUID `json:"session_id"`
	IdempotencyKey string      `json:"idempotency_key"`
	Batch          []byte      `json:"batch"`
}

type FindInputBatchRow

type FindInputBatchRow struct {
	Sequence int64       `json:"sequence"`
	TurnID   pgtype.UUID `json:"turn_id"`
	Matches  bool        `json:"matches"`
}

type FindMCPCredentialsParams

type FindMCPCredentialsParams struct {
	TenantID     pgtype.UUID   `json:"tenant_id"`
	VaultIds     []pgtype.UUID `json:"vault_ids"`
	CredentialID pgtype.UUID   `json:"credential_id"`
	McpServerUrl string        `json:"mcp_server_url"`
}

type FindMCPCredentialsRow

type FindMCPCredentialsRow struct {
	ID           pgtype.UUID        `json:"id"`
	VaultID      pgtype.UUID        `json:"vault_id"`
	Name         string             `json:"name"`
	AuthType     string             `json:"auth_type"`
	McpServerUrl string             `json:"mcp_server_url"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	UpdatedAt    pgtype.Timestamptz `json:"updated_at"`
}

type FindSessionCreationParams

type FindSessionCreationParams struct {
	TenantID       pgtype.UUID `json:"tenant_id"`
	IdempotencyKey string      `json:"idempotency_key"`
}

type FinishSessionItemsParams

type FinishSessionItemsParams struct {
	Status    string        `json:"status"`
	SessionID pgtype.UUID   `json:"session_id"`
	Ids       []pgtype.UUID `json:"ids"`
}

type FunctionCall

type FunctionCall struct {
	SessionID      pgtype.UUID        `json:"session_id"`
	TurnID         pgtype.UUID        `json:"turn_id"`
	CallID         string             `json:"call_id"`
	ExecutorCallID string             `json:"executor_call_id"`
	Name           string             `json:"name"`
	Arguments      []byte             `json:"arguments"`
	Result         []byte             `json:"result"`
	Applied        bool               `json:"applied"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	Withdrawn      bool               `json:"withdrawn"`
}

type FunctionItemResultParams

type FunctionItemResultParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	CallID    string      `json:"call_id"`
}

type GetAgentParams

type GetAgentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetAgentWithModelExecutionParams

type GetAgentWithModelExecutionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	AgentID  pgtype.UUID `json:"agent_id"`
}

type GetAgentWithModelExecutionRow

type GetAgentWithModelExecutionRow struct {
	ID              pgtype.UUID        `json:"id"`
	TenantID        pgtype.UUID        `json:"tenant_id"`
	Metadata        []byte             `json:"metadata"`
	Configuration   []byte             `json:"configuration"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	EncryptedConfig []byte             `json:"encrypted_config"`
}

type GetArchivedCancellationReceiptParams

type GetArchivedCancellationReceiptParams struct {
	DeviceID       pgtype.UUID `json:"device_id"`
	CredentialHash pgtype.Text `json:"credential_hash"`
	RunIds         []string    `json:"run_ids"`
	LimitSeconds   int32       `json:"limit_seconds"`
}

type GetArchivedCancellationReceiptRow

type GetArchivedCancellationReceiptRow struct {
	ID                pgtype.UUID        `json:"id"`
	CancelRequestedAt pgtype.Timestamptz `json:"cancel_requested_at"`
}

type GetAttachedVaultIDsParams

type GetAttachedVaultIDsParams struct {
	TenantID pgtype.UUID   `json:"tenant_id"`
	VaultIds []pgtype.UUID `json:"vault_ids"`
}

type GetAutomationParams added in v0.0.14

type GetAutomationParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetAutomationRow added in v0.0.14

type GetAutomationRow struct {
	ID         pgtype.UUID        `json:"id"`
	TenantID   pgtype.UUID        `json:"tenant_id"`
	Type       string             `json:"type"`
	Name       string             `json:"name"`
	Metadata   []byte             `json:"metadata"`
	Status     string             `json:"status"`
	RunAt      pgtype.Timestamptz `json:"run_at"`
	Expression pgtype.Text        `json:"expression"`
	Timezone   pgtype.Text        `json:"timezone"`
	NextRunAt  pgtype.Timestamptz `json:"next_run_at"`
	Target     []byte             `json:"target"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
}

type GetChildItemParams

type GetChildItemParams struct {
	SessionID  pgtype.UUID `json:"session_id"`
	SubagentID pgtype.UUID `json:"subagent_id"`
	ID         pgtype.UUID `json:"id"`
	Candidate  []byte      `json:"candidate"`
}

type GetChildItemRow

type GetChildItemRow struct {
	ID            pgtype.UUID        `json:"id"`
	SessionID     pgtype.UUID        `json:"session_id"`
	SubagentID    pgtype.UUID        `json:"subagent_id"`
	TurnID        pgtype.UUID        `json:"turn_id"`
	Position      int32              `json:"position"`
	OutputIndex   pgtype.Int4        `json:"output_index"`
	Payload       []byte             `json:"payload"`
	TurnCreatedAt pgtype.Timestamptz `json:"turn_created_at"`
	PayloadEqual  bool               `json:"payload_equal"`
}

type GetChildTurnParams

type GetChildTurnParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type GetCredentialParams

type GetCredentialParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	VaultID  pgtype.UUID `json:"vault_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetCredentialRow

type GetCredentialRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type GetDeploymentModelProviderSecretRow

type GetDeploymentModelProviderSecretRow struct {
	Protocol        string      `json:"protocol"`
	BaseUrl         string      `json:"base_url"`
	ContextWindow   int32       `json:"context_window"`
	MaxOutputTokens int32       `json:"max_output_tokens"`
	Model           string      `json:"model"`
	HarnessConfig   []byte      `json:"harness_config"`
	EncryptedApiKey []byte      `json:"encrypted_api_key"`
	Revision        pgtype.UUID `json:"revision"`
}

type GetDeviceCredentialRow

type GetDeviceCredentialRow struct {
	ID                  pgtype.UUID `json:"id"`
	Name                string      `json:"name"`
	CredentialHash      string      `json:"credential_hash"`
	RuntimeNodeID       string      `json:"runtime_node_id"`
	RuntimeAllocationID string      `json:"runtime_allocation_id"`
}

type GetDeviceParams

type GetDeviceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetDeviceRow

type GetDeviceRow struct {
	ID   pgtype.UUID `json:"id"`
	Name string      `json:"name"`
}

type GetEnvironmentAttachmentParams added in v0.0.14

type GetEnvironmentAttachmentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetEnvironmentAttachmentRow added in v0.0.14

type GetEnvironmentAttachmentRow struct {
	SessionOwned      bool        `json:"session_owned"`
	AttachedSessionID pgtype.UUID `json:"attached_session_id"`
}

type GetEnvironmentDeviceParams added in v0.0.14

type GetEnvironmentDeviceParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type GetEnvironmentDeviceRow added in v0.0.14

type GetEnvironmentDeviceRow struct {
	ID            pgtype.UUID `json:"id"`
	Name          string      `json:"name"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type GetEnvironmentExecutorConnectionParams

type GetEnvironmentExecutorConnectionParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	TenantID      pgtype.UUID `json:"tenant_id"`
}

type GetEnvironmentExecutorConnectionRow

type GetEnvironmentExecutorConnectionRow struct {
	DeviceID          pgtype.UUID        `json:"device_id"`
	ExecutorKeyID     pgtype.UUID        `json:"executor_key_id"`
	EnrolledAt        pgtype.Timestamptz `json:"enrolled_at"`
	LastSeenAt        pgtype.Timestamptz `json:"last_seen_at"`
	CredentialHash    pgtype.Text        `json:"credential_hash"`
	EnvironmentStatus string             `json:"environment_status"`
}

type GetEnvironmentFileWriteParams

type GetEnvironmentFileWriteParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	ID            pgtype.UUID `json:"id"`
}

type GetEnvironmentFileWriteRow

type GetEnvironmentFileWriteRow struct {
	EnvironmentFileWrite EnvironmentFileWrite `json:"environment_file_write"`
}

type GetEnvironmentInputActivityRow

type GetEnvironmentInputActivityRow struct {
	State            string             `json:"state"`
	IsInitial        bool               `json:"is_initial"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	SettledAt        pgtype.Timestamptz `json:"settled_at"`
	FailureCode      pgtype.Text        `json:"failure_code"`
	EnvironmentID    pgtype.UUID        `json:"environment_id"`
	ConnectionStatus string             `json:"connection_status"`
	EnvironmentType  string             `json:"environment_type"`
}

type GetEnvironmentInputReservationParams

type GetEnvironmentInputReservationParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type GetEnvironmentParams

type GetEnvironmentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetEnvironmentRow

type GetEnvironmentRow struct {
	Environment       Environment `json:"environment"`
	AttachedSessionID pgtype.UUID `json:"attached_session_id"`
	ExternalWorkspace bool        `json:"external_workspace"`
}

type GetEnvironmentSetupParams

type GetEnvironmentSetupParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetEnvironmentSetupRow added in v0.0.14

type GetEnvironmentSetupRow struct {
	Contents []byte `json:"contents"`
	Ended    bool   `json:"ended"`
}

type GetEnvironmentTemplateParams

type GetEnvironmentTemplateParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetEnvironmentTemplateRow

type GetEnvironmentTemplateRow struct {
	ID                    pgtype.UUID        `json:"id"`
	TenantID              pgtype.UUID        `json:"tenant_id"`
	Name                  pgtype.Text        `json:"name"`
	NetworkAccess         string             `json:"network_access"`
	NetworkAllowedDomains []string           `json:"network_allowed_domains"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	Files                 []byte             `json:"files"`
	Packages              []byte             `json:"packages"`
	Skills                []byte             `json:"skills"`
	Plugins               []byte             `json:"plugins"`
	CapabilityDirectories []string           `json:"capability_directories"`
}

type GetEnvironmentWorkspaceParams added in v0.0.10

type GetEnvironmentWorkspaceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetEnvironmentWorkspaceRow added in v0.0.10

type GetEnvironmentWorkspaceRow struct {
	EnvironmentWorkspace     EnvironmentWorkspace     `json:"environment_workspace"`
	WorkspaceFsConfiguration WorkspaceFsConfiguration `json:"workspace_fs_configuration"`
	TenantID                 pgtype.UUID              `json:"tenant_id"`
}

type GetExecutorCredentialForPrincipalParams

type GetExecutorCredentialForPrincipalParams struct {
	KeyID          pgtype.UUID `json:"key_id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	SubjectKind    pgtype.Text `json:"subject_kind"`
	SubjectID      pgtype.Text `json:"subject_id"`
	OrganizationID string      `json:"organization_id"`
	ProjectID      string      `json:"project_id"`
}

type GetFunctionCallParams

type GetFunctionCallParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	CallID    string      `json:"call_id"`
}

type GetInitialEnvironmentFileParams

type GetInitialEnvironmentFileParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Position      int32       `json:"position"`
}

type GetInitialEnvironmentFileRow added in v0.0.14

type GetInitialEnvironmentFileRow struct {
	ID            pgtype.UUID `json:"id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Position      int32       `json:"position"`
	Path          string      `json:"path"`
	SizeBytes     int64       `json:"size_bytes"`
	Contents      []byte      `json:"contents"`
	Ended         bool        `json:"ended"`
}

type GetInvocationParams added in v0.0.14

type GetInvocationParams struct {
	TenantID     pgtype.UUID `json:"tenant_id"`
	AutomationID pgtype.UUID `json:"automation_id"`
	ID           pgtype.UUID `json:"id"`
}

type GetInvocationRow added in v0.0.14

type GetInvocationRow struct {
	ID                 pgtype.UUID        `json:"id"`
	AutomationID       pgtype.UUID        `json:"automation_id"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	ScheduledAt        pgtype.Timestamptz `json:"scheduled_at"`
	AutomationSnapshot []byte             `json:"automation_snapshot"`
	Status             string             `json:"status"`
	SkipReason         pgtype.Text        `json:"skip_reason"`
	SessionID          pgtype.UUID        `json:"session_id"`
	ErrorCode          pgtype.Text        `json:"error_code"`
	ErrorMessage       pgtype.Text        `json:"error_message"`
}

type GetLatestRuntimeAllocationParams added in v0.0.10

type GetLatestRuntimeAllocationParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type GetLatestRuntimeAllocationRow added in v0.0.10

type GetLatestRuntimeAllocationRow struct {
	RuntimeAllocation RuntimeAllocation `json:"runtime_allocation"`
	AttachedSessionID pgtype.UUID       `json:"attached_session_id"`
	TenantID          pgtype.UUID       `json:"tenant_id"`
	Ended             bool              `json:"ended"`
	Expired           bool              `json:"expired"`
}

type GetMCPStaticCredentialCiphertextParams

type GetMCPStaticCredentialCiphertextParams struct {
	TenantID     pgtype.UUID   `json:"tenant_id"`
	VaultIds     []pgtype.UUID `json:"vault_ids"`
	VaultID      pgtype.UUID   `json:"vault_id"`
	CredentialID pgtype.UUID   `json:"credential_id"`
	McpServerUrl string        `json:"mcp_server_url"`
}

type GetManagedSessionArchiveParams

type GetManagedSessionArchiveParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetManagedSessionArchiveRow

type GetManagedSessionArchiveRow struct {
	SessionID       pgtype.UUID `json:"session_id"`
	EnvironmentID   pgtype.UUID `json:"environment_id"`
	EnvironmentType string      `json:"environment_type"`
	State           string      `json:"state"`
}

type GetNativeSubagentParams

type GetNativeSubagentParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	NativeID  string      `json:"native_id"`
}

type GetNodeGenerationSpecificationRow

type GetNodeGenerationSpecificationRow struct {
	ProviderKind  string `json:"provider_kind"`
	Specification []byte `json:"specification"`
}

type GetOAuthCredentialForUpdateParams

type GetOAuthCredentialForUpdateParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	VaultID  pgtype.UUID `json:"vault_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetOAuthCredentialForUpdateRow

type GetOAuthCredentialForUpdateRow struct {
	ID              pgtype.UUID        `json:"id"`
	VaultID         pgtype.UUID        `json:"vault_id"`
	Name            string             `json:"name"`
	AuthType        string             `json:"auth_type"`
	McpServerUrl    string             `json:"mcp_server_url"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata   []byte             `json:"oauth_metadata"`
	Metadata        []byte             `json:"metadata"`
	TokenCiphertext []byte             `json:"token_ciphertext"`
}

type GetProjectAPIKeyForProjectParams

type GetProjectAPIKeyForProjectParams struct {
	ID        pgtype.UUID `json:"id"`
	ProjectID pgtype.UUID `json:"project_id"`
}

type GetProjectRow

type GetProjectRow struct {
	ID                pgtype.UUID        `json:"id"`
	Name              string             `json:"name"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	SubjectKind       string             `json:"subject_kind"`
	SubjectID         string             `json:"subject_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	ArchivedAt        pgtype.Timestamptz `json:"archived_at"`
	OrganizationID    string             `json:"organization_id"`
	ExternalProjectID string             `json:"external_project_id"`
	ActiveKeyCount    int64              `json:"active_key_count"`
}

type GetPublicSubagentParams

type GetPublicSubagentParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type GetPublicSubagentRow

type GetPublicSubagentRow struct {
	ID                pgtype.UUID `json:"id"`
	SessionID         pgtype.UUID `json:"session_id"`
	DeviceID          pgtype.UUID `json:"device_id"`
	Engine            string      `json:"engine"`
	NativeID          string      `json:"native_id"`
	ParentNativeID    string      `json:"parent_native_id"`
	NativeCreatedAt   int64       `json:"native_created_at"`
	FirstTurnID       pgtype.UUID `json:"first_turn_id"`
	FirstEventOrdinal int32       `json:"first_event_ordinal"`
	Name              pgtype.Text `json:"name"`
	Instructions      pgtype.Text `json:"instructions"`
	PublicVisible     bool        `json:"public_visible"`
	Status            string      `json:"status"`
	ClosedAtMs        pgtype.Int8 `json:"closed_at_ms"`
	LifecycleAtMs     int64       `json:"lifecycle_at_ms"`
	ParentAgentID     string      `json:"parent_agent_id"`
}

type GetResourceOwnersParams

type GetResourceOwnersParams struct {
	TenantID     pgtype.UUID `json:"tenant_id"`
	ResourceType string      `json:"resource_type"`
	Column3      []string    `json:"column_3"`
}

type GetResourceOwnersRow

type GetResourceOwnersRow struct {
	ResourceID string             `json:"resource_id"`
	KeyID      string             `json:"key_id"`
	KeyName    string             `json:"key_name"`
	KeyPrefix  string             `json:"key_prefix"`
	KeyKind    string             `json:"key_kind"`
	RevokedAt  pgtype.Timestamptz `json:"revoked_at"`
}

type GetRuntimeActivityRow

type GetRuntimeActivityRow struct {
	ObservedAt           pgtype.Timestamptz `json:"observed_at"`
	LastActivity         pgtype.Timestamptz `json:"last_activity"`
	Busy                 bool               `json:"busy"`
	ComputeWakeRequested bool               `json:"compute_wake_requested"`
}

type GetRuntimeLifecyclePlacementParams

type GetRuntimeLifecyclePlacementParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetRuntimeLifecyclePlacementRow

type GetRuntimeLifecyclePlacementRow struct {
	ProviderKind        string             `json:"provider_kind"`
	Mode                string             `json:"mode"`
	AllocationID        pgtype.UUID        `json:"allocation_id"`
	AllocationNodeID    pgtype.UUID        `json:"allocation_node_id"`
	PlacementNodeID     pgtype.UUID        `json:"placement_node_id"`
	PlacementGeneration pgtype.Int8        `json:"placement_generation"`
	ReleasedAt          pgtype.Timestamptz `json:"released_at"`
	Specification       []byte             `json:"specification"`
}

type GetRuntimePlacementRow

type GetRuntimePlacementRow struct {
	EnvironmentID        pgtype.UUID        `json:"environment_id"`
	NodeID               pgtype.UUID        `json:"node_id"`
	ReservedAt           pgtype.Timestamptz `json:"reserved_at"`
	ReleasedAt           pgtype.Timestamptz `json:"released_at"`
	DeploymentGeneration pgtype.Int8        `json:"deployment_generation"`
	Name                 string             `json:"name"`
	Available            bool               `json:"available"`
	ObservationError     string             `json:"observation_error"`
	State                string             `json:"state"`
	ComputePhase         string             `json:"compute_phase"`
}

type GetSandboxDeploymentSnapshotRow

type GetSandboxDeploymentSnapshotRow struct {
	RuntimeDeployment RuntimeDeployment `json:"runtime_deployment"`
	Allocations       int64             `json:"allocations"`
	Pending           int64             `json:"pending"`
	Running           int64             `json:"running"`
	Remaining         []byte            `json:"remaining"`
	Rollout           []byte            `json:"rollout"`
}

type GetSessionArtifactParams

type GetSessionArtifactParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type GetSessionCursorParams added in v0.0.13

type GetSessionCursorParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSessionCursorRow added in v0.0.13

type GetSessionCursorRow struct {
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	ID        pgtype.UUID        `json:"id"`
}

type GetSessionDeviceParams

type GetSessionDeviceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSessionDeviceRow

type GetSessionDeviceRow struct {
	ID            pgtype.UUID `json:"id"`
	Name          string      `json:"name"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type GetSessionEnvironmentParams

type GetSessionEnvironmentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSessionEnvironmentRow

type GetSessionEnvironmentRow struct {
	Environment       Environment `json:"environment"`
	AttachedSessionID pgtype.UUID `json:"attached_session_id"`
	ExternalWorkspace bool        `json:"external_workspace"`
}

type GetSessionExecutionBindingParams

type GetSessionExecutionBindingParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSessionExecutionBindingRow

type GetSessionExecutionBindingRow struct {
	ID              pgtype.UUID `json:"id"`
	Name            string      `json:"name"`
	NativeSessionID string      `json:"native_session_id"`
	EnvironmentID   pgtype.UUID `json:"environment_id"`
	HasStartedTurn  bool        `json:"has_started_turn"`
}

type GetSessionExecutionConfigurationParams

type GetSessionExecutionConfigurationParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
}

type GetSessionExecutionConfigurationRow

type GetSessionExecutionConfigurationRow struct {
	ID                     pgtype.UUID `json:"id"`
	Engine                 string      `json:"engine"`
	SessionConfiguration   []byte      `json:"session_configuration"`
	ExecutionConfiguration []byte      `json:"execution_configuration"`
}

type GetSessionInitializationReadyParams

type GetSessionInitializationReadyParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSessionItemParams

type GetSessionItemParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type GetSessionModelExecutionParams

type GetSessionModelExecutionParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
}

type GetSessionParams

type GetSessionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSkillParams

type GetSkillParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSkillVersionByIDParams

type GetSkillVersionByIDParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetSkillVersionByIDRow

type GetSkillVersionByIDRow struct {
	ID          pgtype.UUID        `json:"id"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SkillID     pgtype.UUID        `json:"skill_id"`
	Version     int64              `json:"version"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
}

type GetSkillVersionParams

type GetSkillVersionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	SkillID  pgtype.UUID `json:"skill_id"`
	Version  int64       `json:"version"`
}

type GetSkillVersionRow

type GetSkillVersionRow struct {
	ID          pgtype.UUID        `json:"id"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SkillID     pgtype.UUID        `json:"skill_id"`
	Version     int64              `json:"version"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
}

type GetSourceFileParams

type GetSourceFileParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetStandaloneEnvironmentCursorParams added in v0.0.14

type GetStandaloneEnvironmentCursorParams struct {
	TenantID    pgtype.UUID `json:"tenant_id"`
	ID          pgtype.UUID `json:"id"`
	CreatorKind pgtype.Text `json:"creator_kind"`
	CreatorID   pgtype.Text `json:"creator_id"`
}

type GetStandaloneEnvironmentCursorRow added in v0.0.14

type GetStandaloneEnvironmentCursorRow struct {
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	ID        pgtype.UUID        `json:"id"`
}

type GetSubagentIdentityParams

type GetSubagentIdentityParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	NativeID  string      `json:"native_id"`
}

type GetSubagentIdentityRow

type GetSubagentIdentityRow struct {
	ID                pgtype.UUID        `json:"id"`
	SessionID         pgtype.UUID        `json:"session_id"`
	DeviceID          pgtype.UUID        `json:"device_id"`
	Engine            string             `json:"engine"`
	NativeID          string             `json:"native_id"`
	ParentNativeID    string             `json:"parent_native_id"`
	NativeCreatedAt   int64              `json:"native_created_at"`
	FirstTurnID       pgtype.UUID        `json:"first_turn_id"`
	FirstEventOrdinal int32              `json:"first_event_ordinal"`
	Name              pgtype.Text        `json:"name"`
	Instructions      pgtype.Text        `json:"instructions"`
	PublicVisible     bool               `json:"public_visible"`
	Status            string             `json:"status"`
	ClosedAtMs        pgtype.Int8        `json:"closed_at_ms"`
	LifecycleAtMs     int64              `json:"lifecycle_at_ms"`
	FirstObservedAt   pgtype.Timestamptz `json:"first_observed_at"`
}

type GetTurnParams

type GetTurnParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type GetVaultParams

type GetVaultParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type GetWorkspaceSelectionRow added in v0.0.10

type GetWorkspaceSelectionRow struct {
	WorkspaceFsConfiguration WorkspaceFsConfiguration `json:"workspace_fs_configuration"`
	TenantCapacityMib        int64                    `json:"tenant_capacity_mib"`
}

type GetWriteAuditCursorParams

type GetWriteAuditCursorParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type HasNativeMessageItemParams

type HasNativeMessageItemParams struct {
	TurnID pgtype.UUID `json:"turn_id"`
	ID     pgtype.UUID `json:"id"`
}

type HasUnappliedMessagesParams

type HasUnappliedMessagesParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	Sequence  int64       `json:"sequence"`
}

type HeartbeatRuntimeNodeParams

type HeartbeatRuntimeNodeParams struct {
	ID           pgtype.UUID `json:"id"`
	ConnectionID pgtype.UUID `json:"connection_id"`
	Health       []byte      `json:"health"`
	OwnerEpoch   int64       `json:"owner_epoch"`
}

type InitialEnvironmentFile

type InitialEnvironmentFile struct {
	ID            pgtype.UUID `json:"id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Position      int32       `json:"position"`
	Path          string      `json:"path"`
	SizeBytes     int64       `json:"size_bytes"`
	Contents      []byte      `json:"contents"`
}

type InitializeSandboxDeploymentParams

type InitializeSandboxDeploymentParams struct {
	ProviderKind       string `json:"provider_kind"`
	BackendFingerprint string `json:"backend_fingerprint"`
	Generation         int64  `json:"generation"`
	Mode               string `json:"mode"`
	ProviderConfig     []byte `json:"provider_config"`
	ProviderMetadata   []byte `json:"provider_metadata"`
	ProviderCredential []byte `json:"provider_credential"`
	Specification      []byte `json:"specification"`
}

type InsertAdminAuditParams

type InsertAdminAuditParams struct {
	ID                pgtype.UUID `json:"id"`
	TenantID          pgtype.UUID `json:"tenant_id"`
	AdminCredentialID string      `json:"admin_credential_id"`
	ActorLabel        string      `json:"actor_label"`
	Action            string      `json:"action"`
	ProjectID         pgtype.UUID `json:"project_id"`
	ResourceType      string      `json:"resource_type"`
	ResourceID        string      `json:"resource_id"`
	RequestID         string      `json:"request_id"`
	TraceID           string      `json:"trace_id"`
}

type InsertAutomationParams added in v0.0.14

type InsertAutomationParams struct {
	ID             pgtype.UUID        `json:"id"`
	TenantID       pgtype.UUID        `json:"tenant_id"`
	Type           string             `json:"type"`
	Name           string             `json:"name"`
	Metadata       []byte             `json:"metadata"`
	Status         string             `json:"status"`
	RunAt          pgtype.Timestamptz `json:"run_at"`
	Expression     pgtype.Text        `json:"expression"`
	Timezone       pgtype.Text        `json:"timezone"`
	NextRunAt      pgtype.Timestamptz `json:"next_run_at"`
	Target         []byte             `json:"target"`
	TargetContents []byte             `json:"target_contents"`
}

type InsertEnvironmentWorkspaceParams added in v0.0.10

type InsertEnvironmentWorkspaceParams struct {
	ObjectID        pgtype.UUID `json:"object_id"`
	EnvironmentID   pgtype.UUID `json:"environment_id"`
	ConfigurationID pgtype.UUID `json:"configuration_id"`
	CapacityMib     int64       `json:"capacity_mib"`
}

type InsertManualInvocationParams added in v0.0.14

type InsertManualInvocationParams struct {
	ID           pgtype.UUID `json:"id"`
	TenantID     pgtype.UUID `json:"tenant_id"`
	AutomationID pgtype.UUID `json:"automation_id"`
}

type InsertManualInvocationRow added in v0.0.14

type InsertManualInvocationRow struct {
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	SessionID pgtype.UUID        `json:"session_id"`
}

type InsertRuntimeHistorySampleParams

type InsertRuntimeHistorySampleParams struct {
	ResolvedAtNs        int64         `json:"resolved_at_ns"`
	AllocationID        pgtype.UUID   `json:"allocation_id"`
	ProviderType        string        `json:"provider_type"`
	Status              string        `json:"status"`
	ObservedAtNs        pgtype.Int8   `json:"observed_at_ns"`
	StartedAtNs         pgtype.Int8   `json:"started_at_ns"`
	CpuUsageSeconds     pgtype.Float8 `json:"cpu_usage_seconds"`
	CpuCapacityCores    pgtype.Float8 `json:"cpu_capacity_cores"`
	MemoryUsageBytes    pgtype.Int8   `json:"memory_usage_bytes"`
	MemoryLimitBytes    pgtype.Int8   `json:"memory_limit_bytes"`
	InputTokens         pgtype.Int8   `json:"input_tokens"`
	OutputTokens        pgtype.Int8   `json:"output_tokens"`
	CpuUtilizationRatio pgtype.Float8 `json:"cpu_utilization_ratio"`
	TenantID            pgtype.UUID   `json:"tenant_id"`
	SessionID           pgtype.UUID   `json:"session_id"`
	EnvironmentID       pgtype.UUID   `json:"environment_id"`
}

type InsertRuntimeNodeParams

type InsertRuntimeNodeParams struct {
	ID                   pgtype.UUID `json:"id"`
	InstallationID       pgtype.UUID `json:"installation_id"`
	Name                 string      `json:"name"`
	BackendFingerprint   string      `json:"backend_fingerprint"`
	CredentialSha256     string      `json:"credential_sha256"`
	MaxActive            int32       `json:"max_active"`
	MaxRetained          int32       `json:"max_retained"`
	SpecificationDigest  string      `json:"specification_digest"`
	DeploymentGeneration int64       `json:"deployment_generation"`
	CoreUrl              string      `json:"core_url"`
	EnrollmentID         pgtype.UUID `json:"enrollment_id"`
}

type InsertScheduledInvocationParams added in v0.0.14

type InsertScheduledInvocationParams struct {
	ID                 pgtype.UUID        `json:"id"`
	ScheduledAt        pgtype.Timestamptz `json:"scheduled_at"`
	AutomationSnapshot []byte             `json:"automation_snapshot"`
	Status             string             `json:"status"`
	SkipReason         pgtype.Text        `json:"skip_reason"`
	AutomationID       pgtype.UUID        `json:"automation_id"`
}

type InsertTurnEventBatchParams

type InsertTurnEventBatchParams struct {
	SessionID    pgtype.UUID `json:"session_id"`
	TurnID       pgtype.UUID `json:"turn_id"`
	FirstOrdinal int32       `json:"first_ordinal"`
	Batch        []byte      `json:"batch"`
}

type InsertTurnEventParams

type InsertTurnEventParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	Ordinal   int32       `json:"ordinal"`
	Kind      string      `json:"kind"`
	Payload   []byte      `json:"payload"`
}

type InsertWorkspaceConfigurationParams added in v0.0.10

type InsertWorkspaceConfigurationParams struct {
	ID         pgtype.UUID `json:"id"`
	Adapter    string      `json:"adapter"`
	Parameters []byte      `json:"parameters"`
	Credential []byte      `json:"credential"`
}

type InsertWriteAuditOperationParams

type InsertWriteAuditOperationParams struct {
	ID           pgtype.UUID `json:"id"`
	TenantID     pgtype.UUID `json:"tenant_id"`
	KeyID        string      `json:"key_id"`
	KeyName      string      `json:"key_name"`
	KeyPrefix    string      `json:"key_prefix"`
	KeyKind      string      `json:"key_kind"`
	Action       string      `json:"action"`
	ResourceType string      `json:"resource_type"`
	ResourceID   string      `json:"resource_id"`
	ParentID     string      `json:"parent_id"`
	RequestID    string      `json:"request_id"`
	TraceID      string      `json:"trace_id"`
}

type InsertWriteAuditOwnerParams

type InsertWriteAuditOwnerParams struct {
	TenantID     pgtype.UUID `json:"tenant_id"`
	ResourceType string      `json:"resource_type"`
	ResourceID   string      `json:"resource_id"`
	ParentID     string      `json:"parent_id"`
	OperationID  pgtype.UUID `json:"operation_id"`
}

type IssueExecutorCredentialParams

type IssueExecutorCredentialParams struct {
	KeyID          pgtype.UUID `json:"key_id"`
	SubjectKind    pgtype.Text `json:"subject_kind"`
	SubjectID      pgtype.Text `json:"subject_id"`
	EnvironmentID  pgtype.UUID `json:"environment_id"`
	TokenSha256    string      `json:"token_sha256"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	OrganizationID string      `json:"organization_id"`
	ProjectID      string      `json:"project_id"`
}

type IssueExecutorCredentialRow

type IssueExecutorCredentialRow struct {
	KeyID         pgtype.UUID `json:"key_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type ItemEventSourcesParams

type ItemEventSourcesParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	Ordinal   int32       `json:"ordinal"`
}

type ItemInputSourceParams

type ItemInputSourceParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	Sequence  int64       `json:"sequence"`
}

type ListAdminAuditLogParams

type ListAdminAuditLogParams struct {
	ProjectID     string             `json:"project_id"`
	ResourceType  string             `json:"resource_type"`
	ResourceID    string             `json:"resource_id"`
	Action        string             `json:"action"`
	CreatedAfter  pgtype.Timestamptz `json:"created_after"`
	CreatedBefore pgtype.Timestamptz `json:"created_before"`
	AfterTime     pgtype.Timestamptz `json:"after_time"`
	AfterID       pgtype.UUID        `json:"after_id"`
	PageLimit     int32              `json:"page_limit"`
}

type ListAgentsParams

type ListAgentsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListAutomationsParams added in v0.0.14

type ListAutomationsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	SessionID    pgtype.Text        `json:"session_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListAutomationsRow added in v0.0.14

type ListAutomationsRow struct {
	ID         pgtype.UUID        `json:"id"`
	TenantID   pgtype.UUID        `json:"tenant_id"`
	Type       string             `json:"type"`
	Name       string             `json:"name"`
	Metadata   []byte             `json:"metadata"`
	Status     string             `json:"status"`
	RunAt      pgtype.Timestamptz `json:"run_at"`
	Expression pgtype.Text        `json:"expression"`
	Timezone   pgtype.Text        `json:"timezone"`
	NextRunAt  pgtype.Timestamptz `json:"next_run_at"`
	Target     []byte             `json:"target"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
}

type ListCheckpointGenerationNodesRow added in v0.0.10

type ListCheckpointGenerationNodesRow struct {
	ID         pgtype.UUID `json:"id"`
	Checkpoint []byte      `json:"checkpoint"`
}

type ListChildItemsParams

type ListChildItemsParams struct {
	SessionID     pgtype.UUID        `json:"session_id"`
	SubagentID    pgtype.UUID        `json:"subagent_id"`
	TurnID        pgtype.UUID        `json:"turn_id"`
	AfterCreated  pgtype.Timestamptz `json:"after_created"`
	Ascending     bool               `json:"ascending"`
	AfterTurn     pgtype.UUID        `json:"after_turn"`
	AfterPosition int32              `json:"after_position"`
	AfterID       pgtype.UUID        `json:"after_id"`
	PageLimit     int32              `json:"page_limit"`
}

type ListChildTurnsParams

type ListChildTurnsParams struct {
	SessionID    pgtype.UUID        `json:"session_id"`
	SubagentID   pgtype.UUID        `json:"subagent_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListCredentialsParams

type ListCredentialsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	VaultID      pgtype.UUID        `json:"vault_id"`
	Statuses     []string           `json:"statuses"`
	Metadata     []byte             `json:"metadata"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListCredentialsRow

type ListCredentialsRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type ListDeploymentModelProvidersRow

type ListDeploymentModelProvidersRow struct {
	Harness         string             `json:"harness"`
	Protocol        string             `json:"protocol"`
	BaseUrl         string             `json:"base_url"`
	ContextWindow   int32              `json:"context_window"`
	MaxOutputTokens int32              `json:"max_output_tokens"`
	Model           string             `json:"model"`
	HarnessConfig   []byte             `json:"harness_config"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	LastUsedAt      pgtype.Timestamptz `json:"last_used_at"`
	LastErrorCode   pgtype.Text        `json:"last_error_code"`
	LastErrorAt     pgtype.Timestamptz `json:"last_error_at"`
}

type ListDueEnvironmentInputsRow

type ListDueEnvironmentInputsRow struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_id"`
	TenantID  pgtype.UUID `json:"tenant_id"`
}

type ListEnrolledRuntimeBindingsRow

type ListEnrolledRuntimeBindingsRow struct {
	DeviceID      pgtype.UUID `json:"device_id"`
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type ListEnvironmentConnectionsRow

type ListEnvironmentConnectionsRow struct {
	ID       pgtype.UUID `json:"id"`
	TenantID pgtype.UUID `json:"tenant_id"`
}

type ListEnvironmentExecutorCredentialsParams

type ListEnvironmentExecutorCredentialsParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	SubjectKind   pgtype.Text `json:"subject_kind"`
	SubjectID     pgtype.Text `json:"subject_id"`
}

type ListEnvironmentExecutorCredentialsRow

type ListEnvironmentExecutorCredentialsRow struct {
	KeyID     pgtype.UUID        `json:"key_id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	RevokedAt pgtype.Timestamptz `json:"revoked_at"`
}

type ListEnvironmentInitializationsRow

type ListEnvironmentInitializationsRow struct {
	ID             pgtype.UUID `json:"id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	Initialization string      `json:"initialization"`
	DeviceID       pgtype.UUID `json:"device_id"`
}

type ListEnvironmentInputWorkParams

type ListEnvironmentInputWorkParams struct {
	AfterID          pgtype.UUID   `json:"after_id"`
	ConnectedDevices []pgtype.UUID `json:"connected_devices"`
}

type ListEnvironmentInputWorkRow

type ListEnvironmentInputWorkRow struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_id"`
	TenantID  pgtype.UUID `json:"tenant_id"`
}

type ListEnvironmentTemplatesParams

type ListEnvironmentTemplatesParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListEnvironmentTemplatesRow

type ListEnvironmentTemplatesRow struct {
	ID                    pgtype.UUID        `json:"id"`
	TenantID              pgtype.UUID        `json:"tenant_id"`
	Name                  pgtype.Text        `json:"name"`
	NetworkAccess         string             `json:"network_access"`
	NetworkAllowedDomains []string           `json:"network_allowed_domains"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	Files                 []byte             `json:"files"`
	Packages              []byte             `json:"packages"`
	Skills                []byte             `json:"skills"`
	Plugins               []byte             `json:"plugins"`
	CapabilityDirectories []string           `json:"capability_directories"`
}

type ListExecutionDevicesRow

type ListExecutionDevicesRow struct {
	ID   pgtype.UUID `json:"id"`
	Name string      `json:"name"`
}

type ListExecutionWorkParams

type ListExecutionWorkParams struct {
	Statuses         []string      `json:"statuses"`
	AfterID          pgtype.UUID   `json:"after_id"`
	ConnectedOnly    bool          `json:"connected_only"`
	ConnectedDevices []pgtype.UUID `json:"connected_devices"`
}

type ListExecutionWorkRow

type ListExecutionWorkRow struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_id"`
	TenantID  pgtype.UUID `json:"tenant_id"`
	Status    string      `json:"status"`
}

type ListInvocationsParams added in v0.0.14

type ListInvocationsParams struct {
	AutomationID pgtype.UUID        `json:"automation_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListInvocationsRow added in v0.0.14

type ListInvocationsRow struct {
	ID                 pgtype.UUID        `json:"id"`
	AutomationID       pgtype.UUID        `json:"automation_id"`
	CreatedAt          pgtype.Timestamptz `json:"created_at"`
	ScheduledAt        pgtype.Timestamptz `json:"scheduled_at"`
	AutomationSnapshot []byte             `json:"automation_snapshot"`
	Status             string             `json:"status"`
	SkipReason         pgtype.Text        `json:"skip_reason"`
	SessionID          pgtype.UUID        `json:"session_id"`
	ErrorCode          pgtype.Text        `json:"error_code"`
	ErrorMessage       pgtype.Text        `json:"error_message"`
}

type ListNodeHostHistoryParams

type ListNodeHostHistoryParams struct {
	BucketWidth pgtype.Interval    `json:"bucket_width"`
	NodeID      pgtype.UUID        `json:"node_id"`
	StartAt     pgtype.Timestamptz `json:"start_at"`
	EndAt       pgtype.Timestamptz `json:"end_at"`
}

type ListNodeHostHistoryRow

type ListNodeHostHistoryRow struct {
	Start                 pgtype.Timestamptz `json:"start"`
	CpuSamples            int64              `json:"cpu_samples"`
	CpuUtilizationMax     float64            `json:"cpu_utilization_max"`
	MemorySamples         int64              `json:"memory_samples"`
	MemoryUsedBytesMax    int64              `json:"memory_used_bytes_max"`
	DiskSamples           int64              `json:"disk_samples"`
	AvailableDiskBytesMin int64              `json:"available_disk_bytes_min"`
}

type ListNodeRuntimeAllocationsRow

type ListNodeRuntimeAllocationsRow struct {
	ID                    pgtype.UUID        `json:"id"`
	NodeID                pgtype.UUID        `json:"node_id"`
	DeploymentGeneration  pgtype.Int8        `json:"deployment_generation"`
	ObservationError      string             `json:"observation_error"`
	State                 string             `json:"state"`
	ComputePhase          string             `json:"compute_phase"`
	ComputePhaseChangedAt pgtype.Timestamptz `json:"compute_phase_changed_at"`
	Initialization        string             `json:"initialization"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	EnvironmentID         pgtype.UUID        `json:"environment_id"`
	AttachedSessionID     pgtype.UUID        `json:"attached_session_id"`
	TenantID              pgtype.UUID        `json:"tenant_id"`
}

type ListPendingFunctionCallsParams

type ListPendingFunctionCallsParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
}

type ListPlacementDemandParams added in v0.0.10

type ListPlacementDemandParams struct {
	UntilTime pgtype.Timestamptz `json:"until_time"`
	AfterTime pgtype.Timestamptz `json:"after_time"`
	AfterID   pgtype.UUID        `json:"after_id"`
}

type ListPlacementDemandRow added in v0.0.10

type ListPlacementDemandRow struct {
	ID         pgtype.UUID        `json:"id"`
	TenantID   pgtype.UUID        `json:"tenant_id"`
	Engine     string             `json:"engine"`
	Retained   bool               `json:"retained"`
	DemandedAt pgtype.Timestamptz `json:"demanded_at"`
	ScanUntil  pgtype.Timestamptz `json:"scan_until"`
}

type ListProjectAPIKeysParams

type ListProjectAPIKeysParams struct {
	ProjectID pgtype.UUID `json:"project_id"`
	AfterID   string      `json:"after_id"`
	Ascending bool        `json:"ascending"`
	PageLimit int32       `json:"page_limit"`
}

type ListProjectsParams

type ListProjectsParams struct {
	AfterID   string `json:"after_id"`
	Ascending bool   `json:"ascending"`
	PageLimit int32  `json:"page_limit"`
}

type ListProjectsRow

type ListProjectsRow struct {
	ID                pgtype.UUID        `json:"id"`
	Name              string             `json:"name"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	SubjectKind       string             `json:"subject_kind"`
	SubjectID         string             `json:"subject_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	ArchivedAt        pgtype.Timestamptz `json:"archived_at"`
	OrganizationID    string             `json:"organization_id"`
	ExternalProjectID string             `json:"external_project_id"`
	ActiveKeyCount    int64              `json:"active_key_count"`
}

type ListPublicSubagentsParams

type ListPublicSubagentsParams struct {
	SessionID   pgtype.UUID `json:"session_id"`
	AfterOpened pgtype.Int8 `json:"after_opened"`
	Ascending   bool        `json:"ascending"`
	AfterID     pgtype.UUID `json:"after_id"`
	PageLimit   int32       `json:"page_limit"`
}

type ListRootTurnsParams

type ListRootTurnsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	SessionID    pgtype.UUID        `json:"session_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListRuntimeAllocationsForNodeParams

type ListRuntimeAllocationsForNodeParams struct {
	NodeID  pgtype.UUID `json:"node_id"`
	AfterID pgtype.UUID `json:"after_id"`
}

type ListRuntimeAllocationsForNodeRow

type ListRuntimeAllocationsForNodeRow struct {
	RuntimeAllocation RuntimeAllocation `json:"runtime_allocation"`
	AttachedSessionID pgtype.UUID       `json:"attached_session_id"`
	TenantID          pgtype.UUID       `json:"tenant_id"`
	Ended             bool              `json:"ended"`
	Expired           bool              `json:"expired"`
}

type ListRuntimeAllocationsRow

type ListRuntimeAllocationsRow struct {
	RuntimeAllocation RuntimeAllocation `json:"runtime_allocation"`
	AttachedSessionID pgtype.UUID       `json:"attached_session_id"`
	TenantID          pgtype.UUID       `json:"tenant_id"`
	Ended             bool              `json:"ended"`
	Expired           bool              `json:"expired"`
}

type ListRuntimeHistorySamplesParams

type ListRuntimeHistorySamplesParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	SessionID     pgtype.UUID `json:"session_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	StartNs       int64       `json:"start_ns"`
	EndNs         int64       `json:"end_ns"`
	RowLimit      int32       `json:"row_limit"`
}

type ListRuntimeNodesRow

type ListRuntimeNodesRow struct {
	ID                   pgtype.UUID        `json:"id"`
	InstallationID       pgtype.UUID        `json:"installation_id"`
	Name                 string             `json:"name"`
	BackendFingerprint   string             `json:"backend_fingerprint"`
	CredentialSha256     string             `json:"credential_sha256"`
	MaxActive            int32              `json:"max_active"`
	MaxRetained          int32              `json:"max_retained"`
	ConnectionID         pgtype.UUID        `json:"connection_id"`
	Health               []byte             `json:"health"`
	ConnectedEpoch       int64              `json:"connected_epoch"`
	LastSeenAt           pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
	RemovedAt            pgtype.Timestamptz `json:"removed_at"`
	SpecificationDigest  string             `json:"specification_digest"`
	DeploymentGeneration int64              `json:"deployment_generation"`
	CoreUrl              string             `json:"core_url"`
	EnrollmentID         pgtype.UUID        `json:"enrollment_id"`
	ReadyGeneration      pgtype.Int8        `json:"ready_generation"`
	Online               bool               `json:"online"`
	ProviderKind         string             `json:"provider_kind"`
	ServingReady         bool               `json:"serving_ready"`
	TargetState          string             `json:"target_state"`
	TargetDiagnostic     string             `json:"target_diagnostic"`
	Active               int64              `json:"active"`
	Retained             int64              `json:"retained"`
	Reserved             int64              `json:"reserved"`
	CleanupPending       int64              `json:"cleanup_pending"`
	Running              int64              `json:"running"`
	Snapshots            int64              `json:"snapshots"`
}

type ListRuntimeObservationSessionsParams

type ListRuntimeObservationSessionsParams struct {
	ID    pgtype.UUID `json:"id"`
	Limit int32       `json:"limit"`
}

type ListRuntimeObservationSessionsRow

type ListRuntimeObservationSessionsRow struct {
	ID       pgtype.UUID `json:"id"`
	TenantID pgtype.UUID `json:"tenant_id"`
}

type ListSandboxResetCandidatesParams added in v0.0.14

type ListSandboxResetCandidatesParams struct {
	AfterID pgtype.UUID `json:"after_id"`
	Force   bool        `json:"force"`
}

type ListSandboxResetCandidatesRow added in v0.0.14

type ListSandboxResetCandidatesRow struct {
	ID        pgtype.UUID `json:"id"`
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
}

type ListSessionArtifactsParams

type ListSessionArtifactsParams struct {
	TenantID      pgtype.UUID        `json:"tenant_id"`
	SessionID     pgtype.UUID        `json:"session_id"`
	EnvironmentID pgtype.UUID        `json:"environment_id"`
	AfterCreated  pgtype.Timestamptz `json:"after_created"`
	Ascending     bool               `json:"ascending"`
	AfterID       pgtype.UUID        `json:"after_id"`
	PageLimit     int32              `json:"page_limit"`
}

type ListSessionEventsParams

type ListSessionEventsParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	Sequence  int64       `json:"sequence"`
}

type ListSessionEventsRow

type ListSessionEventsRow struct {
	Sequence int64  `json:"sequence"`
	Payload  []byte `json:"payload"`
}

type ListSessionItemsParams

type ListSessionItemsParams struct {
	SessionID     pgtype.UUID        `json:"session_id"`
	TurnID        pgtype.UUID        `json:"turn_id"`
	AfterCreated  pgtype.Timestamptz `json:"after_created"`
	Ascending     bool               `json:"ascending"`
	AfterPosition int32              `json:"after_position"`
	AfterID       pgtype.UUID        `json:"after_id"`
	PageLimit     int32              `json:"page_limit"`
}

type ListSessionItemsRow

type ListSessionItemsRow struct {
	ID        pgtype.UUID        `json:"id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	Payload   []byte             `json:"payload"`
}

type ListSessionsParams

type ListSessionsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	AgentID      pgtype.Text        `json:"agent_id"`
	Metadata     []byte             `json:"metadata"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListSkillVersionsParams

type ListSkillVersionsParams struct {
	TenantID     pgtype.UUID `json:"tenant_id"`
	SkillID      pgtype.UUID `json:"skill_id"`
	AfterVersion pgtype.Int8 `json:"after_version"`
	Ascending    bool        `json:"ascending"`
	PageLimit    int32       `json:"page_limit"`
}

type ListSkillVersionsRow

type ListSkillVersionsRow struct {
	ID          pgtype.UUID        `json:"id"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SkillID     pgtype.UUID        `json:"skill_id"`
	Version     int64              `json:"version"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
}

type ListSkillsParams

type ListSkillsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListSourceFilesParams

type ListSourceFilesParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	Purpose      pgtype.Text        `json:"purpose"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListStandaloneEnvironmentsParams added in v0.0.14

type ListStandaloneEnvironmentsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	CreatorKind  pgtype.Text        `json:"creator_kind"`
	CreatorID    pgtype.Text        `json:"creator_id"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListStandaloneEnvironmentsRow added in v0.0.14

type ListStandaloneEnvironmentsRow struct {
	Environment       Environment `json:"environment"`
	AttachedSessionID pgtype.UUID `json:"attached_session_id"`
	ExternalWorkspace bool        `json:"external_workspace"`
}

type ListTurnEventsParams

type ListTurnEventsParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	Ordinal   int32       `json:"ordinal"`
	Limit     int32       `json:"limit"`
}

type ListTurnInputsParams

type ListTurnInputsParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	Sequence  int64       `json:"sequence"`
	Limit     int32       `json:"limit"`
}

type ListTurnItemDiagnosticsParams

type ListTurnItemDiagnosticsParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
}

type ListTurnItemDiagnosticsRow

type ListTurnItemDiagnosticsRow struct {
	ID        pgtype.UUID        `json:"id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	SettledAt pgtype.Timestamptz `json:"settled_at"`
}

type ListUnallocatedHostedEnvironmentsForNodeParams

type ListUnallocatedHostedEnvironmentsForNodeParams struct {
	NodeID  pgtype.UUID `json:"node_id"`
	AfterID pgtype.UUID `json:"after_id"`
}

type ListUnallocatedHostedEnvironmentsForNodeRow

type ListUnallocatedHostedEnvironmentsForNodeRow struct {
	ID       pgtype.UUID `json:"id"`
	TenantID pgtype.UUID `json:"tenant_id"`
}

type ListUnfinishedSessionItemsParams

type ListUnfinishedSessionItemsParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
}

type ListUnfinishedSessionItemsRow

type ListUnfinishedSessionItemsRow struct {
	ID          pgtype.UUID `json:"id"`
	Position    int32       `json:"position"`
	OutputIndex pgtype.Int4 `json:"output_index"`
	Payload     []byte      `json:"payload"`
}

type ListVaultsParams

type ListVaultsParams struct {
	TenantID     pgtype.UUID        `json:"tenant_id"`
	Statuses     []string           `json:"statuses"`
	Metadata     []byte             `json:"metadata"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

type ListWaitingCheckpointRestoresRow added in v0.0.10

type ListWaitingCheckpointRestoresRow struct {
	NodeID               pgtype.UUID `json:"node_id"`
	DeploymentGeneration pgtype.Int8 `json:"deployment_generation"`
	Checkpoint           []byte      `json:"checkpoint"`
}

type ListWorkspaceDeletionCandidatesRow added in v0.0.10

type ListWorkspaceDeletionCandidatesRow struct {
	EnvironmentWorkspace     EnvironmentWorkspace     `json:"environment_workspace"`
	WorkspaceFsConfiguration WorkspaceFsConfiguration `json:"workspace_fs_configuration"`
	TenantID                 pgtype.UUID              `json:"tenant_id"`
}

type ListWriteOperationsParams

type ListWriteOperationsParams struct {
	TenantID      pgtype.UUID        `json:"tenant_id"`
	KeyID         string             `json:"key_id"`
	ResourceType  string             `json:"resource_type"`
	ResourceID    string             `json:"resource_id"`
	CreatedAfter  pgtype.Timestamptz `json:"created_after"`
	CreatedBefore pgtype.Timestamptz `json:"created_before"`
	AfterTime     pgtype.Timestamptz `json:"after_time"`
	AfterID       pgtype.UUID        `json:"after_id"`
	PageLimit     int32              `json:"page_limit"`
}

type ListWriteOperationsRow

type ListWriteOperationsRow struct {
	ID           pgtype.UUID        `json:"id"`
	TenantID     pgtype.UUID        `json:"tenant_id"`
	KeyID        string             `json:"key_id"`
	KeyName      string             `json:"key_name"`
	KeyPrefix    string             `json:"key_prefix"`
	KeyKind      string             `json:"key_kind"`
	Action       string             `json:"action"`
	ResourceType string             `json:"resource_type"`
	ResourceID   string             `json:"resource_id"`
	ParentID     string             `json:"parent_id"`
	RequestID    string             `json:"request_id"`
	TraceID      string             `json:"trace_id"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
	RevokedAt    pgtype.Timestamptz `json:"revoked_at"`
}

type LockAgentParams

type LockAgentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type LockAutomationParams added in v0.0.14

type LockAutomationParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type LockAutomationRow added in v0.0.14

type LockAutomationRow struct {
	ID         pgtype.UUID        `json:"id"`
	TenantID   pgtype.UUID        `json:"tenant_id"`
	Type       string             `json:"type"`
	Name       string             `json:"name"`
	Metadata   []byte             `json:"metadata"`
	Status     string             `json:"status"`
	RunAt      pgtype.Timestamptz `json:"run_at"`
	Expression pgtype.Text        `json:"expression"`
	Timezone   pgtype.Text        `json:"timezone"`
	NextRunAt  pgtype.Timestamptz `json:"next_run_at"`
	Target     []byte             `json:"target"`
	CreatedAt  pgtype.Timestamptz `json:"created_at"`
}

type LockEnvironmentCreationParams added in v0.0.14

type LockEnvironmentCreationParams struct {
	TenantID       string `json:"tenant_id"`
	CreatorKind    string `json:"creator_kind"`
	CreatorID      string `json:"creator_id"`
	IdempotencyKey string `json:"idempotency_key"`
}

type LockEnvironmentParams added in v0.0.14

type LockEnvironmentParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type LockSessionParams

type LockSessionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type LockSessionRow

type LockSessionRow struct {
	ID        pgtype.UUID        `json:"id"`
	DeletedAt pgtype.Timestamptz `json:"deleted_at"`
	Engine    string             `json:"engine"`
}

type LockSkillParams

type LockSkillParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type LockSourceFileParams added in v0.0.10

type LockSourceFileParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type LockVisibleSessionParams added in v0.0.14

type LockVisibleSessionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type MarkSessionModelSourceParams added in v0.0.14

type MarkSessionModelSourceParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	Before    []byte      `json:"before"`
	After     []byte      `json:"after"`
}

type MarkWorkspaceReadyParams added in v0.0.10

type MarkWorkspaceReadyParams struct {
	ObjectID   pgtype.UUID `json:"object_id"`
	Attachment []byte      `json:"attachment"`
}

type MatchFunctionCallParams

type MatchFunctionCallParams struct {
	ExecutorCallID string      `json:"executor_call_id"`
	Name           string      `json:"name"`
	Arguments      []byte      `json:"arguments"`
	SessionID      pgtype.UUID `json:"session_id"`
	TurnID         pgtype.UUID `json:"turn_id"`
	CallID         string      `json:"call_id"`
}

type MatchFunctionResultParams

type MatchFunctionResultParams struct {
	Result    []byte      `json:"result"`
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	CallID    string      `json:"call_id"`
}

type MatchFunctionResultRow

type MatchFunctionResultRow struct {
	Submitted bool `json:"submitted"`
	Matches   bool `json:"matches"`
	Withdrawn bool `json:"withdrawn"`
}

type MatchTurnEventBatchParams

type MatchTurnEventBatchParams struct {
	SessionID    pgtype.UUID `json:"session_id"`
	TurnID       pgtype.UUID `json:"turn_id"`
	Batch        []byte      `json:"batch"`
	FirstOrdinal int32       `json:"first_ordinal"`
	EventCount   int32       `json:"event_count"`
}

type MatchWorkspaceConfigurationParams added in v0.0.10

type MatchWorkspaceConfigurationParams struct {
	Adapter    string      `json:"adapter"`
	Parameters []byte      `json:"parameters"`
	ID         pgtype.UUID `json:"id"`
}

type MatchWorkspaceConfigurationRow added in v0.0.10

type MatchWorkspaceConfigurationRow struct {
	Matches    bool   `json:"matches"`
	Credential []byte `json:"credential"`
}

type MoveSuspendedRuntimeComputeParams added in v0.0.10

type MoveSuspendedRuntimeComputeParams struct {
	Destination pgtype.UUID `json:"destination"`
	Phase       string      `json:"phase"`
	State       []byte      `json:"state"`
	ID          pgtype.UUID `json:"id"`
	Source      pgtype.UUID `json:"source"`
	Revision    int64       `json:"revision"`
}

type NodeGenerationKeptParams

type NodeGenerationKeptParams struct {
	Generation int64       `json:"generation"`
	NodeID     pgtype.UUID `json:"node_id"`
}

type NodeGenerationReadyParams

type NodeGenerationReadyParams struct {
	NodeID     pgtype.UUID `json:"node_id"`
	Generation int64       `json:"generation"`
}

type NodeHostHistorySample

type NodeHostHistorySample struct {
	NodeID             pgtype.UUID        `json:"node_id"`
	ObservedAt         pgtype.Timestamptz `json:"observed_at"`
	CpuUtilization     pgtype.Float8      `json:"cpu_utilization"`
	MemoryUsedBytes    pgtype.Int8        `json:"memory_used_bytes"`
	AvailableDiskBytes pgtype.Int8        `json:"available_disk_bytes"`
}

type ObserveDeploymentModelProviderParams

type ObserveDeploymentModelProviderParams struct {
	TenantID  pgtype.UUID `json:"tenant_id"`
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
}

type Project

type Project struct {
	ID          pgtype.UUID        `json:"id"`
	Name        string             `json:"name"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SubjectKind string             `json:"subject_kind"`
	SubjectID   string             `json:"subject_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	ArchivedAt  pgtype.Timestamptz `json:"archived_at"`
}

type ProjectApiKey

type ProjectApiKey struct {
	ID          pgtype.UUID        `json:"id"`
	Name        string             `json:"name"`
	Prefix      string             `json:"prefix"`
	TokenSha256 string             `json:"token_sha256"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	RevokedAt   pgtype.Timestamptz `json:"revoked_at"`
	ProjectID   pgtype.UUID        `json:"project_id"`
}

type PromoteNodeServingGenerationParams

type PromoteNodeServingGenerationParams struct {
	ID              pgtype.UUID `json:"id"`
	ReadyGeneration pgtype.Int8 `json:"ready_generation"`
}

type PruneSessionEventsParams

type PruneSessionEventsParams struct {
	SessionID      pgtype.UUID `json:"session_id"`
	RetainedEvents int64       `json:"retained_events"`
	RetainedBytes  int64       `json:"retained_bytes"`
}

type PublishSubagentParams

type PublishSubagentParams struct {
	SessionID    pgtype.UUID `json:"session_id"`
	ID           pgtype.UUID `json:"id"`
	Name         pgtype.Text `json:"name"`
	Instructions pgtype.Text `json:"instructions"`
}

type PublishTurnArtifactsParams

type PublishTurnArtifactsParams struct {
	SessionID pgtype.UUID        `json:"session_id"`
	TurnID    pgtype.UUID        `json:"turn_id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type PutChildItemParams

type PutChildItemParams struct {
	ID         pgtype.UUID `json:"id"`
	SessionID  pgtype.UUID `json:"session_id"`
	SubagentID pgtype.UUID `json:"subagent_id"`
	TurnID     pgtype.UUID `json:"turn_id"`
	Position   int32       `json:"position"`
	Payload    []byte      `json:"payload"`
	IsOutput   bool        `json:"is_output"`
}

type PutChildTurnParams

type PutChildTurnParams struct {
	ID          pgtype.UUID        `json:"id"`
	SessionID   pgtype.UUID        `json:"session_id"`
	SubagentID  pgtype.UUID        `json:"subagent_id"`
	NativeID    string             `json:"native_id"`
	Status      string             `json:"status"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	StartedAt   pgtype.Timestamptz `json:"started_at"`
	CompletedAt pgtype.Timestamptz `json:"completed_at"`
	TokenUsage  []byte             `json:"token_usage"`
}

type PutSessionItemParams

type PutSessionItemParams struct {
	ID        pgtype.UUID        `json:"id"`
	SessionID pgtype.UUID        `json:"session_id"`
	TurnID    pgtype.UUID        `json:"turn_id"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	Payload   []byte             `json:"payload"`
	IsOutput  bool               `json:"is_output"`
}

type PutSubagentEffectParams

type PutSubagentEffectParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	EffectID  string      `json:"effect_id"`
	Payload   []byte      `json:"payload"`
}

type PutSubagentIdentityParams

type PutSubagentIdentityParams struct {
	ID                pgtype.UUID `json:"id"`
	NativeID          string      `json:"native_id"`
	ParentNativeID    string      `json:"parent_native_id"`
	NativeCreatedAt   int64       `json:"native_created_at"`
	FirstTurnID       pgtype.UUID `json:"first_turn_id"`
	FirstEventOrdinal int32       `json:"first_event_ordinal"`
	SessionID         pgtype.UUID `json:"session_id"`
}

type PutTurnUsageParams

type PutTurnUsageParams struct {
	SessionID  pgtype.UUID `json:"session_id"`
	ID         pgtype.UUID `json:"id"`
	TokenUsage []byte      `json:"token_usage"`
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ActivateWorkspaceConfiguration added in v0.0.10

func (q *Queries) ActivateWorkspaceConfiguration(ctx context.Context, id pgtype.UUID) error

func (*Queries) AdminAssetCounts

func (q *Queries) AdminAssetCounts(ctx context.Context, tenantID pgtype.UUID) (AdminAssetCountsRow, error)

func (*Queries) AdminAuditCursor

func (q *Queries) AdminAuditCursor(ctx context.Context, id pgtype.UUID) (pgtype.Timestamptz, error)

func (*Queries) AdminRuntimeCursor

func (q *Queries) AdminRuntimeCursor(ctx context.Context, arg AdminRuntimeCursorParams) (pgtype.Timestamptz, error)

func (*Queries) AdminRuntimeTargets

func (q *Queries) AdminRuntimeTargets(ctx context.Context, arg AdminRuntimeTargetsParams) ([]AdminRuntimeTargetsRow, error)

func (*Queries) AdminSummarySessions

func (q *Queries) AdminSummarySessions(ctx context.Context, arg AdminSummarySessionsParams) ([]AdminSummarySessionsRow, error)

func (*Queries) AdvanceAutomation added in v0.0.14

func (q *Queries) AdvanceAutomation(ctx context.Context, arg AdvanceAutomationParams) error

func (*Queries) AdvanceEnvironmentConnection

func (q *Queries) AdvanceEnvironmentConnection(ctx context.Context, arg AdvanceEnvironmentConnectionParams) error

func (*Queries) AdvanceSandboxOwnerEpoch

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

func (*Queries) AdvanceSkillVersion

func (q *Queries) AdvanceSkillVersion(ctx context.Context, arg AdvanceSkillVersionParams) error

func (*Queries) AppendSessionEvent

func (q *Queries) AppendSessionEvent(ctx context.Context, arg AppendSessionEventParams) error

func (*Queries) ApplyFunctionResult

func (q *Queries) ApplyFunctionResult(ctx context.Context, arg ApplyFunctionResultParams) error

func (*Queries) ApplySubagentLifecycle

func (q *Queries) ApplySubagentLifecycle(ctx context.Context, arg ApplySubagentLifecycleParams) error

func (*Queries) ArchiveProject

func (q *Queries) ArchiveProject(ctx context.Context, id pgtype.UUID) error

func (*Queries) AttachSessionEnvironment added in v0.0.14

func (q *Queries) AttachSessionEnvironment(ctx context.Context, arg AttachSessionEnvironmentParams) error

func (*Queries) AuthenticateEnvironmentExecutor

func (q *Queries) AuthenticateEnvironmentExecutor(ctx context.Context, arg AuthenticateEnvironmentExecutorParams) (pgtype.UUID, error)

func (*Queries) AutomationQueue added in v0.0.14

func (q *Queries) AutomationQueue(ctx context.Context, id pgtype.UUID) (AutomationQueueRow, error)

A statement after LockAutomation, so it reads what committed while the lock waited.

func (*Queries) BeginTurnArtifactCapture

func (q *Queries) BeginTurnArtifactCapture(ctx context.Context, arg BeginTurnArtifactCaptureParams) (int64, error)

func (*Queries) BeginWorkspaceDeletion added in v0.0.10

func (q *Queries) BeginWorkspaceDeletion(ctx context.Context, objectID pgtype.UUID) (int64, error)

func (*Queries) BindHostedSessionDevice added in v0.0.10

func (q *Queries) BindHostedSessionDevice(ctx context.Context, arg BindHostedSessionDeviceParams) (pgtype.UUID, error)

func (*Queries) BindSessionDevice

func (q *Queries) BindSessionDevice(ctx context.Context, arg BindSessionDeviceParams) (pgtype.UUID, error)

func (*Queries) CanReplaceRuntimeAllocation added in v0.0.10

func (q *Queries) CanReplaceRuntimeAllocation(ctx context.Context, id pgtype.UUID) (bool, error)

func (*Queries) CanRetainRuntimeEnvironment added in v0.0.10

func (q *Queries) CanRetainRuntimeEnvironment(ctx context.Context, id pgtype.UUID) (bool, error)

func (*Queries) CancelSandboxReset

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

func (*Queries) CancelSessionEnvironmentInput

func (q *Queries) CancelSessionEnvironmentInput(ctx context.Context, sessionID pgtype.UUID) error

func (*Queries) ClaimEnvironmentInitialization

func (q *Queries) ClaimEnvironmentInitialization(ctx context.Context, id pgtype.UUID) (int64, error)

func (*Queries) ClaimWebSandboxDeployment

func (q *Queries) ClaimWebSandboxDeployment(ctx context.Context, installationID pgtype.UUID) error

func (*Queries) ClearActiveWorkspaceConfiguration added in v0.0.10

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

func (*Queries) ClearRuntimeWake

func (q *Queries) ClearRuntimeWake(ctx context.Context, arg ClearRuntimeWakeParams) error

func (*Queries) ClearSandboxGenerations

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

func (*Queries) CollectSandboxGenerations

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

func (*Queries) CompleteEnvironmentInitialization

func (q *Queries) CompleteEnvironmentInitialization(ctx context.Context, id pgtype.UUID) (int64, error)

func (*Queries) CompleteOnceAutomation added in v0.0.14

func (q *Queries) CompleteOnceAutomation(ctx context.Context, id pgtype.UUID) error

func (*Queries) CompleteSandboxReset

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

func (*Queries) ConnectRuntimeNode

func (q *Queries) ConnectRuntimeNode(ctx context.Context, arg ConnectRuntimeNodeParams) (int64, error)

func (*Queries) ConsumeRuntimeEnrollment

func (q *Queries) ConsumeRuntimeEnrollment(ctx context.Context, arg ConsumeRuntimeEnrollmentParams) (int64, error)

func (*Queries) CoreDatabaseSize

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

func (*Queries) CoreExecutionSnapshot

func (q *Queries) CoreExecutionSnapshot(ctx context.Context, arg CoreExecutionSnapshotParams) (CoreExecutionSnapshotRow, error)

func (*Queries) CoreInterruptedTurns

func (q *Queries) CoreInterruptedTurns(ctx context.Context, arg CoreInterruptedTurnsParams) (int64, error)

func (*Queries) CoreQueueWaitBuckets

func (q *Queries) CoreQueueWaitBuckets(ctx context.Context, arg CoreQueueWaitBucketsParams) ([]CoreQueueWaitBucketsRow, error)

func (*Queries) CoreQueueWaitSummary

func (q *Queries) CoreQueueWaitSummary(ctx context.Context, arg CoreQueueWaitSummaryParams) (CoreQueueWaitSummaryRow, error)

func (*Queries) CountAddressBindings

func (q *Queries) CountAddressBindings(ctx context.Context, publicUrl string) (CountAddressBindingsRow, error)

func (*Queries) CountRuntimeDeploymentResources

func (q *Queries) CountRuntimeDeploymentResources(ctx context.Context) (CountRuntimeDeploymentResourcesRow, error)

func (*Queries) CountTurnEvent

func (q *Queries) CountTurnEvent(ctx context.Context, arg CountTurnEventParams) error

func (*Queries) CreateAgent

func (q *Queries) CreateAgent(ctx context.Context, arg CreateAgentParams) (Agent, error)

func (*Queries) CreateDevice

func (q *Queries) CreateDevice(ctx context.Context, arg CreateDeviceParams) (pgtype.UUID, error)

func (*Queries) CreateEnvironment

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

A creation identity makes the Environment standalone; without one a Session owns it.

func (*Queries) CreateEnvironmentDevice

func (q *Queries) CreateEnvironmentDevice(ctx context.Context, arg CreateEnvironmentDeviceParams) (pgtype.UUID, error)

func (*Queries) CreateEnvironmentFileWrite

func (q *Queries) CreateEnvironmentFileWrite(ctx context.Context, arg CreateEnvironmentFileWriteParams) (EnvironmentFileWrite, error)

func (*Queries) CreateEnvironmentSetup

func (q *Queries) CreateEnvironmentSetup(ctx context.Context, arg CreateEnvironmentSetupParams) error

func (*Queries) CreateFunctionCall

func (q *Queries) CreateFunctionCall(ctx context.Context, arg CreateFunctionCallParams) (int64, error)

func (*Queries) CreateInitialEnvironmentFile

func (q *Queries) CreateInitialEnvironmentFile(ctx context.Context, arg CreateInitialEnvironmentFileParams) error

func (*Queries) CreateOAuthCredential

func (q *Queries) CreateOAuthCredential(ctx context.Context, arg CreateOAuthCredentialParams) (CreateOAuthCredentialRow, error)

func (*Queries) CreateProject

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

func (*Queries) CreateProjectAPIKey

func (q *Queries) CreateProjectAPIKey(ctx context.Context, arg CreateProjectAPIKeyParams) (ProjectApiKey, error)

func (*Queries) CreateRuntimeAllocation

func (q *Queries) CreateRuntimeAllocation(ctx context.Context, arg CreateRuntimeAllocationParams) (RuntimeAllocation, error)

func (*Queries) CreateRuntimeEnrollment

func (q *Queries) CreateRuntimeEnrollment(ctx context.Context, arg CreateRuntimeEnrollmentParams) error

func (*Queries) CreateRuntimePlacement

func (q *Queries) CreateRuntimePlacement(ctx context.Context, arg CreateRuntimePlacementParams) error

func (*Queries) CreateSession

func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (Session, error)

func (*Queries) CreateSkill

func (q *Queries) CreateSkill(ctx context.Context, arg CreateSkillParams) (Skill, error)

func (*Queries) CreateSkillVersion

func (q *Queries) CreateSkillVersion(ctx context.Context, arg CreateSkillVersionParams) (CreateSkillVersionRow, error)

func (*Queries) CreateSourceFile

func (q *Queries) CreateSourceFile(ctx context.Context, arg CreateSourceFileParams) (SourceFile, error)

func (*Queries) CreateStaticCredential

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

func (*Queries) CreateTurn

func (q *Queries) CreateTurn(ctx context.Context, arg CreateTurnParams) (Turn, error)

func (*Queries) CreateTurnInput

func (q *Queries) CreateTurnInput(ctx context.Context, arg CreateTurnInputParams) (int64, error)

func (*Queries) CreateVault

func (q *Queries) CreateVault(ctx context.Context, arg CreateVaultParams) (Vault, error)

func (*Queries) DeleteAgent

func (q *Queries) DeleteAgent(ctx context.Context, arg DeleteAgentParams) (pgtype.UUID, error)

func (*Queries) DeleteAgentModelExecution

func (q *Queries) DeleteAgentModelExecution(ctx context.Context, agentID pgtype.UUID) error

func (*Queries) DeleteAutomation added in v0.0.14

func (q *Queries) DeleteAutomation(ctx context.Context, arg DeleteAutomationParams) (pgtype.UUID, error)

func (*Queries) DeleteCredential

func (q *Queries) DeleteCredential(ctx context.Context, arg DeleteCredentialParams) (pgtype.UUID, error)

func (*Queries) DeleteDeploymentModelProvider

func (q *Queries) DeleteDeploymentModelProvider(ctx context.Context, harness string) (int64, error)

func (*Queries) DeleteEnvironmentConnection

func (q *Queries) DeleteEnvironmentConnection(ctx context.Context, environmentID pgtype.UUID) error

func (*Queries) DeleteEnvironmentTemplate

func (q *Queries) DeleteEnvironmentTemplate(ctx context.Context, arg DeleteEnvironmentTemplateParams) (pgtype.UUID, error)

func (*Queries) DeleteExpiredWriteOperations

func (q *Queries) DeleteExpiredWriteOperations(ctx context.Context, arg DeleteExpiredWriteOperationsParams) (int64, error)

func (*Queries) DeleteNodeGenerationStatus

func (q *Queries) DeleteNodeGenerationStatus(ctx context.Context, arg DeleteNodeGenerationStatusParams) error

func (*Queries) DeleteSessionArtifact

func (q *Queries) DeleteSessionArtifact(ctx context.Context, arg DeleteSessionArtifactParams) (pgtype.Uint32, error)

func (*Queries) DeleteSessionArtifacts

func (q *Queries) DeleteSessionArtifacts(ctx context.Context, sessionID pgtype.UUID) error

func (*Queries) DeleteSkill

func (q *Queries) DeleteSkill(ctx context.Context, arg DeleteSkillParams) (pgtype.UUID, error)

func (*Queries) DeleteSkillVersion

func (q *Queries) DeleteSkillVersion(ctx context.Context, arg DeleteSkillVersionParams) (DeleteSkillVersionRow, error)

func (*Queries) DeleteSourceFile

func (q *Queries) DeleteSourceFile(ctx context.Context, arg DeleteSourceFileParams) (pgtype.Uint32, error)

func (*Queries) DeleteUnchangedTurnArtifacts

func (q *Queries) DeleteUnchangedTurnArtifacts(ctx context.Context, arg DeleteUnchangedTurnArtifactsParams) error

A staged path is not republished while the newest remaining published Artifact for that path in the Session has the same bytes. Newest follows the producing Turn's database creation time: Turns in a Session are serialized, while publication time may come from the Runtime's reported completion.

func (*Queries) DeleteUnpublishedTurnArtifacts

func (q *Queries) DeleteUnpublishedTurnArtifacts(ctx context.Context, arg DeleteUnpublishedTurnArtifactsParams) error

func (*Queries) DeleteVault

func (q *Queries) DeleteVault(ctx context.Context, arg DeleteVaultParams) (pgtype.UUID, error)

func (*Queries) DeliverableInvocations added in v0.0.14

func (q *Queries) DeliverableInvocations(ctx context.Context, pageLimit int32) ([]DeliverableInvocationsRow, error)

func (*Queries) DisconnectRuntimeNode

func (q *Queries) DisconnectRuntimeNode(ctx context.Context, arg DisconnectRuntimeNodeParams) error

func (*Queries) DueAutomationIDs added in v0.0.14

func (q *Queries) DueAutomationIDs(ctx context.Context, arg DueAutomationIDsParams) ([]DueAutomationIDsRow, error)

func (*Queries) EndUnattachedStandaloneEnvironment added in v0.0.14

func (q *Queries) EndUnattachedStandaloneEnvironment(ctx context.Context, id pgtype.UUID) error

An unattached standalone Environment whose compute is gone or being removed has nothing to resume, so it ends. One that never had compute is waiting for its first placement and stays.

func (*Queries) EnrollRuntimeDevice

func (q *Queries) EnrollRuntimeDevice(ctx context.Context, arg EnrollRuntimeDeviceParams) (EnrollRuntimeDeviceRow, error)

func (*Queries) EnsureProjectScope

func (q *Queries) EnsureProjectScope(ctx context.Context, arg EnsureProjectScopeParams) (pgtype.UUID, error)

func (*Queries) EnvironmentFileWriteBlocksSession

func (q *Queries) EnvironmentFileWriteBlocksSession(ctx context.Context, id pgtype.UUID) (bool, error)

func (*Queries) EnvironmentFileWriteHasPendingInput

func (q *Queries) EnvironmentFileWriteHasPendingInput(ctx context.Context, sessionID pgtype.UUID) (bool, error)

func (*Queries) EnvironmentWorkspaceDeletable added in v0.0.14

func (q *Queries) EnvironmentWorkspaceDeletable(ctx context.Context, id pgtype.UUID) (bool, error)

func (*Queries) ExecutorProjectScopeExists

func (q *Queries) ExecutorProjectScopeExists(ctx context.Context, arg ExecutorProjectScopeExistsParams) (bool, error)

func (*Queries) ExpireEnvironment added in v0.0.14

func (q *Queries) ExpireEnvironment(ctx context.Context, arg ExpireEnvironmentParams) (int64, error)

func (*Queries) ExpireEnvironmentInputReservation

func (q *Queries) ExpireEnvironmentInputReservation(ctx context.Context, arg ExpireEnvironmentInputReservationParams) error

func (*Queries) ExpireRuntimeCheckpoint added in v0.0.12

func (q *Queries) ExpireRuntimeCheckpoint(ctx context.Context, arg ExpireRuntimeCheckpointParams) (RuntimeAllocation, error)

func (*Queries) FailEnvironmentInitialization

func (q *Queries) FailEnvironmentInitialization(ctx context.Context, id pgtype.UUID) error

func (*Queries) FailEnvironmentInput

func (q *Queries) FailEnvironmentInput(ctx context.Context, arg FailEnvironmentInputParams) (int64, error)

func (*Queries) FailSessionEnvironmentInput

func (q *Queries) FailSessionEnvironmentInput(ctx context.Context, sessionID pgtype.UUID) error

func (*Queries) FindEnvironmentCreation added in v0.0.14

func (q *Queries) FindEnvironmentCreation(ctx context.Context, arg FindEnvironmentCreationParams) (FindEnvironmentCreationRow, error)

func (*Queries) FindFunctionCallTurn added in v0.0.13

func (q *Queries) FindFunctionCallTurn(ctx context.Context, arg FindFunctionCallTurnParams) (FindFunctionCallTurnRow, error)

func (*Queries) FindInputBatch

func (q *Queries) FindInputBatch(ctx context.Context, arg FindInputBatchParams) ([]FindInputBatchRow, error)

func (*Queries) FindMCPCredentials

func (q *Queries) FindMCPCredentials(ctx context.Context, arg FindMCPCredentialsParams) ([]FindMCPCredentialsRow, error)

An explicit credential ID is found in the attached Vaults by ID alone, so the caller can compare its destination; otherwise the exact destination selects.

func (*Queries) FindSessionCreation

func (q *Queries) FindSessionCreation(ctx context.Context, arg FindSessionCreationParams) (Session, error)

func (*Queries) FinishSessionItems

func (q *Queries) FinishSessionItems(ctx context.Context, arg FinishSessionItemsParams) error

The finished Items share one settlement time; an Item keeps a settlement time it already has.

func (*Queries) ForceSandboxReset

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

func (*Queries) FunctionItemResult

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

func (*Queries) GetActiveTurn

func (q *Queries) GetActiveTurn(ctx context.Context, sessionID pgtype.UUID) (Turn, error)

func (*Queries) GetActiveWorkspaceConfiguration added in v0.0.10

func (q *Queries) GetActiveWorkspaceConfiguration(ctx context.Context) (WorkspaceFsConfiguration, error)

func (*Queries) GetAgent

func (q *Queries) GetAgent(ctx context.Context, arg GetAgentParams) (Agent, error)

func (*Queries) GetAttachedVaultIDs

func (q *Queries) GetAttachedVaultIDs(ctx context.Context, arg GetAttachedVaultIDsParams) ([]pgtype.UUID, error)

func (*Queries) GetAutomation added in v0.0.14

func (q *Queries) GetAutomation(ctx context.Context, arg GetAutomationParams) (GetAutomationRow, error)

func (*Queries) GetChildItem

func (q *Queries) GetChildItem(ctx context.Context, arg GetChildItemParams) (GetChildItemRow, error)

func (*Queries) GetChildTurn

func (q *Queries) GetChildTurn(ctx context.Context, arg GetChildTurnParams) (SubagentTurn, error)

func (*Queries) GetCredential

func (q *Queries) GetCredential(ctx context.Context, arg GetCredentialParams) (GetCredentialRow, error)

func (*Queries) GetDeploymentModelProviderSecret

func (q *Queries) GetDeploymentModelProviderSecret(ctx context.Context, harness string) (GetDeploymentModelProviderSecretRow, error)

func (*Queries) GetDevice

func (q *Queries) GetDevice(ctx context.Context, arg GetDeviceParams) (GetDeviceRow, error)

func (*Queries) GetDeviceCredential

func (q *Queries) GetDeviceCredential(ctx context.Context, id pgtype.UUID) (GetDeviceCredentialRow, error)

func (*Queries) GetEnvironment

func (q *Queries) GetEnvironment(ctx context.Context, arg GetEnvironmentParams) (GetEnvironmentRow, error)

func (*Queries) GetEnvironmentAttachment added in v0.0.14

func (*Queries) GetEnvironmentConnection

func (q *Queries) GetEnvironmentConnection(ctx context.Context, environmentID pgtype.UUID) (EnvironmentConnection, error)

func (*Queries) GetEnvironmentDevice added in v0.0.14

func (q *Queries) GetEnvironmentDevice(ctx context.Context, arg GetEnvironmentDeviceParams) (GetEnvironmentDeviceRow, error)

func (*Queries) GetEnvironmentFileWrite

func (q *Queries) GetEnvironmentFileWrite(ctx context.Context, arg GetEnvironmentFileWriteParams) (GetEnvironmentFileWriteRow, error)

func (*Queries) GetEnvironmentInputActivity

func (q *Queries) GetEnvironmentInputActivity(ctx context.Context, id pgtype.UUID) (GetEnvironmentInputActivityRow, error)

func (*Queries) GetEnvironmentSetup

func (q *Queries) GetEnvironmentSetup(ctx context.Context, arg GetEnvironmentSetupParams) (GetEnvironmentSetupRow, error)

func (*Queries) GetEnvironmentTemplate

func (q *Queries) GetEnvironmentTemplate(ctx context.Context, arg GetEnvironmentTemplateParams) (GetEnvironmentTemplateRow, error)

func (*Queries) GetEnvironmentWorkspace added in v0.0.10

func (q *Queries) GetEnvironmentWorkspace(ctx context.Context, arg GetEnvironmentWorkspaceParams) (GetEnvironmentWorkspaceRow, error)

func (*Queries) GetExecutorCredentialForPrincipal

func (q *Queries) GetExecutorCredentialForPrincipal(ctx context.Context, arg GetExecutorCredentialForPrincipalParams) (pgtype.UUID, error)

func (*Queries) GetFunctionCall

func (q *Queries) GetFunctionCall(ctx context.Context, arg GetFunctionCallParams) (FunctionCall, error)

func (*Queries) GetInvocation added in v0.0.14

func (q *Queries) GetInvocation(ctx context.Context, arg GetInvocationParams) (GetInvocationRow, error)

func (*Queries) GetLatestRuntimeAllocation added in v0.0.10

func (*Queries) GetLatestSessionTurn

func (q *Queries) GetLatestSessionTurn(ctx context.Context, sessionID pgtype.UUID) (Turn, error)

func (*Queries) GetMCPStaticCredentialCiphertext

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

func (*Queries) GetManagedSessionArchive

func (*Queries) GetNativeSubagent

func (q *Queries) GetNativeSubagent(ctx context.Context, arg GetNativeSubagentParams) (SubagentIdentity, error)

func (*Queries) GetNodeGenerationSpecification

func (q *Queries) GetNodeGenerationSpecification(ctx context.Context, generation int64) (GetNodeGenerationSpecificationRow, error)

func (*Queries) GetProject

func (q *Queries) GetProject(ctx context.Context, id pgtype.UUID) (GetProjectRow, error)

func (*Queries) GetProjectAPIKeyForProject

func (q *Queries) GetProjectAPIKeyForProject(ctx context.Context, arg GetProjectAPIKeyForProjectParams) (ProjectApiKey, error)

func (*Queries) GetPublicSubagent

func (q *Queries) GetPublicSubagent(ctx context.Context, arg GetPublicSubagentParams) (GetPublicSubagentRow, error)

func (*Queries) GetResourceOwners

func (q *Queries) GetResourceOwners(ctx context.Context, arg GetResourceOwnersParams) ([]GetResourceOwnersRow, error)

func (*Queries) GetRuntimeActivity

func (q *Queries) GetRuntimeActivity(ctx context.Context, id pgtype.UUID) (GetRuntimeActivityRow, error)

func (*Queries) GetRuntimeDeployment

func (q *Queries) GetRuntimeDeployment(ctx context.Context) (RuntimeDeployment, error)

func (*Queries) GetRuntimeEnrollment

func (q *Queries) GetRuntimeEnrollment(ctx context.Context, tokenSha256 string) (RuntimeNodeEnrollment, error)

func (*Queries) GetRuntimeNode

func (q *Queries) GetRuntimeNode(ctx context.Context, id pgtype.UUID) (RuntimeNode, error)

func (*Queries) GetRuntimePlacement

func (q *Queries) GetRuntimePlacement(ctx context.Context, environmentID pgtype.UUID) (GetRuntimePlacementRow, error)

func (*Queries) GetSandboxDeploymentSnapshot

func (q *Queries) GetSandboxDeploymentSnapshot(ctx context.Context) (GetSandboxDeploymentSnapshotRow, error)

func (*Queries) GetSandboxGeneration

func (q *Queries) GetSandboxGeneration(ctx context.Context, generation int64) (RuntimeDeploymentGeneration, error)

func (*Queries) GetSandboxResetProject

func (q *Queries) GetSandboxResetProject(ctx context.Context, tenantID pgtype.UUID) (pgtype.UUID, error)

func (*Queries) GetSession

func (q *Queries) GetSession(ctx context.Context, arg GetSessionParams) (Session, error)

func (*Queries) GetSessionArtifact

func (q *Queries) GetSessionArtifact(ctx context.Context, arg GetSessionArtifactParams) (SessionArtifact, error)

func (*Queries) GetSessionConfiguration added in v0.0.14

func (q *Queries) GetSessionConfiguration(ctx context.Context, id pgtype.UUID) ([]byte, error)

func (*Queries) GetSessionCursor added in v0.0.13

func (q *Queries) GetSessionCursor(ctx context.Context, arg GetSessionCursorParams) (GetSessionCursorRow, error)

func (*Queries) GetSessionDevice

func (q *Queries) GetSessionDevice(ctx context.Context, arg GetSessionDeviceParams) (GetSessionDeviceRow, error)

func (*Queries) GetSessionEnvironment

func (q *Queries) GetSessionEnvironment(ctx context.Context, arg GetSessionEnvironmentParams) (GetSessionEnvironmentRow, error)

func (*Queries) GetSessionEnvironmentID added in v0.0.14

func (q *Queries) GetSessionEnvironmentID(ctx context.Context, id pgtype.UUID) (pgtype.UUID, error)

func (*Queries) GetSessionInitializationReady

func (q *Queries) GetSessionInitializationReady(ctx context.Context, arg GetSessionInitializationReadyParams) (bool, error)

func (*Queries) GetSessionItem

func (q *Queries) GetSessionItem(ctx context.Context, arg GetSessionItemParams) (SessionItem, error)

func (*Queries) GetSessionModelExecution

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

func (*Queries) GetSkill

func (q *Queries) GetSkill(ctx context.Context, arg GetSkillParams) (Skill, error)

func (*Queries) GetSkillVersion

func (q *Queries) GetSkillVersion(ctx context.Context, arg GetSkillVersionParams) (GetSkillVersionRow, error)

func (*Queries) GetSkillVersionByID

func (q *Queries) GetSkillVersionByID(ctx context.Context, arg GetSkillVersionByIDParams) (GetSkillVersionByIDRow, error)

Tenant-wide, so a list cursor can tell another Skill's version from a missing one.

func (*Queries) GetSourceFile

func (q *Queries) GetSourceFile(ctx context.Context, arg GetSourceFileParams) (SourceFile, error)

func (*Queries) GetStandaloneEnvironmentCursor added in v0.0.14

func (*Queries) GetSubagentIdentity

func (q *Queries) GetSubagentIdentity(ctx context.Context, arg GetSubagentIdentityParams) (GetSubagentIdentityRow, error)

func (*Queries) GetTurn

func (q *Queries) GetTurn(ctx context.Context, arg GetTurnParams) (Turn, error)

func (*Queries) GetVault

func (q *Queries) GetVault(ctx context.Context, arg GetVaultParams) (Vault, error)

func (*Queries) GetWorkspaceConfiguration added in v0.0.10

func (q *Queries) GetWorkspaceConfiguration(ctx context.Context, id pgtype.UUID) (WorkspaceFsConfiguration, error)

func (*Queries) GetWorkspaceSelection added in v0.0.10

func (q *Queries) GetWorkspaceSelection(ctx context.Context) (GetWorkspaceSelectionRow, error)

func (*Queries) GetWriteAuditCursor

func (q *Queries) GetWriteAuditCursor(ctx context.Context, arg GetWriteAuditCursorParams) (pgtype.Timestamptz, error)

func (*Queries) HasNativeMessageItem

func (q *Queries) HasNativeMessageItem(ctx context.Context, arg HasNativeMessageItemParams) (bool, error)

func (*Queries) HasUnappliedMessages

func (q *Queries) HasUnappliedMessages(ctx context.Context, arg HasUnappliedMessagesParams) (bool, error)

func (*Queries) HeartbeatRuntimeNode

func (q *Queries) HeartbeatRuntimeNode(ctx context.Context, arg HeartbeatRuntimeNodeParams) (int64, error)

func (*Queries) InitializeSandboxDeployment

func (q *Queries) InitializeSandboxDeployment(ctx context.Context, arg InitializeSandboxDeploymentParams) error

func (*Queries) InsertAdminAudit

func (q *Queries) InsertAdminAudit(ctx context.Context, arg InsertAdminAuditParams) (pgtype.UUID, error)

func (*Queries) InsertAutomation added in v0.0.14

func (q *Queries) InsertAutomation(ctx context.Context, arg InsertAutomationParams) (pgtype.Timestamptz, error)

func (*Queries) InsertEnvironmentWorkspace added in v0.0.10

func (q *Queries) InsertEnvironmentWorkspace(ctx context.Context, arg InsertEnvironmentWorkspaceParams) error

func (*Queries) InsertManualInvocation added in v0.0.14

func (q *Queries) InsertManualInvocation(ctx context.Context, arg InsertManualInvocationParams) (InsertManualInvocationRow, error)

func (*Queries) InsertRuntimeHistorySample

func (q *Queries) InsertRuntimeHistorySample(ctx context.Context, arg InsertRuntimeHistorySampleParams) error

func (*Queries) InsertRuntimeNode

func (q *Queries) InsertRuntimeNode(ctx context.Context, arg InsertRuntimeNodeParams) (RuntimeNode, error)

func (*Queries) InsertScheduledInvocation added in v0.0.14

func (q *Queries) InsertScheduledInvocation(ctx context.Context, arg InsertScheduledInvocationParams) error

func (*Queries) InsertTurnEvent

func (q *Queries) InsertTurnEvent(ctx context.Context, arg InsertTurnEventParams) error

func (*Queries) InsertTurnEventBatch

func (q *Queries) InsertTurnEventBatch(ctx context.Context, arg InsertTurnEventBatchParams) error

func (*Queries) InsertWorkspaceConfiguration added in v0.0.10

func (q *Queries) InsertWorkspaceConfiguration(ctx context.Context, arg InsertWorkspaceConfigurationParams) error

func (*Queries) InsertWriteAuditOperation

func (q *Queries) InsertWriteAuditOperation(ctx context.Context, arg InsertWriteAuditOperationParams) (pgtype.UUID, error)

func (*Queries) InsertWriteAuditOwner

func (q *Queries) InsertWriteAuditOwner(ctx context.Context, arg InsertWriteAuditOwnerParams) error

func (*Queries) IsUnattachedRuntimeEnvironment added in v0.0.14

func (q *Queries) IsUnattachedRuntimeEnvironment(ctx context.Context, id pgtype.UUID) (bool, error)

An active Environment without a live Session is an unattached standalone one: a Session-owned Environment has ended once its Session is gone.

func (*Queries) IssueExecutorCredential

func (q *Queries) IssueExecutorCredential(ctx context.Context, arg IssueExecutorCredentialParams) (IssueExecutorCredentialRow, error)

func (*Queries) ItemEventSources

func (q *Queries) ItemEventSources(ctx context.Context, arg ItemEventSourcesParams) ([]TurnEvent, error)

func (*Queries) ItemInputSource

func (q *Queries) ItemInputSource(ctx context.Context, arg ItemInputSourceParams) (TurnInput, error)

func (*Queries) ListAdminAuditLog

func (q *Queries) ListAdminAuditLog(ctx context.Context, arg ListAdminAuditLogParams) ([]AdminAuditLog, error)

func (*Queries) ListAgents

func (q *Queries) ListAgents(ctx context.Context, arg ListAgentsParams) ([]Agent, error)

func (*Queries) ListAutomations added in v0.0.14

func (q *Queries) ListAutomations(ctx context.Context, arg ListAutomationsParams) ([]ListAutomationsRow, error)

func (*Queries) ListCheckpointGenerationNodes added in v0.0.10

func (q *Queries) ListCheckpointGenerationNodes(ctx context.Context, generation int64) ([]ListCheckpointGenerationNodesRow, error)

func (*Queries) ListChildItems

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

func (*Queries) ListChildTurns

func (q *Queries) ListChildTurns(ctx context.Context, arg ListChildTurnsParams) ([]SubagentTurn, error)

func (*Queries) ListCredentials

func (q *Queries) ListCredentials(ctx context.Context, arg ListCredentialsParams) ([]ListCredentialsRow, error)

func (*Queries) ListDeploymentModelProviders

func (q *Queries) ListDeploymentModelProviders(ctx context.Context) ([]ListDeploymentModelProvidersRow, error)

func (*Queries) ListDueEnvironmentInputs

func (q *Queries) ListDueEnvironmentInputs(ctx context.Context) ([]ListDueEnvironmentInputsRow, error)

func (*Queries) ListEnrolledRuntimeBindings

func (q *Queries) ListEnrolledRuntimeBindings(ctx context.Context) ([]ListEnrolledRuntimeBindingsRow, error)

func (*Queries) ListEnvironmentConnections

func (q *Queries) ListEnvironmentConnections(ctx context.Context, id pgtype.UUID) ([]ListEnvironmentConnectionsRow, error)

func (*Queries) ListEnvironmentInitializations

func (q *Queries) ListEnvironmentInitializations(ctx context.Context, id pgtype.UUID) ([]ListEnvironmentInitializationsRow, error)

func (*Queries) ListEnvironmentInputWork

func (q *Queries) ListEnvironmentInputWork(ctx context.Context, arg ListEnvironmentInputWorkParams) ([]ListEnvironmentInputWorkRow, error)

func (*Queries) ListEnvironmentTemplates

func (q *Queries) ListEnvironmentTemplates(ctx context.Context, arg ListEnvironmentTemplatesParams) ([]ListEnvironmentTemplatesRow, error)

func (*Queries) ListExecutionDevices

func (q *Queries) ListExecutionDevices(ctx context.Context, tenantID pgtype.UUID) ([]ListExecutionDevicesRow, error)

func (*Queries) ListExecutionWork

func (q *Queries) ListExecutionWork(ctx context.Context, arg ListExecutionWorkParams) ([]ListExecutionWorkRow, error)

func (*Queries) ListIdleRuntimeCheckpoints added in v0.0.12

func (q *Queries) ListIdleRuntimeCheckpoints(ctx context.Context, nodeID pgtype.UUID) ([]pgtype.UUID, error)

func (*Queries) ListInvocations added in v0.0.14

func (q *Queries) ListInvocations(ctx context.Context, arg ListInvocationsParams) ([]ListInvocationsRow, error)

func (*Queries) ListNodeHostHistory

func (q *Queries) ListNodeHostHistory(ctx context.Context, arg ListNodeHostHistoryParams) ([]ListNodeHostHistoryRow, error)

func (*Queries) ListNodeRuntimeAllocations

func (q *Queries) ListNodeRuntimeAllocations(ctx context.Context, nodeID pgtype.UUID) ([]ListNodeRuntimeAllocationsRow, error)

func (*Queries) ListPendingFunctionCalls

func (q *Queries) ListPendingFunctionCalls(ctx context.Context, arg ListPendingFunctionCallsParams) ([]FunctionCall, error)

func (*Queries) ListPlacementDemand added in v0.0.10

func (q *Queries) ListPlacementDemand(ctx context.Context, arg ListPlacementDemandParams) ([]ListPlacementDemandRow, error)

func (*Queries) ListProjectAPIKeys

func (q *Queries) ListProjectAPIKeys(ctx context.Context, arg ListProjectAPIKeysParams) ([]ProjectApiKey, error)

func (*Queries) ListProjects

func (q *Queries) ListProjects(ctx context.Context, arg ListProjectsParams) ([]ListProjectsRow, error)

func (*Queries) ListPublicSubagents

func (q *Queries) ListPublicSubagents(ctx context.Context, arg ListPublicSubagentsParams) ([]pgtype.UUID, error)

func (*Queries) ListRootTurns

func (q *Queries) ListRootTurns(ctx context.Context, arg ListRootTurnsParams) ([]Turn, error)

Session Turn reads carry root work only. Child Turns remain in subagent_turns and are read through the Subagent queries.

func (*Queries) ListRuntimeAllocations

func (q *Queries) ListRuntimeAllocations(ctx context.Context, id pgtype.UUID) ([]ListRuntimeAllocationsRow, error)

func (*Queries) ListRuntimeHistorySamples

func (q *Queries) ListRuntimeHistorySamples(ctx context.Context, arg ListRuntimeHistorySamplesParams) ([]RuntimeHistorySample, error)

func (*Queries) ListRuntimeLifecycleNodes

func (q *Queries) ListRuntimeLifecycleNodes(ctx context.Context) ([]pgtype.UUID, error)

func (*Queries) ListRuntimeNodes

func (q *Queries) ListRuntimeNodes(ctx context.Context, nodeID pgtype.UUID) ([]ListRuntimeNodesRow, error)

func (*Queries) ListRuntimeStartingNodes added in v0.0.13

func (q *Queries) ListRuntimeStartingNodes(ctx context.Context) ([]pgtype.UUID, error)

A node is starting a Session while that Session's sandbox is not created or its initialization has not finished.

func (*Queries) ListRuntimeSuspensionInFlightNodes added in v0.0.10

func (q *Queries) ListRuntimeSuspensionInFlightNodes(ctx context.Context) ([]pgtype.UUID, error)

func (*Queries) ListSandboxGenerations

func (q *Queries) ListSandboxGenerations(ctx context.Context, generation int64) ([]RuntimeDeploymentGeneration, error)

func (*Queries) ListSandboxResetCandidates added in v0.0.14

func (q *Queries) ListSandboxResetCandidates(ctx context.Context, arg ListSandboxResetCandidatesParams) ([]ListSandboxResetCandidatesRow, error)

Each hosted Environment that holds reset resources, with its live Session: the reset archives the Session, or expires an unattached standalone one.

func (*Queries) ListSessionArtifacts

func (q *Queries) ListSessionArtifacts(ctx context.Context, arg ListSessionArtifactsParams) ([]SessionArtifact, error)

func (*Queries) ListSessionEvents

func (q *Queries) ListSessionEvents(ctx context.Context, arg ListSessionEventsParams) ([]ListSessionEventsRow, error)

func (*Queries) ListSessionItems

func (q *Queries) ListSessionItems(ctx context.Context, arg ListSessionItemsParams) ([]ListSessionItemsRow, error)

func (*Queries) ListSessions

func (q *Queries) ListSessions(ctx context.Context, arg ListSessionsParams) ([]Session, error)

func (*Queries) ListSkillVersions

func (q *Queries) ListSkillVersions(ctx context.Context, arg ListSkillVersionsParams) ([]ListSkillVersionsRow, error)

func (*Queries) ListSkills

func (q *Queries) ListSkills(ctx context.Context, arg ListSkillsParams) ([]Skill, error)

func (*Queries) ListSourceFiles

func (q *Queries) ListSourceFiles(ctx context.Context, arg ListSourceFilesParams) ([]SourceFile, error)

func (*Queries) ListStandaloneEnvironments added in v0.0.14

func (q *Queries) ListStandaloneEnvironments(ctx context.Context, arg ListStandaloneEnvironmentsParams) ([]ListStandaloneEnvironmentsRow, error)

func (*Queries) ListTurnEvents

func (q *Queries) ListTurnEvents(ctx context.Context, arg ListTurnEventsParams) ([]TurnEvent, error)

func (*Queries) ListTurnInputs

func (q *Queries) ListTurnInputs(ctx context.Context, arg ListTurnInputsParams) ([]TurnInput, error)

func (*Queries) ListTurnItemDiagnostics

func (q *Queries) ListTurnItemDiagnostics(ctx context.Context, arg ListTurnItemDiagnosticsParams) ([]ListTurnItemDiagnosticsRow, error)

func (*Queries) ListUnfinishedSessionItems

func (q *Queries) ListUnfinishedSessionItems(ctx context.Context, arg ListUnfinishedSessionItemsParams) ([]ListUnfinishedSessionItemsRow, error)

func (*Queries) ListVaults

func (q *Queries) ListVaults(ctx context.Context, arg ListVaultsParams) ([]Vault, error)

func (*Queries) ListWaitingCheckpointRestores added in v0.0.10

func (q *Queries) ListWaitingCheckpointRestores(ctx context.Context) ([]ListWaitingCheckpointRestoresRow, error)

func (*Queries) ListWorkspaceDeletionCandidates added in v0.0.10

func (q *Queries) ListWorkspaceDeletionCandidates(ctx context.Context, objectID pgtype.UUID) ([]ListWorkspaceDeletionCandidatesRow, error)

func (*Queries) ListWriteOperations

func (q *Queries) ListWriteOperations(ctx context.Context, arg ListWriteOperationsParams) ([]ListWriteOperationsRow, error)

func (*Queries) LockAgent

func (q *Queries) LockAgent(ctx context.Context, arg LockAgentParams) (Agent, error)

func (*Queries) LockAutomation added in v0.0.14

func (q *Queries) LockAutomation(ctx context.Context, arg LockAutomationParams) (LockAutomationRow, error)

func (*Queries) LockEnvironment added in v0.0.14

func (q *Queries) LockEnvironment(ctx context.Context, arg LockEnvironmentParams) (pgtype.UUID, error)

func (*Queries) LockEnvironmentCreation added in v0.0.14

func (q *Queries) LockEnvironmentCreation(ctx context.Context, arg LockEnvironmentCreationParams) error

func (*Queries) LockProject

func (q *Queries) LockProject(ctx context.Context, id pgtype.UUID) (Project, error)

func (*Queries) LockProjectByTenant

func (q *Queries) LockProjectByTenant(ctx context.Context, tenantID pgtype.UUID) (Project, error)

func (*Queries) LockProjectForUpdate

func (q *Queries) LockProjectForUpdate(ctx context.Context, id pgtype.UUID) (Project, error)

func (*Queries) LockRuntimeDeployment

func (q *Queries) LockRuntimeDeployment(ctx context.Context) (RuntimeDeployment, error)

func (*Queries) LockRuntimeNodePresence

func (q *Queries) LockRuntimeNodePresence(ctx context.Context, id pgtype.UUID) (pgtype.UUID, error)

func (*Queries) LockSession

func (q *Queries) LockSession(ctx context.Context, arg LockSessionParams) (LockSessionRow, error)

func (*Queries) LockSkill

func (q *Queries) LockSkill(ctx context.Context, arg LockSkillParams) (Skill, error)

func (*Queries) LockSourceFile added in v0.0.10

func (q *Queries) LockSourceFile(ctx context.Context, arg LockSourceFileParams) (SourceFile, error)

func (*Queries) LockVisibleSession added in v0.0.14

func (q *Queries) LockVisibleSession(ctx context.Context, arg LockVisibleSessionParams) (Session, error)

func (*Queries) LockWorkspaceAdmission added in v0.0.10

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

func (*Queries) LockWorkspaceConfigurations added in v0.0.10

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

func (*Queries) LockWorkspaceTenant added in v0.0.10

func (q *Queries) LockWorkspaceTenant(ctx context.Context, tenantID pgtype.UUID) error

func (*Queries) MarkSessionDeleted

func (q *Queries) MarkSessionDeleted(ctx context.Context, id pgtype.UUID) error

func (*Queries) MarkSessionModelSource added in v0.0.14

func (q *Queries) MarkSessionModelSource(ctx context.Context, arg MarkSessionModelSourceParams) error

func (*Queries) MarkWorkspaceDeleted added in v0.0.10

func (q *Queries) MarkWorkspaceDeleted(ctx context.Context, objectID pgtype.UUID) (int64, error)

func (*Queries) MarkWorkspaceReady added in v0.0.10

func (q *Queries) MarkWorkspaceReady(ctx context.Context, arg MarkWorkspaceReadyParams) (int64, error)

func (*Queries) MatchFunctionCall

func (q *Queries) MatchFunctionCall(ctx context.Context, arg MatchFunctionCallParams) (bool, error)

func (*Queries) MatchFunctionResult

func (q *Queries) MatchFunctionResult(ctx context.Context, arg MatchFunctionResultParams) (MatchFunctionResultRow, error)

func (*Queries) MatchTurnEventBatch

func (q *Queries) MatchTurnEventBatch(ctx context.Context, arg MatchTurnEventBatchParams) (bool, error)

func (*Queries) MatchWorkspaceConfiguration added in v0.0.10

func (*Queries) MoveSuspendedRuntimeCompute added in v0.0.10

func (q *Queries) MoveSuspendedRuntimeCompute(ctx context.Context, arg MoveSuspendedRuntimeComputeParams) (RuntimeAllocation, error)

func (*Queries) NodeGenerationKept

func (q *Queries) NodeGenerationKept(ctx context.Context, arg NodeGenerationKeptParams) (bool, error)

func (*Queries) NodeGenerationReady

func (q *Queries) NodeGenerationReady(ctx context.Context, arg NodeGenerationReadyParams) (bool, error)

func (*Queries) ObserveDeploymentModelProvider

func (q *Queries) ObserveDeploymentModelProvider(ctx context.Context, arg ObserveDeploymentModelProviderParams) (int64, error)

Root turns live in turns; child turns have their own table. Read only committed outcomes, lock only the matching default, and sample receipt time after its lock.

func (*Queries) ObserveRuntimeRunning

func (q *Queries) ObserveRuntimeRunning(ctx context.Context, id pgtype.UUID) (RuntimeAllocation, error)

func (*Queries) ProjectAPIKeyDigestExists

func (q *Queries) ProjectAPIKeyDigestExists(ctx context.Context, tokenSha256 string) (bool, error)

func (*Queries) PromoteNodeServingGeneration

func (q *Queries) PromoteNodeServingGeneration(ctx context.Context, arg PromoteNodeServingGenerationParams) error

func (*Queries) PruneNodeHostHistory

func (q *Queries) PruneNodeHostHistory(ctx context.Context, beforeAt pgtype.Timestamptz) (int64, error)

func (*Queries) PruneRuntimeHistorySamples

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

func (*Queries) PruneSessionEvents

func (q *Queries) PruneSessionEvents(ctx context.Context, arg PruneSessionEventsParams) error

func (*Queries) PublishSubagent

func (q *Queries) PublishSubagent(ctx context.Context, arg PublishSubagentParams) error

func (*Queries) PublishTurnArtifacts

func (q *Queries) PublishTurnArtifacts(ctx context.Context, arg PublishTurnArtifactsParams) error

func (*Queries) PutChildItem

func (q *Queries) PutChildItem(ctx context.Context, arg PutChildItemParams) (pgtype.Int4, error)

func (*Queries) PutChildTurn

func (q *Queries) PutChildTurn(ctx context.Context, arg PutChildTurnParams) (SubagentTurn, error)

func (*Queries) PutSessionItem

func (q *Queries) PutSessionItem(ctx context.Context, arg PutSessionItemParams) (SessionItem, error)

func (*Queries) PutSubagentEffect

func (q *Queries) PutSubagentEffect(ctx context.Context, arg PutSubagentEffectParams) (bool, error)

func (*Queries) PutSubagentIdentity

func (q *Queries) PutSubagentIdentity(ctx context.Context, arg PutSubagentIdentityParams) (pgtype.UUID, error)

func (*Queries) PutTurnUsage

func (q *Queries) PutTurnUsage(ctx context.Context, arg PutTurnUsageParams) error

func (*Queries) ReadDefaultSkillVersion

func (q *Queries) ReadDefaultSkillVersion(ctx context.Context, arg ReadDefaultSkillVersionParams) (SkillVersion, error)

func (*Queries) ReadSkillVersion

func (q *Queries) ReadSkillVersion(ctx context.Context, arg ReadSkillVersionParams) (SkillVersion, error)

func (*Queries) RecordEnvironmentFailure

func (q *Queries) RecordEnvironmentFailure(ctx context.Context, arg RecordEnvironmentFailureParams) (pgtype.Timestamptz, error)

func (*Queries) RecordEnvironmentInitializationSteps added in v0.0.13

func (q *Queries) RecordEnvironmentInitializationSteps(ctx context.Context, arg RecordEnvironmentInitializationStepsParams) error

func (*Queries) RecordRuntimeTerminalActivity

func (q *Queries) RecordRuntimeTerminalActivity(ctx context.Context, id pgtype.UUID) error

func (*Queries) RecordSandboxConfigurationMetadata

func (q *Queries) RecordSandboxConfigurationMetadata(ctx context.Context, providerMetadata []byte) error

func (*Queries) RecordStandaloneActivity added in v0.0.14

func (q *Queries) RecordStandaloneActivity(ctx context.Context, id pgtype.UUID) error

func (*Queries) RefreshLatestSkillVersion

func (q *Queries) RefreshLatestSkillVersion(ctx context.Context, arg RefreshLatestSkillVersionParams) error

func (*Queries) ReleaseFailedRuntimePlacement added in v0.0.10

func (q *Queries) ReleaseFailedRuntimePlacement(ctx context.Context, arg ReleaseFailedRuntimePlacementParams) error

func (*Queries) ReleaseInactiveRuntimePlacements added in v0.0.14

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

Environments that can no longer run work give up the placements they hold without compute.

func (*Queries) ReleaseRuntimeAllocation

func (q *Queries) ReleaseRuntimeAllocation(ctx context.Context, id pgtype.UUID) (RuntimeAllocation, error)

func (*Queries) ReleaseRuntimePlacement

func (q *Queries) ReleaseRuntimePlacement(ctx context.Context, environmentID pgtype.UUID) error

func (*Queries) RememberNativeSession

func (q *Queries) RememberNativeSession(ctx context.Context, arg RememberNativeSessionParams) (int64, error)

func (*Queries) RemoveRuntimeNode

func (q *Queries) RemoveRuntimeNode(ctx context.Context, id pgtype.UUID) error

func (*Queries) RenameProject

func (q *Queries) RenameProject(ctx context.Context, arg RenameProjectParams) error

func (*Queries) ReplaceEnvironmentConnection

func (q *Queries) ReplaceEnvironmentConnection(ctx context.Context, arg ReplaceEnvironmentConnectionParams) error

func (*Queries) RequestRuntimeCleanup

func (q *Queries) RequestRuntimeCleanup(ctx context.Context, id pgtype.UUID) (RuntimeAllocation, error)

func (*Queries) RequestTurnCancel

func (q *Queries) RequestTurnCancel(ctx context.Context, arg RequestTurnCancelParams) error

func (*Queries) ReserveReleasedRuntimePlacement added in v0.0.10

func (q *Queries) ReserveReleasedRuntimePlacement(ctx context.Context, arg ReserveReleasedRuntimePlacementParams) (int64, error)

func (*Queries) ResolveEnvironmentTemplate

func (q *Queries) ResolveEnvironmentTemplate(ctx context.Context, arg ResolveEnvironmentTemplateParams) (EnvironmentTemplate, error)

func (*Queries) ResolveProjectAPIKey

func (q *Queries) ResolveProjectAPIKey(ctx context.Context, tokenSha256 string) (ResolveProjectAPIKeyRow, error)

func (*Queries) RetainSandboxGeneration

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

func (*Queries) RetireSandboxEnrollments

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

func (*Queries) RetireSandboxNodes

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

func (*Queries) RevokeArchivedRuntimeDevice

func (q *Queries) RevokeArchivedRuntimeDevice(ctx context.Context, arg RevokeArchivedRuntimeDeviceParams) (int64, error)

func (*Queries) RevokeDevice

func (q *Queries) RevokeDevice(ctx context.Context, arg RevokeDeviceParams) (int64, error)

func (*Queries) RevokeExecutorCredential

func (q *Queries) RevokeExecutorCredential(ctx context.Context, arg RevokeExecutorCredentialParams) (int64, error)

func (*Queries) RevokeProjectAPIKey

func (q *Queries) RevokeProjectAPIKey(ctx context.Context, arg RevokeProjectAPIKeyParams) (ProjectApiKey, error)

func (*Queries) RevokeProjectKeys

func (q *Queries) RevokeProjectKeys(ctx context.Context, projectID pgtype.UUID) error

func (*Queries) RevokeRuntimeCleanupDevice

func (q *Queries) RevokeRuntimeCleanupDevice(ctx context.Context, arg RevokeRuntimeCleanupDeviceParams) (int64, error)

func (*Queries) RotateExecutorCredential

func (*Queries) RuntimeComputeBlocksAdmission

func (q *Queries) RuntimeComputeBlocksAdmission(ctx context.Context, id pgtype.UUID) (bool, error)

func (*Queries) SampleNodeHostHistory

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

func (*Queries) SaveAgentModelExecution

func (q *Queries) SaveAgentModelExecution(ctx context.Context, arg SaveAgentModelExecutionParams) error

func (*Queries) SaveSessionExecutionConfiguration

func (q *Queries) SaveSessionExecutionConfiguration(ctx context.Context, arg SaveSessionExecutionConfigurationParams) error

func (*Queries) SaveSessionModelExecution

func (q *Queries) SaveSessionModelExecution(ctx context.Context, arg SaveSessionModelExecutionParams) error

func (*Queries) SessionBlocksAutoReset

func (q *Queries) SessionBlocksAutoReset(ctx context.Context, sessionID pgtype.UUID) (bool, error)

func (*Queries) SessionEventCursor

func (q *Queries) SessionEventCursor(ctx context.Context, arg SessionEventCursorParams) (int64, error)

func (*Queries) SessionEventTurn

func (q *Queries) SessionEventTurn(ctx context.Context, arg SessionEventTurnParams) (Turn, error)

func (*Queries) SessionHasFunctionCall

func (q *Queries) SessionHasFunctionCall(ctx context.Context, arg SessionHasFunctionCallParams) (bool, error)

func (*Queries) SessionHasRuntimeNode

func (q *Queries) SessionHasRuntimeNode(ctx context.Context, id pgtype.UUID) (bool, error)

func (*Queries) SessionMeasuredTokenUsage

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

Core-internal measured usage for Runtime telemetry, not public Session usage: the sum of every recorded root Turn snapshot, including active Turns, null only when nothing is recorded. The tenant join keeps the read scoped.

func (*Queries) SessionTokenUsage

func (q *Queries) SessionTokenUsage(ctx context.Context, sessionID pgtype.UUID) ([]byte, error)

Session usage is the sum of its root Turns only when every one has ended with recorded usage. Officially it stayed null while a root Turn was in progress or waiting (ST-03), even after earlier Turns were measured, and after a Turn ended with unknown usage (EVT-13). Queued Turns count as not ended, and a snapshot recorded by an active Turn does not count yet.

func (*Queries) SetDefaultSkillVersion

func (q *Queries) SetDefaultSkillVersion(ctx context.Context, arg SetDefaultSkillVersionParams) (Skill, error)

func (*Queries) SetEnvironmentConnectionStatus

func (q *Queries) SetEnvironmentConnectionStatus(ctx context.Context, arg SetEnvironmentConnectionStatusParams) error

func (*Queries) SetEnvironmentInitialFileMetadata added in v0.0.14

func (q *Queries) SetEnvironmentInitialFileMetadata(ctx context.Context, arg SetEnvironmentInitialFileMetadataParams) error

func (*Queries) SetEnvironmentSetupMetadata added in v0.0.14

func (q *Queries) SetEnvironmentSetupMetadata(ctx context.Context, arg SetEnvironmentSetupMetadataParams) error

func (*Queries) SetRuntimeCompute

func (q *Queries) SetRuntimeCompute(ctx context.Context, arg SetRuntimeComputeParams) (RuntimeAllocation, error)

func (*Queries) SetRuntimeObservation

func (q *Queries) SetRuntimeObservation(ctx context.Context, arg SetRuntimeObservationParams) error

func (*Queries) SetWorkspaceTenantCapacity added in v0.0.10

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

func (*Queries) SettleEnvironmentFileWrite

func (q *Queries) SettleEnvironmentFileWrite(ctx context.Context, arg SettleEnvironmentFileWriteParams) (EnvironmentFileWrite, error)

func (*Queries) SettleInvocation added in v0.0.14

func (q *Queries) SettleInvocation(ctx context.Context, arg SettleInvocationParams) (SettleInvocationRow, error)

func (*Queries) SettleRuntimeCreation

func (q *Queries) SettleRuntimeCreation(ctx context.Context, id pgtype.UUID) (RuntimeAllocation, error)

func (*Queries) StageSessionArtifact

func (q *Queries) StageSessionArtifact(ctx context.Context, arg StageSessionArtifactParams) error

func (*Queries) StartSandboxReset

func (q *Queries) StartSandboxReset(ctx context.Context, arg StartSandboxResetParams) error

func (*Queries) SubagentRootAgent

func (q *Queries) SubagentRootAgent(ctx context.Context, id pgtype.UUID) (string, error)

func (*Queries) SubmitFunctionResult

func (q *Queries) SubmitFunctionResult(ctx context.Context, arg SubmitFunctionResultParams) error

func (*Queries) TenantWorkspaceCapacity added in v0.0.10

func (q *Queries) TenantWorkspaceCapacity(ctx context.Context, tenantID pgtype.UUID) (TenantWorkspaceCapacityRow, error)

func (*Queries) TouchAuthenticatedDevice

func (q *Queries) TouchAuthenticatedDevice(ctx context.Context, arg TouchAuthenticatedDeviceParams) (int64, error)

func (*Queries) TouchDevice

func (q *Queries) TouchDevice(ctx context.Context, id pgtype.UUID) (int64, error)

func (*Queries) TouchRuntimeActivity

func (q *Queries) TouchRuntimeActivity(ctx context.Context, arg TouchRuntimeActivityParams) error

func (*Queries) TransitionTurn

func (q *Queries) TransitionTurn(ctx context.Context, arg TransitionTurnParams) (Turn, error)

func (*Queries) TryExecutionLease

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

func (*Queries) UpdateAgent

func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) (Agent, error)

func (*Queries) UpdateAutomation added in v0.0.14

func (q *Queries) UpdateAutomation(ctx context.Context, arg UpdateAutomationParams) error

func (*Queries) UpdateCredentialMetadata added in v0.0.14

func (*Queries) UpdateOAuthCredential

func (q *Queries) UpdateOAuthCredential(ctx context.Context, arg UpdateOAuthCredentialParams) (UpdateOAuthCredentialRow, error)

func (*Queries) UpdateRuntimeNode

func (q *Queries) UpdateRuntimeNode(ctx context.Context, arg UpdateRuntimeNodeParams) (RuntimeNode, error)

func (*Queries) UpdateSandboxIdleSeconds added in v0.0.12

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

func (*Queries) UpdateSession added in v0.0.14

func (q *Queries) UpdateSession(ctx context.Context, arg UpdateSessionParams) (Session, error)

func (*Queries) UpdateStaticCredential

func (q *Queries) UpdateStaticCredential(ctx context.Context, arg UpdateStaticCredentialParams) (UpdateStaticCredentialRow, error)

func (*Queries) UpdateVault added in v0.0.14

func (q *Queries) UpdateVault(ctx context.Context, arg UpdateVaultParams) (Vault, error)

func (*Queries) UpsertNodeGenerationStatus

func (q *Queries) UpsertNodeGenerationStatus(ctx context.Context, arg UpsertNodeGenerationStatusParams) error

func (*Queries) WithTx

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

func (*Queries) WithdrawFunctionCall added in v0.0.12

func (q *Queries) WithdrawFunctionCall(ctx context.Context, arg WithdrawFunctionCallParams) error

func (*Queries) WorkspaceComputeReleased added in v0.0.10

func (q *Queries) WorkspaceComputeReleased(ctx context.Context, environmentID pgtype.UUID) (bool, error)

type ReadDefaultSkillVersionParams

type ReadDefaultSkillVersionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type ReadSkillVersionParams

type ReadSkillVersionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	SkillID  pgtype.UUID `json:"skill_id"`
	Version  int64       `json:"version"`
}

type RecordEnvironmentFailureParams

type RecordEnvironmentFailureParams struct {
	FailureReason pgtype.Text `json:"failure_reason"`
	FailureDetail []byte      `json:"failure_detail"`
	ID            pgtype.UUID `json:"id"`
	TenantID      pgtype.UUID `json:"tenant_id"`
}

type RecordEnvironmentInitializationStepsParams added in v0.0.13

type RecordEnvironmentInitializationStepsParams struct {
	Steps []byte      `json:"steps"`
	ID    pgtype.UUID `json:"id"`
}

type RefreshLatestSkillVersionParams

type RefreshLatestSkillVersionParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type ReleaseFailedRuntimePlacementParams added in v0.0.10

type ReleaseFailedRuntimePlacementParams struct {
	EnvironmentID        pgtype.UUID `json:"environment_id"`
	NodeID               pgtype.UUID `json:"node_id"`
	DeploymentGeneration pgtype.Int8 `json:"deployment_generation"`
}

type RememberNativeSessionParams

type RememberNativeSessionParams struct {
	SessionID       pgtype.UUID `json:"session_id"`
	NativeSessionID string      `json:"native_session_id"`
}

type RenameProjectParams

type RenameProjectParams struct {
	ID   pgtype.UUID `json:"id"`
	Name string      `json:"name"`
}

type ReplaceEnvironmentConnectionParams

type ReplaceEnvironmentConnectionParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	Generation    pgtype.UUID `json:"generation"`
}

type RequestTurnCancelParams

type RequestTurnCancelParams struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_id"`
}

type ReserveReleasedRuntimePlacementParams added in v0.0.10

type ReserveReleasedRuntimePlacementParams struct {
	EnvironmentID        pgtype.UUID `json:"environment_id"`
	NodeID               pgtype.UUID `json:"node_id"`
	DeploymentGeneration pgtype.Int8 `json:"deployment_generation"`
}

type ResolveEnvironmentTemplateParams

type ResolveEnvironmentTemplateParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type ResolveProjectAPIKeyRow

type ResolveProjectAPIKeyRow struct {
	ID                pgtype.UUID        `json:"id"`
	Name              string             `json:"name"`
	Prefix            string             `json:"prefix"`
	TokenSha256       string             `json:"token_sha256"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
	RevokedAt         pgtype.Timestamptz `json:"revoked_at"`
	ProjectID         pgtype.UUID        `json:"project_id"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	SubjectKind       string             `json:"subject_kind"`
	SubjectID         string             `json:"subject_id"`
	OrganizationID    string             `json:"organization_id"`
	ExternalProjectID string             `json:"external_project_id"`
}

type RevokeArchivedRuntimeDeviceParams

type RevokeArchivedRuntimeDeviceParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TenantID  pgtype.UUID `json:"tenant_id"`
	DeviceID  pgtype.UUID `json:"device_id"`
}

type RevokeDeviceParams

type RevokeDeviceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type RevokeExecutorCredentialParams

type RevokeExecutorCredentialParams struct {
	KeyID       pgtype.UUID `json:"key_id"`
	TenantID    pgtype.UUID `json:"tenant_id"`
	SubjectKind pgtype.Text `json:"subject_kind"`
	SubjectID   pgtype.Text `json:"subject_id"`
}

type RevokeProjectAPIKeyParams

type RevokeProjectAPIKeyParams struct {
	ID        pgtype.UUID `json:"id"`
	ProjectID pgtype.UUID `json:"project_id"`
}

type RevokeRuntimeCleanupDeviceParams

type RevokeRuntimeCleanupDeviceParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	DeviceID pgtype.UUID `json:"device_id"`
}

type RotateExecutorCredentialParams

type RotateExecutorCredentialParams struct {
	TokenSha256 string      `json:"token_sha256"`
	KeyID       pgtype.UUID `json:"key_id"`
	TenantID    pgtype.UUID `json:"tenant_id"`
	SubjectKind pgtype.Text `json:"subject_kind"`
	SubjectID   pgtype.Text `json:"subject_id"`
}

type RotateExecutorCredentialRow

type RotateExecutorCredentialRow struct {
	KeyID         pgtype.UUID `json:"key_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
}

type RuntimeAllocation

type RuntimeAllocation struct {
	ID                    pgtype.UUID        `json:"id"`
	EnvironmentID         pgtype.UUID        `json:"environment_id"`
	DeviceID              pgtype.UUID        `json:"device_id"`
	ProviderKey           pgtype.UUID        `json:"provider_key"`
	State                 string             `json:"state"`
	CreateSettled         bool               `json:"create_settled"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	ReleasedAt            pgtype.Timestamptz `json:"released_at"`
	ComputePhase          string             `json:"compute_phase"`
	ComputeRevision       int64              `json:"compute_revision"`
	ComputeState          []byte             `json:"compute_state"`
	ComputeActivityAt     pgtype.Timestamptz `json:"compute_activity_at"`
	ComputeWakeRequested  bool               `json:"compute_wake_requested"`
	ComputeRetainedUntil  pgtype.Timestamptz `json:"compute_retained_until"`
	NodeID                pgtype.UUID        `json:"node_id"`
	ObservationError      string             `json:"observation_error"`
	ComputePhaseChangedAt pgtype.Timestamptz `json:"compute_phase_changed_at"`
	DeploymentGeneration  pgtype.Int8        `json:"deployment_generation"`
}

type RuntimeDeployment

type RuntimeDeployment struct {
	Singleton          bool               `json:"singleton"`
	InstallationID     pgtype.UUID        `json:"installation_id"`
	BackendFingerprint string             `json:"backend_fingerprint"`
	UpdatedAt          pgtype.Timestamptz `json:"updated_at"`
	ProviderKind       string             `json:"provider_kind"`
	OwnerEpoch         int64              `json:"owner_epoch"`
	Generation         int64              `json:"generation"`
	Mode               string             `json:"mode"`
	ProviderCredential []byte             `json:"provider_credential"`
	Specification      []byte             `json:"specification"`
	ResetClear         pgtype.Text        `json:"reset_clear"`
	ResetRequestedAt   pgtype.Timestamptz `json:"reset_requested_at"`
	ResetDeadlineAt    pgtype.Timestamptz `json:"reset_deadline_at"`
	ResetForcedAt      pgtype.Timestamptz `json:"reset_forced_at"`
	ResetAudit         []byte             `json:"reset_audit"`
	ProviderConfig     []byte             `json:"provider_config"`
	ProviderMetadata   []byte             `json:"provider_metadata"`
	IdleSeconds        int64              `json:"idle_seconds"`
}

type RuntimeDeploymentGeneration

type RuntimeDeploymentGeneration struct {
	Generation       int64              `json:"generation"`
	ProviderKind     string             `json:"provider_kind"`
	Specification    []byte             `json:"specification"`
	CreatedAt        pgtype.Timestamptz `json:"created_at"`
	ProviderConfig   []byte             `json:"provider_config"`
	ProviderMetadata []byte             `json:"provider_metadata"`
}

type RuntimeDeviceAuthority

type RuntimeDeviceAuthority struct {
	ID             pgtype.UUID `json:"id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	Name           string      `json:"name"`
	EnvironmentID  pgtype.UUID `json:"environment_id"`
	CredentialHash string      `json:"credential_hash"`
}

type RuntimeHistorySample

type RuntimeHistorySample struct {
	TenantID            pgtype.UUID   `json:"tenant_id"`
	SessionID           pgtype.UUID   `json:"session_id"`
	EnvironmentID       pgtype.UUID   `json:"environment_id"`
	ResolvedAtNs        int64         `json:"resolved_at_ns"`
	AllocationID        pgtype.UUID   `json:"allocation_id"`
	ProviderType        string        `json:"provider_type"`
	Status              string        `json:"status"`
	ObservedAtNs        pgtype.Int8   `json:"observed_at_ns"`
	StartedAtNs         pgtype.Int8   `json:"started_at_ns"`
	CpuUsageSeconds     pgtype.Float8 `json:"cpu_usage_seconds"`
	CpuCapacityCores    pgtype.Float8 `json:"cpu_capacity_cores"`
	MemoryUsageBytes    pgtype.Int8   `json:"memory_usage_bytes"`
	MemoryLimitBytes    pgtype.Int8   `json:"memory_limit_bytes"`
	InputTokens         pgtype.Int8   `json:"input_tokens"`
	OutputTokens        pgtype.Int8   `json:"output_tokens"`
	CpuUtilizationRatio pgtype.Float8 `json:"cpu_utilization_ratio"`
}

type RuntimeNode

type RuntimeNode struct {
	ID                   pgtype.UUID        `json:"id"`
	InstallationID       pgtype.UUID        `json:"installation_id"`
	Name                 string             `json:"name"`
	BackendFingerprint   string             `json:"backend_fingerprint"`
	CredentialSha256     string             `json:"credential_sha256"`
	MaxActive            int32              `json:"max_active"`
	MaxRetained          int32              `json:"max_retained"`
	ConnectionID         pgtype.UUID        `json:"connection_id"`
	Health               []byte             `json:"health"`
	ConnectedEpoch       int64              `json:"connected_epoch"`
	LastSeenAt           pgtype.Timestamptz `json:"last_seen_at"`
	CreatedAt            pgtype.Timestamptz `json:"created_at"`
	RemovedAt            pgtype.Timestamptz `json:"removed_at"`
	SpecificationDigest  string             `json:"specification_digest"`
	DeploymentGeneration int64              `json:"deployment_generation"`
	CoreUrl              string             `json:"core_url"`
	EnrollmentID         pgtype.UUID        `json:"enrollment_id"`
	ReadyGeneration      pgtype.Int8        `json:"ready_generation"`
}

type RuntimeNodeEnrollment

type RuntimeNodeEnrollment struct {
	TokenSha256    string             `json:"token_sha256"`
	InstallationID pgtype.UUID        `json:"installation_id"`
	ExpiresAt      pgtype.Timestamptz `json:"expires_at"`
	ConsumedAt     pgtype.Timestamptz `json:"consumed_at"`
	NodeID         pgtype.UUID        `json:"node_id"`
	MaxActive      pgtype.Int4        `json:"max_active"`
	MaxRetained    pgtype.Int4        `json:"max_retained"`
	ID             pgtype.UUID        `json:"id"`
}

type RuntimeNodeGenerationStatus

type RuntimeNodeGenerationStatus struct {
	NodeID              pgtype.UUID        `json:"node_id"`
	Generation          int64              `json:"generation"`
	SpecificationDigest string             `json:"specification_digest"`
	ConnectionID        pgtype.UUID        `json:"connection_id"`
	OwnerEpoch          int64              `json:"owner_epoch"`
	State               string             `json:"state"`
	Diagnostic          string             `json:"diagnostic"`
	ObservedAt          pgtype.Timestamptz `json:"observed_at"`
	Checkpoint          []byte             `json:"checkpoint"`
}

type RuntimePlacement

type RuntimePlacement struct {
	EnvironmentID        pgtype.UUID        `json:"environment_id"`
	NodeID               pgtype.UUID        `json:"node_id"`
	ReservedAt           pgtype.Timestamptz `json:"reserved_at"`
	ReleasedAt           pgtype.Timestamptz `json:"released_at"`
	DeploymentGeneration pgtype.Int8        `json:"deployment_generation"`
}

type RuntimeResetRetainedEnvironment added in v0.0.10

type RuntimeResetRetainedEnvironment struct {
	EnvironmentID        pgtype.UUID `json:"environment_id"`
	SessionID            pgtype.UUID `json:"session_id"`
	TenantID             pgtype.UUID `json:"tenant_id"`
	DeploymentGeneration pgtype.Int8 `json:"deployment_generation"`
}

type SaveAgentModelExecutionParams

type SaveAgentModelExecutionParams struct {
	AgentID         pgtype.UUID `json:"agent_id"`
	EncryptedConfig []byte      `json:"encrypted_config"`
}

type SaveSessionExecutionConfigurationParams

type SaveSessionExecutionConfigurationParams struct {
	SessionID                  pgtype.UUID `json:"session_id"`
	Configuration              []byte      `json:"configuration"`
	DeploymentProviderRevision pgtype.UUID `json:"deployment_provider_revision"`
}

type SaveSessionModelExecutionParams

type SaveSessionModelExecutionParams struct {
	SessionID       pgtype.UUID `json:"session_id"`
	EncryptedConfig []byte      `json:"encrypted_config"`
}

type Session

type Session struct {
	ID                  pgtype.UUID        `json:"id"`
	TenantID            pgtype.UUID        `json:"tenant_id"`
	Engine              string             `json:"engine"`
	Metadata            []byte             `json:"metadata"`
	IdempotencyKey      string             `json:"idempotency_key"`
	RequestHash         string             `json:"request_hash"`
	CreatedAt           pgtype.Timestamptz `json:"created_at"`
	Configuration       []byte             `json:"configuration"`
	EventSequence       int64              `json:"event_sequence"`
	CreationRequestHash pgtype.Text        `json:"creation_request_hash"`
	DeletedAt           pgtype.Timestamptz `json:"deleted_at"`
	CreatorKind         pgtype.Text        `json:"creator_kind"`
	CreatorID           pgtype.Text        `json:"creator_id"`
	EnvironmentID       pgtype.UUID        `json:"environment_id"`
}

type SessionArtifact

type SessionArtifact struct {
	ID            pgtype.UUID        `json:"id"`
	SessionID     pgtype.UUID        `json:"session_id"`
	TurnID        pgtype.UUID        `json:"turn_id"`
	EnvironmentID pgtype.UUID        `json:"environment_id"`
	Path          string             `json:"path"`
	SizeBytes     int64              `json:"size_bytes"`
	BodyOid       pgtype.Uint32      `json:"body_oid"`
	Sha256        string             `json:"sha256"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
}

type SessionDevice

type SessionDevice struct {
	SessionID       pgtype.UUID `json:"session_id"`
	DeviceID        pgtype.UUID `json:"device_id"`
	NativeSessionID string      `json:"native_session_id"`
}

type SessionEvent

type SessionEvent struct {
	SessionID    pgtype.UUID `json:"session_id"`
	Sequence     int64       `json:"sequence"`
	Payload      []byte      `json:"payload"`
	PayloadBytes pgtype.Int4 `json:"payload_bytes"`
}

type SessionEventCursorParams

type SessionEventCursorParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type SessionEventTurnParams

type SessionEventTurnParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type SessionExecutionConfiguration

type SessionExecutionConfiguration struct {
	SessionID                  pgtype.UUID `json:"session_id"`
	Configuration              []byte      `json:"configuration"`
	DeploymentProviderRevision pgtype.UUID `json:"deployment_provider_revision"`
}

type SessionHasFunctionCallParams

type SessionHasFunctionCallParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	CallID    string      `json:"call_id"`
}

type SessionItem

type SessionItem struct {
	ID          pgtype.UUID        `json:"id"`
	SessionID   pgtype.UUID        `json:"session_id"`
	TurnID      pgtype.UUID        `json:"turn_id"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Position    int32              `json:"position"`
	Payload     []byte             `json:"payload"`
	OutputIndex pgtype.Int4        `json:"output_index"`
	SettledAt   pgtype.Timestamptz `json:"settled_at"`
}

type SessionMeasuredTokenUsageParams

type SessionMeasuredTokenUsageParams struct {
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type SessionModelExecution

type SessionModelExecution struct {
	SessionID       pgtype.UUID `json:"session_id"`
	EncryptedConfig []byte      `json:"encrypted_config"`
}

type SetDefaultSkillVersionParams

type SetDefaultSkillVersionParams struct {
	TenantID       pgtype.UUID `json:"tenant_id"`
	ID             pgtype.UUID `json:"id"`
	DefaultVersion int64       `json:"default_version"`
	Name           string      `json:"name"`
	Description    string      `json:"description"`
}

type SetEnvironmentConnectionStatusParams

type SetEnvironmentConnectionStatusParams struct {
	ID     pgtype.UUID `json:"id"`
	Status string      `json:"status"`
}

type SetEnvironmentInitialFileMetadataParams added in v0.0.14

type SetEnvironmentInitialFileMetadataParams struct {
	ID      pgtype.UUID `json:"id"`
	Column2 []byte      `json:"column_2"`
}

type SetEnvironmentSetupMetadataParams added in v0.0.14

type SetEnvironmentSetupMetadataParams struct {
	ID                    pgtype.UUID `json:"id"`
	Packages              []byte      `json:"packages"`
	Skills                []byte      `json:"skills"`
	Plugins               []byte      `json:"plugins"`
	CapabilityDirectories []byte      `json:"capability_directories"`
}

type SetRuntimeComputeParams

type SetRuntimeComputeParams struct {
	Phase         string             `json:"phase"`
	State         []byte             `json:"state"`
	RetainedUntil pgtype.Timestamptz `json:"retained_until"`
	ID            pgtype.UUID        `json:"id"`
	Revision      int64              `json:"revision"`
}

type SetRuntimeObservationParams

type SetRuntimeObservationParams struct {
	ID               pgtype.UUID `json:"id"`
	ComputeRevision  int64       `json:"compute_revision"`
	State            string      `json:"state"`
	ObservationError string      `json:"observation_error"`
}

type SettleEnvironmentFileWriteParams

type SettleEnvironmentFileWriteParams struct {
	EnvironmentID pgtype.UUID `json:"environment_id"`
	ID            pgtype.UUID `json:"id"`
	State         string      `json:"state"`
}

type SettleEnvironmentInputReservationParams

type SettleEnvironmentInputReservationParams struct {
	State     string      `json:"state"`
	SessionID pgtype.UUID `json:"session_id"`
	ID        pgtype.UUID `json:"id"`
}

type SettleInvocationParams added in v0.0.14

type SettleInvocationParams struct {
	ID           pgtype.UUID `json:"id"`
	Status       string      `json:"status"`
	SessionID    pgtype.UUID `json:"session_id"`
	ErrorCode    pgtype.Text `json:"error_code"`
	ErrorMessage pgtype.Text `json:"error_message"`
}

type SettleInvocationRow added in v0.0.14

type SettleInvocationRow struct {
	AutomationID pgtype.UUID        `json:"automation_id"`
	ScheduledAt  pgtype.Timestamptz `json:"scheduled_at"`
}

type Skill

type Skill struct {
	ID             pgtype.UUID        `json:"id"`
	TenantID       pgtype.UUID        `json:"tenant_id"`
	Name           string             `json:"name"`
	Description    string             `json:"description"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	DefaultVersion int64              `json:"default_version"`
	LatestVersion  int64              `json:"latest_version"`
	NextVersion    int64              `json:"next_version"`
}

type SkillVersion

type SkillVersion struct {
	ID          pgtype.UUID        `json:"id"`
	TenantID    pgtype.UUID        `json:"tenant_id"`
	SkillID     pgtype.UUID        `json:"skill_id"`
	Version     int64              `json:"version"`
	Name        string             `json:"name"`
	Description string             `json:"description"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	Contents    []byte             `json:"contents"`
}

type SourceFile

type SourceFile struct {
	ID        pgtype.UUID        `json:"id"`
	TenantID  pgtype.UUID        `json:"tenant_id"`
	Filename  string             `json:"filename"`
	Purpose   string             `json:"purpose"`
	BodyOid   pgtype.Uint32      `json:"body_oid"`
	SizeBytes int64              `json:"size_bytes"`
	Sha256    string             `json:"sha256"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type StageSessionArtifactParams

type StageSessionArtifactParams struct {
	ID            pgtype.UUID   `json:"id"`
	SessionID     pgtype.UUID   `json:"session_id"`
	TurnID        pgtype.UUID   `json:"turn_id"`
	EnvironmentID pgtype.UUID   `json:"environment_id"`
	Path          string        `json:"path"`
	SizeBytes     int64         `json:"size_bytes"`
	BodyOid       pgtype.Uint32 `json:"body_oid"`
	Sha256        string        `json:"sha256"`
}

type StartSandboxResetParams

type StartSandboxResetParams struct {
	Clear           pgtype.Text `json:"clear"`
	DeadlineSeconds int32       `json:"deadline_seconds"`
	Audit           []byte      `json:"audit"`
}

type SubagentEffect

type SubagentEffect struct {
	SessionID pgtype.UUID `json:"session_id"`
	EffectID  string      `json:"effect_id"`
	Payload   []byte      `json:"payload"`
}

type SubagentIdentity

type SubagentIdentity struct {
	ID                pgtype.UUID `json:"id"`
	SessionID         pgtype.UUID `json:"session_id"`
	DeviceID          pgtype.UUID `json:"device_id"`
	Engine            string      `json:"engine"`
	NativeID          string      `json:"native_id"`
	ParentNativeID    string      `json:"parent_native_id"`
	NativeCreatedAt   int64       `json:"native_created_at"`
	FirstTurnID       pgtype.UUID `json:"first_turn_id"`
	FirstEventOrdinal int32       `json:"first_event_ordinal"`
	Name              pgtype.Text `json:"name"`
	Instructions      pgtype.Text `json:"instructions"`
	PublicVisible     bool        `json:"public_visible"`
	Status            string      `json:"status"`
	ClosedAtMs        pgtype.Int8 `json:"closed_at_ms"`
	LifecycleAtMs     int64       `json:"lifecycle_at_ms"`
}

type SubagentItem

type SubagentItem struct {
	ID          pgtype.UUID `json:"id"`
	SessionID   pgtype.UUID `json:"session_id"`
	SubagentID  pgtype.UUID `json:"subagent_id"`
	TurnID      pgtype.UUID `json:"turn_id"`
	Position    int32       `json:"position"`
	OutputIndex pgtype.Int4 `json:"output_index"`
	Payload     []byte      `json:"payload"`
}

type SubagentTurn

type SubagentTurn struct {
	ID          pgtype.UUID        `json:"id"`
	SessionID   pgtype.UUID        `json:"session_id"`
	SubagentID  pgtype.UUID        `json:"subagent_id"`
	NativeID    string             `json:"native_id"`
	Status      string             `json:"status"`
	CreatedAt   pgtype.Timestamptz `json:"created_at"`
	StartedAt   pgtype.Timestamptz `json:"started_at"`
	CompletedAt pgtype.Timestamptz `json:"completed_at"`
	TokenUsage  []byte             `json:"token_usage"`
}

type SubmitFunctionResultParams

type SubmitFunctionResultParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	CallID    string      `json:"call_id"`
	Result    []byte      `json:"result"`
}

type TenantWorkspaceCapacityRow added in v0.0.10

type TenantWorkspaceCapacityRow struct {
	CommittedMib int64 `json:"committed_mib"`
	Unbounded    bool  `json:"unbounded"`
}

type TouchAuthenticatedDeviceParams

type TouchAuthenticatedDeviceParams struct {
	SupportedAgentKinds []byte      `json:"supported_agent_kinds"`
	ID                  pgtype.UUID `json:"id"`
	CredentialHash      string      `json:"credential_hash"`
}

type TouchRuntimeActivityParams

type TouchRuntimeActivityParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	EnvironmentID pgtype.UUID `json:"environment_id"`
	RetainedID    pgtype.UUID `json:"retained_id"`
}

type TransitionTurnParams

type TransitionTurnParams struct {
	NewStatus         string             `json:"new_status"`
	Outcome           []byte             `json:"outcome"`
	SourceCompletedAt pgtype.Timestamptz `json:"source_completed_at"`
	ID                pgtype.UUID        `json:"id"`
	SessionID         pgtype.UUID        `json:"session_id"`
	ExpectedStatus    string             `json:"expected_status"`
}

type Turn

type Turn struct {
	ID                     pgtype.UUID        `json:"id"`
	SessionID              pgtype.UUID        `json:"session_id"`
	Status                 string             `json:"status"`
	CreatedAt              pgtype.Timestamptz `json:"created_at"`
	StartedAt              pgtype.Timestamptz `json:"started_at"`
	CompletedAt            pgtype.Timestamptz `json:"completed_at"`
	CancelRequestedAt      pgtype.Timestamptz `json:"cancel_requested_at"`
	Outcome                []byte             `json:"outcome"`
	EventCount             int32              `json:"event_count"`
	EventBytes             int64              `json:"event_bytes"`
	TokenUsage             []byte             `json:"token_usage"`
	ArtifactCaptureStarted bool               `json:"artifact_capture_started"`
	Settings               []byte             `json:"settings"`
}

type TurnEvent

type TurnEvent struct {
	SessionID pgtype.UUID        `json:"session_id"`
	TurnID    pgtype.UUID        `json:"turn_id"`
	Ordinal   int32              `json:"ordinal"`
	Kind      string             `json:"kind"`
	Payload   []byte             `json:"payload"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
}

type TurnInput

type TurnInput struct {
	Sequence       int64              `json:"sequence"`
	SessionID      pgtype.UUID        `json:"session_id"`
	TurnID         pgtype.UUID        `json:"turn_id"`
	IdempotencyKey string             `json:"idempotency_key"`
	Kind           string             `json:"kind"`
	Payload        []byte             `json:"payload"`
	CreatedAt      pgtype.Timestamptz `json:"created_at"`
	BatchPosition  int32              `json:"batch_position"`
}

type UpdateAgentParams

type UpdateAgentParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	ID            pgtype.UUID `json:"id"`
	Configuration []byte      `json:"configuration"`
	Metadata      []byte      `json:"metadata"`
}

type UpdateAutomationParams added in v0.0.14

type UpdateAutomationParams struct {
	TenantID       pgtype.UUID        `json:"tenant_id"`
	ID             pgtype.UUID        `json:"id"`
	Name           string             `json:"name"`
	Metadata       []byte             `json:"metadata"`
	Status         string             `json:"status"`
	RunAt          pgtype.Timestamptz `json:"run_at"`
	Expression     pgtype.Text        `json:"expression"`
	Timezone       pgtype.Text        `json:"timezone"`
	NextRunAt      pgtype.Timestamptz `json:"next_run_at"`
	SetTarget      bool               `json:"set_target"`
	Target         []byte             `json:"target"`
	TargetContents []byte             `json:"target_contents"`
}

type UpdateCredentialMetadataParams added in v0.0.14

type UpdateCredentialMetadataParams struct {
	Metadata []byte      `json:"metadata"`
	TenantID pgtype.UUID `json:"tenant_id"`
	VaultID  pgtype.UUID `json:"vault_id"`
	ID       pgtype.UUID `json:"id"`
}

type UpdateCredentialMetadataRow added in v0.0.14

type UpdateCredentialMetadataRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type UpdateEnvironmentTemplateParams

type UpdateEnvironmentTemplateParams struct {
	SetName               bool        `json:"set_name"`
	Name                  pgtype.Text `json:"name"`
	SetNetwork            bool        `json:"set_network"`
	NetworkAccess         string      `json:"network_access"`
	NetworkAllowedDomains []string    `json:"network_allowed_domains"`
	SetFiles              bool        `json:"set_files"`
	Files                 []byte      `json:"files"`
	FileContents          []byte      `json:"file_contents"`
	SetPackages           bool        `json:"set_packages"`
	Packages              []byte      `json:"packages"`
	SetEnv                bool        `json:"set_env"`
	EnvContents           []byte      `json:"env_contents"`
	SetSetup              bool        `json:"set_setup"`
	SetupContents         []byte      `json:"setup_contents"`
	SetSkills             bool        `json:"set_skills"`
	Skills                []byte      `json:"skills"`
	SkillContents         []byte      `json:"skill_contents"`
	SetPlugins            bool        `json:"set_plugins"`
	Plugins               []byte      `json:"plugins"`
	PluginContents        []byte      `json:"plugin_contents"`
	SetDirectories        bool        `json:"set_directories"`
	CapabilityDirectories []string    `json:"capability_directories"`
	TenantID              pgtype.UUID `json:"tenant_id"`
	ID                    pgtype.UUID `json:"id"`
}

type UpdateEnvironmentTemplateRow

type UpdateEnvironmentTemplateRow struct {
	ID                    pgtype.UUID        `json:"id"`
	TenantID              pgtype.UUID        `json:"tenant_id"`
	Name                  pgtype.Text        `json:"name"`
	NetworkAccess         string             `json:"network_access"`
	NetworkAllowedDomains []string           `json:"network_allowed_domains"`
	CreatedAt             pgtype.Timestamptz `json:"created_at"`
	UpdatedAt             pgtype.Timestamptz `json:"updated_at"`
	Files                 []byte             `json:"files"`
	Packages              []byte             `json:"packages"`
	Skills                []byte             `json:"skills"`
	Plugins               []byte             `json:"plugins"`
	CapabilityDirectories []string           `json:"capability_directories"`
}

type UpdateOAuthCredentialParams

type UpdateOAuthCredentialParams struct {
	TokenCiphertext []byte      `json:"token_ciphertext"`
	OauthMetadata   []byte      `json:"oauth_metadata"`
	Metadata        []byte      `json:"metadata"`
	TenantID        pgtype.UUID `json:"tenant_id"`
	VaultID         pgtype.UUID `json:"vault_id"`
	ID              pgtype.UUID `json:"id"`
	McpServerUrl    string      `json:"mcp_server_url"`
}

type UpdateOAuthCredentialRow

type UpdateOAuthCredentialRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type UpdateRuntimeNodeParams

type UpdateRuntimeNodeParams struct {
	ID          pgtype.UUID `json:"id"`
	Name        string      `json:"name"`
	MaxActive   int32       `json:"max_active"`
	MaxRetained int32       `json:"max_retained"`
}

type UpdateSessionParams added in v0.0.14

type UpdateSessionParams struct {
	TenantID      pgtype.UUID `json:"tenant_id"`
	ID            pgtype.UUID `json:"id"`
	Configuration []byte      `json:"configuration"`
	Metadata      []byte      `json:"metadata"`
}

type UpdateStaticCredentialParams

type UpdateStaticCredentialParams struct {
	TokenCiphertext []byte      `json:"token_ciphertext"`
	Metadata        []byte      `json:"metadata"`
	TenantID        pgtype.UUID `json:"tenant_id"`
	VaultID         pgtype.UUID `json:"vault_id"`
	ID              pgtype.UUID `json:"id"`
	McpServerUrl    string      `json:"mcp_server_url"`
}

type UpdateStaticCredentialRow

type UpdateStaticCredentialRow struct {
	ID            pgtype.UUID        `json:"id"`
	VaultID       pgtype.UUID        `json:"vault_id"`
	Name          string             `json:"name"`
	AuthType      string             `json:"auth_type"`
	McpServerUrl  string             `json:"mcp_server_url"`
	CreatedAt     pgtype.Timestamptz `json:"created_at"`
	UpdatedAt     pgtype.Timestamptz `json:"updated_at"`
	OauthMetadata []byte             `json:"oauth_metadata"`
	Metadata      []byte             `json:"metadata"`
}

type UpdateVaultParams added in v0.0.14

type UpdateVaultParams struct {
	SetName  bool        `json:"set_name"`
	Name     pgtype.Text `json:"name"`
	Metadata []byte      `json:"metadata"`
	TenantID pgtype.UUID `json:"tenant_id"`
	ID       pgtype.UUID `json:"id"`
}

type UpsertDeploymentModelProviderParams

type UpsertDeploymentModelProviderParams struct {
	Harness         string      `json:"harness"`
	Protocol        string      `json:"protocol"`
	BaseUrl         string      `json:"base_url"`
	ContextWindow   int32       `json:"context_window"`
	MaxOutputTokens int32       `json:"max_output_tokens"`
	Model           string      `json:"model"`
	HarnessConfig   []byte      `json:"harness_config"`
	EncryptedApiKey []byte      `json:"encrypted_api_key"`
	Revision        pgtype.UUID `json:"revision"`
}

type UpsertDeploymentModelProviderRow

type UpsertDeploymentModelProviderRow struct {
	Harness         string             `json:"harness"`
	Protocol        string             `json:"protocol"`
	BaseUrl         string             `json:"base_url"`
	ContextWindow   int32              `json:"context_window"`
	MaxOutputTokens int32              `json:"max_output_tokens"`
	Model           string             `json:"model"`
	HarnessConfig   []byte             `json:"harness_config"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	LastUsedAt      pgtype.Timestamptz `json:"last_used_at"`
	LastErrorCode   pgtype.Text        `json:"last_error_code"`
	LastErrorAt     pgtype.Timestamptz `json:"last_error_at"`
}

type UpsertNodeGenerationStatusParams

type UpsertNodeGenerationStatusParams struct {
	NodeID              pgtype.UUID `json:"node_id"`
	Generation          int64       `json:"generation"`
	SpecificationDigest string      `json:"specification_digest"`
	ConnectionID        pgtype.UUID `json:"connection_id"`
	OwnerEpoch          int64       `json:"owner_epoch"`
	State               string      `json:"state"`
	Diagnostic          string      `json:"diagnostic"`
	Checkpoint          []byte      `json:"checkpoint"`
}

type Vault

type Vault struct {
	ID        pgtype.UUID        `json:"id"`
	TenantID  pgtype.UUID        `json:"tenant_id"`
	Name      pgtype.Text        `json:"name"`
	Metadata  []byte             `json:"metadata"`
	CreatedAt pgtype.Timestamptz `json:"created_at"`
	Status    string             `json:"status"`
}

type VaultCredential

type VaultCredential struct {
	ID              pgtype.UUID        `json:"id"`
	VaultID         pgtype.UUID        `json:"vault_id"`
	Name            string             `json:"name"`
	AuthType        string             `json:"auth_type"`
	McpServerUrl    string             `json:"mcp_server_url"`
	TokenCiphertext []byte             `json:"token_ciphertext"`
	CreatedAt       pgtype.Timestamptz `json:"created_at"`
	UpdatedAt       pgtype.Timestamptz `json:"updated_at"`
	Status          string             `json:"status"`
	OauthMetadata   []byte             `json:"oauth_metadata"`
	Metadata        []byte             `json:"metadata"`
}

type WithdrawFunctionCallParams added in v0.0.12

type WithdrawFunctionCallParams struct {
	SessionID pgtype.UUID `json:"session_id"`
	TurnID    pgtype.UUID `json:"turn_id"`
	CallID    string      `json:"call_id"`
}

type WorkspaceFsConfiguration added in v0.0.10

type WorkspaceFsConfiguration struct {
	ID         pgtype.UUID `json:"id"`
	Adapter    string      `json:"adapter"`
	Parameters []byte      `json:"parameters"`
	Active     bool        `json:"active"`
	Credential []byte      `json:"credential"`
}

type WorkspaceStorageAdmission added in v0.0.10

type WorkspaceStorageAdmission struct {
	Singleton         bool  `json:"singleton"`
	TenantCapacityMib int64 `json:"tenant_capacity_mib"`
}

type WriteAuditOperation

type WriteAuditOperation struct {
	ID           pgtype.UUID        `json:"id"`
	TenantID     pgtype.UUID        `json:"tenant_id"`
	KeyID        string             `json:"key_id"`
	KeyName      string             `json:"key_name"`
	KeyPrefix    string             `json:"key_prefix"`
	KeyKind      string             `json:"key_kind"`
	Action       string             `json:"action"`
	ResourceType string             `json:"resource_type"`
	ResourceID   string             `json:"resource_id"`
	ParentID     string             `json:"parent_id"`
	RequestID    string             `json:"request_id"`
	TraceID      string             `json:"trace_id"`
	CreatedAt    pgtype.Timestamptz `json:"created_at"`
}

type WriteAuditOwner

type WriteAuditOwner struct {
	TenantID     pgtype.UUID `json:"tenant_id"`
	ResourceType string      `json:"resource_type"`
	ResourceID   string      `json:"resource_id"`
	ParentID     string      `json:"parent_id"`
	OperationID  pgtype.UUID `json:"operation_id"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL