Documentation
¶
Index ¶
- type AcpSessionPublication
- type AcpSessionState
- type AcpSessionStateLine
- type AcquireLockedBotRuntimeResetParams
- type AcquireLockedBotSessionRuntimeResetParams
- type ActivateSessionRuntimeFenceParams
- type ActivateUserRuntimeParams
- type AdmitLockedSessionRunParams
- type AgentAuthorization
- type AgentCredential
- type AgentSessionPublication
- type AgentSessionState
- type AgentSessionStateLine
- type AppendMessageToHistoryTurnByRequestParams
- type AppendMessageToLatestHistoryTurnParams
- type ApproveToolApprovalRequestParams
- type ArchiveBotWorkdirParams
- type BackfillUserRuntimeNameParams
- type BindHistoryTurnAssistantByRequestParams
- type BindHistoryTurnAssistantByRequestRow
- type BindLatestHistoryTurnAssistantParams
- type BindLatestHistoryTurnAssistantRow
- type Bot
- type BotAclRule
- type BotAgent
- type BotAgentIsDefaultParams
- type BotAppConnectorRef
- type BotAppDependencyRef
- type BotAppInstallation
- type BotChannelAdmin
- type BotChannelConfig
- type BotChannelRoute
- type BotDependencyInstallation
- type BotEmailBinding
- type BotHistoryMessage
- type BotHistoryMessageAsset
- type BotHistoryMessageCompact
- type BotRemoteRuntimeBinding
- type BotSession
- type BotSessionDiscussCursor
- type BotSessionEvent
- type BotStorageBinding
- type BotUserGrant
- type BotVisibleHistoryMessage
- type BotWorkdir
- type BotWorkspaceResourceLimit
- type CacheWorkspaceDependencyCatalogParams
- type CacheWorkspaceDependencyDefinitionParams
- type CancelPendingToolApprovalsBySessionParams
- type CancelPendingUserInputsByRunParams
- type CancelPendingUserInputsBySessionParams
- type CancelUserInputRequestParams
- type ChannelIdentity
- type ChannelLinkCode
- type ClaimBotDependencyOperationParams
- type ClaimLockedSessionRunParams
- type ClaimToolApprovalRequestForRuntimeParams
- type ClaimUserInputRequestForRuntimeParams
- type ClearBotAgentCredentialParams
- type CompareAndSetSessionModelPreferenceParams
- type CompleteCompactionLogParams
- type CompleteCompactionRollupParams
- type CompleteScheduleLogParams
- type Connector
- type Container
- type ContainerVersion
- type ContextLifecycle
- type CountTokenUsageRecordsParams
- type CreateAccountParams
- type CreateAccountRow
- type CreateAgentAuthorizationParams
- type CreateAgentCredentialParams
- type CreateBotACLRuleParams
- type CreateBotAgentParams
- type CreateBotEmailBindingParams
- type CreateBotParams
- type CreateBotRow
- type CreateBotUserGrantParams
- type CreateBotWorkdirParams
- type CreateChannelIdentityParams
- type CreateChannelLinkCodeParams
- type CreateChatRouteParams
- type CreateChatRouteRow
- type CreateCompactionLogParams
- type CreateConnectorParams
- type CreateContextLifecycleParams
- type CreateContextLifecycleRow
- type CreateEmailOutboxParams
- type CreateEmailProviderParams
- type CreateFetchProviderParams
- type CreateHistoryTurnParams
- type CreateHistoryTurnRow
- type CreateHistoryTurnWithIDAtPositionParams
- type CreateHistoryTurnWithIDAtPositionRow
- type CreateHistoryTurnWithIDParams
- type CreateHistoryTurnWithIDRow
- type CreateMCPConnectionParams
- type CreateMemoryProviderParams
- type CreateMessageAssetParams
- type CreateMessageAssetRow
- type CreateMessageInHistoryTurnByRequestAndBindParams
- type CreateMessageInHistoryTurnByRequestAndBindRow
- type CreateMessageInHistoryTurnByRequestParams
- type CreateMessageInHistoryTurnByRequestRow
- type CreateMessageParams
- type CreateMessageRow
- type CreateMessageWithHistoryTurnParams
- type CreateMessageWithHistoryTurnRow
- type CreateMessageWithTurnParams
- type CreateMessageWithTurnRow
- type CreateModelParams
- type CreateModelVariantParams
- type CreateOrUpdateBotRemoteRuntimeMountParams
- type CreateProviderFromTemplateParams
- type CreateProviderParams
- type CreateScheduleLogParams
- type CreateScheduleLogRow
- type CreateScheduleParams
- type CreateSearchProviderParams
- type CreateSessionEventParams
- type CreateSessionParams
- type CreateStorageProviderParams
- type CreateSubagentConfigParams
- type CreateSubagentForkContextParams
- type CreateSubagentForkContextRow
- type CreateToolApprovalRequestParams
- type CreateToolTailRoundParams
- type CreateToolTailRoundRow
- type CreateUserInputRequestParams
- type CreateUserParams
- type CreateUserRow
- type CreateUserRuntimeParams
- type DBTX
- type DeleteAgentAuthorizationParams
- type DeleteAgentSessionStateLineFilesNotInParams
- type DeleteAppConnectorRefParams
- type DeleteAppDependencyRefParams
- type DeleteBotAppInstallationParams
- type DeleteBotChannelAdminParams
- type DeleteBotChannelConfigParams
- type DeleteBotDependencyInstallationParams
- type DeleteBotDependencyOperationParams
- type DeleteBotRemoteRuntimeMountParams
- type DeleteConnectorParams
- type DeleteEmailProviderByIDAndUserParams
- type DeleteMCPConnectionParams
- type DeleteMemoryEdgesByRelForBotParams
- type DeleteMemoryEdgesForNodeParams
- type DeleteMemoryNodeParams
- type DeleteModelByProviderAndTypeParams
- type DeleteModelByProviderIDAndModelIDParams
- type DeleteRuntimeDecisionProjectionsByRunParams
- type DeleteUserChannelIdentityBindingParams
- type DeleteUserProviderOAuthTokenParams
- type EmailOauthToken
- type EmailOutbox
- type EmailProvider
- type EvaluateBotACLRuleParams
- type FailUserInputRequestParams
- type FetchProvider
- type FinalizeSessionRunParams
- type FindActiveBotAgentByRuntimeProviderParams
- type FindChatRouteParams
- type FindChatRouteRow
- type FindWorkspaceDependencyIconParams
- type FindWorkspaceDependencyIconRow
- type FinishBotDependencyOperationParams
- type ForkSessionFromAssistantTurnParams
- type ForkSessionFromAssistantTurnRow
- type GetActiveBotAgentByIDParams
- type GetAgentAuthorizationParams
- type GetAgentSessionCanonicalStateShapeParams
- type GetAgentSessionCanonicalStateShapeRow
- type GetAgentSessionPublicationHeadParams
- type GetAgentSessionPublicationHeadRow
- type GetAgentSessionStateParams
- type GetAgentSessionStateRow
- type GetBotAgentByIDParams
- type GetBotAgentCredentialParams
- type GetBotAgentCredentialRow
- type GetBotAgentRuntimeParams
- type GetBotAppInstallationByIDParams
- type GetBotAppInstallationParams
- type GetBotByIDRow
- type GetBotByNameRow
- type GetBotChannelAdminParams
- type GetBotChannelConfigByExternalIdentityParams
- type GetBotChannelConfigParams
- type GetBotDependencyInstallationParams
- type GetBotEmailBindingByBotAndProviderParams
- type GetBotOverlayConfigRow
- type GetBotRemoteRuntimeMountParams
- type GetBotRemoteRuntimeMountRow
- type GetBotRuntimeResetRow
- type GetBotWorkdirParams
- type GetChannelIdentityByChannelSubjectParams
- type GetChatRouteByIDRow
- type GetConnectorByConnectionIDParams
- type GetContextLifecycleByRunIDRow
- type GetEffectiveBotScopeRuntimeResetRow
- type GetEffectiveSessionRuntimeResetParams
- type GetEffectiveSessionRuntimeResetRow
- type GetEmailProviderByIDAndUserParams
- type GetEmailProviderByNameAndUserParams
- type GetHistoryTurnByIDParams
- type GetHistoryTurnByIDRow
- type GetInteractiveUserInputRequestParams
- type GetLatestAssistantContextLifecycleByRunIDRow
- type GetLatestPendingToolApprovalBySessionParams
- type GetLatestPendingUserInputBySessionParams
- type GetLatestSessionModelPreferenceParams
- type GetLatestSessionModelPreferenceRow
- type GetLatestVisibleHistoryTurnBySessionRow
- type GetLocatedMessageByExternalIDBySessionParams
- type GetLocatedMessageByExternalIDBySessionRow
- type GetMCPConnectionByIDParams
- type GetMemoryNodeParams
- type GetMessageByExternalIDBySessionParams
- type GetMessageByExternalIDBySessionRow
- type GetMessageByIDBySessionParams
- type GetMessageByIDBySessionRow
- type GetModelByProviderAndModelIDParams
- type GetPendingToolApprovalByReplyMessageParams
- type GetPendingToolApprovalBySessionShortIDParams
- type GetPendingUserInputByReplyMessageParams
- type GetPendingUserInputBySessionShortIDParams
- type GetPrimaryBotRemoteRuntimeMountRow
- type GetProviderTemplateByDomainAndKeyParams
- type GetRespondableUserInputRequestParams
- type GetRuntimeConfigEpochParams
- type GetRuntimeConfigEpochRow
- type GetRuntimeLeadingUserMessageIDParams
- type GetRuntimeRoundOutcomeParams
- type GetSessionCacheStatsRow
- type GetSessionDiscussCursorParams
- type GetSessionRunByInvocationParams
- type GetSettingsByBotIDRow
- type GetSnapshotByContainerAndRuntimeNameParams
- type GetSpeechModelWithProviderRow
- type GetTokenUsageByDayAndTypeParams
- type GetTokenUsageByDayAndTypeRow
- type GetTokenUsageByModelParams
- type GetTokenUsageByModelRow
- type GetTranscriptionModelWithProviderRow
- type GetTurnAgentTurnIDParams
- type GetUserChannelBindingParams
- type GetUserInputRequestBySessionToolCallParams
- type GetUserProviderOAuthTokenParams
- type GetVersionSnapshotRuntimeNameParams
- type GetVideoModelWithProviderRow
- type GetVisibleHistoryTurnByMessageParams
- type GetVisibleHistoryTurnByMessageRow
- type GetVisibleMessageCursorByExternalIDBySessionParams
- type GetVisibleMessageCursorByExternalIDBySessionRow
- type GetVisibleMessageCursorByIDBySessionParams
- type GetVisibleMessageCursorByIDBySessionRow
- type GetWorkspaceDependencyDefinitionParams
- type GetWorkspaceDependencyDefinitionRow
- type InsertAgentSessionStateLinesParams
- type InsertAgentSessionStateLinesRow
- type InsertLifecycleEventParams
- type InsertMemoryEdgeParams
- type InsertVersionParams
- type LifecycleEvent
- type LinkMessageToHistoryTurnParams
- type ListAccessibleBotsRow
- type ListActiveMessagesSinceBySessionParams
- type ListActiveMessagesSinceBySessionRow
- type ListActiveMessagesSinceBySessionWithinBytesParams
- type ListActiveMessagesSinceBySessionWithinBytesRow
- type ListActiveMessagesSinceParams
- type ListActiveMessagesSinceRow
- type ListActiveMessagesSinceWithinBytesParams
- type ListActiveMessagesSinceWithinBytesRow
- type ListAgentSessionStateLinePageParams
- type ListAgentSessionStateLinePageRow
- type ListAllMessagesForBackupRow
- type ListAppConnectorRefsForBotRow
- type ListAppDependencyRefsForBotRow
- type ListBotACLRulesRow
- type ListBotChannelAdminsRow
- type ListBotRemoteRuntimeGrantsByRuntimeOwnerRow
- type ListBotRemoteRuntimeMountsRow
- type ListBotUserGrantsForUserParams
- type ListBotUserGrantsForUserRow
- type ListBotUserGrantsRow
- type ListBotWorkdirsParams
- type ListBotsByOwnerRow
- type ListChannelIdentityBindingsForBotRow
- type ListChannelIdentityBindingsForUserRow
- type ListChannelIdentityBindingsRow
- type ListChatRouteThreadProjectionsByIDsParams
- type ListChatRouteThreadProjectionsByIDsRow
- type ListChatRoutesRow
- type ListCompactionArtifactParentIDsBySuccessorParams
- type ListCompactionLogsByBotParams
- type ListEmailOutboxByBotParams
- type ListEmailProvidersByUserAndProviderParams
- type ListHistoryTurnsByBotRow
- type ListMemoryEdgesByRelParams
- type ListMemoryEdgesFromNodeParams
- type ListMemoryNodesByBotLayerParams
- type ListMemoryNodesByBotProfileParams
- type ListMessageAssetsBatchRow
- type ListMessageAssetsRow
- type ListMessageRefsByCompactIDRow
- type ListMessagesAfterBySessionParams
- type ListMessagesAfterBySessionRow
- type ListMessagesAfterCursorBySessionParams
- type ListMessagesAfterCursorBySessionRow
- type ListMessagesAfterMessageBySessionParams
- type ListMessagesAfterMessageBySessionRow
- type ListMessagesBeforeBySessionParams
- type ListMessagesBeforeBySessionRow
- type ListMessagesBeforeCursorBySessionParams
- type ListMessagesBeforeCursorBySessionRow
- type ListMessagesBeforeMessageBySessionParams
- type ListMessagesBeforeMessageBySessionRow
- type ListMessagesBeforeParams
- type ListMessagesBeforeRow
- type ListMessagesByCompactIDRow
- type ListMessagesBySessionRow
- type ListMessagesLatestBySessionParams
- type ListMessagesLatestBySessionRow
- type ListMessagesLatestParams
- type ListMessagesLatestRow
- type ListMessagesLatestUIBySessionParams
- type ListMessagesLatestUIBySessionRow
- type ListMessagesRow
- type ListMessagesSinceBySessionParams
- type ListMessagesSinceBySessionRow
- type ListMessagesSinceParams
- type ListMessagesSinceRow
- type ListModelsByProviderIDAndTypeParams
- type ListObservedConversationsByChannelIdentityParams
- type ListObservedConversationsByChannelIdentityRow
- type ListObservedConversationsByChannelTypeParams
- type ListObservedConversationsByChannelTypeRow
- type ListOrphanedSessionRunsParams
- type ListPendingToolApprovalsBySessionParams
- type ListPendingUserInputsBySessionParams
- type ListProviderTemplatesRow
- type ListRecentAssistantMessagesBySessionParams
- type ListRecentAssistantMessagesBySessionRow
- type ListRecentContextLifecyclesBySessionParams
- type ListRecentContextLifecyclesBySessionRow
- type ListScheduleLogsByBotParams
- type ListScheduleLogsByBotRow
- type ListScheduleLogsByScheduleParams
- type ListScheduleLogsByScheduleRow
- type ListSessionEventsBySessionAfterParams
- type ListSessionEventsBySessionPageBeforeWithinBytesParams
- type ListSessionEventsBySessionPageBeforeWithinBytesRow
- type ListSessionsByBotAndCreatedByUserPagedParams
- type ListSessionsByBotAndCreatedByUserPagedRow
- type ListSessionsByBotAndCreatedByUserParams
- type ListSessionsByBotAndCreatedByUserRow
- type ListSessionsByBotPagedParams
- type ListSessionsByBotPagedRow
- type ListSessionsByBotRow
- type ListSnapshotsWithVersionByContainerIDRow
- type ListSpeechModelsRow
- type ListStaleGenerationSessionRunsParams
- type ListSubagentForkContextRow
- type ListTerminalSessionRunsNeedingContextLifecycleRow
- type ListTokenUsageRecordsParams
- type ListTokenUsageRecordsRow
- type ListToolApprovalsBySessionParams
- type ListToolApprovalsBySessionToolCallsParams
- type ListTranscriptionModelsRow
- type ListUncompactedMessagesBySessionRow
- type ListUncompactedMessagesBySessionWithinBytesParams
- type ListUncompactedMessagesBySessionWithinBytesRow
- type ListUserInputsBySessionParams
- type ListUserInputsBySessionToolCallsParams
- type ListVersionsByContainerIDRow
- type ListVideoModelsRow
- type ListVisibleMessagesFromBySessionParams
- type ListVisibleMessagesFromBySessionRow
- type LocateMessagesWindowByExternalIDBySessionParams
- type LocateMessagesWindowByExternalIDBySessionRow
- type LockActiveSessionRunForHistoryResetParams
- type LockHistoryTurnAppendByRequestParams
- type LockSessionDecisionSequenceParams
- type LockSessionForCommitReconciliationParams
- type LockSessionRunForAgentStepCommitParams
- type LockSessionRuntimeFenceForActivationParams
- type LockSessionRuntimeFenceParams
- type MarkChannelLinkCodeConsumedParams
- type MarkMessagesCompactedParams
- type McpConnection
- type McpOauthToken
- type MeasureActiveMessagesBySessionParams
- type MeasureActiveMessagesBySessionRow
- type MeasureUncompactedMessagesBySessionRow
- type MediaAsset
- type MemoryEdge
- type MemoryNode
- type MemoryProvider
- type Model
- type ModelVariant
- type PrepareSessionRunFinishParams
- type Provider
- type ProviderOauthToken
- type PruneAgentSessionStateVersionsParams
- type Queries
- func (q *Queries) AcquireLockedBotRuntimeReset(ctx context.Context, arg AcquireLockedBotRuntimeResetParams) (pgtype.Timestamptz, error)
- func (q *Queries) AcquireLockedBotSessionRuntimeReset(ctx context.Context, arg AcquireLockedBotSessionRuntimeResetParams) (pgtype.Timestamptz, error)
- func (q *Queries) AcquireProviderTemplateSyncLock(ctx context.Context) error
- func (q *Queries) ActivateSessionRuntimeFence(ctx context.Context, arg ActivateSessionRuntimeFenceParams) (int64, error)
- func (q *Queries) ActivateUserRuntime(ctx context.Context, arg ActivateUserRuntimeParams) (UserRuntime, error)
- func (q *Queries) AdmitLockedSessionRun(ctx context.Context, arg AdmitLockedSessionRunParams) (SessionRun, error)
- func (q *Queries) AllocateSessionTurnPosition(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) AppendMessageToHistoryTurnByRequest(ctx context.Context, arg AppendMessageToHistoryTurnByRequestParams) (pgtype.UUID, error)
- func (q *Queries) AppendMessageToLatestHistoryTurn(ctx context.Context, arg AppendMessageToLatestHistoryTurnParams) (pgtype.UUID, error)
- func (q *Queries) ApproveToolApprovalRequest(ctx context.Context, arg ApproveToolApprovalRequestParams) (ToolApprovalRequest, error)
- func (q *Queries) ArchiveBotWorkdir(ctx context.Context, arg ArchiveBotWorkdirParams) (pgtype.UUID, error)
- func (q *Queries) BackfillUserRuntimeName(ctx context.Context, arg BackfillUserRuntimeNameParams) (int64, error)
- func (q *Queries) BindHistoryTurnAssistantByRequest(ctx context.Context, arg BindHistoryTurnAssistantByRequestParams) (BindHistoryTurnAssistantByRequestRow, error)
- func (q *Queries) BindLatestHistoryTurnAssistant(ctx context.Context, arg BindLatestHistoryTurnAssistantParams) (BindLatestHistoryTurnAssistantRow, error)
- func (q *Queries) BotAgentIsDefault(ctx context.Context, arg BotAgentIsDefaultParams) (bool, error)
- func (q *Queries) BumpBotRuntimeConfigEpoch(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CacheWorkspaceDependencyCatalog(ctx context.Context, arg CacheWorkspaceDependencyCatalogParams) (int64, error)
- func (q *Queries) CacheWorkspaceDependencyDefinition(ctx context.Context, arg CacheWorkspaceDependencyDefinitionParams) (int64, error)
- func (q *Queries) CancelPendingToolApprovalsBySession(ctx context.Context, arg CancelPendingToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
- func (q *Queries) CancelPendingUserInputsByRun(ctx context.Context, arg CancelPendingUserInputsByRunParams) ([]UserInputRequest, error)
- func (q *Queries) CancelPendingUserInputsBySession(ctx context.Context, arg CancelPendingUserInputsBySessionParams) ([]UserInputRequest, error)
- func (q *Queries) CancelUserInputRequest(ctx context.Context, arg CancelUserInputRequestParams) (UserInputRequest, error)
- func (q *Queries) ClaimBotDependencyOperation(ctx context.Context, arg ClaimBotDependencyOperationParams) (BotDependencyInstallation, error)
- func (q *Queries) ClaimLockedSessionRun(ctx context.Context, arg ClaimLockedSessionRunParams) (SessionRun, error)
- func (q *Queries) ClaimToolApprovalRequestForRuntime(ctx context.Context, arg ClaimToolApprovalRequestForRuntimeParams) (ToolApprovalRequest, error)
- func (q *Queries) ClaimUserInputRequestForRuntime(ctx context.Context, arg ClaimUserInputRequestForRuntimeParams) (UserInputRequest, error)
- func (q *Queries) ClearAppConnectorRefConnection(ctx context.Context, connectionID string) (int64, error)
- func (q *Queries) ClearBotAgentCredential(ctx context.Context, arg ClearBotAgentCredentialParams) (pgtype.UUID, error)
- func (q *Queries) ClearBotRemoteRuntimePrimary(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) ClearBotRuntimeData(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) ClearHistoryByBot(ctx context.Context, targetBotID pgtype.UUID) error
- func (q *Queries) ClearHistoryBySession(ctx context.Context, targetSessionID pgtype.UUID) error
- func (q *Queries) ClearMCPOAuthTokens(ctx context.Context, connectionID pgtype.UUID) error
- func (q *Queries) CompareAndSetSessionModelPreference(ctx context.Context, arg CompareAndSetSessionModelPreferenceParams) (int64, error)
- func (q *Queries) CompleteCompactionLog(ctx context.Context, arg CompleteCompactionLogParams) (BotHistoryMessageCompact, error)
- func (q *Queries) CompleteCompactionRollup(ctx context.Context, arg CompleteCompactionRollupParams) (BotHistoryMessageCompact, error)
- func (q *Queries) CompleteScheduleLog(ctx context.Context, arg CompleteScheduleLogParams) (ScheduleLog, error)
- func (q *Queries) CountAccounts(ctx context.Context) (int64, error)
- func (q *Queries) CountAgentAuthorizations(ctx context.Context, ownerUserID pgtype.UUID) (int64, error)
- func (q *Queries) CountBotAgentCredentialRefs(ctx context.Context, agentCredentialID pgtype.UUID) (int64, error)
- func (q *Queries) CountCompactionLogsByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountEmailOutboxByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountMemoryEdgesByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountMemoryNodesByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountMemoryProvidersByDefault(ctx context.Context) (int64, error)
- func (q *Queries) CountMessageAssetsByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountMessagesByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountMessagesBySession(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) CountModels(ctx context.Context) (int64, error)
- func (q *Queries) CountModelsByType(ctx context.Context, type_ string) (int64, error)
- func (q *Queries) CountProviders(ctx context.Context) (int64, error)
- func (q *Queries) CountScheduleLogsByBot(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountScheduleLogsBySchedule(ctx context.Context, scheduleID pgtype.UUID) (int64, error)
- func (q *Queries) CountSessionEvents(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) CountTokenUsageRecords(ctx context.Context, arg CountTokenUsageRecordsParams) (int64, error)
- func (q *Queries) CreateAccount(ctx context.Context, arg CreateAccountParams) (CreateAccountRow, error)
- func (q *Queries) CreateAgentAuthorization(ctx context.Context, arg CreateAgentAuthorizationParams) (AgentAuthorization, error)
- func (q *Queries) CreateAgentCredential(ctx context.Context, arg CreateAgentCredentialParams) (AgentCredential, error)
- func (q *Queries) CreateBot(ctx context.Context, arg CreateBotParams) (CreateBotRow, error)
- func (q *Queries) CreateBotACLRule(ctx context.Context, arg CreateBotACLRuleParams) (BotAclRule, error)
- func (q *Queries) CreateBotAgent(ctx context.Context, arg CreateBotAgentParams) (BotAgent, error)
- func (q *Queries) CreateBotEmailBinding(ctx context.Context, arg CreateBotEmailBindingParams) (BotEmailBinding, error)
- func (q *Queries) CreateBotUserGrant(ctx context.Context, arg CreateBotUserGrantParams) (BotUserGrant, error)
- func (q *Queries) CreateBotWorkdir(ctx context.Context, arg CreateBotWorkdirParams) (BotWorkdir, error)
- func (q *Queries) CreateChannelIdentity(ctx context.Context, arg CreateChannelIdentityParams) (ChannelIdentity, error)
- func (q *Queries) CreateChannelLinkCode(ctx context.Context, arg CreateChannelLinkCodeParams) (ChannelLinkCode, error)
- func (q *Queries) CreateChatRoute(ctx context.Context, arg CreateChatRouteParams) (CreateChatRouteRow, error)
- func (q *Queries) CreateCompactionLog(ctx context.Context, arg CreateCompactionLogParams) (BotHistoryMessageCompact, error)
- func (q *Queries) CreateConnector(ctx context.Context, arg CreateConnectorParams) (Connector, error)
- func (q *Queries) CreateContextLifecycle(ctx context.Context, arg CreateContextLifecycleParams) (CreateContextLifecycleRow, error)
- func (q *Queries) CreateEmailOutbox(ctx context.Context, arg CreateEmailOutboxParams) (EmailOutbox, error)
- func (q *Queries) CreateEmailProvider(ctx context.Context, arg CreateEmailProviderParams) (EmailProvider, error)
- func (q *Queries) CreateFetchProvider(ctx context.Context, arg CreateFetchProviderParams) (FetchProvider, error)
- func (q *Queries) CreateHistoryTurn(ctx context.Context, arg CreateHistoryTurnParams) (CreateHistoryTurnRow, error)
- func (q *Queries) CreateHistoryTurnWithID(ctx context.Context, arg CreateHistoryTurnWithIDParams) (CreateHistoryTurnWithIDRow, error)
- func (q *Queries) CreateHistoryTurnWithIDAtPosition(ctx context.Context, arg CreateHistoryTurnWithIDAtPositionParams) (CreateHistoryTurnWithIDAtPositionRow, error)
- func (q *Queries) CreateMCPConnection(ctx context.Context, arg CreateMCPConnectionParams) (McpConnection, error)
- func (q *Queries) CreateMemoryProvider(ctx context.Context, arg CreateMemoryProviderParams) (MemoryProvider, error)
- func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (CreateMessageRow, error)
- func (q *Queries) CreateMessageAsset(ctx context.Context, arg CreateMessageAssetParams) (CreateMessageAssetRow, error)
- func (q *Queries) CreateMessageInHistoryTurnByRequest(ctx context.Context, arg CreateMessageInHistoryTurnByRequestParams) (CreateMessageInHistoryTurnByRequestRow, error)
- func (q *Queries) CreateMessageInHistoryTurnByRequestAndBind(ctx context.Context, arg CreateMessageInHistoryTurnByRequestAndBindParams) (CreateMessageInHistoryTurnByRequestAndBindRow, error)
- func (q *Queries) CreateMessageWithHistoryTurn(ctx context.Context, arg CreateMessageWithHistoryTurnParams) (CreateMessageWithHistoryTurnRow, error)
- func (q *Queries) CreateMessageWithTurn(ctx context.Context, arg CreateMessageWithTurnParams) (CreateMessageWithTurnRow, error)
- func (q *Queries) CreateModel(ctx context.Context, arg CreateModelParams) (Model, error)
- func (q *Queries) CreateModelVariant(ctx context.Context, arg CreateModelVariantParams) (ModelVariant, error)
- func (q *Queries) CreateOrUpdateBotRemoteRuntimeMount(ctx context.Context, arg CreateOrUpdateBotRemoteRuntimeMountParams) (pgtype.UUID, error)
- func (q *Queries) CreateProvider(ctx context.Context, arg CreateProviderParams) (Provider, error)
- func (q *Queries) CreateProviderFromTemplate(ctx context.Context, arg CreateProviderFromTemplateParams) (Provider, error)
- func (q *Queries) CreateSchedule(ctx context.Context, arg CreateScheduleParams) (Schedule, error)
- func (q *Queries) CreateScheduleLog(ctx context.Context, arg CreateScheduleLogParams) (CreateScheduleLogRow, error)
- func (q *Queries) CreateSearchProvider(ctx context.Context, arg CreateSearchProviderParams) (SearchProvider, error)
- func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (BotSession, error)
- func (q *Queries) CreateSessionEvent(ctx context.Context, arg CreateSessionEventParams) (pgtype.UUID, error)
- func (q *Queries) CreateStorageProvider(ctx context.Context, arg CreateStorageProviderParams) (StorageProvider, error)
- func (q *Queries) CreateSubagentConfig(ctx context.Context, arg CreateSubagentConfigParams) (SubagentConfig, error)
- func (q *Queries) CreateSubagentForkContext(ctx context.Context, arg CreateSubagentForkContextParams) (CreateSubagentForkContextRow, error)
- func (q *Queries) CreateToolApprovalRequest(ctx context.Context, arg CreateToolApprovalRequestParams) (ToolApprovalRequest, error)
- func (q *Queries) CreateToolTailRound(ctx context.Context, arg CreateToolTailRoundParams) ([]CreateToolTailRoundRow, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
- func (q *Queries) CreateUserInputRequest(ctx context.Context, arg CreateUserInputRequestParams) (UserInputRequest, error)
- func (q *Queries) CreateUserRuntime(ctx context.Context, arg CreateUserRuntimeParams) (UserRuntime, error)
- func (q *Queries) DeleteAgentAuthorization(ctx context.Context, arg DeleteAgentAuthorizationParams) error
- func (q *Queries) DeleteAgentSessionPublicationsBySession(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) DeleteAgentSessionStateLineFilesNotIn(ctx context.Context, arg DeleteAgentSessionStateLineFilesNotInParams) (int64, error)
- func (q *Queries) DeleteAgentSessionStateLinesBySession(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) DeleteAgentSessionStatesBySession(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) DeleteAllMemoryEdgesByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteAllMemoryNodesByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteAppConnectorRef(ctx context.Context, arg DeleteAppConnectorRefParams) (int64, error)
- func (q *Queries) DeleteAppDependencyRef(ctx context.Context, arg DeleteAppDependencyRefParams) (int64, error)
- func (q *Queries) DeleteBotACLRuleByID(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteBotAppInstallation(ctx context.Context, arg DeleteBotAppInstallationParams) (BotAppInstallation, error)
- func (q *Queries) DeleteBotByID(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteBotChannelAdmin(ctx context.Context, arg DeleteBotChannelAdminParams) error
- func (q *Queries) DeleteBotChannelConfig(ctx context.Context, arg DeleteBotChannelConfigParams) error
- func (q *Queries) DeleteBotDependencyInstallation(ctx context.Context, arg DeleteBotDependencyInstallationParams) (int64, error)
- func (q *Queries) DeleteBotDependencyOperation(ctx context.Context, arg DeleteBotDependencyOperationParams) (BotDependencyInstallation, error)
- func (q *Queries) DeleteBotEmailBinding(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteBotRemoteRuntimeMount(ctx context.Context, arg DeleteBotRemoteRuntimeMountParams) (pgtype.UUID, error)
- func (q *Queries) DeleteBotRemoteRuntimeMountsByRuntime(ctx context.Context, runtimeID pgtype.UUID) error
- func (q *Queries) DeleteBotUserGrantByID(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteChatRoute(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteCompactionLogsByBot(ctx context.Context, targetBotID pgtype.UUID) error
- func (q *Queries) DeleteConnector(ctx context.Context, arg DeleteConnectorParams) error
- func (q *Queries) DeleteContainerByBotID(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteEmailOAuthToken(ctx context.Context, emailProviderID pgtype.UUID) error
- func (q *Queries) DeleteEmailProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteEmailProviderByIDAndUser(ctx context.Context, arg DeleteEmailProviderByIDAndUserParams) error
- func (q *Queries) DeleteFetchProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteMCPConnection(ctx context.Context, arg DeleteMCPConnectionParams) error
- func (q *Queries) DeleteMCPOAuthToken(ctx context.Context, connectionID pgtype.UUID) error
- func (q *Queries) DeleteMemoryEdgesByRelForBot(ctx context.Context, arg DeleteMemoryEdgesByRelForBotParams) error
- func (q *Queries) DeleteMemoryEdgesForNode(ctx context.Context, arg DeleteMemoryEdgesForNodeParams) error
- func (q *Queries) DeleteMemoryNode(ctx context.Context, arg DeleteMemoryNodeParams) error
- func (q *Queries) DeleteMemoryProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteMessageAssets(ctx context.Context, messageID pgtype.UUID) error
- func (q *Queries) DeleteMessagesByIDs(ctx context.Context, ids []pgtype.UUID) error
- func (q *Queries) DeleteModel(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteModelByModelID(ctx context.Context, modelID string) error
- func (q *Queries) DeleteModelByProviderAndType(ctx context.Context, arg DeleteModelByProviderAndTypeParams) error
- func (q *Queries) DeleteModelByProviderIDAndModelID(ctx context.Context, arg DeleteModelByProviderIDAndModelIDParams) error
- func (q *Queries) DeleteProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteProviderOAuthToken(ctx context.Context, providerID pgtype.UUID) error
- func (q *Queries) DeleteRuntimeDecisionProjectionsByRun(ctx context.Context, arg DeleteRuntimeDecisionProjectionsByRunParams) (int64, error)
- func (q *Queries) DeleteSchedule(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteScheduleLogsByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteScheduleLogsBySchedule(ctx context.Context, scheduleID pgtype.UUID) error
- func (q *Queries) DeleteSearchProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteSessionDiscussCursorsByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteSessionEventsByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteSettingsByBotID(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteUserChannelIdentityBinding(ctx context.Context, arg DeleteUserChannelIdentityBindingParams) error
- func (q *Queries) DeleteUserProviderOAuthToken(ctx context.Context, arg DeleteUserProviderOAuthTokenParams) error
- func (q *Queries) DisableSchedule(ctx context.Context, id pgtype.UUID) (Schedule, error)
- func (q *Queries) EvaluateBotACLRule(ctx context.Context, arg EvaluateBotACLRuleParams) (string, error)
- func (q *Queries) ExpirePendingUserRuntimes(ctx context.Context, userID pgtype.UUID) error
- func (q *Queries) FailUserInputRequest(ctx context.Context, arg FailUserInputRequestParams) (UserInputRequest, error)
- func (q *Queries) FinalizeSessionRun(ctx context.Context, arg FinalizeSessionRunParams) (SessionRun, error)
- func (q *Queries) FindActiveBotAgentByRuntimeProvider(ctx context.Context, arg FindActiveBotAgentByRuntimeProviderParams) (BotAgent, error)
- func (q *Queries) FindChatRoute(ctx context.Context, arg FindChatRouteParams) (FindChatRouteRow, error)
- func (q *Queries) FindWorkspaceDependencyIcon(ctx context.Context, arg FindWorkspaceDependencyIconParams) (FindWorkspaceDependencyIconRow, error)
- func (q *Queries) FinishBotDependencyOperation(ctx context.Context, arg FinishBotDependencyOperationParams) (BotDependencyInstallation, error)
- func (q *Queries) ForkSessionFromAssistantTurn(ctx context.Context, arg ForkSessionFromAssistantTurnParams) (ForkSessionFromAssistantTurnRow, error)
- func (q *Queries) GetAccountByIdentity(ctx context.Context, identity pgtype.Text) (TeamAccount, error)
- func (q *Queries) GetAccountByUserID(ctx context.Context, userID pgtype.UUID) (TeamAccount, error)
- func (q *Queries) GetActiveBotAgentByID(ctx context.Context, arg GetActiveBotAgentByIDParams) (BotAgent, error)
- func (q *Queries) GetActiveSessionRun(ctx context.Context, sessionID pgtype.UUID) (SessionRun, error)
- func (q *Queries) GetAgentAuthorization(ctx context.Context, arg GetAgentAuthorizationParams) (AgentAuthorization, error)
- func (q *Queries) GetAgentCredential(ctx context.Context, id pgtype.UUID) (AgentCredential, error)
- func (q *Queries) GetAgentSessionCanonicalStateShape(ctx context.Context, arg GetAgentSessionCanonicalStateShapeParams) (GetAgentSessionCanonicalStateShapeRow, error)
- func (q *Queries) GetAgentSessionPublicationHead(ctx context.Context, arg GetAgentSessionPublicationHeadParams) (GetAgentSessionPublicationHeadRow, error)
- func (q *Queries) GetAgentSessionState(ctx context.Context, arg GetAgentSessionStateParams) (GetAgentSessionStateRow, error)
- func (q *Queries) GetBotACLDefaultEffect(ctx context.Context, id pgtype.UUID) (string, error)
- func (q *Queries) GetBotAgentByID(ctx context.Context, arg GetBotAgentByIDParams) (BotAgent, error)
- func (q *Queries) GetBotAgentCredential(ctx context.Context, arg GetBotAgentCredentialParams) (GetBotAgentCredentialRow, error)
- func (q *Queries) GetBotAgentRuntime(ctx context.Context, arg GetBotAgentRuntimeParams) (string, error)
- func (q *Queries) GetBotAppInstallation(ctx context.Context, arg GetBotAppInstallationParams) (BotAppInstallation, error)
- func (q *Queries) GetBotAppInstallationByID(ctx context.Context, arg GetBotAppInstallationByIDParams) (BotAppInstallation, error)
- func (q *Queries) GetBotByID(ctx context.Context, id pgtype.UUID) (GetBotByIDRow, error)
- func (q *Queries) GetBotByName(ctx context.Context, name string) (GetBotByNameRow, error)
- func (q *Queries) GetBotChannelAdmin(ctx context.Context, arg GetBotChannelAdminParams) (BotChannelAdmin, error)
- func (q *Queries) GetBotChannelConfig(ctx context.Context, arg GetBotChannelConfigParams) (BotChannelConfig, error)
- func (q *Queries) GetBotChannelConfigByExternalIdentity(ctx context.Context, arg GetBotChannelConfigByExternalIdentityParams) (BotChannelConfig, error)
- func (q *Queries) GetBotDependencyInstallation(ctx context.Context, arg GetBotDependencyInstallationParams) (BotDependencyInstallation, error)
- func (q *Queries) GetBotEmailBindingByBotAndProvider(ctx context.Context, arg GetBotEmailBindingByBotAndProviderParams) (BotEmailBinding, error)
- func (q *Queries) GetBotEmailBindingByID(ctx context.Context, id pgtype.UUID) (BotEmailBinding, error)
- func (q *Queries) GetBotOverlayConfig(ctx context.Context, id pgtype.UUID) (GetBotOverlayConfigRow, error)
- func (q *Queries) GetBotRemoteRuntimeMount(ctx context.Context, arg GetBotRemoteRuntimeMountParams) (GetBotRemoteRuntimeMountRow, error)
- func (q *Queries) GetBotRuntimeReset(ctx context.Context, botID pgtype.UUID) (GetBotRuntimeResetRow, error)
- func (q *Queries) GetBotStorageBinding(ctx context.Context, botID pgtype.UUID) (BotStorageBinding, error)
- func (q *Queries) GetBotUserGrantByID(ctx context.Context, id pgtype.UUID) (BotUserGrant, error)
- func (q *Queries) GetBotWorkdir(ctx context.Context, arg GetBotWorkdirParams) (BotWorkdir, error)
- func (q *Queries) GetBotWorkspaceResourceLimits(ctx context.Context, botID pgtype.UUID) (BotWorkspaceResourceLimit, error)
- func (q *Queries) GetChannelIdentityByChannelSubject(ctx context.Context, arg GetChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
- func (q *Queries) GetChannelIdentityByID(ctx context.Context, id pgtype.UUID) (ChannelIdentity, error)
- func (q *Queries) GetChannelIdentityByIDForUpdate(ctx context.Context, id pgtype.UUID) (ChannelIdentity, error)
- func (q *Queries) GetChannelLinkCodeByToken(ctx context.Context, token string) (ChannelLinkCode, error)
- func (q *Queries) GetChatRouteByID(ctx context.Context, id pgtype.UUID) (GetChatRouteByIDRow, error)
- func (q *Queries) GetCompactionLogByID(ctx context.Context, id pgtype.UUID) (BotHistoryMessageCompact, error)
- func (q *Queries) GetConnectorByConnectionID(ctx context.Context, arg GetConnectorByConnectionIDParams) (Connector, error)
- func (q *Queries) GetContainerByBotID(ctx context.Context, botID pgtype.UUID) (Container, error)
- func (q *Queries) GetContextLifecycleByRunID(ctx context.Context, runID pgtype.UUID) (GetContextLifecycleByRunIDRow, error)
- func (q *Queries) GetContextLifecycleSelectionDecisionsByRunID(ctx context.Context, runID pgtype.UUID) ([]byte, error)
- func (q *Queries) GetDefaultMemoryProvider(ctx context.Context) (MemoryProvider, error)
- func (q *Queries) GetEffectiveBotScopeRuntimeReset(ctx context.Context, botID pgtype.UUID) (GetEffectiveBotScopeRuntimeResetRow, error)
- func (q *Queries) GetEffectiveSessionRuntimeReset(ctx context.Context, arg GetEffectiveSessionRuntimeResetParams) (GetEffectiveSessionRuntimeResetRow, error)
- func (q *Queries) GetEmailOAuthTokenByProvider(ctx context.Context, emailProviderID pgtype.UUID) (EmailOauthToken, error)
- func (q *Queries) GetEmailOAuthTokenByState(ctx context.Context, state string) (EmailOauthToken, error)
- func (q *Queries) GetEmailOutboxByID(ctx context.Context, id pgtype.UUID) (EmailOutbox, error)
- func (q *Queries) GetEmailProviderByID(ctx context.Context, id pgtype.UUID) (EmailProvider, error)
- func (q *Queries) GetEmailProviderByIDAndUser(ctx context.Context, arg GetEmailProviderByIDAndUserParams) (EmailProvider, error)
- func (q *Queries) GetEmailProviderByNameAndUser(ctx context.Context, arg GetEmailProviderByNameAndUserParams) (EmailProvider, error)
- func (q *Queries) GetFetchProviderByID(ctx context.Context, id pgtype.UUID) (FetchProvider, error)
- func (q *Queries) GetFetchProviderByName(ctx context.Context, name string) (FetchProvider, error)
- func (q *Queries) GetHistoryTurnByID(ctx context.Context, arg GetHistoryTurnByIDParams) (GetHistoryTurnByIDRow, error)
- func (q *Queries) GetInteractiveUserInputRequest(ctx context.Context, arg GetInteractiveUserInputRequestParams) (UserInputRequest, error)
- func (q *Queries) GetLatestAssistantContextLifecycleByRunID(ctx context.Context, runID pgtype.UUID) (GetLatestAssistantContextLifecycleByRunIDRow, error)
- func (q *Queries) GetLatestAssistantContextLifecycleMetadataByRunID(ctx context.Context, runID pgtype.UUID) ([]byte, error)
- func (q *Queries) GetLatestAssistantUsage(ctx context.Context, sessionID pgtype.UUID) (int64, error)
- func (q *Queries) GetLatestContextLifecycleBySession(ctx context.Context, sessionID pgtype.UUID) ([]byte, error)
- func (q *Queries) GetLatestPendingToolApprovalBySession(ctx context.Context, arg GetLatestPendingToolApprovalBySessionParams) (ToolApprovalRequest, error)
- func (q *Queries) GetLatestPendingUserInputBySession(ctx context.Context, arg GetLatestPendingUserInputBySessionParams) (UserInputRequest, error)
- func (q *Queries) GetLatestSessionIDByBot(ctx context.Context, botID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) GetLatestSessionModelID(ctx context.Context, sessionID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) GetLatestSessionModelPreference(ctx context.Context, arg GetLatestSessionModelPreferenceParams) (GetLatestSessionModelPreferenceRow, error)
- func (q *Queries) GetLatestSessionRun(ctx context.Context, sessionID pgtype.UUID) (SessionRun, error)
- func (q *Queries) GetLatestVisibleHistoryTurnBySession(ctx context.Context, sessionID pgtype.UUID) (GetLatestVisibleHistoryTurnBySessionRow, error)
- func (q *Queries) GetLocatedMessageByExternalIDBySession(ctx context.Context, arg GetLocatedMessageByExternalIDBySessionParams) (GetLocatedMessageByExternalIDBySessionRow, error)
- func (q *Queries) GetMCPConnectionByID(ctx context.Context, arg GetMCPConnectionByIDParams) (McpConnection, error)
- func (q *Queries) GetMCPOAuthToken(ctx context.Context, connectionID pgtype.UUID) (McpOauthToken, error)
- func (q *Queries) GetMCPOAuthTokenByState(ctx context.Context, stateParam string) (McpOauthToken, error)
- func (q *Queries) GetMemoryNode(ctx context.Context, arg GetMemoryNodeParams) (MemoryNode, error)
- func (q *Queries) GetMemoryProviderByID(ctx context.Context, id pgtype.UUID) (MemoryProvider, error)
- func (q *Queries) GetMessageByExternalIDBySession(ctx context.Context, arg GetMessageByExternalIDBySessionParams) (GetMessageByExternalIDBySessionRow, error)
- func (q *Queries) GetMessageByIDBySession(ctx context.Context, arg GetMessageByIDBySessionParams) (GetMessageByIDBySessionRow, error)
- func (q *Queries) GetModelByID(ctx context.Context, id pgtype.UUID) (Model, error)
- func (q *Queries) GetModelByModelID(ctx context.Context, modelID string) (Model, error)
- func (q *Queries) GetModelByProviderAndModelID(ctx context.Context, arg GetModelByProviderAndModelIDParams) (Model, error)
- func (q *Queries) GetPendingToolApprovalByReplyMessage(ctx context.Context, arg GetPendingToolApprovalByReplyMessageParams) (ToolApprovalRequest, error)
- func (q *Queries) GetPendingToolApprovalBySessionShortID(ctx context.Context, arg GetPendingToolApprovalBySessionShortIDParams) (ToolApprovalRequest, error)
- func (q *Queries) GetPendingUserInputByReplyMessage(ctx context.Context, arg GetPendingUserInputByReplyMessageParams) (UserInputRequest, error)
- func (q *Queries) GetPendingUserInputBySessionShortID(ctx context.Context, arg GetPendingUserInputBySessionShortIDParams) (UserInputRequest, error)
- func (q *Queries) GetPrimaryBotRemoteRuntimeMount(ctx context.Context, botID pgtype.UUID) (GetPrimaryBotRemoteRuntimeMountRow, error)
- func (q *Queries) GetProviderByClientType(ctx context.Context, clientType string) (Provider, error)
- func (q *Queries) GetProviderByID(ctx context.Context, id pgtype.UUID) (Provider, error)
- func (q *Queries) GetProviderByName(ctx context.Context, name string) (Provider, error)
- func (q *Queries) GetProviderOAuthTokenByProvider(ctx context.Context, providerID pgtype.UUID) (ProviderOauthToken, error)
- func (q *Queries) GetProviderOAuthTokenByState(ctx context.Context, state string) (ProviderOauthToken, error)
- func (q *Queries) GetProviderTemplateByDomainAndKey(ctx context.Context, arg GetProviderTemplateByDomainAndKeyParams) (TemplateProviderTemplate, error)
- func (q *Queries) GetProviderTemplateByID(ctx context.Context, id pgtype.UUID) (TemplateProviderTemplate, error)
- func (q *Queries) GetRespondableUserInputRequest(ctx context.Context, arg GetRespondableUserInputRequestParams) (UserInputRequest, error)
- func (q *Queries) GetRuntimeConfigEpoch(ctx context.Context, arg GetRuntimeConfigEpochParams) (GetRuntimeConfigEpochRow, error)
- func (q *Queries) GetRuntimeLeadingUserMessageID(ctx context.Context, arg GetRuntimeLeadingUserMessageIDParams) (pgtype.UUID, error)
- func (q *Queries) GetRuntimeRoundOutcome(ctx context.Context, arg GetRuntimeRoundOutcomeParams) (string, error)
- func (q *Queries) GetScheduleByID(ctx context.Context, id pgtype.UUID) (Schedule, error)
- func (q *Queries) GetSearchProviderByID(ctx context.Context, id pgtype.UUID) (SearchProvider, error)
- func (q *Queries) GetSearchProviderByName(ctx context.Context, name string) (SearchProvider, error)
- func (q *Queries) GetSessionByID(ctx context.Context, id pgtype.UUID) (BotSession, error)
- func (q *Queries) GetSessionCacheStats(ctx context.Context, sessionID pgtype.UUID) (GetSessionCacheStatsRow, error)
- func (q *Queries) GetSessionDiscussCursor(ctx context.Context, arg GetSessionDiscussCursorParams) (BotSessionDiscussCursor, error)
- func (q *Queries) GetSessionRun(ctx context.Context, runID pgtype.UUID) (SessionRun, error)
- func (q *Queries) GetSessionRunByInvocation(ctx context.Context, arg GetSessionRunByInvocationParams) (SessionRun, error)
- func (q *Queries) GetSessionUsedSkills(ctx context.Context, sessionID pgtype.UUID) ([]string, error)
- func (q *Queries) GetSettingsByBotID(ctx context.Context, id pgtype.UUID) (GetSettingsByBotIDRow, error)
- func (q *Queries) GetSnapshotByContainerAndRuntimeName(ctx context.Context, arg GetSnapshotByContainerAndRuntimeNameParams) (Snapshot, error)
- func (q *Queries) GetSpeechModelWithProvider(ctx context.Context, id pgtype.UUID) (GetSpeechModelWithProviderRow, error)
- func (q *Queries) GetStorageProviderByID(ctx context.Context, id pgtype.UUID) (StorageProvider, error)
- func (q *Queries) GetStorageProviderByName(ctx context.Context, name string) (StorageProvider, error)
- func (q *Queries) GetSubagentConfig(ctx context.Context, sessionID pgtype.UUID) (SubagentConfig, error)
- func (q *Queries) GetTokenUsageByDayAndType(ctx context.Context, arg GetTokenUsageByDayAndTypeParams) ([]GetTokenUsageByDayAndTypeRow, error)
- func (q *Queries) GetTokenUsageByModel(ctx context.Context, arg GetTokenUsageByModelParams) ([]GetTokenUsageByModelRow, error)
- func (q *Queries) GetToolApprovalRequest(ctx context.Context, id pgtype.UUID) (ToolApprovalRequest, error)
- func (q *Queries) GetTranscriptionModelWithProvider(ctx context.Context, id pgtype.UUID) (GetTranscriptionModelWithProviderRow, error)
- func (q *Queries) GetTurnAgentTurnID(ctx context.Context, arg GetTurnAgentTurnIDParams) (string, error)
- func (q *Queries) GetUserByID(ctx context.Context, userID pgtype.UUID) (User, error)
- func (q *Queries) GetUserChannelBinding(ctx context.Context, arg GetUserChannelBindingParams) (UserChannelBinding, error)
- func (q *Queries) GetUserInputRequest(ctx context.Context, id pgtype.UUID) (UserInputRequest, error)
- func (q *Queries) GetUserInputRequestBySessionToolCall(ctx context.Context, arg GetUserInputRequestBySessionToolCallParams) (UserInputRequest, error)
- func (q *Queries) GetUserProviderOAuthToken(ctx context.Context, arg GetUserProviderOAuthTokenParams) (UserProviderOauthToken, error)
- func (q *Queries) GetUserProviderOAuthTokenByState(ctx context.Context, state string) (UserProviderOauthToken, error)
- func (q *Queries) GetUserRuntimeByAPIToken(ctx context.Context, apiToken string) (UserRuntime, error)
- func (q *Queries) GetVersionSnapshotRuntimeName(ctx context.Context, arg GetVersionSnapshotRuntimeNameParams) (string, error)
- func (q *Queries) GetVideoModelWithProvider(ctx context.Context, id pgtype.UUID) (GetVideoModelWithProviderRow, error)
- func (q *Queries) GetVisibleHistoryTurnByMessage(ctx context.Context, arg GetVisibleHistoryTurnByMessageParams) (GetVisibleHistoryTurnByMessageRow, error)
- func (q *Queries) GetVisibleMessageCursorByExternalIDBySession(ctx context.Context, arg GetVisibleMessageCursorByExternalIDBySessionParams) (GetVisibleMessageCursorByExternalIDBySessionRow, error)
- func (q *Queries) GetVisibleMessageCursorByIDBySession(ctx context.Context, arg GetVisibleMessageCursorByIDBySessionParams) (GetVisibleMessageCursorByIDBySessionRow, error)
- func (q *Queries) GetWorkspaceDependencyCatalog(ctx context.Context, sourceUrl string) (WorkspaceDependencyCatalog, error)
- func (q *Queries) GetWorkspaceDependencyDefinition(ctx context.Context, arg GetWorkspaceDependencyDefinitionParams) (GetWorkspaceDependencyDefinitionRow, error)
- func (q *Queries) HasUnmaterializedContextLifecycleMetadataBySession(ctx context.Context, sessionID pgtype.UUID) (bool, error)
- func (q *Queries) HideMessagesByHistoryTurn(ctx context.Context, turnID pgtype.UUID) error
- func (q *Queries) IncrementScheduleCalls(ctx context.Context, id pgtype.UUID) (Schedule, error)
- func (q *Queries) InsertAgentSessionStateLines(ctx context.Context, arg InsertAgentSessionStateLinesParams) (InsertAgentSessionStateLinesRow, error)
- func (q *Queries) InsertLifecycleEvent(ctx context.Context, arg InsertLifecycleEventParams) error
- func (q *Queries) InsertMemoryEdge(ctx context.Context, arg InsertMemoryEdgeParams) error
- func (q *Queries) InsertVersion(ctx context.Context, arg InsertVersionParams) (ContainerVersion, error)
- func (q *Queries) LinkMessageToHistoryTurn(ctx context.Context, arg LinkMessageToHistoryTurnParams) (pgtype.UUID, error)
- func (q *Queries) LinkUnassignedMessagesAfterHistoryTurnAssistant(ctx context.Context, turnID pgtype.UUID) error
- func (q *Queries) ListAccessibleBots(ctx context.Context, ownerUserID pgtype.UUID) ([]ListAccessibleBotsRow, error)
- func (q *Queries) ListAccounts(ctx context.Context) ([]TeamAccount, error)
- func (q *Queries) ListActiveMessagesSince(ctx context.Context, arg ListActiveMessagesSinceParams) ([]ListActiveMessagesSinceRow, error)
- func (q *Queries) ListActiveMessagesSinceBySession(ctx context.Context, arg ListActiveMessagesSinceBySessionParams) ([]ListActiveMessagesSinceBySessionRow, error)
- func (q *Queries) ListActiveMessagesSinceBySessionWithinBytes(ctx context.Context, arg ListActiveMessagesSinceBySessionWithinBytesParams) ([]ListActiveMessagesSinceBySessionWithinBytesRow, error)
- func (q *Queries) ListActiveMessagesSinceWithinBytes(ctx context.Context, arg ListActiveMessagesSinceWithinBytesParams) ([]ListActiveMessagesSinceWithinBytesRow, error)
- func (q *Queries) ListActiveSessionRunsByBot(ctx context.Context, botID pgtype.UUID) ([]SessionRun, error)
- func (q *Queries) ListAgentSessionStateLinePage(ctx context.Context, arg ListAgentSessionStateLinePageParams) ([]ListAgentSessionStateLinePageRow, error)
- func (q *Queries) ListAllMessagesForBackup(ctx context.Context, botID pgtype.UUID) ([]ListAllMessagesForBackupRow, error)
- func (q *Queries) ListAllProviderTemplateModels(ctx context.Context, providerTemplateID pgtype.UUID) ([]TemplateProviderTemplateModel, error)
- func (q *Queries) ListAllProviderTemplates(ctx context.Context) ([]TemplateProviderTemplate, error)
- func (q *Queries) ListAppConnectorRefs(ctx context.Context, installationID pgtype.UUID) ([]BotAppConnectorRef, error)
- func (q *Queries) ListAppConnectorRefsForBot(ctx context.Context, botID pgtype.UUID) ([]ListAppConnectorRefsForBotRow, error)
- func (q *Queries) ListAppDependencyRefs(ctx context.Context, installationID pgtype.UUID) ([]BotAppDependencyRef, error)
- func (q *Queries) ListAppDependencyRefsForBot(ctx context.Context, botID pgtype.UUID) ([]ListAppDependencyRefsForBotRow, error)
- func (q *Queries) ListAutoStartContainers(ctx context.Context) ([]Container, error)
- func (q *Queries) ListBotACLRules(ctx context.Context, botID pgtype.UUID) ([]ListBotACLRulesRow, error)
- func (q *Queries) ListBotAgents(ctx context.Context, botID pgtype.UUID) ([]BotAgent, error)
- func (q *Queries) ListBotAppInstallations(ctx context.Context, botID pgtype.UUID) ([]BotAppInstallation, error)
- func (q *Queries) ListBotChannelAdmins(ctx context.Context, botID pgtype.UUID) ([]ListBotChannelAdminsRow, error)
- func (q *Queries) ListBotChannelConfigsByType(ctx context.Context, channelType string) ([]BotChannelConfig, error)
- func (q *Queries) ListBotDependencyInstallations(ctx context.Context, botID pgtype.UUID) ([]BotDependencyInstallation, error)
- func (q *Queries) ListBotDependencyInstallationsByStatus(ctx context.Context, status string) ([]BotDependencyInstallation, error)
- func (q *Queries) ListBotEmailBindings(ctx context.Context, botID pgtype.UUID) ([]BotEmailBinding, error)
- func (q *Queries) ListBotEmailBindingsByProvider(ctx context.Context, emailProviderID pgtype.UUID) ([]BotEmailBinding, error)
- func (q *Queries) ListBotRemoteRuntimeGrantsByRuntimeOwner(ctx context.Context, ownerUserID pgtype.UUID) ([]ListBotRemoteRuntimeGrantsByRuntimeOwnerRow, error)
- func (q *Queries) ListBotRemoteRuntimeMounts(ctx context.Context, botID pgtype.UUID) ([]ListBotRemoteRuntimeMountsRow, error)
- func (q *Queries) ListBotUserGrants(ctx context.Context, botID pgtype.UUID) ([]ListBotUserGrantsRow, error)
- func (q *Queries) ListBotUserGrantsForUser(ctx context.Context, arg ListBotUserGrantsForUserParams) ([]ListBotUserGrantsForUserRow, error)
- func (q *Queries) ListBotWorkdirs(ctx context.Context, arg ListBotWorkdirsParams) ([]BotWorkdir, error)
- func (q *Queries) ListBotsByOwner(ctx context.Context, ownerUserID pgtype.UUID) ([]ListBotsByOwnerRow, error)
- func (q *Queries) ListChannelIdentityBindings(ctx context.Context) ([]ListChannelIdentityBindingsRow, error)
- func (q *Queries) ListChannelIdentityBindingsForBot(ctx context.Context, botID pgtype.UUID) ([]ListChannelIdentityBindingsForBotRow, error)
- func (q *Queries) ListChannelIdentityBindingsForUser(ctx context.Context, userID pgtype.UUID) ([]ListChannelIdentityBindingsForUserRow, error)
- func (q *Queries) ListChatRouteThreadProjectionsByIDs(ctx context.Context, arg ListChatRouteThreadProjectionsByIDsParams) ([]ListChatRouteThreadProjectionsByIDsRow, error)
- func (q *Queries) ListChatRoutes(ctx context.Context, botID pgtype.UUID) ([]ListChatRoutesRow, error)
- func (q *Queries) ListCompactionArtifactLineageBySession(ctx context.Context, id pgtype.UUID) ([]BotHistoryMessageCompact, error)
- func (q *Queries) ListCompactionArtifactParentIDsBySuccessor(ctx context.Context, arg ListCompactionArtifactParentIDsBySuccessorParams) ([]pgtype.UUID, error)
- func (q *Queries) ListCompactionLogsByBot(ctx context.Context, arg ListCompactionLogsByBotParams) ([]BotHistoryMessageCompact, error)
- func (q *Queries) ListConnectorsByBotID(ctx context.Context, botID pgtype.UUID) ([]Connector, error)
- func (q *Queries) ListEmailOutboxByBot(ctx context.Context, arg ListEmailOutboxByBotParams) ([]EmailOutbox, error)
- func (q *Queries) ListEmailProviders(ctx context.Context) ([]EmailProvider, error)
- func (q *Queries) ListEmailProvidersByProvider(ctx context.Context, provider string) ([]EmailProvider, error)
- func (q *Queries) ListEmailProvidersByUser(ctx context.Context, userID pgtype.UUID) ([]EmailProvider, error)
- func (q *Queries) ListEmailProvidersByUserAndProvider(ctx context.Context, arg ListEmailProvidersByUserAndProviderParams) ([]EmailProvider, error)
- func (q *Queries) ListEnabledModels(ctx context.Context) ([]Model, error)
- func (q *Queries) ListEnabledModelsByProviderClientType(ctx context.Context, clientType string) ([]Model, error)
- func (q *Queries) ListEnabledModelsByType(ctx context.Context, type_ string) ([]Model, error)
- func (q *Queries) ListEnabledSchedules(ctx context.Context) ([]Schedule, error)
- func (q *Queries) ListFetchProviders(ctx context.Context) ([]FetchProvider, error)
- func (q *Queries) ListFetchProvidersByProvider(ctx context.Context, provider string) ([]FetchProvider, error)
- func (q *Queries) ListHistoryTurnsByBot(ctx context.Context, botID pgtype.UUID) ([]ListHistoryTurnsByBotRow, error)
- func (q *Queries) ListMCPConnectionsByBotID(ctx context.Context, botID pgtype.UUID) ([]McpConnection, error)
- func (q *Queries) ListMemoryEdgesByBot(ctx context.Context, botID pgtype.UUID) ([]MemoryEdge, error)
- func (q *Queries) ListMemoryEdgesByRel(ctx context.Context, arg ListMemoryEdgesByRelParams) ([]MemoryEdge, error)
- func (q *Queries) ListMemoryEdgesFromNode(ctx context.Context, arg ListMemoryEdgesFromNodeParams) ([]MemoryEdge, error)
- func (q *Queries) ListMemoryNodesByBot(ctx context.Context, botID pgtype.UUID) ([]MemoryNode, error)
- func (q *Queries) ListMemoryNodesByBotLayer(ctx context.Context, arg ListMemoryNodesByBotLayerParams) ([]MemoryNode, error)
- func (q *Queries) ListMemoryNodesByBotProfile(ctx context.Context, arg ListMemoryNodesByBotProfileParams) ([]MemoryNode, error)
- func (q *Queries) ListMemoryProviders(ctx context.Context) ([]MemoryProvider, error)
- func (q *Queries) ListMessageAssets(ctx context.Context, messageID pgtype.UUID) ([]ListMessageAssetsRow, error)
- func (q *Queries) ListMessageAssetsBatch(ctx context.Context, messageIds []pgtype.UUID) ([]ListMessageAssetsBatchRow, error)
- func (q *Queries) ListMessageRefsByCompactID(ctx context.Context, compactID pgtype.UUID) ([]ListMessageRefsByCompactIDRow, error)
- func (q *Queries) ListMessages(ctx context.Context, botID pgtype.UUID) ([]ListMessagesRow, error)
- func (q *Queries) ListMessagesAfterBySession(ctx context.Context, arg ListMessagesAfterBySessionParams) ([]ListMessagesAfterBySessionRow, error)
- func (q *Queries) ListMessagesAfterCursorBySession(ctx context.Context, arg ListMessagesAfterCursorBySessionParams) ([]ListMessagesAfterCursorBySessionRow, error)
- func (q *Queries) ListMessagesAfterMessageBySession(ctx context.Context, arg ListMessagesAfterMessageBySessionParams) ([]ListMessagesAfterMessageBySessionRow, error)
- func (q *Queries) ListMessagesBefore(ctx context.Context, arg ListMessagesBeforeParams) ([]ListMessagesBeforeRow, error)
- func (q *Queries) ListMessagesBeforeBySession(ctx context.Context, arg ListMessagesBeforeBySessionParams) ([]ListMessagesBeforeBySessionRow, error)
- func (q *Queries) ListMessagesBeforeCursorBySession(ctx context.Context, arg ListMessagesBeforeCursorBySessionParams) ([]ListMessagesBeforeCursorBySessionRow, error)
- func (q *Queries) ListMessagesBeforeMessageBySession(ctx context.Context, arg ListMessagesBeforeMessageBySessionParams) ([]ListMessagesBeforeMessageBySessionRow, error)
- func (q *Queries) ListMessagesByCompactID(ctx context.Context, compactID pgtype.UUID) ([]ListMessagesByCompactIDRow, error)
- func (q *Queries) ListMessagesBySession(ctx context.Context, sessionID pgtype.UUID) ([]ListMessagesBySessionRow, error)
- func (q *Queries) ListMessagesLatest(ctx context.Context, arg ListMessagesLatestParams) ([]ListMessagesLatestRow, error)
- func (q *Queries) ListMessagesLatestBySession(ctx context.Context, arg ListMessagesLatestBySessionParams) ([]ListMessagesLatestBySessionRow, error)
- func (q *Queries) ListMessagesLatestUIBySession(ctx context.Context, arg ListMessagesLatestUIBySessionParams) ([]ListMessagesLatestUIBySessionRow, error)
- func (q *Queries) ListMessagesSince(ctx context.Context, arg ListMessagesSinceParams) ([]ListMessagesSinceRow, error)
- func (q *Queries) ListMessagesSinceBySession(ctx context.Context, arg ListMessagesSinceBySessionParams) ([]ListMessagesSinceBySessionRow, error)
- func (q *Queries) ListModelVariantsByModelUUID(ctx context.Context, modelUuid pgtype.UUID) ([]ModelVariant, error)
- func (q *Queries) ListModels(ctx context.Context) ([]Model, error)
- func (q *Queries) ListModelsByModelID(ctx context.Context, modelID string) ([]Model, error)
- func (q *Queries) ListModelsByProviderClientType(ctx context.Context, clientType string) ([]Model, error)
- func (q *Queries) ListModelsByProviderID(ctx context.Context, providerID pgtype.UUID) ([]Model, error)
- func (q *Queries) ListModelsByProviderIDAndType(ctx context.Context, arg ListModelsByProviderIDAndTypeParams) ([]Model, error)
- func (q *Queries) ListModelsByType(ctx context.Context, type_ string) ([]Model, error)
- func (q *Queries) ListObservedConversationsByChannelIdentity(ctx context.Context, arg ListObservedConversationsByChannelIdentityParams) ([]ListObservedConversationsByChannelIdentityRow, error)
- func (q *Queries) ListObservedConversationsByChannelType(ctx context.Context, arg ListObservedConversationsByChannelTypeParams) ([]ListObservedConversationsByChannelTypeRow, error)
- func (q *Queries) ListOrphanedSessionRuns(ctx context.Context, arg ListOrphanedSessionRunsParams) ([]SessionRun, error)
- func (q *Queries) ListPendingToolApprovalsByRun(ctx context.Context, runID pgtype.UUID) ([]ToolApprovalRequest, error)
- func (q *Queries) ListPendingToolApprovalsBySession(ctx context.Context, arg ListPendingToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
- func (q *Queries) ListPendingUserInputsByRun(ctx context.Context, runID pgtype.UUID) ([]UserInputRequest, error)
- func (q *Queries) ListPendingUserInputsBySession(ctx context.Context, arg ListPendingUserInputsBySessionParams) ([]UserInputRequest, error)
- func (q *Queries) ListProviderTemplateModels(ctx context.Context, providerTemplateID pgtype.UUID) ([]TemplateProviderTemplateModel, error)
- func (q *Queries) ListProviderTemplates(ctx context.Context, domain string) ([]ListProviderTemplatesRow, error)
- func (q *Queries) ListProviders(ctx context.Context) ([]Provider, error)
- func (q *Queries) ListReadableBindingsByProvider(ctx context.Context, emailProviderID pgtype.UUID) ([]BotEmailBinding, error)
- func (q *Queries) ListRecentAssistantMessagesBySession(ctx context.Context, arg ListRecentAssistantMessagesBySessionParams) ([]ListRecentAssistantMessagesBySessionRow, error)
- func (q *Queries) ListRecentContextLifecyclesBySession(ctx context.Context, arg ListRecentContextLifecyclesBySessionParams) ([]ListRecentContextLifecyclesBySessionRow, error)
- func (q *Queries) ListScheduleLogsByBot(ctx context.Context, arg ListScheduleLogsByBotParams) ([]ListScheduleLogsByBotRow, error)
- func (q *Queries) ListScheduleLogsBySchedule(ctx context.Context, arg ListScheduleLogsByScheduleParams) ([]ListScheduleLogsByScheduleRow, error)
- func (q *Queries) ListSchedulesByBot(ctx context.Context, botID pgtype.UUID) ([]Schedule, error)
- func (q *Queries) ListSearchProviders(ctx context.Context) ([]SearchProvider, error)
- func (q *Queries) ListSearchProvidersByProvider(ctx context.Context, provider string) ([]SearchProvider, error)
- func (q *Queries) ListSessionDiscussCursorsByBot(ctx context.Context, botID pgtype.UUID) ([]BotSessionDiscussCursor, error)
- func (q *Queries) ListSessionEventsByBot(ctx context.Context, botID pgtype.UUID) ([]BotSessionEvent, error)
- func (q *Queries) ListSessionEventsBySession(ctx context.Context, sessionID pgtype.UUID) ([]BotSessionEvent, error)
- func (q *Queries) ListSessionEventsBySessionAfter(ctx context.Context, arg ListSessionEventsBySessionAfterParams) ([]BotSessionEvent, error)
- func (q *Queries) ListSessionEventsBySessionPageBeforeWithinBytes(ctx context.Context, arg ListSessionEventsBySessionPageBeforeWithinBytesParams) ([]ListSessionEventsBySessionPageBeforeWithinBytesRow, error)
- func (q *Queries) ListSessionsByBot(ctx context.Context, botID pgtype.UUID) ([]ListSessionsByBotRow, error)
- func (q *Queries) ListSessionsByBotAndCreatedByUser(ctx context.Context, arg ListSessionsByBotAndCreatedByUserParams) ([]ListSessionsByBotAndCreatedByUserRow, error)
- func (q *Queries) ListSessionsByBotAndCreatedByUserPaged(ctx context.Context, arg ListSessionsByBotAndCreatedByUserPagedParams) ([]ListSessionsByBotAndCreatedByUserPagedRow, error)
- func (q *Queries) ListSessionsByBotPaged(ctx context.Context, arg ListSessionsByBotPagedParams) ([]ListSessionsByBotPagedRow, error)
- func (q *Queries) ListSessionsByRoute(ctx context.Context, routeID pgtype.UUID) ([]BotSession, error)
- func (q *Queries) ListSnapshotsByContainerID(ctx context.Context, containerID string) ([]Snapshot, error)
- func (q *Queries) ListSnapshotsWithVersionByContainerID(ctx context.Context, containerID string) ([]ListSnapshotsWithVersionByContainerIDRow, error)
- func (q *Queries) ListSpeechModels(ctx context.Context) ([]ListSpeechModelsRow, error)
- func (q *Queries) ListSpeechModelsByProviderID(ctx context.Context, providerID pgtype.UUID) ([]Model, error)
- func (q *Queries) ListSpeechProviders(ctx context.Context) ([]Provider, error)
- func (q *Queries) ListStaleBotDependencyOperations(ctx context.Context, olderThanSeconds float64) ([]BotDependencyInstallation, error)
- func (q *Queries) ListStaleGenerationSessionRuns(ctx context.Context, arg ListStaleGenerationSessionRunsParams) ([]SessionRun, error)
- func (q *Queries) ListStorageProviders(ctx context.Context) ([]StorageProvider, error)
- func (q *Queries) ListSubagentForkContext(ctx context.Context, sessionID pgtype.UUID) ([]ListSubagentForkContextRow, error)
- func (q *Queries) ListSubagentSessionsByParent(ctx context.Context, parentSessionID pgtype.UUID) ([]BotSession, error)
- func (q *Queries) ListTerminalSessionRunsNeedingContextLifecycle(ctx context.Context, batchSize int32) ([]ListTerminalSessionRunsNeedingContextLifecycleRow, error)
- func (q *Queries) ListTokenUsageRecords(ctx context.Context, arg ListTokenUsageRecordsParams) ([]ListTokenUsageRecordsRow, error)
- func (q *Queries) ListToolApprovalsByRun(ctx context.Context, runID pgtype.UUID) ([]ToolApprovalRequest, error)
- func (q *Queries) ListToolApprovalsBySession(ctx context.Context, arg ListToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
- func (q *Queries) ListToolApprovalsBySessionToolCalls(ctx context.Context, arg ListToolApprovalsBySessionToolCallsParams) ([]ToolApprovalRequest, error)
- func (q *Queries) ListTranscriptionModels(ctx context.Context) ([]ListTranscriptionModelsRow, error)
- func (q *Queries) ListTranscriptionModelsByProviderID(ctx context.Context, providerID pgtype.UUID) ([]Model, error)
- func (q *Queries) ListTranscriptionProviders(ctx context.Context) ([]Provider, error)
- func (q *Queries) ListUncompactedMessagesBySession(ctx context.Context, sessionID pgtype.UUID) ([]ListUncompactedMessagesBySessionRow, error)
- func (q *Queries) ListUncompactedMessagesBySessionWithinBytes(ctx context.Context, arg ListUncompactedMessagesBySessionWithinBytesParams) ([]ListUncompactedMessagesBySessionWithinBytesRow, error)
- func (q *Queries) ListUserChannelBindingsByPlatform(ctx context.Context, channelType string) ([]UserChannelBinding, error)
- func (q *Queries) ListUserIDsByChannelIdentity(ctx context.Context, channelIdentityID pgtype.UUID) ([]pgtype.UUID, error)
- func (q *Queries) ListUserInputsByRun(ctx context.Context, runID pgtype.UUID) ([]UserInputRequest, error)
- func (q *Queries) ListUserInputsBySession(ctx context.Context, arg ListUserInputsBySessionParams) ([]UserInputRequest, error)
- func (q *Queries) ListUserInputsBySessionToolCalls(ctx context.Context, arg ListUserInputsBySessionToolCallsParams) ([]UserInputRequest, error)
- func (q *Queries) ListUserRuntimes(ctx context.Context, userID pgtype.UUID) ([]UserRuntime, error)
- func (q *Queries) ListVersionsByContainerID(ctx context.Context, containerID string) ([]ListVersionsByContainerIDRow, error)
- func (q *Queries) ListVideoModels(ctx context.Context) ([]ListVideoModelsRow, error)
- func (q *Queries) ListVideoModelsByProviderID(ctx context.Context, providerID pgtype.UUID) ([]Model, error)
- func (q *Queries) ListVideoProviders(ctx context.Context) ([]Provider, error)
- func (q *Queries) ListVisibleMessagesFromBySession(ctx context.Context, arg ListVisibleMessagesFromBySessionParams) ([]ListVisibleMessagesFromBySessionRow, error)
- func (q *Queries) LocateMessagesWindowByExternalIDBySession(ctx context.Context, arg LocateMessagesWindowByExternalIDBySessionParams) ([]LocateMessagesWindowByExternalIDBySessionRow, error)
- func (q *Queries) LockActiveSessionRunForHistoryReset(ctx context.Context, arg LockActiveSessionRunForHistoryResetParams) (SessionRun, error)
- func (q *Queries) LockAgentAuthorizationOwner(ctx context.Context, ownerUserID string) error
- func (q *Queries) LockBotForAgentMutation(ctx context.Context, botID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) LockBotForRuntimeReset(ctx context.Context, botID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) LockBotForSessionRunClaim(ctx context.Context, botID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) LockBotForSessionWrite(ctx context.Context, id pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) LockHistoryTurnAppendByRequest(ctx context.Context, arg LockHistoryTurnAppendByRequestParams) error
- func (q *Queries) LockSessionDecisionSequence(ctx context.Context, arg LockSessionDecisionSequenceParams) (pgtype.UUID, error)
- func (q *Queries) LockSessionForCommitReconciliation(ctx context.Context, arg LockSessionForCommitReconciliationParams) (pgtype.UUID, error)
- func (q *Queries) LockSessionRunForAgentStepCommit(ctx context.Context, arg LockSessionRunForAgentStepCommitParams) (pgtype.UUID, error)
- func (q *Queries) LockSessionRuntimeFence(ctx context.Context, arg LockSessionRuntimeFenceParams) (int64, error)
- func (q *Queries) LockSessionRuntimeFenceForActivation(ctx context.Context, arg LockSessionRuntimeFenceForActivationParams) (int64, error)
- func (q *Queries) MarkChannelLinkCodeConsumed(ctx context.Context, arg MarkChannelLinkCodeConsumedParams) (ChannelLinkCode, error)
- func (q *Queries) MarkMessagesCompacted(ctx context.Context, arg MarkMessagesCompactedParams) (int64, error)
- func (q *Queries) MeasureActiveMessagesBySession(ctx context.Context, arg MeasureActiveMessagesBySessionParams) (MeasureActiveMessagesBySessionRow, error)
- func (q *Queries) MeasureUncompactedMessagesBySession(ctx context.Context, sessionID pgtype.UUID) (MeasureUncompactedMessagesBySessionRow, error)
- func (q *Queries) NextSessionEventCursor(ctx context.Context) (int64, error)
- func (q *Queries) NextSessionRunFencingToken(ctx context.Context) (int64, error)
- func (q *Queries) NextSessionRuntimeFenceToken(ctx context.Context) (int64, error)
- func (q *Queries) NextVersion(ctx context.Context, containerID string) (int32, error)
- func (q *Queries) PrepareSessionRunFinish(ctx context.Context, arg PrepareSessionRunFinishParams) (SessionRun, error)
- func (q *Queries) PruneAgentAuthorizations(ctx context.Context) error
- func (q *Queries) PruneAgentSessionStateVersions(ctx context.Context, arg PruneAgentSessionStateVersionsParams) (int64, error)
- func (q *Queries) PruneWorkspaceDependencyDefinitions(ctx context.Context, sourceUrl string) (int64, error)
- func (q *Queries) ReclaimWaitingDecisionSessionRun(ctx context.Context, arg ReclaimWaitingDecisionSessionRunParams) (SessionRun, error)
- func (q *Queries) RedeemChannelLinkCode(ctx context.Context, arg RedeemChannelLinkCodeParams) (UserChannelIdentityBinding, error)
- func (q *Queries) RefreshLockedBotRuntimeReset(ctx context.Context, arg RefreshLockedBotRuntimeResetParams) (pgtype.Timestamptz, error)
- func (q *Queries) RefreshLockedBotSessionRuntimeReset(ctx context.Context, arg RefreshLockedBotSessionRuntimeResetParams) (pgtype.Timestamptz, error)
- func (q *Queries) RejectToolApprovalRequest(ctx context.Context, arg RejectToolApprovalRequestParams) (ToolApprovalRequest, error)
- func (q *Queries) ReleaseBotRuntimeReset(ctx context.Context, arg ReleaseBotRuntimeResetParams) (pgtype.UUID, error)
- func (q *Queries) ReleaseBotSessionRuntimeReset(ctx context.Context, arg ReleaseBotSessionRuntimeResetParams) (pgtype.UUID, error)
- func (q *Queries) RemoveMember(ctx context.Context, userID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) RenameBotWorkdir(ctx context.Context, arg RenameBotWorkdirParams) (BotWorkdir, error)
- func (q *Queries) RenewBotRuntimeReset(ctx context.Context, arg RenewBotRuntimeResetParams) (pgtype.Timestamptz, error)
- func (q *Queries) RenewBotSessionRuntimeReset(ctx context.Context, arg RenewBotSessionRuntimeResetParams) (pgtype.Timestamptz, error)
- func (q *Queries) ReplaceHistoryTurn(ctx context.Context, arg ReplaceHistoryTurnParams) (ReplaceHistoryTurnRow, error)
- func (q *Queries) RequestSessionRunAbort(ctx context.Context, runID pgtype.UUID) (SessionRun, error)
- func (q *Queries) ResumeSessionRun(ctx context.Context, arg ResumeSessionRunParams) (SessionRun, error)
- func (q *Queries) RevokeAgentCredentialByID(ctx context.Context, id pgtype.UUID) (AgentCredential, error)
- func (q *Queries) RevokeAgentCredentialsForBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) RevokeUserRuntime(ctx context.Context, arg RevokeUserRuntimeParams) (UserRuntime, error)
- func (q *Queries) SaveMatrixSyncSinceToken(ctx context.Context, arg SaveMatrixSyncSinceTokenParams) (int64, error)
- func (q *Queries) SearchAccounts(ctx context.Context, arg SearchAccountsParams) ([]TeamAccount, error)
- func (q *Queries) SearchChannelIdentities(ctx context.Context, arg SearchChannelIdentitiesParams) ([]ChannelIdentity, error)
- func (q *Queries) SearchMessages(ctx context.Context, arg SearchMessagesParams) ([]SearchMessagesRow, error)
- func (q *Queries) SessionLiveForRuntimeReset(ctx context.Context, arg SessionLiveForRuntimeResetParams) (bool, error)
- func (q *Queries) SetAppConnectorRefConnection(ctx context.Context, arg SetAppConnectorRefConnectionParams) (BotAppConnectorRef, error)
- func (q *Queries) SetBotACLDefaultEffect(ctx context.Context, arg SetBotACLDefaultEffectParams) error
- func (q *Queries) SetBotAgentCredential(ctx context.Context, arg SetBotAgentCredentialParams) (pgtype.UUID, error)
- func (q *Queries) SetBotRemoteRuntimePrimary(ctx context.Context, arg SetBotRemoteRuntimePrimaryParams) (int64, error)
- func (q *Queries) SetProviderTemplateActive(ctx context.Context, arg SetProviderTemplateActiveParams) error
- func (q *Queries) SetProviderTemplateModelActive(ctx context.Context, arg SetProviderTemplateModelActiveParams) error
- func (q *Queries) SetRoundAgentTurnID(ctx context.Context, arg SetRoundAgentTurnIDParams) (int64, error)
- func (q *Queries) SetRouteActiveSession(ctx context.Context, arg SetRouteActiveSessionParams) error
- func (q *Queries) SetSessionNextTurnPosition(ctx context.Context, arg SetSessionNextTurnPositionParams) error
- func (q *Queries) SetSessionRunWaitingDecision(ctx context.Context, arg SetSessionRunWaitingDecisionParams) (SessionRun, error)
- func (q *Queries) SoftDeleteBotAgent(ctx context.Context, arg SoftDeleteBotAgentParams) (BotAgent, error)
- func (q *Queries) SoftDeleteSession(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) SoftDeleteSessionsByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) SubmitUserInputRequest(ctx context.Context, arg SubmitUserInputRequestParams) (UserInputRequest, error)
- func (q *Queries) SupersedeHistoryTurn(ctx context.Context, arg SupersedeHistoryTurnParams) (SupersedeHistoryTurnRow, error)
- func (q *Queries) SupersedePendingToolApprovalsBySession(ctx context.Context, arg SupersedePendingToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
- func (q *Queries) SupersedePendingUserInputsBySession(ctx context.Context, arg SupersedePendingUserInputsBySessionParams) ([]UserInputRequest, error)
- func (q *Queries) TouchBotActivity(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) TouchSession(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) TrimAgentSessionStateLines(ctx context.Context, arg TrimAgentSessionStateLinesParams) (int64, error)
- func (q *Queries) UpdateAbortedContextLifecycleSnapshot(ctx context.Context, arg UpdateAbortedContextLifecycleSnapshotParams) (UpdateAbortedContextLifecycleSnapshotRow, error)
- func (q *Queries) UpdateAccountAdmin(ctx context.Context, arg UpdateAccountAdminParams) (UpdateAccountAdminRow, error)
- func (q *Queries) UpdateAccountLastLogin(ctx context.Context, userID pgtype.UUID) (pgtype.UUID, error)
- func (q *Queries) UpdateAccountPassword(ctx context.Context, arg UpdateAccountPasswordParams) (pgtype.UUID, error)
- func (q *Queries) UpdateAccountProfile(ctx context.Context, arg UpdateAccountProfileParams) (UpdateAccountProfileRow, error)
- func (q *Queries) UpdateAgentAuthorization(ctx context.Context, arg UpdateAgentAuthorizationParams) (AgentAuthorization, error)
- func (q *Queries) UpdateAgentCredentialPayloadCAS(ctx context.Context, arg UpdateAgentCredentialPayloadCASParams) (AgentCredential, error)
- func (q *Queries) UpdateBotACLRule(ctx context.Context, arg UpdateBotACLRuleParams) (BotAclRule, error)
- func (q *Queries) UpdateBotAgent(ctx context.Context, arg UpdateBotAgentParams) (BotAgent, error)
- func (q *Queries) UpdateBotAppInstallationCheck(ctx context.Context, arg UpdateBotAppInstallationCheckParams) (BotAppInstallation, error)
- func (q *Queries) UpdateBotAppInstallationRelease(ctx context.Context, arg UpdateBotAppInstallationReleaseParams) (BotAppInstallation, error)
- func (q *Queries) UpdateBotAppInstallationStatus(ctx context.Context, arg UpdateBotAppInstallationStatusParams) (BotAppInstallation, error)
- func (q *Queries) UpdateBotChannelConfigDisabled(ctx context.Context, arg UpdateBotChannelConfigDisabledParams) (BotChannelConfig, error)
- func (q *Queries) UpdateBotDependencyInstallationObserved(ctx context.Context, arg UpdateBotDependencyInstallationObservedParams) (BotDependencyInstallation, error)
- func (q *Queries) UpdateBotDependencyInstallationStatus(ctx context.Context, arg UpdateBotDependencyInstallationStatusParams) (BotDependencyInstallation, error)
- func (q *Queries) UpdateBotEmailBinding(ctx context.Context, arg UpdateBotEmailBindingParams) (BotEmailBinding, error)
- func (q *Queries) UpdateBotOwner(ctx context.Context, arg UpdateBotOwnerParams) (UpdateBotOwnerRow, error)
- func (q *Queries) UpdateBotProfile(ctx context.Context, arg UpdateBotProfileParams) (UpdateBotProfileRow, error)
- func (q *Queries) UpdateBotRemoteRuntimeMountToolApproval(ctx context.Context, arg UpdateBotRemoteRuntimeMountToolApprovalParams) (pgtype.UUID, error)
- func (q *Queries) UpdateBotStatus(ctx context.Context, arg UpdateBotStatusParams) error
- func (q *Queries) UpdateBotUserGrantPermissions(ctx context.Context, arg UpdateBotUserGrantPermissionsParams) (BotUserGrant, error)
- func (q *Queries) UpdateChatRouteMetadata(ctx context.Context, arg UpdateChatRouteMetadataParams) error
- func (q *Queries) UpdateChatRouteReplyTarget(ctx context.Context, arg UpdateChatRouteReplyTargetParams) error
- func (q *Queries) UpdateConnectorEnabled(ctx context.Context, arg UpdateConnectorEnabledParams) (int64, error)
- func (q *Queries) UpdateContainerStarted(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) UpdateContainerStatus(ctx context.Context, arg UpdateContainerStatusParams) error
- func (q *Queries) UpdateContainerStopped(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) UpdateEmailOAuthState(ctx context.Context, arg UpdateEmailOAuthStateParams) error
- func (q *Queries) UpdateEmailOutboxFailed(ctx context.Context, arg UpdateEmailOutboxFailedParams) error
- func (q *Queries) UpdateEmailOutboxSent(ctx context.Context, arg UpdateEmailOutboxSentParams) error
- func (q *Queries) UpdateEmailProvider(ctx context.Context, arg UpdateEmailProviderParams) (EmailProvider, error)
- func (q *Queries) UpdateEmailProviderByIDAndUser(ctx context.Context, arg UpdateEmailProviderByIDAndUserParams) (EmailProvider, error)
- func (q *Queries) UpdateFetchProvider(ctx context.Context, arg UpdateFetchProviderParams) (FetchProvider, error)
- func (q *Queries) UpdateMCPConnection(ctx context.Context, arg UpdateMCPConnectionParams) (McpConnection, error)
- func (q *Queries) UpdateMCPConnectionActive(ctx context.Context, arg UpdateMCPConnectionActiveParams) error
- func (q *Queries) UpdateMCPConnectionAuthType(ctx context.Context, arg UpdateMCPConnectionAuthTypeParams) error
- func (q *Queries) UpdateMCPConnectionProbeResult(ctx context.Context, arg UpdateMCPConnectionProbeResultParams) error
- func (q *Queries) UpdateMCPOAuthClientSecret(ctx context.Context, arg UpdateMCPOAuthClientSecretParams) error
- func (q *Queries) UpdateMCPOAuthPKCEState(ctx context.Context, arg UpdateMCPOAuthPKCEStateParams) error
- func (q *Queries) UpdateMCPOAuthTokens(ctx context.Context, arg UpdateMCPOAuthTokensParams) error
- func (q *Queries) UpdateMemoryProvider(ctx context.Context, arg UpdateMemoryProviderParams) (MemoryProvider, error)
- func (q *Queries) UpdateModel(ctx context.Context, arg UpdateModelParams) (Model, error)
- func (q *Queries) UpdateProvider(ctx context.Context, arg UpdateProviderParams) (Provider, error)
- func (q *Queries) UpdateProviderOAuthState(ctx context.Context, arg UpdateProviderOAuthStateParams) error
- func (q *Queries) UpdateSchedule(ctx context.Context, arg UpdateScheduleParams) (Schedule, error)
- func (q *Queries) UpdateSearchProvider(ctx context.Context, arg UpdateSearchProviderParams) (SearchProvider, error)
- func (q *Queries) UpdateSessionMetadata(ctx context.Context, arg UpdateSessionMetadataParams) (BotSession, error)
- func (q *Queries) UpdateSessionMetadataWithRuntimeFence(ctx context.Context, arg UpdateSessionMetadataWithRuntimeFenceParams) (BotSession, error)
- func (q *Queries) UpdateSessionModelPreference(ctx context.Context, arg UpdateSessionModelPreferenceParams) error
- func (q *Queries) UpdateSessionRuntimeMetadata(ctx context.Context, arg UpdateSessionRuntimeMetadataParams) (BotSession, error)
- func (q *Queries) UpdateSessionTitle(ctx context.Context, arg UpdateSessionTitleParams) (BotSession, error)
- func (q *Queries) UpdateSessionTitleWithRuntimeFence(ctx context.Context, arg UpdateSessionTitleWithRuntimeFenceParams) (BotSession, error)
- func (q *Queries) UpdateSessionTypeAndMetadata(ctx context.Context, arg UpdateSessionTypeAndMetadataParams) (BotSession, error)
- func (q *Queries) UpdateToolApprovalPromptMessage(ctx context.Context, arg UpdateToolApprovalPromptMessageParams) (ToolApprovalRequest, error)
- func (q *Queries) UpdateUserInputAssistantMessage(ctx context.Context, arg UpdateUserInputAssistantMessageParams) (UserInputRequest, error)
- func (q *Queries) UpdateUserInputInteraction(ctx context.Context, arg UpdateUserInputInteractionParams) (UserInputRequest, error)
- func (q *Queries) UpdateUserInputPromptMessage(ctx context.Context, arg UpdateUserInputPromptMessageParams) (UserInputRequest, error)
- func (q *Queries) UpdateUserInputToolResultMessage(ctx context.Context, arg UpdateUserInputToolResultMessageParams) (UserInputRequest, error)
- func (q *Queries) UpdateUserProviderOAuthState(ctx context.Context, arg UpdateUserProviderOAuthStateParams) error
- func (q *Queries) UpsertAbortedContextLifecycle(ctx context.Context, arg UpsertAbortedContextLifecycleParams) (UpsertAbortedContextLifecycleRow, error)
- func (q *Queries) UpsertAccountByUsername(ctx context.Context, arg UpsertAccountByUsernameParams) (UpsertAccountByUsernameRow, error)
- func (q *Queries) UpsertAgentSessionPublication(ctx context.Context, arg UpsertAgentSessionPublicationParams) (int64, error)
- func (q *Queries) UpsertAgentSessionState(ctx context.Context, arg UpsertAgentSessionStateParams) (AgentSessionState, error)
- func (q *Queries) UpsertAppConnectorRef(ctx context.Context, arg UpsertAppConnectorRefParams) (BotAppConnectorRef, error)
- func (q *Queries) UpsertAppDependencyRef(ctx context.Context, arg UpsertAppDependencyRefParams) (BotAppDependencyRef, error)
- func (q *Queries) UpsertBotAppInstallation(ctx context.Context, arg UpsertBotAppInstallationParams) (BotAppInstallation, error)
- func (q *Queries) UpsertBotChannelAdmin(ctx context.Context, arg UpsertBotChannelAdminParams) (BotChannelAdmin, error)
- func (q *Queries) UpsertBotChannelConfig(ctx context.Context, arg UpsertBotChannelConfigParams) (BotChannelConfig, error)
- func (q *Queries) UpsertBotDependencyInstallationIntent(ctx context.Context, arg UpsertBotDependencyInstallationIntentParams) (BotDependencyInstallation, error)
- func (q *Queries) UpsertBotSettings(ctx context.Context, arg UpsertBotSettingsParams) (UpsertBotSettingsRow, error)
- func (q *Queries) UpsertBotStorageBinding(ctx context.Context, arg UpsertBotStorageBindingParams) (BotStorageBinding, error)
- func (q *Queries) UpsertBotWorkspaceResourceLimits(ctx context.Context, arg UpsertBotWorkspaceResourceLimitsParams) (BotWorkspaceResourceLimit, error)
- func (q *Queries) UpsertChannelIdentityByChannelSubject(ctx context.Context, arg UpsertChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
- func (q *Queries) UpsertContainer(ctx context.Context, arg UpsertContainerParams) error
- func (q *Queries) UpsertEmailOAuthToken(ctx context.Context, arg UpsertEmailOAuthTokenParams) (EmailOauthToken, error)
- func (q *Queries) UpsertMCPConnectionByName(ctx context.Context, arg UpsertMCPConnectionByNameParams) (McpConnection, error)
- func (q *Queries) UpsertMCPOAuthDiscovery(ctx context.Context, arg UpsertMCPOAuthDiscoveryParams) (McpOauthToken, error)
- func (q *Queries) UpsertMemoryNode(ctx context.Context, arg UpsertMemoryNodeParams) (MemoryNode, error)
- func (q *Queries) UpsertProviderOAuthToken(ctx context.Context, arg UpsertProviderOAuthTokenParams) (ProviderOauthToken, error)
- func (q *Queries) UpsertProviderTemplate(ctx context.Context, arg UpsertProviderTemplateParams) (TemplateProviderTemplate, error)
- func (q *Queries) UpsertProviderTemplateModel(ctx context.Context, arg UpsertProviderTemplateModelParams) (TemplateProviderTemplateModel, error)
- func (q *Queries) UpsertRegistryModel(ctx context.Context, arg UpsertRegistryModelParams) (Model, error)
- func (q *Queries) UpsertRegistryProvider(ctx context.Context, arg UpsertRegistryProviderParams) (Provider, error)
- func (q *Queries) UpsertSessionDiscussCursor(ctx context.Context, arg UpsertSessionDiscussCursorParams) (BotSessionDiscussCursor, error)
- func (q *Queries) UpsertSnapshot(ctx context.Context, arg UpsertSnapshotParams) (Snapshot, error)
- func (q *Queries) UpsertTerminalContextLifecycle(ctx context.Context, arg UpsertTerminalContextLifecycleParams) (UpsertTerminalContextLifecycleRow, error)
- func (q *Queries) UpsertUserChannelBinding(ctx context.Context, arg UpsertUserChannelBindingParams) (UserChannelBinding, error)
- func (q *Queries) UpsertUserChannelIdentityBinding(ctx context.Context, arg UpsertUserChannelIdentityBindingParams) (UserChannelIdentityBinding, error)
- func (q *Queries) UpsertUserProviderOAuthToken(ctx context.Context, arg UpsertUserProviderOAuthTokenParams) (UserProviderOauthToken, error)
- func (q *Queries) ValidateLockedBotRuntimeReset(ctx context.Context, arg ValidateLockedBotRuntimeResetParams) (pgtype.UUID, error)
- func (q *Queries) ValidateLockedBotSessionRuntimeReset(ctx context.Context, arg ValidateLockedBotSessionRuntimeResetParams) (pgtype.UUID, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type ReclaimWaitingDecisionSessionRunParams
- type RedeemChannelLinkCodeParams
- type RefreshLockedBotRuntimeResetParams
- type RefreshLockedBotSessionRuntimeResetParams
- type RejectToolApprovalRequestParams
- type ReleaseBotRuntimeResetParams
- type ReleaseBotSessionRuntimeResetParams
- type RenameBotWorkdirParams
- type RenewBotRuntimeResetParams
- type RenewBotSessionRuntimeResetParams
- type ReplaceHistoryTurnParams
- type ReplaceHistoryTurnRow
- type ResumeSessionRunParams
- type RevokeUserRuntimeParams
- type SaveMatrixSyncSinceTokenParams
- type Schedule
- type ScheduleLog
- type SearchAccountsParams
- type SearchChannelIdentitiesParams
- type SearchMessagesParams
- type SearchMessagesRow
- type SearchProvider
- type SessionLiveForRuntimeResetParams
- type SessionRun
- type SetAppConnectorRefConnectionParams
- type SetBotACLDefaultEffectParams
- type SetBotAgentCredentialParams
- type SetBotRemoteRuntimePrimaryParams
- type SetProviderTemplateActiveParams
- type SetProviderTemplateModelActiveParams
- type SetRoundAgentTurnIDParams
- type SetRouteActiveSessionParams
- type SetSessionNextTurnPositionParams
- type SetSessionRunWaitingDecisionParams
- type Snapshot
- type SoftDeleteBotAgentParams
- type StorageProvider
- type SubagentConfig
- type SubmitUserInputRequestParams
- type SupersedeHistoryTurnParams
- type SupersedeHistoryTurnRow
- type SupersedePendingToolApprovalsBySessionParams
- type SupersedePendingUserInputsBySessionParams
- type Task
- type Team
- type TeamAccount
- type TeamMember
- type TemplateProviderTemplate
- type TemplateProviderTemplateModel
- type ToolApprovalRequest
- type TrimAgentSessionStateLinesParams
- type TtsModel
- type TtsProvider
- type UpdateAbortedContextLifecycleSnapshotParams
- type UpdateAbortedContextLifecycleSnapshotRow
- type UpdateAccountAdminParams
- type UpdateAccountAdminRow
- type UpdateAccountPasswordParams
- type UpdateAccountProfileParams
- type UpdateAccountProfileRow
- type UpdateAgentAuthorizationParams
- type UpdateAgentCredentialPayloadCASParams
- type UpdateBotACLRuleParams
- type UpdateBotAgentParams
- type UpdateBotAppInstallationCheckParams
- type UpdateBotAppInstallationReleaseParams
- type UpdateBotAppInstallationStatusParams
- type UpdateBotChannelConfigDisabledParams
- type UpdateBotDependencyInstallationObservedParams
- type UpdateBotDependencyInstallationStatusParams
- type UpdateBotEmailBindingParams
- type UpdateBotOwnerParams
- type UpdateBotOwnerRow
- type UpdateBotProfileParams
- type UpdateBotProfileRow
- type UpdateBotRemoteRuntimeMountToolApprovalParams
- type UpdateBotStatusParams
- type UpdateBotUserGrantPermissionsParams
- type UpdateChatRouteMetadataParams
- type UpdateChatRouteReplyTargetParams
- type UpdateConnectorEnabledParams
- type UpdateContainerStatusParams
- type UpdateEmailOAuthStateParams
- type UpdateEmailOutboxFailedParams
- type UpdateEmailOutboxSentParams
- type UpdateEmailProviderByIDAndUserParams
- type UpdateEmailProviderParams
- type UpdateFetchProviderParams
- type UpdateMCPConnectionActiveParams
- type UpdateMCPConnectionAuthTypeParams
- type UpdateMCPConnectionParams
- type UpdateMCPConnectionProbeResultParams
- type UpdateMCPOAuthClientSecretParams
- type UpdateMCPOAuthPKCEStateParams
- type UpdateMCPOAuthTokensParams
- type UpdateMemoryProviderParams
- type UpdateModelParams
- type UpdateProviderOAuthStateParams
- type UpdateProviderParams
- type UpdateScheduleParams
- type UpdateSearchProviderParams
- type UpdateSessionMetadataParams
- type UpdateSessionMetadataWithRuntimeFenceParams
- type UpdateSessionModelPreferenceParams
- type UpdateSessionRuntimeMetadataParams
- type UpdateSessionTitleParams
- type UpdateSessionTitleWithRuntimeFenceParams
- type UpdateSessionTypeAndMetadataParams
- type UpdateToolApprovalPromptMessageParams
- type UpdateUserInputAssistantMessageParams
- type UpdateUserInputInteractionParams
- type UpdateUserInputPromptMessageParams
- type UpdateUserInputToolResultMessageParams
- type UpdateUserProviderOAuthStateParams
- type UpsertAbortedContextLifecycleParams
- type UpsertAbortedContextLifecycleRow
- type UpsertAccountByUsernameParams
- type UpsertAccountByUsernameRow
- type UpsertAgentSessionPublicationParams
- type UpsertAgentSessionStateParams
- type UpsertAppConnectorRefParams
- type UpsertAppDependencyRefParams
- type UpsertBotAppInstallationParams
- type UpsertBotChannelAdminParams
- type UpsertBotChannelConfigParams
- type UpsertBotDependencyInstallationIntentParams
- type UpsertBotSettingsParams
- type UpsertBotSettingsRow
- type UpsertBotStorageBindingParams
- type UpsertBotWorkspaceResourceLimitsParams
- type UpsertChannelIdentityByChannelSubjectParams
- type UpsertContainerParams
- type UpsertEmailOAuthTokenParams
- type UpsertMCPConnectionByNameParams
- type UpsertMCPOAuthDiscoveryParams
- type UpsertMemoryNodeParams
- type UpsertProviderOAuthTokenParams
- type UpsertProviderTemplateModelParams
- type UpsertProviderTemplateParams
- type UpsertRegistryModelParams
- type UpsertRegistryProviderParams
- type UpsertSessionDiscussCursorParams
- type UpsertSnapshotParams
- type UpsertTerminalContextLifecycleParams
- type UpsertTerminalContextLifecycleRow
- type UpsertUserChannelBindingParams
- type UpsertUserChannelIdentityBindingParams
- type UpsertUserProviderOAuthTokenParams
- type User
- type UserChannelBinding
- type UserChannelIdentityBinding
- type UserInputRequest
- type UserProviderOauthToken
- type UserRuntime
- type ValidateLockedBotRuntimeResetParams
- type ValidateLockedBotSessionRuntimeResetParams
- type WorkspaceDependencyCatalog
- type WorkspaceDependencyDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcpSessionPublication ¶
type AcpSessionState ¶
type AcpSessionState struct {
TeamID pgtype.UUID `json:"team_id"`
SessionID pgtype.UUID `json:"session_id"`
ThroughRunID pgtype.UUID `json:"through_run_id"`
AgentID string `json:"agent_id"`
AcpSessionID string `json:"acp_session_id"`
Cwd string `json:"cwd"`
TranscriptPath string `json:"transcript_path"`
RuntimeFencingToken int64 `json:"runtime_fencing_token"`
FileCount int32 `json:"file_count"`
RecordCount int64 `json:"record_count"`
FileShapes []byte `json:"file_shapes"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AcpSessionStateLine ¶
type AdmitLockedSessionRunParams ¶
type AdmitLockedSessionRunParams struct {
RunID pgtype.UUID `json:"run_id"`
BotID pgtype.UUID `json:"bot_id"`
InvocationID string `json:"invocation_id"`
TurnID pgtype.UUID `json:"turn_id"`
InputJson []byte `json:"input_json"`
InputFingerprint string `json:"input_fingerprint"`
SessionID pgtype.UUID `json:"session_id"`
}
type AgentAuthorization ¶ added in v0.20.0
type AgentAuthorization struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Runtime string `json:"runtime"`
AuthKind string `json:"auth_kind"`
Status string `json:"status"`
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
PollAfter pgtype.Timestamptz `json:"poll_after"`
ClaimedAgentID pgtype.UUID `json:"claimed_agent_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type AgentCredential ¶ added in v0.20.0
type AgentCredential struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Provider string `json:"provider"`
AuthKind string `json:"auth_kind"`
Label string `json:"label"`
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
KeyVersion int32 `json:"key_version"`
AccountMetadata []byte `json:"account_metadata"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
CredentialVersion int64 `json:"credential_version"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AgentSessionPublication ¶ added in v0.20.0
type AgentSessionState ¶ added in v0.20.0
type AgentSessionState struct {
TeamID pgtype.UUID `json:"team_id"`
SessionID pgtype.UUID `json:"session_id"`
ThroughRunID pgtype.UUID `json:"through_run_id"`
AgentID string `json:"agent_id"`
AgentSessionID string `json:"agent_session_id"`
Cwd string `json:"cwd"`
TranscriptPath string `json:"transcript_path"`
RuntimeFencingToken int64 `json:"runtime_fencing_token"`
FileCount int32 `json:"file_count"`
RecordCount int64 `json:"record_count"`
FileShapes []byte `json:"file_shapes"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type AgentSessionStateLine ¶ added in v0.20.0
type ApproveToolApprovalRequestParams ¶
type ApproveToolApprovalRequestParams struct {
Reason string `json:"reason"`
SelectedOptionID string `json:"selected_option_id"`
DecidedByChannelIdentityID pgtype.UUID `json:"decided_by_channel_identity_id"`
ResponseControlID pgtype.Text `json:"response_control_id"`
ResponsePayloadHash pgtype.Text `json:"response_payload_hash"`
ID pgtype.UUID `json:"id"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
}
type ArchiveBotWorkdirParams ¶
type BindHistoryTurnAssistantByRequestRow ¶
type BindHistoryTurnAssistantByRequestRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type BindLatestHistoryTurnAssistantRow ¶
type BindLatestHistoryTurnAssistantRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Bot ¶
type Bot struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
CommandUiLanguage string `json:"command_ui_language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
ChatRuntime string `json:"chat_runtime"`
ChatAcpAgentID pgtype.Text `json:"chat_acp_agent_id"`
ChatAcpProjectPath string `json:"chat_acp_project_path"`
ChatAcpProjectMode string `json:"chat_acp_project_mode"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
FetchProviderID pgtype.UUID `json:"fetch_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
CompactionEnabled bool `json:"compaction_enabled"`
CompactionThreshold int32 `json:"compaction_threshold"`
CompactionTargetPercent pgtype.Int4 `json:"compaction_target_percent"`
CompactionModelID pgtype.UUID `json:"compaction_model_id"`
ImageModelID pgtype.UUID `json:"image_model_id"`
DiscussProbeModelID pgtype.UUID `json:"discuss_probe_model_id"`
TtsModelID pgtype.UUID `json:"tts_model_id"`
TranscriptionModelID pgtype.UUID `json:"transcription_model_id"`
VideoModelID pgtype.UUID `json:"video_model_id"`
PersistFullToolResults bool `json:"persist_full_tool_results"`
ShowToolCallsInIm bool `json:"show_tool_calls_in_im"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
DisplayEnabled bool `json:"display_enabled"`
OverlayProvider string `json:"overlay_provider"`
OverlayEnabled bool `json:"overlay_enabled"`
OverlayConfig []byte `json:"overlay_config"`
Metadata []byte `json:"metadata"`
RuntimeResetToken pgtype.UUID `json:"runtime_reset_token"`
RuntimeResetExpiresAt pgtype.Timestamptz `json:"runtime_reset_expires_at"`
RuntimeConfigEpoch int64 `json:"runtime_config_epoch"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
AclDefaultEffect string `json:"acl_default_effect"`
TeamID pgtype.UUID `json:"team_id"`
DefaultBotAgentID pgtype.UUID `json:"default_bot_agent_id"`
}
type BotAclRule ¶
type BotAclRule struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Action string `json:"action"`
Effect string `json:"effect"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
SourceChannel pgtype.Text `json:"source_channel"`
SourceConversationType pgtype.Text `json:"source_conversation_type"`
SourceConversationID pgtype.Text `json:"source_conversation_id"`
SourceThreadID pgtype.Text `json:"source_thread_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Enabled bool `json:"enabled"`
Description pgtype.Text `json:"description"`
SubjectChannelType pgtype.Text `json:"subject_channel_type"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotAgent ¶
type BotAgent struct {
TeamID pgtype.UUID `json:"team_id"`
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Name string `json:"name"`
Runtime string `json:"runtime"`
Enabled bool `json:"enabled"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
AgentCredentialID pgtype.UUID `json:"agent_credential_id"`
}
type BotAgentIsDefaultParams ¶
type BotAppConnectorRef ¶ added in v0.20.0
type BotAppConnectorRef struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
InstallationID pgtype.UUID `json:"installation_id"`
ConnectorType string `json:"connector_type"`
ConnectionID string `json:"connection_id"`
Required bool `json:"required"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type BotAppDependencyRef ¶ added in v0.20.0
type BotAppInstallation ¶ added in v0.20.0
type BotAppInstallation struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
RegistryID string `json:"registry_id"`
AppID string `json:"app_id"`
Revision string `json:"revision"`
Version string `json:"version"`
Status string `json:"status"`
Reason string `json:"reason"`
AvailableRevision string `json:"available_revision"`
AvailableVersion string `json:"available_version"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastError string `json:"last_error"`
Release []byte `json:"release"`
InstalledAt pgtype.Timestamptz `json:"installed_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type BotChannelAdmin ¶
type BotChannelAdmin struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
Granted bool `json:"granted"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotChannelConfig ¶
type BotChannelConfig struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
ChannelType string `json:"channel_type"`
Credentials []byte `json:"credentials"`
ExternalIdentity pgtype.Text `json:"external_identity"`
SelfIdentity []byte `json:"self_identity"`
Routing []byte `json:"routing"`
Capabilities []byte `json:"capabilities"`
Disabled bool `json:"disabled"`
VerifiedAt pgtype.Timestamptz `json:"verified_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotChannelRoute ¶
type BotChannelRoute struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
ChannelType string `json:"channel_type"`
ChannelConfigID pgtype.UUID `json:"channel_config_id"`
ExternalConversationID string `json:"external_conversation_id"`
ExternalThreadID pgtype.Text `json:"external_thread_id"`
ConversationType pgtype.Text `json:"conversation_type"`
DefaultReplyTarget pgtype.Text `json:"default_reply_target"`
ActiveSessionID pgtype.UUID `json:"active_session_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotDependencyInstallation ¶ added in v0.20.0
type BotDependencyInstallation struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
DependencyID string `json:"dependency_id"`
Source string `json:"source"`
Status string `json:"status"`
InstalledVersion string `json:"installed_version"`
LatestVersion string `json:"latest_version"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastError string `json:"last_error"`
ManifestDigest string `json:"manifest_digest"`
SourceUrl string `json:"source_url"`
RegistryID string `json:"registry_id"`
DefinitionRevision string `json:"definition_revision"`
OperationID string `json:"operation_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type BotEmailBinding ¶
type BotEmailBinding struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
EmailProviderID pgtype.UUID `json:"email_provider_id"`
EmailAddress string `json:"email_address"`
CanRead bool `json:"can_read"`
CanWrite bool `json:"can_write"`
CanDelete bool `json:"can_delete"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotHistoryMessage ¶
type BotHistoryMessage struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderAccountUserID pgtype.UUID `json:"sender_account_user_id"`
SourceMessageID pgtype.Text `json:"source_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
CompactID pgtype.UUID `json:"compact_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
TurnMessageSeq pgtype.Int8 `json:"turn_message_seq"`
TurnVisible bool `json:"turn_visible"`
TurnSupersededByTurnID pgtype.UUID `json:"turn_superseded_by_turn_id"`
TurnSupersededAt pgtype.Timestamptz `json:"turn_superseded_at"`
TurnSupersededReason pgtype.Text `json:"turn_superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
RunID pgtype.UUID `json:"run_id"`
}
type BotHistoryMessageAsset ¶
type BotHistoryMessageAsset struct {
ID pgtype.UUID `json:"id"`
MessageID pgtype.UUID `json:"message_id"`
Role string `json:"role"`
Ordinal int32 `json:"ordinal"`
ContentHash string `json:"content_hash"`
Mime string `json:"mime"`
SizeBytes int64 `json:"size_bytes"`
StorageKey string `json:"storage_key"`
Name string `json:"name"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotHistoryMessageCompact ¶
type BotHistoryMessageCompact struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
Summary string `json:"summary"`
MessageCount int32 `json:"message_count"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
ModelID pgtype.UUID `json:"model_id"`
ArtifactVersion int32 `json:"artifact_version"`
Coverage []byte `json:"coverage"`
AnchorStartMs int64 `json:"anchor_start_ms"`
AnchorEndMs int64 `json:"anchor_end_ms"`
ArtifactLevel int32 `json:"artifact_level"`
ParentIds []pgtype.UUID `json:"parent_ids"`
SupersededBy pgtype.UUID `json:"superseded_by"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
CompactionEpoch int64 `json:"compaction_epoch"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotRemoteRuntimeBinding ¶
type BotRemoteRuntimeBinding struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RuntimeID pgtype.UUID `json:"runtime_id"`
IsPrimary bool `json:"is_primary"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotSession ¶
type BotSession struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
RuntimeMetadata []byte `json:"runtime_metadata"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
ModelPreferenceRevision pgtype.UUID `json:"model_preference_revision"`
Visibility string `json:"visibility"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
NextTurnPosition int64 `json:"next_turn_position"`
CompactionEpoch int64 `json:"compaction_epoch"`
RuntimeFencingToken int64 `json:"runtime_fencing_token"`
RuntimeResetToken pgtype.UUID `json:"runtime_reset_token"`
RuntimeResetExpiresAt pgtype.Timestamptz `json:"runtime_reset_expires_at"`
RuntimeConfigEpoch int64 `json:"runtime_config_epoch"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
TeamID pgtype.UUID `json:"team_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
}
type BotSessionDiscussCursor ¶
type BotSessionDiscussCursor struct {
SessionID pgtype.UUID `json:"session_id"`
ScopeKey string `json:"scope_key"`
RouteID pgtype.UUID `json:"route_id"`
Source string `json:"source"`
ConsumedCursor int64 `json:"consumed_cursor"`
ConsumedEventCursor int64 `json:"consumed_event_cursor"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotSessionEvent ¶
type BotSessionEvent struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
EventKind string `json:"event_kind"`
EventData []byte `json:"event_data"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
ReceivedAtMs int64 `json:"received_at_ms"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotStorageBinding ¶
type BotStorageBinding struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
StorageProviderID pgtype.UUID `json:"storage_provider_id"`
BasePath string `json:"base_path"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotUserGrant ¶
type BotUserGrant struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SubjectType string `json:"subject_type"`
UserID pgtype.UUID `json:"user_id"`
Permissions []byte `json:"permissions"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type BotVisibleHistoryMessage ¶
type BotVisibleHistoryMessage struct {
TeamID pgtype.UUID `json:"team_id"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
TurnMessageSeq pgtype.Int8 `json:"turn_message_seq"`
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderAccountUserID pgtype.UUID `json:"sender_account_user_id"`
SourceMessageID pgtype.Text `json:"source_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
CompactID pgtype.UUID `json:"compact_id"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type BotWorkdir ¶
type BotWorkdir struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
Name string `json:"name"`
TargetKind string `json:"target_kind"`
RemoteBindingID pgtype.UUID `json:"remote_binding_id"`
Path string `json:"path"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
ArchivedAt pgtype.Timestamptz `json:"archived_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type BotWorkspaceResourceLimit ¶
type BotWorkspaceResourceLimit struct {
BotID pgtype.UUID `json:"bot_id"`
CpuMillicores int64 `json:"cpu_millicores"`
MemoryBytes int64 `json:"memory_bytes"`
StorageBytes int64 `json:"storage_bytes"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type CacheWorkspaceDependencyCatalogParams ¶ added in v0.20.0
type CacheWorkspaceDependencyDefinitionParams ¶ added in v0.20.0
type CacheWorkspaceDependencyDefinitionParams struct {
SourceUrl string `json:"source_url"`
RegistryID string `json:"registry_id"`
DependencyID string `json:"dependency_id"`
Revision string `json:"revision"`
ReleaseBytes []byte `json:"release_bytes"`
ArtifactBytes []byte `json:"artifact_bytes"`
IconDigest string `json:"icon_digest"`
}
type CancelPendingUserInputsByRunParams ¶ added in v0.20.0
type CancelUserInputRequestParams ¶
type CancelUserInputRequestParams struct {
ResultJson []byte `json:"result_json"`
RespondedByChannelIdentityID pgtype.UUID `json:"responded_by_channel_identity_id"`
ResponseControlID pgtype.Text `json:"response_control_id"`
ResponsePayloadHash pgtype.Text `json:"response_payload_hash"`
ID pgtype.UUID `json:"id"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
}
type ChannelIdentity ¶
type ChannelIdentity struct {
ID pgtype.UUID `json:"id"`
ChannelType string `json:"channel_type"`
ChannelSubjectID string `json:"channel_subject_id"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type ChannelLinkCode ¶
type ChannelLinkCode struct {
Token string `json:"token"`
UserID pgtype.UUID `json:"user_id"`
ChannelType string `json:"channel_type"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ConsumedAt pgtype.Timestamptz `json:"consumed_at"`
ConsumedChannelIdentityID pgtype.UUID `json:"consumed_channel_identity_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type ClaimBotDependencyOperationParams ¶ added in v0.20.0
type ClaimBotDependencyOperationParams struct {
BotID pgtype.UUID `json:"bot_id"`
DependencyID string `json:"dependency_id"`
Source string `json:"source"`
Status string `json:"status"`
InstalledVersion string `json:"installed_version"`
ManifestDigest string `json:"manifest_digest"`
SourceUrl string `json:"source_url"`
RegistryID string `json:"registry_id"`
DefinitionRevision string `json:"definition_revision"`
OperationID string `json:"operation_id"`
}
type ClearBotAgentCredentialParams ¶ added in v0.20.0
type CompareAndSetSessionModelPreferenceParams ¶ added in v0.20.0
type CompareAndSetSessionModelPreferenceParams struct {
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
ID pgtype.UUID `json:"id"`
RuntimeType string `json:"runtime_type"`
ExpectedRevision pgtype.UUID `json:"expected_revision"`
}
type CompleteCompactionLogParams ¶
type CompleteCompactionLogParams struct {
ID pgtype.UUID `json:"id"`
Status string `json:"status"`
Summary string `json:"summary"`
MessageCount int32 `json:"message_count"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
ModelID pgtype.UUID `json:"model_id"`
Coverage []byte `json:"coverage"`
AnchorStartMs int64 `json:"anchor_start_ms"`
AnchorEndMs int64 `json:"anchor_end_ms"`
}
type CompleteCompactionRollupParams ¶
type CompleteCompactionRollupParams struct {
Status string `json:"status"`
Summary string `json:"summary"`
MessageCount int32 `json:"message_count"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
ModelID pgtype.UUID `json:"model_id"`
Coverage []byte `json:"coverage"`
AnchorStartMs int64 `json:"anchor_start_ms"`
AnchorEndMs int64 `json:"anchor_end_ms"`
Level int32 `json:"level"`
Parents []pgtype.UUID `json:"parents"`
ID pgtype.UUID `json:"id"`
}
type Container ¶
type Container struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
ContainerID string `json:"container_id"`
ContainerName string `json:"container_name"`
Image string `json:"image"`
Status string `json:"status"`
Namespace string `json:"namespace"`
AutoStart bool `json:"auto_start"`
ContainerPath string `json:"container_path"`
WorkspaceBackend string `json:"workspace_backend"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
LastStartedAt pgtype.Timestamptz `json:"last_started_at"`
LastStoppedAt pgtype.Timestamptz `json:"last_stopped_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type ContainerVersion ¶
type ContextLifecycle ¶
type ContextLifecycle struct {
RunID pgtype.UUID `json:"run_id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ErrorCode pgtype.Text `json:"error_code"`
Snapshot []byte `json:"snapshot"`
SelectionDecisions []byte `json:"selection_decisions"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CountTokenUsageRecordsParams ¶
type CountTokenUsageRecordsParams struct {
BotID pgtype.UUID `json:"bot_id"`
FromTime pgtype.Timestamptz `json:"from_time"`
ToTime pgtype.Timestamptz `json:"to_time"`
ModelID pgtype.UUID `json:"model_id"`
SessionType pgtype.Text `json:"session_type"`
}
type CreateAccountParams ¶
type CreateAccountParams struct {
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
UserID pgtype.UUID `json:"user_id"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
DataRoot pgtype.Text `json:"data_root"`
}
type CreateAccountRow ¶
type CreateAccountRow struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
DataRoot pgtype.Text `json:"data_root"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive pgtype.Bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
PrincipalIsActive bool `json:"principal_is_active"`
MembershipIsActive bool `json:"membership_is_active"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
MembershipUpdatedAt pgtype.Timestamptz `json:"membership_updated_at"`
TitleModelID pgtype.UUID `json:"title_model_id"`
}
type CreateAgentAuthorizationParams ¶ added in v0.20.0
type CreateAgentAuthorizationParams struct {
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Runtime string `json:"runtime"`
AuthKind string `json:"auth_kind"`
Status string `json:"status"`
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
PollAfter pgtype.Timestamptz `json:"poll_after"`
}
type CreateAgentCredentialParams ¶ added in v0.20.0
type CreateAgentCredentialParams struct {
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Provider string `json:"provider"`
AuthKind string `json:"auth_kind"`
Label string `json:"label"`
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
KeyVersion int32 `json:"key_version"`
AccountMetadata []byte `json:"account_metadata"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type CreateBotACLRuleParams ¶
type CreateBotACLRuleParams struct {
BotID pgtype.UUID `json:"bot_id"`
Enabled bool `json:"enabled"`
Effect string `json:"effect"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Description pgtype.Text `json:"description"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
SubjectChannelType pgtype.Text `json:"subject_channel_type"`
SourceChannel pgtype.Text `json:"source_channel"`
SourceConversationType pgtype.Text `json:"source_conversation_type"`
SourceConversationID pgtype.Text `json:"source_conversation_id"`
SourceThreadID pgtype.Text `json:"source_thread_id"`
}
type CreateBotAgentParams ¶
type CreateBotEmailBindingParams ¶
type CreateBotEmailBindingParams struct {
BotID pgtype.UUID `json:"bot_id"`
EmailProviderID pgtype.UUID `json:"email_provider_id"`
EmailAddress string `json:"email_address"`
CanRead bool `json:"can_read"`
CanWrite bool `json:"can_write"`
CanDelete bool `json:"can_delete"`
Config []byte `json:"config"`
}
type CreateBotParams ¶
type CreateBotParams struct {
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Metadata []byte `json:"metadata"`
Status string `json:"status"`
}
type CreateBotRow ¶
type CreateBotRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateBotWorkdirParams ¶
type CreateChatRouteParams ¶
type CreateChatRouteParams struct {
BotID pgtype.UUID `json:"bot_id"`
Platform string `json:"platform"`
ChannelConfigID pgtype.UUID `json:"channel_config_id"`
ConversationID string `json:"conversation_id"`
ThreadID pgtype.Text `json:"thread_id"`
ConversationType pgtype.Text `json:"conversation_type"`
ReplyTarget pgtype.Text `json:"reply_target"`
Metadata []byte `json:"metadata"`
}
type CreateChatRouteRow ¶
type CreateChatRouteRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Platform string `json:"platform"`
ChannelConfigID pgtype.UUID `json:"channel_config_id"`
ConversationID string `json:"conversation_id"`
ThreadID pgtype.Text `json:"thread_id"`
ConversationType pgtype.Text `json:"conversation_type"`
ReplyTarget pgtype.Text `json:"reply_target"`
ActiveSessionID pgtype.UUID `json:"active_session_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateConnectorParams ¶
type CreateContextLifecycleRow ¶ added in v0.20.0
type CreateEmailOutboxParams ¶
type CreateEmailOutboxParams struct {
ProviderID pgtype.UUID `json:"provider_id"`
BotID pgtype.UUID `json:"bot_id"`
FromAddress string `json:"from_address"`
ToAddresses []byte `json:"to_addresses"`
Subject string `json:"subject"`
BodyText string `json:"body_text"`
BodyHtml string `json:"body_html"`
Attachments []byte `json:"attachments"`
Status string `json:"status"`
}
type CreateHistoryTurnParams ¶
type CreateHistoryTurnRow ¶
type CreateHistoryTurnRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateHistoryTurnWithIDAtPositionParams ¶
type CreateHistoryTurnWithIDAtPositionParams struct {
TurnID pgtype.UUID `json:"turn_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
TurnPosition int64 `json:"turn_position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
}
type CreateHistoryTurnWithIDAtPositionRow ¶
type CreateHistoryTurnWithIDAtPositionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateHistoryTurnWithIDRow ¶
type CreateHistoryTurnWithIDRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateMessageAssetParams ¶
type CreateMessageAssetParams struct {
MessageID pgtype.UUID `json:"message_id"`
ContentHash string `json:"content_hash"`
Role string `json:"role"`
Ordinal int32 `json:"ordinal"`
Name string `json:"name"`
Metadata []byte `json:"metadata"`
Mime string `json:"mime"`
SizeBytes int64 `json:"size_bytes"`
StorageKey string `json:"storage_key"`
}
type CreateMessageAssetRow ¶
type CreateMessageAssetRow struct {
ID pgtype.UUID `json:"id"`
MessageID pgtype.UUID `json:"message_id"`
Role string `json:"role"`
Ordinal int32 `json:"ordinal"`
ContentHash string `json:"content_hash"`
Mime string `json:"mime"`
SizeBytes int64 `json:"size_bytes"`
StorageKey string `json:"storage_key"`
Name string `json:"name"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateMessageInHistoryTurnByRequestAndBindParams ¶
type CreateMessageInHistoryTurnByRequestAndBindParams struct {
SessionID pgtype.UUID `json:"session_id"`
Role string `json:"role"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
BotID pgtype.UUID `json:"bot_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
RunID pgtype.UUID `json:"run_id"`
}
type CreateMessageInHistoryTurnByRequestParams ¶
type CreateMessageInHistoryTurnByRequestParams struct {
SessionID pgtype.UUID `json:"session_id"`
Role string `json:"role"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
BotID pgtype.UUID `json:"bot_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
RunID pgtype.UUID `json:"run_id"`
}
type CreateMessageInHistoryTurnByRequestRow ¶
type CreateMessageInHistoryTurnByRequestRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateMessageParams ¶
type CreateMessageParams struct {
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
RunID pgtype.UUID `json:"run_id"`
}
type CreateMessageRow ¶
type CreateMessageRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateMessageWithHistoryTurnParams ¶
type CreateMessageWithHistoryTurnParams struct {
SessionID pgtype.UUID `json:"session_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
MessageID pgtype.UUID `json:"message_id"`
BotID pgtype.UUID `json:"bot_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
RunID pgtype.UUID `json:"run_id"`
TurnID pgtype.UUID `json:"turn_id"`
TurnMessageSeq pgtype.Int8 `json:"turn_message_seq"`
}
type CreateMessageWithTurnParams ¶
type CreateMessageWithTurnParams struct {
MessageID pgtype.UUID `json:"message_id"`
BotID pgtype.UUID `json:"bot_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
ModelID pgtype.UUID `json:"model_id"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
TurnMessageSeq pgtype.Int8 `json:"turn_message_seq"`
TurnID pgtype.UUID `json:"turn_id"`
SessionID pgtype.UUID `json:"session_id"`
}
type CreateMessageWithTurnRow ¶
type CreateMessageWithTurnRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateModelParams ¶
type CreateProviderParams ¶
type CreateScheduleLogParams ¶
type CreateScheduleLogRow ¶
type CreateScheduleLogRow struct {
ID pgtype.UUID `json:"id"`
ScheduleID pgtype.UUID `json:"schedule_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ResultText string `json:"result_text"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type CreateScheduleParams ¶
type CreateScheduleParams struct {
Name string `json:"name"`
Description string `json:"description"`
Pattern string `json:"pattern"`
MaxCalls pgtype.Int4 `json:"max_calls"`
Enabled bool `json:"enabled"`
Command string `json:"command"`
BotID pgtype.UUID `json:"bot_id"`
RunTarget string `json:"run_target"`
TargetSessionID pgtype.UUID `json:"target_session_id"`
RuntimeType pgtype.Text `json:"runtime_type"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
AcpAgentID pgtype.Text `json:"acp_agent_id"`
ModelID pgtype.UUID `json:"model_id"`
AcpModelID pgtype.Text `json:"acp_model_id"`
ReasoningEffort pgtype.Text `json:"reasoning_effort"`
WorkdirID pgtype.UUID `json:"workdir_id"`
}
type CreateSessionEventParams ¶
type CreateSessionEventParams struct {
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
EventKind string `json:"event_kind"`
EventData []byte `json:"event_data"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
ReceivedAtMs int64 `json:"received_at_ms"`
}
type CreateSessionParams ¶
type CreateSessionParams struct {
BotID pgtype.UUID `json:"bot_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
Visibility string `json:"visibility"`
RuntimeMetadata []byte `json:"runtime_metadata"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
}
type CreateToolApprovalRequestParams ¶
type CreateToolApprovalRequestParams struct {
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
WorkspaceTargetID string `json:"workspace_target_id"`
ToolCallID string `json:"tool_call_id"`
ToolName string `json:"tool_name"`
Operation string `json:"operation"`
ToolInput []byte `json:"tool_input"`
Options []byte `json:"options"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
RequestedByChannelIdentityID pgtype.UUID `json:"requested_by_channel_identity_id"`
RequestedMessageID pgtype.UUID `json:"requested_message_id"`
SourcePlatform string `json:"source_platform"`
ReplyTarget string `json:"reply_target"`
ConversationType string `json:"conversation_type"`
}
type CreateToolTailRoundParams ¶
type CreateToolTailRoundParams struct {
UserMessageID pgtype.UUID `json:"user_message_id"`
UserSenderChannelIdentityID pgtype.UUID `json:"user_sender_channel_identity_id"`
UserSenderUserID pgtype.UUID `json:"user_sender_user_id"`
UserExternalMessageID pgtype.Text `json:"user_external_message_id"`
UserSourceReplyToMessageID pgtype.Text `json:"user_source_reply_to_message_id"`
UserContent []byte `json:"user_content"`
UserMetadata []byte `json:"user_metadata"`
UserUsage []byte `json:"user_usage"`
UserSessionMode string `json:"user_session_mode"`
UserRuntimeType string `json:"user_runtime_type"`
UserModelID pgtype.UUID `json:"user_model_id"`
UserEventID pgtype.UUID `json:"user_event_id"`
UserDisplayText pgtype.Text `json:"user_display_text"`
ToolCallAssistantMessageID pgtype.UUID `json:"tool_call_assistant_message_id"`
ToolCallAssistantSenderChannelIdentityID pgtype.UUID `json:"tool_call_assistant_sender_channel_identity_id"`
ToolCallAssistantSenderUserID pgtype.UUID `json:"tool_call_assistant_sender_user_id"`
ToolCallAssistantExternalMessageID pgtype.Text `json:"tool_call_assistant_external_message_id"`
ToolCallAssistantSourceReplyToMessageID pgtype.Text `json:"tool_call_assistant_source_reply_to_message_id"`
ToolCallAssistantContent []byte `json:"tool_call_assistant_content"`
ToolCallAssistantMetadata []byte `json:"tool_call_assistant_metadata"`
ToolCallAssistantUsage []byte `json:"tool_call_assistant_usage"`
ToolCallAssistantSessionMode string `json:"tool_call_assistant_session_mode"`
ToolCallAssistantRuntimeType string `json:"tool_call_assistant_runtime_type"`
ToolCallAssistantModelID pgtype.UUID `json:"tool_call_assistant_model_id"`
ToolCallAssistantEventID pgtype.UUID `json:"tool_call_assistant_event_id"`
ToolCallAssistantDisplayText pgtype.Text `json:"tool_call_assistant_display_text"`
ToolMessageID pgtype.UUID `json:"tool_message_id"`
ToolSenderChannelIdentityID pgtype.UUID `json:"tool_sender_channel_identity_id"`
ToolSenderUserID pgtype.UUID `json:"tool_sender_user_id"`
ToolExternalMessageID pgtype.Text `json:"tool_external_message_id"`
ToolSourceReplyToMessageID pgtype.Text `json:"tool_source_reply_to_message_id"`
ToolContent []byte `json:"tool_content"`
ToolMetadata []byte `json:"tool_metadata"`
ToolUsage []byte `json:"tool_usage"`
ToolSessionMode string `json:"tool_session_mode"`
ToolRuntimeType string `json:"tool_runtime_type"`
ToolModelID pgtype.UUID `json:"tool_model_id"`
ToolEventID pgtype.UUID `json:"tool_event_id"`
ToolDisplayText pgtype.Text `json:"tool_display_text"`
FinalAssistantMessageID pgtype.UUID `json:"final_assistant_message_id"`
FinalAssistantSenderChannelIdentityID pgtype.UUID `json:"final_assistant_sender_channel_identity_id"`
FinalAssistantSenderUserID pgtype.UUID `json:"final_assistant_sender_user_id"`
FinalAssistantExternalMessageID pgtype.Text `json:"final_assistant_external_message_id"`
FinalAssistantSourceReplyToMessageID pgtype.Text `json:"final_assistant_source_reply_to_message_id"`
FinalAssistantContent []byte `json:"final_assistant_content"`
FinalAssistantMetadata []byte `json:"final_assistant_metadata"`
FinalAssistantUsage []byte `json:"final_assistant_usage"`
FinalAssistantSessionMode string `json:"final_assistant_session_mode"`
FinalAssistantRuntimeType string `json:"final_assistant_runtime_type"`
FinalAssistantModelID pgtype.UUID `json:"final_assistant_model_id"`
FinalAssistantEventID pgtype.UUID `json:"final_assistant_event_id"`
FinalAssistantDisplayText pgtype.Text `json:"final_assistant_display_text"`
SessionID pgtype.UUID `json:"session_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
BotID pgtype.UUID `json:"bot_id"`
RunID pgtype.UUID `json:"run_id"`
TurnID pgtype.UUID `json:"turn_id"`
}
type CreateToolTailRoundRow ¶
type CreateToolTailRoundRow struct {
ID pgtype.UUID `json:"id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateUserInputRequestParams ¶
type CreateUserInputRequestParams struct {
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
WorkspaceTargetID string `json:"workspace_target_id"`
ToolCallID string `json:"tool_call_id"`
ToolName string `json:"tool_name"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
InputJson []byte `json:"input_json"`
UiPayloadJson []byte `json:"ui_payload_json"`
ProviderMetadata []byte `json:"provider_metadata"`
RequestedByChannelIdentityID pgtype.UUID `json:"requested_by_channel_identity_id"`
SourcePlatform string `json:"source_platform"`
ReplyTarget string `json:"reply_target"`
ConversationType string `json:"conversation_type"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type CreateUserParams ¶
type CreateUserRow ¶
type CreateUserRow struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
DataRoot pgtype.Text `json:"data_root"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive pgtype.Bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
PrincipalIsActive bool `json:"principal_is_active"`
MembershipIsActive bool `json:"membership_is_active"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
MembershipUpdatedAt pgtype.Timestamptz `json:"membership_updated_at"`
TitleModelID pgtype.UUID `json:"title_model_id"`
}
type CreateUserRuntimeParams ¶
type DeleteAgentAuthorizationParams ¶ added in v0.20.0
type DeleteAgentSessionStateLineFilesNotInParams ¶ added in v0.20.0
type DeleteAppConnectorRefParams ¶ added in v0.20.0
type DeleteAppDependencyRefParams ¶ added in v0.20.0
type DeleteBotAppInstallationParams ¶ added in v0.20.0
type DeleteBotDependencyInstallationParams ¶ added in v0.20.0
type DeleteBotDependencyOperationParams ¶ added in v0.20.0
type DeleteConnectorParams ¶
type DeleteMemoryNodeParams ¶
type DeleteRuntimeDecisionProjectionsByRunParams ¶ added in v0.20.0
type EmailOauthToken ¶
type EmailOauthToken struct {
ID pgtype.UUID `json:"id"`
EmailProviderID pgtype.UUID `json:"email_provider_id"`
EmailAddress string `json:"email_address"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
State string `json:"state"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type EmailOutbox ¶
type EmailOutbox struct {
ID pgtype.UUID `json:"id"`
ProviderID pgtype.UUID `json:"provider_id"`
BotID pgtype.UUID `json:"bot_id"`
MessageID string `json:"message_id"`
FromAddress string `json:"from_address"`
ToAddresses []byte `json:"to_addresses"`
Subject string `json:"subject"`
BodyText string `json:"body_text"`
BodyHtml string `json:"body_html"`
Attachments []byte `json:"attachments"`
Status string `json:"status"`
Error string `json:"error"`
SentAt pgtype.Timestamptz `json:"sent_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type EmailProvider ¶
type EmailProvider struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
Name string `json:"name"`
Provider string `json:"provider"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type EvaluateBotACLRuleParams ¶
type EvaluateBotACLRuleParams struct {
Action string `json:"action"`
SubjectChannelType pgtype.Text `json:"subject_channel_type"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
SourceConversationType pgtype.Text `json:"source_conversation_type"`
SourceConversationID pgtype.Text `json:"source_conversation_id"`
SourceThreadID pgtype.Text `json:"source_thread_id"`
BotID pgtype.UUID `json:"bot_id"`
}
type FetchProvider ¶
type FetchProvider struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Provider string `json:"provider"`
Config []byte `json:"config"`
Enable bool `json:"enable"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type FindChatRouteParams ¶
type FindChatRouteRow ¶
type FindChatRouteRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Platform string `json:"platform"`
ChannelConfigID pgtype.UUID `json:"channel_config_id"`
ConversationID string `json:"conversation_id"`
ThreadID pgtype.Text `json:"thread_id"`
ConversationType pgtype.Text `json:"conversation_type"`
ReplyTarget pgtype.Text `json:"reply_target"`
ActiveSessionID pgtype.UUID `json:"active_session_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type FindWorkspaceDependencyIconParams ¶ added in v0.20.0
type FindWorkspaceDependencyIconRow ¶ added in v0.20.0
type FinishBotDependencyOperationParams ¶ added in v0.20.0
type FinishBotDependencyOperationParams struct {
Source string `json:"source"`
Status string `json:"status"`
InstalledVersion string `json:"installed_version"`
LatestVersion string `json:"latest_version"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastError string `json:"last_error"`
ManifestDigest string `json:"manifest_digest"`
SourceUrl string `json:"source_url"`
RegistryID string `json:"registry_id"`
DefinitionRevision string `json:"definition_revision"`
BotID pgtype.UUID `json:"bot_id"`
DependencyID string `json:"dependency_id"`
OperationID string `json:"operation_id"`
}
type ForkSessionFromAssistantTurnParams ¶
type ForkSessionFromAssistantTurnParams struct {
SessionID pgtype.UUID `json:"session_id"`
BotID pgtype.UUID `json:"bot_id"`
TurnID pgtype.UUID `json:"turn_id"`
Metadata []byte `json:"metadata"`
RuntimeMetadataOverride []byte `json:"runtime_metadata_override"`
Title string `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
}
type ForkSessionFromAssistantTurnRow ¶
type ForkSessionFromAssistantTurnRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
RuntimeMetadata []byte `json:"runtime_metadata"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
ModelPreferenceRevision pgtype.UUID `json:"model_preference_revision"`
Visibility string `json:"visibility"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
NextTurnPosition int64 `json:"next_turn_position"`
CompactionEpoch int64 `json:"compaction_epoch"`
RuntimeFencingToken int64 `json:"runtime_fencing_token"`
RuntimeResetToken pgtype.UUID `json:"runtime_reset_token"`
RuntimeResetExpiresAt pgtype.Timestamptz `json:"runtime_reset_expires_at"`
RuntimeConfigEpoch int64 `json:"runtime_config_epoch"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
TeamID pgtype.UUID `json:"team_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
}
type GetAgentAuthorizationParams ¶ added in v0.20.0
type GetAgentSessionCanonicalStateShapeParams ¶ added in v0.20.0
type GetAgentSessionCanonicalStateShapeRow ¶ added in v0.20.0
type GetAgentSessionPublicationHeadParams ¶ added in v0.20.0
type GetAgentSessionPublicationHeadRow ¶ added in v0.20.0
type GetAgentSessionStateParams ¶ added in v0.20.0
type GetAgentSessionStateRow ¶ added in v0.20.0
type GetAgentSessionStateRow struct {
ThroughRunID pgtype.UUID `json:"through_run_id"`
StagedThroughRunID pgtype.UUID `json:"staged_through_run_id"`
AgentID string `json:"agent_id"`
AgentSessionID string `json:"agent_session_id"`
Cwd string `json:"cwd"`
TranscriptPath string `json:"transcript_path"`
RuntimeFencingToken int64 `json:"runtime_fencing_token"`
FileCount int32 `json:"file_count"`
RecordCount int64 `json:"record_count"`
FileShapes []byte `json:"file_shapes"`
}
type GetBotAgentByIDParams ¶
type GetBotAgentCredentialParams ¶ added in v0.20.0
type GetBotAgentCredentialRow ¶ added in v0.20.0
type GetBotAgentCredentialRow struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Provider string `json:"provider"`
AuthKind string `json:"auth_kind"`
Label string `json:"label"`
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
KeyVersion int32 `json:"key_version"`
AccountMetadata []byte `json:"account_metadata"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
CredentialVersion int64 `json:"credential_version"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
AgentRuntime string `json:"agent_runtime"`
}
type GetBotAgentRuntimeParams ¶ added in v0.20.0
type GetBotAppInstallationByIDParams ¶ added in v0.20.0
type GetBotAppInstallationParams ¶ added in v0.20.0
type GetBotByIDRow ¶
type GetBotByIDRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
CompactionEnabled bool `json:"compaction_enabled"`
CompactionThreshold int32 `json:"compaction_threshold"`
CompactionTargetPercent pgtype.Int4 `json:"compaction_target_percent"`
CompactionModelID pgtype.UUID `json:"compaction_model_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetBotByNameRow ¶
type GetBotByNameRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
CompactionEnabled bool `json:"compaction_enabled"`
CompactionThreshold int32 `json:"compaction_threshold"`
CompactionTargetPercent pgtype.Int4 `json:"compaction_target_percent"`
CompactionModelID pgtype.UUID `json:"compaction_model_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetBotDependencyInstallationParams ¶ added in v0.20.0
type GetBotOverlayConfigRow ¶
type GetBotRemoteRuntimeMountRow ¶
type GetBotRemoteRuntimeMountRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RuntimeID pgtype.UUID `json:"runtime_id"`
IsPrimary bool `json:"is_primary"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RuntimeName string `json:"runtime_name"`
RuntimeUserID pgtype.UUID `json:"runtime_user_id"`
BotOwnerUserID pgtype.UUID `json:"bot_owner_user_id"`
}
type GetBotRuntimeResetRow ¶
type GetBotRuntimeResetRow struct {
RuntimeResetToken pgtype.UUID `json:"runtime_reset_token"`
RuntimeResetExpiresAt pgtype.Timestamptz `json:"runtime_reset_expires_at"`
}
type GetBotWorkdirParams ¶
type GetChatRouteByIDRow ¶
type GetChatRouteByIDRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Platform string `json:"platform"`
ChannelConfigID pgtype.UUID `json:"channel_config_id"`
ConversationID string `json:"conversation_id"`
ThreadID pgtype.Text `json:"thread_id"`
ConversationType pgtype.Text `json:"conversation_type"`
ReplyTarget pgtype.Text `json:"reply_target"`
ActiveSessionID pgtype.UUID `json:"active_session_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetContextLifecycleByRunIDRow ¶ added in v0.20.0
type GetContextLifecycleByRunIDRow struct {
RunID pgtype.UUID `json:"run_id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ErrorCode pgtype.Text `json:"error_code"`
Snapshot []byte `json:"snapshot"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type GetEffectiveSessionRuntimeResetRow ¶
type GetEffectiveSessionRuntimeResetRow struct {
Scope string `json:"scope"`
ResetToken pgtype.UUID `json:"reset_token"`
RuntimeResetExpiresAt pgtype.Timestamptz `json:"runtime_reset_expires_at"`
}
type GetHistoryTurnByIDRow ¶
type GetHistoryTurnByIDRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason string `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetInteractiveUserInputRequestParams ¶ added in v0.20.0
type GetLatestSessionModelPreferenceParams ¶ added in v0.20.0
type GetLatestSessionModelPreferenceRow ¶ added in v0.20.0
type GetLatestVisibleHistoryTurnBySessionRow ¶
type GetLatestVisibleHistoryTurnBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason string `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetLocatedMessageByExternalIDBySessionRow ¶
type GetLocatedMessageByExternalIDBySessionRow struct {
ID pgtype.UUID `json:"id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
TurnMessageSeq pgtype.Int8 `json:"turn_message_seq"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type GetMemoryNodeParams ¶
type GetMessageByExternalIDBySessionRow ¶
type GetMessageByExternalIDBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type GetMessageByIDBySessionRow ¶
type GetMessageByIDBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type GetPrimaryBotRemoteRuntimeMountRow ¶
type GetPrimaryBotRemoteRuntimeMountRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RuntimeID pgtype.UUID `json:"runtime_id"`
IsPrimary bool `json:"is_primary"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RuntimeName string `json:"runtime_name"`
RuntimeUserID pgtype.UUID `json:"runtime_user_id"`
BotOwnerUserID pgtype.UUID `json:"bot_owner_user_id"`
}
type GetRuntimeConfigEpochParams ¶ added in v0.20.0
type GetRuntimeConfigEpochRow ¶ added in v0.20.0
type GetRuntimeLeadingUserMessageIDParams ¶ added in v0.20.0
type GetRuntimeRoundOutcomeParams ¶ added in v0.20.0
type GetSessionCacheStatsRow ¶
type GetSettingsByBotIDRow ¶
type GetSettingsByBotIDRow struct {
BotID pgtype.UUID `json:"bot_id"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
CompactionEnabled bool `json:"compaction_enabled"`
CompactionThreshold int32 `json:"compaction_threshold"`
CompactionTargetPercent pgtype.Int4 `json:"compaction_target_percent"`
Timezone pgtype.Text `json:"timezone"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
DefaultBotAgentID pgtype.UUID `json:"default_bot_agent_id"`
ChatRuntime string `json:"chat_runtime"`
ChatAcpAgentID pgtype.Text `json:"chat_acp_agent_id"`
ChatAcpProjectPath string `json:"chat_acp_project_path"`
ChatAcpProjectMode string `json:"chat_acp_project_mode"`
CompactionModelID pgtype.UUID `json:"compaction_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
FetchProviderID pgtype.UUID `json:"fetch_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
ImageModelID pgtype.UUID `json:"image_model_id"`
TtsModelID pgtype.UUID `json:"tts_model_id"`
TranscriptionModelID pgtype.UUID `json:"transcription_model_id"`
VideoModelID pgtype.UUID `json:"video_model_id"`
PersistFullToolResults bool `json:"persist_full_tool_results"`
ShowToolCallsInIm bool `json:"show_tool_calls_in_im"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
DisplayEnabled bool `json:"display_enabled"`
OverlayProvider string `json:"overlay_provider"`
OverlayEnabled bool `json:"overlay_enabled"`
OverlayConfig []byte `json:"overlay_config"`
CommandUiLanguage string `json:"command_ui_language"`
}
type GetSpeechModelWithProviderRow ¶
type GetSpeechModelWithProviderRow struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
ProviderType string `json:"provider_type"`
}
type GetTokenUsageByDayAndTypeParams ¶
type GetTokenUsageByDayAndTypeParams struct {
BotID pgtype.UUID `json:"bot_id"`
FromTime pgtype.Timestamptz `json:"from_time"`
ToTime pgtype.Timestamptz `json:"to_time"`
ModelID pgtype.UUID `json:"model_id"`
SessionType pgtype.Text `json:"session_type"`
}
type GetTokenUsageByModelParams ¶
type GetTokenUsageByModelParams struct {
BotID pgtype.UUID `json:"bot_id"`
FromTime pgtype.Timestamptz `json:"from_time"`
ToTime pgtype.Timestamptz `json:"to_time"`
SessionType pgtype.Text `json:"session_type"`
}
type GetTokenUsageByModelRow ¶
type GetTranscriptionModelWithProviderRow ¶
type GetTranscriptionModelWithProviderRow struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
ProviderType string `json:"provider_type"`
}
type GetTurnAgentTurnIDParams ¶ added in v0.20.0
type GetVideoModelWithProviderRow ¶
type GetVideoModelWithProviderRow struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
ProviderType string `json:"provider_type"`
}
type GetVisibleHistoryTurnByMessageRow ¶
type GetVisibleHistoryTurnByMessageRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason string `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetWorkspaceDependencyDefinitionParams ¶ added in v0.20.0
type GetWorkspaceDependencyDefinitionRow ¶ added in v0.20.0
type InsertAgentSessionStateLinesParams ¶ added in v0.20.0
type InsertAgentSessionStateLinesRow ¶ added in v0.20.0
type InsertMemoryEdgeParams ¶
type InsertVersionParams ¶
type LifecycleEvent ¶
type ListAccessibleBotsRow ¶
type ListAccessibleBotsRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListActiveMessagesSinceBySessionParams ¶
type ListActiveMessagesSinceBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ListActiveMessagesSinceBySessionRow ¶
type ListActiveMessagesSinceBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListActiveMessagesSinceBySessionWithinBytesParams ¶
type ListActiveMessagesSinceBySessionWithinBytesParams struct {
SessionID pgtype.UUID `json:"session_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
MaxBytes int64 `json:"max_bytes"`
}
type ListActiveMessagesSinceBySessionWithinBytesRow ¶
type ListActiveMessagesSinceBySessionWithinBytesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListActiveMessagesSinceParams ¶
type ListActiveMessagesSinceParams struct {
BotID pgtype.UUID `json:"bot_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ListActiveMessagesSinceRow ¶
type ListActiveMessagesSinceRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListActiveMessagesSinceWithinBytesParams ¶
type ListActiveMessagesSinceWithinBytesParams struct {
BotID pgtype.UUID `json:"bot_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
MaxBytes int64 `json:"max_bytes"`
}
type ListActiveMessagesSinceWithinBytesRow ¶
type ListActiveMessagesSinceWithinBytesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListAgentSessionStateLinePageParams ¶ added in v0.20.0
type ListAgentSessionStateLinePageParams struct {
SessionID pgtype.UUID `json:"session_id"`
FileBounds []byte `json:"file_bounds"`
BotID pgtype.UUID `json:"bot_id"`
AfterFilePath string `json:"after_file_path"`
AfterLineNumber int64 `json:"after_line_number"`
MaxResults int32 `json:"max_results"`
MaxPageBytes int64 `json:"max_page_bytes"`
}
type ListAgentSessionStateLinePageRow ¶ added in v0.20.0
type ListAllMessagesForBackupRow ¶
type ListAllMessagesForBackupRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
TurnMessageSeq pgtype.Int8 `json:"turn_message_seq"`
TurnVisible bool `json:"turn_visible"`
TurnSupersededByTurnID pgtype.UUID `json:"turn_superseded_by_turn_id"`
TurnSupersededAt pgtype.Timestamptz `json:"turn_superseded_at"`
TurnSupersededReason pgtype.Text `json:"turn_superseded_reason"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListAppConnectorRefsForBotRow ¶ added in v0.20.0
type ListAppConnectorRefsForBotRow struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
InstallationID pgtype.UUID `json:"installation_id"`
ConnectorType string `json:"connector_type"`
ConnectionID string `json:"connection_id"`
Required bool `json:"required"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RegistryID string `json:"registry_id"`
AppID string `json:"app_id"`
}
type ListAppDependencyRefsForBotRow ¶ added in v0.20.0
type ListAppDependencyRefsForBotRow struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
InstallationID pgtype.UUID `json:"installation_id"`
DependencyID string `json:"dependency_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RegistryID string `json:"registry_id"`
AppID string `json:"app_id"`
}
type ListBotACLRulesRow ¶
type ListBotACLRulesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Enabled bool `json:"enabled"`
Description pgtype.Text `json:"description"`
Action string `json:"action"`
Effect string `json:"effect"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
SubjectChannelType pgtype.Text `json:"subject_channel_type"`
SourceConversationType pgtype.Text `json:"source_conversation_type"`
SourceConversationID pgtype.Text `json:"source_conversation_id"`
SourceThreadID pgtype.Text `json:"source_thread_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ChannelType pgtype.Text `json:"channel_type"`
ChannelSubjectID pgtype.Text `json:"channel_subject_id"`
ChannelIdentityDisplayName pgtype.Text `json:"channel_identity_display_name"`
ChannelIdentityAvatarUrl pgtype.Text `json:"channel_identity_avatar_url"`
SourceConversationName string `json:"source_conversation_name"`
SourceConversationAvatarUrl string `json:"source_conversation_avatar_url"`
}
type ListBotChannelAdminsRow ¶
type ListBotChannelAdminsRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
Granted bool `json:"granted"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ChannelType pgtype.Text `json:"channel_type"`
ChannelSubjectID pgtype.Text `json:"channel_subject_id"`
ChannelIdentityDisplayName pgtype.Text `json:"channel_identity_display_name"`
ChannelIdentityAvatarUrl pgtype.Text `json:"channel_identity_avatar_url"`
}
type ListBotRemoteRuntimeMountsRow ¶
type ListBotRemoteRuntimeMountsRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RuntimeID pgtype.UUID `json:"runtime_id"`
IsPrimary bool `json:"is_primary"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
RuntimeName string `json:"runtime_name"`
RuntimeUserID pgtype.UUID `json:"runtime_user_id"`
BotOwnerUserID pgtype.UUID `json:"bot_owner_user_id"`
}
type ListBotUserGrantsRow ¶
type ListBotUserGrantsRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SubjectType string `json:"subject_type"`
UserID pgtype.UUID `json:"user_id"`
Permissions []byte `json:"permissions"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
UserUsername pgtype.Text `json:"user_username"`
UserDisplayName pgtype.Text `json:"user_display_name"`
UserAvatarUrl pgtype.Text `json:"user_avatar_url"`
}
type ListBotWorkdirsParams ¶
type ListBotsByOwnerRow ¶
type ListBotsByOwnerRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListChannelIdentityBindingsForBotRow ¶
type ListChannelIdentityBindingsForBotRow struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ChannelType pgtype.Text `json:"channel_type"`
ChannelSubjectID pgtype.Text `json:"channel_subject_id"`
ChannelIdentityDisplayName pgtype.Text `json:"channel_identity_display_name"`
ChannelIdentityAvatarUrl pgtype.Text `json:"channel_identity_avatar_url"`
}
type ListChannelIdentityBindingsForUserRow ¶
type ListChannelIdentityBindingsForUserRow struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ChannelType pgtype.Text `json:"channel_type"`
ChannelSubjectID pgtype.Text `json:"channel_subject_id"`
ChannelIdentityDisplayName pgtype.Text `json:"channel_identity_display_name"`
ChannelIdentityAvatarUrl pgtype.Text `json:"channel_identity_avatar_url"`
}
type ListChannelIdentityBindingsRow ¶
type ListChannelIdentityBindingsRow struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ChannelType pgtype.Text `json:"channel_type"`
ChannelSubjectID pgtype.Text `json:"channel_subject_id"`
ChannelIdentityDisplayName pgtype.Text `json:"channel_identity_display_name"`
ChannelIdentityAvatarUrl pgtype.Text `json:"channel_identity_avatar_url"`
}
type ListChatRoutesRow ¶
type ListChatRoutesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Platform string `json:"platform"`
ChannelConfigID pgtype.UUID `json:"channel_config_id"`
ConversationID string `json:"conversation_id"`
ThreadID pgtype.Text `json:"thread_id"`
ConversationType pgtype.Text `json:"conversation_type"`
ReplyTarget pgtype.Text `json:"reply_target"`
ActiveSessionID pgtype.UUID `json:"active_session_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListHistoryTurnsByBotRow ¶
type ListHistoryTurnsByBotRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason string `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListMessageAssetsBatchRow ¶
type ListMessageAssetsBatchRow struct {
RelID pgtype.UUID `json:"rel_id"`
MessageID pgtype.UUID `json:"message_id"`
Role string `json:"role"`
Ordinal int32 `json:"ordinal"`
ContentHash string `json:"content_hash"`
Mime string `json:"mime"`
SizeBytes int64 `json:"size_bytes"`
StorageKey string `json:"storage_key"`
Name string `json:"name"`
Metadata []byte `json:"metadata"`
}
type ListMessageAssetsRow ¶
type ListMessageAssetsRow struct {
RelID pgtype.UUID `json:"rel_id"`
MessageID pgtype.UUID `json:"message_id"`
Role string `json:"role"`
Ordinal int32 `json:"ordinal"`
ContentHash string `json:"content_hash"`
Mime string `json:"mime"`
SizeBytes int64 `json:"size_bytes"`
StorageKey string `json:"storage_key"`
Name string `json:"name"`
Metadata []byte `json:"metadata"`
}
type ListMessagesAfterBySessionParams ¶
type ListMessagesAfterBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
MaxCount int32 `json:"max_count"`
}
type ListMessagesAfterBySessionRow ¶
type ListMessagesAfterBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesAfterCursorBySessionParams ¶
type ListMessagesAfterCursorBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CursorTurnPosition int64 `json:"cursor_turn_position"`
CursorTurnMessageSeq int64 `json:"cursor_turn_message_seq"`
CursorCreatedAt pgtype.Timestamptz `json:"cursor_created_at"`
CursorMessageID pgtype.UUID `json:"cursor_message_id"`
MaxCount int32 `json:"max_count"`
}
type ListMessagesAfterCursorBySessionRow ¶
type ListMessagesAfterCursorBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesAfterMessageBySessionRow ¶
type ListMessagesAfterMessageBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesBeforeBySessionParams ¶
type ListMessagesBeforeBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
MaxCount int32 `json:"max_count"`
}
type ListMessagesBeforeBySessionRow ¶
type ListMessagesBeforeBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesBeforeCursorBySessionParams ¶
type ListMessagesBeforeCursorBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CursorTurnPosition int64 `json:"cursor_turn_position"`
CursorTurnMessageSeq int64 `json:"cursor_turn_message_seq"`
CursorCreatedAt pgtype.Timestamptz `json:"cursor_created_at"`
CursorMessageID pgtype.UUID `json:"cursor_message_id"`
MaxCount int32 `json:"max_count"`
}
type ListMessagesBeforeCursorBySessionRow ¶
type ListMessagesBeforeCursorBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesBeforeMessageBySessionRow ¶
type ListMessagesBeforeMessageBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesBeforeParams ¶
type ListMessagesBeforeParams struct {
BotID pgtype.UUID `json:"bot_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
MaxCount int32 `json:"max_count"`
}
type ListMessagesBeforeRow ¶
type ListMessagesBeforeRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesByCompactIDRow ¶
type ListMessagesByCompactIDRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
CompactionEpoch int64 `json:"compaction_epoch"`
ConversationType pgtype.Text `json:"conversation_type"`
ConversationName string `json:"conversation_name"`
ReplyTarget pgtype.Text `json:"reply_target"`
}
type ListMessagesBySessionRow ¶
type ListMessagesBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesLatestBySessionRow ¶
type ListMessagesLatestBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
TurnID pgtype.UUID `json:"turn_id"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesLatestRow ¶
type ListMessagesLatestRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesLatestUIBySessionRow ¶
type ListMessagesLatestUIBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesRow ¶
type ListMessagesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesSinceBySessionParams ¶
type ListMessagesSinceBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ListMessagesSinceBySessionRow ¶
type ListMessagesSinceBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListMessagesSinceParams ¶
type ListMessagesSinceParams struct {
BotID pgtype.UUID `json:"bot_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type ListMessagesSinceRow ¶
type ListMessagesSinceRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type ListObservedConversationsByChannelIdentityRow ¶
type ListObservedConversationsByChannelIdentityRow struct {
RouteID pgtype.UUID `json:"route_id"`
Channel string `json:"channel"`
ConversationType string `json:"conversation_type"`
ConversationID string `json:"conversation_id"`
ThreadID string `json:"thread_id"`
ConversationName string `json:"conversation_name"`
ConversationAvatarUrl string `json:"conversation_avatar_url"`
LastObservedAt pgtype.Timestamptz `json:"last_observed_at"`
}
type ListObservedConversationsByChannelTypeRow ¶
type ListObservedConversationsByChannelTypeRow struct {
RouteID pgtype.UUID `json:"route_id"`
Channel string `json:"channel"`
ConversationType string `json:"conversation_type"`
ConversationID string `json:"conversation_id"`
ThreadID string `json:"thread_id"`
ConversationName string `json:"conversation_name"`
ConversationAvatarUrl string `json:"conversation_avatar_url"`
LastObservedAt pgtype.Timestamptz `json:"last_observed_at"`
}
type ListProviderTemplatesRow ¶
type ListProviderTemplatesRow struct {
ID pgtype.UUID `json:"id"`
Key string `json:"key"`
Domain string `json:"domain"`
Name string `json:"name"`
Description string `json:"description"`
Icon pgtype.Text `json:"icon"`
Driver string `json:"driver"`
ConfigSchema []byte `json:"config_schema"`
DefaultConfig []byte `json:"default_config"`
Metadata []byte `json:"metadata"`
Source string `json:"source"`
ContentHash string `json:"content_hash"`
SortOrder int32 `json:"sort_order"`
Active bool `json:"active"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Configured bool `json:"configured"`
}
type ListScheduleLogsByBotRow ¶
type ListScheduleLogsByBotRow struct {
ID pgtype.UUID `json:"id"`
ScheduleID pgtype.UUID `json:"schedule_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ResultText string `json:"result_text"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type ListScheduleLogsByScheduleRow ¶
type ListScheduleLogsByScheduleRow struct {
ID pgtype.UUID `json:"id"`
ScheduleID pgtype.UUID `json:"schedule_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ResultText string `json:"result_text"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
}
type ListSessionEventsBySessionPageBeforeWithinBytesParams ¶ added in v0.20.0
type ListSessionEventsBySessionPageBeforeWithinBytesParams struct {
SessionID pgtype.UUID `json:"session_id"`
CoveredExternalMessages []byte `json:"covered_external_messages"`
HasCursor bool `json:"has_cursor"`
BeforeReceivedAtMs int64 `json:"before_received_at_ms"`
BeforeCreatedAt pgtype.Timestamptz `json:"before_created_at"`
BeforeID pgtype.UUID `json:"before_id"`
MaxBytes int64 `json:"max_bytes"`
PageSize int32 `json:"page_size"`
}
type ListSessionEventsBySessionPageBeforeWithinBytesRow ¶ added in v0.20.0
type ListSessionEventsBySessionPageBeforeWithinBytesRow struct {
ID pgtype.UUID `json:"id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
EventKind string `json:"event_kind"`
EventData []byte `json:"event_data"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
ReceivedAtMs int64 `json:"received_at_ms"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
PayloadBytes int64 `json:"payload_bytes"`
CumulativeBytes int64 `json:"cumulative_bytes"`
}
type ListSessionsByBotAndCreatedByUserPagedParams ¶
type ListSessionsByBotAndCreatedByUserPagedParams struct {
BotID pgtype.UUID `json:"bot_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Types []string `json:"types"`
UseParentSession bool `json:"use_parent_session"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
UseWorkdir bool `json:"use_workdir"`
WorkdirUnassigned bool `json:"workdir_unassigned"`
WorkdirID pgtype.UUID `json:"workdir_id"`
UseVisibility bool `json:"use_visibility"`
Visibility string `json:"visibility"`
UseCursor bool `json:"use_cursor"`
CursorUpdatedAt pgtype.Timestamptz `json:"cursor_updated_at"`
CursorID pgtype.UUID `json:"cursor_id"`
LimitCount int32 `json:"limit_count"`
}
type ListSessionsByBotAndCreatedByUserPagedRow ¶
type ListSessionsByBotAndCreatedByUserPagedRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
Visibility string `json:"visibility"`
RuntimeMetadata []byte `json:"runtime_metadata"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
ModelPreferenceRevision pgtype.UUID `json:"model_preference_revision"`
}
type ListSessionsByBotAndCreatedByUserRow ¶
type ListSessionsByBotAndCreatedByUserRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
Visibility string `json:"visibility"`
RuntimeMetadata []byte `json:"runtime_metadata"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
ModelPreferenceRevision pgtype.UUID `json:"model_preference_revision"`
}
type ListSessionsByBotPagedParams ¶
type ListSessionsByBotPagedParams struct {
BotID pgtype.UUID `json:"bot_id"`
Types []string `json:"types"`
UseParentSession bool `json:"use_parent_session"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
UseWorkdir bool `json:"use_workdir"`
WorkdirUnassigned bool `json:"workdir_unassigned"`
WorkdirID pgtype.UUID `json:"workdir_id"`
UseVisibility bool `json:"use_visibility"`
Visibility string `json:"visibility"`
UseCursor bool `json:"use_cursor"`
CursorUpdatedAt pgtype.Timestamptz `json:"cursor_updated_at"`
CursorID pgtype.UUID `json:"cursor_id"`
LimitCount int32 `json:"limit_count"`
}
type ListSessionsByBotPagedRow ¶
type ListSessionsByBotPagedRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
Visibility string `json:"visibility"`
RuntimeMetadata []byte `json:"runtime_metadata"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
ModelPreferenceRevision pgtype.UUID `json:"model_preference_revision"`
}
type ListSessionsByBotRow ¶
type ListSessionsByBotRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelType pgtype.Text `json:"channel_type"`
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
Visibility string `json:"visibility"`
RuntimeMetadata []byte `json:"runtime_metadata"`
Title string `json:"title"`
Metadata []byte `json:"metadata"`
ParentSessionID pgtype.UUID `json:"parent_session_id"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
WorkdirID pgtype.UUID `json:"workdir_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
PreferredChatModelID pgtype.UUID `json:"preferred_chat_model_id"`
PreferredReasoningEffort pgtype.Text `json:"preferred_reasoning_effort"`
PreferredExternalModelID pgtype.Text `json:"preferred_external_model_id"`
ModelPreferenceRevision pgtype.UUID `json:"model_preference_revision"`
}
type ListSnapshotsWithVersionByContainerIDRow ¶
type ListSnapshotsWithVersionByContainerIDRow struct {
ID pgtype.UUID `json:"id"`
ContainerID string `json:"container_id"`
RuntimeSnapshotName string `json:"runtime_snapshot_name"`
DisplayName pgtype.Text `json:"display_name"`
ParentRuntimeSnapshotName pgtype.Text `json:"parent_runtime_snapshot_name"`
Snapshotter string `json:"snapshotter"`
Source string `json:"source"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
Version pgtype.Int4 `json:"version"`
}
type ListSpeechModelsRow ¶
type ListSpeechModelsRow struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
ProviderType string `json:"provider_type"`
}
type ListTokenUsageRecordsParams ¶
type ListTokenUsageRecordsParams struct {
BotID pgtype.UUID `json:"bot_id"`
FromTime pgtype.Timestamptz `json:"from_time"`
ToTime pgtype.Timestamptz `json:"to_time"`
ModelID pgtype.UUID `json:"model_id"`
SessionType pgtype.Text `json:"session_type"`
PageOffset int32 `json:"page_offset"`
PageLimit int32 `json:"page_limit"`
}
type ListTokenUsageRecordsRow ¶
type ListTokenUsageRecordsRow struct {
ID pgtype.UUID `json:"id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SessionID pgtype.UUID `json:"session_id"`
SessionType string `json:"session_type"`
ModelID pgtype.UUID `json:"model_id"`
ModelSlug string `json:"model_slug"`
ModelName string `json:"model_name"`
ProviderName string `json:"provider_name"`
InputTokens int64 `json:"input_tokens"`
OutputTokens int64 `json:"output_tokens"`
CacheReadTokens int64 `json:"cache_read_tokens"`
ReasoningTokens int64 `json:"reasoning_tokens"`
}
type ListTranscriptionModelsRow ¶
type ListTranscriptionModelsRow struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
ProviderType string `json:"provider_type"`
}
type ListUncompactedMessagesBySessionRow ¶
type ListUncompactedMessagesBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
CompactionEpoch int64 `json:"compaction_epoch"`
ConversationType pgtype.Text `json:"conversation_type"`
ConversationName string `json:"conversation_name"`
ReplyTarget pgtype.Text `json:"reply_target"`
}
type ListUncompactedMessagesBySessionWithinBytesParams ¶ added in v0.20.0
type ListUncompactedMessagesBySessionWithinBytesRow ¶ added in v0.20.0
type ListUncompactedMessagesBySessionWithinBytesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
Usage []byte `json:"usage"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
CompactionEpoch int64 `json:"compaction_epoch"`
ConversationType pgtype.Text `json:"conversation_type"`
ConversationName string `json:"conversation_name"`
ReplyTarget pgtype.Text `json:"reply_target"`
CandidateCount int64 `json:"candidate_count"`
CandidateBytes int64 `json:"candidate_bytes"`
CumulativeBytes int64 `json:"cumulative_bytes"`
}
type ListVersionsByContainerIDRow ¶
type ListVersionsByContainerIDRow struct {
ID pgtype.UUID `json:"id"`
ContainerID string `json:"container_id"`
SnapshotID pgtype.UUID `json:"snapshot_id"`
Version int32 `json:"version"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RuntimeSnapshotName string `json:"runtime_snapshot_name"`
DisplayName pgtype.Text `json:"display_name"`
}
type ListVideoModelsRow ¶
type ListVideoModelsRow struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
ProviderType string `json:"provider_type"`
}
type ListVisibleMessagesFromBySessionRow ¶
type ListVisibleMessagesFromBySessionRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
TurnID pgtype.UUID `json:"turn_id"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CompactID pgtype.UUID `json:"compact_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type LocateMessagesWindowByExternalIDBySessionRow ¶
type LocateMessagesWindowByExternalIDBySessionRow struct {
TargetID pgtype.UUID `json:"target_id"`
TargetTurnMessageSeq pgtype.Int8 `json:"target_turn_message_seq"`
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
ExternalMessageID pgtype.Text `json:"external_message_id"`
SourceReplyToMessageID pgtype.Text `json:"source_reply_to_message_id"`
Role string `json:"role"`
Content []byte `json:"content"`
Metadata []byte `json:"metadata"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition pgtype.Int8 `json:"turn_position"`
Usage []byte `json:"usage"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
EventID pgtype.UUID `json:"event_id"`
DisplayText pgtype.Text `json:"display_text"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
Platform pgtype.Text `json:"platform"`
}
type McpConnection ¶
type McpConnection struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Name string `json:"name"`
Type string `json:"type"`
Config []byte `json:"config"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
ToolsCache []byte `json:"tools_cache"`
LastProbedAt pgtype.Timestamptz `json:"last_probed_at"`
StatusMessage string `json:"status_message"`
AuthType string `json:"auth_type"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type McpOauthToken ¶
type McpOauthToken struct {
ID pgtype.UUID `json:"id"`
ConnectionID pgtype.UUID `json:"connection_id"`
ResourceMetadataUrl string `json:"resource_metadata_url"`
AuthorizationServerUrl string `json:"authorization_server_url"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
RegistrationEndpoint string `json:"registration_endpoint"`
ScopesSupported []string `json:"scopes_supported"`
ClientID string `json:"client_id"`
ClientSecret string `json:"client_secret"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
TokenType string `json:"token_type"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
PkceCodeVerifier string `json:"pkce_code_verifier"`
StateParam string `json:"state_param"`
ResourceUri string `json:"resource_uri"`
RedirectUri string `json:"redirect_uri"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type MeasureActiveMessagesBySessionParams ¶
type MeasureActiveMessagesBySessionParams struct {
SessionID pgtype.UUID `json:"session_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type MeasureUncompactedMessagesBySessionRow ¶ added in v0.20.0
type MediaAsset ¶
type MediaAsset struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
StorageProviderID pgtype.UUID `json:"storage_provider_id"`
ContentHash string `json:"content_hash"`
MediaType string `json:"media_type"`
Mime string `json:"mime"`
SizeBytes int64 `json:"size_bytes"`
StorageKey string `json:"storage_key"`
OriginalName pgtype.Text `json:"original_name"`
Width pgtype.Int4 `json:"width"`
Height pgtype.Int4 `json:"height"`
DurationMs pgtype.Int8 `json:"duration_ms"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type MemoryEdge ¶
type MemoryEdge struct {
ID int64 `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SrcNode string `json:"src_node"`
DstNode string `json:"dst_node"`
Rel string `json:"rel"`
Weight float32 `json:"weight"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type MemoryNode ¶
type MemoryNode struct {
ID string `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Body string `json:"body"`
Hash string `json:"hash"`
Layer string `json:"layer"`
FactType string `json:"fact_type"`
Subject string `json:"subject"`
Confidence float32 `json:"confidence"`
Metadata []byte `json:"metadata"`
SourceMessageIds []byte `json:"source_message_ids"`
ProfileRef string `json:"profile_ref"`
Topic string `json:"topic"`
CapturedAt pgtype.Timestamptz `json:"captured_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type MemoryProvider ¶
type MemoryProvider struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Provider string `json:"provider"`
Config []byte `json:"config"`
IsDefault bool `json:"is_default"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type Model ¶
type Model struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
ProviderID pgtype.UUID `json:"provider_id"`
Type string `json:"type"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type ModelVariant ¶
type ModelVariant struct {
ID pgtype.UUID `json:"id"`
ModelUuid pgtype.UUID `json:"model_uuid"`
VariantID string `json:"variant_id"`
Weight int32 `json:"weight"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type PrepareSessionRunFinishParams ¶ added in v0.20.0
type PrepareSessionRunFinishParams struct {
ProposedTerminalState string `json:"proposed_terminal_state"`
ProposedErrorCode pgtype.Text `json:"proposed_error_code"`
ProposedErrorMessage pgtype.Text `json:"proposed_error_message"`
RunID pgtype.UUID `json:"run_id"`
FencingToken int64 `json:"fencing_token"`
AllowWaitingDecision bool `json:"allow_waiting_decision"`
}
type Provider ¶
type Provider struct {
ID pgtype.UUID `json:"id"`
ProviderTemplateID pgtype.UUID `json:"provider_template_id"`
Name string `json:"name"`
ClientType string `json:"client_type"`
Icon pgtype.Text `json:"icon"`
Enable bool `json:"enable"`
Config []byte `json:"config"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type ProviderOauthToken ¶
type ProviderOauthToken struct {
ID pgtype.UUID `json:"id"`
ProviderID pgtype.UUID `json:"provider_id"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
TokenType string `json:"token_type"`
State string `json:"state"`
PkceCodeVerifier string `json:"pkce_code_verifier"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type PruneAgentSessionStateVersionsParams ¶ added in v0.20.0
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AcquireLockedBotRuntimeReset ¶
func (q *Queries) AcquireLockedBotRuntimeReset(ctx context.Context, arg AcquireLockedBotRuntimeResetParams) (pgtype.Timestamptz, error)
func (*Queries) AcquireLockedBotSessionRuntimeReset ¶
func (q *Queries) AcquireLockedBotSessionRuntimeReset(ctx context.Context, arg AcquireLockedBotSessionRuntimeResetParams) (pgtype.Timestamptz, error)
func (*Queries) AcquireProviderTemplateSyncLock ¶
func (*Queries) ActivateSessionRuntimeFence ¶
func (*Queries) ActivateUserRuntime ¶
func (q *Queries) ActivateUserRuntime(ctx context.Context, arg ActivateUserRuntimeParams) (UserRuntime, error)
The first ready connection consumes the short-lived pending state. Existing activated credentials remain reusable for later reconnects.
func (*Queries) AdmitLockedSessionRun ¶
func (q *Queries) AdmitLockedSessionRun(ctx context.Context, arg AdmitLockedSessionRunParams) (SessionRun, error)
Durable admission. There is no queue: SR-OWN-001 permits answering busy, so a second concurrent invocation is rejected rather than parked.
Busy is rejected in two layers. The adapter's indexed pre-read catches the common case before this statement runs at all, so contended submissions never reach the write path. This statement handles only what slipped through that unlocked read: session_runs_single_active raises, and because the adapter runs this after a separate parent lock in one transaction, rollback takes the allocated turn position with it and leaves nothing for the caller to clean up.
Returns no rows when this invocation_id was already admitted — ON CONFLICT keeps the ordinary retry path free of errors, which matters because channel redelivery makes it a routine event — or when the session does not exist. The caller re-selects by invocation to tell those two apart.
A position is allocated only for an admission that can still succeed: never for a known duplicate (the NOT EXISTS guard below) and never for a rejected one (the rollback). The single exception is two callers racing on the *same* invocation_id, where both pass the guard against the statement snapshot and the loser's increment commits with no row. That leaves a gap in turn_position, which is ordering-only and never read as a count.
func (*Queries) AllocateSessionTurnPosition ¶
func (*Queries) AppendMessageToHistoryTurnByRequest ¶
func (*Queries) AppendMessageToLatestHistoryTurn ¶
func (*Queries) ApproveToolApprovalRequest ¶
func (q *Queries) ApproveToolApprovalRequest(ctx context.Context, arg ApproveToolApprovalRequestParams) (ToolApprovalRequest, error)
func (*Queries) ArchiveBotWorkdir ¶
func (*Queries) BackfillUserRuntimeName ¶
func (q *Queries) BackfillUserRuntimeName(ctx context.Context, arg BackfillUserRuntimeNameParams) (int64, error)
Fills the display name from the connecting machine, but ONLY while the row still carries its creation-time default (or an empty name): a user-chosen name is never overwritten by a later handshake.
func (*Queries) BindHistoryTurnAssistantByRequest ¶
func (q *Queries) BindHistoryTurnAssistantByRequest(ctx context.Context, arg BindHistoryTurnAssistantByRequestParams) (BindHistoryTurnAssistantByRequestRow, error)
func (*Queries) BindLatestHistoryTurnAssistant ¶
func (q *Queries) BindLatestHistoryTurnAssistant(ctx context.Context, arg BindLatestHistoryTurnAssistantParams) (BindLatestHistoryTurnAssistantRow, error)
func (*Queries) BotAgentIsDefault ¶
func (*Queries) BumpBotRuntimeConfigEpoch ¶
func (*Queries) CacheWorkspaceDependencyCatalog ¶ added in v0.20.0
func (*Queries) CacheWorkspaceDependencyDefinition ¶ added in v0.20.0
func (*Queries) CancelPendingToolApprovalsBySession ¶
func (q *Queries) CancelPendingToolApprovalsBySession(ctx context.Context, arg CancelPendingToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
func (*Queries) CancelPendingUserInputsByRun ¶ added in v0.20.0
func (q *Queries) CancelPendingUserInputsByRun(ctx context.Context, arg CancelPendingUserInputsByRunParams) ([]UserInputRequest, error)
A lost run must only invalidate decisions it created. Session-wide cancellation would also expire a newer run's ask_user request after a stale owner is reaped.
func (*Queries) CancelPendingUserInputsBySession ¶
func (q *Queries) CancelPendingUserInputsBySession(ctx context.Context, arg CancelPendingUserInputsBySessionParams) ([]UserInputRequest, error)
func (*Queries) CancelUserInputRequest ¶
func (q *Queries) CancelUserInputRequest(ctx context.Context, arg CancelUserInputRequestParams) (UserInputRequest, error)
func (*Queries) ClaimBotDependencyOperation ¶ added in v0.20.0
func (q *Queries) ClaimBotDependencyOperation(ctx context.Context, arg ClaimBotDependencyOperationParams) (BotDependencyInstallation, error)
func (*Queries) ClaimLockedSessionRun ¶
func (q *Queries) ClaimLockedSessionRun(ctx context.Context, arg ClaimLockedSessionRunParams) (SessionRun, error)
Ownership change: the only write that touches owner_id, fencing_token, owner_since and live_generation. live_generation is stamped once here and never updated, which keeps idx_session_runs_recovery a stable keyset cursor. Fencing tokens come from a monotonic sequence, so a newer claim always carries a strictly larger token than the one it replaces.
func (*Queries) ClaimToolApprovalRequestForRuntime ¶
func (q *Queries) ClaimToolApprovalRequestForRuntime(ctx context.Context, arg ClaimToolApprovalRequestForRuntimeParams) (ToolApprovalRequest, error)
func (*Queries) ClaimUserInputRequestForRuntime ¶
func (q *Queries) ClaimUserInputRequestForRuntime(ctx context.Context, arg ClaimUserInputRequestForRuntimeParams) (UserInputRequest, error)
func (*Queries) ClearAppConnectorRefConnection ¶ added in v0.20.0
func (*Queries) ClearBotAgentCredential ¶ added in v0.20.0
func (*Queries) ClearBotRemoteRuntimePrimary ¶
func (*Queries) ClearBotRuntimeData ¶
func (*Queries) ClearHistoryByBot ¶
func (*Queries) ClearHistoryBySession ¶
func (*Queries) ClearMCPOAuthTokens ¶
func (*Queries) CompareAndSetSessionModelPreference ¶ added in v0.20.0
func (q *Queries) CompareAndSetSessionModelPreference(ctx context.Context, arg CompareAndSetSessionModelPreferenceParams) (int64, error)
A picker may not overwrite a send or a newer picker operation. Nullable revisions allow existing sessions to upgrade without a table backfill.
func (*Queries) CompleteCompactionLog ¶
func (q *Queries) CompleteCompactionLog(ctx context.Context, arg CompleteCompactionLogParams) (BotHistoryMessageCompact, error)
func (*Queries) CompleteCompactionRollup ¶
func (q *Queries) CompleteCompactionRollup(ctx context.Context, arg CompleteCompactionRollupParams) (BotHistoryMessageCompact, error)
func (*Queries) CompleteScheduleLog ¶
func (q *Queries) CompleteScheduleLog(ctx context.Context, arg CompleteScheduleLogParams) (ScheduleLog, error)
func (*Queries) CountAgentAuthorizations ¶ added in v0.20.0
func (*Queries) CountBotAgentCredentialRefs ¶ added in v0.20.0
func (*Queries) CountCompactionLogsByBot ¶
func (*Queries) CountEmailOutboxByBot ¶
func (*Queries) CountMemoryEdgesByBot ¶
func (*Queries) CountMemoryNodesByBot ¶
func (*Queries) CountMemoryProvidersByDefault ¶
func (*Queries) CountMessageAssetsByBot ¶
func (*Queries) CountMessagesByBot ¶
func (*Queries) CountMessagesBySession ¶
func (*Queries) CountModelsByType ¶
func (*Queries) CountProviders ¶
func (*Queries) CountScheduleLogsByBot ¶
func (*Queries) CountScheduleLogsBySchedule ¶
func (*Queries) CountSessionEvents ¶
func (*Queries) CountTokenUsageRecords ¶
func (*Queries) CreateAccount ¶
func (q *Queries) CreateAccount(ctx context.Context, arg CreateAccountParams) (CreateAccountRow, error)
func (*Queries) CreateAgentAuthorization ¶ added in v0.20.0
func (q *Queries) CreateAgentAuthorization(ctx context.Context, arg CreateAgentAuthorizationParams) (AgentAuthorization, error)
func (*Queries) CreateAgentCredential ¶ added in v0.20.0
func (q *Queries) CreateAgentCredential(ctx context.Context, arg CreateAgentCredentialParams) (AgentCredential, error)
func (*Queries) CreateBot ¶
func (q *Queries) CreateBot(ctx context.Context, arg CreateBotParams) (CreateBotRow, error)
func (*Queries) CreateBotACLRule ¶
func (q *Queries) CreateBotACLRule(ctx context.Context, arg CreateBotACLRuleParams) (BotAclRule, error)
func (*Queries) CreateBotAgent ¶
func (*Queries) CreateBotEmailBinding ¶
func (q *Queries) CreateBotEmailBinding(ctx context.Context, arg CreateBotEmailBindingParams) (BotEmailBinding, error)
func (*Queries) CreateBotUserGrant ¶
func (q *Queries) CreateBotUserGrant(ctx context.Context, arg CreateBotUserGrantParams) (BotUserGrant, error)
func (*Queries) CreateBotWorkdir ¶
func (q *Queries) CreateBotWorkdir(ctx context.Context, arg CreateBotWorkdirParams) (BotWorkdir, error)
func (*Queries) CreateChannelIdentity ¶
func (q *Queries) CreateChannelIdentity(ctx context.Context, arg CreateChannelIdentityParams) (ChannelIdentity, error)
func (*Queries) CreateChannelLinkCode ¶
func (q *Queries) CreateChannelLinkCode(ctx context.Context, arg CreateChannelLinkCodeParams) (ChannelLinkCode, error)
func (*Queries) CreateChatRoute ¶
func (q *Queries) CreateChatRoute(ctx context.Context, arg CreateChatRouteParams) (CreateChatRouteRow, error)
func (*Queries) CreateCompactionLog ¶
func (q *Queries) CreateCompactionLog(ctx context.Context, arg CreateCompactionLogParams) (BotHistoryMessageCompact, error)
func (*Queries) CreateConnector ¶
func (*Queries) CreateContextLifecycle ¶
func (q *Queries) CreateContextLifecycle(ctx context.Context, arg CreateContextLifecycleParams) (CreateContextLifecycleRow, error)
func (*Queries) CreateEmailOutbox ¶
func (q *Queries) CreateEmailOutbox(ctx context.Context, arg CreateEmailOutboxParams) (EmailOutbox, error)
func (*Queries) CreateEmailProvider ¶
func (q *Queries) CreateEmailProvider(ctx context.Context, arg CreateEmailProviderParams) (EmailProvider, error)
func (*Queries) CreateFetchProvider ¶
func (q *Queries) CreateFetchProvider(ctx context.Context, arg CreateFetchProviderParams) (FetchProvider, error)
func (*Queries) CreateHistoryTurn ¶
func (q *Queries) CreateHistoryTurn(ctx context.Context, arg CreateHistoryTurnParams) (CreateHistoryTurnRow, error)
func (*Queries) CreateHistoryTurnWithID ¶
func (q *Queries) CreateHistoryTurnWithID(ctx context.Context, arg CreateHistoryTurnWithIDParams) (CreateHistoryTurnWithIDRow, error)
func (*Queries) CreateHistoryTurnWithIDAtPosition ¶
func (q *Queries) CreateHistoryTurnWithIDAtPosition(ctx context.Context, arg CreateHistoryTurnWithIDAtPositionParams) (CreateHistoryTurnWithIDAtPositionRow, error)
func (*Queries) CreateMCPConnection ¶
func (q *Queries) CreateMCPConnection(ctx context.Context, arg CreateMCPConnectionParams) (McpConnection, error)
func (*Queries) CreateMemoryProvider ¶
func (q *Queries) CreateMemoryProvider(ctx context.Context, arg CreateMemoryProviderParams) (MemoryProvider, error)
func (*Queries) CreateMessage ¶
func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (CreateMessageRow, error)
func (*Queries) CreateMessageAsset ¶
func (q *Queries) CreateMessageAsset(ctx context.Context, arg CreateMessageAssetParams) (CreateMessageAssetRow, error)
func (*Queries) CreateMessageInHistoryTurnByRequest ¶
func (q *Queries) CreateMessageInHistoryTurnByRequest(ctx context.Context, arg CreateMessageInHistoryTurnByRequestParams) (CreateMessageInHistoryTurnByRequestRow, error)
func (*Queries) CreateMessageInHistoryTurnByRequestAndBind ¶
func (q *Queries) CreateMessageInHistoryTurnByRequestAndBind(ctx context.Context, arg CreateMessageInHistoryTurnByRequestAndBindParams) (CreateMessageInHistoryTurnByRequestAndBindRow, error)
func (*Queries) CreateMessageWithHistoryTurn ¶
func (q *Queries) CreateMessageWithHistoryTurn(ctx context.Context, arg CreateMessageWithHistoryTurnParams) (CreateMessageWithHistoryTurnRow, error)
Writes the request message of a turn.
The turn position is allocated here only when the caller did not bring one. A run admitted through session_runs already drew turn_id and turn_position from this same counter (SR-TURN-001, SR-DUR-002), so bumping again would spend a second position and file the message under a turn the client was never told about. Entry points with no admission — channel inbound, schedules — pass NULL and keep allocating here.
func (*Queries) CreateMessageWithTurn ¶
func (q *Queries) CreateMessageWithTurn(ctx context.Context, arg CreateMessageWithTurnParams) (CreateMessageWithTurnRow, error)
func (*Queries) CreateModel ¶
func (*Queries) CreateModelVariant ¶
func (q *Queries) CreateModelVariant(ctx context.Context, arg CreateModelVariantParams) (ModelVariant, error)
func (*Queries) CreateOrUpdateBotRemoteRuntimeMount ¶
func (*Queries) CreateProvider ¶
func (*Queries) CreateProviderFromTemplate ¶
func (*Queries) CreateSchedule ¶
func (*Queries) CreateScheduleLog ¶
func (q *Queries) CreateScheduleLog(ctx context.Context, arg CreateScheduleLogParams) (CreateScheduleLogRow, error)
func (*Queries) CreateSearchProvider ¶
func (q *Queries) CreateSearchProvider(ctx context.Context, arg CreateSearchProviderParams) (SearchProvider, error)
func (*Queries) CreateSession ¶
func (q *Queries) CreateSession(ctx context.Context, arg CreateSessionParams) (BotSession, error)
func (*Queries) CreateSessionEvent ¶
func (*Queries) CreateStorageProvider ¶
func (q *Queries) CreateStorageProvider(ctx context.Context, arg CreateStorageProviderParams) (StorageProvider, error)
func (*Queries) CreateSubagentConfig ¶
func (q *Queries) CreateSubagentConfig(ctx context.Context, arg CreateSubagentConfigParams) (SubagentConfig, error)
func (*Queries) CreateSubagentForkContext ¶
func (q *Queries) CreateSubagentForkContext(ctx context.Context, arg CreateSubagentForkContextParams) (CreateSubagentForkContextRow, error)
func (*Queries) CreateToolApprovalRequest ¶
func (q *Queries) CreateToolApprovalRequest(ctx context.Context, arg CreateToolApprovalRequestParams) (ToolApprovalRequest, error)
func (*Queries) CreateToolTailRound ¶
func (q *Queries) CreateToolTailRound(ctx context.Context, arg CreateToolTailRoundParams) ([]CreateToolTailRoundRow, error)
As in CreateMessageWithHistoryTurn: a run admitted through session_runs already drew this turn's position, so bumping again would spend a second one and file the round under a turn the client was never told about.
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (CreateUserRow, error)
func (*Queries) CreateUserInputRequest ¶
func (q *Queries) CreateUserInputRequest(ctx context.Context, arg CreateUserInputRequestParams) (UserInputRequest, error)
func (*Queries) CreateUserRuntime ¶
func (q *Queries) CreateUserRuntime(ctx context.Context, arg CreateUserRuntimeParams) (UserRuntime, error)
func (*Queries) DeleteAgentAuthorization ¶ added in v0.20.0
func (q *Queries) DeleteAgentAuthorization(ctx context.Context, arg DeleteAgentAuthorizationParams) error
func (*Queries) DeleteAgentSessionPublicationsBySession ¶ added in v0.20.0
func (*Queries) DeleteAgentSessionStateLineFilesNotIn ¶ added in v0.20.0
func (q *Queries) DeleteAgentSessionStateLineFilesNotIn(ctx context.Context, arg DeleteAgentSessionStateLineFilesNotInParams) (int64, error)
Remove files the incoming version no longer contains, including files a crashed candidate introduced that neither the canonical nor the incoming version knows about. kept_paths is a JSONB array of file path strings.
func (*Queries) DeleteAgentSessionStateLinesBySession ¶ added in v0.20.0
func (*Queries) DeleteAgentSessionStatesBySession ¶ added in v0.20.0
func (*Queries) DeleteAllMemoryEdgesByBot ¶
func (*Queries) DeleteAllMemoryNodesByBot ¶
func (*Queries) DeleteAppConnectorRef ¶ added in v0.20.0
func (*Queries) DeleteAppDependencyRef ¶ added in v0.20.0
func (*Queries) DeleteBotACLRuleByID ¶
func (*Queries) DeleteBotAppInstallation ¶ added in v0.20.0
func (q *Queries) DeleteBotAppInstallation(ctx context.Context, arg DeleteBotAppInstallationParams) (BotAppInstallation, error)
func (*Queries) DeleteBotByID ¶
Runtime-fenced writers lock the bot parent before a child session. Keep the same parent-before-child order here so deletion cannot deadlock with them.
func (*Queries) DeleteBotChannelAdmin ¶
func (q *Queries) DeleteBotChannelAdmin(ctx context.Context, arg DeleteBotChannelAdminParams) error
func (*Queries) DeleteBotChannelConfig ¶
func (q *Queries) DeleteBotChannelConfig(ctx context.Context, arg DeleteBotChannelConfigParams) error
func (*Queries) DeleteBotDependencyInstallation ¶ added in v0.20.0
func (*Queries) DeleteBotDependencyOperation ¶ added in v0.20.0
func (q *Queries) DeleteBotDependencyOperation(ctx context.Context, arg DeleteBotDependencyOperationParams) (BotDependencyInstallation, error)
func (*Queries) DeleteBotEmailBinding ¶
func (*Queries) DeleteBotRemoteRuntimeMount ¶
func (*Queries) DeleteBotRemoteRuntimeMountsByRuntime ¶
func (q *Queries) DeleteBotRemoteRuntimeMountsByRuntime(ctx context.Context, runtimeID pgtype.UUID) error
Revoking a runtime kills every bot mount of it in the same transaction: dead bindings would otherwise linger as ghost rows on every surface.
func (*Queries) DeleteBotUserGrantByID ¶
func (*Queries) DeleteChatRoute ¶
func (*Queries) DeleteCompactionLogsByBot ¶
func (*Queries) DeleteConnector ¶
func (q *Queries) DeleteConnector(ctx context.Context, arg DeleteConnectorParams) error
Keep the local binding until every App reference and status change commits. Any failure rolls back the entire statement, leaving a retryable binding.
func (*Queries) DeleteContainerByBotID ¶
func (*Queries) DeleteEmailOAuthToken ¶
func (*Queries) DeleteEmailProvider ¶
func (*Queries) DeleteEmailProviderByIDAndUser ¶
func (q *Queries) DeleteEmailProviderByIDAndUser(ctx context.Context, arg DeleteEmailProviderByIDAndUserParams) error
func (*Queries) DeleteFetchProvider ¶
func (*Queries) DeleteMCPConnection ¶
func (q *Queries) DeleteMCPConnection(ctx context.Context, arg DeleteMCPConnectionParams) error
func (*Queries) DeleteMCPOAuthToken ¶
func (*Queries) DeleteMemoryEdgesByRelForBot ¶
func (q *Queries) DeleteMemoryEdgesByRelForBot(ctx context.Context, arg DeleteMemoryEdgesByRelForBotParams) error
func (*Queries) DeleteMemoryEdgesForNode ¶
func (q *Queries) DeleteMemoryEdgesForNode(ctx context.Context, arg DeleteMemoryEdgesForNodeParams) error
func (*Queries) DeleteMemoryNode ¶
func (q *Queries) DeleteMemoryNode(ctx context.Context, arg DeleteMemoryNodeParams) error
func (*Queries) DeleteMemoryProvider ¶
func (*Queries) DeleteMessageAssets ¶
func (*Queries) DeleteMessagesByIDs ¶
func (*Queries) DeleteModel ¶
func (*Queries) DeleteModelByModelID ¶
func (*Queries) DeleteModelByProviderAndType ¶
func (q *Queries) DeleteModelByProviderAndType(ctx context.Context, arg DeleteModelByProviderAndTypeParams) error
func (*Queries) DeleteModelByProviderIDAndModelID ¶
func (q *Queries) DeleteModelByProviderIDAndModelID(ctx context.Context, arg DeleteModelByProviderIDAndModelIDParams) error
func (*Queries) DeleteProvider ¶
func (*Queries) DeleteProviderOAuthToken ¶
func (*Queries) DeleteRuntimeDecisionProjectionsByRun ¶ added in v0.20.0
func (q *Queries) DeleteRuntimeDecisionProjectionsByRun(ctx context.Context, arg DeleteRuntimeDecisionProjectionsByRunParams) (int64, error)
Decision cards are temporary stream projections. Delete by their stable run marker as well as by returned IDs so an insert whose COMMIT ack was lost cannot survive the final canonical round as a duplicate assistant message.
func (*Queries) DeleteSchedule ¶
func (*Queries) DeleteScheduleLogsByBot ¶
func (*Queries) DeleteScheduleLogsBySchedule ¶
func (*Queries) DeleteSearchProvider ¶
func (*Queries) DeleteSessionDiscussCursorsByBot ¶
func (*Queries) DeleteSessionEventsByBot ¶
func (*Queries) DeleteSettingsByBotID ¶
func (*Queries) DeleteUserChannelIdentityBinding ¶
func (q *Queries) DeleteUserChannelIdentityBinding(ctx context.Context, arg DeleteUserChannelIdentityBindingParams) error
func (*Queries) DeleteUserProviderOAuthToken ¶
func (q *Queries) DeleteUserProviderOAuthToken(ctx context.Context, arg DeleteUserProviderOAuthTokenParams) error
func (*Queries) DisableSchedule ¶
func (*Queries) EvaluateBotACLRule ¶
func (q *Queries) EvaluateBotACLRule(ctx context.Context, arg EvaluateBotACLRuleParams) (string, error)
Mode-based ACL: only rules opposite to bots.acl_default_effect can override the default. If no matching override exists, returns bots.acl_default_effect.
func (*Queries) ExpirePendingUserRuntimes ¶
Expired attempts can no longer authenticate. Mark them revoked and remove any defensive direct-API mounts so they release names and grant rows too.
func (*Queries) FailUserInputRequest ¶
func (q *Queries) FailUserInputRequest(ctx context.Context, arg FailUserInputRequestParams) (UserInputRequest, error)
func (*Queries) FinalizeSessionRun ¶
func (q *Queries) FinalizeSessionRun(ctx context.Context, arg FinalizeSessionRunParams) (SessionRun, error)
Fenced idempotent terminal write, shared by the owner (completed / aborted / failed) and the reaper (lost). Zero rows affected means the transition was already applied or a newer owner superseded this token; neither is an error.
func (*Queries) FindActiveBotAgentByRuntimeProvider ¶
func (*Queries) FindChatRoute ¶
func (q *Queries) FindChatRoute(ctx context.Context, arg FindChatRouteParams) (FindChatRouteRow, error)
func (*Queries) FindWorkspaceDependencyIcon ¶ added in v0.20.0
func (q *Queries) FindWorkspaceDependencyIcon(ctx context.Context, arg FindWorkspaceDependencyIconParams) (FindWorkspaceDependencyIconRow, error)
func (*Queries) FinishBotDependencyOperation ¶ added in v0.20.0
func (q *Queries) FinishBotDependencyOperation(ctx context.Context, arg FinishBotDependencyOperationParams) (BotDependencyInstallation, error)
func (*Queries) ForkSessionFromAssistantTurn ¶
func (q *Queries) ForkSessionFromAssistantTurn(ctx context.Context, arg ForkSessionFromAssistantTurnParams) (ForkSessionFromAssistantTurnRow, error)
func (*Queries) GetAccountByIdentity ¶
func (*Queries) GetAccountByUserID ¶
func (*Queries) GetActiveBotAgentByID ¶
func (*Queries) GetActiveSessionRun ¶
func (*Queries) GetAgentAuthorization ¶ added in v0.20.0
func (q *Queries) GetAgentAuthorization(ctx context.Context, arg GetAgentAuthorizationParams) (AgentAuthorization, error)
func (*Queries) GetAgentCredential ¶ added in v0.20.0
func (*Queries) GetAgentSessionCanonicalStateShape ¶ added in v0.20.0
func (q *Queries) GetAgentSessionCanonicalStateShape(ctx context.Context, arg GetAgentSessionCanonicalStateShapeParams) (GetAgentSessionCanonicalStateShapeRow, error)
The committed head version's per-file shapes: the authoritative read bound for Load and the append-only baseline for the next staging. Reset heads have no state row, so this returns no rows for them.
func (*Queries) GetAgentSessionPublicationHead ¶ added in v0.20.0
func (q *Queries) GetAgentSessionPublicationHead(ctx context.Context, arg GetAgentSessionPublicationHeadParams) (GetAgentSessionPublicationHeadRow, error)
Return the canonical publication head independently from snapshot availability. Warm runtimes use this small watermark before every native prompt so another server instance (or a history clear) cannot leave two process-local conversations advancing from different canonical heads.
func (*Queries) GetAgentSessionState ¶ added in v0.20.0
func (q *Queries) GetAgentSessionState(ctx context.Context, arg GetAgentSessionStateParams) (GetAgentSessionStateRow, error)
A staged snapshot becomes readable only after its run owns the session's canonical publication head. Returning the head even when the LEFT JOIN misses lets the adapter distinguish "no runtime history yet" from "history committed but its snapshot is missing".
func (*Queries) GetBotACLDefaultEffect ¶
func (*Queries) GetBotAgentByID ¶
func (*Queries) GetBotAgentCredential ¶ added in v0.20.0
func (q *Queries) GetBotAgentCredential(ctx context.Context, arg GetBotAgentCredentialParams) (GetBotAgentCredentialRow, error)
func (*Queries) GetBotAgentRuntime ¶ added in v0.20.0
func (*Queries) GetBotAppInstallation ¶ added in v0.20.0
func (q *Queries) GetBotAppInstallation(ctx context.Context, arg GetBotAppInstallationParams) (BotAppInstallation, error)
func (*Queries) GetBotAppInstallationByID ¶ added in v0.20.0
func (q *Queries) GetBotAppInstallationByID(ctx context.Context, arg GetBotAppInstallationByIDParams) (BotAppInstallation, error)
func (*Queries) GetBotByID ¶
func (*Queries) GetBotByName ¶
func (*Queries) GetBotChannelAdmin ¶
func (q *Queries) GetBotChannelAdmin(ctx context.Context, arg GetBotChannelAdminParams) (BotChannelAdmin, error)
func (*Queries) GetBotChannelConfig ¶
func (q *Queries) GetBotChannelConfig(ctx context.Context, arg GetBotChannelConfigParams) (BotChannelConfig, error)
func (*Queries) GetBotChannelConfigByExternalIdentity ¶
func (q *Queries) GetBotChannelConfigByExternalIdentity(ctx context.Context, arg GetBotChannelConfigByExternalIdentityParams) (BotChannelConfig, error)
func (*Queries) GetBotDependencyInstallation ¶ added in v0.20.0
func (q *Queries) GetBotDependencyInstallation(ctx context.Context, arg GetBotDependencyInstallationParams) (BotDependencyInstallation, error)
func (*Queries) GetBotEmailBindingByBotAndProvider ¶
func (q *Queries) GetBotEmailBindingByBotAndProvider(ctx context.Context, arg GetBotEmailBindingByBotAndProviderParams) (BotEmailBinding, error)
func (*Queries) GetBotEmailBindingByID ¶
func (*Queries) GetBotOverlayConfig ¶
func (*Queries) GetBotRemoteRuntimeMount ¶
func (q *Queries) GetBotRemoteRuntimeMount(ctx context.Context, arg GetBotRemoteRuntimeMountParams) (GetBotRemoteRuntimeMountRow, error)
func (*Queries) GetBotRuntimeReset ¶
func (*Queries) GetBotStorageBinding ¶
func (*Queries) GetBotUserGrantByID ¶
func (*Queries) GetBotWorkdir ¶
func (q *Queries) GetBotWorkdir(ctx context.Context, arg GetBotWorkdirParams) (BotWorkdir, error)
Archived rows are returned on purpose: sessions bound to an archived workdir keep resolving their working directory; callers that must refuse archived workdirs (session creation) check archived_at themselves.
func (*Queries) GetBotWorkspaceResourceLimits ¶
func (*Queries) GetChannelIdentityByChannelSubject ¶
func (q *Queries) GetChannelIdentityByChannelSubject(ctx context.Context, arg GetChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
func (*Queries) GetChannelIdentityByID ¶
func (*Queries) GetChannelIdentityByIDForUpdate ¶
func (*Queries) GetChannelLinkCodeByToken ¶
func (*Queries) GetChatRouteByID ¶
func (*Queries) GetCompactionLogByID ¶
func (*Queries) GetConnectorByConnectionID ¶
func (*Queries) GetContainerByBotID ¶
func (*Queries) GetContextLifecycleByRunID ¶
func (*Queries) GetContextLifecycleSelectionDecisionsByRunID ¶ added in v0.20.0
func (*Queries) GetDefaultMemoryProvider ¶
func (q *Queries) GetDefaultMemoryProvider(ctx context.Context) (MemoryProvider, error)
func (*Queries) GetEffectiveBotScopeRuntimeReset ¶
func (q *Queries) GetEffectiveBotScopeRuntimeReset(ctx context.Context, botID pgtype.UUID) (GetEffectiveBotScopeRuntimeResetRow, error)
Mirrors effectiveResetLease in internal/agent/runtime/session/types.go: a bot-scope reader is blocked by the bot lease or by ANY active session lease of that bot, because a bot-wide operation must not proceed while one of the bot's sessions is mid-reset.
func (*Queries) GetEffectiveSessionRuntimeReset ¶
func (q *Queries) GetEffectiveSessionRuntimeReset(ctx context.Context, arg GetEffectiveSessionRuntimeResetParams) (GetEffectiveSessionRuntimeResetRow, error)
func (*Queries) GetEmailOAuthTokenByProvider ¶
func (*Queries) GetEmailOAuthTokenByState ¶
func (*Queries) GetEmailOutboxByID ¶
func (*Queries) GetEmailProviderByID ¶
func (*Queries) GetEmailProviderByIDAndUser ¶
func (q *Queries) GetEmailProviderByIDAndUser(ctx context.Context, arg GetEmailProviderByIDAndUserParams) (EmailProvider, error)
func (*Queries) GetEmailProviderByNameAndUser ¶
func (q *Queries) GetEmailProviderByNameAndUser(ctx context.Context, arg GetEmailProviderByNameAndUserParams) (EmailProvider, error)
func (*Queries) GetFetchProviderByID ¶
func (*Queries) GetFetchProviderByName ¶
func (*Queries) GetHistoryTurnByID ¶
func (q *Queries) GetHistoryTurnByID(ctx context.Context, arg GetHistoryTurnByIDParams) (GetHistoryTurnByIDRow, error)
func (*Queries) GetInteractiveUserInputRequest ¶ added in v0.20.0
func (q *Queries) GetInteractiveUserInputRequest(ctx context.Context, arg GetInteractiveUserInputRequestParams) (UserInputRequest, error)
Channel-native controls may advance the interaction without carrying the runtime fence. The eventual submit remains fence-protected; this lookup only admits a live, pending request in the requested bot scope.
func (*Queries) GetLatestAssistantContextLifecycleByRunID ¶
func (*Queries) GetLatestAssistantContextLifecycleMetadataByRunID ¶
func (*Queries) GetLatestAssistantUsage ¶
func (*Queries) GetLatestContextLifecycleBySession ¶ added in v0.20.0
func (*Queries) GetLatestPendingToolApprovalBySession ¶
func (q *Queries) GetLatestPendingToolApprovalBySession(ctx context.Context, arg GetLatestPendingToolApprovalBySessionParams) (ToolApprovalRequest, error)
func (*Queries) GetLatestPendingUserInputBySession ¶
func (q *Queries) GetLatestPendingUserInputBySession(ctx context.Context, arg GetLatestPendingUserInputBySessionParams) (UserInputRequest, error)
func (*Queries) GetLatestSessionIDByBot ¶
func (*Queries) GetLatestSessionModelID ¶
func (*Queries) GetLatestSessionModelPreference ¶ added in v0.20.0
func (q *Queries) GetLatestSessionModelPreference(ctx context.Context, arg GetLatestSessionModelPreferenceParams) (GetLatestSessionModelPreferenceRow, error)
Welcome composer seed: the bot's most recent native user-facing session that has a persisted pair, created by the CURRENT user (multi-member bots must not seed one member's welcome from another member's pick). Native = model runtime, chat/discuss mode, user visibility; subagent/schedule/ACP sessions never seed.
func (*Queries) GetLatestSessionRun ¶
func (*Queries) GetLatestVisibleHistoryTurnBySession ¶
func (*Queries) GetLocatedMessageByExternalIDBySession ¶
func (q *Queries) GetLocatedMessageByExternalIDBySession(ctx context.Context, arg GetLocatedMessageByExternalIDBySessionParams) (GetLocatedMessageByExternalIDBySessionRow, error)
func (*Queries) GetMCPConnectionByID ¶
func (q *Queries) GetMCPConnectionByID(ctx context.Context, arg GetMCPConnectionByIDParams) (McpConnection, error)
func (*Queries) GetMCPOAuthToken ¶
func (*Queries) GetMCPOAuthTokenByState ¶
func (*Queries) GetMemoryNode ¶
func (q *Queries) GetMemoryNode(ctx context.Context, arg GetMemoryNodeParams) (MemoryNode, error)
func (*Queries) GetMemoryProviderByID ¶
func (*Queries) GetMessageByExternalIDBySession ¶
func (q *Queries) GetMessageByExternalIDBySession(ctx context.Context, arg GetMessageByExternalIDBySessionParams) (GetMessageByExternalIDBySessionRow, error)
func (*Queries) GetMessageByIDBySession ¶
func (q *Queries) GetMessageByIDBySession(ctx context.Context, arg GetMessageByIDBySessionParams) (GetMessageByIDBySessionRow, error)
func (*Queries) GetModelByID ¶
func (*Queries) GetModelByModelID ¶
func (*Queries) GetModelByProviderAndModelID ¶
func (*Queries) GetPendingToolApprovalByReplyMessage ¶
func (q *Queries) GetPendingToolApprovalByReplyMessage(ctx context.Context, arg GetPendingToolApprovalByReplyMessageParams) (ToolApprovalRequest, error)
func (*Queries) GetPendingToolApprovalBySessionShortID ¶
func (q *Queries) GetPendingToolApprovalBySessionShortID(ctx context.Context, arg GetPendingToolApprovalBySessionShortIDParams) (ToolApprovalRequest, error)
func (*Queries) GetPendingUserInputByReplyMessage ¶
func (q *Queries) GetPendingUserInputByReplyMessage(ctx context.Context, arg GetPendingUserInputByReplyMessageParams) (UserInputRequest, error)
func (*Queries) GetPendingUserInputBySessionShortID ¶
func (q *Queries) GetPendingUserInputBySessionShortID(ctx context.Context, arg GetPendingUserInputBySessionShortIDParams) (UserInputRequest, error)
func (*Queries) GetPrimaryBotRemoteRuntimeMount ¶
func (*Queries) GetProviderByClientType ¶
func (*Queries) GetProviderByID ¶
func (*Queries) GetProviderByName ¶
func (*Queries) GetProviderOAuthTokenByProvider ¶
func (*Queries) GetProviderOAuthTokenByState ¶
func (*Queries) GetProviderTemplateByDomainAndKey ¶
func (q *Queries) GetProviderTemplateByDomainAndKey(ctx context.Context, arg GetProviderTemplateByDomainAndKeyParams) (TemplateProviderTemplate, error)
func (*Queries) GetProviderTemplateByID ¶
func (*Queries) GetRespondableUserInputRequest ¶
func (q *Queries) GetRespondableUserInputRequest(ctx context.Context, arg GetRespondableUserInputRequestParams) (UserInputRequest, error)
func (*Queries) GetRuntimeConfigEpoch ¶ added in v0.20.0
func (q *Queries) GetRuntimeConfigEpoch(ctx context.Context, arg GetRuntimeConfigEpochParams) (GetRuntimeConfigEpochRow, error)
A handle records this pair before its process starts. Bound resolution and every prompt compare it again, so a reset on another server invalidates idle and unbound processes that have no active session_run to route to.
func (*Queries) GetRuntimeLeadingUserMessageID ¶ added in v0.20.0
func (q *Queries) GetRuntimeLeadingUserMessageID(ctx context.Context, arg GetRuntimeLeadingUserMessageIDParams) (pgtype.UUID, error)
Reconcile the single eager user row after an uncertain COMMIT. The caller first waits on the session row in a separate statement, so no row here is a definitive rollback rather than an observation racing the old backend.
func (*Queries) GetRuntimeRoundOutcome ¶ added in v0.20.0
func (q *Queries) GetRuntimeRoundOutcome(ctx context.Context, arg GetRuntimeRoundOutcomeParams) (string, error)
Read the terminal runtime outcome for commit-unknown reconciliation after the caller has first waited on the session write lock.
func (*Queries) GetScheduleByID ¶
func (*Queries) GetSearchProviderByID ¶
func (*Queries) GetSearchProviderByName ¶
func (*Queries) GetSessionByID ¶
func (*Queries) GetSessionCacheStats ¶
func (*Queries) GetSessionDiscussCursor ¶
func (q *Queries) GetSessionDiscussCursor(ctx context.Context, arg GetSessionDiscussCursorParams) (BotSessionDiscussCursor, error)
func (*Queries) GetSessionRun ¶
func (*Queries) GetSessionRunByInvocation ¶
func (q *Queries) GetSessionRunByInvocation(ctx context.Context, arg GetSessionRunByInvocationParams) (SessionRun, error)
func (*Queries) GetSessionUsedSkills ¶
func (*Queries) GetSettingsByBotID ¶
func (*Queries) GetSnapshotByContainerAndRuntimeName ¶
func (*Queries) GetSpeechModelWithProvider ¶
func (*Queries) GetStorageProviderByID ¶
func (*Queries) GetStorageProviderByName ¶
func (*Queries) GetSubagentConfig ¶
func (*Queries) GetTokenUsageByDayAndType ¶
func (q *Queries) GetTokenUsageByDayAndType(ctx context.Context, arg GetTokenUsageByDayAndTypeParams) ([]GetTokenUsageByDayAndTypeRow, error)
func (*Queries) GetTokenUsageByModel ¶
func (q *Queries) GetTokenUsageByModel(ctx context.Context, arg GetTokenUsageByModelParams) ([]GetTokenUsageByModelRow, error)
func (*Queries) GetToolApprovalRequest ¶
func (*Queries) GetTranscriptionModelWithProvider ¶
func (*Queries) GetTurnAgentTurnID ¶ added in v0.20.0
func (q *Queries) GetTurnAgentTurnID(ctx context.Context, arg GetTurnAgentTurnIDParams) (string, error)
The anchor for turn-level runtime operations (codex thread/fork lastTurnId): the newest assistant message of the turn that recorded one.
func (*Queries) GetUserByID ¶
func (*Queries) GetUserChannelBinding ¶
func (q *Queries) GetUserChannelBinding(ctx context.Context, arg GetUserChannelBindingParams) (UserChannelBinding, error)
func (*Queries) GetUserInputRequest ¶
func (*Queries) GetUserInputRequestBySessionToolCall ¶
func (q *Queries) GetUserInputRequestBySessionToolCall(ctx context.Context, arg GetUserInputRequestBySessionToolCallParams) (UserInputRequest, error)
func (*Queries) GetUserProviderOAuthToken ¶
func (q *Queries) GetUserProviderOAuthToken(ctx context.Context, arg GetUserProviderOAuthTokenParams) (UserProviderOauthToken, error)
func (*Queries) GetUserProviderOAuthTokenByState ¶
func (*Queries) GetUserRuntimeByAPIToken ¶
func (*Queries) GetVersionSnapshotRuntimeName ¶
func (*Queries) GetVideoModelWithProvider ¶
func (*Queries) GetVisibleHistoryTurnByMessage ¶
func (q *Queries) GetVisibleHistoryTurnByMessage(ctx context.Context, arg GetVisibleHistoryTurnByMessageParams) (GetVisibleHistoryTurnByMessageRow, error)
func (*Queries) GetVisibleMessageCursorByExternalIDBySession ¶
func (q *Queries) GetVisibleMessageCursorByExternalIDBySession(ctx context.Context, arg GetVisibleMessageCursorByExternalIDBySessionParams) (GetVisibleMessageCursorByExternalIDBySessionRow, error)
func (*Queries) GetVisibleMessageCursorByIDBySession ¶
func (q *Queries) GetVisibleMessageCursorByIDBySession(ctx context.Context, arg GetVisibleMessageCursorByIDBySessionParams) (GetVisibleMessageCursorByIDBySessionRow, error)
func (*Queries) GetWorkspaceDependencyCatalog ¶ added in v0.20.0
func (*Queries) GetWorkspaceDependencyDefinition ¶ added in v0.20.0
func (q *Queries) GetWorkspaceDependencyDefinition(ctx context.Context, arg GetWorkspaceDependencyDefinitionParams) (GetWorkspaceDependencyDefinitionRow, error)
Renew the retention lease before a caller prepares or recovers an operation. A concurrent prune either observes the renewed lease or wins first and makes this lookup fail, so an accepted preview never loses its definition to GC.
func (*Queries) HasUnmaterializedContextLifecycleMetadataBySession ¶ added in v0.20.0
func (*Queries) HideMessagesByHistoryTurn ¶
func (*Queries) IncrementScheduleCalls ¶
func (*Queries) InsertAgentSessionStateLines ¶ added in v0.20.0
func (q *Queries) InsertAgentSessionStateLines(ctx context.Context, arg InsertAgentSessionStateLinesParams) (InsertAgentSessionStateLinesRow, error)
content travels as a JSON string inside the envelope and lands verbatim in the TEXT column, so the stored bytes are exactly the capture's compacted bytes and every digest survives the database round trip.
func (*Queries) InsertLifecycleEvent ¶
func (q *Queries) InsertLifecycleEvent(ctx context.Context, arg InsertLifecycleEventParams) error
func (*Queries) InsertMemoryEdge ¶
func (q *Queries) InsertMemoryEdge(ctx context.Context, arg InsertMemoryEdgeParams) error
func (*Queries) InsertVersion ¶
func (q *Queries) InsertVersion(ctx context.Context, arg InsertVersionParams) (ContainerVersion, error)
func (*Queries) LinkMessageToHistoryTurn ¶
func (*Queries) LinkUnassignedMessagesAfterHistoryTurnAssistant ¶
func (*Queries) ListAccessibleBots ¶
func (*Queries) ListAccounts ¶
func (q *Queries) ListAccounts(ctx context.Context) ([]TeamAccount, error)
func (*Queries) ListActiveMessagesSince ¶
func (q *Queries) ListActiveMessagesSince(ctx context.Context, arg ListActiveMessagesSinceParams) ([]ListActiveMessagesSinceRow, error)
func (*Queries) ListActiveMessagesSinceBySession ¶
func (q *Queries) ListActiveMessagesSinceBySession(ctx context.Context, arg ListActiveMessagesSinceBySessionParams) ([]ListActiveMessagesSinceBySessionRow, error)
func (*Queries) ListActiveMessagesSinceBySessionWithinBytes ¶
func (q *Queries) ListActiveMessagesSinceBySessionWithinBytes(ctx context.Context, arg ListActiveMessagesSinceBySessionWithinBytesParams) ([]ListActiveMessagesSinceBySessionWithinBytesRow, error)
Byte-budgeted variant of ListActiveMessagesSinceBySession (CM-ADM-001): rows are admitted newest-first until their running content byte total crosses max_bytes (the crossing row is kept, so the newest row always loads), then returned in ascending order. Process memory is bounded by max_bytes regardless of total history size.
func (*Queries) ListActiveMessagesSinceWithinBytes ¶
func (q *Queries) ListActiveMessagesSinceWithinBytes(ctx context.Context, arg ListActiveMessagesSinceWithinBytesParams) ([]ListActiveMessagesSinceWithinBytesRow, error)
Byte-budgeted variant of ListActiveMessagesSince (CM-ADM-001), same newest-first admission semantics scoped to a bot instead of a session.
func (*Queries) ListActiveSessionRunsByBot ¶
func (*Queries) ListAgentSessionStateLinePage ¶ added in v0.20.0
func (q *Queries) ListAgentSessionStateLinePage(ctx context.Context, arg ListAgentSessionStateLinePageParams) ([]ListAgentSessionStateLinePageRow, error)
Keyset pagination keeps the Go result bounded independently of snapshot size. The cumulative byte guard normally limits a page to max_page_bytes; ordinal 1 guarantees progress when one valid JSONL record is larger than that target (the adapter applies the stricter per-record hard limit). file_bounds is the requested version's shape as a {path: records} object: it is the version-membership filter, hiding lines beyond the version's per- file record counts (a crashed candidate's dangling tail) and files the version never contained.
func (*Queries) ListAllMessagesForBackup ¶
func (*Queries) ListAllProviderTemplateModels ¶
func (*Queries) ListAllProviderTemplates ¶
func (q *Queries) ListAllProviderTemplates(ctx context.Context) ([]TemplateProviderTemplate, error)
func (*Queries) ListAppConnectorRefs ¶ added in v0.20.0
func (*Queries) ListAppConnectorRefsForBot ¶ added in v0.20.0
func (*Queries) ListAppDependencyRefs ¶ added in v0.20.0
func (*Queries) ListAppDependencyRefsForBot ¶ added in v0.20.0
func (*Queries) ListAutoStartContainers ¶
func (*Queries) ListBotACLRules ¶
func (*Queries) ListBotAgents ¶
func (*Queries) ListBotAppInstallations ¶ added in v0.20.0
func (*Queries) ListBotChannelAdmins ¶
func (*Queries) ListBotChannelConfigsByType ¶
func (*Queries) ListBotDependencyInstallations ¶ added in v0.20.0
func (*Queries) ListBotDependencyInstallationsByStatus ¶ added in v0.20.0
func (*Queries) ListBotEmailBindings ¶
func (*Queries) ListBotEmailBindingsByProvider ¶
func (*Queries) ListBotRemoteRuntimeGrantsByRuntimeOwner ¶
func (q *Queries) ListBotRemoteRuntimeGrantsByRuntimeOwner(ctx context.Context, ownerUserID pgtype.UUID) ([]ListBotRemoteRuntimeGrantsByRuntimeOwnerRow, error)
Account-level reverse lookup: every live mount held by the owner's bots. A mount can only exist while runtime.user_id = bot.owner_user_id (enforced by CreateOrUpdateBotRemoteRuntimeMount), so scoping by the bot owner covers exactly the grants on the owner's own runtimes.
func (*Queries) ListBotRemoteRuntimeMounts ¶
func (*Queries) ListBotUserGrants ¶
func (*Queries) ListBotUserGrantsForUser ¶
func (q *Queries) ListBotUserGrantsForUser(ctx context.Context, arg ListBotUserGrantsForUserParams) ([]ListBotUserGrantsForUserRow, error)
func (*Queries) ListBotWorkdirs ¶
func (q *Queries) ListBotWorkdirs(ctx context.Context, arg ListBotWorkdirsParams) ([]BotWorkdir, error)
func (*Queries) ListBotsByOwner ¶
func (*Queries) ListChannelIdentityBindings ¶
func (q *Queries) ListChannelIdentityBindings(ctx context.Context) ([]ListChannelIdentityBindingsRow, error)
func (*Queries) ListChannelIdentityBindingsForBot ¶
func (*Queries) ListChannelIdentityBindingsForUser ¶
func (*Queries) ListChatRouteThreadProjectionsByIDs ¶
func (q *Queries) ListChatRouteThreadProjectionsByIDs(ctx context.Context, arg ListChatRouteThreadProjectionsByIDsParams) ([]ListChatRouteThreadProjectionsByIDsRow, error)
func (*Queries) ListChatRoutes ¶
func (*Queries) ListCompactionArtifactLineageBySession ¶
func (*Queries) ListCompactionArtifactParentIDsBySuccessor ¶
func (*Queries) ListCompactionLogsByBot ¶
func (q *Queries) ListCompactionLogsByBot(ctx context.Context, arg ListCompactionLogsByBotParams) ([]BotHistoryMessageCompact, error)
func (*Queries) ListConnectorsByBotID ¶
func (*Queries) ListEmailOutboxByBot ¶
func (q *Queries) ListEmailOutboxByBot(ctx context.Context, arg ListEmailOutboxByBotParams) ([]EmailOutbox, error)
func (*Queries) ListEmailProviders ¶
func (q *Queries) ListEmailProviders(ctx context.Context) ([]EmailProvider, error)
func (*Queries) ListEmailProvidersByProvider ¶
func (*Queries) ListEmailProvidersByUser ¶
func (*Queries) ListEmailProvidersByUserAndProvider ¶
func (q *Queries) ListEmailProvidersByUserAndProvider(ctx context.Context, arg ListEmailProvidersByUserAndProviderParams) ([]EmailProvider, error)
func (*Queries) ListEnabledModels ¶
func (*Queries) ListEnabledModelsByProviderClientType ¶
func (*Queries) ListEnabledModelsByType ¶
func (*Queries) ListEnabledSchedules ¶
func (*Queries) ListFetchProviders ¶
func (q *Queries) ListFetchProviders(ctx context.Context) ([]FetchProvider, error)
func (*Queries) ListFetchProvidersByProvider ¶
func (*Queries) ListHistoryTurnsByBot ¶
func (q *Queries) ListHistoryTurnsByBot(ctx context.Context, botID pgtype.UUID) ([]ListHistoryTurnsByBotRow, error)
This legacy aggregate has no runtime caller; keep its diagnostic surface bounded until a concrete consumer can provide a session/keyset cursor.
func (*Queries) ListMCPConnectionsByBotID ¶
func (*Queries) ListMemoryEdgesByBot ¶
func (*Queries) ListMemoryEdgesByRel ¶
func (q *Queries) ListMemoryEdgesByRel(ctx context.Context, arg ListMemoryEdgesByRelParams) ([]MemoryEdge, error)
func (*Queries) ListMemoryEdgesFromNode ¶
func (q *Queries) ListMemoryEdgesFromNode(ctx context.Context, arg ListMemoryEdgesFromNodeParams) ([]MemoryEdge, error)
func (*Queries) ListMemoryNodesByBot ¶
func (*Queries) ListMemoryNodesByBotLayer ¶
func (q *Queries) ListMemoryNodesByBotLayer(ctx context.Context, arg ListMemoryNodesByBotLayerParams) ([]MemoryNode, error)
func (*Queries) ListMemoryNodesByBotProfile ¶
func (q *Queries) ListMemoryNodesByBotProfile(ctx context.Context, arg ListMemoryNodesByBotProfileParams) ([]MemoryNode, error)
func (*Queries) ListMemoryProviders ¶
func (q *Queries) ListMemoryProviders(ctx context.Context) ([]MemoryProvider, error)
func (*Queries) ListMessageAssets ¶
func (*Queries) ListMessageAssetsBatch ¶
func (*Queries) ListMessageRefsByCompactID ¶
func (q *Queries) ListMessageRefsByCompactID(ctx context.Context, compactID pgtype.UUID) ([]ListMessageRefsByCompactIDRow, error)
Backfills coverage for summaries that predate persisted artifact coverage without pulling every compacted row's full content/usage.
func (*Queries) ListMessages ¶
func (*Queries) ListMessagesAfterBySession ¶
func (q *Queries) ListMessagesAfterBySession(ctx context.Context, arg ListMessagesAfterBySessionParams) ([]ListMessagesAfterBySessionRow, error)
func (*Queries) ListMessagesAfterCursorBySession ¶
func (q *Queries) ListMessagesAfterCursorBySession(ctx context.Context, arg ListMessagesAfterCursorBySessionParams) ([]ListMessagesAfterCursorBySessionRow, error)
func (*Queries) ListMessagesAfterMessageBySession ¶
func (q *Queries) ListMessagesAfterMessageBySession(ctx context.Context, arg ListMessagesAfterMessageBySessionParams) ([]ListMessagesAfterMessageBySessionRow, error)
func (*Queries) ListMessagesBefore ¶
func (q *Queries) ListMessagesBefore(ctx context.Context, arg ListMessagesBeforeParams) ([]ListMessagesBeforeRow, error)
func (*Queries) ListMessagesBeforeBySession ¶
func (q *Queries) ListMessagesBeforeBySession(ctx context.Context, arg ListMessagesBeforeBySessionParams) ([]ListMessagesBeforeBySessionRow, error)
func (*Queries) ListMessagesBeforeCursorBySession ¶
func (q *Queries) ListMessagesBeforeCursorBySession(ctx context.Context, arg ListMessagesBeforeCursorBySessionParams) ([]ListMessagesBeforeCursorBySessionRow, error)
func (*Queries) ListMessagesBeforeMessageBySession ¶
func (q *Queries) ListMessagesBeforeMessageBySession(ctx context.Context, arg ListMessagesBeforeMessageBySessionParams) ([]ListMessagesBeforeMessageBySessionRow, error)
func (*Queries) ListMessagesByCompactID ¶
func (*Queries) ListMessagesBySession ¶
func (*Queries) ListMessagesLatest ¶
func (q *Queries) ListMessagesLatest(ctx context.Context, arg ListMessagesLatestParams) ([]ListMessagesLatestRow, error)
func (*Queries) ListMessagesLatestBySession ¶
func (q *Queries) ListMessagesLatestBySession(ctx context.Context, arg ListMessagesLatestBySessionParams) ([]ListMessagesLatestBySessionRow, error)
func (*Queries) ListMessagesLatestUIBySession ¶
func (q *Queries) ListMessagesLatestUIBySession(ctx context.Context, arg ListMessagesLatestUIBySessionParams) ([]ListMessagesLatestUIBySessionRow, error)
func (*Queries) ListMessagesSince ¶
func (q *Queries) ListMessagesSince(ctx context.Context, arg ListMessagesSinceParams) ([]ListMessagesSinceRow, error)
func (*Queries) ListMessagesSinceBySession ¶
func (q *Queries) ListMessagesSinceBySession(ctx context.Context, arg ListMessagesSinceBySessionParams) ([]ListMessagesSinceBySessionRow, error)
func (*Queries) ListModelVariantsByModelUUID ¶
func (*Queries) ListModelsByModelID ¶
func (*Queries) ListModelsByProviderClientType ¶
func (*Queries) ListModelsByProviderID ¶
func (*Queries) ListModelsByProviderIDAndType ¶
func (*Queries) ListModelsByType ¶
func (*Queries) ListObservedConversationsByChannelIdentity ¶
func (q *Queries) ListObservedConversationsByChannelIdentity(ctx context.Context, arg ListObservedConversationsByChannelIdentityParams) ([]ListObservedConversationsByChannelIdentityRow, error)
func (*Queries) ListObservedConversationsByChannelType ¶
func (q *Queries) ListObservedConversationsByChannelType(ctx context.Context, arg ListObservedConversationsByChannelTypeParams) ([]ListObservedConversationsByChannelTypeRow, error)
Routes on this platform type where the bot has seen at least one message (any sender).
func (*Queries) ListOrphanedSessionRuns ¶
func (q *Queries) ListOrphanedSessionRuns(ctx context.Context, arg ListOrphanedSessionRunsParams) ([]SessionRun, error)
Admission committed but the process died before reserving the run in the live backend. No lease exists, so these never appear as expiry candidates and no generation change implicates them. A single leader reaper reads this, so no row locking is needed.
func (*Queries) ListPendingToolApprovalsByRun ¶ added in v0.20.0
func (*Queries) ListPendingToolApprovalsBySession ¶
func (q *Queries) ListPendingToolApprovalsBySession(ctx context.Context, arg ListPendingToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
func (*Queries) ListPendingUserInputsByRun ¶ added in v0.20.0
func (*Queries) ListPendingUserInputsBySession ¶
func (q *Queries) ListPendingUserInputsBySession(ctx context.Context, arg ListPendingUserInputsBySessionParams) ([]UserInputRequest, error)
func (*Queries) ListProviderTemplateModels ¶
func (*Queries) ListProviderTemplates ¶
func (*Queries) ListProviders ¶
func (*Queries) ListReadableBindingsByProvider ¶
func (*Queries) ListRecentAssistantMessagesBySession ¶
func (q *Queries) ListRecentAssistantMessagesBySession(ctx context.Context, arg ListRecentAssistantMessagesBySessionParams) ([]ListRecentAssistantMessagesBySessionRow, error)
func (*Queries) ListRecentContextLifecyclesBySession ¶
func (q *Queries) ListRecentContextLifecyclesBySession(ctx context.Context, arg ListRecentContextLifecyclesBySessionParams) ([]ListRecentContextLifecyclesBySessionRow, error)
func (*Queries) ListScheduleLogsByBot ¶
func (q *Queries) ListScheduleLogsByBot(ctx context.Context, arg ListScheduleLogsByBotParams) ([]ListScheduleLogsByBotRow, error)
func (*Queries) ListScheduleLogsBySchedule ¶
func (q *Queries) ListScheduleLogsBySchedule(ctx context.Context, arg ListScheduleLogsByScheduleParams) ([]ListScheduleLogsByScheduleRow, error)
func (*Queries) ListSchedulesByBot ¶
func (*Queries) ListSearchProviders ¶
func (q *Queries) ListSearchProviders(ctx context.Context) ([]SearchProvider, error)
func (*Queries) ListSearchProvidersByProvider ¶
func (*Queries) ListSessionDiscussCursorsByBot ¶
func (*Queries) ListSessionEventsByBot ¶
func (*Queries) ListSessionEventsBySession ¶
func (*Queries) ListSessionEventsBySessionAfter ¶
func (q *Queries) ListSessionEventsBySessionAfter(ctx context.Context, arg ListSessionEventsBySessionAfterParams) ([]BotSessionEvent, error)
func (*Queries) ListSessionEventsBySessionPageBeforeWithinBytes ¶ added in v0.20.0
func (q *Queries) ListSessionEventsBySessionPageBeforeWithinBytes(ctx context.Context, arg ListSessionEventsBySessionPageBeforeWithinBytesParams) ([]ListSessionEventsBySessionPageBeforeWithinBytesRow, error)
Replay reads newest-first with a stable keyset and a hard page-byte budget. Covered message/edit payloads are excluded in SQL before event_data reaches the process. If a covered message has a post-frontier mutation, its complete event chain remains eligible so edit projection still has its base node.
func (*Queries) ListSessionsByBot ¶
func (*Queries) ListSessionsByBotAndCreatedByUser ¶
func (q *Queries) ListSessionsByBotAndCreatedByUser(ctx context.Context, arg ListSessionsByBotAndCreatedByUserParams) ([]ListSessionsByBotAndCreatedByUserRow, error)
func (*Queries) ListSessionsByBotAndCreatedByUserPaged ¶
func (q *Queries) ListSessionsByBotAndCreatedByUserPaged(ctx context.Context, arg ListSessionsByBotAndCreatedByUserPagedParams) ([]ListSessionsByBotAndCreatedByUserPagedRow, error)
func (*Queries) ListSessionsByBotPaged ¶
func (q *Queries) ListSessionsByBotPaged(ctx context.Context, arg ListSessionsByBotPagedParams) ([]ListSessionsByBotPagedRow, error)
Cursor uses (updated_at, id) so pages stay stable when many rows share an updated_at. Callers always pass an explicit types filter; to opt out of filtering, pass every known type. The workdir filter is three-state: disabled, "sessions of this workdir", or "sessions with no workdir" (workdir_unassigned) for the sidebar's ungrouped bucket.
func (*Queries) ListSessionsByRoute ¶
func (*Queries) ListSnapshotsByContainerID ¶
func (*Queries) ListSnapshotsWithVersionByContainerID ¶
func (*Queries) ListSpeechModels ¶
func (q *Queries) ListSpeechModels(ctx context.Context) ([]ListSpeechModelsRow, error)
func (*Queries) ListSpeechModelsByProviderID ¶
func (*Queries) ListSpeechProviders ¶
func (*Queries) ListStaleBotDependencyOperations ¶ added in v0.20.0
func (*Queries) ListStaleGenerationSessionRuns ¶
func (q *Queries) ListStaleGenerationSessionRuns(ctx context.Context, arg ListStaleGenerationSessionRunsParams) ([]SessionRun, error)
Fail-closed recovery sweep. Matching on "not the current generation" rather than one specific old value means a backend lost twice in quick succession cannot strand rows from the older incarnation. Orphans are excluded by live_generation IS NOT NULL: they were never claimed.
A NULL cursor means "start from the beginning" and must be spelled out: the keyset comparison below is NULL for every row when the cursor is NULL, so without this branch the first batch of every sweep matches nothing, and a sweep that never returns a full batch never advances past it either.
func (*Queries) ListStorageProviders ¶
func (q *Queries) ListStorageProviders(ctx context.Context) ([]StorageProvider, error)
func (*Queries) ListSubagentForkContext ¶
func (*Queries) ListSubagentSessionsByParent ¶
func (*Queries) ListTerminalSessionRunsNeedingContextLifecycle ¶
func (*Queries) ListTokenUsageRecords ¶
func (q *Queries) ListTokenUsageRecords(ctx context.Context, arg ListTokenUsageRecordsParams) ([]ListTokenUsageRecordsRow, error)
func (*Queries) ListToolApprovalsByRun ¶ added in v0.20.0
func (q *Queries) ListToolApprovalsByRun(ctx context.Context, runID pgtype.UUID) ([]ToolApprovalRequest, error)
Finalization must also reconcile terminal decisions whose live event was lost.
func (*Queries) ListToolApprovalsBySession ¶
func (q *Queries) ListToolApprovalsBySession(ctx context.Context, arg ListToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
func (*Queries) ListToolApprovalsBySessionToolCalls ¶
func (q *Queries) ListToolApprovalsBySessionToolCalls(ctx context.Context, arg ListToolApprovalsBySessionToolCallsParams) ([]ToolApprovalRequest, error)
func (*Queries) ListTranscriptionModels ¶
func (q *Queries) ListTranscriptionModels(ctx context.Context) ([]ListTranscriptionModelsRow, error)
func (*Queries) ListTranscriptionModelsByProviderID ¶
func (*Queries) ListTranscriptionProviders ¶
func (*Queries) ListUncompactedMessagesBySession ¶
func (q *Queries) ListUncompactedMessagesBySession(ctx context.Context, sessionID pgtype.UUID) ([]ListUncompactedMessagesBySessionRow, error)
Compatibility query retained for diagnostics and integration tests. Runtime compaction must use ListUncompactedMessagesBySessionWithinBytes.
func (*Queries) ListUncompactedMessagesBySessionWithinBytes ¶ added in v0.20.0
func (q *Queries) ListUncompactedMessagesBySessionWithinBytes(ctx context.Context, arg ListUncompactedMessagesBySessionWithinBytesParams) ([]ListUncompactedMessagesBySessionWithinBytesRow, error)
Compaction candidates are admitted oldest-first within a hard serialized payload budget. The cumulative filter is evaluated before the payload join, so an oversized leading row returns no payload instead of crossing the process-memory boundary. CandidateCount reports whether the prefix was truncated and lets the service choose a progress-preserving selection.
func (*Queries) ListUserChannelBindingsByPlatform ¶
func (*Queries) ListUserIDsByChannelIdentity ¶
func (*Queries) ListUserInputsByRun ¶ added in v0.20.0
func (q *Queries) ListUserInputsByRun(ctx context.Context, runID pgtype.UUID) ([]UserInputRequest, error)
Include expired and terminal rows when reconciling a finished run's decisions.
func (*Queries) ListUserInputsBySession ¶
func (q *Queries) ListUserInputsBySession(ctx context.Context, arg ListUserInputsBySessionParams) ([]UserInputRequest, error)
func (*Queries) ListUserInputsBySessionToolCalls ¶
func (q *Queries) ListUserInputsBySessionToolCalls(ctx context.Context, arg ListUserInputsBySessionToolCallsParams) ([]UserInputRequest, error)
func (*Queries) ListUserRuntimes ¶
func (*Queries) ListVersionsByContainerID ¶
func (*Queries) ListVideoModels ¶
func (q *Queries) ListVideoModels(ctx context.Context) ([]ListVideoModelsRow, error)
func (*Queries) ListVideoModelsByProviderID ¶
func (*Queries) ListVideoProviders ¶
func (*Queries) ListVisibleMessagesFromBySession ¶
func (q *Queries) ListVisibleMessagesFromBySession(ctx context.Context, arg ListVisibleMessagesFromBySessionParams) ([]ListVisibleMessagesFromBySessionRow, error)
func (*Queries) LocateMessagesWindowByExternalIDBySession ¶
func (q *Queries) LocateMessagesWindowByExternalIDBySession(ctx context.Context, arg LocateMessagesWindowByExternalIDBySessionParams) ([]LocateMessagesWindowByExternalIDBySessionRow, error)
func (*Queries) LockActiveSessionRunForHistoryReset ¶
func (q *Queries) LockActiveSessionRunForHistoryReset(ctx context.Context, arg LockActiveSessionRunForHistoryResetParams) (SessionRun, error)
The reset finalizer already holds the bot parent lock. Locking the target run in a fresh statement makes the old fencing token/state an atomic predicate for advancing the session persistence fence and terminalizing it.
func (*Queries) LockAgentAuthorizationOwner ¶ added in v0.20.0
func (*Queries) LockBotForAgentMutation ¶
func (*Queries) LockBotForRuntimeReset ¶
func (q *Queries) LockBotForRuntimeReset(ctx context.Context, botID pgtype.UUID) (pgtype.UUID, error)
This is intentionally a separate statement from acquisition. Under READ COMMITTED, a contender that waited here gets a fresh statement snapshot for the child/gate check below after the parent owner commits.
func (*Queries) LockBotForSessionRunClaim ¶
func (q *Queries) LockBotForSessionRunClaim(ctx context.Context, botID pgtype.UUID) (pgtype.UUID, error)
Claim uses a real transaction and a fresh statement after this parent lock. Reset acquisition takes the same lock, so neither can cross the other's committed gate using a statement snapshot captured while waiting.
func (*Queries) LockBotForSessionWrite ¶
func (*Queries) LockHistoryTurnAppendByRequest ¶
func (q *Queries) LockHistoryTurnAppendByRequest(ctx context.Context, arg LockHistoryTurnAppendByRequestParams) error
func (*Queries) LockSessionDecisionSequence ¶
func (*Queries) LockSessionForCommitReconciliation ¶
func (q *Queries) LockSessionForCommitReconciliation(ctx context.Context, arg LockSessionForCommitReconciliationParams) (pgtype.UUID, error)
Commit-unknown reconciliation must wait for the original writer even when a concurrent reset has soft-deleted the session. A missing row after this lock attempt is terminal (the session was hard-deleted and its history cascaded), not a transient condition to retry forever.
func (*Queries) LockSessionRunForAgentStepCommit ¶
func (q *Queries) LockSessionRunForAgentStepCommit(ctx context.Context, arg LockSessionRunForAgentStepCommitParams) (pgtype.UUID, error)
Complete steps must precede abort intent; interrupted checkpoints only need the same active owner because some cancellation paths do not record intent.
func (*Queries) LockSessionRuntimeFence ¶
func (*Queries) LockSessionRuntimeFenceForActivation ¶
func (*Queries) MarkChannelLinkCodeConsumed ¶
func (q *Queries) MarkChannelLinkCodeConsumed(ctx context.Context, arg MarkChannelLinkCodeConsumedParams) (ChannelLinkCode, error)
func (*Queries) MarkMessagesCompacted ¶
func (*Queries) MeasureActiveMessagesBySession ¶
func (q *Queries) MeasureActiveMessagesBySession(ctx context.Context, arg MeasureActiveMessagesBySessionParams) (MeasureActiveMessagesBySessionRow, error)
Metadata-only context admission measure (CM-ADM-001): counts and content bytes aggregate on the database side, so admission can size a session's history without shipping any payload into the process.
func (*Queries) MeasureUncompactedMessagesBySession ¶ added in v0.20.0
func (q *Queries) MeasureUncompactedMessagesBySession(ctx context.Context, sessionID pgtype.UUID) (MeasureUncompactedMessagesBySessionRow, error)
Metadata-only companion for the bounded compaction read. It never returns message payloads and exposes the oversized-head degradation explicitly.
func (*Queries) NextSessionEventCursor ¶
func (*Queries) NextSessionRunFencingToken ¶
func (*Queries) NextSessionRuntimeFenceToken ¶
func (*Queries) NextVersion ¶
func (*Queries) PrepareSessionRunFinish ¶ added in v0.20.0
func (q *Queries) PrepareSessionRunFinish(ctx context.Context, arg PrepareSessionRunFinishParams) (SessionRun, error)
Persist the terminal proposal before the live projection enters finishing. Replays preserve the first proposal. A concurrent abort intent wins so an owner cannot complete a run after the user has durably requested its stop.
func (*Queries) PruneAgentAuthorizations ¶ added in v0.20.0
func (*Queries) PruneAgentSessionStateVersions ¶ added in v0.20.0
func (q *Queries) PruneAgentSessionStateVersions(ctx context.Context, arg PruneAgentSessionStateVersionsParams) (int64, error)
Bound normal storage to the incoming staged candidate plus the current canonical head. A failed candidate can survive only until the next stage; a crash before this statement rolls the entire replacement back.
func (*Queries) PruneWorkspaceDependencyDefinitions ¶ added in v0.20.0
func (q *Queries) PruneWorkspaceDependencyDefinitions(ctx context.Context, sourceUrl string) (int64, error)
Keep current/retired catalog publications and every revision of dependencies with installation intent: rollback state can refer to an earlier publication from another source after the operator switches registries. The grace period also protects previews and concurrently prepared operations.
func (*Queries) ReclaimWaitingDecisionSessionRun ¶
func (q *Queries) ReclaimWaitingDecisionSessionRun(ctx context.Context, arg ReclaimWaitingDecisionSessionRunParams) (SessionRun, error)
Recovery advances both durable ownership and the backend incarnation while preserving waiting_decision. The previous token is the CAS guard; the new token must be strictly newer so a stale reaper can never move ownership backwards.
func (*Queries) RedeemChannelLinkCode ¶
func (q *Queries) RedeemChannelLinkCode(ctx context.Context, arg RedeemChannelLinkCodeParams) (UserChannelIdentityBinding, error)
func (*Queries) RefreshLockedBotRuntimeReset ¶
func (q *Queries) RefreshLockedBotRuntimeReset(ctx context.Context, arg RefreshLockedBotRuntimeResetParams) (pgtype.Timestamptz, error)
The caller holds the bot parent lock and validated this token before a potentially long protected mutation. Token-only CAS may refresh an expiry that elapsed while that same transaction prevented every successor.
func (*Queries) RefreshLockedBotSessionRuntimeReset ¶
func (q *Queries) RefreshLockedBotSessionRuntimeReset(ctx context.Context, arg RefreshLockedBotSessionRuntimeResetParams) (pgtype.Timestamptz, error)
func (*Queries) RejectToolApprovalRequest ¶
func (q *Queries) RejectToolApprovalRequest(ctx context.Context, arg RejectToolApprovalRequestParams) (ToolApprovalRequest, error)
func (*Queries) ReleaseBotRuntimeReset ¶
func (*Queries) ReleaseBotSessionRuntimeReset ¶
func (*Queries) RemoveMember ¶
func (*Queries) RenameBotWorkdir ¶
func (q *Queries) RenameBotWorkdir(ctx context.Context, arg RenameBotWorkdirParams) (BotWorkdir, error)
func (*Queries) RenewBotRuntimeReset ¶
func (q *Queries) RenewBotRuntimeReset(ctx context.Context, arg RenewBotRuntimeResetParams) (pgtype.Timestamptz, error)
func (*Queries) RenewBotSessionRuntimeReset ¶
func (q *Queries) RenewBotSessionRuntimeReset(ctx context.Context, arg RenewBotSessionRuntimeResetParams) (pgtype.Timestamptz, error)
func (*Queries) ReplaceHistoryTurn ¶
func (q *Queries) ReplaceHistoryTurn(ctx context.Context, arg ReplaceHistoryTurnParams) (ReplaceHistoryTurnRow, error)
func (*Queries) RequestSessionRunAbort ¶
func (q *Queries) RequestSessionRunAbort(ctx context.Context, runID pgtype.UUID) (SessionRun, error)
Not fenced: abort is a user intent that may arrive at any instance, and the owner applies it. Repeating it keeps the first request time.
func (*Queries) ResumeSessionRun ¶
func (q *Queries) ResumeSessionRun(ctx context.Context, arg ResumeSessionRunParams) (SessionRun, error)
func (*Queries) RevokeAgentCredentialByID ¶ added in v0.20.0
func (*Queries) RevokeAgentCredentialsForBot ¶ added in v0.20.0
func (*Queries) RevokeUserRuntime ¶
func (q *Queries) RevokeUserRuntime(ctx context.Context, arg RevokeUserRuntimeParams) (UserRuntime, error)
func (*Queries) SaveMatrixSyncSinceToken ¶
func (*Queries) SearchAccounts ¶
func (q *Queries) SearchAccounts(ctx context.Context, arg SearchAccountsParams) ([]TeamAccount, error)
func (*Queries) SearchChannelIdentities ¶
func (q *Queries) SearchChannelIdentities(ctx context.Context, arg SearchChannelIdentitiesParams) ([]ChannelIdentity, error)
func (*Queries) SearchMessages ¶
func (q *Queries) SearchMessages(ctx context.Context, arg SearchMessagesParams) ([]SearchMessagesRow, error)
func (*Queries) SessionLiveForRuntimeReset ¶
func (q *Queries) SessionLiveForRuntimeReset(ctx context.Context, arg SessionLiveForRuntimeResetParams) (bool, error)
Distinguishes "session reset lease is blocked" from "session no longer exists": an acquire loop must retry the former and fail fast on the latter.
func (*Queries) SetAppConnectorRefConnection ¶ added in v0.20.0
func (q *Queries) SetAppConnectorRefConnection(ctx context.Context, arg SetAppConnectorRefConnectionParams) (BotAppConnectorRef, error)
func (*Queries) SetBotACLDefaultEffect ¶
func (q *Queries) SetBotACLDefaultEffect(ctx context.Context, arg SetBotACLDefaultEffectParams) error
func (*Queries) SetBotAgentCredential ¶ added in v0.20.0
func (*Queries) SetBotRemoteRuntimePrimary ¶
func (*Queries) SetProviderTemplateActive ¶
func (q *Queries) SetProviderTemplateActive(ctx context.Context, arg SetProviderTemplateActiveParams) error
func (*Queries) SetProviderTemplateModelActive ¶
func (q *Queries) SetProviderTemplateModelActive(ctx context.Context, arg SetProviderTemplateModelActiveParams) error
func (*Queries) SetRoundAgentTurnID ¶ added in v0.20.0
func (q *Queries) SetRoundAgentTurnID(ctx context.Context, arg SetRoundAgentTurnIDParams) (int64, error)
Record the runtime's own turn id on the round's assistant messages, written in the same transaction as the round so an anchor never outlives a round that failed to commit. Message metadata is the anchor's home because a fork copies messages (metadata included) — the anchor follows the turn into the fork with no extra bookkeeping.
func (*Queries) SetRouteActiveSession ¶
func (q *Queries) SetRouteActiveSession(ctx context.Context, arg SetRouteActiveSessionParams) error
func (*Queries) SetSessionNextTurnPosition ¶
func (q *Queries) SetSessionNextTurnPosition(ctx context.Context, arg SetSessionNextTurnPositionParams) error
func (*Queries) SetSessionRunWaitingDecision ¶
func (q *Queries) SetSessionRunWaitingDecision(ctx context.Context, arg SetSessionRunWaitingDecisionParams) (SessionRun, error)
func (*Queries) SoftDeleteBotAgent ¶
func (*Queries) SoftDeleteSession ¶
ACP state is removed in full: soft delete never fires the hard-delete FK cascades, so headers, the shared line set, and the publication head must all be dropped here or they orphan forever.
func (*Queries) SoftDeleteSessionsByBot ¶
func (*Queries) SubmitUserInputRequest ¶
func (q *Queries) SubmitUserInputRequest(ctx context.Context, arg SubmitUserInputRequestParams) (UserInputRequest, error)
func (*Queries) SupersedeHistoryTurn ¶
func (q *Queries) SupersedeHistoryTurn(ctx context.Context, arg SupersedeHistoryTurnParams) (SupersedeHistoryTurnRow, error)
func (*Queries) SupersedePendingToolApprovalsBySession ¶
func (q *Queries) SupersedePendingToolApprovalsBySession(ctx context.Context, arg SupersedePendingToolApprovalsBySessionParams) ([]ToolApprovalRequest, error)
func (*Queries) SupersedePendingUserInputsBySession ¶
func (q *Queries) SupersedePendingUserInputsBySession(ctx context.Context, arg SupersedePendingUserInputsBySessionParams) ([]UserInputRequest, error)
func (*Queries) TouchBotActivity ¶
func (*Queries) TouchSession ¶
func (*Queries) TrimAgentSessionStateLines ¶ added in v0.20.0
func (q *Queries) TrimAgentSessionStateLines(ctx context.Context, arg TrimAgentSessionStateLinesParams) (int64, error)
Delete one file's lines beyond keep_records. keep_records = 0 clears the file for a full rewrite; a positive value clears a crashed candidate's dangling tail before the next append.
func (*Queries) UpdateAbortedContextLifecycleSnapshot ¶
func (q *Queries) UpdateAbortedContextLifecycleSnapshot(ctx context.Context, arg UpdateAbortedContextLifecycleSnapshotParams) (UpdateAbortedContextLifecycleSnapshotRow, error)
func (*Queries) UpdateAccountAdmin ¶
func (q *Queries) UpdateAccountAdmin(ctx context.Context, arg UpdateAccountAdminParams) (UpdateAccountAdminRow, error)
func (*Queries) UpdateAccountLastLogin ¶
func (*Queries) UpdateAccountPassword ¶
func (*Queries) UpdateAccountProfile ¶
func (q *Queries) UpdateAccountProfile(ctx context.Context, arg UpdateAccountProfileParams) (UpdateAccountProfileRow, error)
func (*Queries) UpdateAgentAuthorization ¶ added in v0.20.0
func (q *Queries) UpdateAgentAuthorization(ctx context.Context, arg UpdateAgentAuthorizationParams) (AgentAuthorization, error)
func (*Queries) UpdateAgentCredentialPayloadCAS ¶ added in v0.20.0
func (q *Queries) UpdateAgentCredentialPayloadCAS(ctx context.Context, arg UpdateAgentCredentialPayloadCASParams) (AgentCredential, error)
func (*Queries) UpdateBotACLRule ¶
func (q *Queries) UpdateBotACLRule(ctx context.Context, arg UpdateBotACLRuleParams) (BotAclRule, error)
func (*Queries) UpdateBotAgent ¶
func (*Queries) UpdateBotAppInstallationCheck ¶ added in v0.20.0
func (q *Queries) UpdateBotAppInstallationCheck(ctx context.Context, arg UpdateBotAppInstallationCheckParams) (BotAppInstallation, error)
func (*Queries) UpdateBotAppInstallationRelease ¶ added in v0.20.0
func (q *Queries) UpdateBotAppInstallationRelease(ctx context.Context, arg UpdateBotAppInstallationReleaseParams) (BotAppInstallation, error)
func (*Queries) UpdateBotAppInstallationStatus ¶ added in v0.20.0
func (q *Queries) UpdateBotAppInstallationStatus(ctx context.Context, arg UpdateBotAppInstallationStatusParams) (BotAppInstallation, error)
func (*Queries) UpdateBotChannelConfigDisabled ¶
func (q *Queries) UpdateBotChannelConfigDisabled(ctx context.Context, arg UpdateBotChannelConfigDisabledParams) (BotChannelConfig, error)
func (*Queries) UpdateBotDependencyInstallationObserved ¶ added in v0.20.0
func (q *Queries) UpdateBotDependencyInstallationObserved(ctx context.Context, arg UpdateBotDependencyInstallationObservedParams) (BotDependencyInstallation, error)
func (*Queries) UpdateBotDependencyInstallationStatus ¶ added in v0.20.0
func (q *Queries) UpdateBotDependencyInstallationStatus(ctx context.Context, arg UpdateBotDependencyInstallationStatusParams) (BotDependencyInstallation, error)
func (*Queries) UpdateBotEmailBinding ¶
func (q *Queries) UpdateBotEmailBinding(ctx context.Context, arg UpdateBotEmailBindingParams) (BotEmailBinding, error)
func (*Queries) UpdateBotOwner ¶
func (q *Queries) UpdateBotOwner(ctx context.Context, arg UpdateBotOwnerParams) (UpdateBotOwnerRow, error)
func (*Queries) UpdateBotProfile ¶
func (q *Queries) UpdateBotProfile(ctx context.Context, arg UpdateBotProfileParams) (UpdateBotProfileRow, error)
The runtime config epoch invalidates warm ACP processes, so it must move only when the ACP launch configuration (the metadata 'acp' subtree) actually changes. A rename, avatar, timezone, or activation toggle must not tear down a mid-conversation runtime.
func (*Queries) UpdateBotRemoteRuntimeMountToolApproval ¶
func (*Queries) UpdateBotStatus ¶
func (q *Queries) UpdateBotStatus(ctx context.Context, arg UpdateBotStatusParams) error
func (*Queries) UpdateBotUserGrantPermissions ¶
func (q *Queries) UpdateBotUserGrantPermissions(ctx context.Context, arg UpdateBotUserGrantPermissionsParams) (BotUserGrant, error)
func (*Queries) UpdateChatRouteMetadata ¶
func (q *Queries) UpdateChatRouteMetadata(ctx context.Context, arg UpdateChatRouteMetadataParams) error
func (*Queries) UpdateChatRouteReplyTarget ¶
func (q *Queries) UpdateChatRouteReplyTarget(ctx context.Context, arg UpdateChatRouteReplyTargetParams) error
func (*Queries) UpdateConnectorEnabled ¶
func (*Queries) UpdateContainerStarted ¶
func (*Queries) UpdateContainerStatus ¶
func (q *Queries) UpdateContainerStatus(ctx context.Context, arg UpdateContainerStatusParams) error
func (*Queries) UpdateContainerStopped ¶
func (*Queries) UpdateEmailOAuthState ¶
func (q *Queries) UpdateEmailOAuthState(ctx context.Context, arg UpdateEmailOAuthStateParams) error
func (*Queries) UpdateEmailOutboxFailed ¶
func (q *Queries) UpdateEmailOutboxFailed(ctx context.Context, arg UpdateEmailOutboxFailedParams) error
func (*Queries) UpdateEmailOutboxSent ¶
func (q *Queries) UpdateEmailOutboxSent(ctx context.Context, arg UpdateEmailOutboxSentParams) error
func (*Queries) UpdateEmailProvider ¶
func (q *Queries) UpdateEmailProvider(ctx context.Context, arg UpdateEmailProviderParams) (EmailProvider, error)
func (*Queries) UpdateEmailProviderByIDAndUser ¶
func (q *Queries) UpdateEmailProviderByIDAndUser(ctx context.Context, arg UpdateEmailProviderByIDAndUserParams) (EmailProvider, error)
func (*Queries) UpdateFetchProvider ¶
func (q *Queries) UpdateFetchProvider(ctx context.Context, arg UpdateFetchProviderParams) (FetchProvider, error)
func (*Queries) UpdateMCPConnection ¶
func (q *Queries) UpdateMCPConnection(ctx context.Context, arg UpdateMCPConnectionParams) (McpConnection, error)
func (*Queries) UpdateMCPConnectionActive ¶
func (q *Queries) UpdateMCPConnectionActive(ctx context.Context, arg UpdateMCPConnectionActiveParams) error
func (*Queries) UpdateMCPConnectionAuthType ¶
func (q *Queries) UpdateMCPConnectionAuthType(ctx context.Context, arg UpdateMCPConnectionAuthTypeParams) error
func (*Queries) UpdateMCPConnectionProbeResult ¶
func (q *Queries) UpdateMCPConnectionProbeResult(ctx context.Context, arg UpdateMCPConnectionProbeResultParams) error
func (*Queries) UpdateMCPOAuthClientSecret ¶
func (q *Queries) UpdateMCPOAuthClientSecret(ctx context.Context, arg UpdateMCPOAuthClientSecretParams) error
func (*Queries) UpdateMCPOAuthPKCEState ¶
func (q *Queries) UpdateMCPOAuthPKCEState(ctx context.Context, arg UpdateMCPOAuthPKCEStateParams) error
func (*Queries) UpdateMCPOAuthTokens ¶
func (q *Queries) UpdateMCPOAuthTokens(ctx context.Context, arg UpdateMCPOAuthTokensParams) error
func (*Queries) UpdateMemoryProvider ¶
func (q *Queries) UpdateMemoryProvider(ctx context.Context, arg UpdateMemoryProviderParams) (MemoryProvider, error)
func (*Queries) UpdateModel ¶
func (*Queries) UpdateProvider ¶
func (*Queries) UpdateProviderOAuthState ¶
func (q *Queries) UpdateProviderOAuthState(ctx context.Context, arg UpdateProviderOAuthStateParams) error
func (*Queries) UpdateSchedule ¶
func (*Queries) UpdateSearchProvider ¶
func (q *Queries) UpdateSearchProvider(ctx context.Context, arg UpdateSearchProviderParams) (SearchProvider, error)
func (*Queries) UpdateSessionMetadata ¶
func (q *Queries) UpdateSessionMetadata(ctx context.Context, arg UpdateSessionMetadataParams) (BotSession, error)
func (*Queries) UpdateSessionMetadataWithRuntimeFence ¶
func (q *Queries) UpdateSessionMetadataWithRuntimeFence(ctx context.Context, arg UpdateSessionMetadataWithRuntimeFenceParams) (BotSession, error)
func (*Queries) UpdateSessionModelPreference ¶ added in v0.20.0
func (q *Queries) UpdateSessionModelPreference(ctx context.Context, arg UpdateSessionModelPreferenceParams) error
Preference write-back (issue #879). Deliberately does NOT touch updated_at: sidebar recency must not move on picker changes or per-turn write-backs. The explicit team predicate matches every other query in this file (defense-in-depth under FORCE RLS), and the deleted_at guard keeps late writes out of soft-deleted sessions.
func (*Queries) UpdateSessionRuntimeMetadata ¶ added in v0.20.0
func (q *Queries) UpdateSessionRuntimeMetadata(ctx context.Context, arg UpdateSessionRuntimeMetadataParams) (BotSession, error)
The runtime_type guard makes the merge a no-op when the session was concurrently switched to another runtime: driver-owned keys must never be written into a session that no longer belongs to that driver. The fencing guard rejects a superseded owner's late write: after a cluster ownership handoff the old owner's turn still finishes and reports its runtime metadata, and letting it land would point the session at a stale runtime thread. A NULL token skips the guard for callers outside any run.
func (*Queries) UpdateSessionTitle ¶
func (q *Queries) UpdateSessionTitle(ctx context.Context, arg UpdateSessionTitleParams) (BotSession, error)
func (*Queries) UpdateSessionTitleWithRuntimeFence ¶
func (q *Queries) UpdateSessionTitleWithRuntimeFence(ctx context.Context, arg UpdateSessionTitleWithRuntimeFenceParams) (BotSession, error)
func (*Queries) UpdateSessionTypeAndMetadata ¶
func (q *Queries) UpdateSessionTypeAndMetadata(ctx context.Context, arg UpdateSessionTypeAndMetadataParams) (BotSession, error)
A different runtime or Agent owns a different model namespace. Clear the old preference and invalidate pending picker writes when changing it.
func (*Queries) UpdateToolApprovalPromptMessage ¶
func (q *Queries) UpdateToolApprovalPromptMessage(ctx context.Context, arg UpdateToolApprovalPromptMessageParams) (ToolApprovalRequest, error)
func (*Queries) UpdateUserInputAssistantMessage ¶
func (q *Queries) UpdateUserInputAssistantMessage(ctx context.Context, arg UpdateUserInputAssistantMessageParams) (UserInputRequest, error)
func (*Queries) UpdateUserInputInteraction ¶
func (q *Queries) UpdateUserInputInteraction(ctx context.Context, arg UpdateUserInputInteractionParams) (UserInputRequest, error)
func (*Queries) UpdateUserInputPromptMessage ¶
func (q *Queries) UpdateUserInputPromptMessage(ctx context.Context, arg UpdateUserInputPromptMessageParams) (UserInputRequest, error)
func (*Queries) UpdateUserInputToolResultMessage ¶
func (q *Queries) UpdateUserInputToolResultMessage(ctx context.Context, arg UpdateUserInputToolResultMessageParams) (UserInputRequest, error)
func (*Queries) UpdateUserProviderOAuthState ¶
func (q *Queries) UpdateUserProviderOAuthState(ctx context.Context, arg UpdateUserProviderOAuthStateParams) error
func (*Queries) UpsertAbortedContextLifecycle ¶
func (q *Queries) UpsertAbortedContextLifecycle(ctx context.Context, arg UpsertAbortedContextLifecycleParams) (UpsertAbortedContextLifecycleRow, error)
func (*Queries) UpsertAccountByUsername ¶
func (q *Queries) UpsertAccountByUsername(ctx context.Context, arg UpsertAccountByUsernameParams) (UpsertAccountByUsernameRow, error)
func (*Queries) UpsertAgentSessionPublication ¶ added in v0.20.0
func (q *Queries) UpsertAgentSessionPublication(ctx context.Context, arg UpsertAgentSessionPublicationParams) (int64, error)
Written in the same transaction as the round's canonical messages. The run join proves the run belongs to this tenant+session and still owns the session's current fencing generation, so a stale runtime cannot move the head.
func (*Queries) UpsertAgentSessionState ¶ added in v0.20.0
func (q *Queries) UpsertAgentSessionState(ctx context.Context, arg UpsertAgentSessionStateParams) (AgentSessionState, error)
This is deliberately a staging write. Canonical history is committed later by the application; GetAgentSessionState is the promotion gate. The run join proves that an arbitrary run id cannot be attached to another session and that this process still owns the run's current fencing generation.
func (*Queries) UpsertAppConnectorRef ¶ added in v0.20.0
func (q *Queries) UpsertAppConnectorRef(ctx context.Context, arg UpsertAppConnectorRefParams) (BotAppConnectorRef, error)
func (*Queries) UpsertAppDependencyRef ¶ added in v0.20.0
func (q *Queries) UpsertAppDependencyRef(ctx context.Context, arg UpsertAppDependencyRefParams) (BotAppDependencyRef, error)
func (*Queries) UpsertBotAppInstallation ¶ added in v0.20.0
func (q *Queries) UpsertBotAppInstallation(ctx context.Context, arg UpsertBotAppInstallationParams) (BotAppInstallation, error)
func (*Queries) UpsertBotChannelAdmin ¶
func (q *Queries) UpsertBotChannelAdmin(ctx context.Context, arg UpsertBotChannelAdminParams) (BotChannelAdmin, error)
func (*Queries) UpsertBotChannelConfig ¶
func (q *Queries) UpsertBotChannelConfig(ctx context.Context, arg UpsertBotChannelConfigParams) (BotChannelConfig, error)
func (*Queries) UpsertBotDependencyInstallationIntent ¶ added in v0.20.0
func (q *Queries) UpsertBotDependencyInstallationIntent(ctx context.Context, arg UpsertBotDependencyInstallationIntentParams) (BotDependencyInstallation, error)
func (*Queries) UpsertBotSettings ¶
func (q *Queries) UpsertBotSettings(ctx context.Context, arg UpsertBotSettingsParams) (UpsertBotSettingsRow, error)
func (*Queries) UpsertBotStorageBinding ¶
func (q *Queries) UpsertBotStorageBinding(ctx context.Context, arg UpsertBotStorageBindingParams) (BotStorageBinding, error)
func (*Queries) UpsertBotWorkspaceResourceLimits ¶
func (q *Queries) UpsertBotWorkspaceResourceLimits(ctx context.Context, arg UpsertBotWorkspaceResourceLimitsParams) (BotWorkspaceResourceLimit, error)
func (*Queries) UpsertChannelIdentityByChannelSubject ¶
func (q *Queries) UpsertChannelIdentityByChannelSubject(ctx context.Context, arg UpsertChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
func (*Queries) UpsertContainer ¶
func (q *Queries) UpsertContainer(ctx context.Context, arg UpsertContainerParams) error
func (*Queries) UpsertEmailOAuthToken ¶
func (q *Queries) UpsertEmailOAuthToken(ctx context.Context, arg UpsertEmailOAuthTokenParams) (EmailOauthToken, error)
func (*Queries) UpsertMCPConnectionByName ¶
func (q *Queries) UpsertMCPConnectionByName(ctx context.Context, arg UpsertMCPConnectionByNameParams) (McpConnection, error)
func (*Queries) UpsertMCPOAuthDiscovery ¶
func (q *Queries) UpsertMCPOAuthDiscovery(ctx context.Context, arg UpsertMCPOAuthDiscoveryParams) (McpOauthToken, error)
func (*Queries) UpsertMemoryNode ¶
func (q *Queries) UpsertMemoryNode(ctx context.Context, arg UpsertMemoryNodeParams) (MemoryNode, error)
func (*Queries) UpsertProviderOAuthToken ¶
func (q *Queries) UpsertProviderOAuthToken(ctx context.Context, arg UpsertProviderOAuthTokenParams) (ProviderOauthToken, error)
func (*Queries) UpsertProviderTemplate ¶
func (q *Queries) UpsertProviderTemplate(ctx context.Context, arg UpsertProviderTemplateParams) (TemplateProviderTemplate, error)
func (*Queries) UpsertProviderTemplateModel ¶
func (q *Queries) UpsertProviderTemplateModel(ctx context.Context, arg UpsertProviderTemplateModelParams) (TemplateProviderTemplateModel, error)
func (*Queries) UpsertRegistryModel ¶
func (*Queries) UpsertRegistryProvider ¶
func (*Queries) UpsertSessionDiscussCursor ¶
func (q *Queries) UpsertSessionDiscussCursor(ctx context.Context, arg UpsertSessionDiscussCursorParams) (BotSessionDiscussCursor, error)
func (*Queries) UpsertSnapshot ¶
func (*Queries) UpsertTerminalContextLifecycle ¶
func (q *Queries) UpsertTerminalContextLifecycle(ctx context.Context, arg UpsertTerminalContextLifecycleParams) (UpsertTerminalContextLifecycleRow, error)
func (*Queries) UpsertUserChannelBinding ¶
func (q *Queries) UpsertUserChannelBinding(ctx context.Context, arg UpsertUserChannelBindingParams) (UserChannelBinding, error)
func (*Queries) UpsertUserChannelIdentityBinding ¶
func (q *Queries) UpsertUserChannelIdentityBinding(ctx context.Context, arg UpsertUserChannelIdentityBindingParams) (UserChannelIdentityBinding, error)
func (*Queries) UpsertUserProviderOAuthToken ¶
func (q *Queries) UpsertUserProviderOAuthToken(ctx context.Context, arg UpsertUserProviderOAuthTokenParams) (UserProviderOauthToken, error)
Legacy per-user OAuth storage retained for rollback compatibility. Active provider OAuth flows do not read or write these rows.
func (*Queries) ValidateLockedBotRuntimeReset ¶
func (*Queries) ValidateLockedBotSessionRuntimeReset ¶
type RejectToolApprovalRequestParams ¶
type RejectToolApprovalRequestParams struct {
Reason string `json:"reason"`
SelectedOptionID string `json:"selected_option_id"`
DecidedByChannelIdentityID pgtype.UUID `json:"decided_by_channel_identity_id"`
ResponseControlID pgtype.Text `json:"response_control_id"`
ResponsePayloadHash pgtype.Text `json:"response_payload_hash"`
ID pgtype.UUID `json:"id"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
}
type RenameBotWorkdirParams ¶
type ReplaceHistoryTurnParams ¶
type ReplaceHistoryTurnParams struct {
SessionID pgtype.UUID `json:"session_id"`
OldTurnID pgtype.UUID `json:"old_turn_id"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
ReplacementTurnID pgtype.UUID `json:"replacement_turn_id"`
ReplacementPosition int64 `json:"replacement_position"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
}
type ReplaceHistoryTurnRow ¶
type ReplaceHistoryTurnRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ResumeSessionRunParams ¶
type RevokeUserRuntimeParams ¶
type Schedule ¶
type Schedule struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Pattern string `json:"pattern"`
MaxCalls pgtype.Int4 `json:"max_calls"`
CurrentCalls int32 `json:"current_calls"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Enabled bool `json:"enabled"`
Command string `json:"command"`
BotID pgtype.UUID `json:"bot_id"`
RunTarget string `json:"run_target"`
TargetSessionID pgtype.UUID `json:"target_session_id"`
RuntimeType pgtype.Text `json:"runtime_type"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
AcpAgentID pgtype.Text `json:"acp_agent_id"`
ModelID pgtype.UUID `json:"model_id"`
AcpModelID pgtype.Text `json:"acp_model_id"`
ReasoningEffort pgtype.Text `json:"reasoning_effort"`
WorkdirID pgtype.UUID `json:"workdir_id"`
TeamID pgtype.UUID `json:"team_id"`
}
type ScheduleLog ¶
type ScheduleLog struct {
ID pgtype.UUID `json:"id"`
ScheduleID pgtype.UUID `json:"schedule_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ResultText string `json:"result_text"`
ErrorMessage string `json:"error_message"`
Usage []byte `json:"usage"`
ModelID pgtype.UUID `json:"model_id"`
StartedAt pgtype.Timestamptz `json:"started_at"`
CompletedAt pgtype.Timestamptz `json:"completed_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type SearchAccountsParams ¶
type SearchMessagesParams ¶
type SearchMessagesParams struct {
BotID pgtype.UUID `json:"bot_id"`
SessionIds []pgtype.UUID `json:"session_ids"`
SessionID pgtype.UUID `json:"session_id"`
ContactID pgtype.UUID `json:"contact_id"`
StartTime pgtype.Timestamptz `json:"start_time"`
EndTime pgtype.Timestamptz `json:"end_time"`
Role pgtype.Text `json:"role"`
Keyword pgtype.Text `json:"keyword"`
MaxCount int32 `json:"max_count"`
}
type SearchMessagesRow ¶
type SearchMessagesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
Role string `json:"role"`
Content []byte `json:"content"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
Platform pgtype.Text `json:"platform"`
}
type SearchProvider ¶
type SearchProvider struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Provider string `json:"provider"`
Config []byte `json:"config"`
Enable bool `json:"enable"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type SessionRun ¶
type SessionRun struct {
RunID pgtype.UUID `json:"run_id"`
TeamID pgtype.UUID `json:"team_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
InvocationID string `json:"invocation_id"`
TurnID pgtype.UUID `json:"turn_id"`
TurnPosition int64 `json:"turn_position"`
State string `json:"state"`
InputJson []byte `json:"input_json"`
InputFingerprint string `json:"input_fingerprint"`
OwnerID pgtype.Text `json:"owner_id"`
FencingToken int64 `json:"fencing_token"`
OwnerSince pgtype.Timestamptz `json:"owner_since"`
LiveGeneration pgtype.Text `json:"live_generation"`
AbortRequestedAt pgtype.Timestamptz `json:"abort_requested_at"`
ProposedTerminalState pgtype.Text `json:"proposed_terminal_state"`
ProposedErrorCode pgtype.Text `json:"proposed_error_code"`
ProposedErrorMessage pgtype.Text `json:"proposed_error_message"`
FinishProposedAt pgtype.Timestamptz `json:"finish_proposed_at"`
ErrorCode pgtype.Text `json:"error_code"`
ErrorMessage pgtype.Text `json:"error_message"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type SetAppConnectorRefConnectionParams ¶ added in v0.20.0
type SetBotAgentCredentialParams ¶ added in v0.20.0
type SetRoundAgentTurnIDParams ¶ added in v0.20.0
type Snapshot ¶
type Snapshot struct {
ID pgtype.UUID `json:"id"`
ContainerID string `json:"container_id"`
RuntimeSnapshotName string `json:"runtime_snapshot_name"`
DisplayName pgtype.Text `json:"display_name"`
ParentRuntimeSnapshotName pgtype.Text `json:"parent_runtime_snapshot_name"`
Snapshotter string `json:"snapshotter"`
Source string `json:"source"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type StorageProvider ¶
type SubagentConfig ¶
type SubagentConfig struct {
TeamID pgtype.UUID `json:"team_id"`
SessionID pgtype.UUID `json:"session_id"`
ModelUuid pgtype.UUID `json:"model_uuid"`
ModelID string `json:"model_id"`
ProviderName string `json:"provider_name"`
Forked bool `json:"forked"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type SubmitUserInputRequestParams ¶
type SubmitUserInputRequestParams struct {
ResultJson []byte `json:"result_json"`
RespondedByChannelIdentityID pgtype.UUID `json:"responded_by_channel_identity_id"`
ResponseControlID pgtype.Text `json:"response_control_id"`
ResponsePayloadHash pgtype.Text `json:"response_payload_hash"`
ID pgtype.UUID `json:"id"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
}
type SupersedeHistoryTurnParams ¶
type SupersedeHistoryTurnParams struct {
SessionID pgtype.UUID `json:"session_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason pgtype.Text `json:"superseded_reason"`
OldTurnID pgtype.UUID `json:"old_turn_id"`
}
type SupersedeHistoryTurnRow ¶
type SupersedeHistoryTurnRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Position int64 `json:"position"`
RequestMessageID pgtype.UUID `json:"request_message_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
SupersededByTurnID pgtype.UUID `json:"superseded_by_turn_id"`
SupersededAt pgtype.Timestamptz `json:"superseded_at"`
SupersededReason string `json:"superseded_reason"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Task ¶
type Task struct {
ID string `json:"id"`
BotID string `json:"bot_id"`
Name string `json:"name"`
Command string `json:"command"`
Status string `json:"status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
ExecID pgtype.Text `json:"exec_id"`
Pid pgtype.Int4 `json:"pid"`
TeamID pgtype.UUID `json:"team_id"`
}
type Team ¶
type Team struct {
ID pgtype.UUID `json:"id"`
Slug pgtype.Text `json:"slug"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Metadata []byte `json:"metadata"`
}
type TeamAccount ¶
type TeamAccount struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
DataRoot pgtype.Text `json:"data_root"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive pgtype.Bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
PrincipalIsActive bool `json:"principal_is_active"`
MembershipIsActive bool `json:"membership_is_active"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
MembershipUpdatedAt pgtype.Timestamptz `json:"membership_updated_at"`
TitleModelID pgtype.UUID `json:"title_model_id"`
}
type TeamMember ¶
type TeamMember struct {
TeamID pgtype.UUID `json:"team_id"`
UserID pgtype.UUID `json:"user_id"`
Role string `json:"role"`
IsActive bool `json:"is_active"`
DataRoot pgtype.Text `json:"data_root"`
TitleModelID pgtype.UUID `json:"title_model_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type TemplateProviderTemplate ¶
type TemplateProviderTemplate struct {
ID pgtype.UUID `json:"id"`
Key string `json:"key"`
Domain string `json:"domain"`
Name string `json:"name"`
Description string `json:"description"`
Icon pgtype.Text `json:"icon"`
Driver string `json:"driver"`
ConfigSchema []byte `json:"config_schema"`
DefaultConfig []byte `json:"default_config"`
Metadata []byte `json:"metadata"`
Source string `json:"source"`
ContentHash string `json:"content_hash"`
SortOrder int32 `json:"sort_order"`
Active bool `json:"active"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type TemplateProviderTemplateModel ¶
type TemplateProviderTemplateModel struct {
ID pgtype.UUID `json:"id"`
ProviderTemplateID pgtype.UUID `json:"provider_template_id"`
ModelID string `json:"model_id"`
Name string `json:"name"`
Type string `json:"type"`
Config []byte `json:"config"`
Metadata []byte `json:"metadata"`
SortOrder int32 `json:"sort_order"`
Active bool `json:"active"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ToolApprovalRequest ¶
type ToolApprovalRequest struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
WorkspaceTargetID string `json:"workspace_target_id"`
ToolCallID string `json:"tool_call_id"`
ToolName string `json:"tool_name"`
Operation string `json:"operation"`
ToolInput []byte `json:"tool_input"`
Options []byte `json:"options"`
SelectedOptionID string `json:"selected_option_id"`
ShortID int32 `json:"short_id"`
Status string `json:"status"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
ResponseControlID pgtype.Text `json:"response_control_id"`
ResponsePayloadHash pgtype.Text `json:"response_payload_hash"`
DecisionReason string `json:"decision_reason"`
RequestedByChannelIdentityID pgtype.UUID `json:"requested_by_channel_identity_id"`
DecidedByChannelIdentityID pgtype.UUID `json:"decided_by_channel_identity_id"`
RequestedMessageID pgtype.UUID `json:"requested_message_id"`
PromptMessageID pgtype.UUID `json:"prompt_message_id"`
PromptExternalMessageID string `json:"prompt_external_message_id"`
SourcePlatform string `json:"source_platform"`
ReplyTarget string `json:"reply_target"`
ConversationType string `json:"conversation_type"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
DecidedAt pgtype.Timestamptz `json:"decided_at"`
TeamID pgtype.UUID `json:"team_id"`
RunID pgtype.UUID `json:"run_id"`
TurnID pgtype.UUID `json:"turn_id"`
}
type TrimAgentSessionStateLinesParams ¶ added in v0.20.0
type TtsModel ¶
type TtsModel struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
TtsProviderID pgtype.UUID `json:"tts_provider_id"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type TtsProvider ¶
type TtsProvider struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Provider string `json:"provider"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Enable bool `json:"enable"`
TeamID pgtype.UUID `json:"team_id"`
}
type UpdateAbortedContextLifecycleSnapshotRow ¶ added in v0.20.0
type UpdateAccountAdminRow ¶
type UpdateAccountAdminRow struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
DataRoot pgtype.Text `json:"data_root"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive pgtype.Bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
PrincipalIsActive bool `json:"principal_is_active"`
MembershipIsActive bool `json:"membership_is_active"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
MembershipUpdatedAt pgtype.Timestamptz `json:"membership_updated_at"`
TitleModelID pgtype.UUID `json:"title_model_id"`
}
type UpdateAccountProfileRow ¶
type UpdateAccountProfileRow struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
DataRoot pgtype.Text `json:"data_root"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive pgtype.Bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
PrincipalIsActive bool `json:"principal_is_active"`
MembershipIsActive bool `json:"membership_is_active"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
MembershipUpdatedAt pgtype.Timestamptz `json:"membership_updated_at"`
TitleModelID pgtype.UUID `json:"title_model_id"`
}
type UpdateAgentAuthorizationParams ¶ added in v0.20.0
type UpdateAgentAuthorizationParams struct {
ID pgtype.UUID `json:"id"`
Status string `json:"status"`
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
PollAfter pgtype.Timestamptz `json:"poll_after"`
ClaimedAgentID pgtype.UUID `json:"claimed_agent_id"`
}
type UpdateAgentCredentialPayloadCASParams ¶ added in v0.20.0
type UpdateAgentCredentialPayloadCASParams struct {
EncryptedPayload []byte `json:"encrypted_payload"`
EncryptionNonce []byte `json:"encryption_nonce"`
KeyVersion int32 `json:"key_version"`
AccountMetadata []byte `json:"account_metadata"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
ID pgtype.UUID `json:"id"`
ExpectedVersion int64 `json:"expected_version"`
}
type UpdateBotACLRuleParams ¶
type UpdateBotACLRuleParams struct {
ID pgtype.UUID `json:"id"`
Enabled bool `json:"enabled"`
Effect string `json:"effect"`
Description pgtype.Text `json:"description"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
SubjectChannelType pgtype.Text `json:"subject_channel_type"`
SourceChannel pgtype.Text `json:"source_channel"`
SourceConversationType pgtype.Text `json:"source_conversation_type"`
SourceConversationID pgtype.Text `json:"source_conversation_id"`
SourceThreadID pgtype.Text `json:"source_thread_id"`
}
type UpdateBotAgentParams ¶
type UpdateBotAppInstallationCheckParams ¶ added in v0.20.0
type UpdateBotAppInstallationReleaseParams ¶ added in v0.20.0
type UpdateBotAppInstallationStatusParams ¶ added in v0.20.0
type UpdateBotDependencyInstallationObservedParams ¶ added in v0.20.0
type UpdateBotDependencyInstallationObservedParams struct {
Source pgtype.Text `json:"source"`
InstalledVersion pgtype.Text `json:"installed_version"`
LatestVersion pgtype.Text `json:"latest_version"`
LastCheckedAt pgtype.Timestamptz `json:"last_checked_at"`
LastError pgtype.Text `json:"last_error"`
ManifestDigest pgtype.Text `json:"manifest_digest"`
SourceUrl pgtype.Text `json:"source_url"`
RegistryID pgtype.Text `json:"registry_id"`
DefinitionRevision pgtype.Text `json:"definition_revision"`
BotID pgtype.UUID `json:"bot_id"`
DependencyID string `json:"dependency_id"`
}
type UpdateBotDependencyInstallationStatusParams ¶ added in v0.20.0
type UpdateBotOwnerParams ¶
type UpdateBotOwnerRow ¶
type UpdateBotOwnerRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type UpdateBotProfileParams ¶
type UpdateBotProfileRow ¶
type UpdateBotProfileRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Name string `json:"name"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone pgtype.Text `json:"timezone"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type UpdateBotStatusParams ¶
type UpdateModelParams ¶
type UpdateProviderParams ¶
type UpdateScheduleParams ¶
type UpdateScheduleParams struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Pattern string `json:"pattern"`
MaxCalls pgtype.Int4 `json:"max_calls"`
Enabled bool `json:"enabled"`
Command string `json:"command"`
RunTarget string `json:"run_target"`
TargetSessionID pgtype.UUID `json:"target_session_id"`
RuntimeType pgtype.Text `json:"runtime_type"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
AcpAgentID pgtype.Text `json:"acp_agent_id"`
ModelID pgtype.UUID `json:"model_id"`
AcpModelID pgtype.Text `json:"acp_model_id"`
ReasoningEffort pgtype.Text `json:"reasoning_effort"`
WorkdirID pgtype.UUID `json:"workdir_id"`
}
type UpdateSessionModelPreferenceParams ¶ added in v0.20.0
type UpdateSessionRuntimeMetadataParams ¶ added in v0.20.0
type UpdateSessionTypeAndMetadataParams ¶
type UpdateSessionTypeAndMetadataParams struct {
Type string `json:"type"`
SessionMode string `json:"session_mode"`
RuntimeType string `json:"runtime_type"`
BotAgentID pgtype.UUID `json:"bot_agent_id"`
RuntimeMetadata []byte `json:"runtime_metadata"`
Metadata []byte `json:"metadata"`
ID pgtype.UUID `json:"id"`
}
type UpsertAbortedContextLifecycleRow ¶ added in v0.20.0
type UpsertAccountByUsernameParams ¶
type UpsertAccountByUsernameParams struct {
UserID pgtype.UUID `json:"user_id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Role string `json:"role"`
DataRoot pgtype.Text `json:"data_root"`
}
type UpsertAccountByUsernameRow ¶
type UpsertAccountByUsernameRow struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
DataRoot pgtype.Text `json:"data_root"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive pgtype.Bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
PrincipalIsActive bool `json:"principal_is_active"`
MembershipIsActive bool `json:"membership_is_active"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
MembershipUpdatedAt pgtype.Timestamptz `json:"membership_updated_at"`
TitleModelID pgtype.UUID `json:"title_model_id"`
}
type UpsertAgentSessionPublicationParams ¶ added in v0.20.0
type UpsertAgentSessionStateParams ¶ added in v0.20.0
type UpsertAgentSessionStateParams struct {
AgentID string `json:"agent_id"`
AgentSessionID string `json:"agent_session_id"`
Cwd string `json:"cwd"`
TranscriptPath string `json:"transcript_path"`
FileCount int32 `json:"file_count"`
RecordCount int64 `json:"record_count"`
FileShapes []byte `json:"file_shapes"`
SessionID pgtype.UUID `json:"session_id"`
BotID pgtype.UUID `json:"bot_id"`
ThroughRunID pgtype.UUID `json:"through_run_id"`
}
type UpsertAppConnectorRefParams ¶ added in v0.20.0
type UpsertAppDependencyRefParams ¶ added in v0.20.0
type UpsertBotAppInstallationParams ¶ added in v0.20.0
type UpsertBotAppInstallationParams struct {
BotID pgtype.UUID `json:"bot_id"`
RegistryID string `json:"registry_id"`
AppID string `json:"app_id"`
Revision string `json:"revision"`
Version string `json:"version"`
Status string `json:"status"`
Reason string `json:"reason"`
Release []byte `json:"release"`
}
type UpsertBotChannelConfigParams ¶
type UpsertBotChannelConfigParams struct {
BotID pgtype.UUID `json:"bot_id"`
ChannelType string `json:"channel_type"`
Credentials []byte `json:"credentials"`
ExternalIdentity pgtype.Text `json:"external_identity"`
SelfIdentity []byte `json:"self_identity"`
Routing []byte `json:"routing"`
Capabilities []byte `json:"capabilities"`
Disabled bool `json:"disabled"`
VerifiedAt pgtype.Timestamptz `json:"verified_at"`
}
type UpsertBotDependencyInstallationIntentParams ¶ added in v0.20.0
type UpsertBotDependencyInstallationIntentParams struct {
BotID pgtype.UUID `json:"bot_id"`
DependencyID string `json:"dependency_id"`
Source string `json:"source"`
Status string `json:"status"`
InstalledVersion string `json:"installed_version"`
ManifestDigest string `json:"manifest_digest"`
SourceUrl string `json:"source_url"`
RegistryID string `json:"registry_id"`
DefinitionRevision string `json:"definition_revision"`
}
type UpsertBotSettingsParams ¶
type UpsertBotSettingsParams struct {
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
CompactionEnabled bool `json:"compaction_enabled"`
CompactionThreshold int32 `json:"compaction_threshold"`
CompactionTargetPercentSet bool `json:"compaction_target_percent_set"`
CompactionTargetPercent pgtype.Int4 `json:"compaction_target_percent"`
Timezone pgtype.Text `json:"timezone"`
ChatModelIDSet bool `json:"chat_model_id_set"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
DefaultBotAgentIDSet bool `json:"default_bot_agent_id_set"`
DefaultBotAgentID pgtype.UUID `json:"default_bot_agent_id"`
ChatRuntime string `json:"chat_runtime"`
ChatAcpAgentID pgtype.Text `json:"chat_acp_agent_id"`
ChatAcpProjectPath string `json:"chat_acp_project_path"`
ChatAcpProjectMode string `json:"chat_acp_project_mode"`
CompactionModelIDSet bool `json:"compaction_model_id_set"`
CompactionModelID pgtype.UUID `json:"compaction_model_id"`
SearchProviderIDSet bool `json:"search_provider_id_set"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
FetchProviderIDSet bool `json:"fetch_provider_id_set"`
FetchProviderID pgtype.UUID `json:"fetch_provider_id"`
MemoryProviderIDSet bool `json:"memory_provider_id_set"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
ImageModelIDSet bool `json:"image_model_id_set"`
ImageModelID pgtype.UUID `json:"image_model_id"`
TtsModelIDSet bool `json:"tts_model_id_set"`
TtsModelID pgtype.UUID `json:"tts_model_id"`
TranscriptionModelIDSet bool `json:"transcription_model_id_set"`
TranscriptionModelID pgtype.UUID `json:"transcription_model_id"`
VideoModelIDSet bool `json:"video_model_id_set"`
VideoModelID pgtype.UUID `json:"video_model_id"`
PersistFullToolResults bool `json:"persist_full_tool_results"`
ShowToolCallsInIm bool `json:"show_tool_calls_in_im"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
DisplayEnabled bool `json:"display_enabled"`
OverlayProvider string `json:"overlay_provider"`
OverlayEnabled bool `json:"overlay_enabled"`
OverlayConfig []byte `json:"overlay_config"`
CommandUiLanguage string `json:"command_ui_language"`
ID pgtype.UUID `json:"id"`
}
type UpsertBotSettingsRow ¶
type UpsertBotSettingsRow struct {
BotID pgtype.UUID `json:"bot_id"`
Language string `json:"language"`
ReasoningEffort string `json:"reasoning_effort"`
CompactionEnabled bool `json:"compaction_enabled"`
CompactionThreshold int32 `json:"compaction_threshold"`
CompactionTargetPercent pgtype.Int4 `json:"compaction_target_percent"`
Timezone pgtype.Text `json:"timezone"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
DefaultBotAgentID pgtype.UUID `json:"default_bot_agent_id"`
ChatRuntime string `json:"chat_runtime"`
ChatAcpAgentID pgtype.Text `json:"chat_acp_agent_id"`
ChatAcpProjectPath string `json:"chat_acp_project_path"`
ChatAcpProjectMode string `json:"chat_acp_project_mode"`
CompactionModelID pgtype.UUID `json:"compaction_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
FetchProviderID pgtype.UUID `json:"fetch_provider_id"`
MemoryProviderID pgtype.UUID `json:"memory_provider_id"`
ImageModelID pgtype.UUID `json:"image_model_id"`
TtsModelID pgtype.UUID `json:"tts_model_id"`
TranscriptionModelID pgtype.UUID `json:"transcription_model_id"`
VideoModelID pgtype.UUID `json:"video_model_id"`
PersistFullToolResults bool `json:"persist_full_tool_results"`
ShowToolCallsInIm bool `json:"show_tool_calls_in_im"`
ToolApprovalConfig []byte `json:"tool_approval_config"`
DisplayEnabled bool `json:"display_enabled"`
OverlayProvider string `json:"overlay_provider"`
OverlayEnabled bool `json:"overlay_enabled"`
OverlayConfig []byte `json:"overlay_config"`
CommandUiLanguage string `json:"command_ui_language"`
}
type UpsertContainerParams ¶
type UpsertContainerParams struct {
BotID pgtype.UUID `json:"bot_id"`
ContainerID string `json:"container_id"`
ContainerName string `json:"container_name"`
Image string `json:"image"`
Status string `json:"status"`
Namespace string `json:"namespace"`
AutoStart bool `json:"auto_start"`
ContainerPath string `json:"container_path"`
WorkspaceBackend string `json:"workspace_backend"`
LastStartedAt pgtype.Timestamptz `json:"last_started_at"`
LastStoppedAt pgtype.Timestamptz `json:"last_stopped_at"`
}
type UpsertEmailOAuthTokenParams ¶
type UpsertEmailOAuthTokenParams struct {
EmailProviderID pgtype.UUID `json:"email_provider_id"`
EmailAddress string `json:"email_address"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
State string `json:"state"`
}
type UpsertMCPOAuthDiscoveryParams ¶
type UpsertMCPOAuthDiscoveryParams struct {
ConnectionID pgtype.UUID `json:"connection_id"`
ResourceMetadataUrl string `json:"resource_metadata_url"`
AuthorizationServerUrl string `json:"authorization_server_url"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
RegistrationEndpoint string `json:"registration_endpoint"`
ScopesSupported []string `json:"scopes_supported"`
ResourceUri string `json:"resource_uri"`
}
type UpsertMemoryNodeParams ¶
type UpsertMemoryNodeParams struct {
ID string `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Body string `json:"body"`
Hash string `json:"hash"`
Layer string `json:"layer"`
FactType string `json:"fact_type"`
Subject string `json:"subject"`
Confidence float32 `json:"confidence"`
Metadata []byte `json:"metadata"`
SourceMessageIds []byte `json:"source_message_ids"`
ProfileRef string `json:"profile_ref"`
Topic string `json:"topic"`
CapturedAt pgtype.Timestamptz `json:"captured_at"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
}
type UpsertProviderOAuthTokenParams ¶
type UpsertProviderOAuthTokenParams struct {
ProviderID pgtype.UUID `json:"provider_id"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
TokenType string `json:"token_type"`
State string `json:"state"`
PkceCodeVerifier string `json:"pkce_code_verifier"`
Metadata []byte `json:"metadata"`
}
type UpsertProviderTemplateParams ¶
type UpsertProviderTemplateParams struct {
Key string `json:"key"`
Domain string `json:"domain"`
Name string `json:"name"`
Description string `json:"description"`
Icon pgtype.Text `json:"icon"`
Driver string `json:"driver"`
ConfigSchema []byte `json:"config_schema"`
DefaultConfig []byte `json:"default_config"`
Metadata []byte `json:"metadata"`
Source string `json:"source"`
ContentHash string `json:"content_hash"`
SortOrder int32 `json:"sort_order"`
}
type UpsertSnapshotParams ¶
type UpsertSnapshotParams struct {
ContainerID string `json:"container_id"`
RuntimeSnapshotName string `json:"runtime_snapshot_name"`
DisplayName pgtype.Text `json:"display_name"`
ParentRuntimeSnapshotName pgtype.Text `json:"parent_runtime_snapshot_name"`
Snapshotter string `json:"snapshotter"`
Source string `json:"source"`
}
type UpsertTerminalContextLifecycleParams ¶
type UpsertTerminalContextLifecycleParams struct {
RunID pgtype.UUID `json:"run_id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
Status string `json:"status"`
ErrorCode pgtype.Text `json:"error_code"`
Snapshot []byte `json:"snapshot"`
ReplaceErrorCode bool `json:"replace_error_code"`
ReplaceSnapshot bool `json:"replace_snapshot"`
}
type UpsertTerminalContextLifecycleRow ¶ added in v0.20.0
type UpsertUserProviderOAuthTokenParams ¶
type UpsertUserProviderOAuthTokenParams struct {
ProviderID pgtype.UUID `json:"provider_id"`
UserID pgtype.UUID `json:"user_id"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
TokenType string `json:"token_type"`
State string `json:"state"`
PkceCodeVerifier string `json:"pkce_code_verifier"`
Metadata []byte `json:"metadata"`
}
type User ¶
type User struct {
ID pgtype.UUID `json:"id"`
Username pgtype.Text `json:"username"`
Email pgtype.Text `json:"email"`
PasswordHash pgtype.Text `json:"password_hash"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
Timezone string `json:"timezone"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
IsActive bool `json:"is_active"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type UserChannelBinding ¶
type UserChannelBinding struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
ChannelType string `json:"channel_type"`
Config []byte `json:"config"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type UserInputRequest ¶
type UserInputRequest struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
SessionID pgtype.UUID `json:"session_id"`
RouteID pgtype.UUID `json:"route_id"`
ChannelIdentityID pgtype.UUID `json:"channel_identity_id"`
WorkspaceTargetID string `json:"workspace_target_id"`
ToolCallID string `json:"tool_call_id"`
ToolName string `json:"tool_name"`
ShortID int32 `json:"short_id"`
Status string `json:"status"`
RuntimeFencingToken pgtype.Int8 `json:"runtime_fencing_token"`
ResponseControlID pgtype.Text `json:"response_control_id"`
ResponsePayloadHash pgtype.Text `json:"response_payload_hash"`
InputJson []byte `json:"input_json"`
UiPayloadJson []byte `json:"ui_payload_json"`
InteractionJson []byte `json:"interaction_json"`
InteractionRevision int32 `json:"interaction_revision"`
ResultJson []byte `json:"result_json"`
ProviderMetadata []byte `json:"provider_metadata"`
RequestedByChannelIdentityID pgtype.UUID `json:"requested_by_channel_identity_id"`
RespondedByChannelIdentityID pgtype.UUID `json:"responded_by_channel_identity_id"`
AssistantMessageID pgtype.UUID `json:"assistant_message_id"`
ToolResultMessageID pgtype.UUID `json:"tool_result_message_id"`
PromptMessageID pgtype.UUID `json:"prompt_message_id"`
PromptExternalMessageID string `json:"prompt_external_message_id"`
SourcePlatform string `json:"source_platform"`
ReplyTarget string `json:"reply_target"`
ConversationType string `json:"conversation_type"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
RespondedAt pgtype.Timestamptz `json:"responded_at"`
CanceledAt pgtype.Timestamptz `json:"canceled_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
RunID pgtype.UUID `json:"run_id"`
TurnID pgtype.UUID `json:"turn_id"`
}
type UserProviderOauthToken ¶
type UserProviderOauthToken struct {
ID pgtype.UUID `json:"id"`
ProviderID pgtype.UUID `json:"provider_id"`
UserID pgtype.UUID `json:"user_id"`
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
Scope string `json:"scope"`
TokenType string `json:"token_type"`
State string `json:"state"`
PkceCodeVerifier string `json:"pkce_code_verifier"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type UserRuntime ¶
type UserRuntime struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_id"`
Name string `json:"name"`
ApiToken string `json:"api_token"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
ActivatedAt pgtype.Timestamptz `json:"activated_at"`
PendingExpiresAt pgtype.Timestamptz `json:"pending_expires_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
TeamID pgtype.UUID `json:"team_id"`
}
type WorkspaceDependencyCatalog ¶ added in v0.20.0
type WorkspaceDependencyDefinition ¶ added in v0.20.0
type WorkspaceDependencyDefinition struct {
TeamID pgtype.UUID `json:"team_id"`
SourceUrl string `json:"source_url"`
RegistryID string `json:"registry_id"`
DependencyID string `json:"dependency_id"`
Revision string `json:"revision"`
ReleaseBytes []byte `json:"release_bytes"`
ArtifactBytes []byte `json:"artifact_bytes"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
IconDigest string `json:"icon_digest"`
LastAccessedAt pgtype.Timestamptz `json:"last_accessed_at"`
}
Source Files
¶
- acl.sql.go
- agent_authorizations.sql.go
- agent_credentials.sql.go
- agent_session_state.sql.go
- apps.sql.go
- bot_agents.sql.go
- bot_channel_admins.sql.go
- bot_user_grants.sql.go
- bot_workdirs.sql.go
- bots.sql.go
- channel_identities.sql.go
- channel_identity_bindings.sql.go
- channel_routes.sql.go
- channels.sql.go
- compaction_logs.sql.go
- connectors.sql.go
- containers.sql.go
- context_lifecycle.sql.go
- db.go
- email_bindings.sql.go
- email_oauth_tokens.sql.go
- email_outbox.sql.go
- email_providers.sql.go
- events.sql.go
- fetch_providers.sql.go
- mcp.sql.go
- mcp_oauth.sql.go
- media.sql.go
- memory_providers.sql.go
- memory_wiki.sql.go
- messages.sql.go
- models.go
- models.sql.go
- network.sql.go
- provider_oauth.sql.go
- provider_templates.sql.go
- schedule.sql.go
- schedule_logs.sql.go
- search_providers.sql.go
- session_events.sql.go
- session_info.sql.go
- session_runs.sql.go
- session_runtime_resets.sql.go
- sessions.sql.go
- settings.sql.go
- snapshots.sql.go
- subagents.sql.go
- token_usage.sql.go
- tool_approval.sql.go
- user_input.sql.go
- user_provider_oauth.sql.go
- user_runtimes.sql.go
- users.sql.go
- versions.sql.go
- workspace_dependencies.sql.go
- workspace_dependency_catalog.sql.go
- workspace_resource_limits.sql.go