sqlc

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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 AdminAssetCopy

type AdminAssetCopy struct {
	TargetTenantID pgtype.UUID `json:"target_tenant_id"`
	IdempotencyKey string      `json:"idempotency_key"`
	RequestHash    []byte      `json:"request_hash"`
	Result         []byte      `json:"result"`
	AuditID        pgtype.UUID `json:"audit_id"`
}

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"`
	ResultIds         []byte             `json:"result_ids"`
	RequestID         string             `json:"request_id"`
	TraceID           string             `json:"trace_id"`
	CreatedAt         pgtype.Timestamptz `json:"created_at"`
}

type AdminResourceOwner

type AdminResourceOwner struct {
	TenantID     pgtype.UUID `json:"tenant_id"`
	ResourceType string      `json:"resource_type"`
	ResourceID   string      `json:"resource_id"`
	ParentID     string      `json:"parent_id"`
	AuditID      pgtype.UUID `json:"audit_id"`
}

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 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 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 BeginTurnArtifactCaptureParams

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

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"`
	SessionID      pgtype.UUID `json:"session_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"`
}

type CreateEnvironmentParams

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

type CreateEnvironmentSetupParams

type CreateEnvironmentSetupParams struct {
	SessionID pgtype.UUID `json:"session_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"`
	SessionID pgtype.UUID `json:"session_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"`
	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"`
}

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      int32       `json:"max_active"`
	MaxRetained    int32       `json:"max_retained"`
}

type CreateRuntimePlacementParams

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

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 CreateSessionRuntimePlacementParams

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

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"`
	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"`
}

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"`
}

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 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 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"`
	EncryptedConfig []byte             `json:"encrypted_config"`
	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"`
}

type DisconnectRuntimeNodeParams

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

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"`
	SessionID      pgtype.UUID        `json:"session_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"`
}

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"`
}

type EnvironmentSetup

type EnvironmentSetup struct {
	SessionID pgtype.UUID `json:"session_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 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 ExpireSessionEnvironmentParams

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

type FailEnvironmentInputParams

type FailEnvironmentInputParams struct {
	FailureCode pgtype.Text `json:"failure_code"`
	SessionID   pgtype.UUID `json:"session_id"`
	ID          pgtype.UUID `json:"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 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"`
}

type FunctionItemResultParams

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

type GetAdminResourceOwnersParams

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

type GetAdminResourceOwnersRow

type GetAdminResourceOwnersRow struct {
	ResourceID string      `json:"resource_id"`
	AuditID    pgtype.UUID `json:"audit_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 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"`
}

type GetDeploymentModelProviderSecretRow

type GetDeploymentModelProviderSecretRow struct {
	EncryptedConfig []byte      `json:"encrypted_config"`
	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 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"`
	SessionID            pgtype.UUID          `json:"session_id"`
}

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"`
	TenantID      pgtype.UUID `json:"tenant_id"`
	Configuration []byte      `json:"configuration"`
}

type GetEnvironmentSetupParams

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

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 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"`
	SessionID pgtype.UUID `json:"session_id"`
	Position  int32       `json:"position"`
}

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"`
	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"`
	HasCompletedTurn     bool               `json:"has_completed_turn"`
}

type GetRuntimeAllocationParams

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

type GetRuntimeAllocationRow

type GetRuntimeAllocationRow struct {
	RuntimeAllocation RuntimeAllocation  `json:"runtime_allocation"`
	SessionID         pgtype.UUID        `json:"session_id"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	DeletedAt         pgtype.Timestamptz `json:"deleted_at"`
	Expired           bool               `json:"expired"`
}

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"`
	ReleasedAt       pgtype.Timestamptz `json:"released_at"`
}

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"`
	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 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"`
	TenantID      pgtype.UUID `json:"tenant_id"`
	Configuration []byte      `json:"configuration"`
}

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 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 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"`
	ProviderReady bool        `json:"provider_ready"`
	Health        []byte      `json:"health"`
	OwnerEpoch    int64       `json:"owner_epoch"`
}

type InitialEnvironmentFile

type InitialEnvironmentFile struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_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"`
	IdleSeconds        int64  `json:"idle_seconds"`
	RetentionSeconds   int64  `json:"retention_seconds"`
	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"`
	ResultIds         []byte      `json:"result_ids"`
	RequestID         string      `json:"request_id"`
	TraceID           string      `json:"trace_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 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 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 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"`
	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"`
}

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"`
	SessionID     pgtype.UUID `json:"session_id"`
}

type ListEnvironmentConnectionsRow

type ListEnvironmentConnectionsRow struct {
	ID        pgtype.UUID `json:"id"`
	SessionID pgtype.UUID `json:"session_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"`
	SessionID      pgtype.UUID `json:"session_id"`
	TenantID       pgtype.UUID `json:"tenant_id"`
	Engine         string      `json:"engine"`
	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 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"`
	SessionID             pgtype.UUID        `json:"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 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"`
	SessionID         pgtype.UUID        `json:"session_id"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	DeletedAt         pgtype.Timestamptz `json:"deleted_at"`
	Expired           bool               `json:"expired"`
}

type ListRuntimeAllocationsRow

type ListRuntimeAllocationsRow struct {
	RuntimeAllocation RuntimeAllocation  `json:"runtime_allocation"`
	SessionID         pgtype.UUID        `json:"session_id"`
	TenantID          pgtype.UUID        `json:"tenant_id"`
	DeletedAt         pgtype.Timestamptz `json:"deleted_at"`
	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"`
	ProviderReady        bool               `json:"provider_ready"`
	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"`
	ProtocolVersion      int32              `json:"protocol_version"`
	Online               bool               `json:"online"`
	ProviderKind         string             `json:"provider_kind"`
	TargetGeneration     int64              `json:"target_generation"`
	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 ListSandboxResetSessionsParams

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

type ListSandboxResetSessionsRow

type ListSandboxResetSessionsRow struct {
	ID       pgtype.UUID `json:"id"`
	TenantID pgtype.UUID `json:"tenant_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"`
	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"`
	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 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"`
	AfterCreated pgtype.Timestamptz `json:"after_created"`
	Ascending    bool               `json:"ascending"`
	AfterID      pgtype.UUID        `json:"after_id"`
	PageLimit    int32              `json:"page_limit"`
}

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 LockInitialSourceFileParams

type LockInitialSourceFileParams 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"`
}

type LockSkillParams

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

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"`
}

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 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 PublicExecutionTurn

type PublicExecutionTurn 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"`
	TokenUsage             []byte             `json:"token_usage"`
	ArtifactCaptureStarted bool               `json:"artifact_capture_started"`
	SubagentID             pgtype.UUID        `json:"subagent_id"`
}

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) 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) 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) AuthenticateEnvironmentExecutor

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

func (*Queries) BeginTurnArtifactCapture

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

func (*Queries) BindSessionDevice

func (q *Queries) BindSessionDevice(ctx context.Context, arg BindSessionDeviceParams) (pgtype.UUID, 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) 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) 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) CountRuntimeComputeReservations

func (q *Queries) CountRuntimeComputeReservations(ctx context.Context, providerKey pgtype.UUID) (int64, error)

func (*Queries) CountRuntimeDeploymentResources

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

func (*Queries) CountRuntimeRetainedAllocations

func (q *Queries) CountRuntimeRetainedAllocations(ctx context.Context, providerKey pgtype.UUID) (int64, 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

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) CreateSessionRuntimePlacement

func (q *Queries) CreateSessionRuntimePlacement(ctx context.Context, arg CreateSessionRuntimePlacementParams) 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) 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) DisconnectRuntimeNode

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

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, sessionID pgtype.UUID) (bool, error)

func (*Queries) EnvironmentFileWriteHasPendingInput

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

func (*Queries) ExecutorProjectScopeExists

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

func (*Queries) ExpireEnvironmentInputReservation

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

func (*Queries) ExpireSessionEnvironment

func (q *Queries) ExpireSessionEnvironment(ctx context.Context, arg ExpireSessionEnvironmentParams) (int64, 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) 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) GetAdminResourceOwners

func (q *Queries) GetAdminResourceOwners(ctx context.Context, arg GetAdminResourceOwnersParams) ([]GetAdminResourceOwnersRow, 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) 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) GetEnvironmentConnection

func (q *Queries) GetEnvironmentConnection(ctx context.Context, environmentID pgtype.UUID) (EnvironmentConnection, 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, sessionID pgtype.UUID) (GetEnvironmentInputActivityRow, error)

func (*Queries) GetEnvironmentSetup

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

func (*Queries) GetEnvironmentTemplate

func (q *Queries) GetEnvironmentTemplate(ctx context.Context, arg GetEnvironmentTemplateParams) (GetEnvironmentTemplateRow, 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) GetInitialEnvironmentFile

func (q *Queries) GetInitialEnvironmentFile(ctx context.Context, arg GetInitialEnvironmentFileParams) (InitialEnvironmentFile, error)

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) GetRuntimeAllocation

func (q *Queries) GetRuntimeAllocation(ctx context.Context, arg GetRuntimeAllocationParams) (GetRuntimeAllocationRow, 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) 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) 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) 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) 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) 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) 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) 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) 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) KeepRuntimeAllocation

func (q *Queries) KeepRuntimeAllocation(ctx context.Context, id pgtype.UUID) (RuntimeAllocation, 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) 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) 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) 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) ListSandboxGenerations

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

func (*Queries) ListSandboxResetSessions

func (q *Queries) ListSandboxResetSessions(ctx context.Context, arg ListSandboxResetSessionsParams) ([]ListSandboxResetSessionsRow, error)

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) 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) 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) LockInitialSourceFile

func (q *Queries) LockInitialSourceFile(ctx context.Context, arg LockInitialSourceFileParams) (SourceFile, 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) MarkSessionDeleted

func (q *Queries) MarkSessionDeleted(ctx context.Context, id pgtype.UUID) 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) 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) RecordRuntimeTerminalActivity

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

func (*Queries) RecordSandboxConfigurationMetadata

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

func (*Queries) RefreshLatestSkillVersion

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

func (*Queries) RefreshNodeServingReadiness

func (q *Queries) RefreshNodeServingReadiness(ctx context.Context, arg RefreshNodeServingReadinessParams) error

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) ReleaseUnallocatedRuntimePlacement

func (q *Queries) ReleaseUnallocatedRuntimePlacement(ctx context.Context, sessionID 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) 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, sessionID 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, sessionID 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) SetRuntimeCompute

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

func (*Queries) SetRuntimeDeployment

func (q *Queries) SetRuntimeDeployment(ctx context.Context, arg SetRuntimeDeploymentParams) error

func (*Queries) SetRuntimeManagerDeployment

func (q *Queries) SetRuntimeManagerDeployment(ctx context.Context, arg SetRuntimeManagerDeploymentParams) error

func (*Queries) SetRuntimeObservation

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

func (*Queries) SetSessionInitialFileMetadata

func (q *Queries) SetSessionInitialFileMetadata(ctx context.Context, arg SetSessionInitialFileMetadataParams) (Session, error)

func (*Queries) SetSessionSetupMetadata

func (q *Queries) SetSessionSetupMetadata(ctx context.Context, arg SetSessionSetupMetadataParams) (Session, error)

func (*Queries) SettleEnvironmentFileWrite

func (q *Queries) SettleEnvironmentFileWrite(ctx context.Context, arg SettleEnvironmentFileWriteParams) (EnvironmentFileWrite, 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) 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) 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) UpdateSessionMetadata

func (q *Queries) UpdateSessionMetadata(ctx context.Context, arg UpdateSessionMetadataParams) (Session, error)

func (*Queries) UpdateStaticCredential

func (q *Queries) UpdateStaticCredential(ctx context.Context, arg UpdateStaticCredentialParams) (UpdateStaticCredentialRow, 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

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"`
	SessionID     pgtype.UUID `json:"session_id"`
	TenantID      pgtype.UUID `json:"tenant_id"`
}

type RefreshLatestSkillVersionParams

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

type RefreshNodeServingReadinessParams

type RefreshNodeServingReadinessParams struct {
	ID              pgtype.UUID `json:"id"`
	ProtocolVersion int32       `json:"protocol_version"`
}

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 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"`
	KeptAt                pgtype.Timestamptz `json:"kept_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"`
	AdmissionPaused    bool               `json:"admission_paused"`
	UpdatedAt          pgtype.Timestamptz `json:"updated_at"`
	ProviderKind       string             `json:"provider_kind"`
	LocalNodeID        pgtype.UUID        `json:"local_node_id"`
	OwnerEpoch         int64              `json:"owner_epoch"`
	WebManaged         bool               `json:"web_managed"`
	IdleSeconds        int64              `json:"idle_seconds"`
	RetentionSeconds   int64              `json:"retention_seconds"`
	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"`
}

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"`
	ProviderReady        bool               `json:"provider_ready"`
	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"`
	ProtocolVersion      int32              `json:"protocol_version"`
}

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      int32              `json:"max_active"`
	MaxRetained    int32              `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"`
}

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 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"`
}

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 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 SetRuntimeDeploymentParams

type SetRuntimeDeploymentParams struct {
	InstallationID     pgtype.UUID `json:"installation_id"`
	BackendFingerprint string      `json:"backend_fingerprint"`
	AdmissionPaused    bool        `json:"admission_paused"`
}

type SetRuntimeManagerDeploymentParams

type SetRuntimeManagerDeploymentParams struct {
	ProviderKind string      `json:"provider_kind"`
	LocalNodeID  pgtype.UUID `json:"local_node_id"`
}

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 SetSessionInitialFileMetadataParams

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

type SetSessionSetupMetadataParams

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

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 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 TouchAuthenticatedDeviceParams

type TouchAuthenticatedDeviceParams struct {
	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"`
}

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"`
}

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 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"`
	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"`
}

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 UpdateSessionMetadataParams

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

type UpdateStaticCredentialParams

type UpdateStaticCredentialParams struct {
	TokenCiphertext []byte      `json:"token_ciphertext"`
	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"`
}

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"`
	EncryptedConfig []byte      `json:"encrypted_config"`
	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"`
}

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"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL