Documentation
¶
Index ¶
- type AddChatParticipantParams
- type AddChatParticipantRow
- type Bot
- type BotChannelConfig
- type BotChannelRoute
- type BotHistoryMessage
- type BotHistoryMessageAsset
- type BotInbox
- type BotMember
- type BotPreauthKey
- type BotStorageBinding
- type ChannelIdentity
- type ChannelIdentityBindCode
- type Container
- type ContainerVersion
- type CopyParticipantsToChatParams
- type CreateAccountParams
- type CreateBindCodeParams
- type CreateBotParams
- type CreateBotPreauthKeyParams
- type CreateBotRow
- type CreateChannelIdentityParams
- type CreateChatParams
- type CreateChatRouteParams
- type CreateChatRouteRow
- type CreateChatRow
- type CreateInboxItemParams
- type CreateLlmProviderParams
- type CreateMCPConnectionParams
- type CreateMessageAssetParams
- type CreateMessageParams
- type CreateMessageRow
- type CreateModelParams
- type CreateModelVariantParams
- type CreateScheduleParams
- type CreateSearchProviderParams
- type CreateStorageProviderParams
- type CreateSubagentParams
- type CreateUserParams
- type DBTX
- type DeleteBotChannelConfigParams
- type DeleteBotMemberParams
- type DeleteInboxItemParams
- type DeleteMCPConnectionParams
- type FindChatRouteParams
- type FindChatRouteRow
- type GetBotByIDRow
- type GetBotChannelConfigByExternalIdentityParams
- type GetBotChannelConfigParams
- type GetBotMemberParams
- type GetChannelIdentityByChannelSubjectParams
- type GetChatByIDRow
- type GetChatParticipantParams
- type GetChatParticipantRow
- type GetChatReadAccessByUserParams
- type GetChatReadAccessByUserRow
- type GetChatRouteByIDRow
- type GetChatSettingsRow
- type GetInboxItemByIDParams
- type GetMCPConnectionByIDParams
- type GetSettingsByBotIDRow
- type GetSnapshotByContainerAndRuntimeNameParams
- type GetSubagentByBotAndNameParams
- type GetUserChannelBindingParams
- type GetVersionSnapshotRuntimeNameParams
- type InsertLifecycleEventParams
- type InsertVersionParams
- type LifecycleEvent
- type ListActiveMessagesSinceParams
- type ListActiveMessagesSinceRow
- type ListBotsByMemberRow
- type ListBotsByOwnerRow
- type ListChatParticipantsRow
- type ListChatRoutesRow
- type ListChatsByBotAndUserParams
- type ListChatsByBotAndUserRow
- type ListInboxItemsParams
- type ListMessageAssetsBatchRow
- type ListMessageAssetsRow
- type ListMessagesBeforeParams
- type ListMessagesBeforeRow
- type ListMessagesLatestParams
- type ListMessagesLatestRow
- type ListMessagesRow
- type ListMessagesSinceParams
- type ListMessagesSinceRow
- type ListModelsByProviderIDAndTypeParams
- type ListSnapshotsWithVersionByContainerIDRow
- type ListThreadsByParentRow
- type ListUnreadInboxItemsParams
- type ListVersionsByContainerIDRow
- type ListVisibleChatsByBotAndUserParams
- type ListVisibleChatsByBotAndUserRow
- type LlmProvider
- type MarkBindCodeUsedParams
- type MarkInboxItemsReadParams
- type McpConnection
- type MediaAsset
- type Model
- type ModelVariant
- type Queries
- func (q *Queries) AddChatParticipant(ctx context.Context, arg AddChatParticipantParams) (AddChatParticipantRow, error)
- func (q *Queries) CopyParticipantsToChat(ctx context.Context, arg CopyParticipantsToChatParams) error
- func (q *Queries) CountAccounts(ctx context.Context) (int64, error)
- func (q *Queries) CountInboxItems(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CountLlmProviders(ctx context.Context) (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) CountUnreadInboxItems(ctx context.Context, botID pgtype.UUID) (int64, error)
- func (q *Queries) CreateAccount(ctx context.Context, arg CreateAccountParams) (User, error)
- func (q *Queries) CreateBindCode(ctx context.Context, arg CreateBindCodeParams) (ChannelIdentityBindCode, error)
- func (q *Queries) CreateBot(ctx context.Context, arg CreateBotParams) (CreateBotRow, error)
- func (q *Queries) CreateBotPreauthKey(ctx context.Context, arg CreateBotPreauthKeyParams) (BotPreauthKey, error)
- func (q *Queries) CreateChannelIdentity(ctx context.Context, arg CreateChannelIdentityParams) (ChannelIdentity, error)
- func (q *Queries) CreateChat(ctx context.Context, arg CreateChatParams) (CreateChatRow, error)
- func (q *Queries) CreateChatRoute(ctx context.Context, arg CreateChatRouteParams) (CreateChatRouteRow, error)
- func (q *Queries) CreateInboxItem(ctx context.Context, arg CreateInboxItemParams) (BotInbox, error)
- func (q *Queries) CreateLlmProvider(ctx context.Context, arg CreateLlmProviderParams) (LlmProvider, error)
- func (q *Queries) CreateMCPConnection(ctx context.Context, arg CreateMCPConnectionParams) (McpConnection, error)
- func (q *Queries) CreateMessage(ctx context.Context, arg CreateMessageParams) (CreateMessageRow, error)
- func (q *Queries) CreateMessageAsset(ctx context.Context, arg CreateMessageAssetParams) (BotHistoryMessageAsset, 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) CreateSchedule(ctx context.Context, arg CreateScheduleParams) (Schedule, error)
- func (q *Queries) CreateSearchProvider(ctx context.Context, arg CreateSearchProviderParams) (SearchProvider, error)
- func (q *Queries) CreateStorageProvider(ctx context.Context, arg CreateStorageProviderParams) (StorageProvider, error)
- func (q *Queries) CreateSubagent(ctx context.Context, arg CreateSubagentParams) (Subagent, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteBotByID(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteBotChannelConfig(ctx context.Context, arg DeleteBotChannelConfigParams) error
- func (q *Queries) DeleteBotMember(ctx context.Context, arg DeleteBotMemberParams) error
- func (q *Queries) DeleteChat(ctx context.Context, chatID pgtype.UUID) error
- func (q *Queries) DeleteChatRoute(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteContainerByBotID(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteInboxItem(ctx context.Context, arg DeleteInboxItemParams) error
- func (q *Queries) DeleteInboxItemsByBot(ctx context.Context, botID pgtype.UUID) error
- func (q *Queries) DeleteLlmProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteMCPConnection(ctx context.Context, arg DeleteMCPConnectionParams) error
- func (q *Queries) DeleteMessageAssets(ctx context.Context, messageID pgtype.UUID) error
- func (q *Queries) DeleteMessagesByBot(ctx context.Context, botID 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) DeleteSchedule(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteSearchProvider(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteSettingsByBotID(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) FindChatRoute(ctx context.Context, arg FindChatRouteParams) (FindChatRouteRow, error)
- func (q *Queries) GetAccountByIdentity(ctx context.Context, identity pgtype.Text) (User, error)
- func (q *Queries) GetAccountByUserID(ctx context.Context, userID pgtype.UUID) (User, error)
- func (q *Queries) GetBindCode(ctx context.Context, token string) (ChannelIdentityBindCode, error)
- func (q *Queries) GetBindCodeForUpdate(ctx context.Context, token string) (ChannelIdentityBindCode, error)
- func (q *Queries) GetBotByID(ctx context.Context, id pgtype.UUID) (GetBotByIDRow, 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) GetBotMember(ctx context.Context, arg GetBotMemberParams) (BotMember, error)
- func (q *Queries) GetBotPreauthKey(ctx context.Context, token string) (BotPreauthKey, error)
- func (q *Queries) GetBotStorageBinding(ctx context.Context, botID pgtype.UUID) (BotStorageBinding, 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) GetChatByID(ctx context.Context, id pgtype.UUID) (GetChatByIDRow, error)
- func (q *Queries) GetChatParticipant(ctx context.Context, arg GetChatParticipantParams) (GetChatParticipantRow, error)
- func (q *Queries) GetChatReadAccessByUser(ctx context.Context, arg GetChatReadAccessByUserParams) (GetChatReadAccessByUserRow, error)
- func (q *Queries) GetChatRouteByID(ctx context.Context, id pgtype.UUID) (GetChatRouteByIDRow, error)
- func (q *Queries) GetChatSettings(ctx context.Context, id pgtype.UUID) (GetChatSettingsRow, error)
- func (q *Queries) GetContainerByBotID(ctx context.Context, botID pgtype.UUID) (Container, error)
- func (q *Queries) GetInboxItemByID(ctx context.Context, arg GetInboxItemByIDParams) (BotInbox, error)
- func (q *Queries) GetLlmProviderByID(ctx context.Context, id pgtype.UUID) (LlmProvider, error)
- func (q *Queries) GetLlmProviderByName(ctx context.Context, name string) (LlmProvider, error)
- func (q *Queries) GetMCPConnectionByID(ctx context.Context, arg GetMCPConnectionByIDParams) (McpConnection, 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) 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) GetSettingsByBotID(ctx context.Context, id pgtype.UUID) (GetSettingsByBotIDRow, error)
- func (q *Queries) GetSnapshotByContainerAndRuntimeName(ctx context.Context, arg GetSnapshotByContainerAndRuntimeNameParams) (Snapshot, 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) GetSubagentByBotAndName(ctx context.Context, arg GetSubagentByBotAndNameParams) (Subagent, error)
- func (q *Queries) GetSubagentByID(ctx context.Context, id pgtype.UUID) (Subagent, error)
- func (q *Queries) GetUserByID(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) GetUserChannelBinding(ctx context.Context, arg GetUserChannelBindingParams) (UserChannelBinding, error)
- func (q *Queries) GetVersionSnapshotRuntimeName(ctx context.Context, arg GetVersionSnapshotRuntimeNameParams) (string, error)
- func (q *Queries) IncrementScheduleCalls(ctx context.Context, id pgtype.UUID) (Schedule, error)
- func (q *Queries) InsertLifecycleEvent(ctx context.Context, arg InsertLifecycleEventParams) error
- func (q *Queries) InsertVersion(ctx context.Context, arg InsertVersionParams) (ContainerVersion, error)
- func (q *Queries) ListAccounts(ctx context.Context) ([]User, error)
- func (q *Queries) ListActiveMessagesSince(ctx context.Context, arg ListActiveMessagesSinceParams) ([]ListActiveMessagesSinceRow, error)
- func (q *Queries) ListAutoStartContainers(ctx context.Context) ([]Container, error)
- func (q *Queries) ListBotChannelConfigsByType(ctx context.Context, channelType string) ([]BotChannelConfig, error)
- func (q *Queries) ListBotMembers(ctx context.Context, botID pgtype.UUID) ([]BotMember, error)
- func (q *Queries) ListBotsByMember(ctx context.Context, userID pgtype.UUID) ([]ListBotsByMemberRow, error)
- func (q *Queries) ListBotsByOwner(ctx context.Context, ownerUserID pgtype.UUID) ([]ListBotsByOwnerRow, error)
- func (q *Queries) ListChannelIdentitiesByUserID(ctx context.Context, userID pgtype.UUID) ([]ChannelIdentity, error)
- func (q *Queries) ListChatParticipants(ctx context.Context, chatID pgtype.UUID) ([]ListChatParticipantsRow, error)
- func (q *Queries) ListChatRoutes(ctx context.Context, chatID pgtype.UUID) ([]ListChatRoutesRow, error)
- func (q *Queries) ListChatsByBotAndUser(ctx context.Context, arg ListChatsByBotAndUserParams) ([]ListChatsByBotAndUserRow, error)
- func (q *Queries) ListEnabledSchedules(ctx context.Context) ([]Schedule, error)
- func (q *Queries) ListInboxItems(ctx context.Context, arg ListInboxItemsParams) ([]BotInbox, error)
- func (q *Queries) ListLlmProviders(ctx context.Context) ([]LlmProvider, error)
- func (q *Queries) ListMCPConnectionsByBotID(ctx context.Context, botID pgtype.UUID) ([]McpConnection, 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) ListMessages(ctx context.Context, botID pgtype.UUID) ([]ListMessagesRow, error)
- func (q *Queries) ListMessagesBefore(ctx context.Context, arg ListMessagesBeforeParams) ([]ListMessagesBeforeRow, error)
- func (q *Queries) ListMessagesLatest(ctx context.Context, arg ListMessagesLatestParams) ([]ListMessagesLatestRow, error)
- func (q *Queries) ListMessagesSince(ctx context.Context, arg ListMessagesSinceParams) ([]ListMessagesSinceRow, 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) ListModelsByClientType(ctx context.Context, clientType pgtype.Text) ([]Model, error)
- func (q *Queries) ListModelsByModelID(ctx context.Context, modelID string) ([]Model, error)
- func (q *Queries) ListModelsByProviderID(ctx context.Context, llmProviderID 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) 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) ListSnapshotsByContainerID(ctx context.Context, containerID string) ([]Snapshot, error)
- func (q *Queries) ListSnapshotsWithVersionByContainerID(ctx context.Context, containerID string) ([]ListSnapshotsWithVersionByContainerIDRow, error)
- func (q *Queries) ListStorageProviders(ctx context.Context) ([]StorageProvider, error)
- func (q *Queries) ListSubagentsByBot(ctx context.Context, botID pgtype.UUID) ([]Subagent, error)
- func (q *Queries) ListThreadsByParent(ctx context.Context, id pgtype.UUID) ([]ListThreadsByParentRow, error)
- func (q *Queries) ListUnreadInboxItems(ctx context.Context, arg ListUnreadInboxItemsParams) ([]BotInbox, error)
- func (q *Queries) ListUserChannelBindingsByPlatform(ctx context.Context, channelType string) ([]UserChannelBinding, error)
- func (q *Queries) ListVersionsByContainerID(ctx context.Context, containerID string) ([]ListVersionsByContainerIDRow, error)
- func (q *Queries) ListVisibleChatsByBotAndUser(ctx context.Context, arg ListVisibleChatsByBotAndUserParams) ([]ListVisibleChatsByBotAndUserRow, error)
- func (q *Queries) MarkBindCodeUsed(ctx context.Context, arg MarkBindCodeUsedParams) (ChannelIdentityBindCode, error)
- func (q *Queries) MarkBotPreauthKeyUsed(ctx context.Context, id pgtype.UUID) (BotPreauthKey, error)
- func (q *Queries) MarkInboxItemsRead(ctx context.Context, arg MarkInboxItemsReadParams) error
- func (q *Queries) NextVersion(ctx context.Context, containerID string) (int32, error)
- func (q *Queries) RemoveChatParticipant(ctx context.Context, arg RemoveChatParticipantParams) error
- func (q *Queries) SearchInboxItems(ctx context.Context, arg SearchInboxItemsParams) ([]BotInbox, error)
- func (q *Queries) SetChannelIdentityLinkedUser(ctx context.Context, arg SetChannelIdentityLinkedUserParams) (ChannelIdentity, error)
- func (q *Queries) SoftDeleteSubagent(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) TouchChat(ctx context.Context, chatID pgtype.UUID) error
- func (q *Queries) UpdateAccountAdmin(ctx context.Context, arg UpdateAccountAdminParams) (User, error)
- func (q *Queries) UpdateAccountLastLogin(ctx context.Context, id pgtype.UUID) (User, error)
- func (q *Queries) UpdateAccountPassword(ctx context.Context, arg UpdateAccountPasswordParams) (User, error)
- func (q *Queries) UpdateAccountProfile(ctx context.Context, arg UpdateAccountProfileParams) (User, error)
- func (q *Queries) UpdateBotChannelConfigDisabled(ctx context.Context, arg UpdateBotChannelConfigDisabledParams) (BotChannelConfig, 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) UpdateBotStatus(ctx context.Context, arg UpdateBotStatusParams) error
- func (q *Queries) UpdateChatRouteMetadata(ctx context.Context, arg UpdateChatRouteMetadataParams) error
- func (q *Queries) UpdateChatRouteReplyTarget(ctx context.Context, arg UpdateChatRouteReplyTargetParams) error
- func (q *Queries) UpdateChatTitle(ctx context.Context, arg UpdateChatTitleParams) (UpdateChatTitleRow, 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) UpdateLlmProvider(ctx context.Context, arg UpdateLlmProviderParams) (LlmProvider, error)
- func (q *Queries) UpdateMCPConnection(ctx context.Context, arg UpdateMCPConnectionParams) (McpConnection, error)
- func (q *Queries) UpdateModel(ctx context.Context, arg UpdateModelParams) (Model, error)
- func (q *Queries) UpdateModelByModelID(ctx context.Context, arg UpdateModelByModelIDParams) (Model, 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) UpdateSubagent(ctx context.Context, arg UpdateSubagentParams) (Subagent, error)
- func (q *Queries) UpdateSubagentMessages(ctx context.Context, arg UpdateSubagentMessagesParams) (Subagent, error)
- func (q *Queries) UpdateSubagentMessagesAndUsage(ctx context.Context, arg UpdateSubagentMessagesAndUsageParams) (Subagent, error)
- func (q *Queries) UpdateSubagentSkills(ctx context.Context, arg UpdateSubagentSkillsParams) (Subagent, error)
- func (q *Queries) UpsertAccountByUsername(ctx context.Context, arg UpsertAccountByUsernameParams) (User, error)
- func (q *Queries) UpsertBotChannelConfig(ctx context.Context, arg UpsertBotChannelConfigParams) (BotChannelConfig, error)
- func (q *Queries) UpsertBotMember(ctx context.Context, arg UpsertBotMemberParams) (BotMember, 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) UpsertChannelIdentityByChannelSubject(ctx context.Context, arg UpsertChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
- func (q *Queries) UpsertChatSettings(ctx context.Context, arg UpsertChatSettingsParams) (UpsertChatSettingsRow, error)
- func (q *Queries) UpsertContainer(ctx context.Context, arg UpsertContainerParams) error
- func (q *Queries) UpsertMCPConnectionByName(ctx context.Context, arg UpsertMCPConnectionByNameParams) (McpConnection, error)
- func (q *Queries) UpsertSnapshot(ctx context.Context, arg UpsertSnapshotParams) (Snapshot, error)
- func (q *Queries) UpsertUserChannelBinding(ctx context.Context, arg UpsertUserChannelBindingParams) (UserChannelBinding, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RemoveChatParticipantParams
- type Schedule
- type SearchInboxItemsParams
- type SearchProvider
- type SetChannelIdentityLinkedUserParams
- type Snapshot
- type StorageProvider
- type Subagent
- type UpdateAccountAdminParams
- type UpdateAccountPasswordParams
- type UpdateAccountProfileParams
- type UpdateBotChannelConfigDisabledParams
- type UpdateBotOwnerParams
- type UpdateBotOwnerRow
- type UpdateBotProfileParams
- type UpdateBotProfileRow
- type UpdateBotStatusParams
- type UpdateChatRouteMetadataParams
- type UpdateChatRouteReplyTargetParams
- type UpdateChatTitleParams
- type UpdateChatTitleRow
- type UpdateContainerStatusParams
- type UpdateLlmProviderParams
- type UpdateMCPConnectionParams
- type UpdateModelByModelIDParams
- type UpdateModelParams
- type UpdateScheduleParams
- type UpdateSearchProviderParams
- type UpdateSubagentMessagesAndUsageParams
- type UpdateSubagentMessagesParams
- type UpdateSubagentParams
- type UpdateSubagentSkillsParams
- type UpsertAccountByUsernameParams
- type UpsertBotChannelConfigParams
- type UpsertBotMemberParams
- type UpsertBotSettingsParams
- type UpsertBotSettingsRow
- type UpsertBotStorageBindingParams
- type UpsertChannelIdentityByChannelSubjectParams
- type UpsertChatSettingsParams
- type UpsertChatSettingsRow
- type UpsertContainerParams
- type UpsertMCPConnectionByNameParams
- type UpsertSnapshotParams
- type UpsertUserChannelBindingParams
- type User
- type UserChannelBinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddChatParticipantRow ¶
type Bot ¶
type Bot struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
MaxInboxItems int32 `json:"max_inbox_items"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
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"`
}
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"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type BotHistoryMessage ¶
type BotHistoryMessage struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderAccountUserID pgtype.UUID `json:"sender_account_user_id"`
ChannelType pgtype.Text `json:"channel_type"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type BotHistoryMessageAsset ¶
type BotPreauthKey ¶
type BotPreauthKey struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Token string `json:"token"`
IssuedByUserID pgtype.UUID `json:"issued_by_user_id"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
UsedAt pgtype.Timestamptz `json:"used_at"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type BotStorageBinding ¶
type ChannelIdentity ¶
type ChannelIdentity struct {
ID pgtype.UUID `json:"id"`
UserID pgtype.UUID `json:"user_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"`
}
type ChannelIdentityBindCode ¶
type ChannelIdentityBindCode struct {
ID pgtype.UUID `json:"id"`
Token string `json:"token"`
IssuedByUserID pgtype.UUID `json:"issued_by_user_id"`
ChannelType pgtype.Text `json:"channel_type"`
ExpiresAt pgtype.Timestamptz `json:"expires_at"`
UsedAt pgtype.Timestamptz `json:"used_at"`
UsedByChannelIdentityID pgtype.UUID `json:"used_by_channel_identity_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
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"`
HostPath pgtype.Text `json:"host_path"`
ContainerPath string `json:"container_path"`
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"`
}
type ContainerVersion ¶
type CreateAccountParams ¶
type CreateAccountParams struct {
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"`
IsActive bool `json:"is_active"`
DataRoot pgtype.Text `json:"data_root"`
UserID pgtype.UUID `json:"user_id"`
}
type CreateBindCodeParams ¶
type CreateBotParams ¶
type CreateBotRow ¶
type CreateBotRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateChatParams ¶
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"`
ChatID pgtype.UUID `json:"chat_id"`
}
type CreateChatRouteRow ¶
type CreateChatRouteRow struct {
ID pgtype.UUID `json:"id"`
ChatID pgtype.UUID `json:"chat_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"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateChatRow ¶
type CreateChatRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Kind string `json:"kind"`
ParentChatID pgtype.UUID `json:"parent_chat_id"`
Title pgtype.Text `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Metadata []byte `json:"metadata"`
ModelID pgtype.Text `json:"model_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type CreateInboxItemParams ¶
type CreateLlmProviderParams ¶
type CreateMessageParams ¶
type CreateMessageParams struct {
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
}
type CreateMessageRow ¶
type CreateMessageRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type CreateModelParams ¶
type CreateModelParams struct {
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
LlmProviderID pgtype.UUID `json:"llm_provider_id"`
ClientType pgtype.Text `json:"client_type"`
Dimensions pgtype.Int4 `json:"dimensions"`
InputModalities []string `json:"input_modalities"`
SupportsReasoning bool `json:"supports_reasoning"`
Type string `json:"type"`
}
type CreateScheduleParams ¶
type CreateSubagentParams ¶
type CreateUserParams ¶
type DeleteBotMemberParams ¶
type DeleteInboxItemParams ¶
type FindChatRouteParams ¶
type FindChatRouteRow ¶
type FindChatRouteRow struct {
ID pgtype.UUID `json:"id"`
ChatID pgtype.UUID `json:"chat_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"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetBotByIDRow ¶
type GetBotByIDRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetBotMemberParams ¶
type GetChatByIDRow ¶
type GetChatByIDRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Kind string `json:"kind"`
ParentChatID pgtype.UUID `json:"parent_chat_id"`
Title pgtype.Text `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Metadata []byte `json:"metadata"`
ModelID pgtype.Text `json:"model_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetChatParticipantRow ¶
type GetChatReadAccessByUserRow ¶
type GetChatReadAccessByUserRow struct {
AccessMode string `json:"access_mode"`
ParticipantRole string `json:"participant_role"`
LastObservedAt pgtype.Timestamptz `json:"last_observed_at"`
}
type GetChatRouteByIDRow ¶
type GetChatRouteByIDRow struct {
ID pgtype.UUID `json:"id"`
ChatID pgtype.UUID `json:"chat_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"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type GetChatSettingsRow ¶
type GetInboxItemByIDParams ¶
type GetSettingsByBotIDRow ¶
type GetSettingsByBotIDRow struct {
BotID pgtype.UUID `json:"bot_id"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
}
type InsertVersionParams ¶
type LifecycleEvent ¶
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"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
}
type ListBotsByMemberRow ¶
type ListBotsByMemberRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListBotsByOwnerRow ¶
type ListBotsByOwnerRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListChatParticipantsRow ¶
type ListChatRoutesRow ¶
type ListChatRoutesRow struct {
ID pgtype.UUID `json:"id"`
ChatID pgtype.UUID `json:"chat_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"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListChatsByBotAndUserRow ¶
type ListChatsByBotAndUserRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Kind string `json:"kind"`
ParentChatID pgtype.UUID `json:"parent_chat_id"`
Title pgtype.Text `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Metadata []byte `json:"metadata"`
ModelID pgtype.Text `json:"model_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListInboxItemsParams ¶
type ListMessageAssetsRow ¶
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"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
}
type ListMessagesLatestRow ¶
type ListMessagesLatestRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
}
type ListMessagesRow ¶
type ListMessagesRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
}
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"`
RouteID pgtype.UUID `json:"route_id"`
SenderChannelIdentityID pgtype.UUID `json:"sender_channel_identity_id"`
SenderUserID pgtype.UUID `json:"sender_user_id"`
Platform pgtype.Text `json:"platform"`
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
SenderDisplayName pgtype.Text `json:"sender_display_name"`
SenderAvatarUrl pgtype.Text `json:"sender_avatar_url"`
}
type ListSnapshotsWithVersionByContainerIDRow ¶
type ListSnapshotsWithVersionByContainerIDRow struct {
ID pgtype.UUID `json:"id"`
ContainerID string `json:"container_id"`
RuntimeSnapshotName string `json:"runtime_snapshot_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 ListThreadsByParentRow ¶
type ListThreadsByParentRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Kind string `json:"kind"`
ParentChatID pgtype.UUID `json:"parent_chat_id"`
Title pgtype.Text `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Metadata []byte `json:"metadata"`
ModelID pgtype.Text `json:"model_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ListVisibleChatsByBotAndUserRow ¶
type ListVisibleChatsByBotAndUserRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Kind string `json:"kind"`
ParentChatID pgtype.UUID `json:"parent_chat_id"`
Title pgtype.Text `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Metadata []byte `json:"metadata"`
ModelID pgtype.Text `json:"model_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
AccessMode string `json:"access_mode"`
ParticipantRole string `json:"participant_role"`
LastObservedAt pgtype.Timestamptz `json:"last_observed_at"`
}
type LlmProvider ¶
type LlmProvider struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
BaseUrl string `json:"base_url"`
ApiKey string `json:"api_key"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type MarkBindCodeUsedParams ¶
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"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
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"`
}
type Model ¶
type Model struct {
ID pgtype.UUID `json:"id"`
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
LlmProviderID pgtype.UUID `json:"llm_provider_id"`
ClientType pgtype.Text `json:"client_type"`
Dimensions pgtype.Int4 `json:"dimensions"`
InputModalities []string `json:"input_modalities"`
SupportsReasoning bool `json:"supports_reasoning"`
Type string `json:"type"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type ModelVariant ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddChatParticipant ¶
func (q *Queries) AddChatParticipant(ctx context.Context, arg AddChatParticipantParams) (AddChatParticipantRow, error)
chat_participants
func (*Queries) CopyParticipantsToChat ¶
func (q *Queries) CopyParticipantsToChat(ctx context.Context, arg CopyParticipantsToChatParams) error
func (*Queries) CountInboxItems ¶
func (*Queries) CountLlmProviders ¶
func (*Queries) CountModelsByType ¶
func (*Queries) CountUnreadInboxItems ¶
func (*Queries) CreateAccount ¶
func (*Queries) CreateBindCode ¶
func (q *Queries) CreateBindCode(ctx context.Context, arg CreateBindCodeParams) (ChannelIdentityBindCode, error)
func (*Queries) CreateBot ¶
func (q *Queries) CreateBot(ctx context.Context, arg CreateBotParams) (CreateBotRow, error)
func (*Queries) CreateBotPreauthKey ¶
func (q *Queries) CreateBotPreauthKey(ctx context.Context, arg CreateBotPreauthKeyParams) (BotPreauthKey, error)
func (*Queries) CreateChannelIdentity ¶
func (q *Queries) CreateChannelIdentity(ctx context.Context, arg CreateChannelIdentityParams) (ChannelIdentity, error)
func (*Queries) CreateChat ¶
func (q *Queries) CreateChat(ctx context.Context, arg CreateChatParams) (CreateChatRow, error)
func (*Queries) CreateChatRoute ¶
func (q *Queries) CreateChatRoute(ctx context.Context, arg CreateChatRouteParams) (CreateChatRouteRow, error)
func (*Queries) CreateInboxItem ¶
func (*Queries) CreateLlmProvider ¶
func (q *Queries) CreateLlmProvider(ctx context.Context, arg CreateLlmProviderParams) (LlmProvider, error)
func (*Queries) CreateMCPConnection ¶
func (q *Queries) CreateMCPConnection(ctx context.Context, arg CreateMCPConnectionParams) (McpConnection, 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) (BotHistoryMessageAsset, error)
func (*Queries) CreateModel ¶
func (*Queries) CreateModelVariant ¶
func (q *Queries) CreateModelVariant(ctx context.Context, arg CreateModelVariantParams) (ModelVariant, error)
func (*Queries) CreateSchedule ¶
func (*Queries) CreateSearchProvider ¶
func (q *Queries) CreateSearchProvider(ctx context.Context, arg CreateSearchProviderParams) (SearchProvider, error)
func (*Queries) CreateStorageProvider ¶
func (q *Queries) CreateStorageProvider(ctx context.Context, arg CreateStorageProviderParams) (StorageProvider, error)
func (*Queries) CreateSubagent ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteBotByID ¶
func (*Queries) DeleteBotChannelConfig ¶
func (q *Queries) DeleteBotChannelConfig(ctx context.Context, arg DeleteBotChannelConfigParams) error
func (*Queries) DeleteBotMember ¶
func (q *Queries) DeleteBotMember(ctx context.Context, arg DeleteBotMemberParams) error
func (*Queries) DeleteChat ¶
func (*Queries) DeleteChatRoute ¶
func (*Queries) DeleteContainerByBotID ¶
func (*Queries) DeleteInboxItem ¶
func (q *Queries) DeleteInboxItem(ctx context.Context, arg DeleteInboxItemParams) error
func (*Queries) DeleteInboxItemsByBot ¶
func (*Queries) DeleteLlmProvider ¶
func (*Queries) DeleteMCPConnection ¶
func (q *Queries) DeleteMCPConnection(ctx context.Context, arg DeleteMCPConnectionParams) error
func (*Queries) DeleteMessageAssets ¶
func (*Queries) DeleteMessagesByBot ¶
func (*Queries) DeleteModel ¶
func (*Queries) DeleteModelByModelID ¶
func (*Queries) DeleteSchedule ¶
func (*Queries) DeleteSearchProvider ¶
func (*Queries) DeleteSettingsByBotID ¶
func (*Queries) FindChatRoute ¶
func (q *Queries) FindChatRoute(ctx context.Context, arg FindChatRouteParams) (FindChatRouteRow, error)
func (*Queries) GetAccountByIdentity ¶
func (*Queries) GetAccountByUserID ¶
func (*Queries) GetBindCode ¶
func (*Queries) GetBindCodeForUpdate ¶
func (*Queries) GetBotByID ¶
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) GetBotMember ¶
func (*Queries) GetBotPreauthKey ¶
func (*Queries) GetBotStorageBinding ¶
func (*Queries) GetChannelIdentityByChannelSubject ¶
func (q *Queries) GetChannelIdentityByChannelSubject(ctx context.Context, arg GetChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
func (*Queries) GetChannelIdentityByID ¶
func (*Queries) GetChannelIdentityByIDForUpdate ¶
func (*Queries) GetChatByID ¶
func (*Queries) GetChatParticipant ¶
func (q *Queries) GetChatParticipant(ctx context.Context, arg GetChatParticipantParams) (GetChatParticipantRow, error)
func (*Queries) GetChatReadAccessByUser ¶
func (q *Queries) GetChatReadAccessByUser(ctx context.Context, arg GetChatReadAccessByUserParams) (GetChatReadAccessByUserRow, error)
func (*Queries) GetChatRouteByID ¶
func (*Queries) GetChatSettings ¶
func (*Queries) GetContainerByBotID ¶
func (*Queries) GetInboxItemByID ¶
func (*Queries) GetLlmProviderByID ¶
func (*Queries) GetLlmProviderByName ¶
func (*Queries) GetMCPConnectionByID ¶
func (q *Queries) GetMCPConnectionByID(ctx context.Context, arg GetMCPConnectionByIDParams) (McpConnection, error)
func (*Queries) GetModelByID ¶
func (*Queries) GetModelByModelID ¶
func (*Queries) GetScheduleByID ¶
func (*Queries) GetSearchProviderByID ¶
func (*Queries) GetSearchProviderByName ¶
func (*Queries) GetSettingsByBotID ¶
func (*Queries) GetSnapshotByContainerAndRuntimeName ¶
func (*Queries) GetStorageProviderByID ¶
func (*Queries) GetStorageProviderByName ¶
func (*Queries) GetSubagentByBotAndName ¶
func (*Queries) GetSubagentByID ¶
func (*Queries) GetUserByID ¶
func (*Queries) GetUserChannelBinding ¶
func (q *Queries) GetUserChannelBinding(ctx context.Context, arg GetUserChannelBindingParams) (UserChannelBinding, error)
func (*Queries) GetVersionSnapshotRuntimeName ¶
func (*Queries) IncrementScheduleCalls ¶
func (*Queries) InsertLifecycleEvent ¶
func (q *Queries) InsertLifecycleEvent(ctx context.Context, arg InsertLifecycleEventParams) error
func (*Queries) InsertVersion ¶
func (q *Queries) InsertVersion(ctx context.Context, arg InsertVersionParams) (ContainerVersion, error)
func (*Queries) ListActiveMessagesSince ¶
func (q *Queries) ListActiveMessagesSince(ctx context.Context, arg ListActiveMessagesSinceParams) ([]ListActiveMessagesSinceRow, error)
func (*Queries) ListAutoStartContainers ¶
func (*Queries) ListBotChannelConfigsByType ¶
func (*Queries) ListBotMembers ¶
func (*Queries) ListBotsByMember ¶
func (*Queries) ListBotsByOwner ¶
func (*Queries) ListChannelIdentitiesByUserID ¶
func (*Queries) ListChatParticipants ¶
func (*Queries) ListChatRoutes ¶
func (*Queries) ListChatsByBotAndUser ¶
func (q *Queries) ListChatsByBotAndUser(ctx context.Context, arg ListChatsByBotAndUserParams) ([]ListChatsByBotAndUserRow, error)
func (*Queries) ListEnabledSchedules ¶
func (*Queries) ListInboxItems ¶
func (*Queries) ListLlmProviders ¶
func (q *Queries) ListLlmProviders(ctx context.Context) ([]LlmProvider, error)
func (*Queries) ListMCPConnectionsByBotID ¶
func (*Queries) ListMessageAssets ¶
func (*Queries) ListMessageAssetsBatch ¶
func (*Queries) ListMessages ¶
func (*Queries) ListMessagesBefore ¶
func (q *Queries) ListMessagesBefore(ctx context.Context, arg ListMessagesBeforeParams) ([]ListMessagesBeforeRow, error)
func (*Queries) ListMessagesLatest ¶
func (q *Queries) ListMessagesLatest(ctx context.Context, arg ListMessagesLatestParams) ([]ListMessagesLatestRow, error)
func (*Queries) ListMessagesSince ¶
func (q *Queries) ListMessagesSince(ctx context.Context, arg ListMessagesSinceParams) ([]ListMessagesSinceRow, error)
func (*Queries) ListModelVariantsByModelUUID ¶
func (*Queries) ListModelsByClientType ¶
func (*Queries) ListModelsByModelID ¶
func (*Queries) ListModelsByProviderID ¶
func (*Queries) ListModelsByProviderIDAndType ¶
func (*Queries) ListModelsByType ¶
func (*Queries) ListSchedulesByBot ¶
func (*Queries) ListSearchProviders ¶
func (q *Queries) ListSearchProviders(ctx context.Context) ([]SearchProvider, error)
func (*Queries) ListSearchProvidersByProvider ¶
func (*Queries) ListSnapshotsByContainerID ¶
func (*Queries) ListSnapshotsWithVersionByContainerID ¶
func (*Queries) ListStorageProviders ¶
func (q *Queries) ListStorageProviders(ctx context.Context) ([]StorageProvider, error)
func (*Queries) ListSubagentsByBot ¶
func (*Queries) ListThreadsByParent ¶
func (*Queries) ListUnreadInboxItems ¶
func (*Queries) ListUserChannelBindingsByPlatform ¶
func (*Queries) ListVersionsByContainerID ¶
func (*Queries) ListVisibleChatsByBotAndUser ¶
func (q *Queries) ListVisibleChatsByBotAndUser(ctx context.Context, arg ListVisibleChatsByBotAndUserParams) ([]ListVisibleChatsByBotAndUserRow, error)
func (*Queries) MarkBindCodeUsed ¶
func (q *Queries) MarkBindCodeUsed(ctx context.Context, arg MarkBindCodeUsedParams) (ChannelIdentityBindCode, error)
func (*Queries) MarkBotPreauthKeyUsed ¶
func (*Queries) MarkInboxItemsRead ¶
func (q *Queries) MarkInboxItemsRead(ctx context.Context, arg MarkInboxItemsReadParams) error
func (*Queries) NextVersion ¶
func (*Queries) RemoveChatParticipant ¶
func (q *Queries) RemoveChatParticipant(ctx context.Context, arg RemoveChatParticipantParams) error
func (*Queries) SearchInboxItems ¶
func (*Queries) SetChannelIdentityLinkedUser ¶
func (q *Queries) SetChannelIdentityLinkedUser(ctx context.Context, arg SetChannelIdentityLinkedUserParams) (ChannelIdentity, error)
func (*Queries) SoftDeleteSubagent ¶
func (*Queries) UpdateAccountAdmin ¶
func (*Queries) UpdateAccountLastLogin ¶
func (*Queries) UpdateAccountPassword ¶
func (*Queries) UpdateAccountProfile ¶
func (*Queries) UpdateBotChannelConfigDisabled ¶
func (q *Queries) UpdateBotChannelConfigDisabled(ctx context.Context, arg UpdateBotChannelConfigDisabledParams) (BotChannelConfig, 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)
func (*Queries) UpdateBotStatus ¶
func (q *Queries) UpdateBotStatus(ctx context.Context, arg UpdateBotStatusParams) 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) UpdateChatTitle ¶
func (q *Queries) UpdateChatTitle(ctx context.Context, arg UpdateChatTitleParams) (UpdateChatTitleRow, error)
func (*Queries) UpdateContainerStarted ¶
func (*Queries) UpdateContainerStatus ¶
func (q *Queries) UpdateContainerStatus(ctx context.Context, arg UpdateContainerStatusParams) error
func (*Queries) UpdateContainerStopped ¶
func (*Queries) UpdateLlmProvider ¶
func (q *Queries) UpdateLlmProvider(ctx context.Context, arg UpdateLlmProviderParams) (LlmProvider, error)
func (*Queries) UpdateMCPConnection ¶
func (q *Queries) UpdateMCPConnection(ctx context.Context, arg UpdateMCPConnectionParams) (McpConnection, error)
func (*Queries) UpdateModel ¶
func (*Queries) UpdateModelByModelID ¶
func (*Queries) UpdateSchedule ¶
func (*Queries) UpdateSearchProvider ¶
func (q *Queries) UpdateSearchProvider(ctx context.Context, arg UpdateSearchProviderParams) (SearchProvider, error)
func (*Queries) UpdateSubagent ¶
func (*Queries) UpdateSubagentMessages ¶
func (*Queries) UpdateSubagentMessagesAndUsage ¶
func (*Queries) UpdateSubagentSkills ¶
func (*Queries) UpsertAccountByUsername ¶
func (*Queries) UpsertBotChannelConfig ¶
func (q *Queries) UpsertBotChannelConfig(ctx context.Context, arg UpsertBotChannelConfigParams) (BotChannelConfig, error)
func (*Queries) UpsertBotMember ¶
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) UpsertChannelIdentityByChannelSubject ¶
func (q *Queries) UpsertChannelIdentityByChannelSubject(ctx context.Context, arg UpsertChannelIdentityByChannelSubjectParams) (ChannelIdentity, error)
func (*Queries) UpsertChatSettings ¶
func (q *Queries) UpsertChatSettings(ctx context.Context, arg UpsertChatSettingsParams) (UpsertChatSettingsRow, error)
chat_settings
func (*Queries) UpsertContainer ¶
func (q *Queries) UpsertContainer(ctx context.Context, arg UpsertContainerParams) error
func (*Queries) UpsertMCPConnectionByName ¶
func (q *Queries) UpsertMCPConnectionByName(ctx context.Context, arg UpsertMCPConnectionByNameParams) (McpConnection, error)
func (*Queries) UpsertSnapshot ¶
func (*Queries) UpsertUserChannelBinding ¶
func (q *Queries) UpsertUserChannelBinding(ctx context.Context, arg UpsertUserChannelBindingParams) (UserChannelBinding, error)
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"`
}
type SearchInboxItemsParams ¶
type SearchProvider ¶
type SearchProvider 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"`
}
type Snapshot ¶
type Snapshot struct {
ID pgtype.UUID `json:"id"`
ContainerID string `json:"container_id"`
RuntimeSnapshotName string `json:"runtime_snapshot_name"`
ParentRuntimeSnapshotName pgtype.Text `json:"parent_runtime_snapshot_name"`
Snapshotter string `json:"snapshotter"`
Source string `json:"source"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
}
type StorageProvider ¶
type StorageProvider 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"`
}
type Subagent ¶
type Subagent struct {
ID pgtype.UUID `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
Deleted bool `json:"deleted"`
DeletedAt pgtype.Timestamptz `json:"deleted_at"`
BotID pgtype.UUID `json:"bot_id"`
Messages []byte `json:"messages"`
Metadata []byte `json:"metadata"`
Skills []byte `json:"skills"`
Usage []byte `json:"usage"`
}
type UpdateBotOwnerParams ¶
type UpdateBotOwnerRow ¶
type UpdateBotOwnerRow struct {
ID pgtype.UUID `json:"id"`
OwnerUserID pgtype.UUID `json:"owner_user_id"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_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"`
Type string `json:"type"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
Status string `json:"status"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
Metadata []byte `json:"metadata"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type UpdateBotStatusParams ¶
type UpdateChatTitleParams ¶
type UpdateChatTitleRow ¶
type UpdateChatTitleRow struct {
ID pgtype.UUID `json:"id"`
BotID pgtype.UUID `json:"bot_id"`
Kind string `json:"kind"`
ParentChatID pgtype.UUID `json:"parent_chat_id"`
Title pgtype.Text `json:"title"`
CreatedByUserID pgtype.UUID `json:"created_by_user_id"`
Metadata []byte `json:"metadata"`
ModelID pgtype.Text `json:"model_id"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type UpdateLlmProviderParams ¶
type UpdateModelByModelIDParams ¶
type UpdateModelByModelIDParams struct {
NewModelID string `json:"new_model_id"`
Name pgtype.Text `json:"name"`
LlmProviderID pgtype.UUID `json:"llm_provider_id"`
ClientType pgtype.Text `json:"client_type"`
Dimensions pgtype.Int4 `json:"dimensions"`
InputModalities []string `json:"input_modalities"`
SupportsReasoning bool `json:"supports_reasoning"`
Type string `json:"type"`
ModelID string `json:"model_id"`
}
type UpdateModelParams ¶
type UpdateModelParams struct {
ModelID string `json:"model_id"`
Name pgtype.Text `json:"name"`
LlmProviderID pgtype.UUID `json:"llm_provider_id"`
ClientType pgtype.Text `json:"client_type"`
Dimensions pgtype.Int4 `json:"dimensions"`
InputModalities []string `json:"input_modalities"`
SupportsReasoning bool `json:"supports_reasoning"`
Type string `json:"type"`
ID pgtype.UUID `json:"id"`
}
type UpdateScheduleParams ¶
type UpdateSubagentParams ¶
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"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
IsActive bool `json:"is_active"`
DataRoot pgtype.Text `json:"data_root"`
}
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 UpsertBotMemberParams ¶
type UpsertBotSettingsParams ¶
type UpsertBotSettingsParams struct {
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
ID pgtype.UUID `json:"id"`
}
type UpsertBotSettingsRow ¶
type UpsertBotSettingsRow struct {
BotID pgtype.UUID `json:"bot_id"`
MaxContextLoadTime int32 `json:"max_context_load_time"`
MaxContextTokens int32 `json:"max_context_tokens"`
MaxInboxItems int32 `json:"max_inbox_items"`
Language string `json:"language"`
AllowGuest bool `json:"allow_guest"`
ReasoningEnabled bool `json:"reasoning_enabled"`
ReasoningEffort string `json:"reasoning_effort"`
ChatModelID pgtype.UUID `json:"chat_model_id"`
MemoryModelID pgtype.UUID `json:"memory_model_id"`
EmbeddingModelID pgtype.UUID `json:"embedding_model_id"`
SearchProviderID pgtype.UUID `json:"search_provider_id"`
}
type UpsertChannelIdentityByChannelSubjectParams ¶
type UpsertChannelIdentityByChannelSubjectParams struct {
UserID pgtype.UUID `json:"user_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"`
}
type UpsertChatSettingsRow ¶
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"`
HostPath pgtype.Text `json:"host_path"`
ContainerPath string `json:"container_path"`
LastStartedAt pgtype.Timestamptz `json:"last_started_at"`
LastStoppedAt pgtype.Timestamptz `json:"last_stopped_at"`
}
type UpsertSnapshotParams ¶
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"`
Role string `json:"role"`
DisplayName pgtype.Text `json:"display_name"`
AvatarUrl pgtype.Text `json:"avatar_url"`
DataRoot pgtype.Text `json:"data_root"`
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"`
}
Source Files
¶
- bind.sql.go
- bots.sql.go
- channel_identities.sql.go
- channel_routes.sql.go
- channels.sql.go
- containers.sql.go
- conversations.sql.go
- db.go
- events.sql.go
- inbox.sql.go
- mcp.sql.go
- media.sql.go
- messages.sql.go
- models.go
- models.sql.go
- preauth.sql.go
- schedule.sql.go
- search_providers.sql.go
- settings.sql.go
- snapshots.sql.go
- subagents.sql.go
- users.sql.go
- versions.sql.go
Click to show internal directories.
Click to hide internal directories.