Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.29.0
package store
import (
"database/sql/driver"
"fmt"
"github.com/jackc/pgx/v5/pgtype"
)
type RiverJobState string
const (
RiverJobStateAvailable RiverJobState = "available"
RiverJobStateCancelled RiverJobState = "cancelled"
RiverJobStateCompleted RiverJobState = "completed"
RiverJobStateDiscarded RiverJobState = "discarded"
RiverJobStatePending RiverJobState = "pending"
RiverJobStateRetryable RiverJobState = "retryable"
RiverJobStateRunning RiverJobState = "running"
RiverJobStateScheduled RiverJobState = "scheduled"
)
func (e *RiverJobState) Scan(src interface{}) error {
switch s := src.(type) {
case []byte:
*e = RiverJobState(s)
case string:
*e = RiverJobState(s)
default:
return fmt.Errorf("unsupported scan type for RiverJobState: %T", src)
}
return nil
}
type NullRiverJobState struct {
RiverJobState RiverJobState `json:"river_job_state"`
Valid bool `json:"valid"` // Valid is true if RiverJobState is not NULL
}
// Scan implements the Scanner interface.
func (ns *NullRiverJobState) Scan(value interface{}) error {
if value == nil {
ns.RiverJobState, ns.Valid = "", false
return nil
}
ns.Valid = true
return ns.RiverJobState.Scan(value)
}
// Value implements the driver Valuer interface.
func (ns NullRiverJobState) Value() (driver.Value, error) {
if !ns.Valid {
return nil, nil
}
return string(ns.RiverJobState), nil
}
type Account struct {
ID string `json:"id"`
PasswordHash string `json:"password_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Email string `json:"email"`
PasswordChangeWindowStartedAt pgtype.Timestamptz `json:"password_change_window_started_at"`
PasswordChangeAttempts pgtype.Int4 `json:"password_change_attempts"`
ProfileBio string `json:"profile_bio"`
ProfileOrganization string `json:"profile_organization"`
ProfileAvatarImage string `json:"profile_avatar_image"`
ProfileBackgroundImage string `json:"profile_background_image"`
ProfileNameUserManaged bool `json:"profile_name_user_managed"`
ProfileBioUserManaged bool `json:"profile_bio_user_managed"`
ProfileOrganizationUserManaged bool `json:"profile_organization_user_managed"`
ProfileUpdatedAt pgtype.Timestamptz `json:"profile_updated_at"`
WorkItemLastNumber int64 `json:"work_item_last_number"`
}
type ActiveRoomMember struct {
RoomID string `json:"room_id"`
TenantID string `json:"tenant_id"`
ActorID string `json:"actor_id"`
Role string `json:"role"`
AddedByActorID string `json:"added_by_actor_id"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
MembershipEpochID string `json:"membership_epoch_id"`
}
type Actor struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
Kind string `json:"kind"`
DisplayName string `json:"display_name"`
AccountID pgtype.Text `json:"account_id"`
Handle pgtype.Text `json:"handle"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AgentAccessCredential struct {
ID string `json:"id"`
TokenHash []byte `json:"token_hash"`
TenantID string `json:"tenant_id"`
AgentActorID string `json:"agent_actor_id"`
AgentManagementID string `json:"agent_management_id"`
Label string `json:"label"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
AssignmentRevision pgtype.Int8 `json:"assignment_revision"`
}
type AgentContextInboxCursor struct {
ContextKey string `json:"context_key"`
InboxID string `json:"inbox_id"`
CommittedThroughSeq int64 `json:"committed_through_seq"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
CursorEncoding string `json:"cursor_encoding"`
}
type AgentExecutionContext struct {
ContextKey string `json:"context_key"`
TenantID string `json:"tenant_id"`
AgentActorID string `json:"agent_actor_id"`
AgentManagementID string `json:"agent_management_id"`
ContextKind string `json:"context_kind"`
TaskID pgtype.Text `json:"task_id"`
TargetResidency string `json:"target_residency"`
NextInputSequence int64 `json:"next_input_sequence"`
StateRevision int64 `json:"state_revision"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RoomID pgtype.Text `json:"room_id"`
MembershipEpochID pgtype.Text `json:"membership_epoch_id"`
TerminalReason pgtype.Text `json:"terminal_reason"`
TerminatedAt pgtype.Timestamptz `json:"terminated_at"`
DocumentID pgtype.Text `json:"document_id"`
RoomKind pgtype.Text `json:"room_kind"`
TaskArchiveSuspended bool `json:"task_archive_suspended"`
Session []byte `json:"session"`
SessionProviderKind pgtype.Text `json:"session_provider_kind"`
SessionSchemaVersion pgtype.Int8 `json:"session_schema_version"`
SessionThreadID pgtype.Text `json:"session_thread_id"`
SessionConfigurationRevision pgtype.Int8 `json:"session_configuration_revision"`
SessionProfileRevision pgtype.Int8 `json:"session_profile_revision"`
SessionRevision int64 `json:"session_revision"`
SessionUpdatedAt pgtype.Timestamptz `json:"session_updated_at"`
}
type AgentHistoryMessage struct {
TenantID string `json:"tenant_id"`
MessageID string `json:"message_id"`
InboxID interface{} `json:"inbox_id"`
SourceRoomID string `json:"source_room_id"`
SourceSequence int64 `json:"source_sequence"`
AuthorActorID string `json:"author_actor_id"`
Author string `json:"author"`
AuthorKind string `json:"author_kind"`
Body string `json:"body"`
Segments []byte `json:"segments"`
MessageKind string `json:"message_kind"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ContextMessageIds []byte `json:"context_message_ids"`
ResourceReferences []byte `json:"resource_references"`
}
type AgentLiveHandoverReceipt struct {
ContextKey string `json:"context_key"`
VoiceSessionID string `json:"voice_session_id"`
InputID string `json:"input_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AgentLocalRun struct {
RunID string `json:"run_id"`
ContextKey string `json:"context_key"`
Status string `json:"status"`
Terminal []byte `json:"terminal"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
StartedAt pgtype.Timestamptz `json:"started_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
AttemptCount int32 `json:"attempt_count"`
CancellationRequested bool `json:"cancellation_requested"`
Epoch pgtype.Text `json:"epoch"`
ClaimID pgtype.Text `json:"claim_id"`
ClaimConfigurationRevision pgtype.Int8 `json:"claim_configuration_revision"`
Usage []byte `json:"usage"`
StatusRoomID pgtype.Text `json:"status_room_id"`
ClaimProfileRevision pgtype.Int8 `json:"claim_profile_revision"`
TurnIds []string `json:"turn_ids"`
}
type AgentLocalRunInput struct {
RunID string `json:"run_id"`
ContextKey string `json:"context_key"`
InputID string `json:"input_id"`
Relation string `json:"relation"`
Ordinal int64 `json:"ordinal"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AgentMemory struct {
AgentID string `json:"agent_id"`
Revision int64 `json:"revision"`
Document []byte `json:"document"`
}
type AgentPresentationSequence struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
AgentActorID string `json:"agent_actor_id"`
Status string `json:"status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
LocalRunID pgtype.Text `json:"local_run_id"`
ReplyToMessageID pgtype.Text `json:"reply_to_message_id"`
}
type AgentPresentationSequenceItem struct {
SequenceID string `json:"sequence_id"`
Position int32 `json:"position"`
Content string `json:"content"`
PauseBefore string `json:"pause_before"`
NotBefore pgtype.Timestamptz `json:"not_before"`
DeliveredMessageID pgtype.Text `json:"delivered_message_id"`
DeliveredAt pgtype.Timestamptz `json:"delivered_at"`
}
type AgentRegistration struct {
ActorID string `json:"actor_id"`
TenantID string `json:"tenant_id"`
AgentManagementID pgtype.Text `json:"agent_management_id"`
Status string `json:"status"`
Instructions string `json:"instructions"`
RuntimeModel string `json:"runtime_model"`
CreatedByActorID string `json:"created_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ComputerID pgtype.Text `json:"computer_id"`
LocalRuntimeType pgtype.Text `json:"local_runtime_type"`
WorkspaceGrantID pgtype.Text `json:"workspace_grant_id"`
VisibilityScope string `json:"visibility_scope"`
Description string `json:"description"`
ConfigurationRevision int64 `json:"configuration_revision"`
AgentType string `json:"agent_type"`
RepresentedHumanActorID pgtype.Text `json:"represented_human_actor_id"`
UserArtifactOwnerActorID pgtype.Text `json:"user_artifact_owner_actor_id"`
RuntimeReasoningEffort pgtype.Text `json:"runtime_reasoning_effort"`
AvatarKey pgtype.Text `json:"avatar_key"`
RuntimeConfigurationRevision int64 `json:"runtime_configuration_revision"`
AvatarImage pgtype.Text `json:"avatar_image"`
AvatarUpdatedAt pgtype.Timestamptz `json:"avatar_updated_at"`
TemplateID pgtype.Text `json:"template_id"`
TemplateRoutines []byte `json:"template_routines"`
TemplateInstalledAt pgtype.Timestamptz `json:"template_installed_at"`
AssignmentRevision int64 `json:"assignment_revision"`
ReceivesAllMessages bool `json:"receives_all_messages"`
}
type AgentRuntimeInput struct {
ContextKey string `json:"context_key"`
InputID string `json:"input_id"`
InputSequence int64 `json:"input_sequence"`
Payload []byte `json:"payload"`
PayloadHash []byte `json:"payload_hash"`
SourceKind string `json:"source_kind"`
SourceMessageID pgtype.Text `json:"source_message_id"`
SourceInboxID pgtype.Text `json:"source_inbox_id"`
Status string `json:"status"`
SelectionResult []byte `json:"selection_result"`
SteerGroupID pgtype.Text `json:"steer_group_id"`
LocalRunID pgtype.Text `json:"local_run_id"`
SteerOutcome pgtype.Text `json:"steer_outcome"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AgentRuntimeStatusEvent struct {
LocalRunID string `json:"local_run_id"`
EventOrdinal int64 `json:"event_ordinal"`
CommandID string `json:"command_id"`
EventType string `json:"event_type"`
Payload []byte `json:"payload"`
InvocationID pgtype.Text `json:"invocation_id"`
Outcome pgtype.Text `json:"outcome"`
MessageID pgtype.Text `json:"message_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ActivityID pgtype.Text `json:"activity_id"`
SegmentID string `json:"segment_id"`
}
type AgentServiceEpoch struct {
Epoch string `json:"epoch"`
StartedAt pgtype.Timestamptz `json:"started_at"`
}
type AgentSkillBinding struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
AgentActorID string `json:"agent_actor_id"`
SkillID string `json:"skill_id"`
ManifestVersion string `json:"manifest_version"`
Enabled bool `json:"enabled"`
Config []byte `json:"config"`
BindingVersion int64 `json:"binding_version"`
UpdatedByActorID pgtype.Text `json:"updated_by_actor_id"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
}
type AgentTemplate struct {
TemplateID string `json:"template_id"`
Origin string `json:"origin"`
TenantID pgtype.Text `json:"tenant_id"`
Name string `json:"name"`
Description string `json:"description"`
Instructions string `json:"instructions"`
AvatarKey pgtype.Text `json:"avatar_key"`
SkillBindings []byte `json:"skill_bindings"`
PublishedByActorID pgtype.Text `json:"published_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ConnectorBindings []byte `json:"connector_bindings"`
Routines []byte `json:"routines"`
}
type AgentUsageTotal struct {
Provider string `json:"provider"`
Model string `json:"model"`
InputTokens int64 `json:"input_tokens"`
CacheReadTokens int64 `json:"cache_read_tokens"`
CacheWriteTokens int64 `json:"cache_write_tokens"`
OutputTokens int64 `json:"output_tokens"`
ReasoningTokens int64 `json:"reasoning_tokens"`
CompactionCount int64 `json:"compaction_count"`
}
type AuthSession struct {
ID string `json:"id"`
AccountID string `json:"account_id"`
TokenHash []byte `json:"token_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
RevokedReason pgtype.Text `json:"revoked_reason"`
}
type CaptureMediaOutput struct {
ID string `json:"id"`
CaptureSessionID string `json:"capture_session_id"`
Purpose string `json:"purpose"`
RangeDigest string `json:"range_digest"`
ObjectKey string `json:"object_key"`
Filename string `json:"filename"`
MediaType string `json:"media_type"`
DurationMs int64 `json:"duration_ms"`
SizeBytes int64 `json:"size_bytes"`
Sha256 string `json:"sha256"`
DocumentID pgtype.Text `json:"document_id"`
DocumentVersionID pgtype.Text `json:"document_version_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CaptureMediaRange struct {
ID string `json:"id"`
CaptureSessionID string `json:"capture_session_id"`
EpochID pgtype.Text `json:"epoch_id"`
Kind string `json:"kind"`
StartOffsetMs int64 `json:"start_offset_ms"`
EndOffsetMs int64 `json:"end_offset_ms"`
Reason string `json:"reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CaptureSession struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
CreatedByActorID string `json:"created_by_actor_id"`
Status string `json:"status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TranscriptStartOffsetMs pgtype.Int8 `json:"transcript_start_offset_ms"`
TranscriptEndOffsetMs pgtype.Int8 `json:"transcript_end_offset_ms"`
DocumentID pgtype.Text `json:"document_id"`
DocumentVersionID pgtype.Text `json:"document_version_id"`
TranscriptDocumentID pgtype.Text `json:"transcript_document_id"`
TranscriptDocumentVersionID pgtype.Text `json:"transcript_document_version_id"`
VoiceSessionID pgtype.Text `json:"voice_session_id"`
TranscriptIntegrityLost bool `json:"transcript_integrity_lost"`
SourceAudioDocumentID pgtype.Text `json:"source_audio_document_id"`
SourceAudioDocumentVersionID pgtype.Text `json:"source_audio_document_version_id"`
TranscriptRecoveredAt pgtype.Timestamptz `json:"transcript_recovered_at"`
RequestedTranscriptStartOffsetMs int64 `json:"requested_transcript_start_offset_ms"`
VoiceCompletionAttempts int32 `json:"voice_completion_attempts"`
VoiceCompletionFailedAt pgtype.Timestamptz `json:"voice_completion_failed_at"`
VoiceCompletionFailureCode pgtype.Text `json:"voice_completion_failure_code"`
StagingDeletedAt pgtype.Timestamptz `json:"staging_deleted_at"`
StopRequestedAt pgtype.Timestamptz `json:"stop_requested_at"`
MaterializeRequestedAt pgtype.Timestamptz `json:"materialize_requested_at"`
MaterializeAttempts int32 `json:"materialize_attempts"`
MaterializeRetryAt pgtype.Timestamptz `json:"materialize_retry_at"`
TranscriptRecoveryStatus pgtype.Text `json:"transcript_recovery_status"`
TranscriptRecoveryProgressMs int64 `json:"transcript_recovery_progress_ms"`
TranscriptRecoveryTotalMs pgtype.Int8 `json:"transcript_recovery_total_ms"`
TranscriptRecoveryFailures int32 `json:"transcript_recovery_failures"`
TranscriptRecoveryFailureCode pgtype.Text `json:"transcript_recovery_failure_code"`
TranscriptRecoveryRetryAt pgtype.Timestamptz `json:"transcript_recovery_retry_at"`
HiddenAt pgtype.Timestamptz `json:"hidden_at"`
QuickNotesState pgtype.Text `json:"quick_notes_state"`
QuickNotes []byte `json:"quick_notes"`
}
type CaptureTranscriptCoverage struct {
SessionID string `json:"session_id"`
StreamID string `json:"stream_id"`
Lane string `json:"lane"`
StartOffsetMs int64 `json:"start_offset_ms"`
EndOffsetMs int64 `json:"end_offset_ms"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CommandReplay struct {
Scope string `json:"scope"`
Operation string `json:"operation"`
Key string `json:"key"`
RequestHash []byte `json:"request_hash"`
ResourceID pgtype.Text `json:"resource_id"`
ResponseStatus pgtype.Int4 `json:"response_status"`
ResponseBody []byte `json:"response_body"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
State string `json:"state"`
InvocationID pgtype.Text `json:"invocation_id"`
CredentialID pgtype.Text `json:"credential_id"`
}
type ComposioSetting struct {
Singleton bool `json:"singleton"`
ApiKeyCiphertext []byte `json:"api_key_ciphertext"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Decision struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
MessageID string `json:"message_id"`
Kind string `json:"kind"`
RequestedByActorID string `json:"requested_by_actor_id"`
DeciderActorID string `json:"decider_actor_id"`
AlterEgoTaskID pgtype.Text `json:"alter_ego_task_id"`
Status string `json:"status"`
Request []byte `json:"request"`
View []byte `json:"view"`
Answer []byte `json:"answer"`
Result []byte `json:"result"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
DecidedAt pgtype.Timestamptz `json:"decided_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Screenshot []byte `json:"screenshot"`
ScreenshotMediaType pgtype.Text `json:"screenshot_media_type"`
DecidedByActorID pgtype.Text `json:"decided_by_actor_id"`
}
type Document struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
Title string `json:"title"`
Format string `json:"format"`
OwnerActorID string `json:"owner_actor_id"`
OwnerActorKind string `json:"owner_actor_kind"`
CreatorActorID string `json:"creator_actor_id"`
CreatorActorKind string `json:"creator_actor_kind"`
Status string `json:"status"`
TrashedAt pgtype.Timestamptz `json:"trashed_at"`
RestoredAt pgtype.Timestamptz `json:"restored_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
CurrentVersionID pgtype.Text `json:"current_version_id"`
NativeRepresentationFormat pgtype.Text `json:"native_representation_format"`
NativeImportStatus pgtype.Text `json:"native_import_status"`
NativeImportSourceVersionID pgtype.Text `json:"native_import_source_version_id"`
LinkShareID pgtype.Text `json:"link_share_id"`
LinkShareTokenSha256 []byte `json:"link_share_token_sha256"`
LinkShareRole pgtype.Text `json:"link_share_role"`
LinkShareStatus pgtype.Text `json:"link_share_status"`
LinkShareVersion pgtype.Int8 `json:"link_share_version"`
}
type DocumentAsset struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
CreatedByActorID pgtype.Text `json:"created_by_actor_id"`
RequestHash []byte `json:"request_hash"`
Filename string `json:"filename"`
MediaType string `json:"media_type"`
Sha256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
ContentObjectID string `json:"content_object_id"`
Status string `json:"status"`
ObservedSizeBytes pgtype.Int8 `json:"observed_size_bytes"`
ObservedSha256 pgtype.Text `json:"observed_sha256"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
UploadAttemptCount int32 `json:"upload_attempt_count"`
UploadAttemptID pgtype.Text `json:"upload_attempt_id"`
UploadLeaseTokenHash []byte `json:"upload_lease_token_hash"`
UploadLeaseExpiresAt pgtype.Timestamptz `json:"upload_lease_expires_at"`
UploadStartedAt pgtype.Timestamptz `json:"upload_started_at"`
UploadCompletedAt pgtype.Timestamptz `json:"upload_completed_at"`
GcAfter pgtype.Timestamptz `json:"gc_after"`
DeletionIdentity pgtype.Text `json:"deletion_identity"`
DeletionResult pgtype.Text `json:"deletion_result"`
FailureCode pgtype.Text `json:"failure_code"`
FailureEvidenceHash pgtype.Text `json:"failure_evidence_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
StoredAt pgtype.Timestamptz `json:"stored_at"`
AvailableAt pgtype.Timestamptz `json:"available_at"`
DeletingAt pgtype.Timestamptz `json:"deleting_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
QuarantinedAt pgtype.Timestamptz `json:"quarantined_at"`
}
type DocumentBody struct {
DocumentID string `json:"document_id"`
Seq int64 `json:"seq"`
State []byte `json:"state"`
StateVector []byte `json:"state_vector"`
AssetIds []string `json:"asset_ids"`
ThreadIds []string `json:"thread_ids"`
LastEditorIds []string `json:"last_editor_ids"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ServerOperations []byte `json:"server_operations"`
}
type DocumentContextBinding struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
BindingKind string `json:"binding_kind"`
RoomID pgtype.Text `json:"room_id"`
WorkItemID pgtype.Text `json:"work_item_id"`
WikiID pgtype.Text `json:"wiki_id"`
Status string `json:"status"`
AccessEpoch int64 `json:"access_epoch"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Role string `json:"role"`
}
type DocumentDirectCollaborator struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
TargetActorID string `json:"target_actor_id"`
Role string `json:"role"`
Status string `json:"status"`
GrantorActorID string `json:"grantor_actor_id"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
}
type DocumentEvent struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
Sequence int64 `json:"sequence"`
EventType string `json:"event_type"`
ActorID string `json:"actor_id"`
ResourceKind string `json:"resource_kind"`
ResourceID string `json:"resource_id"`
ProjectionVersion int64 `json:"projection_version"`
OccurredAt pgtype.Timestamptz `json:"occurred_at"`
}
type DocumentEventSequence struct {
DocumentID string `json:"document_id"`
LastSequence int64 `json:"last_sequence"`
}
type DocumentLatestProjection struct {
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
RevisionID string `json:"revision_id"`
PersistedSeq int64 `json:"persisted_seq"`
FullStateFingerprint string `json:"full_state_fingerprint"`
Filename string `json:"filename"`
MediaType string `json:"media_type"`
ContentObjectID string `json:"content_object_id"`
SizeBytes int64 `json:"size_bytes"`
Sha256 string `json:"sha256"`
InputSchemaVersion int32 `json:"input_schema_version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RepresentationFormat string `json:"representation_format"`
}
type DocumentPermissionCount struct {
DocumentID string `json:"document_id"`
PermissionCount int64 `json:"permission_count"`
}
type DocumentPlacement struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
ScopeKind string `json:"scope_kind"`
OwnerHumanActorID string `json:"owner_human_actor_id"`
OwnerActorKind string `json:"owner_actor_kind"`
WikiID pgtype.Text `json:"wiki_id"`
ParentID pgtype.Text `json:"parent_id"`
NodeKind string `json:"node_kind"`
Name pgtype.Text `json:"name"`
DocumentID pgtype.Text `json:"document_id"`
SortKey string `json:"sort_key"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
}
type DocumentRecentOpen struct {
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
LastOpenedAt pgtype.Timestamptz `json:"last_opened_at"`
}
type DocumentRevision struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
PersistedSeq int64 `json:"persisted_seq"`
StateVector []byte `json:"state_vector"`
FullStateFingerprint string `json:"full_state_fingerprint"`
StateStatus string `json:"state_status"`
StateBytes []byte `json:"state_bytes"`
StateBytesSha256 pgtype.Text `json:"state_bytes_sha256"`
AssetManifest []byte `json:"asset_manifest"`
ThreadManifest []string `json:"thread_manifest"`
CreatedByActorID string `json:"created_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
HistoryTrigger pgtype.Text `json:"history_trigger"`
HistoryContributorIds []string `json:"history_contributor_ids"`
HistoryRecordedAt pgtype.Timestamptz `json:"history_recorded_at"`
}
type DocumentText struct {
DocumentID string `json:"document_id"`
TenantID string `json:"tenant_id"`
SourceKind string `json:"source_kind"`
SourceID string `json:"source_id"`
Status string `json:"status"`
SearchText string `json:"search_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Markdown string `json:"markdown"`
MarkdownSha256 pgtype.Text `json:"markdown_sha256"`
LongestLineBytes int64 `json:"longest_line_bytes"`
}
type DocumentTextHead struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
Status string `json:"status"`
Format string `json:"format"`
CurrentVersionID string `json:"current_version_id"`
Filename string `json:"filename"`
RepresentationFormat string `json:"representation_format"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
Sha256 pgtype.Text `json:"sha256"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type DocumentVersion struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
VersionNumber int32 `json:"version_number"`
Filename string `json:"filename"`
RepresentationFormat string `json:"representation_format"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
Sha256 string `json:"sha256"`
ContentObjectID string `json:"content_object_id"`
Source string `json:"source"`
CreatedByActorID string `json:"created_by_actor_id"`
SourceRevisionID pgtype.Text `json:"source_revision_id"`
BaseVersionID pgtype.Text `json:"base_version_id"`
SourceInvocationID pgtype.Text `json:"source_invocation_id"`
ExporterSchemaVersion pgtype.Int4 `json:"exporter_schema_version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type DocumentWikiPage struct {
WikiID string `json:"wiki_id"`
TenantID string `json:"tenant_id"`
PageKey string `json:"page_key"`
DocumentID string `json:"document_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type DocumentWikiPublishedSource struct {
WikiID string `json:"wiki_id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
DocumentVersionID string `json:"document_version_id"`
}
type DocumentWikiRefresh struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
WikiID string `json:"wiki_id"`
GeneratorAgentActorID string `json:"generator_agent_actor_id"`
GeneratorActorKind string `json:"generator_actor_kind"`
BaseWikiRevisionID pgtype.Text `json:"base_wiki_revision_id"`
Status string `json:"status"`
CandidateSetHash pgtype.Text `json:"candidate_set_hash"`
ResultWikiRevisionID pgtype.Text `json:"result_wiki_revision_id"`
Outcome pgtype.Text `json:"outcome"`
DispatchLastErrorCode pgtype.Text `json:"dispatch_last_error_code"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
FollowupRequested bool `json:"followup_requested"`
CaptureID pgtype.Text `json:"capture_id"`
SourcesDeferred bool `json:"sources_deferred"`
PreviewPages []byte `json:"preview_pages"`
PreviewRevision int64 `json:"preview_revision"`
}
type DocumentWikiRefreshSource struct {
RefreshID string `json:"refresh_id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
FrozenDocumentVersionID string `json:"frozen_document_version_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SourceKind string `json:"source_kind"`
}
type DocumentWikiUnsettledSource struct {
WikiID string `json:"wiki_id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
DocumentVersionID string `json:"document_version_id"`
Tries int16 `json:"tries"`
}
type ExternalConnection struct {
ID string `json:"id"`
AccountID string `json:"account_id"`
Provider string `json:"provider"`
UpstreamConnectionID string `json:"upstream_connection_id"`
Status string `json:"status"`
ConnectExpiresAt pgtype.Timestamptz `json:"connect_expires_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RemoteTeamID pgtype.Text `json:"remote_team_id"`
RemoteTeamName pgtype.Text `json:"remote_team_name"`
RemoteUserID pgtype.Text `json:"remote_user_id"`
Revision int64 `json:"revision"`
ConnectUrl pgtype.Text `json:"connect_url"`
IdentityLabel pgtype.Text `json:"identity_label"`
RemotePrincipalKey pgtype.Text `json:"remote_principal_key"`
StatusCheckedAt pgtype.Timestamptz `json:"status_checked_at"`
NextStatusCheckAt pgtype.Timestamptz `json:"next_status_check_at"`
StatusErrorCode pgtype.Text `json:"status_error_code"`
ActiveSince pgtype.Timestamptz `json:"active_since"`
ToolkitSlug pgtype.Text `json:"toolkit_slug"`
AuthConfigID pgtype.Text `json:"auth_config_id"`
AutoReminders bool `json:"auto_reminders"`
StatusCheckRequestedAt pgtype.Timestamptz `json:"status_check_requested_at"`
ReauthorizationUpstreamID pgtype.Text `json:"reauthorization_upstream_id"`
ReauthorizationConnectUrl pgtype.Text `json:"reauthorization_connect_url"`
ReauthorizationConnectExpiresAt pgtype.Timestamptz `json:"reauthorization_connect_expires_at"`
ReauthorizationErrorCode pgtype.Text `json:"reauthorization_error_code"`
MailImportStatus pgtype.Text `json:"mail_import_status"`
MailImportRevision pgtype.Int8 `json:"mail_import_revision"`
MailImportTenantID pgtype.Text `json:"mail_import_tenant_id"`
MailImportErrorCode pgtype.Text `json:"mail_import_error_code"`
MailImportCursor pgtype.Text `json:"mail_import_cursor"`
MailImportRead pgtype.Int4 `json:"mail_import_read"`
MailImportProviderCalls pgtype.Int4 `json:"mail_import_provider_calls"`
MailSyncedUntil pgtype.Timestamptz `json:"mail_synced_until"`
}
type ExternalConnectionAgentGrant struct {
ID string `json:"id"`
ConnectionID string `json:"connection_id"`
TenantID string `json:"tenant_id"`
AgentActorID string `json:"agent_actor_id"`
RepresentedHumanActorID string `json:"represented_human_actor_id"`
Status string `json:"status"`
Revision int64 `json:"revision"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
}
type ExternalConnectionUpstream struct {
UpstreamID string `json:"upstream_id"`
AccountID string `json:"account_id"`
UserID string `json:"user_id"`
ToolkitSlug string `json:"toolkit_slug"`
AuthConfigID string `json:"auth_config_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RevokeRequestedAt pgtype.Timestamptz `json:"revoke_requested_at"`
}
type ExternalMailImportDocument struct {
RemoteID string `json:"remote_id"`
Ordinal int32 `json:"ordinal"`
Document []byte `json:"document"`
ConnectionID string `json:"connection_id"`
}
type GmailCanvasDraft struct {
ConnectionID string `json:"connection_id"`
DraftID string `json:"draft_id"`
DocumentID string `json:"document_id"`
SourceDigest string `json:"source_digest"`
}
type GmailCanvasDraftLease struct {
ConnectionID string `json:"connection_id"`
Holder string `json:"holder"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type LocalComputer struct {
ComputerID string `json:"computer_id"`
DisplayName string `json:"display_name"`
Status string `json:"status"`
CredentialGeneration int64 `json:"credential_generation"`
Capacity pgtype.Int4 `json:"capacity"`
ActiveOperations int32 `json:"active_operations"`
RuntimeInventory []byte `json:"runtime_inventory"`
WorkspaceGrants []byte `json:"workspace_grants"`
RuntimeDiagnostics []byte `json:"runtime_diagnostics"`
LastSeenAt pgtype.Timestamptz `json:"last_seen_at"`
RemovedAt pgtype.Timestamptz `json:"removed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DaemonID pgtype.Text `json:"daemon_id"`
DaemonPublicKey []byte `json:"daemon_public_key"`
DaemonIdentityVersion int64 `json:"daemon_identity_version"`
Platform pgtype.Text `json:"platform"`
DaemonVersion pgtype.Text `json:"daemon_version"`
RecommendedVersion pgtype.Text `json:"recommended_version"`
OwnerTenantID string `json:"owner_tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
}
type LocalComputerEnrollment struct {
EnrollmentID string `json:"enrollment_id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
RequestedComputerID pgtype.Text `json:"requested_computer_id"`
RenewsExistingComputer bool `json:"renews_existing_computer"`
DisplayName string `json:"display_name"`
RedirectUri string `json:"redirect_uri"`
CodeChallenge string `json:"code_challenge"`
AuthorizationCodeHash []byte `json:"authorization_code_hash"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ExchangedAt pgtype.Timestamptz `json:"exchanged_at"`
ExchangedGeneration pgtype.Int8 `json:"exchanged_generation"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type LocalComputerModelSnapshot struct {
ComputerID string `json:"computer_id"`
Snapshot []byte `json:"snapshot"`
Host []byte `json:"host"`
ObservedAt pgtype.Timestamptz `json:"observed_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MailCanvasDelivery struct {
DocumentID string `json:"document_id"`
ID string `json:"id"`
AccountID string `json:"account_id"`
ConnectionID pgtype.Text `json:"connection_id"`
SourceDigest string `json:"source_digest"`
Status string `json:"status"`
DraftID string `json:"draft_id"`
MessageID string `json:"message_id"`
ErrorMessage string `json:"error_message"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MemoryIndexChunk struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerID string `json:"owner_id"`
AgentID string `json:"agent_id"`
SourceID string `json:"source_id"`
SourceSha256 string `json:"source_sha256"`
ChunkNo int32 `json:"chunk_no"`
Content string `json:"content"`
HeadingPath []string `json:"heading_path"`
LineStart int32 `json:"line_start"`
LineEnd int32 `json:"line_end"`
ContentSha256 string `json:"content_sha256"`
SearchTsv interface{} `json:"search_tsv"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MemoryIndexSchedulerState struct {
Singleton bool `json:"singleton"`
CalendarTimeZone pgtype.Text `json:"calendar_time_zone"`
CalendarHour pgtype.Int8 `json:"calendar_hour"`
CalendarCompleted []string `json:"calendar_completed"`
CalendarPending []byte `json:"calendar_pending"`
CalendarFailed []byte `json:"calendar_failed"`
TriggersActivatedAt pgtype.Timestamptz `json:"triggers_activated_at"`
TriggersScannedAt pgtype.Timestamptz `json:"triggers_scanned_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MemoryIndexSessionFact struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerID string `json:"owner_id"`
AgentID string `json:"agent_id"`
SourceID string `json:"source_id"`
SourceSha256 string `json:"source_sha256"`
WindowSha256 string `json:"window_sha256"`
ChunkID string `json:"chunk_id"`
ChunkSha256 string `json:"chunk_sha256"`
Ordinal int32 `json:"ordinal"`
Text string `json:"text"`
Speaker pgtype.Text `json:"speaker"`
FactType string `json:"fact_type"`
OccurredStart pgtype.Date `json:"occurred_start"`
OccurredEnd pgtype.Date `json:"occurred_end"`
MentionedAt pgtype.Timestamptz `json:"mentioned_at"`
Entities []string `json:"entities"`
SearchTsv interface{} `json:"search_tsv"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MemoryIndexSessionFactWindow struct {
TenantID string `json:"tenant_id"`
OwnerID string `json:"owner_id"`
AgentID string `json:"agent_id"`
SourceID string `json:"source_id"`
WindowSha256 string `json:"window_sha256"`
FactCount int32 `json:"fact_count"`
ExtractedAt pgtype.Timestamptz `json:"extracted_at"`
}
type MemoryIndexSessionTriggerTarget struct {
TargetKey string `json:"target_key"`
Target []byte `json:"target"`
Attempts int32 `json:"attempts"`
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
Started bool `json:"started"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MemoryIndexSource struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerID string `json:"owner_id"`
AgentID string `json:"agent_id"`
DocumentID string `json:"document_id"`
SourcePath string `json:"source_path"`
Title string `json:"title"`
MimeType string `json:"mime_type"`
ActiveSha256 pgtype.Text `json:"active_sha256"`
IndexProfile string `json:"index_profile"`
IndexedAt pgtype.Timestamptz `json:"indexed_at"`
LastIndexError pgtype.Text `json:"last_index_error"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
SourceKind string `json:"source_kind"`
OriginKind string `json:"origin_kind"`
SourceUri string `json:"source_uri"`
SourceVersion string `json:"source_version"`
RepresentationFormat string `json:"representation_format"`
Metadata []byte `json:"metadata"`
State string `json:"state"`
RoomID pgtype.Text `json:"room_id"`
}
type MemoryIndexSourceVersion struct {
SourceID string `json:"source_id"`
Sha256 string `json:"sha256"`
Manifest []byte `json:"manifest"`
Content string `json:"content"`
SizeBytes int64 `json:"size_bytes"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MemoryIndexTrackingItem struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Kind string `json:"kind"`
Content string `json:"content"`
DueAt pgtype.Timestamptz `json:"due_at"`
SourceRef string `json:"source_ref"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
DueText pgtype.Text `json:"due_text"`
SourceDate pgtype.Date `json:"source_date"`
SourceTimezone string `json:"source_timezone"`
Status string `json:"status"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Revision int64 `json:"revision"`
}
type MemorySourceAnotherMeSubject struct {
TenantID string `json:"tenant_id"`
AgentActorID string `json:"agent_actor_id"`
AgentManagementID pgtype.Text `json:"agent_management_id"`
AgentDisplayName string `json:"agent_display_name"`
RepresentedHumanActorID pgtype.Text `json:"represented_human_actor_id"`
RepresentedHumanDisplayName string `json:"represented_human_display_name"`
RepresentedHumanAccountID pgtype.Text `json:"represented_human_account_id"`
UserProfileRevisionID pgtype.Text `json:"user_profile_revision_id"`
UserProfileMarkdown pgtype.Text `json:"user_profile_markdown"`
HumanIsTenantMember bool `json:"human_is_tenant_member"`
}
type MemorySourceConversationMessage struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
AuthorActorID string `json:"author_actor_id"`
AuthorDisplayName string `json:"author_display_name"`
AuthorKind string `json:"author_kind"`
MessageKind string `json:"message_kind"`
Body string `json:"body"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MemorySourceDeletedRoom struct {
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
}
type MemorySourceFinalizedMeeting struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
StartedAt pgtype.Timestamptz `json:"started_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RecordingDocumentID string `json:"recording_document_id"`
RecordingVersionID string `json:"recording_version_id"`
RecordingFilename string `json:"recording_filename"`
TranscriptDocumentID string `json:"transcript_document_id"`
TranscriptVersionID string `json:"transcript_version_id"`
TranscriptSha256 string `json:"transcript_sha256"`
TranscriptCreatedAt pgtype.Timestamptz `json:"transcript_created_at"`
}
type MemorySourceHiddenMeeting struct {
TenantID string `json:"tenant_id"`
CaptureSessionID string `json:"capture_session_id"`
}
type MemorySourceMessageAttachment struct {
MessageID string `json:"message_id"`
Position int32 `json:"position"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
DocumentVersionID string `json:"document_version_id"`
Filename string `json:"filename"`
RepresentationFormat string `json:"representation_format"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
Sha256 string `json:"sha256"`
IsRecordingTranscript bool `json:"is_recording_transcript"`
}
type MemorySourcePersonalProfileRevision struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Markdown string `json:"markdown"`
}
type MemorySourcePocketNote struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
NoteDate pgtype.Date `json:"note_date"`
Body string `json:"body"`
}
type MemorySourceProactiveGuideline struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Version int32 `json:"version"`
Specific []byte `json:"specific"`
Clues []byte `json:"clues"`
}
type MemorySourceProfileRevisionDate struct {
ID string `json:"id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MemorySourceRevokedAnotherMeAgent struct {
TenantID string `json:"tenant_id"`
RepresentedHumanActorID pgtype.Text `json:"represented_human_actor_id"`
AgentManagementID pgtype.Text `json:"agent_management_id"`
}
type MemorySourceSubjectRecording struct {
AgentManagementID pgtype.Text `json:"agent_management_id"`
CaptureID string `json:"capture_id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
RoomName string `json:"room_name"`
DocumentID string `json:"document_id"`
VersionID string `json:"version_id"`
Sha256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
StartedAt pgtype.Timestamptz `json:"started_at"`
ReadyAt interface{} `json:"ready_at"`
SourceDateAt pgtype.Timestamptz `json:"source_date_at"`
DurationMs int32 `json:"duration_ms"`
CreatorID string `json:"creator_id"`
CreatorName string `json:"creator_name"`
AgentIsMember bool `json:"agent_is_member"`
HumanIsMember bool `json:"human_is_member"`
RecordingStartOffsetMs int64 `json:"recording_start_offset_ms"`
PrivateQuestions []byte `json:"private_questions"`
PrivateChangedAt pgtype.Timestamptz `json:"private_changed_at"`
}
type MemorySourceSubjectRoom struct {
AgentManagementID pgtype.Text `json:"agent_management_id"`
AgentActorID string `json:"agent_actor_id"`
RepresentedHumanActorID pgtype.Text `json:"represented_human_actor_id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
RoomName string `json:"room_name"`
RoomCreatedByActorID string `json:"room_created_by_actor_id"`
AgentIsMember bool `json:"agent_is_member"`
RepresentedHumanIsMember bool `json:"represented_human_is_member"`
}
type MemorySourceUserMemoryRevision struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Version int32 `json:"version"`
Sections []byte `json:"sections"`
BaseProfileRevisionID pgtype.Text `json:"base_profile_revision_id"`
Source string `json:"source"`
}
type Message struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
AuthorActorID string `json:"author_actor_id"`
Body string `json:"body"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Segments []byte `json:"segments"`
CardContextMessageID pgtype.Text `json:"card_context_message_id"`
MessageKind string `json:"message_kind"`
TeamProtocol pgtype.Text `json:"team_protocol"`
LocalRunID pgtype.Text `json:"local_run_id"`
Notice []byte `json:"notice"`
CardTitle pgtype.Text `json:"card_title"`
RoomSeq pgtype.Int8 `json:"room_seq"`
MentionedActorIds []string `json:"mentioned_actor_ids"`
ReplyToMessageID pgtype.Text `json:"reply_to_message_id"`
ContextMessageIds []string `json:"context_message_ids"`
Attachments []byte `json:"attachments"`
FiredRoutineID pgtype.Text `json:"fired_routine_id"`
FiredRoutineInstruction pgtype.Text `json:"fired_routine_instruction"`
CardKind pgtype.Text `json:"card_kind"`
}
type MessageCard struct {
MessageID string `json:"message_id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
WorkItemID pgtype.Text `json:"work_item_id"`
DecisionOwnerActorID string `json:"decision_owner_actor_id"`
CardType string `json:"card_type"`
Intent string `json:"intent"`
Version int64 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MessageReaction struct {
MessageID string `json:"message_id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
ActorID string `json:"actor_id"`
ReactionID string `json:"reaction_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type PersonalInsight struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
SourceGenerationID string `json:"source_generation_id"`
PromptVersion string `json:"prompt_version"`
Model string `json:"model"`
Dimension string `json:"dimension"`
Basis string `json:"basis"`
Statement string `json:"statement"`
ContentFingerprint string `json:"content_fingerprint"`
Evidence []byte `json:"evidence"`
DismissedAt pgtype.Timestamptz `json:"dismissed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type PersonalProfileBuild struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
StartedAt pgtype.Timestamptz `json:"started_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type PersonalProfileCurrent struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
RevisionID string `json:"revision_id"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type PersonalProfileGeneration struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Status string `json:"status"`
DecisionStatus string `json:"decision_status"`
PromptVersion string `json:"prompt_version"`
BaseProfileRevisionID pgtype.Text `json:"base_profile_revision_id"`
CandidateRevisionID pgtype.Text `json:"candidate_revision_id"`
LastErrorCode pgtype.Text `json:"last_error_code"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Sources []byte `json:"sources"`
InsightStatus pgtype.Text `json:"insight_status"`
InsightErrorCode pgtype.Text `json:"insight_error_code"`
InsightDocuments []byte `json:"insight_documents"`
}
type PersonalProfileRevision struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
PromptVersion string `json:"prompt_version"`
Markdown string `json:"markdown"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SourceProfileGenerationID pgtype.Text `json:"source_profile_generation_id"`
SourceApps []string `json:"source_apps"`
Profile []byte `json:"profile"`
}
type PersonalWiki struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
PublishedGeneration int64 `json:"published_generation"`
CurrentRevisionID pgtype.Text `json:"current_revision_id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
PublishedAt pgtype.Timestamptz `json:"published_at"`
}
type PocketNote struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
NoteDate pgtype.Date `json:"note_date"`
Body string `json:"body"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
HiddenAt pgtype.Timestamptz `json:"hidden_at"`
}
type ProactiveConversationWindow struct {
RoomID string `json:"room_id"`
TenantID string `json:"tenant_id"`
JudgedCount int64 `json:"judged_count"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ProactiveGuideline struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Version int32 `json:"version"`
Specific []byte `json:"specific"`
Clues []byte `json:"clues"`
ChangeNote string `json:"change_note"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ProactiveOutput struct {
MessageID string `json:"message_id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
RoomID string `json:"room_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Source string `json:"source"`
LocalRunID string `json:"local_run_id"`
}
type ProactivePendingWake struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
AuthorActorID string `json:"author_actor_id"`
AgentActorID string `json:"agent_actor_id"`
Body string `json:"body"`
TrackingItemID pgtype.Text `json:"tracking_item_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
DeliveredAt pgtype.Timestamptz `json:"delivered_at"`
Source string `json:"source"`
MessageID pgtype.Text `json:"message_id"`
ConnectionGrant []byte `json:"connection_grant"`
FiredRoutineID pgtype.Text `json:"fired_routine_id"`
FiredRoutineInstruction pgtype.Text `json:"fired_routine_instruction"`
}
type ProactivePotentialItem struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Content string `json:"content"`
Source string `json:"source"`
SourceKey string `json:"source_key"`
Reminded bool `json:"reminded"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type RiverJob struct {
ID int64 `json:"id"`
State RiverJobState `json:"state"`
Attempt int16 `json:"attempt"`
MaxAttempts int16 `json:"max_attempts"`
AttemptedAt pgtype.Timestamptz `json:"attempted_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
FinalizedAt pgtype.Timestamptz `json:"finalized_at"`
ScheduledAt pgtype.Timestamptz `json:"scheduled_at"`
Priority int16 `json:"priority"`
Args []byte `json:"args"`
AttemptedBy []string `json:"attempted_by"`
Errors [][]byte `json:"errors"`
Kind string `json:"kind"`
Metadata []byte `json:"metadata"`
Queue string `json:"queue"`
Tags []string `json:"tags"`
UniqueKey []byte `json:"unique_key"`
UniqueStates pgtype.Bits `json:"unique_states"`
}
type RiverLeader struct {
ElectedAt pgtype.Timestamptz `json:"elected_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
LeaderID string `json:"leader_id"`
Name string `json:"name"`
}
type RiverNotification struct {
ID int64 `json:"id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Payload string `json:"payload"`
Topic string `json:"topic"`
}
type RiverQueue struct {
Name string `json:"name"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Metadata []byte `json:"metadata"`
PausedAt pgtype.Timestamptz `json:"paused_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Room struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
Name string `json:"name"`
Description pgtype.Text `json:"description"`
CreatedByActorID string `json:"created_by_actor_id"`
NextRoomSeq int64 `json:"next_room_seq"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletionStartedAt pgtype.Timestamptz `json:"deletion_started_at"`
DeletionStartedByActorID pgtype.Text `json:"deletion_started_by_actor_id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
DeletedByActorID pgtype.Text `json:"deleted_by_actor_id"`
DirectHumanActorID pgtype.Text `json:"direct_human_actor_id"`
DirectAgentActorID pgtype.Text `json:"direct_agent_actor_id"`
ParentRoomID pgtype.Text `json:"parent_room_id"`
RootMessageID pgtype.Text `json:"root_message_id"`
TeamMdRawMarkdown pgtype.Text `json:"team_md_raw_markdown"`
TeamMdCollaboratePattern pgtype.Text `json:"team_md_collaborate_pattern"`
TeamMdDocument []byte `json:"team_md_document"`
TeamMdRevision pgtype.Int8 `json:"team_md_revision"`
TeamMdUpdatedAt pgtype.Timestamptz `json:"team_md_updated_at"`
TeamMdUpdatedByActorID pgtype.Text `json:"team_md_updated_by_actor_id"`
}
type RoomAgentMessageCancellation struct {
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
AgentActorID string `json:"agent_actor_id"`
MessageID string `json:"message_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type RoomAgentRun struct {
RunID string `json:"run_id"`
Status string `json:"status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
ContextKey string `json:"context_key"`
TenantID string `json:"tenant_id"`
RoomID pgtype.Text `json:"room_id"`
ContextRoomID pgtype.Text `json:"context_room_id"`
AgentManagementID string `json:"agent_management_id"`
AgentActorID string `json:"agent_actor_id"`
}
type RoomDocumentComment struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID pgtype.Text `json:"room_id"`
DocumentID string `json:"document_id"`
ThreadID string `json:"thread_id"`
ParentCommentID pgtype.Text `json:"parent_comment_id"`
AuthorActorID string `json:"author_actor_id"`
VersionNumber int64 `json:"version_number"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Body string `json:"body"`
Segments []byte `json:"segments"`
}
type RoomDocumentCommentReaction struct {
TenantID string `json:"tenant_id"`
RoomID pgtype.Text `json:"room_id"`
DocumentID string `json:"document_id"`
ThreadID string `json:"thread_id"`
CommentID string `json:"comment_id"`
ActorID string `json:"actor_id"`
Emoji string `json:"emoji"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type RoomDocumentCommentThread struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID pgtype.Text `json:"room_id"`
DocumentID string `json:"document_id"`
CurrentAnchorID string `json:"current_anchor_id"`
AnchorStatus string `json:"anchor_status"`
CreatedByActorID string `json:"created_by_actor_id"`
ResolvedByActorID pgtype.Text `json:"resolved_by_actor_id"`
ResolvedAt pgtype.Timestamptz `json:"resolved_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
AnchorKind string `json:"anchor_kind"`
AnchorDocumentVersionID pgtype.Text `json:"anchor_document_version_id"`
AnchorQuotedText string `json:"anchor_quoted_text"`
AnchorBlockID string `json:"anchor_block_id"`
AnchorContextBefore string `json:"anchor_context_before"`
AnchorContextAfter string `json:"anchor_context_after"`
AnchorVersionNumber int64 `json:"anchor_version_number"`
AnchorCreatedByActorID string `json:"anchor_created_by_actor_id"`
AnchorCreatedAt pgtype.Timestamptz `json:"anchor_created_at"`
}
type RoomEvent struct {
EventID string `json:"event_id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
RoomSeq int64 `json:"room_seq"`
EventType string `json:"event_type"`
ActorID string `json:"actor_id"`
ResourceID string `json:"resource_id"`
Payload []byte `json:"payload"`
OccurredAt pgtype.Timestamptz `json:"occurred_at"`
}
type RoomHistoryShare struct {
ID string `json:"id"`
RoomID string `json:"room_id"`
CreatorActorID string `json:"creator_actor_id"`
CreatorMembershipEpochID string `json:"creator_membership_epoch_id"`
TokenHash []byte `json:"token_hash"`
RoomName string `json:"room_name"`
SnapshotRoomSeq int64 `json:"snapshot_room_seq"`
MessageCount int32 `json:"message_count"`
WebVersion string `json:"web_version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
}
type RoomHistoryShareAsset struct {
ShareID string `json:"share_id"`
ID string `json:"id"`
MediaType string `json:"media_type"`
Content []byte `json:"content"`
}
type RoomHistoryShareMessage struct {
ShareID string `json:"share_id"`
Position int64 `json:"position"`
MessageID string `json:"message_id"`
Presentation []byte `json:"presentation"`
}
type RoomMember struct {
RoomID string `json:"room_id"`
TenantID string `json:"tenant_id"`
ActorID string `json:"actor_id"`
Role string `json:"role"`
AddedByActorID string `json:"added_by_actor_id"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
MembershipEpochID string `json:"membership_epoch_id"`
}
type RoomMemberState struct {
RoomID string `json:"room_id"`
ActorID string `json:"actor_id"`
ReadThroughRoomSeq int64 `json:"read_through_room_seq"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
LeftAt pgtype.Timestamptz `json:"left_at"`
ParticipationEpochID pgtype.Text `json:"participation_epoch_id"`
LeftRoomSeq int64 `json:"left_room_seq"`
PinnedAt pgtype.Timestamptz `json:"pinned_at"`
ThreadOpenedAt pgtype.Timestamptz `json:"thread_opened_at"`
}
type RoomReminder struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
CreatedByActorID string `json:"created_by_actor_id"`
Instruction string `json:"instruction"`
MentionActorID pgtype.Text `json:"mention_actor_id"`
CadenceKind pgtype.Text `json:"cadence_kind"`
Timezone string `json:"timezone"`
Hour pgtype.Int4 `json:"hour"`
Minute pgtype.Int4 `json:"minute"`
Enabled bool `json:"enabled"`
NextRunAt pgtype.Timestamptz `json:"next_run_at"`
Revision int64 `json:"revision"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Name string `json:"name"`
Weekdays []string `json:"weekdays"`
TemplateAgentActorID pgtype.Text `json:"template_agent_actor_id"`
TemplateRoutineKey pgtype.Text `json:"template_routine_key"`
Trigger []byte `json:"trigger"`
RunAt pgtype.Timestamptz `json:"run_at"`
TrackingItemID pgtype.Text `json:"tracking_item_id"`
TrackingPurpose pgtype.Text `json:"tracking_purpose"`
IntervalMinutes pgtype.Int4 `json:"interval_minutes"`
}
type RoomRoutineListener struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
RoutineID string `json:"routine_id"`
Ordinal int32 `json:"ordinal"`
Kind string `json:"kind"`
ConnectionID string `json:"connection_id"`
PollCursor pgtype.Text `json:"poll_cursor"`
PollNextAt pgtype.Timestamptz `json:"poll_next_at"`
PollIntervalSeconds int32 `json:"poll_interval_seconds"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type RoutineEventDelivery struct {
RoutineID string `json:"routine_id"`
Source string `json:"source"`
UpstreamEventID string `json:"upstream_event_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type Skill struct {
SkillID string `json:"skill_id"`
OwnerKind string `json:"owner_kind"`
TenantID pgtype.Text `json:"tenant_id"`
Name string `json:"name"`
DefaultAgentTypes []string `json:"default_agent_types"`
CreatedByActorID pgtype.Text `json:"created_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
AccessScope string `json:"access_scope"`
OwnerActorID pgtype.Text `json:"owner_actor_id"`
LatestManifestID pgtype.Text `json:"latest_manifest_id"`
}
type SkillManifest struct {
ManifestID string `json:"manifest_id"`
SkillID string `json:"skill_id"`
ManifestVersion string `json:"manifest_version"`
Description string `json:"description"`
ConfigSchema []byte `json:"config_schema"`
ContentHash []byte `json:"content_hash"`
FileCount int32 `json:"file_count"`
SizeBytes int64 `json:"size_bytes"`
PackageState string `json:"package_state"`
CreatedByActorID pgtype.Text `json:"created_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SealedAt pgtype.Timestamptz `json:"sealed_at"`
FrontmatterExtra []byte `json:"frontmatter_extra"`
Files []byte `json:"files"`
State string `json:"state"`
}
type TaskAttempt struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
AttemptNumber int64 `json:"attempt_number"`
RuntimeGenerationKey string `json:"runtime_generation_key"`
Status string `json:"status"`
CurrentInputRevision int64 `json:"current_input_revision"`
DeadlineAt pgtype.Timestamptz `json:"deadline_at"`
StopReasonCode pgtype.Text `json:"stop_reason_code"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
}
type TaskEffect struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
RootOperationID string `json:"root_operation_id"`
EffectKey string `json:"effect_key"`
Operation string `json:"operation"`
OwnerID string `json:"owner_id"`
Payload []byte `json:"payload"`
PayloadHash []byte `json:"payload_hash"`
RootPayloadHash []byte `json:"root_payload_hash"`
DispatchSequence int64 `json:"dispatch_sequence"`
RetryOfEffectID pgtype.Text `json:"retry_of_effect_id"`
Status string `json:"status"`
WorkerID pgtype.Text `json:"worker_id"`
LeaseTokenHash []byte `json:"lease_token_hash"`
LeaseGeneration int64 `json:"lease_generation"`
LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
Observation []byte `json:"observation"`
ObservationHash []byte `json:"observation_hash"`
Error pgtype.Text `json:"error"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
DispatchStartedAt pgtype.Timestamptz `json:"dispatch_started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type TaskExecutionFact struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
ExecutionRevision int64 `json:"execution_revision"`
FactKind string `json:"fact_kind"`
ExecutionStatus string `json:"execution_status"`
ControlSettledRevision int64 `json:"control_settled_revision"`
ControlRevision pgtype.Int8 `json:"control_revision"`
SourceOperationID pgtype.Text `json:"source_operation_id"`
ReasonCode pgtype.Text `json:"reason_code"`
Payload []byte `json:"payload"`
PayloadHash []byte `json:"payload_hash"`
CausedByActorID pgtype.Text `json:"caused_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type TaskExecutionGeneration struct {
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
SourceKey pgtype.Text `json:"source_key"`
ResultAgentActorID string `json:"result_agent_actor_id"`
Spec []byte `json:"spec"`
SpecHash []byte `json:"spec_hash"`
TerminalStatus pgtype.Text `json:"terminal_status"`
TerminalReasonCode pgtype.Text `json:"terminal_reason_code"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TerminalAt pgtype.Timestamptz `json:"terminal_at"`
CoordinatorActorID pgtype.Text `json:"coordinator_actor_id"`
CoordinatorContextKey pgtype.Text `json:"coordinator_context_key"`
}
type TaskExecutionParticipant struct {
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
ActorID string `json:"actor_id"`
AgentManagementID string `json:"agent_management_id"`
ExecutionContextRef []byte `json:"execution_context_ref"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type TaskInputRevision struct {
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
AttemptID string `json:"attempt_id"`
InputRevision int64 `json:"input_revision"`
Cause string `json:"cause"`
RecipientActorIds []byte `json:"recipient_actor_ids"`
InputManifest []byte `json:"input_manifest"`
MessageEffectIds []byte `json:"message_effect_ids"`
CapabilityHash []byte `json:"capability_hash"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SourceMessageID pgtype.Text `json:"source_message_id"`
}
type TaskMetaCallback struct {
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
CoordinatorActorID string `json:"coordinator_actor_id"`
CoordinatorContextKey string `json:"coordinator_context_key"`
ThroughSeq int64 `json:"through_seq"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type TaskMetaCallbackMessage struct {
ID string `json:"id"`
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
Generation int64 `json:"generation"`
MetaSeq int64 `json:"meta_seq"`
AuthorActorID string `json:"author_actor_id"`
Body string `json:"body"`
Segments []byte `json:"segments"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type TaskMetaInbox struct {
TaskID string `json:"task_id"`
TenantID string `json:"tenant_id"`
AgentActorID string `json:"agent_actor_id"`
ThroughSeq int64 `json:"through_seq"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type TaskMetaMessage struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
TaskID string `json:"task_id"`
AgentActorID string `json:"agent_actor_id"`
MetaSeq int64 `json:"meta_seq"`
AuthorActorID string `json:"author_actor_id"`
Body string `json:"body"`
Segments []byte `json:"segments"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Source string `json:"source"`
}
type ThreadRoomListActor struct {
ThreadRoomID string `json:"thread_room_id"`
ActorID string `json:"actor_id"`
TenantID string `json:"tenant_id"`
}
type UserMemoryRevision struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
Version int32 `json:"version"`
Sections []byte `json:"sections"`
Markdown string `json:"markdown"`
BaseProfileRevisionID pgtype.Text `json:"base_profile_revision_id"`
Source string `json:"source"`
ChangeNote string `json:"change_note"`
Evidence []byte `json:"evidence"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type VoiceCaptureQuestion struct {
ID string `json:"id"`
CaptureSessionID string `json:"capture_session_id"`
Question string `json:"question"`
Answer string `json:"answer"`
Answered bool `json:"answered"`
CutoffOffsetMs int64 `json:"cutoff_offset_ms"`
Sources []byte `json:"sources"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Kind string `json:"kind"`
TaskTitle string `json:"task_title"`
SentMessageID pgtype.Text `json:"sent_message_id"`
}
type VoiceLiveConfirmation struct {
ID string `json:"id"`
VoiceSessionID string `json:"voice_session_id"`
TurnID string `json:"turn_id"`
Tool string `json:"tool"`
ArgumentsHash string `json:"arguments_hash"`
Goal string `json:"goal"`
Surface string `json:"surface"`
UsedAt pgtype.Timestamptz `json:"used_at"`
UsedTurnID pgtype.Text `json:"used_turn_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type VoiceLiveReply struct {
VoiceSessionID string `json:"voice_session_id"`
EventID string `json:"event_id"`
TurnID string `json:"turn_id"`
MessageID string `json:"message_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type VoiceLiveReportDelivery struct {
ReportID string `json:"report_id"`
VoiceSessionID string `json:"voice_session_id"`
MessageID string `json:"message_id"`
DeliveredAt pgtype.Timestamptz `json:"delivered_at"`
}
type VoiceLiveTask struct {
WorkItemID string `json:"work_item_id"`
RoomID string `json:"room_id"`
OwnerActorID string `json:"owner_actor_id"`
HomeRoomID string `json:"home_room_id"`
Ordinal int32 `json:"ordinal"`
VoiceSessionID pgtype.Text `json:"voice_session_id"`
Goal string `json:"goal"`
Surface string `json:"surface"`
CanceledAt pgtype.Timestamptz `json:"canceled_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type VoiceLiveToolCall struct {
VoiceSessionID string `json:"voice_session_id"`
CallID string `json:"call_id"`
TurnID string `json:"turn_id"`
Name string `json:"name"`
Arguments string `json:"arguments"`
RequestHash string `json:"request_hash"`
State string `json:"state"`
Output string `json:"output"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type VoiceLiveTurn struct {
VoiceSessionID string `json:"voice_session_id"`
TurnID string `json:"turn_id"`
HumanMessageID string `json:"human_message_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type VoiceMediaEpoch struct {
ID string `json:"id"`
VoiceSessionID string `json:"voice_session_id"`
CaptureSessionID string `json:"capture_session_id"`
EpochIndex int32 `json:"epoch_index"`
DesiredState string `json:"desired_state"`
ObservedState string `json:"observed_state"`
ProviderEgressID pgtype.Text `json:"provider_egress_id"`
StagingPrefix string `json:"staging_prefix"`
PlaylistObjectKey pgtype.Text `json:"playlist_object_key"`
FirstArchivedMs pgtype.Int8 `json:"first_archived_ms"`
ArchivedThroughMs pgtype.Int8 `json:"archived_through_ms"`
SegmentCount int64 `json:"segment_count"`
LastSegmentAt pgtype.Timestamptz `json:"last_segment_at"`
FinalEndMs pgtype.Int8 `json:"final_end_ms"`
LastFailureCode pgtype.Text `json:"last_failure_code"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
SealedAt pgtype.Timestamptz `json:"sealed_at"`
RecorderState pgtype.Text `json:"recorder_state"`
RecorderStartedAt pgtype.Timestamptz `json:"recorder_started_at"`
RecorderArchivedThroughMs pgtype.Int8 `json:"recorder_archived_through_ms"`
RecorderFailureCode pgtype.Text `json:"recorder_failure_code"`
RecorderReportedAt pgtype.Timestamptz `json:"recorder_reported_at"`
RestartRetryAt pgtype.Timestamptz `json:"restart_retry_at"`
}
type VoiceProviderKey struct {
Provider string `json:"provider"`
ApiKeyCiphertext []byte `json:"api_key_ciphertext"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type VoiceSession struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
RoomID string `json:"room_id"`
CreatedByActorID string `json:"created_by_actor_id"`
Status string `json:"status"`
ProviderRoomName string `json:"provider_room_name"`
ParticipantIdentity string `json:"participant_identity"`
CredentialGeneration int64 `json:"credential_generation"`
LastFailureCode pgtype.Text `json:"last_failure_code"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ClosedAt pgtype.Timestamptz `json:"closed_at"`
LatestPartialText pgtype.Text `json:"latest_partial_text"`
LatestPartialStartOffsetMs pgtype.Int8 `json:"latest_partial_start_offset_ms"`
LatestPartialEndOffsetMs pgtype.Int8 `json:"latest_partial_end_offset_ms"`
LatestPartialUpdatedAt pgtype.Timestamptz `json:"latest_partial_updated_at"`
LastInputStartedMs pgtype.Int8 `json:"last_input_started_ms"`
LastInputEndedMs pgtype.Int8 `json:"last_input_ended_ms"`
Purpose string `json:"purpose"`
AuthSessionID pgtype.Text `json:"auth_session_id"`
LiveAgentActorID pgtype.Text `json:"live_agent_actor_id"`
LiveLeaseUntil pgtype.Timestamptz `json:"live_lease_until"`
NextMediaEpoch int32 `json:"next_media_epoch"`
}
type VoiceTranscriptSegment struct {
ID string `json:"id"`
EventID string `json:"event_id"`
VoiceSessionID string `json:"voice_session_id"`
CaptureSessionID pgtype.Text `json:"capture_session_id"`
MediaEpoch int32 `json:"media_epoch"`
Lane string `json:"lane"`
StartOffsetMs int64 `json:"start_offset_ms"`
EndOffsetMs int64 `json:"end_offset_ms"`
Text string `json:"text"`
NormalizedText string `json:"normalized_text"`
Kind string `json:"kind"`
AcceptedAt pgtype.Timestamptz `json:"accepted_at"`
SpeakerID pgtype.Text `json:"speaker_id"`
Seq int64 `json:"seq"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
}
type VoiceTranscriptUncertainty struct {
CaptureSessionID string `json:"capture_session_id"`
EventID string `json:"event_id"`
StartOffsetMs int64 `json:"start_offset_ms"`
EndOffsetMs int64 `json:"end_offset_ms"`
Reason string `json:"reason"`
RecoveredAt pgtype.Timestamptz `json:"recovered_at"`
}
type WebSearchKey struct {
Backend string `json:"backend"`
ApiKeyCiphertext []byte `json:"api_key_ciphertext"`
State string `json:"state"`
QuotaRemaining pgtype.Float8 `json:"quota_remaining"`
QuotaLimit pgtype.Float8 `json:"quota_limit"`
QuotaResetsAt pgtype.Timestamptz `json:"quota_resets_at"`
QuotaObservedAt pgtype.Timestamptz `json:"quota_observed_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WebSearchSetting struct {
Singleton bool `json:"singleton"`
DefaultBackend pgtype.Text `json:"default_backend"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WikiCurrentSource struct {
WikiID pgtype.Text `json:"wiki_id"`
TenantID string `json:"tenant_id"`
SourceKind string `json:"source_kind"`
SourceID string `json:"source_id"`
VersionID string `json:"version_id"`
SizeBytes int64 `json:"size_bytes"`
}
type WikiDocumentVerdict struct {
WikiID pgtype.Text `json:"wiki_id"`
TenantID string `json:"tenant_id"`
DocumentID string `json:"document_id"`
Filename string `json:"filename"`
Source interface{} `json:"source"`
VersionID string `json:"version_id"`
SizeBytes int64 `json:"size_bytes"`
DecidedAt pgtype.Timestamptz `json:"decided_at"`
Reason string `json:"reason"`
}
type WikiSessionSource struct {
WikiID string `json:"wiki_id"`
TenantID string `json:"tenant_id"`
SourceID string `json:"source_id"`
VersionID pgtype.Text `json:"version_id"`
SizeBytes int64 `json:"size_bytes"`
}
type WikiSourceItem struct {
TenantID string `json:"tenant_id"`
OwnerActorID string `json:"owner_actor_id"`
SourceKey string `json:"source_key"`
ContentSha256 string `json:"content_sha256"`
DocumentID string `json:"document_id"`
DocumentVersionID string `json:"document_version_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WorkItem struct {
ID string `json:"id"`
TenantID string `json:"tenant_id"`
Number int64 `json:"number"`
Kind string `json:"kind"`
Title string `json:"title"`
Description string `json:"description"`
Priority string `json:"priority"`
State string `json:"state"`
Resolution pgtype.Text `json:"resolution"`
Version int64 `json:"version"`
CreatedByActorID string `json:"created_by_actor_id"`
UpdatedByActorID string `json:"updated_by_actor_id"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TaskSourceKey pgtype.Text `json:"task_source_key"`
TaskExecutionGeneration pgtype.Int8 `json:"task_execution_generation"`
TaskExecutionStatus pgtype.Text `json:"task_execution_status"`
TaskExecutionRevision pgtype.Int8 `json:"task_execution_revision"`
TaskExecutionReasonCode pgtype.Text `json:"task_execution_reason_code"`
TaskDesiredControl pgtype.Text `json:"task_desired_control"`
TaskControlRevision pgtype.Int8 `json:"task_control_revision"`
TaskControlSettledRevision pgtype.Int8 `json:"task_control_settled_revision"`
TaskControlOutcome pgtype.Text `json:"task_control_outcome"`
TaskControlSourceKind pgtype.Text `json:"task_control_source_kind"`
TaskControlSourceID pgtype.Text `json:"task_control_source_id"`
TaskControlRequestedByActorID pgtype.Text `json:"task_control_requested_by_actor_id"`
TaskControlRequestedAt pgtype.Timestamptz `json:"task_control_requested_at"`
TaskControlPayload []byte `json:"task_control_payload"`
TaskExecutionUpdatedAt pgtype.Timestamptz `json:"task_execution_updated_at"`
TaskNextReconcileAt pgtype.Timestamptz `json:"task_next_reconcile_at"`
TaskWorkerID pgtype.Text `json:"task_worker_id"`
TaskLeaseTokenHash []byte `json:"task_lease_token_hash"`
TaskLeaseGeneration pgtype.Int8 `json:"task_lease_generation"`
TaskLeaseExpiresAt pgtype.Timestamptz `json:"task_lease_expires_at"`
Quiet bool `json:"quiet"`
}
type WorkItemAccessGrant struct {
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
ActorID string `json:"actor_id"`
GrantedByActorID string `json:"granted_by_actor_id"`
GrantedAt pgtype.Timestamptz `json:"granted_at"`
}
type WorkItemActivity struct {
ID string `json:"id"`
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
Kind string `json:"kind"`
ActorID string `json:"actor_id"`
FromState pgtype.Text `json:"from_state"`
ToState pgtype.Text `json:"to_state"`
TargetActorID pgtype.Text `json:"target_actor_id"`
CommentID pgtype.Text `json:"comment_id"`
RoomID pgtype.Text `json:"room_id"`
OccurredAt pgtype.Timestamptz `json:"occurred_at"`
Details []byte `json:"details"`
}
type WorkItemAssignment struct {
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
ActorID string `json:"actor_id"`
AssignedByActorID string `json:"assigned_by_actor_id"`
AssignedAt pgtype.Timestamptz `json:"assigned_at"`
}
type WorkItemComment struct {
ID string `json:"id"`
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
AuthorActorID string `json:"author_actor_id"`
Body string `json:"body"`
Segments []byte `json:"segments"`
Version int64 `json:"version"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type WorkItemCommentReference struct {
CommentID string `json:"comment_id"`
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
ActorID string `json:"actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type WorkItemDescriptionReference struct {
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
ActorID string `json:"actor_id"`
Ordinal int32 `json:"ordinal"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type WorkItemRoomLink struct {
WorkItemID string `json:"work_item_id"`
TenantID string `json:"tenant_id"`
LinkType string `json:"link_type"`
RoomID string `json:"room_id"`
OriginMessageID pgtype.Text `json:"origin_message_id"`
LinkedByActorID string `json:"linked_by_actor_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}