Documentation
¶
Index ¶
- type AcceptGoalParams
- type AddDigestArticleParams
- type AddGroupMemberParams
- type AdoptGroupStateParams
- type AdvanceMemorySnapshotParams
- type Agent
- type AgentGoal
- type AgentGoalAcceptanceEvent
- type AgentGoalAttempt
- type AgentGoalEdge
- type AgentGoalEvent
- type AgentLlmCall
- type AgentMentionedSinceCursorParams
- type AgentPostedSinceSeqParams
- type AgentProviderCredential
- type AgentWorkflow
- type AgentWorkflowRun
- type AppSetting
- type AppendAcceptanceEventParams
- type AppendContextItemParams
- type AppendGoalEventParams
- type ArchiveActiveConversationBySessionIDParams
- type ArchiveConversationBySessionIDParams
- type ArchiveProjectParams
- type AssignUserAgentAndTouchAgentParams
- type AssignUserAgentParams
- type AuthCredential
- type AuthIdentity
- type AuthPolicy
- type AuthProvisionedUser
- type AuthSession
- type AuthUser
- type AuthUserAgent
- type AuthUserToken
- type BlockGoalParams
- type BumpAgentMemoryVersionParams
- type Channel
- type ChannelAgent
- type ChannelChatCommandReceipt
- type ChannelGroupMember
- type ChannelGuest
- type ChannelIdentity
- type ClaimGoalParams
- type ClaimGroupNudgeParams
- type ClaimNewestGroupWakeParams
- type ClaimPendingGroupNudgeParams
- type ClaimPendingGroupOutboxParams
- type ClaimSessionInboxDeliveryParams
- type ClaimWorkflowRunParams
- type ClaimWorkflowRunRow
- type ClearGroupDispatchPublishStartedParams
- type ClearUserAgentMemoryParams
- type CompleteSkillHomeMigrationParams
- type CompleteSkillHomeMigrationRow
- type ConsumeOAuthRefreshTokenParams
- type CountActiveKnowledgeParams
- type CountAgentPostsInWindowParams
- type CountAgentPostsSinceSeqParams
- type CountArticlesByStatusParams
- type CountBillableAttemptsParams
- type CountHeldGroupDispatchesInChainParams
- type CountMCPServersByNameExcludingParams
- type CountPeerMessagesAfterSeqParams
- type CountRanReviewAttemptsForOutputParams
- type CountRemovedKnowledgeParams
- type CountRootGoalParams
- type CreateAgentLLMCallParams
- type CreateAgentParams
- type CreateAgentProviderCredentialParams
- type CreateArticleParams
- type CreateAttemptParams
- type CreateAuthUserTokenParams
- type CreateChannelGuestParams
- type CreateChannelParams
- type CreateChatCommandReceiptParams
- type CreateConversationParams
- type CreateDigestParams
- type CreateEdgeParams
- type CreateEmailSendDedupParams
- type CreateFeedEntryParams
- type CreateFeedParams
- type CreateGoalIfAbsentParams
- type CreateGoalParams
- type CreateGroupMessageParams
- type CreateGroupNudgeParams
- type CreateGroupOutboxIfAbsentParams
- type CreateGroupOutboxParams
- type CreateGroupStateParams
- type CreateGroupWakeParams
- type CreateLibraryChunkSetParams
- type CreateLibraryFileParams
- type CreateMCPOAuthFlowParams
- type CreateMCPServerParams
- type CreateMediaIfAbsentParams
- type CreateMemorySnapshotParams
- type CreateMessageParams
- type CreateMessagePartParams
- type CreateOAuthAccessTokenParams
- type CreateOAuthAuthorizationCodeParams
- type CreateOAuthClientParams
- type CreateOAuthRefreshFamilyParams
- type CreateOAuthRefreshTokenParams
- type CreatePersonalAccessTokenParams
- type CreateProjectParams
- type CreateProviderParams
- type CreateProvisionedAuthUserParams
- type CreateProvisionedPersonalAccessTokenParams
- type CreateProvisionedUserChannelIdentityParams
- type CreateProvisionedUserParams
- type CreateSchedJobRunParams
- type CreateSchedulerJobParams
- type CreateShareParams
- type CreateSkillParams
- type CreateSummaryParams
- type CreateWebChannelIfNotExistsParams
- type CreateWebhookParams
- type CreateWorkflowParams
- type CtxAgentMemory
- type CtxAgentMemoryChangelog
- type CtxAgentMemorySnapshot
- type CtxConversation
- type CtxGroupDispatch
- type CtxGroupIngestCursor
- type CtxGroupMessage
- type CtxGroupOutbox
- type CtxGroupState
- type CtxItem
- type CtxMedium
- type CtxMessage
- type CtxMessageEmbedding
- type CtxMessagePart
- type CtxSessionInbox
- type CtxSummary
- type CtxSummaryEmbedding
- type CtxSummaryMessage
- type CtxSummaryParent
- type DBTX
- type DeleteAgentIfVersionParams
- type DeleteAgentProviderCredentialParams
- type DeleteArticleParams
- type DeleteChatAgentParams
- type DeleteChatCommandReceiptParams
- type DeleteContextItemsInRangeParams
- type DeleteDigestArticlesParams
- type DeleteEmailSendDedupParams
- type DeleteFeedParams
- type DeleteMCPServerByScopeIfVersionParams
- type DeleteMCPServerByScopeParams
- type DeleteOrphanMediaRow
- type DeletePluginStateEntryParams
- type DeleteProjectParams
- type DeleteProviderIfVersionParams
- type DeleteShareByUserParams
- type DeleteSkillParams
- type DeleteToolOverrideIfVersionParams
- type DeleteToolOverrideParams
- type DeleteUserAgentMemoryParams
- type DeleteVaultEntryByScopeParams
- type DeleteWebhookForUserParams
- type DeprecateFactParams
- type DisableOAuthClientParams
- type EmailSendDedup
- type EnqueueSessionInboxParams
- type ExistsGroupMessageBeforeSeqParams
- type ExtendRunningGroupDispatchLeaseParams
- type ExtendRunningGroupOutboxLeaseParams
- type Fact
- type FailPendingSessionInboxParams
- type FinalizeAttemptParams
- type GetActiveAttemptParams
- type GetAgentProviderCredentialParams
- type GetArticleByCanonicalURLParams
- type GetArticleParams
- type GetAuthOAuthProviderRow
- type GetChannelIdentityNameParams
- type GetChatAgentParams
- type GetContextMessageItemsRow
- type GetContextStatsRow
- type GetContextTimeBoundsRow
- type GetConversationAgentBySessionIDParams
- type GetConversationBySessionIDParams
- type GetConversationParams
- type GetConversationTimeBoundsRow
- type GetDeliveredGroupMessageBySeqParams
- type GetDeliveredGroupMessageBySeqRow
- type GetDeliveredGroupRecallMessageParams
- type GetDeliveredGroupRecallMessageRow
- type GetDigestByDateParams
- type GetEarliestGroupMentionSinceCursorParams
- type GetEdgeParams
- type GetEmailSendDedupParams
- type GetFactForUpdateParams
- type GetFactParams
- type GetFeedByURLParams
- type GetFeedEntryParams
- type GetFeedParams
- type GetFreshTailMessageIDsParams
- type GetGoalByIdempotencyKeyParams
- type GetGoalHealthReportParams
- type GetGroupMessageByPlatformIDParams
- type GetGroupStateByTripleParams
- type GetIngestCursorParams
- type GetKnowledgeUsageForUpdateParams
- type GetLatestPeerGroupMessageWithContentParams
- type GetLatestQualifyingKnowledgeDeprecateChangelogParams
- type GetLatestWorkflowVersionParams
- type GetLibraryChunkSetByDerivationParams
- type GetLibraryChunkSetIntegrityRow
- type GetLibraryFileLifecycleRow
- type GetLibraryRawOwnersRow
- type GetMCPServerIDByURLOnScopeParams
- type GetMainConversationByProjectParams
- type GetMaxAttemptNoParams
- type GetMediaByOwnerAndSHA256Params
- type GetMediaForSessionParams
- type GetMemoryChangelogAtVersionParams
- type GetMemorySnapshotParams
- type GetMessageByConversationOriginParams
- type GetMessageParams
- type GetMessagePartsByMessagesRow
- type GetMessageScopedParams
- type GetMessageScopedRow
- type GetMessagesByConversationRangeParams
- type GetMessagesSinceParams
- type GetOAuthAccessTokenByPublicIDRow
- type GetOAuthRefreshTokenByPublicIDRow
- type GetOwnedProvisionedUserForUpdateParams
- type GetOwnedProvisionedUserForUpdateRow
- type GetPersonalLibraryQuotaUsageRow
- type GetPluginStateEntryParams
- type GetProjectByNameParams
- type GetProjectByOwnerParams
- type GetProjectParams
- type GetProvisionedUserByExternalIDRow
- type GetProvisionedUserForUpdateRow
- type GetProvisionedUserRow
- type GetRequiredChildRollupCountsRow
- type GetSchedJobRunParams
- type GetSchedulerJobByIdempotencyKeyParams
- type GetSkillHomeMigrationReadinessRow
- type GetSkillHomeMigrationSourceFileStatsRow
- type GetSkillUsageForUpdateParams
- type GetSummariesByDepthParams
- type GetSummaryMessageSeqRangeRow
- type GetSummaryParams
- type GetSystemAgentLibraryQuotaUsageRow
- type GetSystemLibraryQuotaUsageRow
- type GetToolOverrideParams
- type GetUserAgentMemoryParams
- type GetUserAgentSkillByNameParams
- type GetVaultEntryByScopeParams
- type GetWebhookForUserForUpdateParams
- type GetWebhookForUserParams
- type GetWorkflowRunByKeyParams
- type HasEligiblePairActivityAfterParams
- type HeartbeatAttemptParams
- type IncrementGroupNudgeStreakParams
- type InsertArticleContentIfAbsentParams
- type InsertFactParams
- type InsertLibraryChunkBatchParams
- type InsertMemoryChangelogParams
- type InsertSkillChangelogParams
- type InsertToolOverrideIfAbsentParams
- type KnowledgeUsage
- type LastHumanSeqAtOrBeforeParams
- type LibraryChunk
- type LibraryChunkSet
- type LibraryFile
- type LinkSummaryToMessageParams
- type LinkSummaryToParentParams
- type ListActiveFactsBySubjectParams
- type ListActiveKnowledgeContentsParams
- type ListActiveKnowledgeParams
- type ListAgentConversationLastActiveRow
- type ListAgentLLMCallUsageBySessionIDRow
- type ListAgentProviderCredentialRow
- type ListArticlesMissingContentRow
- type ListArticlesNeedingEmbeddingParams
- type ListArticlesNeedingEmbeddingRow
- type ListArticlesParams
- type ListAttemptByGoalParams
- type ListAttemptSummaryByGoalParams
- type ListAttemptSummaryByGoalRow
- type ListContextItemsPageParams
- type ListContextItemsPageRow
- type ListConversationSummarySourceBySessionIDsRow
- type ListConversationsAllParams
- type ListConversationsByKindParams
- type ListConversationsFilteredParams
- type ListConversationsForAdminFilteredParams
- type ListConversationsForReviewFilteredParams
- type ListConversationsForReviewFilteredRow
- type ListConversationsParams
- type ListDeliveredGroupMessagesBeforeSeqParams
- type ListDeliveredGroupMessagesBeforeSeqRow
- type ListDeliveredGroupRecallAfterSeqParams
- type ListDeliveredGroupRecallAfterSeqRow
- type ListDeliveredGroupRecallBeforeSeqParams
- type ListDeliveredGroupRecallBeforeSeqRow
- type ListDigestArticlesParams
- type ListDigestsParams
- type ListEdgeWithUpstreamStateRow
- type ListExistingUserMessageContentParams
- type ListExpiredRunningGroupDispatchParams
- type ListExpiredRunningGroupOutboxParams
- type ListFactChangelogBySubjectPageParams
- type ListFactChangelogBySubjectPageRow
- type ListFactChangelogBySubjectParams
- type ListFactChangelogUpToVersionParams
- type ListFailedInboxSchedulerRunsParams
- type ListFailedInboxSchedulerRunsRow
- type ListFeedEntriesParams
- type ListFeedsParams
- type ListGoalEventByGoalParams
- type ListGoalForHealthScopeParams
- type ListGoalsByWorkflowParams
- type ListGroupMessagesAfterSeqParams
- type ListGroupMessagesAfterSeqRow
- type ListGroupMessagesPaginatedParams
- type ListGroupMessagesPaginatedRow
- type ListGroupNudgeCandidateParams
- type ListGroupNudgeCandidateRow
- type ListGroupsByUserParams
- type ListGroupsByUserRow
- type ListGroupsWithPendingIngestRow
- type ListInboxGoalsParams
- type ListInboxGoalsRow
- type ListLatestGroupMessagesAfterSeqParams
- type ListLatestGroupMessagesAfterSeqRow
- type ListLibraryTombstoneRow
- type ListMCPServersByScopeParams
- type ListMCPServersForAgentContextParams
- type ListManagedLibraryFilesParams
- type ListMediaByIDsForOwnerParams
- type ListMemoryChangelogPageParams
- type ListMemoryChangelogParams
- type ListMessagePartsWithMediaByMessagesRow
- type ListMessagesByIDsParams
- type ListMessagesByLogicalPageParams
- type ListMessagesByLogicalPageRow
- type ListMessagesNeedingEmbeddingParams
- type ListMessagesNeedingEmbeddingRow
- type ListOAuthAuthorizedAppsRow
- type ListPendingEntriesParams
- type ListPendingGroupNudgesParams
- type ListPendingGroupOutboxParams
- type ListPendingGroupWakePairsParams
- type ListPendingSessionInboxParams
- type ListProjectsAllParams
- type ListProjectsParams
- type ListProvisionedUserAfterParams
- type ListProvisionedUserAfterRow
- type ListRecallMessageByIDsRow
- type ListRecallSummaryByIDsRow
- type ListRecentGoalEventContextParams
- type ListRecentGroupMessagesBeforeSeqParams
- type ListRecentGroupMessagesBeforeSeqRow
- type ListReflectUsagePairsRow
- type ListRemovedKnowledgeParams
- type ListRemovedKnowledgeRow
- type ListRootGoalParams
- type ListSchedJobRunsParams
- type ListSchedulerJobByOwnerParams
- type ListSchedulerJobsByAgentParams
- type ListSessionTranscriptPageParams
- type ListSessionTranscriptPageRow
- type ListSharesByUserParams
- type ListSharesByUserRow
- type ListSkillChangelogBySkillParams
- type ListSkillIdentityVisibleParams
- type ListSkillsByScopeParams
- type ListStaleAttemptsParams
- type ListStaleLibraryDerivationParams
- type ListStaleLibraryDerivationRow
- type ListStaleReflectKnowledgeForCuratorParams
- type ListStaleReflectKnowledgeForCuratorRow
- type ListStaleReflectSkillsForCuratorParams
- type ListStaleReflectSkillsForCuratorRow
- type ListSummariesByIDsParams
- type ListSummariesNeedingEmbeddingParams
- type ListSummariesNeedingEmbeddingRow
- type ListToolOverridesForAgentContextParams
- type ListUnreadArticlesOlderThanParams
- type ListUnrepliedGroupToolCallContentsParams
- type ListUnrepliedGroupToolCallContentsRow
- type ListVaultEntriesByScopeParams
- type ListVaultEntriesForRuntimeParams
- type ListWebhookForUserParams
- type ListWorkflowRunsParams
- type ListWorkflowRunsRow
- type ListWorkflowVersionsParams
- type ListWorkflowsParams
- type LockLibraryFileLifecycleRow
- type MarkConversationTurnCompletedParams
- type MarkConversationTurnStartedParams
- type MarkConversationViewedParams
- type MarkExpiredGroupDispatchFailedParams
- type MarkExpiredGroupOutboxFailedParams
- type MarkGroupDispatchCompletedParams
- type MarkGroupDispatchFailedParams
- type MarkGroupDispatchHeldParams
- type MarkGroupDispatchPublishStartedParams
- type MarkGroupDispatchPublishedParams
- type MarkGroupDispatchSilentParams
- type MarkGroupNudgeCheckedParams
- type MarkGroupOutboxCompletedParams
- type MarkGroupOutboxFailedParams
- type MarkLibraryChunkSetFailedParams
- type MarkLibraryChunkSetReadyParams
- type MarkLibraryFileFailedWithoutActiveSetParams
- type MaxHeldUpToSeqInChainParams
- type MaxPeerMessageSeqAfterSeqParams
- type McpOauthFlow
- type McpServer
- type ModelCatalog
- type OauthAccessToken
- type OauthAuthorizationCode
- type OauthClient
- type OauthRefreshFamily
- type OauthRefreshToken
- type PersonalAccessToken
- type Plugin
- type PluginOauthProvider
- type PluginOverride
- type PluginState
- type Project
- type PromoteAttemptParams
- type Provider
- type ProviderModelsCache
- type PublishLibraryFileChunkSetParams
- type Queries
- func (q *Queries) AcceptGoal(ctx context.Context, arg AcceptGoalParams) (int64, error)
- func (q *Queries) AddDigestArticle(ctx context.Context, arg AddDigestArticleParams) error
- func (q *Queries) AddGroupMember(ctx context.Context, arg AddGroupMemberParams) (ChannelGroupMember, error)
- func (q *Queries) AdoptGroupState(ctx context.Context, arg AdoptGroupStateParams) (CtxGroupState, error)
- func (q *Queries) AdvanceMemorySnapshot(ctx context.Context, arg AdvanceMemorySnapshotParams) error
- func (q *Queries) AgentMentionedSinceCursor(ctx context.Context, arg AgentMentionedSinceCursorParams) (bool, error)
- func (q *Queries) AgentPostedSinceSeq(ctx context.Context, arg AgentPostedSinceSeqParams) (bool, error)
- func (q *Queries) AppendAcceptanceEvent(ctx context.Context, arg AppendAcceptanceEventParams) (AgentGoalAcceptanceEvent, error)
- func (q *Queries) AppendContextItem(ctx context.Context, arg AppendContextItemParams) error
- func (q *Queries) AppendGoalEvent(ctx context.Context, arg AppendGoalEventParams) (AgentGoalEvent, error)
- func (q *Queries) ArchiveActiveConversationBySessionID(ctx context.Context, arg ArchiveActiveConversationBySessionIDParams) (int64, error)
- func (q *Queries) ArchiveConversationBySessionID(ctx context.Context, arg ArchiveConversationBySessionIDParams) (int64, error)
- func (q *Queries) ArchiveGoal(ctx context.Context, id string) error
- func (q *Queries) ArchiveProject(ctx context.Context, arg ArchiveProjectParams) error
- func (q *Queries) AssignUserAgent(ctx context.Context, arg AssignUserAgentParams) error
- func (q *Queries) AssignUserAgentAndTouchAgent(ctx context.Context, arg AssignUserAgentAndTouchAgentParams) error
- func (q *Queries) BlockGoal(ctx context.Context, arg BlockGoalParams) (int64, error)
- func (q *Queries) BumpAgentMemoryVersion(ctx context.Context, arg BumpAgentMemoryVersionParams) (CtxAgentMemory, error)
- func (q *Queries) BumpGroupSeq(ctx context.Context, id string) (int64, error)
- func (q *Queries) BumpGroupSeqWithoutNudgeStreakReset(ctx context.Context, id string) (int64, error)
- func (q *Queries) CancelGoal(ctx context.Context, id string) error
- func (q *Queries) ClaimGoal(ctx context.Context, arg ClaimGoalParams) (int64, error)
- func (q *Queries) ClaimGroupNudge(ctx context.Context, arg ClaimGroupNudgeParams) (CtxGroupState, error)
- func (q *Queries) ClaimNewestGroupWake(ctx context.Context, arg ClaimNewestGroupWakeParams) (CtxGroupDispatch, error)
- func (q *Queries) ClaimPendingGroupNudge(ctx context.Context, arg ClaimPendingGroupNudgeParams) (CtxGroupDispatch, error)
- func (q *Queries) ClaimPendingGroupOutbox(ctx context.Context, arg ClaimPendingGroupOutboxParams) (CtxGroupOutbox, error)
- func (q *Queries) ClaimSessionInboxDelivery(ctx context.Context, arg ClaimSessionInboxDeliveryParams) (CtxSessionInbox, error)
- func (q *Queries) ClaimWorkflowRun(ctx context.Context, arg ClaimWorkflowRunParams) (ClaimWorkflowRunRow, error)
- func (q *Queries) ClearGoalActiveAttempt(ctx context.Context, id string) error
- func (q *Queries) ClearGroupDispatchPublishStarted(ctx context.Context, arg ClearGroupDispatchPublishStartedParams) (int64, error)
- func (q *Queries) ClearUserAgentMemory(ctx context.Context, arg ClearUserAgentMemoryParams) error
- func (q *Queries) CompleteSkillHomeMigration(ctx context.Context, arg CompleteSkillHomeMigrationParams) (CompleteSkillHomeMigrationRow, error)
- func (q *Queries) ConsumeMCPOAuthFlow(ctx context.Context, id string) (McpOauthFlow, error)
- func (q *Queries) ConsumeOAuthAuthorizationCode(ctx context.Context, codeHash string) (OauthAuthorizationCode, error)
- func (q *Queries) ConsumeOAuthRefreshToken(ctx context.Context, arg ConsumeOAuthRefreshTokenParams) (OauthRefreshToken, error)
- func (q *Queries) CountActiveKnowledge(ctx context.Context, arg CountActiveKnowledgeParams) (int64, error)
- func (q *Queries) CountAgentPostsInWindow(ctx context.Context, arg CountAgentPostsInWindowParams) (int64, error)
- func (q *Queries) CountAgentPostsSinceSeq(ctx context.Context, arg CountAgentPostsSinceSeqParams) (int64, error)
- func (q *Queries) CountArticlesByStatus(ctx context.Context, arg CountArticlesByStatusParams) (int64, error)
- func (q *Queries) CountBillableAttempts(ctx context.Context, arg CountBillableAttemptsParams) (int64, error)
- func (q *Queries) CountDigests(ctx context.Context, userID string) (int64, error)
- func (q *Queries) CountEnabledSchedulerWorkflowJobs(ctx context.Context, workflowID string) (int64, error)
- func (q *Queries) CountGroupDispatchByMessage(ctx context.Context, groupMessageID string) (int64, error)
- func (q *Queries) CountGroupMembers(ctx context.Context, groupID string) (int64, error)
- func (q *Queries) CountHeldGroupDispatchesInChain(ctx context.Context, arg CountHeldGroupDispatchesInChainParams) (int64, error)
- func (q *Queries) CountInflightAttemptsByRoot(ctx context.Context, rootID string) (int64, error)
- func (q *Queries) CountInflightAttemptsByUser(ctx context.Context, userID string) (int64, error)
- func (q *Queries) CountMCPServersByNameExcluding(ctx context.Context, arg CountMCPServersByNameExcludingParams) (int64, error)
- func (q *Queries) CountPeerMessagesAfterSeq(ctx context.Context, arg CountPeerMessagesAfterSeqParams) (int64, error)
- func (q *Queries) CountRanReviewAttemptsForOutput(ctx context.Context, arg CountRanReviewAttemptsForOutputParams) (int64, error)
- func (q *Queries) CountRemovedKnowledge(ctx context.Context, arg CountRemovedKnowledgeParams) (int64, error)
- func (q *Queries) CountRootGoal(ctx context.Context, arg CountRootGoalParams) (int64, error)
- func (q *Queries) CountRunningSchedJobRuns(ctx context.Context, jobID string) (int64, error)
- func (q *Queries) CountStarredArticles(ctx context.Context, userID string) (int64, error)
- func (q *Queries) CountWorkflowRuns(ctx context.Context, workflowID string) (int64, error)
- func (q *Queries) CreateAgent(ctx context.Context, arg CreateAgentParams) (Agent, error)
- func (q *Queries) CreateAgentLLMCall(ctx context.Context, arg CreateAgentLLMCallParams) (AgentLlmCall, error)
- func (q *Queries) CreateAgentProviderCredential(ctx context.Context, arg CreateAgentProviderCredentialParams) (AgentProviderCredential, error)
- func (q *Queries) CreateArticle(ctx context.Context, arg CreateArticleParams) (RecallyArticle, error)
- func (q *Queries) CreateAttempt(ctx context.Context, arg CreateAttemptParams) (AgentGoalAttempt, error)
- func (q *Queries) CreateAuthUserToken(ctx context.Context, arg CreateAuthUserTokenParams) (AuthUserToken, error)
- func (q *Queries) CreateChannel(ctx context.Context, arg CreateChannelParams) (Channel, error)
- func (q *Queries) CreateChannelGuest(ctx context.Context, arg CreateChannelGuestParams) (ChannelGuest, error)
- func (q *Queries) CreateChatCommandReceipt(ctx context.Context, arg CreateChatCommandReceiptParams) (int64, error)
- func (q *Queries) CreateConversation(ctx context.Context, arg CreateConversationParams) (CtxConversation, error)
- func (q *Queries) CreateDigest(ctx context.Context, arg CreateDigestParams) (RecallyDigest, error)
- func (q *Queries) CreateEdge(ctx context.Context, arg CreateEdgeParams) (AgentGoalEdge, error)
- func (q *Queries) CreateEmailSendDedup(ctx context.Context, arg CreateEmailSendDedupParams) (EmailSendDedup, error)
- func (q *Queries) CreateFeed(ctx context.Context, arg CreateFeedParams) (RecallyFeed, error)
- func (q *Queries) CreateFeedEntry(ctx context.Context, arg CreateFeedEntryParams) (RecallyFeedEntry, error)
- func (q *Queries) CreateGoal(ctx context.Context, arg CreateGoalParams) (AgentGoal, error)
- func (q *Queries) CreateGoalIfAbsent(ctx context.Context, arg CreateGoalIfAbsentParams) (AgentGoal, error)
- func (q *Queries) CreateGroupMessage(ctx context.Context, arg CreateGroupMessageParams) (CtxGroupMessage, error)
- func (q *Queries) CreateGroupNudge(ctx context.Context, arg CreateGroupNudgeParams) error
- func (q *Queries) CreateGroupOutbox(ctx context.Context, arg CreateGroupOutboxParams) (CtxGroupOutbox, error)
- func (q *Queries) CreateGroupOutboxIfAbsent(ctx context.Context, arg CreateGroupOutboxIfAbsentParams) error
- func (q *Queries) CreateGroupState(ctx context.Context, arg CreateGroupStateParams) (CtxGroupState, error)
- func (q *Queries) CreateGroupWake(ctx context.Context, arg CreateGroupWakeParams) error
- func (q *Queries) CreateLibraryChunkSet(ctx context.Context, arg CreateLibraryChunkSetParams) (int64, error)
- func (q *Queries) CreateLibraryFile(ctx context.Context, arg CreateLibraryFileParams) (LibraryFile, error)
- func (q *Queries) CreateMCPOAuthFlow(ctx context.Context, arg CreateMCPOAuthFlowParams) (McpOauthFlow, error)
- func (q *Queries) CreateMCPServer(ctx context.Context, arg CreateMCPServerParams) (McpServer, error)
- func (q *Queries) CreateMediaIfAbsent(ctx context.Context, arg CreateMediaIfAbsentParams) (CtxMedium, error)
- func (q *Queries) CreateMemorySnapshot(ctx context.Context, arg CreateMemorySnapshotParams) (CtxAgentMemorySnapshot, error)
- func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (CtxMessage, error)
- func (q *Queries) CreateMessagePart(ctx context.Context, arg CreateMessagePartParams) (CtxMessagePart, error)
- func (q *Queries) CreateOAuthAccessToken(ctx context.Context, arg CreateOAuthAccessTokenParams) (OauthAccessToken, error)
- func (q *Queries) CreateOAuthAuthorizationCode(ctx context.Context, arg CreateOAuthAuthorizationCodeParams) (OauthAuthorizationCode, error)
- func (q *Queries) CreateOAuthClient(ctx context.Context, arg CreateOAuthClientParams) (OauthClient, error)
- func (q *Queries) CreateOAuthRefreshFamily(ctx context.Context, arg CreateOAuthRefreshFamilyParams) (OauthRefreshFamily, error)
- func (q *Queries) CreateOAuthRefreshToken(ctx context.Context, arg CreateOAuthRefreshTokenParams) (OauthRefreshToken, error)
- func (q *Queries) CreatePersonalAccessToken(ctx context.Context, arg CreatePersonalAccessTokenParams) (PersonalAccessToken, error)
- func (q *Queries) CreateProject(ctx context.Context, arg CreateProjectParams) (Project, error)
- func (q *Queries) CreateProvider(ctx context.Context, arg CreateProviderParams) (Provider, error)
- func (q *Queries) CreateProvisionedAuthUser(ctx context.Context, arg CreateProvisionedAuthUserParams) (AuthUser, error)
- func (q *Queries) CreateProvisionedPersonalAccessToken(ctx context.Context, arg CreateProvisionedPersonalAccessTokenParams) (PersonalAccessToken, error)
- func (q *Queries) CreateProvisionedUser(ctx context.Context, arg CreateProvisionedUserParams) (AuthProvisionedUser, error)
- func (q *Queries) CreateProvisionedUserChannelIdentity(ctx context.Context, arg CreateProvisionedUserChannelIdentityParams) (ChannelIdentity, error)
- func (q *Queries) CreateSchedJobRun(ctx context.Context, arg CreateSchedJobRunParams) (SchedJobRun, error)
- func (q *Queries) CreateSchedulerJob(ctx context.Context, arg CreateSchedulerJobParams) (SchedJob, error)
- func (q *Queries) CreateShare(ctx context.Context, arg CreateShareParams) (Share, error)
- func (q *Queries) CreateSkill(ctx context.Context, arg CreateSkillParams) (Skill, error)
- func (q *Queries) CreateSummary(ctx context.Context, arg CreateSummaryParams) error
- func (q *Queries) CreateWebChannelIfNotExists(ctx context.Context, arg CreateWebChannelIfNotExistsParams) error
- func (q *Queries) CreateWebhook(ctx context.Context, arg CreateWebhookParams) (Webhook, error)
- func (q *Queries) CreateWorkflow(ctx context.Context, arg CreateWorkflowParams) (AgentWorkflow, error)
- func (q *Queries) DeleteAgent(ctx context.Context, id string) error
- func (q *Queries) DeleteAgentIfVersion(ctx context.Context, arg DeleteAgentIfVersionParams) (string, error)
- func (q *Queries) DeleteAgentProviderCredential(ctx context.Context, arg DeleteAgentProviderCredentialParams) error
- func (q *Queries) DeleteAllContextItems(ctx context.Context, conversationID string) error
- func (q *Queries) DeleteArticle(ctx context.Context, arg DeleteArticleParams) error
- func (q *Queries) DeleteAuthOAuthProvider(ctx context.Context, providerID string) error
- func (q *Queries) DeleteAuthUser(ctx context.Context, id string) error
- func (q *Queries) DeleteBuildingLibraryChunks(ctx context.Context, chunkSetID string) (int64, error)
- func (q *Queries) DeleteChannel(ctx context.Context, id string) error
- func (q *Queries) DeleteChannelGuest(ctx context.Context, id string) error
- func (q *Queries) DeleteChatAgent(ctx context.Context, arg DeleteChatAgentParams) error
- func (q *Queries) DeleteChatCommandReceipt(ctx context.Context, arg DeleteChatCommandReceiptParams) error
- func (q *Queries) DeleteContextItemsInRange(ctx context.Context, arg DeleteContextItemsInRangeParams) error
- func (q *Queries) DeleteDigestArticles(ctx context.Context, arg DeleteDigestArticlesParams) error
- func (q *Queries) DeleteEmailSendDedup(ctx context.Context, arg DeleteEmailSendDedupParams) error
- func (q *Queries) DeleteExpiredEmailSendDedup(ctx context.Context) error
- func (q *Queries) DeleteExpiredMCPOAuthFlows(ctx context.Context) (int64, error)
- func (q *Queries) DeleteFeed(ctx context.Context, arg DeleteFeedParams) error
- func (q *Queries) DeleteGroupState(ctx context.Context, id string) error
- func (q *Queries) DeleteKnowledgeUsage(ctx context.Context, factID string) error
- func (q *Queries) DeleteMCPServerByScope(ctx context.Context, arg DeleteMCPServerByScopeParams) error
- func (q *Queries) DeleteMCPServerByScopeIfVersion(ctx context.Context, arg DeleteMCPServerByScopeIfVersionParams) (int64, error)
- func (q *Queries) DeleteManifestPluginOverride(ctx context.Context, pluginID string) error
- func (q *Queries) DeleteOldEntries(ctx context.Context, feedID string) error
- func (q *Queries) DeleteOrphanMedia(ctx context.Context, rowLimit int32) ([]DeleteOrphanMediaRow, error)
- func (q *Queries) DeletePlugin(ctx context.Context, id string) error
- func (q *Queries) DeletePluginStateEntry(ctx context.Context, arg DeletePluginStateEntryParams) error
- func (q *Queries) DeleteProject(ctx context.Context, arg DeleteProjectParams) error
- func (q *Queries) DeleteProvider(ctx context.Context, id string) error
- func (q *Queries) DeleteProviderIfVersion(ctx context.Context, arg DeleteProviderIfVersionParams) (int64, error)
- func (q *Queries) DeleteSchedulerJob(ctx context.Context, id string) error
- func (q *Queries) DeleteSetting(ctx context.Context, key string) error
- func (q *Queries) DeleteShareByUser(ctx context.Context, arg DeleteShareByUserParams) (int64, error)
- func (q *Queries) DeleteSkill(ctx context.Context, arg DeleteSkillParams) error
- func (q *Queries) DeleteSkillUsage(ctx context.Context, skillID string) error
- func (q *Queries) DeleteToolOverride(ctx context.Context, arg DeleteToolOverrideParams) error
- func (q *Queries) DeleteToolOverrideIfVersion(ctx context.Context, arg DeleteToolOverrideIfVersionParams) (ToolOverride, error)
- func (q *Queries) DeleteToolOverridesByPrefix(ctx context.Context, prefix string) (int64, error)
- func (q *Queries) DeleteUserAgentMemory(ctx context.Context, arg DeleteUserAgentMemoryParams) error
- func (q *Queries) DeleteVaultEntryByScope(ctx context.Context, arg DeleteVaultEntryByScopeParams) error
- func (q *Queries) DeleteWebhookForUser(ctx context.Context, arg DeleteWebhookForUserParams) (int64, error)
- func (q *Queries) DeleteWorkflow(ctx context.Context, id string) error
- func (q *Queries) DeprecateFact(ctx context.Context, arg DeprecateFactParams) (Fact, error)
- func (q *Queries) DisableOAuthClient(ctx context.Context, arg DisableOAuthClientParams) (int64, error)
- func (q *Queries) EnqueueSessionInbox(ctx context.Context, arg EnqueueSessionInboxParams) (CtxSessionInbox, error)
- func (q *Queries) ExistsGroupMessageBeforeSeq(ctx context.Context, arg ExistsGroupMessageBeforeSeqParams) (bool, error)
- func (q *Queries) ExtendRunningGroupDispatchLease(ctx context.Context, arg ExtendRunningGroupDispatchLeaseParams) (int64, error)
- func (q *Queries) ExtendRunningGroupOutboxLease(ctx context.Context, arg ExtendRunningGroupOutboxLeaseParams) (int64, error)
- func (q *Queries) FailPendingSessionInbox(ctx context.Context, arg FailPendingSessionInboxParams) (int64, error)
- func (q *Queries) FinalizeAttempt(ctx context.Context, arg FinalizeAttemptParams) (int64, error)
- func (q *Queries) GetActiveAttempt(ctx context.Context, arg GetActiveAttemptParams) (AgentGoalAttempt, error)
- func (q *Queries) GetActiveAuthUserTokenByHash(ctx context.Context, tokenHash string) (AuthUserToken, error)
- func (q *Queries) GetActiveAutoAuthUserTokenByUser(ctx context.Context, userID string) (AuthUserToken, error)
- func (q *Queries) GetAgent(ctx context.Context, id string) (Agent, error)
- func (q *Queries) GetAgentForUpdate(ctx context.Context, id string) (Agent, error)
- func (q *Queries) GetAgentProviderCredential(ctx context.Context, arg GetAgentProviderCredentialParams) (AgentProviderCredential, error)
- func (q *Queries) GetAgentSkillPolicyForUpdate(ctx context.Context, id string) (json.RawMessage, error)
- func (q *Queries) GetArticle(ctx context.Context, arg GetArticleParams) (RecallyArticle, error)
- func (q *Queries) GetArticleByCanonicalURL(ctx context.Context, arg GetArticleByCanonicalURLParams) (RecallyArticle, error)
- func (q *Queries) GetArticleContent(ctx context.Context, articleID string) (string, error)
- func (q *Queries) GetArticlesSavedThisWeek(ctx context.Context, userID string) ([]RecallyArticle, error)
- func (q *Queries) GetAttempt(ctx context.Context, id string) (AgentGoalAttempt, error)
- func (q *Queries) GetAuthOAuthProvider(ctx context.Context, providerID string) (GetAuthOAuthProviderRow, error)
- func (q *Queries) GetAuthUser(ctx context.Context, id string) (AuthUser, error)
- func (q *Queries) GetAuthUserForUpdate(ctx context.Context, id string) (AuthUser, error)
- func (q *Queries) GetAuthUserTokenByHash(ctx context.Context, tokenHash string) (AuthUserToken, error)
- func (q *Queries) GetChannel(ctx context.Context, id string) (Channel, error)
- func (q *Queries) GetChannelForUpdate(ctx context.Context, id string) (Channel, error)
- func (q *Queries) GetChannelGuest(ctx context.Context, id string) (ChannelGuest, error)
- func (q *Queries) GetChannelIdentityName(ctx context.Context, arg GetChannelIdentityNameParams) (string, error)
- func (q *Queries) GetChatAgent(ctx context.Context, arg GetChatAgentParams) (ChannelAgent, error)
- func (q *Queries) GetContextItemCount(ctx context.Context, conversationID string) (int64, error)
- func (q *Queries) GetContextItems(ctx context.Context, conversationID string) ([]CtxItem, error)
- func (q *Queries) GetContextMessageItems(ctx context.Context, conversationID string) ([]GetContextMessageItemsRow, error)
- func (q *Queries) GetContextStats(ctx context.Context, conversationID string) (GetContextStatsRow, error)
- func (q *Queries) GetContextTimeBounds(ctx context.Context, conversationID string) (GetContextTimeBoundsRow, error)
- func (q *Queries) GetContextTokenCount(ctx context.Context, conversationID string) (int64, error)
- func (q *Queries) GetConversation(ctx context.Context, arg GetConversationParams) (CtxConversation, error)
- func (q *Queries) GetConversationAgentBySessionID(ctx context.Context, arg GetConversationAgentBySessionIDParams) (pgtype.Text, error)
- func (q *Queries) GetConversationBySessionID(ctx context.Context, arg GetConversationBySessionIDParams) (CtxConversation, error)
- func (q *Queries) GetConversationForSessionAccess(ctx context.Context, sessionID string) (CtxConversation, error)
- func (q *Queries) GetConversationTimeBounds(ctx context.Context, conversationID string) (GetConversationTimeBoundsRow, error)
- func (q *Queries) GetDeliveredGroupMessageBySeq(ctx context.Context, arg GetDeliveredGroupMessageBySeqParams) (GetDeliveredGroupMessageBySeqRow, error)
- func (q *Queries) GetDeliveredGroupRecallMessage(ctx context.Context, arg GetDeliveredGroupRecallMessageParams) (GetDeliveredGroupRecallMessageRow, error)
- func (q *Queries) GetDigestByDate(ctx context.Context, arg GetDigestByDateParams) (RecallyDigest, error)
- func (q *Queries) GetEarliestGroupMentionSinceCursor(ctx context.Context, arg GetEarliestGroupMentionSinceCursorParams) (int64, error)
- func (q *Queries) GetEdge(ctx context.Context, arg GetEdgeParams) (AgentGoalEdge, error)
- func (q *Queries) GetEmailSendDedup(ctx context.Context, arg GetEmailSendDedupParams) (EmailSendDedup, error)
- func (q *Queries) GetFact(ctx context.Context, arg GetFactParams) (Fact, error)
- func (q *Queries) GetFactForUpdate(ctx context.Context, arg GetFactForUpdateParams) (Fact, error)
- func (q *Queries) GetFeed(ctx context.Context, arg GetFeedParams) (RecallyFeed, error)
- func (q *Queries) GetFeedByURL(ctx context.Context, arg GetFeedByURLParams) (RecallyFeed, error)
- func (q *Queries) GetFeedEntry(ctx context.Context, arg GetFeedEntryParams) (RecallyFeedEntry, error)
- func (q *Queries) GetFreshTailMessageIDs(ctx context.Context, arg GetFreshTailMessageIDsParams) ([]pgtype.Text, error)
- func (q *Queries) GetGoal(ctx context.Context, id string) (AgentGoal, error)
- func (q *Queries) GetGoalByIdempotencyKey(ctx context.Context, arg GetGoalByIdempotencyKeyParams) (AgentGoal, error)
- func (q *Queries) GetGoalHealthReport(ctx context.Context, arg GetGoalHealthReportParams) (json.RawMessage, error)
- func (q *Queries) GetGroupDispatch(ctx context.Context, id string) (CtxGroupDispatch, error)
- func (q *Queries) GetGroupLastActive(ctx context.Context, id string) (time.Time, error)
- func (q *Queries) GetGroupMessage(ctx context.Context, id string) (CtxGroupMessage, error)
- func (q *Queries) GetGroupMessageByIdempotencyKey(ctx context.Context, idempotencyKey pgtype.Text) (CtxGroupMessage, error)
- func (q *Queries) GetGroupMessageByPlatformID(ctx context.Context, arg GetGroupMessageByPlatformIDParams) (CtxGroupMessage, error)
- func (q *Queries) GetGroupOutbox(ctx context.Context, id string) (CtxGroupOutbox, error)
- func (q *Queries) GetGroupOutboxByMessage(ctx context.Context, groupMessageID string) (CtxGroupOutbox, error)
- func (q *Queries) GetGroupStateByID(ctx context.Context, id string) (CtxGroupState, error)
- func (q *Queries) GetGroupStateByIDForUpdate(ctx context.Context, id string) (CtxGroupState, error)
- func (q *Queries) GetGroupStateByTriple(ctx context.Context, arg GetGroupStateByTripleParams) (CtxGroupState, error)
- func (q *Queries) GetIngestCursor(ctx context.Context, arg GetIngestCursorParams) (CtxGroupIngestCursor, error)
- func (q *Queries) GetKnowledgeUsageForUpdate(ctx context.Context, arg GetKnowledgeUsageForUpdateParams) (KnowledgeUsage, error)
- func (q *Queries) GetLatestGroupMessageID(ctx context.Context, groupID string) (string, error)
- func (q *Queries) GetLatestPeerGroupMessageWithContent(ctx context.Context, arg GetLatestPeerGroupMessageWithContentParams) (CtxGroupMessage, error)
- func (q *Queries) GetLatestQualifyingKnowledgeDeprecateChangelog(ctx context.Context, arg GetLatestQualifyingKnowledgeDeprecateChangelogParams) (CtxAgentMemoryChangelog, error)
- func (q *Queries) GetLatestWorkflowRun(ctx context.Context, workflowID string) (AgentWorkflowRun, error)
- func (q *Queries) GetLatestWorkflowVersion(ctx context.Context, arg GetLatestWorkflowVersionParams) (int32, error)
- func (q *Queries) GetLibraryChunkSetByDerivation(ctx context.Context, arg GetLibraryChunkSetByDerivationParams) (LibraryChunkSet, error)
- func (q *Queries) GetLibraryChunkSetIntegrity(ctx context.Context, chunkSetID string) (GetLibraryChunkSetIntegrityRow, error)
- func (q *Queries) GetLibraryFile(ctx context.Context, id string) (LibraryFile, error)
- func (q *Queries) GetLibraryFileLifecycle(ctx context.Context, id string) (GetLibraryFileLifecycleRow, error)
- func (q *Queries) GetLibraryRawOwners(ctx context.Context, ids []string) ([]GetLibraryRawOwnersRow, error)
- func (q *Queries) GetMCPOAuthFlow(ctx context.Context, id string) (McpOauthFlow, error)
- func (q *Queries) GetMCPServerByID(ctx context.Context, id string) (McpServer, error)
- func (q *Queries) GetMCPServerIDByURLOnScope(ctx context.Context, arg GetMCPServerIDByURLOnScopeParams) (string, error)
- func (q *Queries) GetMainConversationByProject(ctx context.Context, arg GetMainConversationByProjectParams) (CtxConversation, error)
- func (q *Queries) GetManifestPluginOverride(ctx context.Context, pluginID string) (PluginOverride, error)
- func (q *Queries) GetMaxAcceptanceSeq(ctx context.Context, goalID string) (int64, error)
- func (q *Queries) GetMaxAttemptNo(ctx context.Context, arg GetMaxAttemptNoParams) (int64, error)
- func (q *Queries) GetMaxContextOrdinal(ctx context.Context, conversationID string) (int64, error)
- func (q *Queries) GetMaxSeq(ctx context.Context, conversationID string) (int64, error)
- func (q *Queries) GetMediaByOwnerAndSHA256(ctx context.Context, arg GetMediaByOwnerAndSHA256Params) (CtxMedium, error)
- func (q *Queries) GetMediaForSession(ctx context.Context, arg GetMediaForSessionParams) (CtxMedium, error)
- func (q *Queries) GetMemoryChangelogAtVersion(ctx context.Context, arg GetMemoryChangelogAtVersionParams) (CtxAgentMemoryChangelog, error)
- func (q *Queries) GetMemorySnapshot(ctx context.Context, arg GetMemorySnapshotParams) (CtxAgentMemorySnapshot, error)
- func (q *Queries) GetMessage(ctx context.Context, arg GetMessageParams) (CtxMessage, error)
- func (q *Queries) GetMessageByConversationOrigin(ctx context.Context, arg GetMessageByConversationOriginParams) (CtxMessage, error)
- func (q *Queries) GetMessageCount(ctx context.Context, conversationID string) (int64, error)
- func (q *Queries) GetMessageParts(ctx context.Context, messageID string) ([]CtxMessagePart, error)
- func (q *Queries) GetMessagePartsByMessages(ctx context.Context, messageIds []string) ([]GetMessagePartsByMessagesRow, error)
- func (q *Queries) GetMessageScoped(ctx context.Context, arg GetMessageScopedParams) (GetMessageScopedRow, error)
- func (q *Queries) GetMessagesByConversation(ctx context.Context, conversationID string) ([]CtxMessage, error)
- func (q *Queries) GetMessagesByConversationRange(ctx context.Context, arg GetMessagesByConversationRangeParams) ([]CtxMessage, error)
- func (q *Queries) GetMessagesSince(ctx context.Context, arg GetMessagesSinceParams) ([]CtxMessage, error)
- func (q *Queries) GetModelCatalog(ctx context.Context) (ModelCatalog, error)
- func (q *Queries) GetOAuthAccessTokenByPublicID(ctx context.Context, publicID string) (GetOAuthAccessTokenByPublicIDRow, error)
- func (q *Queries) GetOAuthClientByClientID(ctx context.Context, clientID string) (OauthClient, error)
- func (q *Queries) GetOAuthRefreshTokenByPublicID(ctx context.Context, publicID string) (GetOAuthRefreshTokenByPublicIDRow, error)
- func (q *Queries) GetOwnedProvisionedUserForUpdate(ctx context.Context, arg GetOwnedProvisionedUserForUpdateParams) (GetOwnedProvisionedUserForUpdateRow, error)
- func (q *Queries) GetPersonalAccessTokenByPublicID(ctx context.Context, publicID string) (PersonalAccessToken, error)
- func (q *Queries) GetPersonalLibraryQuotaUsage(ctx context.Context, userID pgtype.Text) (GetPersonalLibraryQuotaUsageRow, error)
- func (q *Queries) GetPlugin(ctx context.Context, id string) (Plugin, error)
- func (q *Queries) GetPluginStateEntry(ctx context.Context, arg GetPluginStateEntryParams) (json.RawMessage, error)
- func (q *Queries) GetProject(ctx context.Context, arg GetProjectParams) (Project, error)
- func (q *Queries) GetProjectByName(ctx context.Context, arg GetProjectByNameParams) (Project, error)
- func (q *Queries) GetProjectByOwner(ctx context.Context, arg GetProjectByOwnerParams) (Project, error)
- func (q *Queries) GetProvider(ctx context.Context, id string) (Provider, error)
- func (q *Queries) GetProvisionedUser(ctx context.Context, id string) (GetProvisionedUserRow, error)
- func (q *Queries) GetProvisionedUserByExternalID(ctx context.Context, externalID string) (GetProvisionedUserByExternalIDRow, error)
- func (q *Queries) GetProvisionedUserForUpdate(ctx context.Context, id string) (GetProvisionedUserForUpdateRow, error)
- func (q *Queries) GetRequiredChildRollupCounts(ctx context.Context, parentID string) (GetRequiredChildRollupCountsRow, error)
- func (q *Queries) GetSchedJobRun(ctx context.Context, arg GetSchedJobRunParams) (SchedJobRun, error)
- func (q *Queries) GetSchedulerJob(ctx context.Context, id string) (SchedJob, error)
- func (q *Queries) GetSchedulerJobByIdempotencyKey(ctx context.Context, arg GetSchedulerJobByIdempotencyKeyParams) (SchedJob, error)
- func (q *Queries) GetSessionInbox(ctx context.Context, id string) (CtxSessionInbox, error)
- func (q *Queries) GetSetting(ctx context.Context, key string) (AppSetting, error)
- func (q *Queries) GetShareByTokenHash(ctx context.Context, tokenHash string) (Share, error)
- func (q *Queries) GetSkillByID(ctx context.Context, id string) (Skill, error)
- func (q *Queries) GetSkillHomeMigration(ctx context.Context, id string) (SkillHomeMigration, error)
- func (q *Queries) GetSkillHomeMigrationReadiness(ctx context.Context) (GetSkillHomeMigrationReadinessRow, error)
- func (q *Queries) GetSkillHomeMigrationSourceFileStats(ctx context.Context, skillID string) (GetSkillHomeMigrationSourceFileStatsRow, error)
- func (q *Queries) GetSkillUsageForUpdate(ctx context.Context, arg GetSkillUsageForUpdateParams) (SkillUsage, error)
- func (q *Queries) GetSummariesByConversation(ctx context.Context, conversationID string) ([]CtxSummary, error)
- func (q *Queries) GetSummariesByDepth(ctx context.Context, arg GetSummariesByDepthParams) ([]CtxSummary, error)
- func (q *Queries) GetSummary(ctx context.Context, arg GetSummaryParams) (CtxSummary, error)
- func (q *Queries) GetSummaryByID(ctx context.Context, id string) (CtxSummary, error)
- func (q *Queries) GetSummaryChildren(ctx context.Context, parentSummaryID string) ([]CtxSummary, error)
- func (q *Queries) GetSummaryMessageSeqRange(ctx context.Context, summaryID string) (GetSummaryMessageSeqRangeRow, error)
- func (q *Queries) GetSummaryMessages(ctx context.Context, summaryID string) ([]CtxMessage, error)
- func (q *Queries) GetSummaryParents(ctx context.Context, summaryID string) ([]CtxSummary, error)
- func (q *Queries) GetSystemAgentLibraryQuotaUsage(ctx context.Context, agentID pgtype.Text) (GetSystemAgentLibraryQuotaUsageRow, error)
- func (q *Queries) GetSystemLibraryQuotaUsage(ctx context.Context) (GetSystemLibraryQuotaUsageRow, error)
- func (q *Queries) GetToolOverride(ctx context.Context, arg GetToolOverrideParams) (ToolOverride, error)
- func (q *Queries) GetUserAgentMemory(ctx context.Context, arg GetUserAgentMemoryParams) (CtxAgentMemory, error)
- func (q *Queries) GetUserAgentSkillByName(ctx context.Context, arg GetUserAgentSkillByNameParams) (Skill, error)
- func (q *Queries) GetVaultEntryByScope(ctx context.Context, arg GetVaultEntryByScopeParams) (VaultEntry, error)
- func (q *Queries) GetVaultUser(ctx context.Context, id string) (VaultUser, error)
- func (q *Queries) GetWebhookByPublicID(ctx context.Context, tokenPublicID string) (Webhook, error)
- func (q *Queries) GetWebhookForUser(ctx context.Context, arg GetWebhookForUserParams) (Webhook, error)
- func (q *Queries) GetWebhookForUserForUpdate(ctx context.Context, arg GetWebhookForUserForUpdateParams) (Webhook, error)
- func (q *Queries) GetWorkflow(ctx context.Context, id string) (AgentWorkflow, error)
- func (q *Queries) GetWorkflowRunByKey(ctx context.Context, arg GetWorkflowRunByKeyParams) (AgentWorkflowRun, error)
- func (q *Queries) HardDeleteLibraryFile(ctx context.Context, id string) (int64, error)
- func (q *Queries) HasEligiblePairActivityAfter(ctx context.Context, arg HasEligiblePairActivityAfterParams) (bool, error)
- func (q *Queries) HeartbeatAttempt(ctx context.Context, arg HeartbeatAttemptParams) (int64, error)
- func (q *Queries) IncrementGoalBudgetBonus(ctx context.Context, id string) error
- func (q *Queries) IncrementGoalFlakyCount(ctx context.Context, id string) (int64, error)
- func (q *Queries) IncrementGroupNudgeStreak(ctx context.Context, arg IncrementGroupNudgeStreakParams) (CtxGroupState, error)
- func (q *Queries) InsertArticleContentIfAbsent(ctx context.Context, arg InsertArticleContentIfAbsentParams) error
- func (q *Queries) InsertFact(ctx context.Context, arg InsertFactParams) (Fact, error)
- func (q *Queries) InsertLibraryChunkBatch(ctx context.Context, arg InsertLibraryChunkBatchParams) (int64, error)
- func (q *Queries) InsertMemoryChangelog(ctx context.Context, arg InsertMemoryChangelogParams) error
- func (q *Queries) InsertSkillChangelog(ctx context.Context, arg InsertSkillChangelogParams) (SkillChangelog, error)
- func (q *Queries) InsertToolOverrideIfAbsent(ctx context.Context, arg InsertToolOverrideIfAbsentParams) (ToolOverride, error)
- func (q *Queries) LastHumanSeqAtOrBefore(ctx context.Context, arg LastHumanSeqAtOrBeforeParams) (int64, error)
- func (q *Queries) LinkSummaryToMessage(ctx context.Context, arg LinkSummaryToMessageParams) error
- func (q *Queries) LinkSummaryToParent(ctx context.Context, arg LinkSummaryToParentParams) error
- func (q *Queries) ListAcceptanceEventByGoal(ctx context.Context, goalID string) ([]AgentGoalAcceptanceEvent, error)
- func (q *Queries) ListActiveFactsBySubject(ctx context.Context, arg ListActiveFactsBySubjectParams) ([]Fact, error)
- func (q *Queries) ListActiveKnowledge(ctx context.Context, arg ListActiveKnowledgeParams) ([]Fact, error)
- func (q *Queries) ListActiveKnowledgeContents(ctx context.Context, arg ListActiveKnowledgeContentsParams) ([]string, error)
- func (q *Queries) ListAgentConversationLastActive(ctx context.Context, userID pgtype.Text) ([]ListAgentConversationLastActiveRow, error)
- func (q *Queries) ListAgentLLMCallUsageBySessionID(ctx context.Context, sessionID string) ([]ListAgentLLMCallUsageBySessionIDRow, error)
- func (q *Queries) ListAgentProviderCredential(ctx context.Context, agentID string) ([]ListAgentProviderCredentialRow, error)
- func (q *Queries) ListAgentUsers(ctx context.Context, agentID string) ([]string, error)
- func (q *Queries) ListAgents(ctx context.Context) ([]Agent, error)
- func (q *Queries) ListAllSchedulerJobs(ctx context.Context) ([]SchedJob, error)
- func (q *Queries) ListArticles(ctx context.Context, arg ListArticlesParams) ([]RecallyArticle, error)
- func (q *Queries) ListArticlesMissingContent(ctx context.Context) ([]ListArticlesMissingContentRow, error)
- func (q *Queries) ListArticlesNeedingEmbedding(ctx context.Context, arg ListArticlesNeedingEmbeddingParams) ([]ListArticlesNeedingEmbeddingRow, error)
- func (q *Queries) ListArticlesSavedYesterday(ctx context.Context, userID string) ([]RecallyArticle, error)
- func (q *Queries) ListAttemptByGoal(ctx context.Context, arg ListAttemptByGoalParams) ([]AgentGoalAttempt, error)
- func (q *Queries) ListAttemptSummaryByGoal(ctx context.Context, arg ListAttemptSummaryByGoalParams) ([]ListAttemptSummaryByGoalRow, error)
- func (q *Queries) ListAuthUsersByIDs(ctx context.Context, ids []string) ([]AuthUser, error)
- func (q *Queries) ListChannels(ctx context.Context) ([]Channel, error)
- func (q *Queries) ListChannelsByType(ctx context.Context, type_ string) ([]Channel, error)
- func (q *Queries) ListChatAgents(ctx context.Context) ([]ChannelAgent, error)
- func (q *Queries) ListContextItemsPage(ctx context.Context, arg ListContextItemsPageParams) ([]ListContextItemsPageRow, error)
- func (q *Queries) ListConversationSummarySourceBySessionIDs(ctx context.Context, sessionIds []string) ([]ListConversationSummarySourceBySessionIDsRow, error)
- func (q *Queries) ListConversations(ctx context.Context, arg ListConversationsParams) ([]CtxConversation, error)
- func (q *Queries) ListConversationsAll(ctx context.Context, arg ListConversationsAllParams) ([]CtxConversation, error)
- func (q *Queries) ListConversationsByKind(ctx context.Context, arg ListConversationsByKindParams) ([]CtxConversation, error)
- func (q *Queries) ListConversationsFiltered(ctx context.Context, arg ListConversationsFilteredParams) ([]CtxConversation, error)
- func (q *Queries) ListConversationsForAdminFiltered(ctx context.Context, arg ListConversationsForAdminFilteredParams) ([]CtxConversation, error)
- func (q *Queries) ListConversationsForRecallAccess(ctx context.Context, sessionIds []string) ([]CtxConversation, error)
- func (q *Queries) ListConversationsForReviewByAgent(ctx context.Context, agentID pgtype.Text) ([]CtxConversation, error)
- func (q *Queries) ListConversationsForReviewFiltered(ctx context.Context, arg ListConversationsForReviewFilteredParams) ([]ListConversationsForReviewFilteredRow, error)
- func (q *Queries) ListDecomposableComposites(ctx context.Context, limit int32) ([]AgentGoal, error)
- func (q *Queries) ListDeliveredGroupMessagesBeforeSeq(ctx context.Context, arg ListDeliveredGroupMessagesBeforeSeqParams) ([]ListDeliveredGroupMessagesBeforeSeqRow, error)
- func (q *Queries) ListDeliveredGroupRecallAfterSeq(ctx context.Context, arg ListDeliveredGroupRecallAfterSeqParams) ([]ListDeliveredGroupRecallAfterSeqRow, error)
- func (q *Queries) ListDeliveredGroupRecallBeforeSeq(ctx context.Context, arg ListDeliveredGroupRecallBeforeSeqParams) ([]ListDeliveredGroupRecallBeforeSeqRow, error)
- func (q *Queries) ListDigestArticles(ctx context.Context, arg ListDigestArticlesParams) ([]RecallyArticle, error)
- func (q *Queries) ListDigests(ctx context.Context, arg ListDigestsParams) ([]RecallyDigest, error)
- func (q *Queries) ListDispatchableLeaves(ctx context.Context, limit int32) ([]AgentGoal, error)
- func (q *Queries) ListEdgeByGoal(ctx context.Context, goalID string) ([]AgentGoalEdge, error)
- func (q *Queries) ListEdgeWithUpstreamState(ctx context.Context, goalID string) ([]ListEdgeWithUpstreamStateRow, error)
- func (q *Queries) ListEnabledAgents(ctx context.Context) ([]Agent, error)
- func (q *Queries) ListEnabledPlugins(ctx context.Context) ([]Plugin, error)
- func (q *Queries) ListEnabledProviders(ctx context.Context) ([]Provider, error)
- func (q *Queries) ListExistingUserMessageContent(ctx context.Context, arg ListExistingUserMessageContentParams) ([]string, error)
- func (q *Queries) ListExpiredRunningGroupDispatch(ctx context.Context, arg ListExpiredRunningGroupDispatchParams) ([]CtxGroupDispatch, error)
- func (q *Queries) ListExpiredRunningGroupOutbox(ctx context.Context, arg ListExpiredRunningGroupOutboxParams) ([]CtxGroupOutbox, error)
- func (q *Queries) ListFactChangelogBySubject(ctx context.Context, arg ListFactChangelogBySubjectParams) ([]CtxAgentMemoryChangelog, error)
- func (q *Queries) ListFactChangelogBySubjectPage(ctx context.Context, arg ListFactChangelogBySubjectPageParams) ([]ListFactChangelogBySubjectPageRow, error)
- func (q *Queries) ListFactChangelogUpToVersion(ctx context.Context, arg ListFactChangelogUpToVersionParams) ([]CtxAgentMemoryChangelog, error)
- func (q *Queries) ListFailedInboxSchedulerRuns(ctx context.Context, arg ListFailedInboxSchedulerRunsParams) ([]ListFailedInboxSchedulerRunsRow, error)
- func (q *Queries) ListFeedEntries(ctx context.Context, arg ListFeedEntriesParams) ([]RecallyFeedEntry, error)
- func (q *Queries) ListFeeds(ctx context.Context, arg ListFeedsParams) ([]RecallyFeed, error)
- func (q *Queries) ListGoalByRoot(ctx context.Context, rootID string) ([]AgentGoal, error)
- func (q *Queries) ListGoalChildren(ctx context.Context, parentID pgtype.Text) ([]AgentGoal, error)
- func (q *Queries) ListGoalEventByGoal(ctx context.Context, arg ListGoalEventByGoalParams) ([]AgentGoalEvent, error)
- func (q *Queries) ListGoalForHealthScope(ctx context.Context, arg ListGoalForHealthScopeParams) ([]AgentGoal, error)
- func (q *Queries) ListGoalSubtree(ctx context.Context, id string) ([]AgentGoal, error)
- func (q *Queries) ListGoalsBlockedNeedsVerdict(ctx context.Context, limit int32) ([]AgentGoal, error)
- func (q *Queries) ListGoalsByWorkflow(ctx context.Context, arg ListGoalsByWorkflowParams) ([]AgentGoal, error)
- func (q *Queries) ListGroupMembers(ctx context.Context, groupID string) ([]ChannelGroupMember, error)
- func (q *Queries) ListGroupMessagesAfterSeq(ctx context.Context, arg ListGroupMessagesAfterSeqParams) ([]ListGroupMessagesAfterSeqRow, error)
- func (q *Queries) ListGroupMessagesPaginated(ctx context.Context, arg ListGroupMessagesPaginatedParams) ([]ListGroupMessagesPaginatedRow, error)
- func (q *Queries) ListGroupNudgeCandidate(ctx context.Context, arg ListGroupNudgeCandidateParams) ([]ListGroupNudgeCandidateRow, error)
- func (q *Queries) ListGroupsByUser(ctx context.Context, arg ListGroupsByUserParams) ([]ListGroupsByUserRow, error)
- func (q *Queries) ListGroupsWithPendingIngest(ctx context.Context, pipeline string) ([]ListGroupsWithPendingIngestRow, error)
- func (q *Queries) ListInboxGoals(ctx context.Context, arg ListInboxGoalsParams) ([]ListInboxGoalsRow, error)
- func (q *Queries) ListInflightAttemptsByGoal(ctx context.Context, goalID string) ([]AgentGoalAttempt, error)
- func (q *Queries) ListLatestGroupMessagesAfterSeq(ctx context.Context, arg ListLatestGroupMessagesAfterSeqParams) ([]ListLatestGroupMessagesAfterSeqRow, error)
- func (q *Queries) ListLibraryTombstone(ctx context.Context, limit int32) ([]ListLibraryTombstoneRow, error)
- func (q *Queries) ListMCPServersByScope(ctx context.Context, arg ListMCPServersByScopeParams) ([]McpServer, error)
- func (q *Queries) ListMCPServersForAgentContext(ctx context.Context, arg ListMCPServersForAgentContextParams) ([]McpServer, error)
- func (q *Queries) ListManagedLibraryFiles(ctx context.Context, arg ListManagedLibraryFilesParams) ([]LibraryFile, error)
- func (q *Queries) ListManifestPluginOverrides(ctx context.Context) ([]PluginOverride, error)
- func (q *Queries) ListMediaByIDsForOwner(ctx context.Context, arg ListMediaByIDsForOwnerParams) ([]CtxMedium, error)
- func (q *Queries) ListMemoryChangelog(ctx context.Context, arg ListMemoryChangelogParams) ([]CtxAgentMemoryChangelog, error)
- func (q *Queries) ListMemoryChangelogPage(ctx context.Context, arg ListMemoryChangelogPageParams) ([]CtxAgentMemoryChangelog, error)
- func (q *Queries) ListMessagePartsWithMediaByMessages(ctx context.Context, messageIds []string) ([]ListMessagePartsWithMediaByMessagesRow, error)
- func (q *Queries) ListMessagesByIDs(ctx context.Context, arg ListMessagesByIDsParams) ([]CtxMessage, error)
- func (q *Queries) ListMessagesByLogicalPage(ctx context.Context, arg ListMessagesByLogicalPageParams) ([]ListMessagesByLogicalPageRow, error)
- func (q *Queries) ListMessagesNeedingEmbedding(ctx context.Context, arg ListMessagesNeedingEmbeddingParams) ([]ListMessagesNeedingEmbeddingRow, error)
- func (q *Queries) ListOAuthAuthorizedApps(ctx context.Context, userID string) ([]ListOAuthAuthorizedAppsRow, error)
- func (q *Queries) ListOAuthClientByOwner(ctx context.Context, ownerUserID string) ([]OauthClient, error)
- func (q *Queries) ListPendingEntries(ctx context.Context, arg ListPendingEntriesParams) ([]RecallyFeedEntry, error)
- func (q *Queries) ListPendingGroupNudges(ctx context.Context, arg ListPendingGroupNudgesParams) ([]CtxGroupDispatch, error)
- func (q *Queries) ListPendingGroupOutbox(ctx context.Context, arg ListPendingGroupOutboxParams) ([]CtxGroupOutbox, error)
- func (q *Queries) ListPendingGroupWakePairs(ctx context.Context, arg ListPendingGroupWakePairsParams) ([]CtxGroupDispatch, error)
- func (q *Queries) ListPendingSessionInbox(ctx context.Context, arg ListPendingSessionInboxParams) ([]CtxSessionInbox, error)
- func (q *Queries) ListPersonalAccessTokenByUser(ctx context.Context, userID string) ([]PersonalAccessToken, error)
- func (q *Queries) ListPluginOverrides(ctx context.Context) ([]Plugin, error)
- func (q *Queries) ListPlugins(ctx context.Context) ([]Plugin, error)
- func (q *Queries) ListProjects(ctx context.Context, arg ListProjectsParams) ([]Project, error)
- func (q *Queries) ListProjectsAll(ctx context.Context, arg ListProjectsAllParams) ([]Project, error)
- func (q *Queries) ListProviderIDs(ctx context.Context) ([]string, error)
- func (q *Queries) ListProviderModelsCache(ctx context.Context) ([]ProviderModelsCache, error)
- func (q *Queries) ListProviders(ctx context.Context) ([]Provider, error)
- func (q *Queries) ListProvisionedUserAfter(ctx context.Context, arg ListProvisionedUserAfterParams) ([]ListProvisionedUserAfterRow, error)
- func (q *Queries) ListProvisioningTokenByUser(ctx context.Context, userID string) ([]PersonalAccessToken, error)
- func (q *Queries) ListRecallMessageByIDs(ctx context.Context, messageIds []string) ([]ListRecallMessageByIDsRow, error)
- func (q *Queries) ListRecallSummaryByIDs(ctx context.Context, summaryIds []string) ([]ListRecallSummaryByIDsRow, error)
- func (q *Queries) ListRecentGoalEventContext(ctx context.Context, arg ListRecentGoalEventContextParams) ([]AgentGoalEvent, error)
- func (q *Queries) ListRecentGroupMessagesBeforeSeq(ctx context.Context, arg ListRecentGroupMessagesBeforeSeqParams) ([]ListRecentGroupMessagesBeforeSeqRow, error)
- func (q *Queries) ListReflectUsagePairs(ctx context.Context) ([]ListReflectUsagePairsRow, error)
- func (q *Queries) ListRemovedKnowledge(ctx context.Context, arg ListRemovedKnowledgeParams) ([]ListRemovedKnowledgeRow, error)
- func (q *Queries) ListRollupCandidates(ctx context.Context, limit int32) ([]AgentGoal, error)
- func (q *Queries) ListRootGoal(ctx context.Context, arg ListRootGoalParams) ([]AgentGoal, error)
- func (q *Queries) ListRunningGroupDispatchAgents(ctx context.Context, groupID string) ([]string, error)
- func (q *Queries) ListSchedJobRuns(ctx context.Context, arg ListSchedJobRunsParams) ([]SchedJobRun, error)
- func (q *Queries) ListSchedulerJobByOwner(ctx context.Context, arg ListSchedulerJobByOwnerParams) ([]SchedJob, error)
- func (q *Queries) ListSchedulerJobs(ctx context.Context) ([]SchedJob, error)
- func (q *Queries) ListSchedulerJobsByAgent(ctx context.Context, arg ListSchedulerJobsByAgentParams) ([]SchedJob, error)
- func (q *Queries) ListSessionTranscriptPage(ctx context.Context, arg ListSessionTranscriptPageParams) ([]ListSessionTranscriptPageRow, error)
- func (q *Queries) ListSettings(ctx context.Context) ([]AppSetting, error)
- func (q *Queries) ListSharesByUser(ctx context.Context, arg ListSharesByUserParams) ([]ListSharesByUserRow, error)
- func (q *Queries) ListSkillChangelogBySkill(ctx context.Context, arg ListSkillChangelogBySkillParams) ([]SkillChangelog, error)
- func (q *Queries) ListSkillHomeMigrationSource(ctx context.Context) ([]Skill, error)
- func (q *Queries) ListSkillHomeMigrationSourceFile(ctx context.Context, skillID string) ([]SkillFile, error)
- func (q *Queries) ListSkillIdentityVisible(ctx context.Context, arg ListSkillIdentityVisibleParams) ([]Skill, error)
- func (q *Queries) ListSkillsByScope(ctx context.Context, arg ListSkillsByScopeParams) ([]Skill, error)
- func (q *Queries) ListStaleAttempts(ctx context.Context, arg ListStaleAttemptsParams) ([]AgentGoalAttempt, error)
- func (q *Queries) ListStaleLibraryDerivation(ctx context.Context, arg ListStaleLibraryDerivationParams) ([]ListStaleLibraryDerivationRow, error)
- func (q *Queries) ListStaleReflectKnowledgeForCurator(ctx context.Context, arg ListStaleReflectKnowledgeForCuratorParams) ([]ListStaleReflectKnowledgeForCuratorRow, error)
- func (q *Queries) ListStaleReflectSkillsForCurator(ctx context.Context, arg ListStaleReflectSkillsForCuratorParams) ([]ListStaleReflectSkillsForCuratorRow, error)
- func (q *Queries) ListSummariesByIDs(ctx context.Context, arg ListSummariesByIDsParams) ([]CtxSummary, error)
- func (q *Queries) ListSummariesNeedingEmbedding(ctx context.Context, arg ListSummariesNeedingEmbeddingParams) ([]ListSummariesNeedingEmbeddingRow, error)
- func (q *Queries) ListSummaryParentsBySummaryIDs(ctx context.Context, summaryIds []string) ([]CtxSummaryParent, error)
- func (q *Queries) ListToolOverridesForAgentContext(ctx context.Context, arg ListToolOverridesForAgentContextParams) ([]ToolOverride, error)
- func (q *Queries) ListUnreadArticlesOlderThan(ctx context.Context, arg ListUnreadArticlesOlderThanParams) ([]RecallyArticle, error)
- func (q *Queries) ListUnrepliedGroupToolCallContents(ctx context.Context, arg ListUnrepliedGroupToolCallContentsParams) ([]ListUnrepliedGroupToolCallContentsRow, error)
- func (q *Queries) ListUserAgentMemoriesByUser(ctx context.Context, userID string) ([]CtxAgentMemory, error)
- func (q *Queries) ListUserAgents(ctx context.Context, userID string) ([]string, error)
- func (q *Queries) ListVaultEntriesByScope(ctx context.Context, arg ListVaultEntriesByScopeParams) ([]VaultEntry, error)
- func (q *Queries) ListVaultEntriesForRuntime(ctx context.Context, arg ListVaultEntriesForRuntimeParams) ([]VaultEntry, error)
- func (q *Queries) ListWebhookForUser(ctx context.Context, arg ListWebhookForUserParams) ([]Webhook, error)
- func (q *Queries) ListWorkflowRuns(ctx context.Context, arg ListWorkflowRunsParams) ([]ListWorkflowRunsRow, error)
- func (q *Queries) ListWorkflowVersions(ctx context.Context, arg ListWorkflowVersionsParams) ([]AgentWorkflow, error)
- func (q *Queries) ListWorkflows(ctx context.Context, arg ListWorkflowsParams) ([]AgentWorkflow, error)
- func (q *Queries) ListZombieGoals(ctx context.Context, limit int32) ([]AgentGoal, error)
- func (q *Queries) LockConversationForWrite(ctx context.Context, conversationID string) error
- func (q *Queries) LockGoalForWrite(ctx context.Context, goalID string) error
- func (q *Queries) LockLibraryChunkSetLifecycle(ctx context.Context, id string) (LibraryChunkSet, error)
- func (q *Queries) LockLibraryFileLifecycle(ctx context.Context, id string) (LockLibraryFileLifecycleRow, error)
- func (q *Queries) LockLibraryQuotaPool(ctx context.Context, lockKey int64) error
- func (q *Queries) LockSchedJobForRun(ctx context.Context, jobID string) error
- func (q *Queries) MarkConversationTurnCompleted(ctx context.Context, arg MarkConversationTurnCompletedParams) (int64, error)
- func (q *Queries) MarkConversationTurnStarted(ctx context.Context, arg MarkConversationTurnStartedParams) (int64, error)
- func (q *Queries) MarkConversationViewed(ctx context.Context, arg MarkConversationViewedParams) (int64, error)
- func (q *Queries) MarkExpiredGroupDispatchFailed(ctx context.Context, arg MarkExpiredGroupDispatchFailedParams) (int64, error)
- func (q *Queries) MarkExpiredGroupOutboxFailed(ctx context.Context, arg MarkExpiredGroupOutboxFailedParams) (int64, error)
- func (q *Queries) MarkGoalPlanned(ctx context.Context, id string) (int64, error)
- func (q *Queries) MarkGroupDispatchCompleted(ctx context.Context, arg MarkGroupDispatchCompletedParams) (int64, error)
- func (q *Queries) MarkGroupDispatchFailed(ctx context.Context, arg MarkGroupDispatchFailedParams) (int64, error)
- func (q *Queries) MarkGroupDispatchHeld(ctx context.Context, arg MarkGroupDispatchHeldParams) (int64, error)
- func (q *Queries) MarkGroupDispatchPublishStarted(ctx context.Context, arg MarkGroupDispatchPublishStartedParams) (int64, error)
- func (q *Queries) MarkGroupDispatchPublished(ctx context.Context, arg MarkGroupDispatchPublishedParams) (int64, error)
- func (q *Queries) MarkGroupDispatchSilent(ctx context.Context, arg MarkGroupDispatchSilentParams) (int64, error)
- func (q *Queries) MarkGroupNudgeChecked(ctx context.Context, arg MarkGroupNudgeCheckedParams) error
- func (q *Queries) MarkGroupOutboxCompleted(ctx context.Context, arg MarkGroupOutboxCompletedParams) (int64, error)
- func (q *Queries) MarkGroupOutboxFailed(ctx context.Context, arg MarkGroupOutboxFailedParams) (int64, error)
- func (q *Queries) MarkLibraryChunkSetFailed(ctx context.Context, arg MarkLibraryChunkSetFailedParams) (int64, error)
- func (q *Queries) MarkLibraryChunkSetReady(ctx context.Context, arg MarkLibraryChunkSetReadyParams) (int64, error)
- func (q *Queries) MarkLibraryFileFailedWithoutActiveSet(ctx context.Context, arg MarkLibraryFileFailedWithoutActiveSetParams) (int64, error)
- func (q *Queries) MaxHeldUpToSeqInChain(ctx context.Context, arg MaxHeldUpToSeqInChainParams) (int64, error)
- func (q *Queries) MaxPeerMessageSeqAfterSeq(ctx context.Context, arg MaxPeerMessageSeqAfterSeqParams) (int64, error)
- func (q *Queries) ProbeCheckCache(ctx context.Context, cacheKey string) (AgentGoalAcceptanceEvent, error)
- func (q *Queries) PromoteAttempt(ctx context.Context, arg PromoteAttemptParams) (int64, error)
- func (q *Queries) PublishLibraryFileChunkSet(ctx context.Context, arg PublishLibraryFileChunkSetParams) (int64, error)
- func (q *Queries) PurgeExpiredChannelGuest(ctx context.Context) (int64, error)
- func (q *Queries) RecordSchedulerJobRun(ctx context.Context, arg RecordSchedulerJobRunParams) error
- func (q *Queries) RefreshSkillUsageOnReflectPatch(ctx context.Context, arg RefreshSkillUsageOnReflectPatchParams) error
- func (q *Queries) RemoveGroupMember(ctx context.Context, arg RemoveGroupMemberParams) error
- func (q *Queries) RemoveUserAgent(ctx context.Context, arg RemoveUserAgentParams) error
- func (q *Queries) RemoveUserAgentAndTouchAgent(ctx context.Context, arg RemoveUserAgentAndTouchAgentParams) error
- func (q *Queries) RenameToolOverridePrefix(ctx context.Context, arg RenameToolOverridePrefixParams) error
- func (q *Queries) RequeueExpiredGroupDispatch(ctx context.Context, arg RequeueExpiredGroupDispatchParams) (int64, error)
- func (q *Queries) RequeueExpiredGroupOutbox(ctx context.Context, arg RequeueExpiredGroupOutboxParams) (int64, error)
- func (q *Queries) RequeueGroupDispatch(ctx context.Context, arg RequeueGroupDispatchParams) (int64, error)
- func (q *Queries) RequeueGroupOutbox(ctx context.Context, arg RequeueGroupOutboxParams) (int64, error)
- func (q *Queries) RequeueHeldGroupDispatchesAfterAcceptedPost(ctx context.Context, arg RequeueHeldGroupDispatchesAfterAcceptedPostParams) (int64, error)
- func (q *Queries) ResolveWebhookByPublicID(ctx context.Context, tokenPublicID string) (Webhook, error)
- func (q *Queries) RestoreKnowledgeFact(ctx context.Context, arg RestoreKnowledgeFactParams) (Fact, error)
- func (q *Queries) RevokeAuthUserToken(ctx context.Context, id string) (int64, error)
- func (q *Queries) RevokeOAuthAuthorizationCodesForUserClient(ctx context.Context, arg RevokeOAuthAuthorizationCodesForUserClientParams) (int64, error)
- func (q *Queries) RevokeOAuthRefreshFamiliesForUserClient(ctx context.Context, arg RevokeOAuthRefreshFamiliesForUserClientParams) (int64, error)
- func (q *Queries) RevokeOAuthRefreshFamily(ctx context.Context, id string) (int64, error)
- func (q *Queries) RevokePersonalAccessToken(ctx context.Context, arg RevokePersonalAccessTokenParams) (int64, error)
- func (q *Queries) RevokePersonalAccessTokenByUser(ctx context.Context, userID string) (int64, error)
- func (q *Queries) RevokeProvisionedPersonalAccessTokenByUser(ctx context.Context, userID string) (int64, error)
- func (q *Queries) RevokeProvisioningToken(ctx context.Context, arg RevokeProvisioningTokenParams) (int64, error)
- func (q *Queries) RotateAuthUserToken(ctx context.Context, id string) (int64, error)
- func (q *Queries) RotateWebhook(ctx context.Context, arg RotateWebhookParams) (Webhook, error)
- func (q *Queries) SearchArticleEmbeddings(ctx context.Context, arg SearchArticleEmbeddingsParams) ([]SearchArticleEmbeddingsRow, error)
- func (q *Queries) SearchArticles(ctx context.Context, arg SearchArticlesParams) ([]SearchArticlesRow, error)
- func (q *Queries) SearchDeliveredGroupRecall(ctx context.Context, arg SearchDeliveredGroupRecallParams) ([]SearchDeliveredGroupRecallRow, error)
- func (q *Queries) SearchLibraryChunks(ctx context.Context, arg SearchLibraryChunksParams) ([]SearchLibraryChunksRow, error)
- func (q *Queries) SearchMessageEmbeddings(ctx context.Context, arg SearchMessageEmbeddingsParams) ([]SearchMessageEmbeddingsRow, error)
- func (q *Queries) SearchMessages(ctx context.Context, arg SearchMessagesParams) ([]SearchMessagesRow, error)
- func (q *Queries) SearchSummaries(ctx context.Context, arg SearchSummariesParams) ([]SearchSummariesRow, error)
- func (q *Queries) SearchSummaryEmbeddings(ctx context.Context, arg SearchSummaryEmbeddingsParams) ([]SearchSummaryEmbeddingsRow, error)
- func (q *Queries) SeedAgent(ctx context.Context, arg SeedAgentParams) error
- func (q *Queries) SetAttemptGaps(ctx context.Context, arg SetAttemptGapsParams) error
- func (q *Queries) SetAttemptRepairRounds(ctx context.Context, arg SetAttemptRepairRoundsParams) error
- func (q *Queries) SetGoalAcceptanceState(ctx context.Context, arg SetGoalAcceptanceStateParams) (int64, error)
- func (q *Queries) SetGoalPlan(ctx context.Context, arg SetGoalPlanParams) error
- func (q *Queries) SetGroupDispatchCaps(ctx context.Context, arg SetGroupDispatchCapsParams) (CtxGroupState, error)
- func (q *Queries) SetGroupDispatchResultMessage(ctx context.Context, arg SetGroupDispatchResultMessageParams) (int64, error)
- func (q *Queries) SetGroupMessageDeliveryState(ctx context.Context, arg SetGroupMessageDeliveryStateParams) (CtxGroupMessage, error)
- func (q *Queries) SetMediaBaselineIfAbsent(ctx context.Context, arg SetMediaBaselineIfAbsentParams) (int64, error)
- func (q *Queries) SetSchedJobRunRootGoal(ctx context.Context, arg SetSchedJobRunRootGoalParams) error
- func (q *Queries) SetWorkflowRunRoot(ctx context.Context, arg SetWorkflowRunRootParams) (int64, error)
- func (q *Queries) SetWorkflowRunStatus(ctx context.Context, arg SetWorkflowRunStatusParams) error
- func (q *Queries) StampGoalWorkflow(ctx context.Context, arg StampGoalWorkflowParams) error
- func (q *Queries) SubmitAttempt(ctx context.Context, arg SubmitAttemptParams) (int64, error)
- func (q *Queries) TombstoneLibraryFile(ctx context.Context, id string) (int64, error)
- func (q *Queries) TouchKnowledgeUsage(ctx context.Context, arg TouchKnowledgeUsageParams) error
- func (q *Queries) TouchLibraryFileDerivation(ctx context.Context, id string) (int64, error)
- func (q *Queries) TouchReflectSkillRuntimeUse(ctx context.Context, arg TouchReflectSkillRuntimeUseParams) (int64, error)
- func (q *Queries) TransitionGoalLifecycle(ctx context.Context, arg TransitionGoalLifecycleParams) (int64, error)
- func (q *Queries) UnarchiveGoal(ctx context.Context, id string) error
- func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) error
- func (q *Queries) UpdateAgentIfVersion(ctx context.Context, arg UpdateAgentIfVersionParams) (time.Time, error)
- func (q *Queries) UpdateAgentSkillPolicy(ctx context.Context, arg UpdateAgentSkillPolicyParams) error
- func (q *Queries) UpdateArticle(ctx context.Context, arg UpdateArticleParams) (RecallyArticle, error)
- func (q *Queries) UpdateAuthUserTokenLastUsed(ctx context.Context, id string) (int64, error)
- func (q *Queries) UpdateChannel(ctx context.Context, arg UpdateChannelParams) (Channel, error)
- func (q *Queries) UpdateChannelGuestActivityByExternalID(ctx context.Context, arg UpdateChannelGuestActivityByExternalIDParams) (ChannelGuest, error)
- func (q *Queries) UpdateConversationBootstrapped(ctx context.Context, arg UpdateConversationBootstrappedParams) error
- func (q *Queries) UpdateConversationInfoBySessionID(ctx context.Context, arg UpdateConversationInfoBySessionIDParams) (int64, error)
- func (q *Queries) UpdateConversationKindProject(ctx context.Context, arg UpdateConversationKindProjectParams) error
- func (q *Queries) UpdateConversationLastActive(ctx context.Context, arg UpdateConversationLastActiveParams) error
- func (q *Queries) UpdateConversationTitle(ctx context.Context, arg UpdateConversationTitleParams) error
- func (q *Queries) UpdateConversationTitleBySessionID(ctx context.Context, arg UpdateConversationTitleBySessionIDParams) error
- func (q *Queries) UpdateConversationTurnMetaBySessionID(ctx context.Context, arg UpdateConversationTurnMetaBySessionIDParams) (int64, error)
- func (q *Queries) UpdateFeed(ctx context.Context, arg UpdateFeedParams) (RecallyFeed, error)
- func (q *Queries) UpdateFeedEntry(ctx context.Context, arg UpdateFeedEntryParams) (RecallyFeedEntry, error)
- func (q *Queries) UpdateGoalIntent(ctx context.Context, arg UpdateGoalIntentParams) error
- func (q *Queries) UpdateGroupMessageProjection(ctx context.Context, arg UpdateGroupMessageProjectionParams) (int64, error)
- func (q *Queries) UpdateGroupName(ctx context.Context, arg UpdateGroupNameParams) (CtxGroupState, error)
- func (q *Queries) UpdateMCPServerByScope(ctx context.Context, arg UpdateMCPServerByScopeParams) (McpServer, error)
- func (q *Queries) UpdateMCPServerByScopeIfVersion(ctx context.Context, arg UpdateMCPServerByScopeIfVersionParams) (McpServer, error)
- func (q *Queries) UpdateMCPServerEnabled(ctx context.Context, arg UpdateMCPServerEnabledParams) error
- func (q *Queries) UpdateMCPServerMetadata(ctx context.Context, arg UpdateMCPServerMetadataParams) error
- func (q *Queries) UpdateMCPServerProbeResult(ctx context.Context, arg UpdateMCPServerProbeResultParams) (McpServer, error)
- func (q *Queries) UpdateMCPServerStatus(ctx context.Context, arg UpdateMCPServerStatusParams) error
- func (q *Queries) UpdateOAuthAccessTokenLastUsed(ctx context.Context, id string) (int64, error)
- func (q *Queries) UpdateOAuthClientSecret(ctx context.Context, arg UpdateOAuthClientSecretParams) (int64, error)
- func (q *Queries) UpdatePersonalAccessTokenLastUsed(ctx context.Context, id string) (int64, error)
- func (q *Queries) UpdateProject(ctx context.Context, arg UpdateProjectParams) (Project, error)
- func (q *Queries) UpdateProvider(ctx context.Context, arg UpdateProviderParams) error
- func (q *Queries) UpdateProviderIfVersion(ctx context.Context, arg UpdateProviderIfVersionParams) (int64, error)
- func (q *Queries) UpdateSchedJobRun(ctx context.Context, arg UpdateSchedJobRunParams) error
- func (q *Queries) UpdateSchedulerJob(ctx context.Context, arg UpdateSchedulerJobParams) error
- func (q *Queries) UpdateToolOverrideIfVersion(ctx context.Context, arg UpdateToolOverrideIfVersionParams) (ToolOverride, error)
- func (q *Queries) UpdateUserActive(ctx context.Context, arg UpdateUserActiveParams) error
- func (q *Queries) UpdateUserRole(ctx context.Context, arg UpdateUserRoleParams) error
- func (q *Queries) UpdateWebhookForUser(ctx context.Context, arg UpdateWebhookForUserParams) (Webhook, error)
- func (q *Queries) UpsertAgentConstraints(ctx context.Context, arg UpsertAgentConstraintsParams) (CtxAgentMemory, error)
- func (q *Queries) UpsertAgentProviderCredential(ctx context.Context, arg UpsertAgentProviderCredentialParams) (AgentProviderCredential, error)
- func (q *Queries) UpsertAgentSoul(ctx context.Context, arg UpsertAgentSoulParams) error
- func (q *Queries) UpsertAgentSoulVersioned(ctx context.Context, arg UpsertAgentSoulVersionedParams) (CtxAgentMemory, error)
- func (q *Queries) UpsertArticleContent(ctx context.Context, arg UpsertArticleContentParams) error
- func (q *Queries) UpsertArticleEmbedding(ctx context.Context, arg UpsertArticleEmbeddingParams) error
- func (q *Queries) UpsertAuthOAuthProvider(ctx context.Context, arg UpsertAuthOAuthProviderParams) error
- func (q *Queries) UpsertChatAgent(ctx context.Context, arg UpsertChatAgentParams) error
- func (q *Queries) UpsertDigest(ctx context.Context, arg UpsertDigestParams) (RecallyDigest, error)
- func (q *Queries) UpsertIngestCursor(ctx context.Context, arg UpsertIngestCursorParams) error
- func (q *Queries) UpsertKnowledgeUsage(ctx context.Context, arg UpsertKnowledgeUsageParams) error
- func (q *Queries) UpsertManifestPluginOverride(ctx context.Context, arg UpsertManifestPluginOverrideParams) error
- func (q *Queries) UpsertMessageEmbedding(ctx context.Context, arg UpsertMessageEmbeddingParams) error
- func (q *Queries) UpsertModelCatalog(ctx context.Context, arg UpsertModelCatalogParams) error
- func (q *Queries) UpsertPlugin(ctx context.Context, arg UpsertPluginParams) error
- func (q *Queries) UpsertPluginConfig(ctx context.Context, arg UpsertPluginConfigParams) error
- func (q *Queries) UpsertPluginEnabled(ctx context.Context, arg UpsertPluginEnabledParams) error
- func (q *Queries) UpsertPluginStateEntry(ctx context.Context, arg UpsertPluginStateEntryParams) error
- func (q *Queries) UpsertProfileEntries(ctx context.Context, arg UpsertProfileEntriesParams) (CtxAgentMemory, error)
- func (q *Queries) UpsertProviderModelsCache(ctx context.Context, arg UpsertProviderModelsCacheParams) error
- func (q *Queries) UpsertSetting(ctx context.Context, arg UpsertSettingParams) error
- func (q *Queries) UpsertSettingIfValue(ctx context.Context, arg UpsertSettingIfValueParams) (int64, error)
- func (q *Queries) UpsertSkillUsageOnReflectCreate(ctx context.Context, arg UpsertSkillUsageOnReflectCreateParams) error
- func (q *Queries) UpsertSummaryEmbedding(ctx context.Context, arg UpsertSummaryEmbeddingParams) error
- func (q *Queries) UpsertToolOverride(ctx context.Context, arg UpsertToolOverrideParams) (ToolOverride, error)
- func (q *Queries) UpsertUserAgentMemory(ctx context.Context, arg UpsertUserAgentMemoryParams) error
- func (q *Queries) UpsertUserAgentMemoryVersioned(ctx context.Context, arg UpsertUserAgentMemoryVersionedParams) (CtxAgentMemory, error)
- func (q *Queries) UpsertVaultEntryByScope(ctx context.Context, arg UpsertVaultEntryByScopeParams) (VaultEntry, error)
- func (q *Queries) WaiveEdge(ctx context.Context, arg WaiveEdgeParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RecallyArticle
- type RecallyArticleContent
- type RecallyArticleEmbedding
- type RecallyDigest
- type RecallyDigestArticle
- type RecallyFeed
- type RecallyFeedEntry
- type RecordSchedulerJobRunParams
- type RefreshSkillUsageOnReflectPatchParams
- type RemoveGroupMemberParams
- type RemoveUserAgentAndTouchAgentParams
- type RemoveUserAgentParams
- type RenameToolOverridePrefixParams
- type RequeueExpiredGroupDispatchParams
- type RequeueExpiredGroupOutboxParams
- type RequeueGroupDispatchParams
- type RequeueGroupOutboxParams
- type RequeueHeldGroupDispatchesAfterAcceptedPostParams
- type RestoreKnowledgeFactParams
- type RevokeOAuthAuthorizationCodesForUserClientParams
- type RevokeOAuthRefreshFamiliesForUserClientParams
- type RevokePersonalAccessTokenParams
- type RevokeProvisioningTokenParams
- type RotateWebhookParams
- type SchedJob
- type SchedJobRun
- type SearchArticleEmbeddingsParams
- type SearchArticleEmbeddingsRow
- type SearchArticlesParams
- type SearchArticlesRow
- type SearchDeliveredGroupRecallParams
- type SearchDeliveredGroupRecallRow
- type SearchLibraryChunksParams
- type SearchLibraryChunksRow
- type SearchMessageEmbeddingsParams
- type SearchMessageEmbeddingsRow
- type SearchMessagesParams
- type SearchMessagesRow
- type SearchSummariesParams
- type SearchSummariesRow
- type SearchSummaryEmbeddingsParams
- type SearchSummaryEmbeddingsRow
- type SeedAgentParams
- type SetAttemptGapsParams
- type SetAttemptRepairRoundsParams
- type SetGoalAcceptanceStateParams
- type SetGoalPlanParams
- type SetGroupDispatchCapsParams
- type SetGroupDispatchResultMessageParams
- type SetGroupMessageDeliveryStateParams
- type SetMediaBaselineIfAbsentParams
- type SetSchedJobRunRootGoalParams
- type SetWorkflowRunRootParams
- type SetWorkflowRunStatusParams
- type Share
- type Skill
- type SkillChangelog
- type SkillFile
- type SkillHomeMigration
- type SkillUsage
- type StampGoalWorkflowParams
- type SubmitAttemptParams
- type ToolOverride
- type TouchKnowledgeUsageParams
- type TouchReflectSkillRuntimeUseParams
- type TransitionGoalLifecycleParams
- type UpdateAgentIfVersionParams
- type UpdateAgentParams
- type UpdateAgentSkillPolicyParams
- type UpdateArticleParams
- type UpdateChannelGuestActivityByExternalIDParams
- type UpdateChannelParams
- type UpdateConversationBootstrappedParams
- type UpdateConversationInfoBySessionIDParams
- type UpdateConversationKindProjectParams
- type UpdateConversationLastActiveParams
- type UpdateConversationTitleBySessionIDParams
- type UpdateConversationTitleParams
- type UpdateConversationTurnMetaBySessionIDParams
- type UpdateFeedEntryParams
- type UpdateFeedParams
- type UpdateGoalIntentParams
- type UpdateGroupMessageProjectionParams
- type UpdateGroupNameParams
- type UpdateMCPServerByScopeIfVersionParams
- type UpdateMCPServerByScopeParams
- type UpdateMCPServerEnabledParams
- type UpdateMCPServerMetadataParams
- type UpdateMCPServerProbeResultParams
- type UpdateMCPServerStatusParams
- type UpdateOAuthClientSecretParams
- type UpdateProjectParams
- type UpdateProviderIfVersionParams
- type UpdateProviderParams
- type UpdateSchedJobRunParams
- type UpdateSchedulerJobParams
- type UpdateToolOverrideIfVersionParams
- type UpdateUserActiveParams
- type UpdateUserRoleParams
- type UpdateWebhookForUserParams
- type UpsertAgentConstraintsParams
- type UpsertAgentProviderCredentialParams
- type UpsertAgentSoulParams
- type UpsertAgentSoulVersionedParams
- type UpsertArticleContentParams
- type UpsertArticleEmbeddingParams
- type UpsertAuthOAuthProviderParams
- type UpsertChatAgentParams
- type UpsertDigestParams
- type UpsertIngestCursorParams
- type UpsertKnowledgeUsageParams
- type UpsertManifestPluginOverrideParams
- type UpsertMessageEmbeddingParams
- type UpsertModelCatalogParams
- type UpsertPluginConfigParams
- type UpsertPluginEnabledParams
- type UpsertPluginParams
- type UpsertPluginStateEntryParams
- type UpsertProfileEntriesParams
- type UpsertProviderModelsCacheParams
- type UpsertSettingIfValueParams
- type UpsertSettingParams
- type UpsertSkillUsageOnReflectCreateParams
- type UpsertSummaryEmbeddingParams
- type UpsertToolOverrideParams
- type UpsertUserAgentMemoryParams
- type UpsertUserAgentMemoryVersionedParams
- type UpsertVaultEntryByScopeParams
- type VaultEntry
- type VaultUser
- type WaiveEdgeParams
- type Webhook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptGoalParams ¶ added in v0.49.4
type AddDigestArticleParams ¶ added in v0.30.0
type AddGroupMemberParams ¶ added in v0.42.0
type AdoptGroupStateParams ¶ added in v0.64.0
type Agent ¶ added in v0.38.0
type Agent struct {
ID string `json:"id"`
Name string `json:"name"`
Model string `json:"model"`
ModelThinking string `json:"model_thinking"`
ModelStrong string `json:"model_strong"`
ModelStrongThinking string `json:"model_strong_thinking"`
ModelFast string `json:"model_fast"`
ModelFastThinking string `json:"model_fast_thinking"`
SystemPrompt string `json:"system_prompt"`
Soul string `json:"soul"`
Workspace string `json:"workspace"`
Sandbox json.RawMessage `json:"sandbox"`
EnabledBuiltinSkills json.RawMessage `json:"enabled_builtin_skills"`
Scope string `json:"scope"`
CreatorID string `json:"creator_id"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
SystemSettingsToolsEnabled bool `json:"system_settings_tools_enabled"`
}
type AgentGoal ¶ added in v0.38.0
type AgentGoal struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
ProjectID pgtype.Text `json:"project_id"`
ParentID pgtype.Text `json:"parent_id"`
RootID string `json:"root_id"`
Depth int64 `json:"depth"`
Position int64 `json:"position"`
Title string `json:"title"`
Intent string `json:"intent"`
Kind string `json:"kind"`
Priority string `json:"priority"`
Required bool `json:"required"`
AcceptanceContract json.RawMessage `json:"acceptance_contract"`
ConvergencePolicy json.RawMessage `json:"convergence_policy"`
ReviewPolicy string `json:"review_policy"`
Lifecycle string `json:"lifecycle"`
BlockReason string `json:"block_reason"`
AcceptanceState string `json:"acceptance_state"`
AcceptedOutput pgtype.Text `json:"accepted_output"`
AcceptanceSeq int64 `json:"acceptance_seq"`
ActiveAttemptID pgtype.Text `json:"active_attempt_id"`
AttemptCount int64 `json:"attempt_count"`
Context json.RawMessage `json:"context"`
DispatchHint json.RawMessage `json:"dispatch_hint"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
AcceptedAt pgtype.Timestamptz `json:"accepted_at"`
CancelledAt pgtype.Timestamptz `json:"cancelled_at"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
Plan json.RawMessage `json:"plan"`
PlannedAt pgtype.Timestamptz `json:"planned_at"`
// Infrastructure-flaky retry count independent of business attempt budget.
FlakyCount int64 `json:"flaky_count"`
BudgetBonus int32 `json:"budget_bonus"`
DoneReason string `json:"done_reason"`
WorkflowID pgtype.Text `json:"workflow_id"`
WorkflowVersion pgtype.Int4 `json:"workflow_version"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
}
type AgentGoalAcceptanceEvent ¶ added in v0.49.4
type AgentGoalAcceptanceEvent struct {
ID string `json:"id"`
GoalID string `json:"goal_id"`
AttemptID pgtype.Text `json:"attempt_id"`
Seq int64 `json:"seq"`
ItemID string `json:"item_id"`
ItemKind string `json:"item_kind"`
Result string `json:"result"`
Command string `json:"command"`
ExitCode pgtype.Int8 `json:"exit_code"`
CacheKey string `json:"cache_key"`
Authority string `json:"authority"`
ReviewerUserID pgtype.Text `json:"reviewer_user_id"`
ReviewerAttemptID pgtype.Text `json:"reviewer_attempt_id"`
Rationale string `json:"rationale"`
Scope string `json:"scope"`
ScopeHash string `json:"scope_hash"`
Detail json.RawMessage `json:"detail"`
CreatedAt time.Time `json:"created_at"`
}
type AgentGoalAttempt ¶ added in v0.49.4
type AgentGoalAttempt struct {
ID string `json:"id"`
GoalID string `json:"goal_id"`
UserID string `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
ExecutorAgentID pgtype.Text `json:"executor_agent_id"`
SessionID string `json:"session_id"`
Purpose string `json:"purpose"`
AttemptNo int64 `json:"attempt_no"`
Status string `json:"status"`
InputContext json.RawMessage `json:"input_context"`
Evidence json.RawMessage `json:"evidence"`
Output json.RawMessage `json:"output"`
Gaps json.RawMessage `json:"gaps"`
Error string `json:"error"`
HeartbeatAt pgtype.Timestamptz `json:"heartbeat_at"`
LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
WorkerID string `json:"worker_id"`
StartedAt pgtype.Timestamptz `json:"started_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
FailureClass string `json:"failure_class"`
RepairRounds int32 `json:"repair_rounds"`
// Audit copy of legacy failure_class before responsibility-class migration.
PreviousFailureClass string `json:"previous_failure_class"`
}
type AgentGoalEdge ¶ added in v0.49.4
type AgentGoalEdge struct {
GoalID string `json:"goal_id"`
UpstreamID string `json:"upstream_id"`
EdgeKind string `json:"edge_kind"`
OnFailure string `json:"on_failure"`
WaivedAt pgtype.Timestamptz `json:"waived_at"`
WaivedByUser pgtype.Text `json:"waived_by_user"`
WaiverReason string `json:"waiver_reason"`
CreatedAt time.Time `json:"created_at"`
}
type AgentGoalEvent ¶ added in v0.60.0
type AgentLlmCall ¶ added in v0.65.0
type AgentLlmCall struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
AgentID string `json:"agent_id"`
Provider string `json:"provider"`
Model string `json:"model"`
UsageReported bool `json:"usage_reported"`
InputTokens pgtype.Int8 `json:"input_tokens"`
OutputTokens pgtype.Int8 `json:"output_tokens"`
CacheReadTokens pgtype.Int8 `json:"cache_read_tokens"`
CacheWriteTokens pgtype.Int8 `json:"cache_write_tokens"`
CostUsd pgtype.Numeric `json:"cost_usd"`
DurationMs int64 `json:"duration_ms"`
TimeToFirstTokenMs pgtype.Int8 `json:"time_to_first_token_ms"`
StopReason string `json:"stop_reason"`
Error string `json:"error"`
OccurredAt time.Time `json:"occurred_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
ReasoningTokens pgtype.Int8 `json:"reasoning_tokens"`
}
type AgentMentionedSinceCursorParams ¶ added in v0.65.0
type AgentPostedSinceSeqParams ¶ added in v0.65.0
type AgentProviderCredential ¶ added in v0.61.0
type AgentWorkflow ¶ added in v0.60.0
type AgentWorkflow struct {
ID string `json:"id"`
OwnerKind string `json:"owner_kind"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Version int32 `json:"version"`
WorkflowKey pgtype.Text `json:"workflow_key"`
Intent string `json:"intent"`
AcceptanceContract json.RawMessage `json:"acceptance_contract"`
ConvergencePolicy json.RawMessage `json:"convergence_policy"`
Inputs json.RawMessage `json:"inputs"`
PayloadFormat string `json:"payload_format"`
Payload json.RawMessage `json:"payload"`
FullyFrozen bool `json:"fully_frozen"`
SourceGoalID pgtype.Text `json:"source_goal_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AgentWorkflowRun ¶ added in v0.60.0
type AgentWorkflowRun struct {
ID string `json:"id"`
WorkflowID string `json:"workflow_id"`
WorkflowVersion int32 `json:"workflow_version"`
IdempotencyKey string `json:"idempotency_key"`
RootGoalID pgtype.Text `json:"root_goal_id"`
Status string `json:"status"`
Inputs json.RawMessage `json:"inputs"`
PlanHash string `json:"plan_hash"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AppSetting ¶ added in v0.38.0
type AppendAcceptanceEventParams ¶ added in v0.49.4
type AppendAcceptanceEventParams struct {
ID string `json:"id"`
GoalID string `json:"goal_id"`
AttemptID pgtype.Text `json:"attempt_id"`
Seq int64 `json:"seq"`
ItemID string `json:"item_id"`
ItemKind string `json:"item_kind"`
Result string `json:"result"`
Command string `json:"command"`
ExitCode pgtype.Int8 `json:"exit_code"`
CacheKey string `json:"cache_key"`
Authority string `json:"authority"`
ReviewerUserID pgtype.Text `json:"reviewer_user_id"`
ReviewerAttemptID pgtype.Text `json:"reviewer_attempt_id"`
Rationale string `json:"rationale"`
Scope string `json:"scope"`
ScopeHash string `json:"scope_hash"`
Detail json.RawMessage `json:"detail"`
}
type AppendContextItemParams ¶
type AppendGoalEventParams ¶ added in v0.60.0
type ArchiveActiveConversationBySessionIDParams ¶ added in v0.61.0
type ArchiveConversationBySessionIDParams ¶ added in v0.64.0
type ArchiveProjectParams ¶ added in v0.34.0
type AssignUserAgentAndTouchAgentParams ¶ added in v0.66.0
type AssignUserAgentParams ¶
type AuthCredential ¶ added in v0.38.0
type AuthIdentity ¶
type AuthIdentity struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Provider string `json:"provider"`
ProviderSubject string `json:"provider_subject"`
Email string `json:"email"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
RawClaims json.RawMessage `json:"raw_claims"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AuthPolicy ¶
type AuthPolicy struct {
ID string `json:"id"`
Name string `json:"name"`
Effect string `json:"effect"`
Subjects string `json:"subjects"`
Actions string `json:"actions"`
Resources string `json:"resources"`
Conditions string `json:"conditions"`
Priority int64 `json:"priority"`
IsSystem bool `json:"is_system"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AuthProvisionedUser ¶ added in v0.63.0
type AuthProvisionedUser struct {
ID string `json:"id"`
ExternalID string `json:"external_id"`
UserID string `json:"user_id"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
CreatedByTokenID pgtype.Text `json:"created_by_token_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AuthSession ¶
type AuthUser ¶
type AuthUser struct {
ID string `json:"id"`
Email string `json:"email"`
Name string `json:"name"`
AvatarUrl string `json:"avatar_url"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
DefaultAgentID pgtype.Text `json:"default_agent_id"`
NotifyIdentityID pgtype.Text `json:"notify_identity_id"`
AgePublicKey string `json:"age_public_key"`
AgePrivateKey string `json:"age_private_key"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type AuthUserAgent ¶
type AuthUserToken ¶
type AuthUserToken struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Name string `json:"name"`
TokenHash string `json:"token_hash"`
TokenPrefix string `json:"token_prefix"`
AutoGenerated bool `json:"auto_generated"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
RotatedAt pgtype.Timestamptz `json:"rotated_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type BlockGoalParams ¶ added in v0.49.4
type BumpAgentMemoryVersionParams ¶ added in v0.60.0
type ChannelAgent ¶ added in v0.38.0
type ChannelChatCommandReceipt ¶ added in v0.61.0
type ChannelChatCommandReceipt struct {
ID string `json:"id"`
ChannelID string `json:"channel_id"`
ChatKey string `json:"chat_key"`
MessageID string `json:"message_id"`
Command string `json:"command"`
Binding string `json:"binding"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ChannelGroupMember ¶ added in v0.42.0
type ChannelGuest ¶ added in v0.63.0
type ChannelIdentity ¶ added in v0.38.0
type ClaimGoalParams ¶ added in v0.49.4
type ClaimGroupNudgeParams ¶ added in v0.65.0
type ClaimGroupNudgeParams struct {
Now pgtype.Timestamptz `json:"now"`
GroupID string `json:"group_id"`
CooldownBefore pgtype.Timestamptz `json:"cooldown_before"`
}
type ClaimNewestGroupWakeParams ¶ added in v0.65.0
type ClaimNewestGroupWakeParams struct {
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
GroupID string `json:"group_id"`
AgentID string `json:"agent_id"`
Now pgtype.Timestamptz `json:"now"`
}
type ClaimPendingGroupNudgeParams ¶ added in v0.65.0
type ClaimPendingGroupNudgeParams struct {
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
ID string `json:"id"`
GroupID string `json:"group_id"`
AgentID string `json:"agent_id"`
Now pgtype.Timestamptz `json:"now"`
}
type ClaimPendingGroupOutboxParams ¶ added in v0.43.0
type ClaimPendingGroupOutboxParams struct {
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
ID string `json:"id"`
Now pgtype.Timestamptz `json:"now"`
}
type ClaimSessionInboxDeliveryParams ¶ added in v0.63.3
type ClaimWorkflowRunParams ¶ added in v0.60.0
type ClaimWorkflowRunRow ¶ added in v0.60.0
type ClaimWorkflowRunRow struct {
ID string `json:"id"`
WorkflowID string `json:"workflow_id"`
WorkflowVersion int32 `json:"workflow_version"`
IdempotencyKey string `json:"idempotency_key"`
RootGoalID pgtype.Text `json:"root_goal_id"`
Status string `json:"status"`
Inputs json.RawMessage `json:"inputs"`
PlanHash string `json:"plan_hash"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Claimed bool `json:"claimed"`
}
type ClearGroupDispatchPublishStartedParams ¶ added in v0.65.0
type ClearUserAgentMemoryParams ¶ added in v0.60.0
type CompleteSkillHomeMigrationParams ¶ added in v0.64.0
type CompleteSkillHomeMigrationParams struct {
Inventory json.RawMessage `json:"inventory"`
ID string `json:"id"`
SourceSkillCount int64 `json:"source_skill_count"`
SourceFileCount int64 `json:"source_file_count"`
SourceContentBytes int64 `json:"source_content_bytes"`
SourceInventoryDigest string `json:"source_inventory_digest"`
AttestedAt time.Time `json:"attested_at"`
CompletedAt time.Time `json:"completed_at"`
}
type CompleteSkillHomeMigrationRow ¶ added in v0.64.0
type CompleteSkillHomeMigrationRow struct {
ID string `json:"id"`
State string `json:"state"`
SourceSkillCount int64 `json:"source_skill_count"`
SourceFileCount int64 `json:"source_file_count"`
SourceContentBytes int64 `json:"source_content_bytes"`
SourceInventoryDigest string `json:"source_inventory_digest"`
Inventory json.RawMessage `json:"inventory"`
WritersStoppedAttestedAt time.Time `json:"writers_stopped_attested_at"`
BackupVerifiedAttestedAt time.Time `json:"backup_verified_attested_at"`
CompletedAt time.Time `json:"completed_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
RemovedFileCount int64 `json:"removed_file_count"`
RemovedContentBytes int64 `json:"removed_content_bytes"`
NormalizedSkillCount int64 `json:"normalized_skill_count"`
UpdatedUsageCount int64 `json:"updated_usage_count"`
ExpectedUsageCount int64 `json:"expected_usage_count"`
}
type ConsumeOAuthRefreshTokenParams ¶ added in v0.60.0
type CountActiveKnowledgeParams ¶ added in v0.60.0
type CountAgentPostsInWindowParams ¶ added in v0.65.0
type CountAgentPostsSinceSeqParams ¶ added in v0.65.0
type CountBillableAttemptsParams ¶ added in v0.60.0
type CountHeldGroupDispatchesInChainParams ¶ added in v0.65.0
type CountMCPServersByNameExcludingParams ¶ added in v0.68.0
type CountPeerMessagesAfterSeqParams ¶ added in v0.65.0
type CountRanReviewAttemptsForOutputParams ¶ added in v0.60.0
type CountRemovedKnowledgeParams ¶ added in v0.60.0
type CountRootGoalParams ¶ added in v0.49.4
type CountRootGoalParams struct {
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
ProjectID pgtype.Text `json:"project_id"`
WorkflowID pgtype.Text `json:"workflow_id"`
Lifecycle pgtype.Text `json:"lifecycle"`
Terminal pgtype.Bool `json:"terminal"`
Q pgtype.Text `json:"q"`
IncludeArchived bool `json:"include_archived"`
}
type CreateAgentLLMCallParams ¶ added in v0.65.0
type CreateAgentLLMCallParams struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
AgentID string `json:"agent_id"`
Provider string `json:"provider"`
Model string `json:"model"`
UsageReported bool `json:"usage_reported"`
InputTokens pgtype.Int8 `json:"input_tokens"`
OutputTokens pgtype.Int8 `json:"output_tokens"`
ReasoningTokens pgtype.Int8 `json:"reasoning_tokens"`
CacheReadTokens pgtype.Int8 `json:"cache_read_tokens"`
CacheWriteTokens pgtype.Int8 `json:"cache_write_tokens"`
CostUsd pgtype.Numeric `json:"cost_usd"`
DurationMs int64 `json:"duration_ms"`
TimeToFirstTokenMs pgtype.Int8 `json:"time_to_first_token_ms"`
StopReason string `json:"stop_reason"`
Error string `json:"error"`
OccurredAt time.Time `json:"occurred_at"`
}
type CreateAgentParams ¶
type CreateAgentParams struct {
ID string `json:"id"`
Name string `json:"name"`
Model string `json:"model"`
ModelThinking string `json:"model_thinking"`
ModelStrong string `json:"model_strong"`
ModelStrongThinking string `json:"model_strong_thinking"`
ModelFast string `json:"model_fast"`
ModelFastThinking string `json:"model_fast_thinking"`
SystemPrompt string `json:"system_prompt"`
Soul string `json:"soul"`
Workspace string `json:"workspace"`
Sandbox json.RawMessage `json:"sandbox"`
Scope string `json:"scope"`
CreatorID string `json:"creator_id"`
Enabled bool `json:"enabled"`
SystemSettingsToolsEnabled bool `json:"system_settings_tools_enabled"`
}
type CreateAgentProviderCredentialParams ¶ added in v0.61.0
type CreateArticleParams ¶
type CreateArticleParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Url string `json:"url"`
CanonicalUrl string `json:"canonical_url"`
SourceType string `json:"source_type"`
Title string `json:"title"`
Author string `json:"author"`
Summary string `json:"summary"`
Tags string `json:"tags"`
Status string `json:"status"`
Starred bool `json:"starred"`
FilePath string `json:"file_path"`
Metadata json.RawMessage `json:"metadata"`
PublishedAt pgtype.Timestamptz `json:"published_at"`
SavedAt time.Time `json:"saved_at"`
ReadAt pgtype.Timestamptz `json:"read_at"`
}
type CreateAttemptParams ¶ added in v0.49.4
type CreateAttemptParams struct {
ID string `json:"id"`
GoalID string `json:"goal_id"`
UserID string `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
ExecutorAgentID pgtype.Text `json:"executor_agent_id"`
SessionID string `json:"session_id"`
Purpose string `json:"purpose"`
AttemptNo int64 `json:"attempt_no"`
Status string `json:"status"`
InputContext json.RawMessage `json:"input_context"`
LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
}
type CreateChannelGuestParams ¶ added in v0.63.0
type CreateChannelParams ¶ added in v0.61.0
type CreateChatCommandReceiptParams ¶ added in v0.61.0
type CreateConversationParams ¶
type CreateConversationParams struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
Title pgtype.Text `json:"title"`
Channel string `json:"channel"`
Kind string `json:"kind"`
ProjectID pgtype.Text `json:"project_id"`
Archived bool `json:"archived"`
LastActive time.Time `json:"last_active"`
AgentID pgtype.Text `json:"agent_id"`
UserID pgtype.Text `json:"user_id"`
GroupID pgtype.Text `json:"group_id"`
GuestID pgtype.Text `json:"guest_id"`
}
type CreateDigestParams ¶ added in v0.30.0
type CreateDigestParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Date string `json:"date"`
Narrative string `json:"narrative"`
SavedYesterdayCount int64 `json:"saved_yesterday_count"`
UnreadCount int64 `json:"unread_count"`
ReadCount int64 `json:"read_count"`
ArchivedCount int64 `json:"archived_count"`
StarredCount int64 `json:"starred_count"`
WorthRevisitingCount int64 `json:"worth_revisiting_count"`
TotalArticles int64 `json:"total_articles"`
TopTags json.RawMessage `json:"top_tags"`
}
type CreateEdgeParams ¶ added in v0.49.4
type CreateEmailSendDedupParams ¶ added in v0.60.0
type CreateFeedEntryParams ¶ added in v0.43.0
type CreateFeedEntryParams struct {
ID string `json:"id"`
FeedID string `json:"feed_id"`
Guid string `json:"guid"`
Url string `json:"url"`
Title string `json:"title"`
Status string `json:"status"`
ArticleID pgtype.Text `json:"article_id"`
Attempts int64 `json:"attempts"`
ErrorMsg string `json:"error_msg"`
DiscoveredAt time.Time `json:"discovered_at"`
ProcessedAt pgtype.Timestamptz `json:"processed_at"`
}
type CreateFeedParams ¶ added in v0.43.0
type CreateFeedParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Url string `json:"url"`
Kind string `json:"kind"`
Metadata json.RawMessage `json:"metadata"`
Title string `json:"title"`
Description string `json:"description"`
CheckInterval string `json:"check_interval"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastEtag string `json:"last_etag"`
LastModified string `json:"last_modified"`
Enabled bool `json:"enabled"`
}
type CreateGoalIfAbsentParams ¶ added in v0.60.0
type CreateGoalIfAbsentParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
ProjectID pgtype.Text `json:"project_id"`
ParentID pgtype.Text `json:"parent_id"`
RootID string `json:"root_id"`
Depth int64 `json:"depth"`
Position int64 `json:"position"`
Title string `json:"title"`
Intent string `json:"intent"`
Kind string `json:"kind"`
Priority string `json:"priority"`
Required bool `json:"required"`
AcceptanceContract json.RawMessage `json:"acceptance_contract"`
ConvergencePolicy json.RawMessage `json:"convergence_policy"`
ReviewPolicy string `json:"review_policy"`
Lifecycle string `json:"lifecycle"`
Context json.RawMessage `json:"context"`
DispatchHint json.RawMessage `json:"dispatch_hint"`
WorkflowID pgtype.Text `json:"workflow_id"`
WorkflowVersion pgtype.Int4 `json:"workflow_version"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
}
type CreateGoalParams ¶ added in v0.49.4
type CreateGoalParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
ProjectID pgtype.Text `json:"project_id"`
ParentID pgtype.Text `json:"parent_id"`
RootID string `json:"root_id"`
Depth int64 `json:"depth"`
Position int64 `json:"position"`
Title string `json:"title"`
Intent string `json:"intent"`
Kind string `json:"kind"`
Priority string `json:"priority"`
Required bool `json:"required"`
AcceptanceContract json.RawMessage `json:"acceptance_contract"`
ConvergencePolicy json.RawMessage `json:"convergence_policy"`
ReviewPolicy string `json:"review_policy"`
Lifecycle string `json:"lifecycle"`
Context json.RawMessage `json:"context"`
DispatchHint json.RawMessage `json:"dispatch_hint"`
WorkflowID pgtype.Text `json:"workflow_id"`
WorkflowVersion pgtype.Int4 `json:"workflow_version"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
}
type CreateGroupMessageParams ¶ added in v0.42.0
type CreateGroupMessageParams struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
SourceChannelID pgtype.Text `json:"source_channel_id"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
PlatformMessageID pgtype.Text `json:"platform_message_id"`
ReplyTo pgtype.Text `json:"reply_to"`
PlatformTimestamp pgtype.Timestamptz `json:"platform_timestamp"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
ActorDisplayName pgtype.Text `json:"actor_display_name"`
Content string `json:"content"`
ContentBlocks json.RawMessage `json:"content_blocks"`
Reasoning string `json:"reasoning"`
AgentSessionID string `json:"agent_session_id"`
DeliveryState string `json:"delivery_state"`
}
type CreateGroupNudgeParams ¶ added in v0.65.0
type CreateGroupOutboxIfAbsentParams ¶ added in v0.65.0
type CreateGroupOutboxIfAbsentParams struct {
ID string `json:"id"`
GroupMessageID string `json:"group_message_id"`
GroupID string `json:"group_id"`
Envelope string `json:"envelope"`
Status string `json:"status"`
AttemptCount int64 `json:"attempt_count"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
}
type CreateGroupOutboxParams ¶ added in v0.43.0
type CreateGroupOutboxParams struct {
ID string `json:"id"`
GroupMessageID string `json:"group_message_id"`
GroupID string `json:"group_id"`
Envelope string `json:"envelope"`
Status string `json:"status"`
AttemptCount int64 `json:"attempt_count"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
}
type CreateGroupStateParams ¶ added in v0.42.0
type CreateGroupWakeParams ¶ added in v0.65.0
type CreateLibraryChunkSetParams ¶ added in v0.63.0
type CreateLibraryFileParams ¶ added in v0.63.0
type CreateLibraryFileParams struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
FileName string `json:"file_name"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
RawSha256 []byte `json:"raw_sha256"`
}
type CreateMCPOAuthFlowParams ¶ added in v0.68.0
type CreateMCPOAuthFlowParams struct {
ID string `json:"id"`
ServerID string `json:"server_id"`
UserID string `json:"user_id"`
CredentialScope string `json:"credential_scope"`
CredentialUserID pgtype.Text `json:"credential_user_id"`
CredentialAgentID pgtype.Text `json:"credential_agent_id"`
PkceVerifier string `json:"pkce_verifier"`
OauthConfig json.RawMessage `json:"oauth_config"`
ExpiresAt time.Time `json:"expires_at"`
}
type CreateMCPServerParams ¶ added in v0.60.0
type CreateMCPServerParams struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Url string `json:"url"`
Transport string `json:"transport"`
AuthType string `json:"auth_type"`
CredentialRef string `json:"credential_ref"`
Enabled bool `json:"enabled"`
Metadata json.RawMessage `json:"metadata"`
CredentialMode string `json:"credential_mode"`
}
type CreateMediaIfAbsentParams ¶ added in v0.61.0
type CreateMessageParams ¶
type CreateMessageParams struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
}
type CreateMessagePartParams ¶
type CreateMessagePartParams struct {
ID string `json:"id"`
MessageID string `json:"message_id"`
PartType string `json:"part_type"`
Ordinal int64 `json:"ordinal"`
MediaID pgtype.Text `json:"media_id"`
TextContent pgtype.Text `json:"text_content"`
ToolCallID pgtype.Text `json:"tool_call_id"`
ToolName pgtype.Text `json:"tool_name"`
ToolInput pgtype.Text `json:"tool_input"`
ToolOutput pgtype.Text `json:"tool_output"`
Metadata pgtype.Text `json:"metadata"`
}
type CreateOAuthAccessTokenParams ¶ added in v0.60.0
type CreateOAuthAccessTokenParams struct {
PublicID string `json:"public_id"`
TokenHash string `json:"token_hash"`
Last4 string `json:"last4"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
Scopes []string `json:"scopes"`
RefreshFamilyID string `json:"refresh_family_id"`
ExpiresAt time.Time `json:"expires_at"`
}
type CreateOAuthAuthorizationCodeParams ¶ added in v0.60.0
type CreateOAuthAuthorizationCodeParams struct {
CodeHash string `json:"code_hash"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
RedirectUri string `json:"redirect_uri"`
Scopes []string `json:"scopes"`
CodeChallenge string `json:"code_challenge"`
CodeChallengeMethod string `json:"code_challenge_method"`
ExpiresAt time.Time `json:"expires_at"`
}
type CreateOAuthClientParams ¶ added in v0.60.0
type CreateOAuthClientParams struct {
ClientID string `json:"client_id"`
Name string `json:"name"`
ClientSecretHash string `json:"client_secret_hash"`
ClientType string `json:"client_type"`
RedirectUris []string `json:"redirect_uris"`
GrantTypes []string `json:"grant_types"`
Scopes []string `json:"scopes"`
OwnerUserID string `json:"owner_user_id"`
}
type CreateOAuthRefreshFamilyParams ¶ added in v0.60.0
type CreateOAuthRefreshTokenParams ¶ added in v0.60.0
type CreatePersonalAccessTokenParams ¶ added in v0.60.0
type CreatePersonalAccessTokenParams struct {
PublicID string `json:"public_id"`
UserID string `json:"user_id"`
Name string `json:"name"`
TokenHash string `json:"token_hash"`
Last4 string `json:"last4"`
Scopes []string `json:"scopes"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
TokenUse string `json:"token_use"`
}
type CreateProjectParams ¶ added in v0.34.0
type CreateProviderParams ¶
type CreateProvisionedAuthUserParams ¶ added in v0.63.0
type CreateProvisionedPersonalAccessTokenParams ¶ added in v0.63.0
type CreateProvisionedPersonalAccessTokenParams struct {
PublicID string `json:"public_id"`
UserID string `json:"user_id"`
Name string `json:"name"`
TokenHash string `json:"token_hash"`
Last4 string `json:"last4"`
Scopes []string `json:"scopes"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
IssuedByTokenID pgtype.Text `json:"issued_by_token_id"`
}
type CreateProvisionedUserChannelIdentityParams ¶ added in v0.64.1
type CreateProvisionedUserParams ¶ added in v0.63.0
type CreateSchedJobRunParams ¶
type CreateSchedJobRunParams struct {
ID string `json:"id"`
JobID string `json:"job_id"`
SessionID string `json:"session_id"`
Status string `json:"status"`
StartedAt time.Time `json:"started_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
Error string `json:"error"`
UserID pgtype.Text `json:"user_id"`
}
type CreateSchedulerJobParams ¶
type CreateSchedulerJobParams struct {
ID string `json:"id"`
OwnerKind string `json:"owner_kind"`
ExecScope string `json:"exec_scope"`
JobKey string `json:"job_key"`
Name string `json:"name"`
Description string `json:"description"`
ScheduleCron string `json:"schedule_cron"`
ScheduleEvery string `json:"schedule_every"`
ScheduleAt string `json:"schedule_at"`
Message string `json:"message"`
Payload json.RawMessage `json:"payload"`
DispatchKind string `json:"dispatch_kind"`
SessionMode string `json:"session_mode"`
Enabled bool `json:"enabled"`
AgentID pgtype.Text `json:"agent_id"`
UserID pgtype.Text `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastRunAt pgtype.Timestamptz `json:"last_run_at"`
LastError string `json:"last_error"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
}
type CreateShareParams ¶ added in v0.35.0
type CreateShareParams struct {
}
type CreateSkillParams ¶
type CreateSkillParams struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
DisableModelInvocation bool `json:"disable_model_invocation"`
Metadata json.RawMessage `json:"metadata"`
}
type CreateSummaryParams ¶
type CreateSummaryParams struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Kind string `json:"kind"`
Depth int64 `json:"depth"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
EarliestAt pgtype.Timestamptz `json:"earliest_at"`
LatestAt pgtype.Timestamptz `json:"latest_at"`
DescendantCount int64 `json:"descendant_count"`
DescendantTokenCount int64 `json:"descendant_token_count"`
SourceMessageTokenCount int64 `json:"source_message_token_count"`
ContainsNonPrincipalInput bool `json:"contains_non_principal_input"`
}
type CreateWebChannelIfNotExistsParams ¶ added in v0.43.0
type CreateWebhookParams ¶ added in v0.61.0
type CreateWebhookParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
Name string `json:"name"`
Provider string `json:"provider"`
IsEnabled bool `json:"is_enabled"`
WaitTimeoutSeconds int32 `json:"wait_timeout_seconds"`
MaxRunTimeoutSeconds int32 `json:"max_run_timeout_seconds"`
TokenPublicID string `json:"token_public_id"`
TokenHash string `json:"token_hash"`
TokenLast4 string `json:"token_last4"`
}
type CreateWorkflowParams ¶ added in v0.60.0
type CreateWorkflowParams struct {
ID string `json:"id"`
OwnerKind string `json:"owner_kind"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Version int32 `json:"version"`
WorkflowKey pgtype.Text `json:"workflow_key"`
Intent string `json:"intent"`
AcceptanceContract json.RawMessage `json:"acceptance_contract"`
ConvergencePolicy json.RawMessage `json:"convergence_policy"`
Inputs json.RawMessage `json:"inputs"`
PayloadFormat string `json:"payload_format"`
Payload json.RawMessage `json:"payload"`
FullyFrozen bool `json:"fully_frozen"`
SourceGoalID pgtype.Text `json:"source_goal_id"`
}
type CtxAgentMemory ¶
type CtxAgentMemory struct {
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
Content string `json:"content"`
Soul string `json:"soul"`
Version int64 `json:"version"`
Constraints json.RawMessage `json:"constraints"`
ProfileEntries json.RawMessage `json:"profile_entries"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CtxAgentMemoryChangelog ¶ added in v0.38.0
type CtxAgentMemoryChangelog struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
SessionID pgtype.Text `json:"session_id"`
EntityID pgtype.Text `json:"entity_id"`
Scope string `json:"scope"`
Action string `json:"action"`
Source string `json:"source"`
MemoryVersionBefore pgtype.Int8 `json:"memory_version_before"`
MemoryVersionAfter pgtype.Int8 `json:"memory_version_after"`
BeforeText pgtype.Text `json:"before_text"`
AfterText pgtype.Text `json:"after_text"`
Metadata pgtype.Text `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
}
type CtxAgentMemorySnapshot ¶ added in v0.38.0
type CtxConversation ¶
type CtxConversation struct {
ID string `json:"id"`
SessionID string `json:"session_id"`
Title pgtype.Text `json:"title"`
Channel string `json:"channel"`
Kind string `json:"kind"`
ProjectID pgtype.Text `json:"project_id"`
Archived bool `json:"archived"`
LastActive time.Time `json:"last_active"`
BootstrappedAt pgtype.Timestamptz `json:"bootstrapped_at"`
AgentID pgtype.Text `json:"agent_id"`
UserID pgtype.Text `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
GroupID pgtype.Text `json:"group_id"`
GuestID pgtype.Text `json:"guest_id"`
LastTurnStartedAt pgtype.Timestamptz `json:"last_turn_started_at"`
LastTurnCompletedAt pgtype.Timestamptz `json:"last_turn_completed_at"`
LastTurnResult pgtype.Text `json:"last_turn_result"`
LastViewedAt pgtype.Timestamptz `json:"last_viewed_at"`
}
type CtxGroupDispatch ¶ added in v0.43.0
type CtxGroupDispatch struct {
ID string `json:"id"`
GroupMessageID string `json:"group_message_id"`
GroupID string `json:"group_id"`
AgentID string `json:"agent_id"`
ReplyChannelID string `json:"reply_channel_id"`
Status string `json:"status"`
AttemptCount int64 `json:"attempt_count"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
ResultMessageID string `json:"result_message_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Kind string `json:"kind"`
TriggerSeq int64 `json:"trigger_seq"`
HeldUpToSeq pgtype.Int8 `json:"held_up_to_seq"`
PublishStartedAt pgtype.Timestamptz `json:"publish_started_at"`
PublishedAt pgtype.Timestamptz `json:"published_at"`
}
type CtxGroupIngestCursor ¶ added in v0.42.0
type CtxGroupMessage ¶ added in v0.42.0
type CtxGroupMessage struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
SourceChannelID pgtype.Text `json:"source_channel_id"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
PlatformMessageID pgtype.Text `json:"platform_message_id"`
ReplyTo pgtype.Text `json:"reply_to"`
PlatformTimestamp pgtype.Timestamptz `json:"platform_timestamp"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
Content string `json:"content"`
Reasoning string `json:"reasoning"`
AgentSessionID string `json:"agent_session_id"`
CreatedAt time.Time `json:"created_at"`
ContentBlocks json.RawMessage `json:"content_blocks"`
DeliveryState string `json:"delivery_state"`
ActorDisplayName pgtype.Text `json:"actor_display_name"`
}
type CtxGroupOutbox ¶ added in v0.43.0
type CtxGroupOutbox struct {
ID string `json:"id"`
GroupMessageID string `json:"group_message_id"`
GroupID string `json:"group_id"`
Envelope string `json:"envelope"`
Status string `json:"status"`
AttemptCount int64 `json:"attempt_count"`
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CtxGroupState ¶ added in v0.42.0
type CtxGroupState struct {
ID string `json:"id"`
Platform string `json:"platform"`
PlatformGroupID string `json:"platform_group_id"`
PlatformThreadID string `json:"platform_thread_id"`
NextSeq int64 `json:"next_seq"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
GroupName string `json:"group_name"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
AgentChainHardLimit int32 `json:"agent_chain_hard_limit"`
MaxAgentPostsPerMinute int32 `json:"max_agent_posts_per_minute"`
MaxRepliesPerHumanTrigger int32 `json:"max_replies_per_human_trigger"`
HoldLimit int32 `json:"hold_limit"`
NudgeAt pgtype.Timestamptz `json:"nudge_at"`
NudgeCheckedAt pgtype.Timestamptz `json:"nudge_checked_at"`
NudgeStreakCount int32 `json:"nudge_streak_count"`
}
type CtxItem ¶
type CtxItem struct {
ConversationID string `json:"conversation_id"`
Ordinal int64 `json:"ordinal"`
ItemType string `json:"item_type"`
MessageID pgtype.Text `json:"message_id"`
SummaryID pgtype.Text `json:"summary_id"`
EventType string `json:"event_type"`
Role string `json:"role"`
CreatedAt time.Time `json:"created_at"`
}
type CtxMedium ¶ added in v0.61.0
type CtxMedium struct {
ID string `json:"id"`
UserID pgtype.Text `json:"user_id"`
Sha256 []byte `json:"sha256"`
MimeType string `json:"mime_type"`
SizeBytes int64 `json:"size_bytes"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
GroupID pgtype.Text `json:"group_id"`
OwnerID pgtype.Text `json:"owner_id"`
OwnerKind pgtype.Text `json:"owner_kind"`
Baseline pgtype.Text `json:"baseline"`
}
type CtxMessage ¶
type CtxMessage struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
CreatedAt time.Time `json:"created_at"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
}
type CtxMessageEmbedding ¶ added in v0.50.0
type CtxMessagePart ¶
type CtxMessagePart struct {
ID string `json:"id"`
MessageID string `json:"message_id"`
PartType string `json:"part_type"`
Ordinal int64 `json:"ordinal"`
TextContent pgtype.Text `json:"text_content"`
ToolCallID pgtype.Text `json:"tool_call_id"`
ToolName pgtype.Text `json:"tool_name"`
ToolInput pgtype.Text `json:"tool_input"`
ToolOutput pgtype.Text `json:"tool_output"`
Metadata pgtype.Text `json:"metadata"`
MediaID pgtype.Text `json:"media_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CtxSessionInbox ¶ added in v0.63.3
type CtxSessionInbox struct {
ID string `json:"id"`
EnqueueSeq pgtype.Int8 `json:"enqueue_seq"`
SourceSessionID string `json:"source_session_id"`
TargetSessionID string `json:"target_session_id"`
ActorID string `json:"actor_id"`
Content string `json:"content"`
DeliveredAt pgtype.Timestamptz `json:"delivered_at"`
FailedAt pgtype.Timestamptz `json:"failed_at"`
ErrorCode string `json:"error_code"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CtxSummary ¶
type CtxSummary struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Kind string `json:"kind"`
Depth int64 `json:"depth"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
EarliestAt pgtype.Timestamptz `json:"earliest_at"`
LatestAt pgtype.Timestamptz `json:"latest_at"`
DescendantCount int64 `json:"descendant_count"`
DescendantTokenCount int64 `json:"descendant_token_count"`
SourceMessageTokenCount int64 `json:"source_message_token_count"`
CreatedAt time.Time `json:"created_at"`
ContainsNonPrincipalInput bool `json:"contains_non_principal_input"`
}
type CtxSummaryEmbedding ¶ added in v0.50.0
type CtxSummaryMessage ¶
type CtxSummaryParent ¶
type DeleteAgentIfVersionParams ¶ added in v0.66.0
type DeleteAgentProviderCredentialParams ¶ added in v0.61.0
type DeleteArticleParams ¶ added in v0.35.3
type DeleteChatAgentParams ¶
type DeleteChatCommandReceiptParams ¶ added in v0.61.0
type DeleteDigestArticlesParams ¶ added in v0.30.0
type DeleteEmailSendDedupParams ¶ added in v0.60.0
type DeleteFeedParams ¶ added in v0.43.0
type DeleteMCPServerByScopeIfVersionParams ¶ added in v0.66.0
type DeleteMCPServerByScopeParams ¶ added in v0.60.0
type DeleteOrphanMediaRow ¶ added in v0.66.0
type DeleteProjectParams ¶ added in v0.34.0
type DeleteProviderIfVersionParams ¶ added in v0.66.0
type DeleteShareByUserParams ¶ added in v0.35.0
type DeleteShareByUserParams struct {
}
type DeleteSkillParams ¶ added in v0.35.3
type DeleteToolOverrideIfVersionParams ¶ added in v0.66.0
type DeleteToolOverrideParams ¶ added in v0.60.0
type DeleteVaultEntryByScopeParams ¶ added in v0.48.0
type DeleteWebhookForUserParams ¶ added in v0.61.0
type DeprecateFactParams ¶ added in v0.60.0
type DisableOAuthClientParams ¶ added in v0.60.0
type EmailSendDedup ¶ added in v0.60.0
type EnqueueSessionInboxParams ¶ added in v0.63.3
type ExistsGroupMessageBeforeSeqParams ¶ added in v0.65.0
type ExtendRunningGroupDispatchLeaseParams ¶ added in v0.43.0
type ExtendRunningGroupDispatchLeaseParams struct {
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
}
type ExtendRunningGroupOutboxLeaseParams ¶ added in v0.43.0
type ExtendRunningGroupOutboxLeaseParams struct {
LeaseUntil pgtype.Timestamptz `json:"lease_until"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
}
type Fact ¶ added in v0.60.0
type Fact struct {
ID string `json:"id"`
Subject string `json:"subject"`
Scope string `json:"scope"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
Content string `json:"content"`
Status string `json:"status"`
Metadata json.RawMessage `json:"metadata"`
Supersedes pgtype.Text `json:"supersedes"`
Version int64 `json:"version"`
Source string `json:"source"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type FailPendingSessionInboxParams ¶ added in v0.63.3
type FinalizeAttemptParams ¶ added in v0.49.4
type GetActiveAttemptParams ¶ added in v0.49.4
type GetAgentProviderCredentialParams ¶ added in v0.61.0
type GetArticleParams ¶ added in v0.35.3
type GetAuthOAuthProviderRow ¶ added in v0.60.3
type GetAuthOAuthProviderRow struct {
ID string `json:"id"`
ProviderID string `json:"provider_id"`
ClientID string `json:"client_id"`
ClientSecretEnc string `json:"client_secret_enc"`
RedirectUrl string `json:"redirect_url"`
Scopes []string `json:"scopes"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type GetChannelIdentityNameParams ¶ added in v0.65.0
type GetChatAgentParams ¶
type GetContextMessageItemsRow ¶
type GetContextMessageItemsRow struct {
ConversationID string `json:"conversation_id"`
Ordinal int64 `json:"ordinal"`
ItemType string `json:"item_type"`
MessageID pgtype.Text `json:"message_id"`
SummaryID pgtype.Text `json:"summary_id"`
EventType string `json:"event_type"`
Role string `json:"role"`
CreatedAt time.Time `json:"created_at"`
MsgTokenCount int64 `json:"msg_token_count"`
}
type GetContextStatsRow ¶ added in v0.46.0
type GetContextTimeBoundsRow ¶ added in v0.63.3
type GetConversationAgentBySessionIDParams ¶ added in v0.46.0
type GetConversationBySessionIDParams ¶ added in v0.35.3
type GetConversationParams ¶ added in v0.35.3
type GetConversationTimeBoundsRow ¶ added in v0.46.0
type GetConversationTimeBoundsRow struct {
EarliestAt interface{} `json:"earliest_at"`
LatestAt interface{} `json:"latest_at"`
}
type GetDeliveredGroupMessageBySeqParams ¶ added in v0.65.0
type GetDeliveredGroupMessageBySeqRow ¶ added in v0.65.0
type GetDeliveredGroupRecallMessageParams ¶ added in v0.65.0
type GetDeliveredGroupRecallMessageRow ¶ added in v0.65.0
type GetDigestByDateParams ¶ added in v0.30.0
type GetEarliestGroupMentionSinceCursorParams ¶ added in v0.65.0
type GetEdgeParams ¶ added in v0.49.4
type GetEmailSendDedupParams ¶ added in v0.60.0
type GetFactForUpdateParams ¶ added in v0.60.0
type GetFactParams ¶ added in v0.60.0
type GetFeedByURLParams ¶ added in v0.43.0
type GetFeedEntryParams ¶ added in v0.43.0
type GetFeedParams ¶ added in v0.43.0
type GetGoalByIdempotencyKeyParams ¶ added in v0.60.0
type GetGoalHealthReportParams ¶ added in v0.60.0
type GetGroupMessageByPlatformIDParams ¶ added in v0.42.0
type GetGroupStateByTripleParams ¶ added in v0.42.0
type GetIngestCursorParams ¶ added in v0.42.0
type GetKnowledgeUsageForUpdateParams ¶ added in v0.60.0
type GetLatestPeerGroupMessageWithContentParams ¶ added in v0.65.0
type GetLatestQualifyingKnowledgeDeprecateChangelogParams ¶ added in v0.60.0
type GetLatestWorkflowVersionParams ¶ added in v0.60.0
type GetLibraryChunkSetByDerivationParams ¶ added in v0.63.0
type GetLibraryChunkSetIntegrityRow ¶ added in v0.63.0
type GetLibraryFileLifecycleRow ¶ added in v0.63.0
type GetLibraryFileLifecycleRow struct {
ID string `json:"id"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
RawSha256 []byte `json:"raw_sha256"`
Status string `json:"status"`
ErrorMessage pgtype.Text `json:"error_message"`
ActiveChunkSetID pgtype.Text `json:"active_chunk_set_id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type GetLibraryRawOwnersRow ¶ added in v0.63.0
type GetLibraryRawOwnersRow struct {
ID string `json:"id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
}
type GetMCPServerIDByURLOnScopeParams ¶ added in v0.68.0
type GetMainConversationByProjectParams ¶ added in v0.35.3
type GetMaxAttemptNoParams ¶ added in v0.49.4
type GetMediaByOwnerAndSHA256Params ¶ added in v0.66.0
type GetMediaForSessionParams ¶ added in v0.61.0
type GetMemorySnapshotParams ¶
type GetMessageByConversationOriginParams ¶ added in v0.65.0
type GetMessageParams ¶ added in v0.38.0
type GetMessagePartsByMessagesRow ¶ added in v0.66.0
type GetMessagePartsByMessagesRow struct {
CtxMessagePart CtxMessagePart `json:"ctx_message_part"`
MediaBaseline pgtype.Text `json:"media_baseline"`
}
type GetMessageScopedParams ¶ added in v0.49.0
type GetMessageScopedRow ¶ added in v0.49.0
type GetMessageScopedRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
CreatedAt time.Time `json:"created_at"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
SessionID string `json:"session_id"`
ConversationTitle pgtype.Text `json:"conversation_title"`
}
type GetMessagesSinceParams ¶
type GetOAuthAccessTokenByPublicIDRow ¶ added in v0.60.0
type GetOAuthAccessTokenByPublicIDRow struct {
ID string `json:"id"`
PublicID string `json:"public_id"`
TokenHash string `json:"token_hash"`
Last4 string `json:"last4"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
Scopes []string `json:"scopes"`
RefreshFamilyID string `json:"refresh_family_id"`
ExpiresAt time.Time `json:"expires_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
CreatedAt time.Time `json:"created_at"`
FamilyRevokedAt pgtype.Timestamptz `json:"family_revoked_at"`
}
type GetOAuthRefreshTokenByPublicIDRow ¶ added in v0.60.0
type GetOAuthRefreshTokenByPublicIDRow struct {
ID string `json:"id"`
PublicID string `json:"public_id"`
TokenHash string `json:"token_hash"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
Scopes []string `json:"scopes"`
FamilyID string `json:"family_id"`
ReplacedByID pgtype.Text `json:"replaced_by_id"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
ExpiresAt time.Time `json:"expires_at"`
CreatedAt time.Time `json:"created_at"`
FamilyRevokedAt pgtype.Timestamptz `json:"family_revoked_at"`
}
type GetOwnedProvisionedUserForUpdateParams ¶ added in v0.64.1
type GetOwnedProvisionedUserForUpdateRow ¶ added in v0.64.1
type GetPersonalLibraryQuotaUsageRow ¶ added in v0.63.0
type GetProjectByNameParams ¶ added in v0.34.0
type GetProjectByOwnerParams ¶ added in v0.64.0
type GetProjectParams ¶ added in v0.34.0
type GetProvisionedUserByExternalIDRow ¶ added in v0.63.0
type GetProvisionedUserByExternalIDRow struct {
ID string `json:"id"`
ExternalID string `json:"external_id"`
UserID string `json:"user_id"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
CreatedByTokenID pgtype.Text `json:"created_by_token_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Email string `json:"email"`
Name string `json:"name"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
TokenID string `json:"token_id"`
TokenName string `json:"token_name"`
TokenLast4 string `json:"token_last4"`
TokenExpiresAt pgtype.Timestamptz `json:"token_expires_at"`
TokenLastUsedAt pgtype.Timestamptz `json:"token_last_used_at"`
TokenCreatedAt time.Time `json:"token_created_at"`
}
type GetProvisionedUserForUpdateRow ¶ added in v0.63.0
type GetProvisionedUserForUpdateRow struct {
ID string `json:"id"`
ExternalID string `json:"external_id"`
UserID string `json:"user_id"`
Email string `json:"email"`
Name string `json:"name"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type GetProvisionedUserRow ¶ added in v0.63.0
type GetProvisionedUserRow struct {
ID string `json:"id"`
ExternalID string `json:"external_id"`
UserID string `json:"user_id"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
CreatedByTokenID pgtype.Text `json:"created_by_token_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Email string `json:"email"`
Name string `json:"name"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
TokenID string `json:"token_id"`
TokenName string `json:"token_name"`
TokenLast4 string `json:"token_last4"`
TokenExpiresAt pgtype.Timestamptz `json:"token_expires_at"`
TokenLastUsedAt pgtype.Timestamptz `json:"token_last_used_at"`
TokenCreatedAt time.Time `json:"token_created_at"`
}
type GetRequiredChildRollupCountsRow ¶ added in v0.60.0
type GetSchedJobRunParams ¶ added in v0.38.0
type GetSchedulerJobByIdempotencyKeyParams ¶ added in v0.60.0
type GetSkillHomeMigrationReadinessRow ¶ added in v0.64.0
type GetSkillHomeMigrationSourceFileStatsRow ¶ added in v0.64.0
type GetSkillUsageForUpdateParams ¶ added in v0.60.0
type GetSummaryMessageSeqRangeRow ¶ added in v0.46.0
type GetSummaryParams ¶ added in v0.38.0
type GetSystemAgentLibraryQuotaUsageRow ¶ added in v0.63.0
type GetSystemLibraryQuotaUsageRow ¶ added in v0.63.0
type GetToolOverrideParams ¶ added in v0.66.0
type GetUserAgentSkillByNameParams ¶ added in v0.60.0
type GetVaultEntryByScopeParams ¶ added in v0.48.0
type GetWebhookForUserForUpdateParams ¶ added in v0.61.0
type GetWebhookForUserParams ¶ added in v0.61.0
type GetWorkflowRunByKeyParams ¶ added in v0.60.0
type HasEligiblePairActivityAfterParams ¶ added in v0.60.0
type HeartbeatAttemptParams ¶ added in v0.49.4
type HeartbeatAttemptParams struct {
LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
ID string `json:"id"`
}
type IncrementGroupNudgeStreakParams ¶ added in v0.65.0
type InsertArticleContentIfAbsentParams ¶ added in v0.60.0
type InsertFactParams ¶ added in v0.60.0
type InsertLibraryChunkBatchParams ¶ added in v0.63.0
type InsertLibraryChunkBatchParams struct {
ChunkSetID string `json:"chunk_set_id"`
Ids []string `json:"ids"`
Ordinals []int64 `json:"ordinals"`
Contents []string `json:"contents"`
Locators []string `json:"locators"`
ContentSha256s [][]byte `json:"content_sha256s"`
LocatorSha256s [][]byte `json:"locator_sha256s"`
}
type InsertMemoryChangelogParams ¶
type InsertMemoryChangelogParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
SessionID pgtype.Text `json:"session_id"`
EntityID pgtype.Text `json:"entity_id"`
Scope string `json:"scope"`
Action string `json:"action"`
Source string `json:"source"`
MemoryVersionBefore pgtype.Int8 `json:"memory_version_before"`
MemoryVersionAfter pgtype.Int8 `json:"memory_version_after"`
BeforeText pgtype.Text `json:"before_text"`
AfterText pgtype.Text `json:"after_text"`
Metadata pgtype.Text `json:"metadata"`
}
type InsertSkillChangelogParams ¶ added in v0.60.0
type InsertSkillChangelogParams struct {
SkillID string `json:"skill_id"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Scope string `json:"scope"`
Action string `json:"action"`
VersionBefore pgtype.Int8 `json:"version_before"`
VersionAfter int64 `json:"version_after"`
ContentDigest pgtype.Text `json:"content_digest"`
Metadata json.RawMessage `json:"metadata"`
}
type InsertToolOverrideIfAbsentParams ¶ added in v0.66.0
type KnowledgeUsage ¶ added in v0.60.0
type LastHumanSeqAtOrBeforeParams ¶ added in v0.65.0
type LibraryChunk ¶ added in v0.63.0
type LibraryChunk struct {
ID string `json:"id"`
ChunkSetID string `json:"chunk_set_id"`
Ordinal int64 `json:"ordinal"`
Content string `json:"content"`
Locator json.RawMessage `json:"locator"`
ContentSha256 []byte `json:"content_sha256"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LocatorSha256 []byte `json:"locator_sha256"`
}
type LibraryChunkSet ¶ added in v0.63.0
type LibraryChunkSet struct {
ID string `json:"id"`
FileID string `json:"file_id"`
DerivationKey string `json:"derivation_key"`
ProcessorKey string `json:"processor_key"`
RawSha256 []byte `json:"raw_sha256"`
Status string `json:"status"`
ChunkCount pgtype.Int8 `json:"chunk_count"`
ContentDigest []byte `json:"content_digest"`
ErrorMessage pgtype.Text `json:"error_message"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type LibraryFile ¶ added in v0.63.0
type LibraryFile struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
FileName string `json:"file_name"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
RawSha256 []byte `json:"raw_sha256"`
Status string `json:"status"`
ErrorMessage pgtype.Text `json:"error_message"`
ActiveChunkSetID pgtype.Text `json:"active_chunk_set_id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ListActiveFactsBySubjectParams ¶ added in v0.60.0
type ListActiveKnowledgeContentsParams ¶ added in v0.60.0
type ListActiveKnowledgeParams ¶ added in v0.60.0
type ListAgentConversationLastActiveRow ¶ added in v0.46.0
type ListAgentLLMCallUsageBySessionIDRow ¶ added in v0.65.0
type ListAgentLLMCallUsageBySessionIDRow struct {
Provider string `json:"provider"`
Model string `json:"model"`
CallCount int64 `json:"call_count"`
ReportedCallCount int64 `json:"reported_call_count"`
PricedCallCount int64 `json:"priced_call_count"`
InputTokens int64 `json:"input_tokens"`
OutputTokens int64 `json:"output_tokens"`
ReasoningTokens int64 `json:"reasoning_tokens"`
CacheReadTokens int64 `json:"cache_read_tokens"`
CacheWriteTokens int64 `json:"cache_write_tokens"`
CostUsd pgtype.Numeric `json:"cost_usd"`
}
type ListAgentProviderCredentialRow ¶ added in v0.61.0
type ListArticlesMissingContentRow ¶ added in v0.60.0
type ListArticlesNeedingEmbeddingParams ¶ added in v0.50.3
type ListArticlesNeedingEmbeddingRow ¶ added in v0.50.3
type ListArticlesParams ¶
type ListAttemptByGoalParams ¶ added in v0.49.4
type ListAttemptSummaryByGoalParams ¶ added in v0.63.0
type ListAttemptSummaryByGoalRow ¶ added in v0.63.0
type ListAttemptSummaryByGoalRow struct {
ID string `json:"id"`
Purpose string `json:"purpose"`
AttemptNo int64 `json:"attempt_no"`
Status string `json:"status"`
SessionID string `json:"session_id"`
Error string `json:"error"`
FailureClass string `json:"failure_class"`
StartedAt pgtype.Timestamptz `json:"started_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type ListContextItemsPageParams ¶ added in v0.46.0
type ListContextItemsPageRow ¶ added in v0.46.0
type ListContextItemsPageRow struct {
Ordinal int64 `json:"ordinal"`
ItemType string `json:"item_type"`
EventType string `json:"event_type"`
Role string `json:"role"`
MessageID pgtype.Text `json:"message_id"`
MessageSeq pgtype.Int8 `json:"message_seq"`
MessageRole pgtype.Text `json:"message_role"`
MessageEventType pgtype.Text `json:"message_event_type"`
MessageContent pgtype.Text `json:"message_content"`
MessageTokenCount pgtype.Int8 `json:"message_token_count"`
MessageCreatedAt pgtype.Timestamptz `json:"message_created_at"`
MessageActorType pgtype.Text `json:"message_actor_type"`
MessageActorID pgtype.Text `json:"message_actor_id"`
MessageSourceSessionID pgtype.Text `json:"message_source_session_id"`
SummaryID pgtype.Text `json:"summary_id"`
SummaryKind pgtype.Text `json:"summary_kind"`
SummaryDepth pgtype.Int8 `json:"summary_depth"`
SummaryContent pgtype.Text `json:"summary_content"`
SummaryTokenCount pgtype.Int8 `json:"summary_token_count"`
SummaryEarliestAt pgtype.Timestamptz `json:"summary_earliest_at"`
SummaryLatestAt pgtype.Timestamptz `json:"summary_latest_at"`
SummaryDescendantCount pgtype.Int8 `json:"summary_descendant_count"`
SummaryDescendantTokenCount pgtype.Int8 `json:"summary_descendant_token_count"`
SummarySourceMessageTokenCount pgtype.Int8 `json:"summary_source_message_token_count"`
SummaryContainsNonPrincipalInput pgtype.Bool `json:"summary_contains_non_principal_input"`
SummaryCreatedAt pgtype.Timestamptz `json:"summary_created_at"`
}
type ListConversationSummarySourceBySessionIDsRow ¶ added in v0.63.3
type ListConversationsAllParams ¶ added in v0.35.3
type ListConversationsByKindParams ¶ added in v0.34.0
type ListConversationsFilteredParams ¶ added in v0.46.0
type ListConversationsFilteredParams struct {
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
GuestID pgtype.Text `json:"guest_id"`
IncludeArchived interface{} `json:"include_archived"`
ExcludeInternal bool `json:"exclude_internal"`
Kind pgtype.Text `json:"kind"`
Channel pgtype.Text `json:"channel"`
ProjectIDIsNull interface{} `json:"project_id_is_null"`
ProjectID pgtype.Text `json:"project_id"`
Offset int32 `json:"offset"`
Limit interface{} `json:"limit"`
}
type ListConversationsForAdminFilteredParams ¶ added in v0.63.0
type ListConversationsForAdminFilteredParams struct {
AgentID pgtype.Text `json:"agent_id"`
UserID pgtype.Text `json:"user_id"`
IncludeArchived interface{} `json:"include_archived"`
ExcludeInternal bool `json:"exclude_internal"`
Kind pgtype.Text `json:"kind"`
ProjectIDIsNull interface{} `json:"project_id_is_null"`
ProjectID pgtype.Text `json:"project_id"`
Offset int32 `json:"offset"`
Limit interface{} `json:"limit"`
}
type ListConversationsForReviewFilteredParams ¶ added in v0.46.0
type ListConversationsForReviewFilteredParams struct {
AgentID pgtype.Text `json:"agent_id"`
IncludeArchived interface{} `json:"include_archived"`
Kind pgtype.Text `json:"kind"`
ProjectIDIsNull interface{} `json:"project_id_is_null"`
ProjectID pgtype.Text `json:"project_id"`
Offset int32 `json:"offset"`
Limit interface{} `json:"limit"`
}
type ListConversationsForReviewFilteredRow ¶ added in v0.60.0
type ListConversationsForReviewFilteredRow struct {
CtxConversation CtxConversation `json:"ctx_conversation"`
LatestSeq int64 `json:"latest_seq"`
}
type ListConversationsParams ¶ added in v0.35.3
type ListDeliveredGroupMessagesBeforeSeqParams ¶ added in v0.65.0
type ListDeliveredGroupMessagesBeforeSeqRow ¶ added in v0.65.0
type ListDeliveredGroupMessagesBeforeSeqRow struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
ActorDisplayName pgtype.Text `json:"actor_display_name"`
Content string `json:"content"`
DeliveryState string `json:"delivery_state"`
}
type ListDeliveredGroupRecallAfterSeqParams ¶ added in v0.65.0
type ListDeliveredGroupRecallAfterSeqRow ¶ added in v0.65.0
type ListDeliveredGroupRecallBeforeSeqParams ¶ added in v0.65.0
type ListDeliveredGroupRecallBeforeSeqRow ¶ added in v0.65.0
type ListDigestArticlesParams ¶ added in v0.30.0
type ListDigestsParams ¶ added in v0.30.0
type ListEdgeWithUpstreamStateRow ¶ added in v0.49.4
type ListEdgeWithUpstreamStateRow struct {
GoalID string `json:"goal_id"`
UpstreamID string `json:"upstream_id"`
EdgeKind string `json:"edge_kind"`
OnFailure string `json:"on_failure"`
WaivedAt pgtype.Timestamptz `json:"waived_at"`
WaivedByUser pgtype.Text `json:"waived_by_user"`
WaiverReason string `json:"waiver_reason"`
CreatedAt time.Time `json:"created_at"`
UpstreamLifecycle string `json:"upstream_lifecycle"`
UpstreamDoneReason string `json:"upstream_done_reason"`
UpstreamOutput pgtype.Text `json:"upstream_output"`
}
type ListExistingUserMessageContentParams ¶ added in v0.47.0
type ListExpiredRunningGroupDispatchParams ¶ added in v0.43.0
type ListExpiredRunningGroupDispatchParams struct {
Now pgtype.Timestamptz `json:"now"`
LimitCount int32 `json:"limit_count"`
}
type ListExpiredRunningGroupOutboxParams ¶ added in v0.43.0
type ListExpiredRunningGroupOutboxParams struct {
Now pgtype.Timestamptz `json:"now"`
LimitCount int32 `json:"limit_count"`
}
type ListFactChangelogBySubjectPageParams ¶ added in v0.60.0
type ListFactChangelogBySubjectPageRow ¶ added in v0.60.0
type ListFactChangelogBySubjectPageRow struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
SessionID pgtype.Text `json:"session_id"`
EntityID pgtype.Text `json:"entity_id"`
Scope string `json:"scope"`
Action string `json:"action"`
Source string `json:"source"`
MemoryVersionBefore pgtype.Int8 `json:"memory_version_before"`
MemoryVersionAfter pgtype.Int8 `json:"memory_version_after"`
BeforeText pgtype.Text `json:"before_text"`
AfterText pgtype.Text `json:"after_text"`
Metadata pgtype.Text `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
}
type ListFactChangelogBySubjectParams ¶ added in v0.60.0
type ListFactChangelogUpToVersionParams ¶ added in v0.60.0
type ListFailedInboxSchedulerRunsParams ¶ added in v0.46.0
type ListFailedInboxSchedulerRunsRow ¶ added in v0.46.0
type ListFeedEntriesParams ¶ added in v0.43.0
type ListFeedsParams ¶ added in v0.43.0
type ListGoalEventByGoalParams ¶ added in v0.60.0
type ListGoalForHealthScopeParams ¶ added in v0.60.0
type ListGoalsByWorkflowParams ¶ added in v0.60.0
type ListGroupMessagesAfterSeqParams ¶ added in v0.42.0
type ListGroupMessagesAfterSeqRow ¶ added in v0.60.3
type ListGroupMessagesAfterSeqRow struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
SourceChannelID pgtype.Text `json:"source_channel_id"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
PlatformMessageID pgtype.Text `json:"platform_message_id"`
ReplyTo pgtype.Text `json:"reply_to"`
PlatformTimestamp pgtype.Timestamptz `json:"platform_timestamp"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
Content string `json:"content"`
Reasoning string `json:"reasoning"`
AgentSessionID string `json:"agent_session_id"`
CreatedAt time.Time `json:"created_at"`
DeliveryState string `json:"delivery_state"`
}
type ListGroupMessagesPaginatedParams ¶ added in v0.43.0
type ListGroupMessagesPaginatedRow ¶ added in v0.60.3
type ListGroupMessagesPaginatedRow struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
SourceChannelID pgtype.Text `json:"source_channel_id"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
PlatformMessageID pgtype.Text `json:"platform_message_id"`
ReplyTo pgtype.Text `json:"reply_to"`
PlatformTimestamp pgtype.Timestamptz `json:"platform_timestamp"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
Content string `json:"content"`
Reasoning string `json:"reasoning"`
AgentSessionID string `json:"agent_session_id"`
CreatedAt time.Time `json:"created_at"`
DeliveryState string `json:"delivery_state"`
}
type ListGroupNudgeCandidateParams ¶ added in v0.65.0
type ListGroupNudgeCandidateRow ¶ added in v0.65.0
type ListGroupNudgeCandidateRow struct {
ID string `json:"id"`
Platform string `json:"platform"`
PlatformGroupID string `json:"platform_group_id"`
PlatformThreadID string `json:"platform_thread_id"`
NextSeq int64 `json:"next_seq"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
GroupName string `json:"group_name"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
AgentChainHardLimit int32 `json:"agent_chain_hard_limit"`
MaxAgentPostsPerMinute int32 `json:"max_agent_posts_per_minute"`
MaxRepliesPerHumanTrigger int32 `json:"max_replies_per_human_trigger"`
HoldLimit int32 `json:"hold_limit"`
NudgeAt pgtype.Timestamptz `json:"nudge_at"`
NudgeCheckedAt pgtype.Timestamptz `json:"nudge_checked_at"`
NudgeStreakCount int32 `json:"nudge_streak_count"`
LastMessageID string `json:"last_message_id"`
LastActorType string `json:"last_actor_type"`
LastActorID string `json:"last_actor_id"`
LastContent string `json:"last_content"`
LastMessageAt time.Time `json:"last_message_at"`
}
type ListGroupsByUserParams ¶ added in v0.43.0
type ListGroupsByUserRow ¶ added in v0.46.0
type ListGroupsByUserRow struct {
ID string `json:"id"`
Platform string `json:"platform"`
PlatformGroupID string `json:"platform_group_id"`
PlatformThreadID string `json:"platform_thread_id"`
NextSeq int64 `json:"next_seq"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
GroupName string `json:"group_name"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
AgentChainHardLimit int32 `json:"agent_chain_hard_limit"`
MaxAgentPostsPerMinute int32 `json:"max_agent_posts_per_minute"`
MaxRepliesPerHumanTrigger int32 `json:"max_replies_per_human_trigger"`
HoldLimit int32 `json:"hold_limit"`
NudgeAt pgtype.Timestamptz `json:"nudge_at"`
NudgeCheckedAt pgtype.Timestamptz `json:"nudge_checked_at"`
NudgeStreakCount int32 `json:"nudge_streak_count"`
LastActive time.Time `json:"last_active"`
}
type ListGroupsWithPendingIngestRow ¶ added in v0.42.0
type ListInboxGoalsParams ¶ added in v0.49.4
type ListInboxGoalsRow ¶ added in v0.49.4
type ListInboxGoalsRow struct {
ID string `json:"id"`
AgentID string `json:"agent_id"`
ProjectID pgtype.Text `json:"project_id"`
Title string `json:"title"`
Intent string `json:"intent"`
Lifecycle string `json:"lifecycle"`
BlockReason string `json:"block_reason"`
UpdatedAt time.Time `json:"updated_at"`
CreatedAt time.Time `json:"created_at"`
}
type ListLatestGroupMessagesAfterSeqParams ¶ added in v0.65.0
type ListLatestGroupMessagesAfterSeqRow ¶ added in v0.65.0
type ListLatestGroupMessagesAfterSeqRow struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
SourceChannelID pgtype.Text `json:"source_channel_id"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
PlatformMessageID pgtype.Text `json:"platform_message_id"`
ReplyTo pgtype.Text `json:"reply_to"`
PlatformTimestamp pgtype.Timestamptz `json:"platform_timestamp"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
Content string `json:"content"`
Reasoning string `json:"reasoning"`
AgentSessionID string `json:"agent_session_id"`
CreatedAt time.Time `json:"created_at"`
DeliveryState string `json:"delivery_state"`
}
type ListLibraryTombstoneRow ¶ added in v0.63.0
type ListLibraryTombstoneRow struct {
ID string `json:"id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
}
type ListMCPServersByScopeParams ¶ added in v0.60.0
type ListMCPServersForAgentContextParams ¶ added in v0.60.0
type ListManagedLibraryFilesParams ¶ added in v0.64.0
type ListManagedLibraryFilesParams struct {
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Query string `json:"query"`
CursorCreatedAt pgtype.Timestamptz `json:"cursor_created_at"`
CursorID pgtype.Text `json:"cursor_id"`
Limit int32 `json:"limit"`
}
type ListMediaByIDsForOwnerParams ¶ added in v0.66.0
type ListMemoryChangelogPageParams ¶ added in v0.60.0
type ListMessagePartsWithMediaByMessagesRow ¶ added in v0.61.0
type ListMessagePartsWithMediaByMessagesRow struct {
CtxMessagePart CtxMessagePart `json:"ctx_message_part"`
CtxMedium CtxMedium `json:"ctx_medium"`
}
type ListMessagesByIDsParams ¶ added in v0.41.0
type ListMessagesByLogicalPageParams ¶ added in v0.41.0
type ListMessagesByLogicalPageParams struct {
ConversationID string `json:"conversation_id"`
After pgtype.Timestamptz `json:"after"`
Before pgtype.Timestamptz `json:"before"`
Offset int32 `json:"offset"`
Limit int32 `json:"limit"`
}
type ListMessagesByLogicalPageRow ¶ added in v0.41.0
type ListMessagesByLogicalPageRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
CreatedAt time.Time `json:"created_at"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
}
type ListMessagesNeedingEmbeddingParams ¶ added in v0.50.3
type ListMessagesNeedingEmbeddingRow ¶ added in v0.50.3
type ListOAuthAuthorizedAppsRow ¶ added in v0.60.0
type ListPendingEntriesParams ¶ added in v0.43.0
type ListPendingGroupNudgesParams ¶ added in v0.65.0
type ListPendingGroupNudgesParams struct {
Now pgtype.Timestamptz `json:"now"`
LimitCount int32 `json:"limit_count"`
}
type ListPendingGroupOutboxParams ¶ added in v0.43.0
type ListPendingGroupOutboxParams struct {
Now pgtype.Timestamptz `json:"now"`
LimitCount int32 `json:"limit_count"`
}
type ListPendingGroupWakePairsParams ¶ added in v0.65.0
type ListPendingGroupWakePairsParams struct {
Now pgtype.Timestamptz `json:"now"`
LimitCount int32 `json:"limit_count"`
}
type ListPendingSessionInboxParams ¶ added in v0.63.3
type ListProjectsAllParams ¶ added in v0.34.0
type ListProjectsParams ¶ added in v0.34.0
type ListProvisionedUserAfterParams ¶ added in v0.63.0
type ListProvisionedUserAfterParams struct {
CursorCreatedAt pgtype.Timestamptz `json:"cursor_created_at"`
CursorID pgtype.Text `json:"cursor_id"`
PageLimit int32 `json:"page_limit"`
}
type ListProvisionedUserAfterRow ¶ added in v0.63.0
type ListProvisionedUserAfterRow struct {
ID string `json:"id"`
ExternalID string `json:"external_id"`
UserID string `json:"user_id"`
CreatedByUserID pgtype.Text `json:"created_by_user_id"`
CreatedByTokenID pgtype.Text `json:"created_by_token_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Email string `json:"email"`
Name string `json:"name"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
TokenID string `json:"token_id"`
TokenName string `json:"token_name"`
TokenLast4 string `json:"token_last4"`
TokenExpiresAt pgtype.Timestamptz `json:"token_expires_at"`
TokenLastUsedAt pgtype.Timestamptz `json:"token_last_used_at"`
TokenCreatedAt time.Time `json:"token_created_at"`
}
type ListRecallMessageByIDsRow ¶ added in v0.63.3
type ListRecallSummaryByIDsRow ¶ added in v0.63.3
type ListRecentGoalEventContextParams ¶ added in v0.60.0
type ListRecentGroupMessagesBeforeSeqParams ¶ added in v0.43.0
type ListRecentGroupMessagesBeforeSeqRow ¶ added in v0.60.3
type ListRecentGroupMessagesBeforeSeqRow struct {
ID string `json:"id"`
GroupID string `json:"group_id"`
Seq int64 `json:"seq"`
SourceChannelID pgtype.Text `json:"source_channel_id"`
ActorType string `json:"actor_type"`
ActorID string `json:"actor_id"`
PlatformMessageID pgtype.Text `json:"platform_message_id"`
ReplyTo pgtype.Text `json:"reply_to"`
PlatformTimestamp pgtype.Timestamptz `json:"platform_timestamp"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
Content string `json:"content"`
Reasoning string `json:"reasoning"`
AgentSessionID string `json:"agent_session_id"`
CreatedAt time.Time `json:"created_at"`
DeliveryState string `json:"delivery_state"`
}
type ListReflectUsagePairsRow ¶ added in v0.60.0
type ListRemovedKnowledgeParams ¶ added in v0.60.0
type ListRemovedKnowledgeRow ¶ added in v0.60.0
type ListRemovedKnowledgeRow struct {
ID string `json:"id"`
Subject string `json:"subject"`
Scope string `json:"scope"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
Content string `json:"content"`
Status string `json:"status"`
Metadata json.RawMessage `json:"metadata"`
Supersedes pgtype.Text `json:"supersedes"`
Version int64 `json:"version"`
Source string `json:"source"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeprecatedAt time.Time `json:"deprecated_at"`
DeprecateMetadata pgtype.Text `json:"deprecate_metadata"`
}
type ListRootGoalParams ¶ added in v0.49.4
type ListRootGoalParams struct {
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
ProjectID pgtype.Text `json:"project_id"`
WorkflowID pgtype.Text `json:"workflow_id"`
Lifecycle pgtype.Text `json:"lifecycle"`
Terminal pgtype.Bool `json:"terminal"`
Q pgtype.Text `json:"q"`
IncludeArchived bool `json:"include_archived"`
Offset int32 `json:"offset"`
Limit int32 `json:"limit"`
}
type ListSchedJobRunsParams ¶
type ListSchedulerJobByOwnerParams ¶ added in v0.60.0
type ListSchedulerJobsByAgentParams ¶ added in v0.36.0
type ListSessionTranscriptPageParams ¶ added in v0.63.3
type ListSessionTranscriptPageRow ¶ added in v0.63.3
type ListSessionTranscriptPageRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
CreatedAt time.Time `json:"created_at"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
}
type ListSharesByUserParams ¶ added in v0.38.0
type ListSharesByUserParams struct {
}
type ListSharesByUserRow ¶ added in v0.35.0
type ListSharesByUserRow struct {
}
type ListSkillChangelogBySkillParams ¶ added in v0.60.0
type ListSkillIdentityVisibleParams ¶ added in v0.64.0
type ListSkillsByScopeParams ¶ added in v0.48.0
type ListStaleAttemptsParams ¶ added in v0.49.4
type ListStaleAttemptsParams struct {
Now pgtype.Timestamptz `json:"now"`
Limit int32 `json:"limit"`
}
type ListStaleLibraryDerivationParams ¶ added in v0.63.0
type ListStaleLibraryDerivationRow ¶ added in v0.63.0
type ListStaleLibraryDerivationRow struct {
ID string `json:"id"`
Status string `json:"status"`
MediaType string `json:"media_type"`
RawSha256 []byte `json:"raw_sha256"`
UpdatedAt time.Time `json:"updated_at"`
ChunkSetID pgtype.Text `json:"chunk_set_id"`
ChunkSetDerivationKey pgtype.Text `json:"chunk_set_derivation_key"`
ChunkSetProcessorKey pgtype.Text `json:"chunk_set_processor_key"`
ActiveChunkSetDerivationKey pgtype.Text `json:"active_chunk_set_derivation_key"`
ActiveChunkSetProcessorKey pgtype.Text `json:"active_chunk_set_processor_key"`
DesiredChunkSetDerivationKey pgtype.Text `json:"desired_chunk_set_derivation_key"`
DesiredChunkSetProcessorKey pgtype.Text `json:"desired_chunk_set_processor_key"`
DesiredChunkSetStatus pgtype.Text `json:"desired_chunk_set_status"`
}
type ListStaleReflectKnowledgeForCuratorParams ¶ added in v0.60.0
type ListStaleReflectKnowledgeForCuratorRow ¶ added in v0.60.0
type ListStaleReflectSkillsForCuratorParams ¶ added in v0.60.0
type ListStaleReflectSkillsForCuratorRow ¶ added in v0.60.0
type ListStaleReflectSkillsForCuratorRow struct {
SkillID string `json:"skill_id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
ContentDigest pgtype.Text `json:"content_digest"`
UseCount int64 `json:"use_count"`
LastUsedAt time.Time `json:"last_used_at"`
PairLatestActivityAt time.Time `json:"pair_latest_activity_at"`
Rule string `json:"rule"`
}
type ListSummariesByIDsParams ¶ added in v0.41.0
type ListSummariesNeedingEmbeddingParams ¶ added in v0.50.3
type ListSummariesNeedingEmbeddingRow ¶ added in v0.50.3
type ListToolOverridesForAgentContextParams ¶ added in v0.60.0
type ListUnrepliedGroupToolCallContentsParams ¶ added in v0.65.0
type ListUnrepliedGroupToolCallContentsRow ¶ added in v0.65.0
type ListVaultEntriesByScopeParams ¶ added in v0.48.0
type ListVaultEntriesForRuntimeParams ¶ added in v0.48.0
type ListWebhookForUserParams ¶ added in v0.61.0
type ListWorkflowRunsParams ¶ added in v0.60.0
type ListWorkflowRunsRow ¶ added in v0.60.0
type ListWorkflowRunsRow struct {
ID string `json:"id"`
WorkflowID string `json:"workflow_id"`
WorkflowVersion int32 `json:"workflow_version"`
IdempotencyKey string `json:"idempotency_key"`
RootGoalID pgtype.Text `json:"root_goal_id"`
Status string `json:"status"`
Inputs json.RawMessage `json:"inputs"`
PlanHash string `json:"plan_hash"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
RootLifecycle pgtype.Text `json:"root_lifecycle"`
RootBlockReason pgtype.Text `json:"root_block_reason"`
RootDoneReason pgtype.Text `json:"root_done_reason"`
}
type ListWorkflowVersionsParams ¶ added in v0.60.0
type ListWorkflowsParams ¶ added in v0.60.0
type LockLibraryFileLifecycleRow ¶ added in v0.63.0
type LockLibraryFileLifecycleRow struct {
ID string `json:"id"`
MediaType string `json:"media_type"`
SizeBytes int64 `json:"size_bytes"`
RawSha256 []byte `json:"raw_sha256"`
Status string `json:"status"`
ErrorMessage pgtype.Text `json:"error_message"`
ActiveChunkSetID pgtype.Text `json:"active_chunk_set_id"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type MarkConversationTurnCompletedParams ¶ added in v0.63.0
type MarkConversationTurnStartedParams ¶ added in v0.63.0
type MarkConversationViewedParams ¶ added in v0.63.0
type MarkExpiredGroupDispatchFailedParams ¶ added in v0.65.0
type MarkExpiredGroupDispatchFailedParams struct {
LastError string `json:"last_error"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
Now pgtype.Timestamptz `json:"now"`
}
type MarkExpiredGroupOutboxFailedParams ¶ added in v0.65.0
type MarkExpiredGroupOutboxFailedParams struct {
LastError string `json:"last_error"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
Now pgtype.Timestamptz `json:"now"`
}
type MarkGroupDispatchCompletedParams ¶ added in v0.43.0
type MarkGroupDispatchFailedParams ¶ added in v0.43.0
type MarkGroupDispatchHeldParams ¶ added in v0.65.0
type MarkGroupDispatchPublishStartedParams ¶ added in v0.65.0
type MarkGroupDispatchPublishedParams ¶ added in v0.65.0
type MarkGroupDispatchSilentParams ¶ added in v0.65.0
type MarkGroupNudgeCheckedParams ¶ added in v0.65.0
type MarkGroupNudgeCheckedParams struct {
Now pgtype.Timestamptz `json:"now"`
GroupID string `json:"group_id"`
}
type MarkGroupOutboxCompletedParams ¶ added in v0.43.0
type MarkGroupOutboxFailedParams ¶ added in v0.43.0
type MarkLibraryChunkSetFailedParams ¶ added in v0.63.0
type MarkLibraryChunkSetReadyParams ¶ added in v0.63.0
type MarkLibraryFileFailedWithoutActiveSetParams ¶ added in v0.63.0
type MaxHeldUpToSeqInChainParams ¶ added in v0.65.0
type MaxPeerMessageSeqAfterSeqParams ¶ added in v0.65.0
type McpOauthFlow ¶ added in v0.68.0
type McpOauthFlow struct {
ID string `json:"id"`
ServerID string `json:"server_id"`
UserID string `json:"user_id"`
CredentialScope string `json:"credential_scope"`
CredentialUserID pgtype.Text `json:"credential_user_id"`
CredentialAgentID pgtype.Text `json:"credential_agent_id"`
PkceVerifier string `json:"pkce_verifier"`
OauthConfig json.RawMessage `json:"oauth_config"`
ExpiresAt time.Time `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedAt time.Time `json:"created_at"`
}
type McpServer ¶ added in v0.60.0
type McpServer struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Url string `json:"url"`
Transport string `json:"transport"`
AuthType string `json:"auth_type"`
CredentialRef string `json:"credential_ref"`
Enabled bool `json:"enabled"`
Metadata json.RawMessage `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Status string `json:"status"`
StatusError string `json:"status_error"`
ProbedAt pgtype.Timestamptz `json:"probed_at"`
Tools json.RawMessage `json:"tools"`
CredentialMode string `json:"credential_mode"`
}
type ModelCatalog ¶ added in v0.66.0
type OauthAccessToken ¶ added in v0.60.0
type OauthAccessToken struct {
ID string `json:"id"`
PublicID string `json:"public_id"`
TokenHash string `json:"token_hash"`
Last4 string `json:"last4"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
Scopes []string `json:"scopes"`
RefreshFamilyID string `json:"refresh_family_id"`
ExpiresAt time.Time `json:"expires_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
CreatedAt time.Time `json:"created_at"`
}
type OauthAuthorizationCode ¶ added in v0.60.0
type OauthAuthorizationCode struct {
ID string `json:"id"`
CodeHash string `json:"code_hash"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
RedirectUri string `json:"redirect_uri"`
Scopes []string `json:"scopes"`
CodeChallenge string `json:"code_challenge"`
CodeChallengeMethod string `json:"code_challenge_method"`
ExpiresAt time.Time `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
CreatedAt time.Time `json:"created_at"`
}
type OauthClient ¶ added in v0.60.0
type OauthClient struct {
ID string `json:"id"`
ClientID string `json:"client_id"`
Name string `json:"name"`
ClientSecretHash string `json:"client_secret_hash"`
ClientType string `json:"client_type"`
RedirectUris []string `json:"redirect_uris"`
GrantTypes []string `json:"grant_types"`
Scopes []string `json:"scopes"`
OwnerUserID string `json:"owner_user_id"`
DisabledAt pgtype.Timestamptz `json:"disabled_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type OauthRefreshFamily ¶ added in v0.60.0
type OauthRefreshToken ¶ added in v0.60.0
type OauthRefreshToken struct {
ID string `json:"id"`
PublicID string `json:"public_id"`
TokenHash string `json:"token_hash"`
ClientID string `json:"client_id"`
UserID string `json:"user_id"`
Scopes []string `json:"scopes"`
FamilyID string `json:"family_id"`
ReplacedByID pgtype.Text `json:"replaced_by_id"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
ExpiresAt time.Time `json:"expires_at"`
CreatedAt time.Time `json:"created_at"`
}
type PersonalAccessToken ¶ added in v0.60.0
type PersonalAccessToken struct {
ID string `json:"id"`
PublicID string `json:"public_id"`
UserID string `json:"user_id"`
Name string `json:"name"`
TokenHash string `json:"token_hash"`
Last4 string `json:"last4"`
Scopes []string `json:"scopes"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
TokenUse string `json:"token_use"`
IssuedByTokenID pgtype.Text `json:"issued_by_token_id"`
IssuedByProvisioning bool `json:"issued_by_provisioning"`
}
type PluginOauthProvider ¶ added in v0.38.0
type PluginOauthProvider struct {
ID string `json:"id"`
ProviderID string `json:"provider_id"`
ClientID string `json:"client_id"`
ClientSecretEnc string `json:"client_secret_enc"`
RedirectUrl string `json:"redirect_url"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Scopes []string `json:"scopes"`
}
type PluginOverride ¶ added in v0.38.0
type PluginState ¶ added in v0.38.0
type Project ¶ added in v0.34.0
type Project struct {
ID string `json:"id"`
AgentID string `json:"agent_id"`
UserID string `json:"user_id"`
Name string `json:"name"`
BaseDir string `json:"base_dir"`
Description pgtype.Text `json:"description"`
Archived bool `json:"archived"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type PromoteAttemptParams ¶ added in v0.49.4
type PromoteAttemptParams struct {
LeaseExpiresAt pgtype.Timestamptz `json:"lease_expires_at"`
ID string `json:"id"`
}
type ProviderModelsCache ¶ added in v0.60.0
type PublishLibraryFileChunkSetParams ¶ added in v0.63.0
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AcceptGoal ¶ added in v0.49.4
func (*Queries) AddDigestArticle ¶ added in v0.30.0
func (q *Queries) AddDigestArticle(ctx context.Context, arg AddDigestArticleParams) error
func (*Queries) AddGroupMember ¶ added in v0.42.0
func (q *Queries) AddGroupMember(ctx context.Context, arg AddGroupMemberParams) (ChannelGroupMember, error)
func (*Queries) AdoptGroupState ¶ added in v0.64.0
func (q *Queries) AdoptGroupState(ctx context.Context, arg AdoptGroupStateParams) (CtxGroupState, error)
Renames a group's physical (platform, group, thread) identity in place. Every table that references group_id keeps pointing at this row, so an in-place rename is a lossless identity migration, never a copy.
func (*Queries) AdvanceMemorySnapshot ¶
func (q *Queries) AdvanceMemorySnapshot(ctx context.Context, arg AdvanceMemorySnapshotParams) error
func (*Queries) AgentMentionedSinceCursor ¶ added in v0.65.0
func (q *Queries) AgentMentionedSinceCursor(ctx context.Context, arg AgentMentionedSinceCursorParams) (bool, error)
Was this agent addressed in any message it has not consumed yet? Coalescing is what makes this necessary: the newest wake can supersede the row created for the message that addressed the agent. The LCM cursor is the incorporation boundary: accepted, PASS, held, and post-turn silent outcomes have seen the mention, while a claim-time superseded row never ran. A held successor is admitted separately from its durable held row in triage.
func (*Queries) AgentPostedSinceSeq ¶ added in v0.65.0
func (q *Queries) AgentPostedSinceSeq(ctx context.Context, arg AgentPostedSinceSeqParams) (bool, error)
Has this agent already spoken after the given seq? A nudge names one agent and never gets superseded, so a wake that was already in flight can post the very reply the nudge asks for; without this the nudge posts a second one.
func (*Queries) AppendAcceptanceEvent ¶ added in v0.49.4
func (q *Queries) AppendAcceptanceEvent(ctx context.Context, arg AppendAcceptanceEventParams) (AgentGoalAcceptanceEvent, error)
Append-only ledger row: a deterministic check result or a judgment verdict. Never updated/deleted in normal operation. The natural key (goal, attempt, item, cache_key) is unique, so a re-submitted verdict or a re-run check on identical inputs is a no-op (DO NOTHING): appending is idempotent and returns pgx.ErrNoRows on the duplicate, which the caller swallows.
func (*Queries) AppendContextItem ¶
func (q *Queries) AppendContextItem(ctx context.Context, arg AppendContextItemParams) error
func (*Queries) AppendGoalEvent ¶ added in v0.60.0
func (q *Queries) AppendGoalEvent(ctx context.Context, arg AppendGoalEventParams) (AgentGoalEvent, error)
Append-only goal timeline row. GoalService is the only writer.
func (*Queries) ArchiveActiveConversationBySessionID ¶ added in v0.61.0
func (q *Queries) ArchiveActiveConversationBySessionID(ctx context.Context, arg ArchiveActiveConversationBySessionIDParams) (int64, error)
Compare-and-rotate half of a session rotation: the row is archived only while it is still active and still matches the caller's expected binding, so a rotation that lost a race reports zero rows instead of archiving the successor another rotation just created. The UPDATE also holds the row lock for the rest of the enclosing transaction, serializing concurrent rotations of one session.
func (*Queries) ArchiveConversationBySessionID ¶ added in v0.64.0
func (q *Queries) ArchiveConversationBySessionID(ctx context.Context, arg ArchiveConversationBySessionIDParams) (int64, error)
Archival is a one-way lifecycle transition. Keeping the active guard and the write in one statement prevents a stale metadata save from racing an archive.
func (*Queries) ArchiveGoal ¶ added in v0.49.4
func (*Queries) ArchiveProject ¶ added in v0.34.0
func (q *Queries) ArchiveProject(ctx context.Context, arg ArchiveProjectParams) error
func (*Queries) AssignUserAgent ¶
func (q *Queries) AssignUserAgent(ctx context.Context, arg AssignUserAgentParams) error
func (*Queries) AssignUserAgentAndTouchAgent ¶ added in v0.66.0
func (q *Queries) AssignUserAgentAndTouchAgent(ctx context.Context, arg AssignUserAgentAndTouchAgentParams) error
func (*Queries) BumpAgentMemoryVersion ¶ added in v0.60.0
func (q *Queries) BumpAgentMemoryVersion(ctx context.Context, arg BumpAgentMemoryVersionParams) (CtxAgentMemory, error)
func (*Queries) BumpGroupSeq ¶ added in v0.42.0
func (*Queries) BumpGroupSeqWithoutNudgeStreakReset ¶ added in v0.65.0
func (q *Queries) BumpGroupSeqWithoutNudgeStreakReset(ctx context.Context, id string) (int64, error)
A nudge is itself a canonical system message. It must not erase the cap that bounds consecutive nudges; human and agent appends use the regular bump above and reset the counter.
func (*Queries) CancelGoal ¶ added in v0.49.4
func (*Queries) ClaimGroupNudge ¶ added in v0.65.0
func (q *Queries) ClaimGroupNudge(ctx context.Context, arg ClaimGroupNudgeParams) (CtxGroupState, error)
func (*Queries) ClaimNewestGroupWake ¶ added in v0.65.0
func (q *Queries) ClaimNewestGroupWake(ctx context.Context, arg ClaimNewestGroupWakeParams) (CtxGroupDispatch, error)
Claim the current high-water wake and retire older pending snapshots in the same transaction. A live sibling owns the agent's group session already. The status guard is what makes the claim exclusive: a second claimer blocked on the row lock re-checks only this qual, and `id = <constant>` still holds against the tuple the winner just updated.
func (*Queries) ClaimPendingGroupNudge ¶ added in v0.65.0
func (q *Queries) ClaimPendingGroupNudge(ctx context.Context, arg ClaimPendingGroupNudgeParams) (CtxGroupDispatch, error)
The advisory lock serializes a nudge claim with ClaimNewestGroupWake for the same (group, agent). Row locks alone cannot protect two distinct pending rows from both observing no running sibling.
func (*Queries) ClaimPendingGroupOutbox ¶ added in v0.43.0
func (q *Queries) ClaimPendingGroupOutbox(ctx context.Context, arg ClaimPendingGroupOutboxParams) (CtxGroupOutbox, error)
func (*Queries) ClaimSessionInboxDelivery ¶ added in v0.63.3
func (q *Queries) ClaimSessionInboxDelivery(ctx context.Context, arg ClaimSessionInboxDeliveryParams) (CtxSessionInbox, error)
Claim and validate the immutable delivery facts in one CAS. The enclosing LCM transaction rolls this UPDATE back if any transcript write fails afterwards.
func (*Queries) ClaimWorkflowRun ¶ added in v0.60.0
func (q *Queries) ClaimWorkflowRun(ctx context.Context, arg ClaimWorkflowRunParams) (ClaimWorkflowRunRow, error)
ClaimWorkflowRun returns claimed=true for a new insert and false for an existing idempotency row. The no-op update keeps this a single round trip while preserving the existing row values for resume logic.
func (*Queries) ClearGoalActiveAttempt ¶ added in v0.49.4
func (*Queries) ClearGroupDispatchPublishStarted ¶ added in v0.65.0
func (*Queries) ClearUserAgentMemory ¶ added in v0.60.0
func (q *Queries) ClearUserAgentMemory(ctx context.Context, arg ClearUserAgentMemoryParams) error
Reset the durable memory columns without deleting the row, so the version clock stays monotonic for snapshot/changelog replay.
func (*Queries) CompleteSkillHomeMigration ¶ added in v0.64.0
func (q *Queries) CompleteSkillHomeMigration(ctx context.Context, arg CompleteSkillHomeMigrationParams) (CompleteSkillHomeMigrationRow, error)
func (*Queries) ConsumeMCPOAuthFlow ¶ added in v0.68.0
ConsumeMCPOAuthFlow flips consumed_at in the same statement that reads the row, so a replayed callback cannot ever complete the same flow twice.
func (*Queries) ConsumeOAuthAuthorizationCode ¶ added in v0.60.0
func (q *Queries) ConsumeOAuthAuthorizationCode(ctx context.Context, codeHash string) (OauthAuthorizationCode, error)
Single-use exchange: mark consumed only if not already consumed. A second exchange of the same code returns no row, which the caller treats as reuse.
func (*Queries) ConsumeOAuthRefreshToken ¶ added in v0.60.0
func (q *Queries) ConsumeOAuthRefreshToken(ctx context.Context, arg ConsumeOAuthRefreshTokenParams) (OauthRefreshToken, error)
Rotation: mark the presented token consumed and point it at its replacement, only if it is still active. No row returned means it was already consumed (reuse), and the caller must revoke the whole family. Family-level revocation is checked separately at read time via GetOAuthRefreshTokenByPublicID.
func (*Queries) CountActiveKnowledge ¶ added in v0.60.0
func (*Queries) CountAgentPostsInWindow ¶ added in v0.65.0
func (*Queries) CountAgentPostsSinceSeq ¶ added in v0.65.0
func (*Queries) CountArticlesByStatus ¶
func (*Queries) CountBillableAttempts ¶ added in v0.60.0
func (q *Queries) CountBillableAttempts(ctx context.Context, arg CountBillableAttemptsParams) (int64, error)
Budget spent for execution/decomposition convergence. In-flight attempts count so a concurrent claim cannot overspend. Finished attempts count unless their failure class is one old refund path: environment, contract, or flaky. Queued reaps finalize as interrupted/flaky and are therefore not billable.
func (*Queries) CountDigests ¶ added in v0.30.0
func (*Queries) CountEnabledSchedulerWorkflowJobs ¶ added in v0.60.0
func (*Queries) CountGroupDispatchByMessage ¶ added in v0.43.0
func (*Queries) CountGroupMembers ¶ added in v0.43.0
func (*Queries) CountHeldGroupDispatchesInChain ¶ added in v0.65.0
func (*Queries) CountInflightAttemptsByRoot ¶ added in v0.49.4
func (*Queries) CountInflightAttemptsByUser ¶ added in v0.49.4
func (*Queries) CountMCPServersByNameExcluding ¶ added in v0.68.0
func (q *Queries) CountMCPServersByNameExcluding(ctx context.Context, arg CountMCPServersByNameExcludingParams) (int64, error)
CountMCPServersByNameExcluding counts registrations sharing a name across every scope and owner, excluding one id. Overrides are keyed by tool name, so a rename or delete may only migrate override rows when no other registration still answers to that name.
func (*Queries) CountPeerMessagesAfterSeq ¶ added in v0.65.0
func (q *Queries) CountPeerMessagesAfterSeq(ctx context.Context, arg CountPeerMessagesAfterSeqParams) (int64, error)
Failed platform deliveries are canonical audit rows, but not peer activity: nobody could have seen them, so later freshness gates must ignore them. System rows are excluded for the same reason in reverse: the stalled-work nudge writes one, and counting it would let recovery invalidate the very turn it is waiting for.
func (*Queries) CountRanReviewAttemptsForOutput ¶ added in v0.60.0
func (q *Queries) CountRanReviewAttemptsForOutput(ctx context.Context, arg CountRanReviewAttemptsForOutputParams) (int64, error)
Review attempts spent on the CURRENT needs_verdict episode: those created after the reviewed execution attempt (a later execution attempt starts a fresh episode) that actually ran (started_at set). A queued attempt reaped before it was promoted never ran and does not charge the budget, mirroring the billable budget predicate below. This is the agent-review budget; attempt_no is still assigned globally per purpose via GetMaxAttemptNo.
func (*Queries) CountRemovedKnowledge ¶ added in v0.60.0
func (*Queries) CountRootGoal ¶ added in v0.49.4
CountRootGoal mirrors ListRootGoal's filter so a list's reported total is exact, and the active/history/archived header badges are three cheap counts that vary only their terminal/include_archived args.
func (*Queries) CountRunningSchedJobRuns ¶
func (*Queries) CountStarredArticles ¶
func (*Queries) CountWorkflowRuns ¶ added in v0.60.0
func (*Queries) CreateAgent ¶
func (*Queries) CreateAgentLLMCall ¶ added in v0.65.0
func (q *Queries) CreateAgentLLMCall(ctx context.Context, arg CreateAgentLLMCallParams) (AgentLlmCall, error)
func (*Queries) CreateAgentProviderCredential ¶ added in v0.61.0
func (q *Queries) CreateAgentProviderCredential(ctx context.Context, arg CreateAgentProviderCredentialParams) (AgentProviderCredential, error)
Plain insert (not upsert) so a duplicate (agent_id, provider_id) fails the enclosing transaction; the atomic Agent+credentials create relies on this.
func (*Queries) CreateArticle ¶
func (q *Queries) CreateArticle(ctx context.Context, arg CreateArticleParams) (RecallyArticle, error)
func (*Queries) CreateAttempt ¶ added in v0.49.4
func (q *Queries) CreateAttempt(ctx context.Context, arg CreateAttemptParams) (AgentGoalAttempt, error)
func (*Queries) CreateAuthUserToken ¶
func (q *Queries) CreateAuthUserToken(ctx context.Context, arg CreateAuthUserTokenParams) (AuthUserToken, error)
func (*Queries) CreateChannel ¶ added in v0.61.0
func (*Queries) CreateChannelGuest ¶ added in v0.63.0
func (q *Queries) CreateChannelGuest(ctx context.Context, arg CreateChannelGuestParams) (ChannelGuest, error)
func (*Queries) CreateChatCommandReceipt ¶ added in v0.61.0
func (q *Queries) CreateChatCommandReceipt(ctx context.Context, arg CreateChatCommandReceiptParams) (int64, error)
Claims the right to execute one inbound private-chat message's command. Zero rows means the claim was already taken, i.e. this message is a redelivery and the command must not run again.
func (*Queries) CreateConversation ¶
func (q *Queries) CreateConversation(ctx context.Context, arg CreateConversationParams) (CtxConversation, error)
func (*Queries) CreateDigest ¶ added in v0.30.0
func (q *Queries) CreateDigest(ctx context.Context, arg CreateDigestParams) (RecallyDigest, error)
func (*Queries) CreateEdge ¶ added in v0.49.4
func (q *Queries) CreateEdge(ctx context.Context, arg CreateEdgeParams) (AgentGoalEdge, error)
func (*Queries) CreateEmailSendDedup ¶ added in v0.60.0
func (q *Queries) CreateEmailSendDedup(ctx context.Context, arg CreateEmailSendDedupParams) (EmailSendDedup, error)
func (*Queries) CreateFeed ¶ added in v0.43.0
func (q *Queries) CreateFeed(ctx context.Context, arg CreateFeedParams) (RecallyFeed, error)
func (*Queries) CreateFeedEntry ¶ added in v0.43.0
func (q *Queries) CreateFeedEntry(ctx context.Context, arg CreateFeedEntryParams) (RecallyFeedEntry, error)
func (*Queries) CreateGoal ¶ added in v0.49.4
func (*Queries) CreateGoalIfAbsent ¶ added in v0.60.0
func (*Queries) CreateGroupMessage ¶ added in v0.42.0
func (q *Queries) CreateGroupMessage(ctx context.Context, arg CreateGroupMessageParams) (CtxGroupMessage, error)
func (*Queries) CreateGroupNudge ¶ added in v0.65.0
func (q *Queries) CreateGroupNudge(ctx context.Context, arg CreateGroupNudgeParams) error
func (*Queries) CreateGroupOutbox ¶ added in v0.43.0
func (q *Queries) CreateGroupOutbox(ctx context.Context, arg CreateGroupOutboxParams) (CtxGroupOutbox, error)
func (*Queries) CreateGroupOutboxIfAbsent ¶ added in v0.65.0
func (q *Queries) CreateGroupOutboxIfAbsent(ctx context.Context, arg CreateGroupOutboxIfAbsentParams) error
func (*Queries) CreateGroupState ¶ added in v0.42.0
func (q *Queries) CreateGroupState(ctx context.Context, arg CreateGroupStateParams) (CtxGroupState, error)
func (*Queries) CreateGroupWake ¶ added in v0.65.0
func (q *Queries) CreateGroupWake(ctx context.Context, arg CreateGroupWakeParams) error
func (*Queries) CreateLibraryChunkSet ¶ added in v0.63.0
func (*Queries) CreateLibraryFile ¶ added in v0.63.0
func (q *Queries) CreateLibraryFile(ctx context.Context, arg CreateLibraryFileParams) (LibraryFile, error)
func (*Queries) CreateMCPOAuthFlow ¶ added in v0.68.0
func (q *Queries) CreateMCPOAuthFlow(ctx context.Context, arg CreateMCPOAuthFlowParams) (McpOauthFlow, error)
func (*Queries) CreateMCPServer ¶ added in v0.60.0
func (*Queries) CreateMediaIfAbsent ¶ added in v0.61.0
func (q *Queries) CreateMediaIfAbsent(ctx context.Context, arg CreateMediaIfAbsentParams) (CtxMedium, error)
Exactly one of user_id / group_id carries the owner; the generated (owner_kind, owner_id) pair is what the unique index and every read match on. A conflict returns no rows. Callers must issue GetMediaByOwnerAndSHA256 in a separate statement, then verify immutable metadata before reusing the row.
func (*Queries) CreateMemorySnapshot ¶
func (q *Queries) CreateMemorySnapshot(ctx context.Context, arg CreateMemorySnapshotParams) (CtxAgentMemorySnapshot, error)
func (*Queries) CreateMessage ¶
func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (CtxMessage, error)
func (*Queries) CreateMessagePart ¶
func (q *Queries) CreateMessagePart(ctx context.Context, arg CreateMessagePartParams) (CtxMessagePart, error)
func (*Queries) CreateOAuthAccessToken ¶ added in v0.60.0
func (q *Queries) CreateOAuthAccessToken(ctx context.Context, arg CreateOAuthAccessTokenParams) (OauthAccessToken, error)
func (*Queries) CreateOAuthAuthorizationCode ¶ added in v0.60.0
func (q *Queries) CreateOAuthAuthorizationCode(ctx context.Context, arg CreateOAuthAuthorizationCodeParams) (OauthAuthorizationCode, error)
func (*Queries) CreateOAuthClient ¶ added in v0.60.0
func (q *Queries) CreateOAuthClient(ctx context.Context, arg CreateOAuthClientParams) (OauthClient, error)
func (*Queries) CreateOAuthRefreshFamily ¶ added in v0.60.0
func (q *Queries) CreateOAuthRefreshFamily(ctx context.Context, arg CreateOAuthRefreshFamilyParams) (OauthRefreshFamily, error)
Open a new revocation family for a grant. Every refresh token in the rotation chain and every access token minted under the grant reference this row.
func (*Queries) CreateOAuthRefreshToken ¶ added in v0.60.0
func (q *Queries) CreateOAuthRefreshToken(ctx context.Context, arg CreateOAuthRefreshTokenParams) (OauthRefreshToken, error)
func (*Queries) CreatePersonalAccessToken ¶ added in v0.60.0
func (q *Queries) CreatePersonalAccessToken(ctx context.Context, arg CreatePersonalAccessTokenParams) (PersonalAccessToken, error)
func (*Queries) CreateProject ¶ added in v0.34.0
func (*Queries) CreateProvider ¶
func (*Queries) CreateProvisionedAuthUser ¶ added in v0.63.0
func (*Queries) CreateProvisionedPersonalAccessToken ¶ added in v0.63.0
func (q *Queries) CreateProvisionedPersonalAccessToken(ctx context.Context, arg CreateProvisionedPersonalAccessTokenParams) (PersonalAccessToken, error)
func (*Queries) CreateProvisionedUser ¶ added in v0.63.0
func (q *Queries) CreateProvisionedUser(ctx context.Context, arg CreateProvisionedUserParams) (AuthProvisionedUser, error)
func (*Queries) CreateProvisionedUserChannelIdentity ¶ added in v0.64.1
func (q *Queries) CreateProvisionedUserChannelIdentity(ctx context.Context, arg CreateProvisionedUserChannelIdentityParams) (ChannelIdentity, error)
func (*Queries) CreateSchedJobRun ¶
func (q *Queries) CreateSchedJobRun(ctx context.Context, arg CreateSchedJobRunParams) (SchedJobRun, error)
func (*Queries) CreateSchedulerJob ¶
func (*Queries) CreateShare ¶ added in v0.35.0
func (*Queries) CreateSkill ¶
func (*Queries) CreateSummary ¶
func (q *Queries) CreateSummary(ctx context.Context, arg CreateSummaryParams) error
func (*Queries) CreateWebChannelIfNotExists ¶ added in v0.43.0
func (q *Queries) CreateWebChannelIfNotExists(ctx context.Context, arg CreateWebChannelIfNotExistsParams) error
func (*Queries) CreateWebhook ¶ added in v0.61.0
func (*Queries) CreateWorkflow ¶ added in v0.60.0
func (q *Queries) CreateWorkflow(ctx context.Context, arg CreateWorkflowParams) (AgentWorkflow, error)
func (*Queries) DeleteAgentIfVersion ¶ added in v0.66.0
func (*Queries) DeleteAgentProviderCredential ¶ added in v0.61.0
func (q *Queries) DeleteAgentProviderCredential(ctx context.Context, arg DeleteAgentProviderCredentialParams) error
func (*Queries) DeleteAllContextItems ¶
func (*Queries) DeleteArticle ¶
func (q *Queries) DeleteArticle(ctx context.Context, arg DeleteArticleParams) error
func (*Queries) DeleteAuthOAuthProvider ¶ added in v0.27.0
func (*Queries) DeleteAuthUser ¶
func (*Queries) DeleteBuildingLibraryChunks ¶ added in v0.63.0
func (*Queries) DeleteChannel ¶
func (*Queries) DeleteChannelGuest ¶ added in v0.63.0
func (*Queries) DeleteChatAgent ¶
func (q *Queries) DeleteChatAgent(ctx context.Context, arg DeleteChatAgentParams) error
func (*Queries) DeleteChatCommandReceipt ¶ added in v0.61.0
func (q *Queries) DeleteChatCommandReceipt(ctx context.Context, arg DeleteChatCommandReceiptParams) error
Releases a claim whose command did not run, so the next redelivery may retry. This is the ONLY delete; a consumed receipt is permanent, because the Web API promises message-id idempotency with no time window and a TTL here would quietly reopen the destructive replay this receipt exists to prevent.
func (*Queries) DeleteContextItemsInRange ¶
func (q *Queries) DeleteContextItemsInRange(ctx context.Context, arg DeleteContextItemsInRangeParams) error
func (*Queries) DeleteDigestArticles ¶ added in v0.30.0
func (q *Queries) DeleteDigestArticles(ctx context.Context, arg DeleteDigestArticlesParams) error
func (*Queries) DeleteEmailSendDedup ¶ added in v0.60.0
func (q *Queries) DeleteEmailSendDedup(ctx context.Context, arg DeleteEmailSendDedupParams) error
func (*Queries) DeleteExpiredEmailSendDedup ¶ added in v0.60.0
func (*Queries) DeleteExpiredMCPOAuthFlows ¶ added in v0.68.0
func (*Queries) DeleteFeed ¶ added in v0.43.0
func (q *Queries) DeleteFeed(ctx context.Context, arg DeleteFeedParams) error
func (*Queries) DeleteGroupState ¶ added in v0.43.0
func (*Queries) DeleteKnowledgeUsage ¶ added in v0.60.0
func (*Queries) DeleteMCPServerByScope ¶ added in v0.60.0
func (q *Queries) DeleteMCPServerByScope(ctx context.Context, arg DeleteMCPServerByScopeParams) error
func (*Queries) DeleteMCPServerByScopeIfVersion ¶ added in v0.66.0
func (*Queries) DeleteManifestPluginOverride ¶ added in v0.38.0
func (*Queries) DeleteOldEntries ¶ added in v0.43.0
func (*Queries) DeleteOrphanMedia ¶ added in v0.66.0
func (q *Queries) DeleteOrphanMedia(ctx context.Context, rowLimit int32) ([]DeleteOrphanMediaRow, error)
Session media is written before the message that references it: a group image is persisted while the message is still being resolved, so a failed or duplicate delivery leaves a row nothing points at. The 24-hour floor is what keeps that ordinary window safe; anything older than it that no message part and no group content block names is genuinely unreachable.
The group side uses jsonb containment against the raw content_blocks array rather than a dedicated table. Ceiling: no GIN index on content_blocks, so this is a sequential scan of the group message table. Add one when the table passes ~1M rows or a single sweep round takes more than 30s.
func (*Queries) DeletePluginStateEntry ¶
func (q *Queries) DeletePluginStateEntry(ctx context.Context, arg DeletePluginStateEntryParams) error
func (*Queries) DeleteProject ¶ added in v0.34.0
func (q *Queries) DeleteProject(ctx context.Context, arg DeleteProjectParams) error
func (*Queries) DeleteProvider ¶
func (*Queries) DeleteProviderIfVersion ¶ added in v0.66.0
func (*Queries) DeleteSchedulerJob ¶
func (*Queries) DeleteSetting ¶
func (*Queries) DeleteShareByUser ¶ added in v0.35.0
func (*Queries) DeleteSkill ¶
func (q *Queries) DeleteSkill(ctx context.Context, arg DeleteSkillParams) error
func (*Queries) DeleteSkillUsage ¶ added in v0.60.0
func (*Queries) DeleteToolOverride ¶ added in v0.60.0
func (q *Queries) DeleteToolOverride(ctx context.Context, arg DeleteToolOverrideParams) error
func (*Queries) DeleteToolOverrideIfVersion ¶ added in v0.66.0
func (q *Queries) DeleteToolOverrideIfVersion(ctx context.Context, arg DeleteToolOverrideIfVersionParams) (ToolOverride, error)
func (*Queries) DeleteToolOverridesByPrefix ¶ added in v0.68.0
func (*Queries) DeleteUserAgentMemory ¶
func (q *Queries) DeleteUserAgentMemory(ctx context.Context, arg DeleteUserAgentMemoryParams) error
func (*Queries) DeleteVaultEntryByScope ¶ added in v0.48.0
func (q *Queries) DeleteVaultEntryByScope(ctx context.Context, arg DeleteVaultEntryByScopeParams) error
func (*Queries) DeleteWebhookForUser ¶ added in v0.61.0
func (*Queries) DeleteWorkflow ¶ added in v0.60.0
func (*Queries) DeprecateFact ¶ added in v0.60.0
func (*Queries) DisableOAuthClient ¶ added in v0.60.0
func (*Queries) EnqueueSessionInbox ¶ added in v0.63.3
func (q *Queries) EnqueueSessionInbox(ctx context.Context, arg EnqueueSessionInboxParams) (CtxSessionInbox, error)
func (*Queries) ExistsGroupMessageBeforeSeq ¶ added in v0.65.0
func (*Queries) ExtendRunningGroupDispatchLease ¶ added in v0.43.0
func (*Queries) ExtendRunningGroupOutboxLease ¶ added in v0.43.0
func (*Queries) FailPendingSessionInbox ¶ added in v0.63.3
func (*Queries) FinalizeAttempt ¶ added in v0.49.4
func (*Queries) GetActiveAttempt ¶ added in v0.49.4
func (q *Queries) GetActiveAttempt(ctx context.Context, arg GetActiveAttemptParams) (AgentGoalAttempt, error)
func (*Queries) GetActiveAuthUserTokenByHash ¶
func (*Queries) GetActiveAutoAuthUserTokenByUser ¶
func (q *Queries) GetActiveAutoAuthUserTokenByUser(ctx context.Context, userID string) (AuthUserToken, error)
expires_at is intentionally not filtered here: TokenService rotates at autoTokenRotateAfter (60 days), which is always before autoTokenTTL (90 days), so an auto token is replaced before it can expire. The Go layer handles time-based rotation rather than relying on the DB expiry column.
func (*Queries) GetAgentForUpdate ¶ added in v0.64.0
func (*Queries) GetAgentProviderCredential ¶ added in v0.61.0
func (q *Queries) GetAgentProviderCredential(ctx context.Context, arg GetAgentProviderCredentialParams) (AgentProviderCredential, error)
func (*Queries) GetAgentSkillPolicyForUpdate ¶ added in v0.64.0
func (*Queries) GetArticle ¶
func (q *Queries) GetArticle(ctx context.Context, arg GetArticleParams) (RecallyArticle, error)
func (*Queries) GetArticleByCanonicalURL ¶
func (q *Queries) GetArticleByCanonicalURL(ctx context.Context, arg GetArticleByCanonicalURLParams) (RecallyArticle, error)
func (*Queries) GetArticleContent ¶ added in v0.60.0
func (*Queries) GetArticlesSavedThisWeek ¶
func (*Queries) GetAttempt ¶ added in v0.49.4
func (*Queries) GetAuthOAuthProvider ¶ added in v0.27.0
func (*Queries) GetAuthUser ¶
func (*Queries) GetAuthUserForUpdate ¶ added in v0.64.0
func (*Queries) GetAuthUserTokenByHash ¶
func (*Queries) GetChannel ¶
func (*Queries) GetChannelForUpdate ¶ added in v0.63.0
func (*Queries) GetChannelGuest ¶ added in v0.63.0
func (*Queries) GetChannelIdentityName ¶ added in v0.65.0
func (*Queries) GetChatAgent ¶
func (q *Queries) GetChatAgent(ctx context.Context, arg GetChatAgentParams) (ChannelAgent, error)
func (*Queries) GetContextItemCount ¶
func (*Queries) GetContextItems ¶
func (*Queries) GetContextMessageItems ¶
func (*Queries) GetContextStats ¶ added in v0.46.0
func (*Queries) GetContextTimeBounds ¶ added in v0.63.3
func (*Queries) GetContextTokenCount ¶
func (*Queries) GetConversation ¶
func (q *Queries) GetConversation(ctx context.Context, arg GetConversationParams) (CtxConversation, error)
func (*Queries) GetConversationAgentBySessionID ¶ added in v0.46.0
func (*Queries) GetConversationBySessionID ¶
func (q *Queries) GetConversationBySessionID(ctx context.Context, arg GetConversationBySessionIDParams) (CtxConversation, error)
func (*Queries) GetConversationForSessionAccess ¶ added in v0.60.0
func (q *Queries) GetConversationForSessionAccess(ctx context.Context, sessionID string) (CtxConversation, error)
Private PEP lookup: it obtains durable owner/executor facts before the SessionManager receives the resulting tenant scope. No transport may call it.
func (*Queries) GetConversationTimeBounds ¶ added in v0.46.0
func (*Queries) GetDeliveredGroupMessageBySeq ¶ added in v0.65.0
func (q *Queries) GetDeliveredGroupMessageBySeq(ctx context.Context, arg GetDeliveredGroupMessageBySeqParams) (GetDeliveredGroupMessageBySeqRow, error)
func (*Queries) GetDeliveredGroupRecallMessage ¶ added in v0.65.0
func (q *Queries) GetDeliveredGroupRecallMessage(ctx context.Context, arg GetDeliveredGroupRecallMessageParams) (GetDeliveredGroupRecallMessageRow, error)
func (*Queries) GetDigestByDate ¶ added in v0.30.0
func (q *Queries) GetDigestByDate(ctx context.Context, arg GetDigestByDateParams) (RecallyDigest, error)
func (*Queries) GetEarliestGroupMentionSinceCursor ¶ added in v0.65.0
func (q *Queries) GetEarliestGroupMentionSinceCursor(ctx context.Context, arg GetEarliestGroupMentionSinceCursorParams) (int64, error)
The bounded context assembler needs the actual event, not just the triage boolean, when a coalesced wake would otherwise omit the mentioning row.
func (*Queries) GetEdge ¶ added in v0.49.4
func (q *Queries) GetEdge(ctx context.Context, arg GetEdgeParams) (AgentGoalEdge, error)
func (*Queries) GetEmailSendDedup ¶ added in v0.60.0
func (q *Queries) GetEmailSendDedup(ctx context.Context, arg GetEmailSendDedupParams) (EmailSendDedup, error)
func (*Queries) GetFactForUpdate ¶ added in v0.60.0
func (*Queries) GetFeed ¶ added in v0.43.0
func (q *Queries) GetFeed(ctx context.Context, arg GetFeedParams) (RecallyFeed, error)
func (*Queries) GetFeedByURL ¶ added in v0.43.0
func (q *Queries) GetFeedByURL(ctx context.Context, arg GetFeedByURLParams) (RecallyFeed, error)
func (*Queries) GetFeedEntry ¶ added in v0.43.0
func (q *Queries) GetFeedEntry(ctx context.Context, arg GetFeedEntryParams) (RecallyFeedEntry, error)
func (*Queries) GetFreshTailMessageIDs ¶
func (*Queries) GetGoalByIdempotencyKey ¶ added in v0.60.0
func (*Queries) GetGoalHealthReport ¶ added in v0.60.0
func (q *Queries) GetGoalHealthReport(ctx context.Context, arg GetGoalHealthReportParams) (json.RawMessage, error)
func (*Queries) GetGroupDispatch ¶ added in v0.43.0
func (*Queries) GetGroupLastActive ¶ added in v0.46.0
func (*Queries) GetGroupMessage ¶ added in v0.43.0
func (*Queries) GetGroupMessageByIdempotencyKey ¶ added in v0.42.0
func (*Queries) GetGroupMessageByPlatformID ¶ added in v0.42.0
func (q *Queries) GetGroupMessageByPlatformID(ctx context.Context, arg GetGroupMessageByPlatformIDParams) (CtxGroupMessage, error)
func (*Queries) GetGroupOutbox ¶ added in v0.43.0
func (*Queries) GetGroupOutboxByMessage ¶ added in v0.43.0
func (*Queries) GetGroupStateByID ¶ added in v0.43.0
func (*Queries) GetGroupStateByIDForUpdate ¶ added in v0.60.0
func (*Queries) GetGroupStateByTriple ¶ added in v0.42.0
func (q *Queries) GetGroupStateByTriple(ctx context.Context, arg GetGroupStateByTripleParams) (CtxGroupState, error)
func (*Queries) GetIngestCursor ¶ added in v0.42.0
func (q *Queries) GetIngestCursor(ctx context.Context, arg GetIngestCursorParams) (CtxGroupIngestCursor, error)
func (*Queries) GetKnowledgeUsageForUpdate ¶ added in v0.60.0
func (q *Queries) GetKnowledgeUsageForUpdate(ctx context.Context, arg GetKnowledgeUsageForUpdateParams) (KnowledgeUsage, error)
func (*Queries) GetLatestGroupMessageID ¶ added in v0.65.0
func (*Queries) GetLatestPeerGroupMessageWithContent ¶ added in v0.65.0
func (q *Queries) GetLatestPeerGroupMessageWithContent(ctx context.Context, arg GetLatestPeerGroupMessageWithContentParams) (CtxGroupMessage, error)
Scoped to the current causal chain on purpose. Matching the whole history would make any short acknowledgement ("Done.") unpostable by every agent forever, because this gate is not subject to hold_limit.
func (*Queries) GetLatestQualifyingKnowledgeDeprecateChangelog ¶ added in v0.60.0
func (q *Queries) GetLatestQualifyingKnowledgeDeprecateChangelog(ctx context.Context, arg GetLatestQualifyingKnowledgeDeprecateChangelogParams) (CtxAgentMemoryChangelog, error)
func (*Queries) GetLatestWorkflowRun ¶ added in v0.60.0
func (*Queries) GetLatestWorkflowVersion ¶ added in v0.60.0
func (*Queries) GetLibraryChunkSetByDerivation ¶ added in v0.63.0
func (q *Queries) GetLibraryChunkSetByDerivation(ctx context.Context, arg GetLibraryChunkSetByDerivationParams) (LibraryChunkSet, error)
func (*Queries) GetLibraryChunkSetIntegrity ¶ added in v0.63.0
func (*Queries) GetLibraryFile ¶ added in v0.63.0
func (*Queries) GetLibraryFileLifecycle ¶ added in v0.63.0
func (*Queries) GetLibraryRawOwners ¶ added in v0.63.0
func (*Queries) GetMCPOAuthFlow ¶ added in v0.68.0
func (*Queries) GetMCPServerByID ¶ added in v0.60.0
func (*Queries) GetMCPServerIDByURLOnScope ¶ added in v0.68.0
func (q *Queries) GetMCPServerIDByURLOnScope(ctx context.Context, arg GetMCPServerIDByURLOnScopeParams) (string, error)
GetMCPServerIDByURLOnScope finds an existing registration with the same URL in one scope/owner bucket, for the install-time duplicate check.
func (*Queries) GetMainConversationByProject ¶ added in v0.34.0
func (q *Queries) GetMainConversationByProject(ctx context.Context, arg GetMainConversationByProjectParams) (CtxConversation, error)
func (*Queries) GetManifestPluginOverride ¶ added in v0.38.0
func (*Queries) GetMaxAcceptanceSeq ¶ added in v0.49.4
Highest seq for a goal; -1 when no rows so next seq = result+1 = 0.
func (*Queries) GetMaxAttemptNo ¶ added in v0.49.4
Highest attempt_no for a goal within one purpose; 0 when none exist. The next attempt_no is this + 1 (decomposition cannot derive it from attempt_count, which only tracks execution attempts).
func (*Queries) GetMaxContextOrdinal ¶
func (*Queries) GetMediaByOwnerAndSHA256 ¶ added in v0.66.0
func (*Queries) GetMediaForSession ¶ added in v0.61.0
func (q *Queries) GetMediaForSession(ctx context.Context, arg GetMediaForSessionParams) (CtxMedium, error)
Authorize immutable media through an ordinary session message part. The conversation's legacy text owner is intentionally compared to the UUID media owner, which for a group conversation is the group itself, so a session can only ever resolve media its own principal owns. The caller passes the owner kind its session identity implies (group when session.GroupID is set).
func (*Queries) GetMemoryChangelogAtVersion ¶
func (q *Queries) GetMemoryChangelogAtVersion(ctx context.Context, arg GetMemoryChangelogAtVersionParams) (CtxAgentMemoryChangelog, error)
func (*Queries) GetMemorySnapshot ¶
func (q *Queries) GetMemorySnapshot(ctx context.Context, arg GetMemorySnapshotParams) (CtxAgentMemorySnapshot, error)
func (*Queries) GetMessage ¶
func (q *Queries) GetMessage(ctx context.Context, arg GetMessageParams) (CtxMessage, error)
func (*Queries) GetMessageByConversationOrigin ¶ added in v0.65.0
func (q *Queries) GetMessageByConversationOrigin(ctx context.Context, arg GetMessageByConversationOriginParams) (CtxMessage, error)
func (*Queries) GetMessageCount ¶
func (*Queries) GetMessageParts ¶
func (*Queries) GetMessagePartsByMessages ¶
func (q *Queries) GetMessagePartsByMessages(ctx context.Context, messageIds []string) ([]GetMessagePartsByMessagesRow, error)
The media join is the only source of an image part's baseline: the baseline lives on ctx_media, so one image forwarded into two messages is described once. It is a LEFT JOIN because media_id is nullable and becomes NULL when the media is deleted, which is exactly how a reader learns the image is gone.
func (*Queries) GetMessageScoped ¶ added in v0.49.0
func (q *Queries) GetMessageScoped(ctx context.Context, arg GetMessageScopedParams) (GetMessageScopedRow, error)
Fetch one message in full by ID, scoped to (user_id, agent_id) across every session: the read-in-full companion to cross-session SearchMessages. Joins ctx_conversation for the same isolation filter plus provenance. Keep this doc comment ASCII; multibyte chars corrupt sqlc's query rewriter offsets.
func (*Queries) GetMessagesByConversation ¶
func (*Queries) GetMessagesByConversationRange ¶
func (q *Queries) GetMessagesByConversationRange(ctx context.Context, arg GetMessagesByConversationRangeParams) ([]CtxMessage, error)
func (*Queries) GetMessagesSince ¶
func (q *Queries) GetMessagesSince(ctx context.Context, arg GetMessagesSinceParams) ([]CtxMessage, error)
func (*Queries) GetModelCatalog ¶ added in v0.66.0
func (q *Queries) GetModelCatalog(ctx context.Context) (ModelCatalog, error)
func (*Queries) GetOAuthAccessTokenByPublicID ¶ added in v0.60.0
func (q *Queries) GetOAuthAccessTokenByPublicID(ctx context.Context, publicID string) (GetOAuthAccessTokenByPublicIDRow, error)
Joins the family so resolution fails closed on a revoked family without a per-row revoked flag: an access token is valid only while its family lives.
func (*Queries) GetOAuthClientByClientID ¶ added in v0.60.0
func (*Queries) GetOAuthRefreshTokenByPublicID ¶ added in v0.60.0
func (q *Queries) GetOAuthRefreshTokenByPublicID(ctx context.Context, publicID string) (GetOAuthRefreshTokenByPublicIDRow, error)
Joins the family so the caller sees family-level revocation without a second round-trip: a token whose family is revoked is dead even if its own row looks active.
func (*Queries) GetOwnedProvisionedUserForUpdate ¶ added in v0.64.1
func (q *Queries) GetOwnedProvisionedUserForUpdate(ctx context.Context, arg GetOwnedProvisionedUserForUpdateParams) (GetOwnedProvisionedUserForUpdateRow, error)
func (*Queries) GetPersonalAccessTokenByPublicID ¶ added in v0.60.0
func (q *Queries) GetPersonalAccessTokenByPublicID(ctx context.Context, publicID string) (PersonalAccessToken, error)
Lookup key is the indexed public_id. Revoked/expired filtering is done in the resolver so it can emit a precise error; the row is returned regardless of state here.
func (*Queries) GetPersonalLibraryQuotaUsage ¶ added in v0.63.0
func (*Queries) GetPluginStateEntry ¶
func (q *Queries) GetPluginStateEntry(ctx context.Context, arg GetPluginStateEntryParams) (json.RawMessage, error)
func (*Queries) GetProject ¶ added in v0.34.0
func (*Queries) GetProjectByName ¶ added in v0.34.0
func (*Queries) GetProjectByOwner ¶ added in v0.64.0
func (*Queries) GetProvider ¶
func (*Queries) GetProvisionedUser ¶ added in v0.63.0
func (*Queries) GetProvisionedUserByExternalID ¶ added in v0.63.0
func (*Queries) GetProvisionedUserForUpdate ¶ added in v0.63.0
func (*Queries) GetRequiredChildRollupCounts ¶ added in v0.60.0
func (*Queries) GetSchedJobRun ¶
func (q *Queries) GetSchedJobRun(ctx context.Context, arg GetSchedJobRunParams) (SchedJobRun, error)
func (*Queries) GetSchedulerJob ¶
func (*Queries) GetSchedulerJobByIdempotencyKey ¶ added in v0.60.0
func (*Queries) GetSessionInbox ¶ added in v0.63.3
func (*Queries) GetSetting ¶
func (*Queries) GetShareByTokenHash ¶ added in v0.35.0
func (*Queries) GetSkillByID ¶ added in v0.48.0
func (*Queries) GetSkillHomeMigration ¶ added in v0.64.0
func (*Queries) GetSkillHomeMigrationReadiness ¶ added in v0.64.0
func (q *Queries) GetSkillHomeMigrationReadiness(ctx context.Context) (GetSkillHomeMigrationReadinessRow, error)
func (*Queries) GetSkillHomeMigrationSourceFileStats ¶ added in v0.64.0
func (*Queries) GetSkillUsageForUpdate ¶ added in v0.60.0
func (q *Queries) GetSkillUsageForUpdate(ctx context.Context, arg GetSkillUsageForUpdateParams) (SkillUsage, error)
func (*Queries) GetSummariesByConversation ¶
func (*Queries) GetSummariesByDepth ¶
func (q *Queries) GetSummariesByDepth(ctx context.Context, arg GetSummariesByDepthParams) ([]CtxSummary, error)
func (*Queries) GetSummary ¶
func (q *Queries) GetSummary(ctx context.Context, arg GetSummaryParams) (CtxSummary, error)
func (*Queries) GetSummaryByID ¶ added in v0.38.0
func (*Queries) GetSummaryChildren ¶
func (*Queries) GetSummaryMessageSeqRange ¶ added in v0.46.0
func (*Queries) GetSummaryMessages ¶
func (*Queries) GetSummaryParents ¶
Legacy naming note: compaction stores the containing condensed summary in summary_id and each constituent summary in parent_summary_id. Consequently, GetSummaryParents returns conceptual children/constituents, while GetSummaryChildren returns conceptual parents/containers.
func (*Queries) GetSystemAgentLibraryQuotaUsage ¶ added in v0.63.0
func (*Queries) GetSystemLibraryQuotaUsage ¶ added in v0.63.0
func (q *Queries) GetSystemLibraryQuotaUsage(ctx context.Context) (GetSystemLibraryQuotaUsageRow, error)
func (*Queries) GetToolOverride ¶ added in v0.66.0
func (q *Queries) GetToolOverride(ctx context.Context, arg GetToolOverrideParams) (ToolOverride, error)
func (*Queries) GetUserAgentMemory ¶
func (q *Queries) GetUserAgentMemory(ctx context.Context, arg GetUserAgentMemoryParams) (CtxAgentMemory, error)
func (*Queries) GetUserAgentSkillByName ¶ added in v0.60.0
func (*Queries) GetVaultEntryByScope ¶ added in v0.48.0
func (q *Queries) GetVaultEntryByScope(ctx context.Context, arg GetVaultEntryByScopeParams) (VaultEntry, error)
func (*Queries) GetVaultUser ¶ added in v0.38.0
GetVaultUser returns the age key fields for a user. Satisfies vault.UserKeyReader.
func (*Queries) GetWebhookByPublicID ¶ added in v0.61.0
func (*Queries) GetWebhookForUser ¶ added in v0.61.0
func (*Queries) GetWebhookForUserForUpdate ¶ added in v0.61.0
func (*Queries) GetWorkflow ¶ added in v0.60.0
func (*Queries) GetWorkflowRunByKey ¶ added in v0.60.0
func (q *Queries) GetWorkflowRunByKey(ctx context.Context, arg GetWorkflowRunByKeyParams) (AgentWorkflowRun, error)
func (*Queries) HardDeleteLibraryFile ¶ added in v0.63.0
func (*Queries) HasEligiblePairActivityAfter ¶ added in v0.60.0
func (*Queries) HeartbeatAttempt ¶ added in v0.49.4
func (*Queries) IncrementGoalBudgetBonus ¶ added in v0.60.0
func (*Queries) IncrementGoalFlakyCount ¶ added in v0.60.0
func (*Queries) IncrementGroupNudgeStreak ¶ added in v0.65.0
func (q *Queries) IncrementGroupNudgeStreak(ctx context.Context, arg IncrementGroupNudgeStreakParams) (CtxGroupState, error)
func (*Queries) InsertArticleContentIfAbsent ¶ added in v0.60.0
func (q *Queries) InsertArticleContentIfAbsent(ctx context.Context, arg InsertArticleContentIfAbsentParams) error
func (*Queries) InsertFact ¶ added in v0.60.0
func (*Queries) InsertLibraryChunkBatch ¶ added in v0.63.0
func (*Queries) InsertMemoryChangelog ¶
func (q *Queries) InsertMemoryChangelog(ctx context.Context, arg InsertMemoryChangelogParams) error
func (*Queries) InsertSkillChangelog ¶ added in v0.60.0
func (q *Queries) InsertSkillChangelog(ctx context.Context, arg InsertSkillChangelogParams) (SkillChangelog, error)
func (*Queries) InsertToolOverrideIfAbsent ¶ added in v0.66.0
func (q *Queries) InsertToolOverrideIfAbsent(ctx context.Context, arg InsertToolOverrideIfAbsentParams) (ToolOverride, error)
func (*Queries) LastHumanSeqAtOrBefore ¶ added in v0.65.0
func (*Queries) LinkSummaryToMessage ¶
func (q *Queries) LinkSummaryToMessage(ctx context.Context, arg LinkSummaryToMessageParams) error
func (*Queries) LinkSummaryToParent ¶
func (q *Queries) LinkSummaryToParent(ctx context.Context, arg LinkSummaryToParentParams) error
func (*Queries) ListAcceptanceEventByGoal ¶ added in v0.49.4
func (q *Queries) ListAcceptanceEventByGoal(ctx context.Context, goalID string) ([]AgentGoalAcceptanceEvent, error)
The projection fold: replay every event for a goal in seq order.
func (*Queries) ListActiveFactsBySubject ¶ added in v0.60.0
func (*Queries) ListActiveKnowledge ¶ added in v0.60.0
func (*Queries) ListActiveKnowledgeContents ¶ added in v0.60.0
func (*Queries) ListAgentConversationLastActive ¶ added in v0.46.0
func (*Queries) ListAgentLLMCallUsageBySessionID ¶ added in v0.65.0
func (q *Queries) ListAgentLLMCallUsageBySessionID(ctx context.Context, sessionID string) ([]ListAgentLLMCallUsageBySessionIDRow, error)
A total is NULL unless every call in the model bucket reported usage (and, for cost, every reported call had a configured price). Returning a partial total would make an unavailable provider report look like free usage.
func (*Queries) ListAgentProviderCredential ¶ added in v0.61.0
func (q *Queries) ListAgentProviderCredential(ctx context.Context, agentID string) ([]ListAgentProviderCredentialRow, error)
Metadata only: api_key_enc is deliberately not selected so credential listings never carry secret material.
func (*Queries) ListAgentUsers ¶
func (*Queries) ListAllSchedulerJobs ¶ added in v0.38.0
func (*Queries) ListArticles ¶
func (q *Queries) ListArticles(ctx context.Context, arg ListArticlesParams) ([]RecallyArticle, error)
func (*Queries) ListArticlesMissingContent ¶ added in v0.60.0
func (q *Queries) ListArticlesMissingContent(ctx context.Context) ([]ListArticlesMissingContentRow, error)
Legacy articles whose body still lives only in a disk file (file_path set) and was never copied into recally_article_content. Startup eager-backfills these so bodies survive on hosts where the pod-local disk is gone. Keep ASCII.
func (*Queries) ListArticlesNeedingEmbedding ¶ added in v0.50.3
func (q *Queries) ListArticlesNeedingEmbedding(ctx context.Context, arg ListArticlesNeedingEmbeddingParams) ([]ListArticlesNeedingEmbeddingRow, error)
Backfill candidates for articles. Unlike messages, articles are mutable, so a row whose embedding predates the article's last update (e.updated_at < a.updated_at) is a candidate too; the writer then compares content_hash to skip non-content edits (e.g. marking read). content is title + summary, the fields worth embedding. Keep ASCII.
func (*Queries) ListArticlesSavedYesterday ¶
func (*Queries) ListAttemptByGoal ¶ added in v0.49.4
func (q *Queries) ListAttemptByGoal(ctx context.Context, arg ListAttemptByGoalParams) ([]AgentGoalAttempt, error)
func (*Queries) ListAttemptSummaryByGoal ¶ added in v0.63.0
func (q *Queries) ListAttemptSummaryByGoal(ctx context.Context, arg ListAttemptSummaryByGoalParams) ([]ListAttemptSummaryByGoalRow, error)
Agent-facing status only needs lightweight execution metadata. Keep the large input/evidence/output/gaps payloads out of this bounded projection.
func (*Queries) ListAuthUsersByIDs ¶ added in v0.41.0
func (*Queries) ListChannels ¶
func (*Queries) ListChannelsByType ¶
func (*Queries) ListChatAgents ¶
func (q *Queries) ListChatAgents(ctx context.Context) ([]ChannelAgent, error)
func (*Queries) ListContextItemsPage ¶ added in v0.46.0
func (q *Queries) ListContextItemsPage(ctx context.Context, arg ListContextItemsPageParams) ([]ListContextItemsPageRow, error)
func (*Queries) ListConversationSummarySourceBySessionIDs ¶ added in v0.63.3
func (q *Queries) ListConversationSummarySourceBySessionIDs(ctx context.Context, sessionIds []string) ([]ListConversationSummarySourceBySessionIDsRow, error)
Batch-load the recency-focused inputs for Session cards. The caller has already authorized these exact session IDs; keeping the projection in one query prevents list pages from degrading into per-session transcript reads. Bare acknowledgements are intentionally a small allow-list: dropping an unknown short message would be worse than keeping a little noise.
func (*Queries) ListConversations ¶
func (q *Queries) ListConversations(ctx context.Context, arg ListConversationsParams) ([]CtxConversation, error)
func (*Queries) ListConversationsAll ¶
func (q *Queries) ListConversationsAll(ctx context.Context, arg ListConversationsAllParams) ([]CtxConversation, error)
func (*Queries) ListConversationsByKind ¶ added in v0.34.0
func (q *Queries) ListConversationsByKind(ctx context.Context, arg ListConversationsByKindParams) ([]CtxConversation, error)
func (*Queries) ListConversationsFiltered ¶ added in v0.46.0
func (q *Queries) ListConversationsFiltered(ctx context.Context, arg ListConversationsFilteredParams) ([]CtxConversation, error)
func (*Queries) ListConversationsForAdminFiltered ¶ added in v0.63.0
func (q *Queries) ListConversationsForAdminFiltered(ctx context.Context, arg ListConversationsForAdminFilteredParams) ([]CtxConversation, error)
Administrative guest management includes the admin's own sessions plus guest sessions for the agent, never another registered user's private sessions.
func (*Queries) ListConversationsForRecallAccess ¶ added in v0.63.3
func (q *Queries) ListConversationsForRecallAccess(ctx context.Context, sessionIds []string) ([]CtxConversation, error)
Private recall PEP lookup. Search results are untrusted resource hints, so authorize their durable Session facts in one bounded batch before resolving message or summary IDs. No transport may call this query.
func (*Queries) ListConversationsForReviewByAgent ¶ added in v0.40.0
func (q *Queries) ListConversationsForReviewByAgent(ctx context.Context, agentID pgtype.Text) ([]CtxConversation, error)
Ownerless legacy rows (NULL/empty user_id) are excluded: review is user-scoped and such rows were never review candidates.
func (*Queries) ListConversationsForReviewFiltered ¶ added in v0.46.0
func (q *Queries) ListConversationsForReviewFiltered(ctx context.Context, arg ListConversationsForReviewFilteredParams) ([]ListConversationsForReviewFilteredRow, error)
Ownerless legacy rows (NULL/empty user_id) are excluded: review is user-scoped and such rows were never review candidates. An archived session is still a candidate when include_archived is set: rotation (/new) archives a session the moment the user starts a fresh one, and its last messages would otherwise never be distilled. The caller drops archived rows once their review watermarks reach latest_seq.
func (*Queries) ListDecomposableComposites ¶ added in v0.50.0
Composites awaiting autonomous decomposition: freshly created (draft), not planned yet, and not workflow roots. A workflow root carries workflow_id and is materialized only by workflow replay; nested workflow composites do not carry workflow_id and remain planner-eligible when their sub-plan is not frozen.
func (*Queries) ListDeliveredGroupMessagesBeforeSeq ¶ added in v0.65.0
func (q *Queries) ListDeliveredGroupMessagesBeforeSeq(ctx context.Context, arg ListDeliveredGroupMessagesBeforeSeqParams) ([]ListDeliveredGroupMessagesBeforeSeqRow, error)
Reverse pagination is mandatory: group context reads only its newest bounded window, never an interval whose size is controlled by group history.
func (*Queries) ListDeliveredGroupRecallAfterSeq ¶ added in v0.65.0
func (q *Queries) ListDeliveredGroupRecallAfterSeq(ctx context.Context, arg ListDeliveredGroupRecallAfterSeqParams) ([]ListDeliveredGroupRecallAfterSeqRow, error)
func (*Queries) ListDeliveredGroupRecallBeforeSeq ¶ added in v0.65.0
func (q *Queries) ListDeliveredGroupRecallBeforeSeq(ctx context.Context, arg ListDeliveredGroupRecallBeforeSeqParams) ([]ListDeliveredGroupRecallBeforeSeqRow, error)
func (*Queries) ListDigestArticles ¶ added in v0.30.0
func (q *Queries) ListDigestArticles(ctx context.Context, arg ListDigestArticlesParams) ([]RecallyArticle, error)
func (*Queries) ListDigests ¶ added in v0.30.0
func (q *Queries) ListDigests(ctx context.Context, arg ListDigestsParams) ([]RecallyDigest, error)
func (*Queries) ListDispatchableLeaves ¶ added in v0.49.4
func (*Queries) ListEdgeByGoal ¶ added in v0.49.4
func (*Queries) ListEdgeWithUpstreamState ¶ added in v0.49.4
func (*Queries) ListEnabledAgents ¶
func (*Queries) ListEnabledPlugins ¶
func (*Queries) ListEnabledProviders ¶
func (*Queries) ListExistingUserMessageContent ¶ added in v0.47.0
func (*Queries) ListExpiredRunningGroupDispatch ¶ added in v0.43.0
func (q *Queries) ListExpiredRunningGroupDispatch(ctx context.Context, arg ListExpiredRunningGroupDispatchParams) ([]CtxGroupDispatch, error)
func (*Queries) ListExpiredRunningGroupOutbox ¶ added in v0.43.0
func (q *Queries) ListExpiredRunningGroupOutbox(ctx context.Context, arg ListExpiredRunningGroupOutboxParams) ([]CtxGroupOutbox, error)
func (*Queries) ListFactChangelogBySubject ¶ added in v0.60.0
func (q *Queries) ListFactChangelogBySubject(ctx context.Context, arg ListFactChangelogBySubjectParams) ([]CtxAgentMemoryChangelog, error)
func (*Queries) ListFactChangelogBySubjectPage ¶ added in v0.60.0
func (q *Queries) ListFactChangelogBySubjectPage(ctx context.Context, arg ListFactChangelogBySubjectPageParams) ([]ListFactChangelogBySubjectPageRow, error)
func (*Queries) ListFactChangelogUpToVersion ¶ added in v0.60.0
func (q *Queries) ListFactChangelogUpToVersion(ctx context.Context, arg ListFactChangelogUpToVersionParams) ([]CtxAgentMemoryChangelog, error)
func (*Queries) ListFailedInboxSchedulerRuns ¶ added in v0.46.0
func (q *Queries) ListFailedInboxSchedulerRuns(ctx context.Context, arg ListFailedInboxSchedulerRunsParams) ([]ListFailedInboxSchedulerRunsRow, error)
func (*Queries) ListFeedEntries ¶ added in v0.43.0
func (q *Queries) ListFeedEntries(ctx context.Context, arg ListFeedEntriesParams) ([]RecallyFeedEntry, error)
func (*Queries) ListFeeds ¶ added in v0.43.0
func (q *Queries) ListFeeds(ctx context.Context, arg ListFeedsParams) ([]RecallyFeed, error)
func (*Queries) ListGoalByRoot ¶ added in v0.49.4
func (*Queries) ListGoalChildren ¶ added in v0.49.4
func (*Queries) ListGoalEventByGoal ¶ added in v0.60.0
func (q *Queries) ListGoalEventByGoal(ctx context.Context, arg ListGoalEventByGoalParams) ([]AgentGoalEvent, error)
func (*Queries) ListGoalForHealthScope ¶ added in v0.60.0
func (q *Queries) ListGoalForHealthScope(ctx context.Context, arg ListGoalForHealthScopeParams) ([]AgentGoal, error)
ListGoalForHealthScope returns every goal (roots AND children) in the health report's window and user/agent scope so the Access PEP can authorize each row before aggregating; it mirrors the scoped_goal CTE of GetGoalHealthReport.
func (*Queries) ListGoalSubtree ¶ added in v0.49.4
func (*Queries) ListGoalsBlockedNeedsVerdict ¶ added in v0.60.0
func (q *Queries) ListGoalsBlockedNeedsVerdict(ctx context.Context, limit int32) ([]AgentGoal, error)
Goals parked blocked(needs_verdict): a required judgment item has no valid verdict. The dispatcher (scanAndReview) drives an agent reviewer for any with a pending authority=agent item (contract section 10.13); the rest await a human. Both leaf and composite goals can carry an authored judgment contract.
func (*Queries) ListGoalsByWorkflow ¶ added in v0.60.0
func (*Queries) ListGroupMembers ¶ added in v0.42.0
func (*Queries) ListGroupMessagesAfterSeq ¶ added in v0.42.0
func (q *Queries) ListGroupMessagesAfterSeq(ctx context.Context, arg ListGroupMessagesAfterSeqParams) ([]ListGroupMessagesAfterSeqRow, error)
These text-only ingest/context readers deliberately exclude content_blocks: historical group context retains the content projection (including image) without loading the original media payload.
func (*Queries) ListGroupMessagesPaginated ¶ added in v0.43.0
func (q *Queries) ListGroupMessagesPaginated(ctx context.Context, arg ListGroupMessagesPaginatedParams) ([]ListGroupMessagesPaginatedRow, error)
func (*Queries) ListGroupNudgeCandidate ¶ added in v0.65.0
func (q *Queries) ListGroupNudgeCandidate(ctx context.Context, arg ListGroupNudgeCandidateParams) ([]ListGroupNudgeCandidateRow, error)
func (*Queries) ListGroupsByUser ¶ added in v0.43.0
func (q *Queries) ListGroupsByUser(ctx context.Context, arg ListGroupsByUserParams) ([]ListGroupsByUserRow, error)
func (*Queries) ListGroupsWithPendingIngest ¶ added in v0.42.0
func (*Queries) ListInboxGoals ¶ added in v0.49.4
func (q *Queries) ListInboxGoals(ctx context.Context, arg ListInboxGoalsParams) ([]ListInboxGoalsRow, error)
func (*Queries) ListInflightAttemptsByGoal ¶ added in v0.60.0
func (q *Queries) ListInflightAttemptsByGoal(ctx context.Context, goalID string) ([]AgentGoalAttempt, error)
Every queued/running attempt for a goal regardless of purpose. Cancel uses this to finalize ALL in-flight work: only execution attempts are pointed by active_attempt_id, so decomposition/review attempts would otherwise outlive the cancel and later be reaped against a terminal goal.
func (*Queries) ListLatestGroupMessagesAfterSeq ¶ added in v0.65.0
func (q *Queries) ListLatestGroupMessagesAfterSeq(ctx context.Context, arg ListLatestGroupMessagesAfterSeqParams) ([]ListLatestGroupMessagesAfterSeqRow, error)
Replay for a live stream wants the newest window, not the oldest: a group past the batch limit would otherwise replay its first N messages forever and never show the ones the client is waiting for.
func (*Queries) ListLibraryTombstone ¶ added in v0.63.0
func (*Queries) ListMCPServersByScope ¶ added in v0.60.0
func (q *Queries) ListMCPServersByScope(ctx context.Context, arg ListMCPServersByScopeParams) ([]McpServer, error)
ListMCPServersByScope returns every registration in exactly one scope/owner bucket, for management (list/delete) operations.
func (*Queries) ListMCPServersForAgentContext ¶ added in v0.60.0
func (q *Queries) ListMCPServersForAgentContext(ctx context.Context, arg ListMCPServersForAgentContextParams) ([]McpServer, error)
ListMCPServersForAgentContext returns every registration visible to one (user, agent), disabled ones included, ordered most-specific-first so the dedup by name downstream keeps the effective server: user_agent > user > system_agent > system. Enabled filtering is the caller's job so the UI can still show (and re-enable) a switched-off server.
func (*Queries) ListManagedLibraryFiles ¶ added in v0.64.0
func (q *Queries) ListManagedLibraryFiles(ctx context.Context, arg ListManagedLibraryFilesParams) ([]LibraryFile, error)
func (*Queries) ListManifestPluginOverrides ¶ added in v0.38.0
func (q *Queries) ListManifestPluginOverrides(ctx context.Context) ([]PluginOverride, error)
func (*Queries) ListMediaByIDsForOwner ¶ added in v0.66.0
func (q *Queries) ListMediaByIDsForOwner(ctx context.Context, arg ListMediaByIDsForOwnerParams) ([]CtxMedium, error)
Canonical append validates every media reference against this owner inside its parent/parts transaction. Callers deduplicate IDs before this batch lookup.
func (*Queries) ListMemoryChangelog ¶
func (q *Queries) ListMemoryChangelog(ctx context.Context, arg ListMemoryChangelogParams) ([]CtxAgentMemoryChangelog, error)
func (*Queries) ListMemoryChangelogPage ¶ added in v0.60.0
func (q *Queries) ListMemoryChangelogPage(ctx context.Context, arg ListMemoryChangelogPageParams) ([]CtxAgentMemoryChangelog, error)
func (*Queries) ListMessagePartsWithMediaByMessages ¶ added in v0.61.0
func (q *Queries) ListMessagePartsWithMediaByMessages(ctx context.Context, messageIds []string) ([]ListMessagePartsWithMediaByMessagesRow, error)
This returns media-backed parts only; GetMessagePartsByMessages remains the batch loader for text and tool parts. The stable order avoids an N+1 media lookup when Phase 3 reconstructs image-bearing messages.
func (*Queries) ListMessagesByIDs ¶ added in v0.41.0
func (q *Queries) ListMessagesByIDs(ctx context.Context, arg ListMessagesByIDsParams) ([]CtxMessage, error)
func (*Queries) ListMessagesByLogicalPage ¶ added in v0.41.0
func (q *Queries) ListMessagesByLogicalPage(ctx context.Context, arg ListMessagesByLogicalPageParams) ([]ListMessagesByLogicalPageRow, error)
Keep this logical-message boundary in sync with serializeDBMessages in internal/server/sessions.go: consecutive assistant rows render as one response message, so SQL pagination must count them as one too.
func (*Queries) ListMessagesNeedingEmbedding ¶ added in v0.50.3
func (q *Queries) ListMessagesNeedingEmbedding(ctx context.Context, arg ListMessagesNeedingEmbeddingParams) ([]ListMessagesNeedingEmbeddingRow, error)
Backfill candidates: messages with no embedding, or one produced by a different model (a model switch invalidates the old vector space). Messages are immutable, so a row whose model already matches is never stale and is not returned. embedded_model/embedded_hash carry existing provenance so the writer can skip rows already current. Keep ASCII.
func (*Queries) ListOAuthAuthorizedApps ¶ added in v0.60.0
func (q *Queries) ListOAuthAuthorizedApps(ctx context.Context, userID string) ([]ListOAuthAuthorizedAppsRow, error)
One row per client the user has an active grant for: the current (unconsumed, unexpired) refresh token of each non-revoked family. The user-facing "authorized apps" list.
func (*Queries) ListOAuthClientByOwner ¶ added in v0.60.0
func (*Queries) ListPendingEntries ¶ added in v0.43.0
func (q *Queries) ListPendingEntries(ctx context.Context, arg ListPendingEntriesParams) ([]RecallyFeedEntry, error)
func (*Queries) ListPendingGroupNudges ¶ added in v0.65.0
func (q *Queries) ListPendingGroupNudges(ctx context.Context, arg ListPendingGroupNudgesParams) ([]CtxGroupDispatch, error)
Nudge rows are targeted at one agent and never superseded, so they feed the pool by id rather than through the (group, agent) high-water wake feed.
func (*Queries) ListPendingGroupOutbox ¶ added in v0.43.0
func (q *Queries) ListPendingGroupOutbox(ctx context.Context, arg ListPendingGroupOutboxParams) ([]CtxGroupOutbox, error)
func (*Queries) ListPendingGroupWakePairs ¶ added in v0.65.0
func (q *Queries) ListPendingGroupWakePairs(ctx context.Context, arg ListPendingGroupWakePairsParams) ([]CtxGroupDispatch, error)
One representative per (group, agent) wakes the bounded pool. Claiming chooses newest again transactionally, so this advisory feed may be stale.
func (*Queries) ListPendingSessionInbox ¶ added in v0.63.3
func (q *Queries) ListPendingSessionInbox(ctx context.Context, arg ListPendingSessionInboxParams) ([]CtxSessionInbox, error)
func (*Queries) ListPersonalAccessTokenByUser ¶ added in v0.60.0
func (*Queries) ListPluginOverrides ¶ added in v0.38.0
func (*Queries) ListProjects ¶ added in v0.34.0
func (*Queries) ListProjectsAll ¶ added in v0.34.0
func (*Queries) ListProviderIDs ¶ added in v0.61.0
Credential validation needs canonical IDs, never Provider config or its deployment-global API key.
func (*Queries) ListProviderModelsCache ¶ added in v0.60.0
func (q *Queries) ListProviderModelsCache(ctx context.Context) ([]ProviderModelsCache, error)
func (*Queries) ListProviders ¶
func (*Queries) ListProvisionedUserAfter ¶ added in v0.63.0
func (q *Queries) ListProvisionedUserAfter(ctx context.Context, arg ListProvisionedUserAfterParams) ([]ListProvisionedUserAfterRow, error)
func (*Queries) ListProvisioningTokenByUser ¶ added in v0.63.0
func (*Queries) ListRecallMessageByIDs ¶ added in v0.63.3
func (q *Queries) ListRecallMessageByIDs(ctx context.Context, messageIds []string) ([]ListRecallMessageByIDsRow, error)
Recall hits are untrusted hints spanning authorized conversations. Return only identity and ownership facts so the PEP can match each hit back to the exact conversation authorized in the same search operation.
func (*Queries) ListRecallSummaryByIDs ¶ added in v0.63.3
func (q *Queries) ListRecallSummaryByIDs(ctx context.Context, summaryIds []string) ([]ListRecallSummaryByIDsRow, error)
As with recall messages, return only the resource ID and its exact owning conversation for a bounded, fail-closed batch verification.
func (*Queries) ListRecentGoalEventContext ¶ added in v0.60.0
func (q *Queries) ListRecentGoalEventContext(ctx context.Context, arg ListRecentGoalEventContextParams) ([]AgentGoalEvent, error)
Recent context events that matter to a new attempt prompt.
func (*Queries) ListRecentGroupMessagesBeforeSeq ¶ added in v0.43.0
func (q *Queries) ListRecentGroupMessagesBeforeSeq(ctx context.Context, arg ListRecentGroupMessagesBeforeSeqParams) ([]ListRecentGroupMessagesBeforeSeqRow, error)
content_blocks holds inbound image payloads, so a single row is bounded only by the channel inline ceiling (telegram/qq inline up to 20MB today; 5MB once #786 lands). Only the dispatch reads above (GetGroupMessage / the dedup :one lookups) rehydrate images, so they keep SELECT *. The text-only list consumers below — group-triage recent context, LCM cross-agent assembly, and web pagination — read only the projected text columns, so they select an explicit column list that EXCLUDES content_blocks and never drag image blobs across a history window.
func (*Queries) ListReflectUsagePairs ¶ added in v0.60.0
func (q *Queries) ListReflectUsagePairs(ctx context.Context) ([]ListReflectUsagePairsRow, error)
func (*Queries) ListRemovedKnowledge ¶ added in v0.60.0
func (q *Queries) ListRemovedKnowledge(ctx context.Context, arg ListRemovedKnowledgeParams) ([]ListRemovedKnowledgeRow, error)
func (*Queries) ListRollupCandidates ¶ added in v0.49.4
func (*Queries) ListRootGoal ¶ added in v0.49.4
Root goals (goals: parent_id IS NULL) for a user, scoped to an agent and narrowed by lifecycle / terminal-ness / project / workflow / free-text. Every narg is optional: NULL matches all. terminal: false = active (non-terminal) only, true = history (done) only, NULL = both.
func (*Queries) ListRunningGroupDispatchAgents ¶ added in v0.65.0
func (q *Queries) ListRunningGroupDispatchAgents(ctx context.Context, groupID string) ([]string, error)
Presence snapshot for a fresh SSE subscriber: which members of this group are executing a turn right now. Deliberately reads the durable row rather than an in-process set, so a browser that opens mid-turn sees the same state a long-lived subscriber does.
Known softness: a worker that died mid-turn leaves status='running' until its lease expires (5min), so a snapshot can show a stale running. The reaper emits a terminal failed frame before requeueing or failing that attempt, and every reconnect re-snapshots, so the UI self-heals. Filtering by lease_until here would instead hide a live turn whose heartbeat is merely late, which is the worse lie.
func (*Queries) ListSchedJobRuns ¶
func (q *Queries) ListSchedJobRuns(ctx context.Context, arg ListSchedJobRunsParams) ([]SchedJobRun, error)
func (*Queries) ListSchedulerJobByOwner ¶ added in v0.60.0
func (*Queries) ListSchedulerJobs ¶
func (*Queries) ListSchedulerJobsByAgent ¶ added in v0.36.0
func (*Queries) ListSessionTranscriptPage ¶ added in v0.63.3
func (q *Queries) ListSessionTranscriptPage(ctx context.Context, arg ListSessionTranscriptPageParams) ([]ListSessionTranscriptPageRow, error)
Agent-facing transcript pages use a whole user turn as the atomic boundary: one user row plus every assistant/tool row until the next user row. This keeps tool calls and their results together even when a page boundary falls nearby.
func (*Queries) ListSettings ¶
func (q *Queries) ListSettings(ctx context.Context) ([]AppSetting, error)
func (*Queries) ListSharesByUser ¶ added in v0.35.0
func (q *Queries) ListSharesByUser(ctx context.Context, arg ListSharesByUserParams) ([]ListSharesByUserRow, error)
func (*Queries) ListSkillChangelogBySkill ¶ added in v0.60.0
func (q *Queries) ListSkillChangelogBySkill(ctx context.Context, arg ListSkillChangelogBySkillParams) ([]SkillChangelog, error)
func (*Queries) ListSkillHomeMigrationSource ¶ added in v0.64.0
func (*Queries) ListSkillHomeMigrationSourceFile ¶ added in v0.64.0
func (*Queries) ListSkillIdentityVisible ¶ added in v0.64.0
func (*Queries) ListSkillsByScope ¶ added in v0.48.0
func (*Queries) ListStaleAttempts ¶ added in v0.49.4
func (q *Queries) ListStaleAttempts(ctx context.Context, arg ListStaleAttemptsParams) ([]AgentGoalAttempt, error)
Lease-expired attempts whose lease is a liveness signal. An attempt heartbeated by a River worker (every execution attempt, and an autonomous decomposition attempt) carries a forward-moving lease, so an expired lease means a genuine orphan. Interactive decomposition attempts (planned in a session, never enqueued/heartbeated) carry a NULL lease and are skipped by the IS NOT NULL guard, so the reaper never bounces an active composite back to draft mid-planning.
func (*Queries) ListStaleLibraryDerivation ¶ added in v0.63.0
func (q *Queries) ListStaleLibraryDerivation(ctx context.Context, arg ListStaleLibraryDerivationParams) ([]ListStaleLibraryDerivationRow, error)
func (*Queries) ListStaleReflectKnowledgeForCurator ¶ added in v0.60.0
func (q *Queries) ListStaleReflectKnowledgeForCurator(ctx context.Context, arg ListStaleReflectKnowledgeForCuratorParams) ([]ListStaleReflectKnowledgeForCuratorRow, error)
The activity gate intentionally means "at least one non-archived conversation had activity after this item was last used"; it does not assert recent activity relative to the curator run time.
func (*Queries) ListStaleReflectSkillsForCurator ¶ added in v0.60.0
func (q *Queries) ListStaleReflectSkillsForCurator(ctx context.Context, arg ListStaleReflectSkillsForCuratorParams) ([]ListStaleReflectSkillsForCuratorRow, error)
The same activity gate applies here: at least one non-archived conversation had activity after the skill was last used.
func (*Queries) ListSummariesByIDs ¶ added in v0.41.0
func (q *Queries) ListSummariesByIDs(ctx context.Context, arg ListSummariesByIDsParams) ([]CtxSummary, error)
func (*Queries) ListSummariesNeedingEmbedding ¶ added in v0.50.3
func (q *Queries) ListSummariesNeedingEmbedding(ctx context.Context, arg ListSummariesNeedingEmbeddingParams) ([]ListSummariesNeedingEmbeddingRow, error)
Backfill candidates for summaries; see ListMessagesNeedingEmbedding. Summary content is immutable, so missing or model-mismatch are the only cases. ASCII.
func (*Queries) ListSummaryParentsBySummaryIDs ¶ added in v0.46.0
func (*Queries) ListToolOverridesForAgentContext ¶ added in v0.60.0
func (q *Queries) ListToolOverridesForAgentContext(ctx context.Context, arg ListToolOverridesForAgentContextParams) ([]ToolOverride, error)
ListToolOverridesForAgentContext returns rows visible to one user and agent.
func (*Queries) ListUnreadArticlesOlderThan ¶
func (q *Queries) ListUnreadArticlesOlderThan(ctx context.Context, arg ListUnreadArticlesOlderThanParams) ([]RecallyArticle, error)
func (*Queries) ListUnrepliedGroupToolCallContents ¶ added in v0.65.0
func (q *Queries) ListUnrepliedGroupToolCallContents(ctx context.Context, arg ListUnrepliedGroupToolCallContentsParams) ([]ListUnrepliedGroupToolCallContentsRow, error)
The public transcript records only posts. This bounded read recovers the names of tools used by the latest silent or held turn after the agent's last accepted turn, without exposing its private arguments or results.
func (*Queries) ListUserAgentMemoriesByUser ¶
func (*Queries) ListUserAgents ¶
func (*Queries) ListVaultEntriesByScope ¶ added in v0.48.0
func (q *Queries) ListVaultEntriesByScope(ctx context.Context, arg ListVaultEntriesByScopeParams) ([]VaultEntry, error)
func (*Queries) ListVaultEntriesForRuntime ¶ added in v0.48.0
func (q *Queries) ListVaultEntriesForRuntime(ctx context.Context, arg ListVaultEntriesForRuntimeParams) ([]VaultEntry, error)
Keep this precedence in sync with vault.Service.LoadEnvForAgent's merge loop.
func (*Queries) ListWebhookForUser ¶ added in v0.61.0
func (*Queries) ListWorkflowRuns ¶ added in v0.60.0
func (q *Queries) ListWorkflowRuns(ctx context.Context, arg ListWorkflowRunsParams) ([]ListWorkflowRunsRow, error)
ListWorkflowRuns joins the root goal so the API can report the run's outcome (goal lifecycle) alongside the instantiation status. LEFT JOIN: a claimed run has no root goal yet.
func (*Queries) ListWorkflowVersions ¶ added in v0.60.0
func (q *Queries) ListWorkflowVersions(ctx context.Context, arg ListWorkflowVersionsParams) ([]AgentWorkflow, error)
func (*Queries) ListWorkflows ¶ added in v0.60.0
func (q *Queries) ListWorkflows(ctx context.Context, arg ListWorkflowsParams) ([]AgentWorkflow, error)
func (*Queries) ListZombieGoals ¶ added in v0.60.0
Liveness backstop: non-terminal goals parked in a state nothing drives. Two classes:
- A pending composite: the dispatcher claims pending LEAVES and decomposes DRAFT composites, so nothing ever picks a composite out of pending. The transition table rejects writing this state; the scan catches legacy rows and out-of-band writes.
- An active goal with no active attempt pointer and no queued/running attempt, where activity cannot come from anywhere else: a leaf is only active while claimed, and an UNPLANNED active composite is only active while its decomposition attempt runs. A planned active composite is excluded -- the rollup drives it off its children.
The updated_at grace keeps a row mid-transition in another tx from reading as a zombie.
func (*Queries) LockConversationForWrite ¶ added in v0.50.0
Transaction-scoped advisory lock serializing per-conversation context writes: the message seq + context-item ordinal allocation in Append, and the compaction writeback that rewrites context items. Those are GetMax->++->insert under Read Committed, which PostgreSQL runs in parallel across writers (and nodes); the in-process striped mutex only serializes within one process. Held until the enclosing tx ends. The 'ctxconv:' prefix keeps unrelated entities out of this conversation's slot in the shared 64-bit lock space.
func (*Queries) LockGoalForWrite ¶ added in v0.50.0
Transaction-scoped advisory lock serializing read-modify-write sequence allocation for one goal. The acceptance ledger seq and attempt_no are each GetMax->+1->insert under Read Committed, which PostgreSQL runs in parallel across writers (and nodes): without this, two writers read the same max and compute the same next value, silently duplicating the acceptance seq (no unique backstop) or colliding on the attempt_no unique index. Held until the enclosing tx ends. The 'goal:' prefix keeps unrelated entities out of this goal's slot in the shared 64-bit lock space (matching AdvisoryXactLock / LockSchedJobForRun).
func (*Queries) LockLibraryChunkSetLifecycle ¶ added in v0.63.0
func (*Queries) LockLibraryFileLifecycle ¶ added in v0.63.0
func (*Queries) LockLibraryQuotaPool ¶ added in v0.63.0
func (*Queries) LockSchedJobForRun ¶ added in v0.50.0
Transaction-scoped advisory lock keyed on a hash of the job ID. Held until the enclosing transaction ends, it serializes concurrent tryStartJobRun calls for the same job so the running-run check and insert below are atomic under Read Committed without a schema-level unique constraint. hashtextextended maps the text id straight to the 64-bit key pg_advisory_xact_lock expects (matching AdvisoryXactLock); a hash collision only serializes two unrelated jobs occasionally, which is harmless.
func (*Queries) MarkConversationTurnCompleted ¶ added in v0.63.0
func (*Queries) MarkConversationTurnStarted ¶ added in v0.63.0
func (*Queries) MarkConversationViewed ¶ added in v0.63.0
func (*Queries) MarkExpiredGroupDispatchFailed ¶ added in v0.65.0
func (q *Queries) MarkExpiredGroupDispatchFailed(ctx context.Context, arg MarkExpiredGroupDispatchFailedParams) (int64, error)
Re-check expiry in the terminal UPDATE. A heartbeat may have renewed the row after the reaper listed it; that live owner must win over a stale snapshot.
func (*Queries) MarkExpiredGroupOutboxFailed ¶ added in v0.65.0
func (*Queries) MarkGoalPlanned ¶ added in v0.50.0
The materialize fence (CAS): stamp planned_at exactly once. A second concurrent materialize gets 0 rows and must treat it as an idempotent no-op, so children are never double-created. Replaces the old materialized revision unique index.
func (*Queries) MarkGroupDispatchCompleted ¶ added in v0.43.0
func (*Queries) MarkGroupDispatchFailed ¶ added in v0.43.0
func (*Queries) MarkGroupDispatchHeld ¶ added in v0.65.0
func (*Queries) MarkGroupDispatchPublishStarted ¶ added in v0.65.0
func (q *Queries) MarkGroupDispatchPublishStarted(ctx context.Context, arg MarkGroupDispatchPublishStartedParams) (int64, error)
Committed before the side effect so a crash is distinguishable from a publish that never began. Cleared again when the publisher returns a real error.
func (*Queries) MarkGroupDispatchPublished ¶ added in v0.65.0
func (*Queries) MarkGroupDispatchSilent ¶ added in v0.65.0
func (*Queries) MarkGroupNudgeChecked ¶ added in v0.65.0
func (q *Queries) MarkGroupNudgeChecked(ctx context.Context, arg MarkGroupNudgeCheckedParams) error
func (*Queries) MarkGroupOutboxCompleted ¶ added in v0.43.0
func (*Queries) MarkGroupOutboxFailed ¶ added in v0.43.0
func (*Queries) MarkLibraryChunkSetFailed ¶ added in v0.63.0
func (*Queries) MarkLibraryChunkSetReady ¶ added in v0.63.0
func (*Queries) MarkLibraryFileFailedWithoutActiveSet ¶ added in v0.63.0
func (*Queries) MaxHeldUpToSeqInChain ¶ added in v0.65.0
func (q *Queries) MaxHeldUpToSeqInChain(ctx context.Context, arg MaxHeldUpToSeqInChainParams) (int64, error)
How far peers had moved when this agent was last held in the current chain. Once a covering successor commits its cursor, that HOLD is no longer owed and must not keep bypassing peer-mention or lap triage on every later wake. Zero means there is no unconsumed HOLD here; the turn is a first attempt.
func (*Queries) MaxPeerMessageSeqAfterSeq ¶ added in v0.65.0
func (q *Queries) MaxPeerMessageSeqAfterSeq(ctx context.Context, arg MaxPeerMessageSeqAfterSeqParams) (int64, error)
Same exclusions as CountPeerMessagesAfterSeq: the two must agree, or a turn is held against a seq the count never saw.
func (*Queries) ProbeCheckCache ¶ added in v0.49.4
func (q *Queries) ProbeCheckCache(ctx context.Context, cacheKey string) (AgentGoalAcceptanceEvent, error)
Check-result cache hit: the latest passing deterministic result for a cache_key. Returns pgx.ErrNoRows on a forced miss (no cached pass).
func (*Queries) PromoteAttempt ¶ added in v0.49.4
func (*Queries) PublishLibraryFileChunkSet ¶ added in v0.63.0
func (*Queries) PurgeExpiredChannelGuest ¶ added in v0.63.0
func (*Queries) RecordSchedulerJobRun ¶
func (q *Queries) RecordSchedulerJobRun(ctx context.Context, arg RecordSchedulerJobRunParams) error
func (*Queries) RefreshSkillUsageOnReflectPatch ¶ added in v0.60.0
func (q *Queries) RefreshSkillUsageOnReflectPatch(ctx context.Context, arg RefreshSkillUsageOnReflectPatchParams) error
func (*Queries) RemoveGroupMember ¶ added in v0.42.0
func (q *Queries) RemoveGroupMember(ctx context.Context, arg RemoveGroupMemberParams) error
func (*Queries) RemoveUserAgent ¶
func (q *Queries) RemoveUserAgent(ctx context.Context, arg RemoveUserAgentParams) error
func (*Queries) RemoveUserAgentAndTouchAgent ¶ added in v0.66.0
func (q *Queries) RemoveUserAgentAndTouchAgent(ctx context.Context, arg RemoveUserAgentAndTouchAgentParams) error
func (*Queries) RenameToolOverridePrefix ¶ added in v0.68.0
func (q *Queries) RenameToolOverridePrefix(ctx context.Context, arg RenameToolOverridePrefixParams) error
RenameToolOverridePrefix rewrites every override row whose tool_name starts with old_prefix to start with new_prefix instead. It is owner-unscoped on purpose: a system registration's rename must migrate every user's override on that server's tools. The prefix comparison uses substr equality rather than LIKE so the underscores inside "mcp__" are never read as wildcards.
func (*Queries) RequeueExpiredGroupDispatch ¶ added in v0.65.0
func (q *Queries) RequeueExpiredGroupDispatch(ctx context.Context, arg RequeueExpiredGroupDispatchParams) (int64, error)
Re-check expiry in the UPDATE and delay the next claim by one heartbeat interval, so the old owner observes its failed CAS and cancels before handoff.
func (*Queries) RequeueExpiredGroupOutbox ¶ added in v0.65.0
func (*Queries) RequeueGroupDispatch ¶ added in v0.43.0
func (*Queries) RequeueGroupOutbox ¶ added in v0.43.0
func (*Queries) RequeueHeldGroupDispatchesAfterAcceptedPost ¶ added in v0.65.0
func (q *Queries) RequeueHeldGroupDispatchesAfterAcceptedPost(ctx context.Context, arg RequeueHeldGroupDispatchesAfterAcceptedPostParams) (int64, error)
Release only peers that actually yielded to this accepted post. Wall-clock timestamps are not causal: clock precision and unrelated state writes can otherwise release a hold from a different turn.
func (*Queries) ResolveWebhookByPublicID ¶ added in v0.61.0
func (*Queries) RestoreKnowledgeFact ¶ added in v0.60.0
func (*Queries) RevokeAuthUserToken ¶
func (*Queries) RevokeOAuthAuthorizationCodesForUserClient ¶ added in v0.60.0
func (q *Queries) RevokeOAuthAuthorizationCodesForUserClient(ctx context.Context, arg RevokeOAuthAuthorizationCodesForUserClientParams) (int64, error)
Burn any outstanding (unconsumed) codes when a user revokes a grant, so a code issued seconds before the revoke cannot be exchanged into a fresh grant.
func (*Queries) RevokeOAuthRefreshFamiliesForUserClient ¶ added in v0.60.0
func (q *Queries) RevokeOAuthRefreshFamiliesForUserClient(ctx context.Context, arg RevokeOAuthRefreshFamiliesForUserClientParams) (int64, error)
User-initiated per-client revoke: kill every family the user holds for a client. One UPDATE covers all the client's access + refresh tokens.
func (*Queries) RevokeOAuthRefreshFamily ¶ added in v0.60.0
Kill one family: reuse detection or a single-grant revoke. Access and refresh tokens in the family fail closed at resolve time by joining revoked_at.
func (*Queries) RevokePersonalAccessToken ¶ added in v0.60.0
func (*Queries) RevokePersonalAccessTokenByUser ¶ added in v0.60.0
func (q *Queries) RevokePersonalAccessTokenByUser(ctx context.Context, userID string) (int64, error)
Cascade-revoke all of a user's PATs (e.g. on account deactivation).
func (*Queries) RevokeProvisionedPersonalAccessTokenByUser ¶ added in v0.63.0
func (*Queries) RevokeProvisioningToken ¶ added in v0.63.0
func (*Queries) RotateAuthUserToken ¶
func (*Queries) RotateWebhook ¶ added in v0.61.0
func (*Queries) SearchArticleEmbeddings ¶ added in v0.50.3
func (q *Queries) SearchArticleEmbeddings(ctx context.Context, arg SearchArticleEmbeddingsParams) ([]SearchArticleEmbeddingsRow, error)
Vector KNN over article embeddings, scoped to user_id (articles carry user_id directly, no conversation join). WHERE model pins the vector space; ORDER BY the <=> operator drives the HNSW cosine index. score is cosine similarity (1 - distance), higher is better. saved_at, id break ties. Keep ASCII.
func (*Queries) SearchArticles ¶
func (q *Queries) SearchArticles(ctx context.Context, arg SearchArticlesParams) ([]SearchArticlesRow, error)
Multi-field BM25 search over title/summary/tags/author via pg_search. Each field is matched with paradedb.match, which tokenizes the raw user text with the jieba tokenizer (dictionary + statistical CJK word segmentation, CJK matches natively with no fallback tier) and never errors on punctuation. Per-field relevance is weighted natively with paradedb.boost (title 3x, tags 2x, summary/author 1x): boost scales each field's BM25 contribution to the row score, so a title hit outranks a tags hit outranks a body/author hit, with no CASE multiplier on the whole row. snippet highlights the title. match is raw user text. saved_at, id break score ties deterministically so identical queries return a stable order.
func (*Queries) SearchDeliveredGroupRecall ¶ added in v0.65.0
func (q *Queries) SearchDeliveredGroupRecall(ctx context.Context, arg SearchDeliveredGroupRecallParams) ([]SearchDeliveredGroupRecallRow, error)
The group and trigger sequence come only from the trusted turn context. BM25 indexes text and the event-time display-name snapshot, while the canonical group/seq unique index narrows the visibility boundary.
func (*Queries) SearchLibraryChunks ¶ added in v0.64.0
func (q *Queries) SearchLibraryChunks(ctx context.Context, arg SearchLibraryChunksParams) ([]SearchLibraryChunksRow, error)
Search only the active, published generation of files visible to the trusted (user, agent) runtime identity. Keeping the complete owner predicate inside this one BM25 query prevents an unauthorized candidate from ever leaving SQL. The score stays inside SQL; only safe evidence fields cross the service boundary. UUID is a deterministic tie-breaker for equal BM25 scores.
func (*Queries) SearchMessageEmbeddings ¶ added in v0.50.3
func (q *Queries) SearchMessageEmbeddings(ctx context.Context, arg SearchMessageEmbeddingsParams) ([]SearchMessageEmbeddingsRow, error)
Exact KNN over the complete authorized candidate set. Materializing scope, archive, and model filters before ordering deliberately prevents a global approximate index walk from dropping legal rows behind foreign candidates. The complete SQL order makes every LIMIT deterministic, including distance ties, before the Go fusion layer sees the results.
func (*Queries) SearchMessages ¶
func (q *Queries) SearchMessages(ctx context.Context, arg SearchMessagesParams) ([]SearchMessagesRow, error)
Spans every active conversation of the current (user_id, agent_id). Joins ctx_conversation to pin the scope and surface provenance (session_id, title). Global ORDER BY score + LIMIT keeps the best matches across the merged corpus, not per-conversation truncations. Lexical ranking is pg_search BM25; paradedb.match tokenizes the raw user text with the jieba tokenizer (dictionary + statistical CJK word segmentation, so CJK matches natively with no fallback tier) and never errors on punctuation or query-syntax characters. The match arg is the raw user text. Multi-term queries are OR'd and ranked by BM25, which sinks weak partial matches below strong full matches. created_at, id break score ties deterministically: cross-source RRF uses each row's rank, so a stable order keeps the same query from reshuffling the merge.
func (*Queries) SearchSummaries ¶
func (q *Queries) SearchSummaries(ctx context.Context, arg SearchSummariesParams) ([]SearchSummariesRow, error)
Spans every active conversation of the current (user_id, agent_id); see SearchMessages. Lexical ranking is pg_search BM25; paradedb.match tokenizes the raw user text with the jieba tokenizer (dictionary + statistical CJK word segmentation, CJK matches natively) and never errors on punctuation. The match arg is the raw user text. Stable score tie-break (see SearchMessages): content time, then id, so the per-source rank that cross-source RRF consumes is deterministic.
func (*Queries) SearchSummaryEmbeddings ¶ added in v0.50.3
func (q *Queries) SearchSummaryEmbeddings(ctx context.Context, arg SearchSummaryEmbeddingsParams) ([]SearchSummaryEmbeddingsRow, error)
Exact KNN over the complete authorized candidate set; see the message query for why scope is materialized before distance ordering. Summary content time and id complete the stable order before LIMIT.
func (*Queries) SeedAgent ¶ added in v0.60.1
func (q *Queries) SeedAgent(ctx context.Context, arg SeedAgentParams) error
func (*Queries) SetAttemptGaps ¶ added in v0.49.4
func (q *Queries) SetAttemptGaps(ctx context.Context, arg SetAttemptGapsParams) error
func (*Queries) SetAttemptRepairRounds ¶ added in v0.60.0
func (q *Queries) SetAttemptRepairRounds(ctx context.Context, arg SetAttemptRepairRoundsParams) error
func (*Queries) SetGoalAcceptanceState ¶ added in v0.49.4
func (*Queries) SetGoalPlan ¶ added in v0.50.0
func (q *Queries) SetGoalPlan(ctx context.Context, arg SetGoalPlanParams) error
Write a composite's decomposition plan (children + edges). Set by a decomposition attempt before materialize; for review_policy='human' the plan sits here while the goal is blocked(needs_plan_approval) until a human acts.
func (*Queries) SetGroupDispatchCaps ¶ added in v0.65.0
func (q *Queries) SetGroupDispatchCaps(ctx context.Context, arg SetGroupDispatchCapsParams) (CtxGroupState, error)
func (*Queries) SetGroupDispatchResultMessage ¶ added in v0.47.0
func (*Queries) SetGroupMessageDeliveryState ¶ added in v0.65.0
func (q *Queries) SetGroupMessageDeliveryState(ctx context.Context, arg SetGroupMessageDeliveryStateParams) (CtxGroupMessage, error)
func (*Queries) SetMediaBaselineIfAbsent ¶ added in v0.66.0
func (q *Queries) SetMediaBaselineIfAbsent(ctx context.Context, arg SetMediaBaselineIfAbsentParams) (int64, error)
First write wins: the baseline of one media object is rendered once and then immutable. Zero affected rows means another reader described the same bytes first (or the row is not this owner's); the caller re-reads and adopts what is already stored rather than overwriting it with an equally valid description.
func (*Queries) SetSchedJobRunRootGoal ¶ added in v0.60.0
func (q *Queries) SetSchedJobRunRootGoal(ctx context.Context, arg SetSchedJobRunRootGoalParams) error
func (*Queries) SetWorkflowRunRoot ¶ added in v0.60.0
func (*Queries) SetWorkflowRunStatus ¶ added in v0.60.0
func (q *Queries) SetWorkflowRunStatus(ctx context.Context, arg SetWorkflowRunStatusParams) error
func (*Queries) StampGoalWorkflow ¶ added in v0.60.0
func (q *Queries) StampGoalWorkflow(ctx context.Context, arg StampGoalWorkflowParams) error
Mark composite children whose sub-plan is frozen by a workflow. The decomposition dispatcher filters workflow_id IS NULL, so stamped children are never picked up for autonomous replanning between walk transactions. Runs in the same tx as the parent layer materialize so the exclusion is atomic.
func (*Queries) SubmitAttempt ¶ added in v0.49.4
func (*Queries) TombstoneLibraryFile ¶ added in v0.63.0
func (*Queries) TouchKnowledgeUsage ¶ added in v0.60.0
func (q *Queries) TouchKnowledgeUsage(ctx context.Context, arg TouchKnowledgeUsageParams) error
func (*Queries) TouchLibraryFileDerivation ¶ added in v0.63.0
func (*Queries) TouchReflectSkillRuntimeUse ¶ added in v0.60.0
func (*Queries) TransitionGoalLifecycle ¶ added in v0.49.4
func (*Queries) UnarchiveGoal ¶ added in v0.49.4
func (*Queries) UpdateAgent ¶
func (q *Queries) UpdateAgent(ctx context.Context, arg UpdateAgentParams) error
func (*Queries) UpdateAgentIfVersion ¶ added in v0.66.0
func (*Queries) UpdateAgentSkillPolicy ¶ added in v0.64.0
func (q *Queries) UpdateAgentSkillPolicy(ctx context.Context, arg UpdateAgentSkillPolicyParams) error
func (*Queries) UpdateArticle ¶
func (q *Queries) UpdateArticle(ctx context.Context, arg UpdateArticleParams) (RecallyArticle, error)
func (*Queries) UpdateAuthUserTokenLastUsed ¶
func (*Queries) UpdateChannel ¶ added in v0.61.0
func (*Queries) UpdateChannelGuestActivityByExternalID ¶ added in v0.63.0
func (q *Queries) UpdateChannelGuestActivityByExternalID(ctx context.Context, arg UpdateChannelGuestActivityByExternalIDParams) (ChannelGuest, error)
func (*Queries) UpdateConversationBootstrapped ¶
func (q *Queries) UpdateConversationBootstrapped(ctx context.Context, arg UpdateConversationBootstrappedParams) error
func (*Queries) UpdateConversationInfoBySessionID ¶ added in v0.46.0
func (q *Queries) UpdateConversationInfoBySessionID(ctx context.Context, arg UpdateConversationInfoBySessionIDParams) (int64, error)
Generic metadata saves never change lifecycle state and only update a row while it is active. Archival has its own one-way operation above.
func (*Queries) UpdateConversationKindProject ¶ added in v0.34.0
func (q *Queries) UpdateConversationKindProject(ctx context.Context, arg UpdateConversationKindProjectParams) error
func (*Queries) UpdateConversationLastActive ¶
func (q *Queries) UpdateConversationLastActive(ctx context.Context, arg UpdateConversationLastActiveParams) error
func (*Queries) UpdateConversationTitle ¶
func (q *Queries) UpdateConversationTitle(ctx context.Context, arg UpdateConversationTitleParams) error
func (*Queries) UpdateConversationTitleBySessionID ¶
func (q *Queries) UpdateConversationTitleBySessionID(ctx context.Context, arg UpdateConversationTitleBySessionIDParams) error
func (*Queries) UpdateConversationTurnMetaBySessionID ¶ added in v0.61.0
func (q *Queries) UpdateConversationTurnMetaBySessionID(ctx context.Context, arg UpdateConversationTurnMetaBySessionIDParams) (int64, error)
The turn path's only write to a conversation row, guarded on that row still being active. A `/new` rotation can archive the session after a turn resolved it — auto-compaction widens that window to minutes — and UpdateConversationInfoBySessionID would replay the turn-start snapshot's `archived = false` over it. A resurrected kind=chat row then wins its binding's newest-match lookup and drags the chat back into a conversation the user already left. So this statement never mentions `archived`, `kind`, or `project_id`, and `archived = false` in the predicate makes the check and the write one atomic step: zero rows means the chat has moved on.
Title, channel, and group_id are adopted only into a blank stored value, so a rename or a rebind that landed mid-turn is never clobbered by the turn's stale snapshot either.
func (*Queries) UpdateFeed ¶ added in v0.43.0
func (q *Queries) UpdateFeed(ctx context.Context, arg UpdateFeedParams) (RecallyFeed, error)
func (*Queries) UpdateFeedEntry ¶ added in v0.43.0
func (q *Queries) UpdateFeedEntry(ctx context.Context, arg UpdateFeedEntryParams) (RecallyFeedEntry, error)
func (*Queries) UpdateGoalIntent ¶ added in v0.49.4
func (q *Queries) UpdateGoalIntent(ctx context.Context, arg UpdateGoalIntentParams) error
func (*Queries) UpdateGroupMessageProjection ¶ added in v0.66.0
func (q *Queries) UpdateGroupMessageProjection(ctx context.Context, arg UpdateGroupMessageProjectionParams) (int64, error)
A group image renders its baseline lazily, on the first turn that reads the message. Both projections of the same blocks are rewritten together so the plain-text column and content_blocks can never disagree.
Compare-and-set on both projections the caller read: two agents can wake on the same message and render it concurrently, and a blind write would let the slower one clobber the faster one's result. Both columns are in the condition because the baseline now lives on ctx_media: rendering changes only the text projection, so content_blocks alone no longer distinguishes the state the caller read from the state a racing writer left. Zero affected rows means someone else already wrote a projection for this message, so this caller drops its own; anything it rendered that the winner did not will be rendered again on the next wake.
func (*Queries) UpdateGroupName ¶ added in v0.43.0
func (q *Queries) UpdateGroupName(ctx context.Context, arg UpdateGroupNameParams) (CtxGroupState, error)
func (*Queries) UpdateMCPServerByScope ¶ added in v0.60.0
func (*Queries) UpdateMCPServerByScopeIfVersion ¶ added in v0.66.0
func (*Queries) UpdateMCPServerEnabled ¶ added in v0.60.0
func (q *Queries) UpdateMCPServerEnabled(ctx context.Context, arg UpdateMCPServerEnabledParams) error
func (*Queries) UpdateMCPServerMetadata ¶ added in v0.68.0
func (q *Queries) UpdateMCPServerMetadata(ctx context.Context, arg UpdateMCPServerMetadataParams) error
UpdateMCPServerMetadata rewrites the metadata JSONB (OAuth client identity lives there). This is a user-editable write, so it sets updated_at like the other registration mutations.
func (*Queries) UpdateMCPServerProbeResult ¶ added in v0.68.0
func (q *Queries) UpdateMCPServerProbeResult(ctx context.Context, arg UpdateMCPServerProbeResultParams) (McpServer, error)
Probe writes must NOT set updated_at: a probe is an observation, not a user edit, and the opaque Version() used for If-Match must not change when only the probe result changed.
func (*Queries) UpdateMCPServerStatus ¶ added in v0.68.0
func (q *Queries) UpdateMCPServerStatus(ctx context.Context, arg UpdateMCPServerStatusParams) error
func (*Queries) UpdateOAuthAccessTokenLastUsed ¶ added in v0.60.0
func (*Queries) UpdateOAuthClientSecret ¶ added in v0.60.0
func (*Queries) UpdatePersonalAccessTokenLastUsed ¶ added in v0.60.0
Throttled to at most one write per 5 minutes, mirroring auth_user_token, so a hot token does not write the row on every API request.
func (*Queries) UpdateProject ¶ added in v0.34.0
func (*Queries) UpdateProvider ¶
func (q *Queries) UpdateProvider(ctx context.Context, arg UpdateProviderParams) error
func (*Queries) UpdateProviderIfVersion ¶ added in v0.66.0
func (*Queries) UpdateSchedJobRun ¶
func (q *Queries) UpdateSchedJobRun(ctx context.Context, arg UpdateSchedJobRunParams) error
func (*Queries) UpdateSchedulerJob ¶
func (q *Queries) UpdateSchedulerJob(ctx context.Context, arg UpdateSchedulerJobParams) error
func (*Queries) UpdateToolOverrideIfVersion ¶ added in v0.66.0
func (q *Queries) UpdateToolOverrideIfVersion(ctx context.Context, arg UpdateToolOverrideIfVersionParams) (ToolOverride, error)
func (*Queries) UpdateUserActive ¶ added in v0.38.0
func (q *Queries) UpdateUserActive(ctx context.Context, arg UpdateUserActiveParams) error
func (*Queries) UpdateUserRole ¶ added in v0.38.0
func (q *Queries) UpdateUserRole(ctx context.Context, arg UpdateUserRoleParams) error
func (*Queries) UpdateWebhookForUser ¶ added in v0.61.0
func (*Queries) UpsertAgentConstraints ¶
func (q *Queries) UpsertAgentConstraints(ctx context.Context, arg UpsertAgentConstraintsParams) (CtxAgentMemory, error)
func (*Queries) UpsertAgentProviderCredential ¶ added in v0.61.0
func (q *Queries) UpsertAgentProviderCredential(ctx context.Context, arg UpsertAgentProviderCredentialParams) (AgentProviderCredential, error)
Rotation writes the new ciphertext atomically; on conflict the existing row's key is replaced in a single statement, so a failed write leaves the old row untouched.
func (*Queries) UpsertAgentSoul ¶
func (q *Queries) UpsertAgentSoul(ctx context.Context, arg UpsertAgentSoulParams) error
func (*Queries) UpsertAgentSoulVersioned ¶
func (q *Queries) UpsertAgentSoulVersioned(ctx context.Context, arg UpsertAgentSoulVersionedParams) (CtxAgentMemory, error)
func (*Queries) UpsertArticleContent ¶ added in v0.60.0
func (q *Queries) UpsertArticleContent(ctx context.Context, arg UpsertArticleContentParams) error
func (*Queries) UpsertArticleEmbedding ¶ added in v0.50.3
func (q *Queries) UpsertArticleEmbedding(ctx context.Context, arg UpsertArticleEmbeddingParams) error
Semantic-search vector for one article; see UpsertMessageEmbedding. Keep ASCII.
func (*Queries) UpsertAuthOAuthProvider ¶ added in v0.27.0
func (q *Queries) UpsertAuthOAuthProvider(ctx context.Context, arg UpsertAuthOAuthProviderParams) error
func (*Queries) UpsertChatAgent ¶
func (q *Queries) UpsertChatAgent(ctx context.Context, arg UpsertChatAgentParams) error
func (*Queries) UpsertDigest ¶ added in v0.30.0
func (q *Queries) UpsertDigest(ctx context.Context, arg UpsertDigestParams) (RecallyDigest, error)
func (*Queries) UpsertIngestCursor ¶ added in v0.42.0
func (q *Queries) UpsertIngestCursor(ctx context.Context, arg UpsertIngestCursorParams) error
func (*Queries) UpsertKnowledgeUsage ¶ added in v0.60.0
func (q *Queries) UpsertKnowledgeUsage(ctx context.Context, arg UpsertKnowledgeUsageParams) error
func (*Queries) UpsertManifestPluginOverride ¶ added in v0.38.0
func (q *Queries) UpsertManifestPluginOverride(ctx context.Context, arg UpsertManifestPluginOverrideParams) error
func (*Queries) UpsertMessageEmbedding ¶ added in v0.50.3
func (q *Queries) UpsertMessageEmbedding(ctx context.Context, arg UpsertMessageEmbeddingParams) error
Write or replace the semantic-search vector for one message. model is the vector-space key every KNN query must filter on; content_hash is the hash of the embedded text so a later pass can spot rows whose source content changed. Keep this comment ASCII (sqlc rewriter offsets).
func (*Queries) UpsertModelCatalog ¶ added in v0.66.0
func (q *Queries) UpsertModelCatalog(ctx context.Context, arg UpsertModelCatalogParams) error
func (*Queries) UpsertPlugin ¶
func (q *Queries) UpsertPlugin(ctx context.Context, arg UpsertPluginParams) error
func (*Queries) UpsertPluginConfig ¶ added in v0.63.2
func (q *Queries) UpsertPluginConfig(ctx context.Context, arg UpsertPluginConfigParams) error
func (*Queries) UpsertPluginEnabled ¶ added in v0.63.2
func (q *Queries) UpsertPluginEnabled(ctx context.Context, arg UpsertPluginEnabledParams) error
Field-scoped writes. The whole-row UpsertPlugin above is a lost update when two writers touch the same plugin: the admin kill switch and a channel's credential mirror are exactly that pair. These update one column and leave the other as it is; the VALUES list only decides what a first insert gets.
func (*Queries) UpsertPluginStateEntry ¶
func (q *Queries) UpsertPluginStateEntry(ctx context.Context, arg UpsertPluginStateEntryParams) error
func (*Queries) UpsertProfileEntries ¶ added in v0.42.0
func (q *Queries) UpsertProfileEntries(ctx context.Context, arg UpsertProfileEntriesParams) (CtxAgentMemory, error)
func (*Queries) UpsertProviderModelsCache ¶ added in v0.60.0
func (q *Queries) UpsertProviderModelsCache(ctx context.Context, arg UpsertProviderModelsCacheParams) error
Replace the fetched model IDs for one provider; other providers are untouched.
func (*Queries) UpsertSetting ¶
func (q *Queries) UpsertSetting(ctx context.Context, arg UpsertSettingParams) error
func (*Queries) UpsertSettingIfValue ¶ added in v0.66.0
func (*Queries) UpsertSkillUsageOnReflectCreate ¶ added in v0.60.0
func (q *Queries) UpsertSkillUsageOnReflectCreate(ctx context.Context, arg UpsertSkillUsageOnReflectCreateParams) error
func (*Queries) UpsertSummaryEmbedding ¶ added in v0.50.3
func (q *Queries) UpsertSummaryEmbedding(ctx context.Context, arg UpsertSummaryEmbeddingParams) error
Semantic-search vector for one summary; see UpsertMessageEmbedding. Keep ASCII.
func (*Queries) UpsertToolOverride ¶ added in v0.60.0
func (q *Queries) UpsertToolOverride(ctx context.Context, arg UpsertToolOverrideParams) (ToolOverride, error)
func (*Queries) UpsertUserAgentMemory ¶
func (q *Queries) UpsertUserAgentMemory(ctx context.Context, arg UpsertUserAgentMemoryParams) error
func (*Queries) UpsertUserAgentMemoryVersioned ¶
func (q *Queries) UpsertUserAgentMemoryVersioned(ctx context.Context, arg UpsertUserAgentMemoryVersionedParams) (CtxAgentMemory, error)
func (*Queries) UpsertVaultEntryByScope ¶ added in v0.48.0
func (q *Queries) UpsertVaultEntryByScope(ctx context.Context, arg UpsertVaultEntryByScopeParams) (VaultEntry, error)
type RecallyArticle ¶ added in v0.38.0
type RecallyArticle struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Url string `json:"url"`
CanonicalUrl string `json:"canonical_url"`
SourceType string `json:"source_type"`
Title string `json:"title"`
Author string `json:"author"`
Summary string `json:"summary"`
Tags string `json:"tags"`
Status string `json:"status"`
Starred bool `json:"starred"`
FilePath string `json:"file_path"`
Metadata json.RawMessage `json:"metadata"`
PublishedAt pgtype.Timestamptz `json:"published_at"`
SavedAt time.Time `json:"saved_at"`
ReadAt pgtype.Timestamptz `json:"read_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RecallyArticleContent ¶ added in v0.60.0
type RecallyArticleEmbedding ¶ added in v0.50.0
type RecallyDigest ¶ added in v0.30.0
type RecallyDigest struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Date string `json:"date"`
Narrative string `json:"narrative"`
SavedYesterdayCount int64 `json:"saved_yesterday_count"`
UnreadCount int64 `json:"unread_count"`
ReadCount int64 `json:"read_count"`
ArchivedCount int64 `json:"archived_count"`
StarredCount int64 `json:"starred_count"`
WorthRevisitingCount int64 `json:"worth_revisiting_count"`
TotalArticles int64 `json:"total_articles"`
TopTags json.RawMessage `json:"top_tags"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RecallyDigestArticle ¶ added in v0.30.0
type RecallyFeed ¶ added in v0.43.0
type RecallyFeed struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Url string `json:"url"`
Kind string `json:"kind"`
Metadata json.RawMessage `json:"metadata"`
Title string `json:"title"`
Description string `json:"description"`
CheckInterval string `json:"check_interval"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastEtag string `json:"last_etag"`
LastModified string `json:"last_modified"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type RecallyFeedEntry ¶ added in v0.43.0
type RecallyFeedEntry struct {
ID string `json:"id"`
FeedID string `json:"feed_id"`
Guid string `json:"guid"`
Url string `json:"url"`
Title string `json:"title"`
Status string `json:"status"`
ArticleID pgtype.Text `json:"article_id"`
Attempts int64 `json:"attempts"`
ErrorMsg string `json:"error_msg"`
DiscoveredAt time.Time `json:"discovered_at"`
ProcessedAt pgtype.Timestamptz `json:"processed_at"`
}
type RefreshSkillUsageOnReflectPatchParams ¶ added in v0.60.0
type RemoveGroupMemberParams ¶ added in v0.42.0
type RemoveUserAgentAndTouchAgentParams ¶ added in v0.66.0
type RemoveUserAgentParams ¶
type RenameToolOverridePrefixParams ¶ added in v0.68.0
type RequeueExpiredGroupDispatchParams ¶ added in v0.65.0
type RequeueExpiredGroupDispatchParams struct {
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
Now pgtype.Timestamptz `json:"now"`
}
type RequeueExpiredGroupOutboxParams ¶ added in v0.65.0
type RequeueExpiredGroupOutboxParams struct {
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
Now pgtype.Timestamptz `json:"now"`
}
type RequeueGroupDispatchParams ¶ added in v0.43.0
type RequeueGroupDispatchParams struct {
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
}
type RequeueGroupOutboxParams ¶ added in v0.43.0
type RequeueGroupOutboxParams struct {
NextAttemptAt pgtype.Timestamptz `json:"next_attempt_at"`
LastError string `json:"last_error"`
ID string `json:"id"`
AttemptCount int64 `json:"attempt_count"`
}
type RequeueHeldGroupDispatchesAfterAcceptedPostParams ¶ added in v0.65.0
type RestoreKnowledgeFactParams ¶ added in v0.60.0
type RevokeOAuthAuthorizationCodesForUserClientParams ¶ added in v0.60.0
type RevokeOAuthRefreshFamiliesForUserClientParams ¶ added in v0.60.0
type RevokePersonalAccessTokenParams ¶ added in v0.60.0
type RevokeProvisioningTokenParams ¶ added in v0.63.0
type RotateWebhookParams ¶ added in v0.61.0
type SchedJob ¶
type SchedJob struct {
ID string `json:"id"`
OwnerKind string `json:"owner_kind"`
ExecScope string `json:"exec_scope"`
JobKey string `json:"job_key"`
Name string `json:"name"`
Description string `json:"description"`
ScheduleCron string `json:"schedule_cron"`
ScheduleEvery string `json:"schedule_every"`
ScheduleAt string `json:"schedule_at"`
Message string `json:"message"`
Payload json.RawMessage `json:"payload"`
SessionMode string `json:"session_mode"`
Enabled bool `json:"enabled"`
AgentID pgtype.Text `json:"agent_id"`
UserID pgtype.Text `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastRunAt pgtype.Timestamptz `json:"last_run_at"`
LastError string `json:"last_error"`
DispatchKind string `json:"dispatch_kind"`
IdempotencyKey pgtype.Text `json:"idempotency_key"`
}
type SchedJobRun ¶
type SchedJobRun struct {
ID string `json:"id"`
JobID string `json:"job_id"`
SessionID string `json:"session_id"`
Status string `json:"status"`
StartedAt time.Time `json:"started_at"`
FinishedAt pgtype.Timestamptz `json:"finished_at"`
Error string `json:"error"`
Output string `json:"output"`
UserID pgtype.Text `json:"user_id"`
RootGoalID pgtype.Text `json:"root_goal_id"`
}
type SearchArticleEmbeddingsParams ¶ added in v0.50.3
type SearchArticleEmbeddingsParams struct {
Query pgvector_go.Vector `json:"query"`
Model string `json:"model"`
UserID string `json:"user_id"`
Limit int32 `json:"limit"`
}
type SearchArticleEmbeddingsRow ¶ added in v0.50.3
type SearchArticleEmbeddingsRow struct {
RecallyArticle RecallyArticle `json:"recally_article"`
Score float64 `json:"score"`
}
type SearchArticlesParams ¶
type SearchArticlesRow ¶ added in v0.46.0
type SearchArticlesRow struct {
RecallyArticle RecallyArticle `json:"recally_article"`
Snippet string `json:"snippet"`
Score float64 `json:"score"`
}
type SearchDeliveredGroupRecallParams ¶ added in v0.65.0
type SearchDeliveredGroupRecallRow ¶ added in v0.65.0
type SearchDeliveredGroupRecallRow struct {
ID string `json:"id"`
Seq int64 `json:"seq"`
ActorType string `json:"actor_type"`
ActorDisplayName pgtype.Text `json:"actor_display_name"`
Content string `json:"content"`
CreatedAt time.Time `json:"created_at"`
Snippet string `json:"snippet"`
Score float64 `json:"score"`
}
type SearchLibraryChunksParams ¶ added in v0.64.0
type SearchLibraryChunksRow ¶ added in v0.64.0
type SearchLibraryChunksRow struct {
FileName string `json:"file_name"`
Content string `json:"content"`
Locator json.RawMessage `json:"locator"`
}
type SearchMessageEmbeddingsParams ¶ added in v0.50.3
type SearchMessageEmbeddingsRow ¶ added in v0.50.3
type SearchMessageEmbeddingsRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
CreatedAt time.Time `json:"created_at"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
SessionID string `json:"session_id"`
ConversationTitle pgtype.Text `json:"conversation_title"`
Score float64 `json:"score"`
}
type SearchMessagesParams ¶
type SearchMessagesRow ¶ added in v0.46.0
type SearchMessagesRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Seq int64 `json:"seq"`
Role string `json:"role"`
EventType string `json:"event_type"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
CreatedAt time.Time `json:"created_at"`
ActorType string `json:"actor_type"`
ActorID pgtype.Text `json:"actor_id"`
SourceSessionID pgtype.Text `json:"source_session_id"`
InboxID pgtype.Text `json:"inbox_id"`
OriginGroupMessageID pgtype.Text `json:"origin_group_message_id"`
SessionID string `json:"session_id"`
ConversationTitle pgtype.Text `json:"conversation_title"`
Snippet string `json:"snippet"`
Score float64 `json:"score"`
}
type SearchSummariesParams ¶
type SearchSummariesRow ¶ added in v0.46.0
type SearchSummariesRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Kind string `json:"kind"`
Depth int64 `json:"depth"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
EarliestAt pgtype.Timestamptz `json:"earliest_at"`
LatestAt pgtype.Timestamptz `json:"latest_at"`
DescendantCount int64 `json:"descendant_count"`
DescendantTokenCount int64 `json:"descendant_token_count"`
SourceMessageTokenCount int64 `json:"source_message_token_count"`
CreatedAt time.Time `json:"created_at"`
ContainsNonPrincipalInput bool `json:"contains_non_principal_input"`
SessionID string `json:"session_id"`
ConversationTitle pgtype.Text `json:"conversation_title"`
Snippet string `json:"snippet"`
Score float64 `json:"score"`
}
type SearchSummaryEmbeddingsParams ¶ added in v0.50.3
type SearchSummaryEmbeddingsRow ¶ added in v0.50.3
type SearchSummaryEmbeddingsRow struct {
ID string `json:"id"`
ConversationID string `json:"conversation_id"`
Kind string `json:"kind"`
Depth int64 `json:"depth"`
Content string `json:"content"`
TokenCount int64 `json:"token_count"`
EarliestAt pgtype.Timestamptz `json:"earliest_at"`
LatestAt pgtype.Timestamptz `json:"latest_at"`
DescendantCount int64 `json:"descendant_count"`
DescendantTokenCount int64 `json:"descendant_token_count"`
SourceMessageTokenCount int64 `json:"source_message_token_count"`
CreatedAt time.Time `json:"created_at"`
ContainsNonPrincipalInput bool `json:"contains_non_principal_input"`
SessionID string `json:"session_id"`
ConversationTitle pgtype.Text `json:"conversation_title"`
Score float64 `json:"score"`
}
type SeedAgentParams ¶ added in v0.60.1
type SeedAgentParams struct {
ID string `json:"id"`
Name string `json:"name"`
Model string `json:"model"`
SystemPrompt string `json:"system_prompt"`
Workspace string `json:"workspace"`
Sandbox json.RawMessage `json:"sandbox"`
Scope string `json:"scope"`
Enabled bool `json:"enabled"`
SystemSettingsToolsEnabled bool `json:"system_settings_tools_enabled"`
}
type SetAttemptGapsParams ¶ added in v0.49.4
type SetAttemptGapsParams struct {
Gaps json.RawMessage `json:"gaps"`
ID string `json:"id"`
}
type SetAttemptRepairRoundsParams ¶ added in v0.60.0
type SetGoalAcceptanceStateParams ¶ added in v0.49.4
type SetGoalPlanParams ¶ added in v0.50.0
type SetGoalPlanParams struct {
Plan json.RawMessage `json:"plan"`
ID string `json:"id"`
}
type SetGroupDispatchCapsParams ¶ added in v0.65.0
type SetGroupDispatchResultMessageParams ¶ added in v0.47.0
type SetGroupMessageDeliveryStateParams ¶ added in v0.65.0
type SetMediaBaselineIfAbsentParams ¶ added in v0.66.0
type SetSchedJobRunRootGoalParams ¶ added in v0.60.0
type SetWorkflowRunRootParams ¶ added in v0.60.0
type SetWorkflowRunStatusParams ¶ added in v0.60.0
type Skill ¶
type Skill struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Description string `json:"description"`
Status string `json:"status"`
DisableModelInvocation bool `json:"disable_model_invocation"`
Metadata json.RawMessage `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Version int64 `json:"version"`
}
type SkillChangelog ¶ added in v0.60.0
type SkillChangelog struct {
ID string `json:"id"`
SkillID string `json:"skill_id"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Scope string `json:"scope"`
Action string `json:"action"`
VersionBefore pgtype.Int8 `json:"version_before"`
VersionAfter int64 `json:"version_after"`
Metadata json.RawMessage `json:"metadata"`
CreatedAt time.Time `json:"created_at"`
ContentDigest pgtype.Text `json:"content_digest"`
}
type SkillHomeMigration ¶ added in v0.64.0
type SkillHomeMigration struct {
ID string `json:"id"`
State string `json:"state"`
SourceSkillCount int64 `json:"source_skill_count"`
SourceFileCount int64 `json:"source_file_count"`
SourceContentBytes int64 `json:"source_content_bytes"`
SourceInventoryDigest string `json:"source_inventory_digest"`
Inventory json.RawMessage `json:"inventory"`
WritersStoppedAttestedAt time.Time `json:"writers_stopped_attested_at"`
BackupVerifiedAttestedAt time.Time `json:"backup_verified_attested_at"`
CompletedAt time.Time `json:"completed_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type SkillUsage ¶ added in v0.60.0
type StampGoalWorkflowParams ¶ added in v0.60.0
type SubmitAttemptParams ¶ added in v0.49.4
type SubmitAttemptParams struct {
Evidence json.RawMessage `json:"evidence"`
Output json.RawMessage `json:"output"`
ID string `json:"id"`
}
type ToolOverride ¶ added in v0.60.0
type TouchKnowledgeUsageParams ¶ added in v0.60.0
type TouchReflectSkillRuntimeUseParams ¶ added in v0.60.0
type TransitionGoalLifecycleParams ¶ added in v0.49.4
type UpdateAgentIfVersionParams ¶ added in v0.66.0
type UpdateAgentIfVersionParams struct {
Name string `json:"name"`
Model string `json:"model"`
ModelThinking string `json:"model_thinking"`
ModelStrong string `json:"model_strong"`
ModelStrongThinking string `json:"model_strong_thinking"`
ModelFast string `json:"model_fast"`
ModelFastThinking string `json:"model_fast_thinking"`
SystemPrompt string `json:"system_prompt"`
Soul string `json:"soul"`
Workspace string `json:"workspace"`
Sandbox json.RawMessage `json:"sandbox"`
Scope string `json:"scope"`
Enabled bool `json:"enabled"`
SystemSettingsToolsEnabled bool `json:"system_settings_tools_enabled"`
ID string `json:"id"`
UpdatedAt time.Time `json:"updated_at"`
}
type UpdateAgentParams ¶
type UpdateAgentParams struct {
Name string `json:"name"`
Model string `json:"model"`
ModelThinking string `json:"model_thinking"`
ModelStrong string `json:"model_strong"`
ModelStrongThinking string `json:"model_strong_thinking"`
ModelFast string `json:"model_fast"`
ModelFastThinking string `json:"model_fast_thinking"`
SystemPrompt string `json:"system_prompt"`
Soul string `json:"soul"`
Workspace string `json:"workspace"`
Sandbox json.RawMessage `json:"sandbox"`
Scope string `json:"scope"`
Enabled bool `json:"enabled"`
SystemSettingsToolsEnabled bool `json:"system_settings_tools_enabled"`
ID string `json:"id"`
}
type UpdateAgentSkillPolicyParams ¶ added in v0.64.0
type UpdateAgentSkillPolicyParams struct {
EnabledBuiltinSkills json.RawMessage `json:"enabled_builtin_skills"`
ID string `json:"id"`
}
type UpdateArticleParams ¶
type UpdateArticleParams struct {
Title string `json:"title"`
Author string `json:"author"`
Summary string `json:"summary"`
Tags string `json:"tags"`
Status string `json:"status"`
Starred bool `json:"starred"`
FilePath string `json:"file_path"`
Metadata json.RawMessage `json:"metadata"`
PublishedAt pgtype.Timestamptz `json:"published_at"`
ReadAt pgtype.Timestamptz `json:"read_at"`
ID string `json:"id"`
UserID string `json:"user_id"`
}
type UpdateChannelGuestActivityByExternalIDParams ¶ added in v0.63.0
type UpdateChannelParams ¶ added in v0.61.0
type UpdateConversationBootstrappedParams ¶ added in v0.35.3
type UpdateConversationInfoBySessionIDParams ¶ added in v0.46.0
type UpdateConversationInfoBySessionIDParams struct {
Title pgtype.Text `json:"title"`
Kind pgtype.Text `json:"kind"`
ProjectID pgtype.Text `json:"project_id"`
Channel pgtype.Text `json:"channel"`
GroupID pgtype.Text `json:"group_id"`
GuestID pgtype.Text `json:"guest_id"`
SessionID string `json:"session_id"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
}
type UpdateConversationKindProjectParams ¶ added in v0.34.0
type UpdateConversationLastActiveParams ¶ added in v0.35.3
type UpdateConversationTurnMetaBySessionIDParams ¶ added in v0.61.0
type UpdateConversationTurnMetaBySessionIDParams struct {
Title pgtype.Text `json:"title"`
Channel pgtype.Text `json:"channel"`
GroupID pgtype.Text `json:"group_id"`
GuestID pgtype.Text `json:"guest_id"`
SessionID string `json:"session_id"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
}
type UpdateFeedEntryParams ¶ added in v0.43.0
type UpdateFeedParams ¶ added in v0.43.0
type UpdateFeedParams struct {
Title string `json:"title"`
Description string `json:"description"`
Metadata json.RawMessage `json:"metadata"`
CheckInterval string `json:"check_interval"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastEtag string `json:"last_etag"`
LastModified string `json:"last_modified"`
Enabled bool `json:"enabled"`
ID string `json:"id"`
UserID string `json:"user_id"`
}
type UpdateGoalIntentParams ¶ added in v0.49.4
type UpdateGoalIntentParams struct {
Title string `json:"title"`
Intent string `json:"intent"`
AcceptanceContract json.RawMessage `json:"acceptance_contract"`
ConvergencePolicy json.RawMessage `json:"convergence_policy"`
ReviewPolicy string `json:"review_policy"`
Priority string `json:"priority"`
ID string `json:"id"`
}
type UpdateGroupMessageProjectionParams ¶ added in v0.66.0
type UpdateGroupMessageProjectionParams struct {
Content string `json:"content"`
ContentBlocks json.RawMessage `json:"content_blocks"`
ID string `json:"id"`
ExpectedContent string `json:"expected_content"`
ExpectedContentBlocks json.RawMessage `json:"expected_content_blocks"`
}
type UpdateGroupNameParams ¶ added in v0.43.0
type UpdateMCPServerByScopeIfVersionParams ¶ added in v0.66.0
type UpdateMCPServerByScopeIfVersionParams struct {
NewScope string `json:"new_scope"`
NewUserID pgtype.Text `json:"new_user_id"`
NewAgentID pgtype.Text `json:"new_agent_id"`
Name string `json:"name"`
Url string `json:"url"`
Transport string `json:"transport"`
AuthType string `json:"auth_type"`
CredentialRef string `json:"credential_ref"`
Enabled bool `json:"enabled"`
CredentialMode string `json:"credential_mode"`
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
ExpectedUpdatedAt time.Time `json:"expected_updated_at"`
}
type UpdateMCPServerByScopeParams ¶ added in v0.60.0
type UpdateMCPServerByScopeParams struct {
NewScope string `json:"new_scope"`
NewUserID pgtype.Text `json:"new_user_id"`
NewAgentID pgtype.Text `json:"new_agent_id"`
Name string `json:"name"`
Url string `json:"url"`
Transport string `json:"transport"`
AuthType string `json:"auth_type"`
CredentialRef string `json:"credential_ref"`
Enabled bool `json:"enabled"`
CredentialMode string `json:"credential_mode"`
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
}
type UpdateMCPServerEnabledParams ¶ added in v0.60.0
type UpdateMCPServerMetadataParams ¶ added in v0.68.0
type UpdateMCPServerMetadataParams struct {
Metadata json.RawMessage `json:"metadata"`
ID string `json:"id"`
}
type UpdateMCPServerProbeResultParams ¶ added in v0.68.0
type UpdateMCPServerProbeResultParams struct {
Status string `json:"status"`
StatusError string `json:"status_error"`
ProbedAt pgtype.Timestamptz `json:"probed_at"`
Tools json.RawMessage `json:"tools"`
ID string `json:"id"`
}
type UpdateMCPServerStatusParams ¶ added in v0.68.0
type UpdateOAuthClientSecretParams ¶ added in v0.60.0
type UpdateProjectParams ¶ added in v0.34.0
type UpdateProviderIfVersionParams ¶ added in v0.66.0
type UpdateProviderParams ¶
type UpdateSchedJobRunParams ¶
type UpdateSchedulerJobParams ¶
type UpdateSchedulerJobParams struct {
OwnerKind string `json:"owner_kind"`
ExecScope string `json:"exec_scope"`
JobKey string `json:"job_key"`
Name string `json:"name"`
Description string `json:"description"`
ScheduleCron string `json:"schedule_cron"`
ScheduleEvery string `json:"schedule_every"`
ScheduleAt string `json:"schedule_at"`
Message string `json:"message"`
Payload json.RawMessage `json:"payload"`
DispatchKind string `json:"dispatch_kind"`
SessionMode string `json:"session_mode"`
Enabled bool `json:"enabled"`
AgentID pgtype.Text `json:"agent_id"`
UserID pgtype.Text `json:"user_id"`
UpdatedAt time.Time `json:"updated_at"`
LastRunAt pgtype.Timestamptz `json:"last_run_at"`
LastError string `json:"last_error"`
ID string `json:"id"`
}
type UpdateToolOverrideIfVersionParams ¶ added in v0.66.0
type UpdateUserActiveParams ¶ added in v0.38.0
type UpdateUserRoleParams ¶ added in v0.38.0
type UpdateWebhookForUserParams ¶ added in v0.61.0
type UpdateWebhookForUserParams struct {
NameSet bool `json:"name_set"`
Name string `json:"name"`
AgentIDSet bool `json:"agent_id_set"`
AgentID string `json:"agent_id"`
IsEnabledSet bool `json:"is_enabled_set"`
IsEnabled bool `json:"is_enabled"`
WaitTimeoutSecondsSet bool `json:"wait_timeout_seconds_set"`
WaitTimeoutSeconds int32 `json:"wait_timeout_seconds"`
MaxRunTimeoutSecondsSet bool `json:"max_run_timeout_seconds_set"`
MaxRunTimeoutSeconds int32 `json:"max_run_timeout_seconds"`
ID string `json:"id"`
UserID string `json:"user_id"`
}
type UpsertAgentConstraintsParams ¶
type UpsertAgentConstraintsParams struct {
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
Constraints json.RawMessage `json:"constraints"`
}
type UpsertAgentProviderCredentialParams ¶ added in v0.61.0
type UpsertAgentSoulParams ¶
type UpsertArticleContentParams ¶ added in v0.60.0
type UpsertArticleEmbeddingParams ¶ added in v0.50.3
type UpsertArticleEmbeddingParams struct {
ArticleID string `json:"article_id"`
Model string `json:"model"`
ContentHash []byte `json:"content_hash"`
Embedding pgvector_go.Vector `json:"embedding"`
}
type UpsertAuthOAuthProviderParams ¶ added in v0.27.0
type UpsertChatAgentParams ¶
type UpsertDigestParams ¶ added in v0.30.0
type UpsertDigestParams struct {
ID string `json:"id"`
UserID string `json:"user_id"`
Date string `json:"date"`
Narrative string `json:"narrative"`
SavedYesterdayCount int64 `json:"saved_yesterday_count"`
UnreadCount int64 `json:"unread_count"`
ReadCount int64 `json:"read_count"`
ArchivedCount int64 `json:"archived_count"`
StarredCount int64 `json:"starred_count"`
WorthRevisitingCount int64 `json:"worth_revisiting_count"`
TotalArticles int64 `json:"total_articles"`
TopTags json.RawMessage `json:"top_tags"`
}
type UpsertIngestCursorParams ¶ added in v0.42.0
type UpsertKnowledgeUsageParams ¶ added in v0.60.0
type UpsertManifestPluginOverrideParams ¶ added in v0.38.0
type UpsertMessageEmbeddingParams ¶ added in v0.50.3
type UpsertMessageEmbeddingParams struct {
MessageID string `json:"message_id"`
Model string `json:"model"`
ContentHash []byte `json:"content_hash"`
Embedding pgvector_go.Vector `json:"embedding"`
}
type UpsertModelCatalogParams ¶ added in v0.66.0
type UpsertModelCatalogParams struct {
Payload json.RawMessage `json:"payload"`
Etag string `json:"etag"`
SyncedAt time.Time `json:"synced_at"`
}
type UpsertPluginConfigParams ¶ added in v0.63.2
type UpsertPluginEnabledParams ¶ added in v0.63.2
type UpsertPluginParams ¶
type UpsertProfileEntriesParams ¶ added in v0.42.0
type UpsertProfileEntriesParams struct {
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
ProfileEntries json.RawMessage `json:"profile_entries"`
}
type UpsertProviderModelsCacheParams ¶ added in v0.60.0
type UpsertProviderModelsCacheParams struct {
ProviderID string `json:"provider_id"`
Models json.RawMessage `json:"models"`
}
type UpsertSettingIfValueParams ¶ added in v0.66.0
type UpsertSettingParams ¶
type UpsertSkillUsageOnReflectCreateParams ¶ added in v0.60.0
type UpsertSummaryEmbeddingParams ¶ added in v0.50.3
type UpsertSummaryEmbeddingParams struct {
SummaryID string `json:"summary_id"`
Model string `json:"model"`
ContentHash []byte `json:"content_hash"`
Embedding pgvector_go.Vector `json:"embedding"`
}
type UpsertToolOverrideParams ¶ added in v0.60.0
type UpsertVaultEntryByScopeParams ¶ added in v0.48.0
type VaultEntry ¶
type VaultEntry struct {
ID string `json:"id"`
Scope string `json:"scope"`
UserID pgtype.Text `json:"user_id"`
AgentID pgtype.Text `json:"agent_id"`
Name string `json:"name"`
Ciphertext string `json:"ciphertext"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Description pgtype.Text `json:"description"`
}
type VaultUser ¶ added in v0.38.0
VaultUser holds the age key fields the vault service needs from a user record.
type WaiveEdgeParams ¶ added in v0.49.4
type Webhook ¶ added in v0.61.0
type Webhook struct {
ID string `json:"id"`
UserID string `json:"user_id"`
AgentID string `json:"agent_id"`
Name string `json:"name"`
Provider string `json:"provider"`
IsEnabled bool `json:"is_enabled"`
WaitTimeoutSeconds int32 `json:"wait_timeout_seconds"`
MaxRunTimeoutSeconds int32 `json:"max_run_timeout_seconds"`
TokenPublicID string `json:"token_public_id"`
TokenHash string `json:"token_hash"`
TokenLast4 string `json:"token_last4"`
Revision int64 `json:"revision"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
RotatedAt pgtype.Timestamptz `json:"rotated_at"`
}
Source Files
¶
- agent.sql.go
- agent_goal.sql.go
- agent_goal_acceptance_event.sql.go
- agent_goal_attempt.sql.go
- agent_goal_edge.sql.go
- agent_goal_event.sql.go
- agent_goal_health.sql.go
- agent_llm_call.sql.go
- agent_provider_credential.sql.go
- agent_workflow.sql.go
- agent_workflow_run.sql.go
- app_setting.sql.go
- auth_provisioned_user.sql.go
- auth_user.sql.go
- auth_user_agent.sql.go
- auth_user_token.sql.go
- channel.sql.go
- channel_agent.sql.go
- channel_chat_command_receipt.sql.go
- channel_group_member.sql.go
- channel_guest.sql.go
- channel_identity.sql.go
- ctx_agent_memory.sql.go
- ctx_agent_memory_changelog.sql.go
- ctx_agent_memory_snapshot.sql.go
- ctx_conversation.sql.go
- ctx_group.sql.go
- ctx_group_dispatch.sql.go
- ctx_group_ingest.sql.go
- ctx_group_outbox.sql.go
- ctx_item.sql.go
- ctx_media.sql.go
- ctx_message.sql.go
- ctx_session_inbox.sql.go
- ctx_summary.sql.go
- db.go
- email_send_dedup.sql.go
- facts.sql.go
- library.sql.go
- mcp_oauth_flow.sql.go
- mcp_server.sql.go
- model_catalog.sql.go
- models.go
- oauth_access_token.sql.go
- oauth_authorization_code.sql.go
- oauth_client.sql.go
- oauth_refresh_family.sql.go
- oauth_refresh_token.sql.go
- personal_access_token.sql.go
- plugin.sql.go
- plugin_oauth_provider.sql.go
- plugin_override.sql.go
- plugin_state.sql.go
- project.sql.go
- provider.sql.go
- provider_models_cache.sql.go
- recally_article.sql.go
- recally_digest.sql.go
- recally_feed.sql.go
- sched_job.sql.go
- sched_job_run.sql.go
- share.sql.go
- skill.sql.go
- skill_home_migration.sql.go
- tool_override.sql.go
- usage.sql.go
- vault_bridge.go
- vault_entry.sql.go
- webhook.sql.go