uiclient

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package uiclient implements the UI's Service interfaces over the Local API socket under the ui role.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(appServicePath, webuiServicePath string) ([]byte, error)

Generate parses appServicePath and webuiServicePath and returns the formatted Go source for client_gen.go.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client calls *core.Service over a RoleUI JSON-RPC connection.

func Dial

func Dial(dataDir, clientName string) (*Client, error)

Dial connects to <dataDir>/godwit.sock as rpc.RoleUI with rpcbind's error codec.

func New

func New(c *rpc.Client) *Client

New wraps an authenticated RoleUI JSON-RPC client.

func (*Client) AccountIcon

func (cl *Client) AccountIcon(ctx context.Context, id int64) (core.AccountIcon, error)

func (*Client) AddAccount

func (cl *Client) AddAccount(ctx context.Context, in core.AccountInput) (core.Account, error)

func (*Client) AddAddressBook

func (cl *Client) AddAddressBook(ctx context.Context, in core.AddressBookInput) (core.AddressBook, error)

func (*Client) AddAttachmentAt

func (cl *Client) AddAttachmentAt(ctx context.Context, draftID int64, revision int64, srcPath string, inline bool) (core.DraftAttachment, int64, error)

func (*Client) AddLocalArchive

func (cl *Client) AddLocalArchive(ctx context.Context, name string) (core.Account, error)

func (*Client) AddMCPServer

func (cl *Client) AddMCPServer(ctx context.Context, in core.MCPServerInput) (core.MCPServer, error)

func (*Client) AddModelService

func (cl *Client) AddModelService(ctx context.Context, in core.ModelServiceInput) (core.ModelService, error)

func (*Client) AllAccountLabels

func (cl *Client) AllAccountLabels(ctx context.Context) (map[int64][]core.Label, error)

func (*Client) AnswerQuestion

func (cl *Client) AnswerQuestion(ctx context.Context, id int64, round int, answers [][]string) error

func (*Client) ApplyEditedProposal

func (cl *Client) ApplyEditedProposal(ctx context.Context, approvalID int64, edited string) error

func (*Client) ApproveDraft added in v1.39.0

func (cl *Client) ApproveDraft(ctx context.Context, draftID int64, revision int64) error

func (*Client) ArchiveMessages

func (cl *Client) ArchiveMessages(ctx context.Context, ids []int64, folderID int64) (core.ArchiveUndo, error)

func (*Client) ArchiveSender

func (cl *Client) ArchiveSender(ctx context.Context, addr string) (core.SenderArchive, error)

func (*Client) ArchiveThreads

func (cl *Client) ArchiveThreads(ctx context.Context, threadIDs []int64) (core.ArchiveUndo, error)

func (*Client) ArchiveUsage

func (cl *Client) ArchiveUsage(ctx context.Context, accountID int64) (int64, error)

func (*Client) AskAgain

func (cl *Client) AskAgain(ctx context.Context, conversationID int64, turn string, input string, quoted []int64) (<-chan core.WitEvent, error)

func (*Client) AskWith

func (cl *Client) AskWith(ctx context.Context, conversationID int64, input string, quoted []int64) (<-chan core.WitEvent, error)

func (*Client) AssistConversation

func (cl *Client) AssistConversation(ctx context.Context, draftID int64, create bool) (int64, error)

func (*Client) AssistSkill

func (cl *Client) AssistSkill(ctx context.Context, draftID int64, skill string, opts core.SkillOptions) (<-chan core.WitEvent, error)

func (*Client) AssistWith

func (cl *Client) AssistWith(ctx context.Context, draftID int64, input string, quoted []int64) (<-chan core.WitEvent, error)

func (*Client) AttachmentCacheUsage

func (cl *Client) AttachmentCacheUsage(ctx context.Context, accountID int64) (int64, error)

func (*Client) AwaitOAuth

func (cl *Client) AwaitOAuth(ctx context.Context, flowID string) (string, error)

func (*Client) BeginOAuth

func (cl *Client) BeginOAuth(ctx context.Context, providerID string, loginHint string, client core.OAuthClient) (string, string, error)

func (*Client) BeginPluginLogin

func (cl *Client) BeginPluginLogin(ctx context.Context, name string) (string, error)

func (*Client) BlockSender

func (cl *Client) BlockSender(ctx context.Context, from string) error

func (*Client) BlockedSenders

func (cl *Client) BlockedSenders(ctx context.Context) ([]string, error)

func (*Client) CachedAttachments added in v1.40.0

func (cl *Client) CachedAttachments(ctx context.Context, attachmentIDs []int64) (map[int64]string, error)

func (*Client) CachedImage

func (cl *Client) CachedImage(ctx context.Context, src string) (core.CachedImageFile, error)

func (*Client) CachedImageDims

func (cl *Client) CachedImageDims(src string) core.ImageDims

func (*Client) CancelOAuth

func (cl *Client) CancelOAuth(flowID string)

func (*Client) CancelOutbox

func (cl *Client) CancelOutbox(ctx context.Context, id int64) error

func (*Client) CancelPluginLogin

func (cl *Client) CancelPluginLogin(ctx context.Context, name string, flow string) error

func (*Client) CancelRun

func (cl *Client) CancelRun(ctx context.Context, runID int64) error

func (*Client) CancelTrayQuit

func (cl *Client) CancelTrayQuit(ctx context.Context) error

func (*Client) CheckAccount

func (cl *Client) CheckAccount(ctx context.Context, in core.AccountInput) (core.CheckReport, error)

func (*Client) CheckModelService

func (cl *Client) CheckModelService(ctx context.Context, id int64, in core.ModelServiceInput) (core.ServiceCheck, error)

func (*Client) ClearAttachmentCache

func (cl *Client) ClearAttachmentCache(ctx context.Context, accountID int64) error

func (*Client) ClearImageCache

func (cl *Client) ClearImageCache() error

func (*Client) ClearMaskingLog

func (cl *Client) ClearMaskingLog(ctx context.Context) error

func (*Client) Close

func (c *Client) Close() error

Close closes the underlying connection; pending calls and streams end with rpc.ErrClosed.

func (*Client) CompactConversation

func (cl *Client) CompactConversation(ctx context.Context, id int64) error

func (*Client) CompleteContacts

func (cl *Client) CompleteContacts(ctx context.Context, query string, limit int) ([]core.ContactCompletion, error)

func (*Client) ConfirmSummaryService added in v1.40.0

func (cl *Client) ConfirmSummaryService(ctx context.Context) error

func (*Client) ContactAvatars added in v1.43.0

func (cl *Client) ContactAvatars(ctx context.Context, addrs []string) ([]core.Avatar, error)

func (*Client) ContactDetail

func (cl *Client) ContactDetail(ctx context.Context, addr string) (core.ContactDetail, error)

func (*Client) ContactMail

func (cl *Client) ContactMail(ctx context.Context, addr string, cursor string, limit int) (core.MessagePage, error)

func (*Client) Contacts

func (cl *Client) Contacts(ctx context.Context) ([]core.Contact, error)

func (*Client) CountAppAndWitDeadlines added in v1.40.0

func (cl *Client) CountAppAndWitDeadlines(ctx context.Context) (int, error)

func (*Client) CountUnrepliedToSummarize added in v1.40.0

func (cl *Client) CountUnrepliedToSummarize(ctx context.Context) (int, error)

func (*Client) CreateLabel

func (cl *Client) CreateLabel(ctx context.Context, in core.LabelInput) (core.Label, error)

func (*Client) CreateLocalFolder

func (cl *Client) CreateLocalFolder(ctx context.Context, accountID int64, name string) (core.Folder, error)

func (*Client) CreateSignature

func (cl *Client) CreateSignature(ctx context.Context, name string) (core.Signature, error)

func (*Client) Delete

func (cl *Client) Delete(ctx context.Context, ids []int64) error

func (*Client) DeleteConversation

func (cl *Client) DeleteConversation(ctx context.Context, id int64) error

func (*Client) DeleteDraft

func (cl *Client) DeleteDraft(ctx context.Context, id int64) error

func (*Client) DeleteDraftIfEmpty

func (cl *Client) DeleteDraftIfEmpty(ctx context.Context, id int64, revision int64) (bool, error)

func (*Client) DeleteForever

func (cl *Client) DeleteForever(ctx context.Context, ids []int64) error

func (*Client) DeleteLabel

func (cl *Client) DeleteLabel(ctx context.Context, id int64) error

func (*Client) DeleteLocalFolder

func (cl *Client) DeleteLocalFolder(ctx context.Context, folderID int64) error

func (*Client) DeleteRule

func (cl *Client) DeleteRule(ctx context.Context, id int64) error

func (*Client) DeleteSignature

func (cl *Client) DeleteSignature(ctx context.Context, id int64) error

func (*Client) DeleteView

func (cl *Client) DeleteView(ctx context.Context, id int64) error

func (*Client) DetectProvider

func (cl *Client) DetectProvider(ctx context.Context, email string) (auth.Provider, auth.Source, error)

func (*Client) DevPreviewSignInCode

func (cl *Client) DevPreviewSignInCode(ctx context.Context, messageID int64, link bool) error

func (*Client) Done

func (c *Client) Done() <-chan struct{}

Done is closed once the underlying connection is gone.

func (*Client) DownloadRecognitionModel

func (c *Client) DownloadRecognitionModel(ctx context.Context, progress func(got, total int64)) error

DownloadRecognitionModel streams byte progress from DownloadRecognitionModelStream.

func (*Client) DraftCounts added in v1.41.0

func (cl *Client) DraftCounts(ctx context.Context) (map[int64]int, error)

func (*Client) DraftForApproval

func (cl *Client) DraftForApproval(ctx context.Context, approvalID int64) (int64, error)

func (*Client) DraftFromQuickReply

func (cl *Client) DraftFromQuickReply(ctx context.Context, messageID int64, r core.QuickReply) (core.Draft, error)

func (*Client) DraftImageFiles added in v1.41.0

func (cl *Client) DraftImageFiles(ctx context.Context, draftID int64, cids []string) ([]core.InlineImage, error)

func (*Client) EditProposedRule

func (cl *Client) EditProposedRule(ctx context.Context, id int64) (core.Rule, error)

func (*Client) EmptyFolder

func (cl *Client) EmptyFolder(ctx context.Context, folderID int64) ([]int64, error)

func (*Client) ExportAccountsFile

func (cl *Client) ExportAccountsFile(ctx context.Context) (string, error)

func (*Client) FailQuestion

func (cl *Client) FailQuestion(ctx context.Context, conv int64, question string, quoted []int64, reason string) error

func (*Client) FetchAttachments

func (c *Client) FetchAttachments(ctx context.Context, attachmentIDs []int64, fn func(path string, info core.AttachmentInfo) error) error

FetchAttachments streams cached disk paths from FetchAttachmentsStream and invokes fn with each local file path in order.

func (*Client) Find

func (cl *Client) Find(ctx context.Context, q core.FindQuery) (core.FindResult, error)

func (*Client) FirstTimeRecipients

func (cl *Client) FirstTimeRecipients(ctx context.Context, addrs []string) ([]string, error)

func (*Client) ForgetImageFailure

func (cl *Client) ForgetImageFailure(urls []string)

func (*Client) GetConversation

func (cl *Client) GetConversation(ctx context.Context, id int64) (core.Conversation, error)

func (*Client) GetDraft

func (cl *Client) GetDraft(ctx context.Context, id int64) (core.Draft, error)

func (*Client) GetMessage

func (cl *Client) GetMessage(ctx context.Context, id int64, loadRemoteImages bool) (core.Message, error)

func (*Client) GetMessageLazyImages

func (cl *Client) GetMessageLazyImages(ctx context.Context, id int64, loadRemoteImages bool) (core.Message, error)

func (*Client) GetMessageText

func (cl *Client) GetMessageText(ctx context.Context, id int64) (core.MessageText, error)

func (*Client) GetPluginConfig

func (cl *Client) GetPluginConfig(ctx context.Context, name string) ([]core.ConfigValue, error)

func (*Client) GetSettings

func (cl *Client) GetSettings(ctx context.Context) (core.Settings, error)

func (*Client) GetThread

func (cl *Client) GetThread(ctx context.Context, id int64) (core.Thread, error)

func (*Client) GrantMCPServer

func (cl *Client) GrantMCPServer(ctx context.Context, id int64) error

func (*Client) GrantPermission

func (cl *Client) GrantPermission(ctx context.Context, name string) error

func (*Client) ImageCacheSize

func (cl *Client) ImageCacheSize() int64

func (*Client) ImagesAllowed

func (cl *Client) ImagesAllowed(ctx context.Context, message int64) (bool, error)

func (*Client) ImportAccountsFile

func (cl *Client) ImportAccountsFile(ctx context.Context, path string, digest string) (core.AccountImportResult, error)

func (*Client) ImportEML

func (cl *Client) ImportEML(ctx context.Context, accountID int64, folderID int64, paths []string) (core.ImportSummary, error)

func (*Client) InlineImages

func (c *Client) InlineImages(ctx context.Context, id int64, each func(cid string, a mail.Attachment)) error

InlineImages streams cached disk paths from InlineImagesStream and reads each inline image file locally without transferring image bytes over the wire.

func (*Client) InlineSignatureImages

func (cl *Client) InlineSignatureImages(ctx context.Context, html string) (string, error)

func (*Client) InstallPlugin

func (cl *Client) InstallPlugin(ctx context.Context, srcDir string) (core.PluginInfo, error)

func (*Client) InstallPluginFromRegistryWithProgress

func (c *Client) InstallPluginFromRegistryWithProgress(ctx context.Context, name string, progress func(core.PluginInstallProgress)) (core.PluginInfo, error)

InstallPluginFromRegistryWithProgress streams progress updates from InstallPluginFromRegistryStream and returns the installed PluginInfo.

func (*Client) KeychainStatus

func (cl *Client) KeychainStatus(ctx context.Context) error

func (*Client) LabelModelReady

func (cl *Client) LabelModelReady(ctx context.Context) bool

func (*Client) ListAccounts

func (cl *Client) ListAccounts(ctx context.Context) ([]core.Account, error)

func (*Client) ListActions

func (cl *Client) ListActions(ctx context.Context, kind string) ([]core.ActionInfo, error)

func (*Client) ListAddressBookPresets

func (cl *Client) ListAddressBookPresets() []core.AddressBookPreset

func (*Client) ListAddressBooks

func (cl *Client) ListAddressBooks(ctx context.Context) ([]core.AddressBook, error)

func (*Client) ListApprovals

func (cl *Client) ListApprovals(ctx context.Context, conversationID int64) ([]core.Approval, error)

func (*Client) ListConversations

func (cl *Client) ListConversations(ctx context.Context, kind string) ([]core.Conversation, error)

func (*Client) ListDrafts

func (cl *Client) ListDrafts(ctx context.Context, accountID int64) ([]core.Draft, error)

func (*Client) ListFolders

func (cl *Client) ListFolders(ctx context.Context, accountID int64) ([]core.Folder, error)

func (*Client) ListLabels

func (cl *Client) ListLabels(ctx context.Context) ([]core.Label, error)

func (*Client) ListMCPServers

func (cl *Client) ListMCPServers(ctx context.Context) ([]core.MCPServer, error)

func (*Client) ListMessages

func (cl *Client) ListMessages(ctx context.Context, v core.View, cursor string, limit int) (core.MessagePage, error)

func (*Client) ListModelServices

func (cl *Client) ListModelServices(ctx context.Context) ([]core.ModelService, error)

func (*Client) ListOutbox

func (cl *Client) ListOutbox(ctx context.Context, accountID int64) ([]core.OutboxItem, error)

func (*Client) ListPluginModels

func (cl *Client) ListPluginModels(ctx context.Context) ([]core.PluginModels, error)

func (*Client) ListPluginRegistry

func (cl *Client) ListPluginRegistry(ctx context.Context) (core.RegistryView, error)

func (*Client) ListPlugins

func (cl *Client) ListPlugins(ctx context.Context) ([]core.PluginInfo, error)

func (*Client) ListProviders

func (cl *Client) ListProviders() []auth.Provider

func (*Client) ListSignatures

func (cl *Client) ListSignatures(ctx context.Context) ([]core.Signature, error)

func (*Client) ListSkills

func (cl *Client) ListSkills(ctx context.Context) ([]core.SkillInfo, error)

func (*Client) ListThreads

func (cl *Client) ListThreads(ctx context.Context, v core.View, cursor string, limit int) (core.ThreadPage, error)

func (*Client) ListTranslators

func (cl *Client) ListTranslators(ctx context.Context) ([]core.TranslatorInfo, error)

func (*Client) LoadOlder

func (cl *Client) LoadOlder(ctx context.Context, folderID int64) (bool, error)

func (*Client) MCPScope added in v1.42.0

func (cl *Client) MCPScope(ctx context.Context) (core.MCPScope, error)

func (*Client) MarkAllAsRead

func (cl *Client) MarkAllAsRead(ctx context.Context, v core.View) (int, error)

func (*Client) MarkViewRead

func (cl *Client) MarkViewRead(ctx context.Context, id int64) (int, error)

func (*Client) MaskingLog

func (cl *Client) MaskingLog(ctx context.Context) ([]core.MaskRecord, error)

func (*Client) MessageExists

func (cl *Client) MessageExists(ctx context.Context, id int64) (bool, error)

func (*Client) MessageGist

func (cl *Client) MessageGist(ctx context.Context, messageID int64) (string, error)

func (*Client) MessageLabels

func (cl *Client) MessageLabels(ctx context.Context, ids []int64) (map[int64][]core.AppliedLabel, error)

func (*Client) ModelName

func (cl *Client) ModelName(ctx context.Context, ref string) string

func (*Client) ModelServiceAvatar

func (cl *Client) ModelServiceAvatar(ctx context.Context, id int64) (core.Avatar, error)

func (*Client) MoveFrom

func (cl *Client) MoveFrom(ctx context.Context, ids []int64, from int64, folderID int64) error

func (*Client) MoveToRole

func (cl *Client) MoveToRole(ctx context.Context, ids []int64, role string) error

func (*Client) NewConversation

func (cl *Client) NewConversation(ctx context.Context, kind string, draftID int64) (core.Conversation, error)

func (*Client) NewDraft

func (cl *Client) NewDraft(ctx context.Context, accountID int64, mode string, sourceMessageID int64) (core.Draft, error)

func (*Client) NewMailtoDraft

func (cl *Client) NewMailtoDraft(ctx context.Context, accountID int64, link string) (core.Draft, error)

func (*Client) OpenThread added in v1.43.0

func (cl *Client) OpenThread(ctx context.Context, threadID int64, messageID int64) (core.OpenedThread, error)

func (*Client) PendingLabels

func (cl *Client) PendingLabels(ctx context.Context) (int, error)

func (*Client) PendingMCPSends

func (cl *Client) PendingMCPSends(ctx context.Context) ([]core.MCPSend, error)

func (*Client) PluginCards

func (cl *Client) PluginCards(ctx context.Context, messageID int64) ([]core.Card, error)

func (*Client) PluginLoginStatus

func (cl *Client) PluginLoginStatus(ctx context.Context, name string) (core.PluginLogin, error)

func (*Client) PluginLogout

func (cl *Client) PluginLogout(ctx context.Context, name string) error

func (*Client) PluginReadme

func (cl *Client) PluginReadme(ctx context.Context, name string, lang string) (string, error)

func (*Client) PluginTags

func (cl *Client) PluginTags(ctx context.Context, messageID int64) ([]core.Tag, error)

func (*Client) PollPluginLogin

func (cl *Client) PollPluginLogin(ctx context.Context, name string, flow string) (core.PluginLoginState, error)

func (*Client) PrepareModelWithProgress

func (c *Client) PrepareModelWithProgress(ctx context.Context, ref string, progress func(core.ModelStatus)) (core.ModelStatus, error)

PrepareModelWithProgress streams status updates from PrepareModelStream and returns the final ModelStatus.

func (*Client) PreviewAccountImportFile

func (cl *Client) PreviewAccountImportFile(ctx context.Context, path string) (core.AccountImportPreview, error)

func (*Client) PreviewMasking

func (cl *Client) PreviewMasking(ctx context.Context, st core.Settings, text string) (string, error)

func (*Client) PreviewRule

func (cl *Client) PreviewRule(ctx context.Context, d core.RuleDoc, limit int) (core.RulePreview, error)

func (*Client) PreviewView

func (cl *Client) PreviewView(ctx context.Context, d core.SavedViewDoc, viewID int64, limit int) (core.ViewContents, error)

func (*Client) ProposedRuleSaved

func (cl *Client) ProposedRuleSaved(ctx context.Context, id int64, r core.Rule) error

func (*Client) Purges

func (cl *Client) Purges(ctx context.Context, accountID int64) (map[string]core.Purge, error)

func (*Client) QuickReplies

func (cl *Client) QuickReplies(ctx context.Context, messageID int64) ([]core.QuickReply, error)

func (*Client) RPC

func (c *Client) RPC() *rpc.Client

RPC returns the underlying JSON-RPC client.

func (*Client) RawMessageFile

func (cl *Client) RawMessageFile(ctx context.Context, messageID int64) (string, error)

func (*Client) ReadingLanguage

func (cl *Client) ReadingLanguage(ctx context.Context) string

func (*Client) Reauthorize

func (cl *Client) Reauthorize(ctx context.Context, id int64, flowID string) error

func (*Client) RecentLog

func (cl *Client) RecentLog() string

func (*Client) RecentSignInCodes

func (cl *Client) RecentSignInCodes(ctx context.Context, now time.Time) ([]core.SignInCode, error)

func (*Client) RecheckSending

func (cl *Client) RecheckSending(ctx context.Context, id int64) (core.CheckReport, error)

func (*Client) RecognitionModelBackend

func (cl *Client) RecognitionModelBackend(ctx context.Context) (*core.RecognitionModelBackend, error)

func (*Client) RecognitionModelError

func (cl *Client) RecognitionModelError() error

func (*Client) RecognitionModelInstalled

func (cl *Client) RecognitionModelInstalled() bool

func (*Client) RecordCapStatus

func (cl *Client) RecordCapStatus(ctx context.Context, id int64, version int64, c string, st core.CapStatus) error

func (*Client) RefreshMCPTools

func (cl *Client) RefreshMCPTools(ctx context.Context, id int64) error

func (*Client) RefreshPluginRegistry

func (cl *Client) RefreshPluginRegistry(ctx context.Context) error

func (*Client) RemoveAccount

func (cl *Client) RemoveAccount(ctx context.Context, id int64) error

func (*Client) RemoveAddressBook

func (cl *Client) RemoveAddressBook(ctx context.Context, id int64) error

func (*Client) RemoveAppAndWitDeadlines added in v1.40.0

func (cl *Client) RemoveAppAndWitDeadlines(ctx context.Context) ([]core.RemovedDeadline, error)

func (*Client) RemoveAttachmentAt

func (cl *Client) RemoveAttachmentAt(ctx context.Context, draftID int64, attachmentID int64, revision int64) (int64, error)

func (*Client) RemoveMCPServer

func (cl *Client) RemoveMCPServer(ctx context.Context, id int64) error

func (*Client) RemoveModelFiles

func (cl *Client) RemoveModelFiles(ctx context.Context, ref string) error

func (*Client) RemoveModelService

func (cl *Client) RemoveModelService(ctx context.Context, id int64) error

func (*Client) RenameAddressBook

func (cl *Client) RenameAddressBook(ctx context.Context, id int64, name string) error

func (*Client) RenameLocalFolder

func (cl *Client) RenameLocalFolder(ctx context.Context, folderID int64, name string) error

func (*Client) ReorderAccountEntries

func (cl *Client) ReorderAccountEntries(ctx context.Context, entries []core.AccountEntry) error

func (*Client) ReorderLabels

func (cl *Client) ReorderLabels(ctx context.Context, ids []int64) error

func (*Client) ReorderRules

func (cl *Client) ReorderRules(ctx context.Context, ids []int64) error

func (*Client) ReplaceUIBackend

func (c *Client) ReplaceUIBackend(ctx context.Context) error

func (*Client) RescanLabels

func (cl *Client) RescanLabels(ctx context.Context, days int, all bool) (int, error)

func (*Client) RescanSecurity

func (cl *Client) RescanSecurity(ctx context.Context, days int, all bool) (int, error)

func (*Client) ResolveAll

func (cl *Client) ResolveAll(ctx context.Context, runID int64, accept bool) error

func (*Client) ResolveApproval

func (cl *Client) ResolveApproval(ctx context.Context, id int64, accept bool) error

func (*Client) ResolveApprovalForConversation

func (cl *Client) ResolveApprovalForConversation(ctx context.Context, id int64) error

func (*Client) ResolveApprovalWithArgs

func (cl *Client) ResolveApprovalWithArgs(ctx context.Context, id int64, accept bool, args json.RawMessage) error

func (*Client) ResolveMCPSend

func (cl *Client) ResolveMCPSend(ctx context.Context, id int64, accept bool) error

func (*Client) ResolveMCPSendAcknowledged

func (cl *Client) ResolveMCPSendAcknowledged(ctx context.Context, id int64, digest string, send bool) error

func (*Client) ResolveOutbox

func (cl *Client) ResolveOutbox(ctx context.Context, id int64, action string) error

func (*Client) RetryRuleRun

func (cl *Client) RetryRuleRun(ctx context.Context, runID int64) error

func (*Client) RewriteSelection

func (cl *Client) RewriteSelection(ctx context.Context, draftID int64, sel core.Selection, instruction string) (<-chan core.WitEvent, error)

func (*Client) RuleHitCounts

func (cl *Client) RuleHitCounts(ctx context.Context) (map[int64]int, error)

func (*Client) RuleHits

func (cl *Client) RuleHits(ctx context.Context, ruleID int64) ([]core.RuleHit, error)

func (*Client) Rules

func (cl *Client) Rules(ctx context.Context) ([]core.Rule, error)

func (*Client) RulesInBackground

func (cl *Client) RulesInBackground(ctx context.Context) (bool, error)

func (*Client) RunAction

func (cl *Client) RunAction(ctx context.Context, id string, t core.Target, opts core.RunActionOptions) (core.ActionResult, error)

func (*Client) RunConversation

func (cl *Client) RunConversation(ctx context.Context, runID int64) (int64, error)

func (*Client) RunRuleOnExisting

func (cl *Client) RunRuleOnExisting(ctx context.Context, ruleID int64) (int, error)

func (*Client) RunSkill

func (cl *Client) RunSkill(ctx context.Context, name string, t core.Target) (<-chan ai.Event, error)

func (*Client) SaveDraft

func (cl *Client) SaveDraft(ctx context.Context, d core.Draft) (core.Draft, error)

func (*Client) SaveRule

func (cl *Client) SaveRule(ctx context.Context, r core.Rule) (int64, error)

func (*Client) SaveView

func (cl *Client) SaveView(ctx context.Context, b core.SavedView) (int64, error)

func (*Client) SavedViews

func (cl *Client) SavedViews(ctx context.Context) ([]core.SavedView, error)

func (*Client) SearchWith

func (cl *Client) SearchWith(ctx context.Context, q core.SearchQuery, limit int) ([]core.MessageSummary, error)

func (*Client) SecurityProgress

func (cl *Client) SecurityProgress(ctx context.Context) (core.SecurityScanProgress, error)

func (*Client) SendAcknowledgedRevision

func (cl *Client) SendAcknowledgedRevision(ctx context.Context, draftID int64, revision int64, digest string) error

func (*Client) SendLater added in v1.39.0

func (cl *Client) SendLater(ctx context.Context, draftID int64, revision int64, at time.Time, digest string) error

func (*Client) SendRevision

func (cl *Client) SendRevision(ctx context.Context, draftID int64, revision int64) error

func (*Client) SenderAvatar

func (cl *Client) SenderAvatar(ctx context.Context, messageID int64, allowRemote bool) (core.Avatar, error)

func (*Client) SetAddressBookCollectionEnabled

func (cl *Client) SetAddressBookCollectionEnabled(ctx context.Context, collectionID int64, enabled bool) error

func (*Client) SetComposeOpen

func (c *Client) SetComposeOpen(ctx context.Context, draftIDs []int64) error

SetComposeOpen, StopUIBackend and ReplaceUIBackend are core.Service's, for the GUI's lifecycle (app does not call them, so they are not generated).

func (*Client) SetConversationModel

func (cl *Client) SetConversationModel(ctx context.Context, id int64, ref string, effort string) error

func (*Client) SetDraftAccount

func (cl *Client) SetDraftAccount(ctx context.Context, id int64, accountID int64, revision int64) (core.Draft, error)

func (*Client) SetDraftModel

func (cl *Client) SetDraftModel(ctx context.Context, draftID int64, model string) error

func (*Client) SetDraftSignature added in v1.41.0

func (cl *Client) SetDraftSignature(ctx context.Context, id int64, signatureID int64, revision int64) (core.Draft, error)

func (*Client) SetFlags

func (cl *Client) SetFlags(ctx context.Context, ids []int64, add []string, remove []string) error

func (*Client) SetLabel

func (cl *Client) SetLabel(ctx context.Context, messageIDs []int64, labelID int64, on bool) error

func (*Client) SetMCPScope added in v1.42.0

func (cl *Client) SetMCPScope(ctx context.Context, sc core.MCPScope) error

func (*Client) SetMCPServerEnabled

func (cl *Client) SetMCPServerEnabled(ctx context.Context, id int64, enabled bool) error

func (*Client) SetMCPToolTrusted

func (cl *Client) SetMCPToolTrusted(ctx context.Context, id int64, tool string, trusted bool) error

func (*Client) SetMessageSecurity

func (cl *Client) SetMessageSecurity(ctx context.Context, messageIDs []int64, reason string) error

func (*Client) SetPluginConfig

func (cl *Client) SetPluginConfig(ctx context.Context, name string, values map[string]json.RawMessage) error

func (*Client) SetPluginEnabled

func (cl *Client) SetPluginEnabled(ctx context.Context, name string, enabled bool) error

func (*Client) SetPurge

func (cl *Client) SetPurge(ctx context.Context, accountID int64, role string, days int) error

func (*Client) SetRoleFolder

func (cl *Client) SetRoleFolder(ctx context.Context, accountID int64, role string, folderID int64) error

func (*Client) SetRuleEnabled

func (cl *Client) SetRuleEnabled(ctx context.Context, id int64, on bool) error

func (*Client) SetSettings

func (cl *Client) SetSettings(ctx context.Context, st core.Settings) (core.Settings, error)

func (*Client) SetSkillEnabled

func (cl *Client) SetSkillEnabled(ctx context.Context, name string, enabled bool) error

func (*Client) SetThreadDeadline added in v1.40.0

func (cl *Client) SetThreadDeadline(ctx context.Context, threadID int64, d core.Deadline) (core.RemovedDeadline, error)

func (*Client) SetUIForeground

func (cl *Client) SetUIForeground(ctx context.Context, on bool) error

func (*Client) SetUIReady

func (c *Client) SetUIReady(ctx context.Context, on bool) error

SetUIReady tells the backend whether this interface takes requests on its events (tray, notification clicks): a starting or quitting one does not.

func (*Client) SetViewException

func (cl *Client) SetViewException(ctx context.Context, id int64, threadID int64, kind string) error

func (*Client) SignatureCode

func (cl *Client) SignatureCode(ctx context.Context, id int64) (string, error)

func (*Client) SignatureEditor

func (cl *Client) SignatureEditor(ctx context.Context, id int64) (string, error)

func (*Client) SignatureShown

func (cl *Client) SignatureShown(ctx context.Context, block string) (string, error)

func (*Client) StarredCounts

func (cl *Client) StarredCounts(ctx context.Context) (map[int64]int, int, error)

func (*Client) StopRescan

func (cl *Client) StopRescan(ctx context.Context) error

func (*Client) StopSecurityRescan

func (cl *Client) StopSecurityRescan(ctx context.Context) error

func (*Client) StopUIBackend

func (c *Client) StopUIBackend(ctx context.Context) error

func (*Client) StoreLatestVersion

func (c *Client) StoreLatestVersion(ctx context.Context) (string, error)

StoreLatestVersion is core.Service's, for the platform's About check (app does not call it, so it is not generated from app.Service).

func (*Client) StoredHTML

func (cl *Client) StoredHTML(ctx context.Context, id int64) (string, error)

func (*Client) StreamErr

func (c *Client) StreamErr(ch any) error

StreamErr reports why a typed stream channel returned by Client closed: nil for a normal end or a caller cancel, rpc.ErrClosed on disconnect, rpc.ErrStreamOverflow if the reader fell behind, or a decoded wire error.

func (*Client) StreamErrs

func (c *Client) StreamErrs() []error

StreamErrs returns every abnormal stream or void-call failure recorded so far.

func (*Client) Subscribe

func (cl *Client) Subscribe() (<-chan events.Event, func())

func (*Client) SubscribeConversation

func (cl *Client) SubscribeConversation(id int64) (<-chan core.WitEvent, func())

func (*Client) SummarizeUnreplied added in v1.40.0

func (cl *Client) SummarizeUnreplied(ctx context.Context) (int, error)

func (*Client) SummaryArrivalState added in v1.40.0

func (cl *Client) SummaryArrivalState(ctx context.Context) (core.SummaryArrival, error)

func (*Client) SyncAddressBook

func (cl *Client) SyncAddressBook(ctx context.Context, id int64) error

func (*Client) SyncNow

func (cl *Client) SyncNow(ctx context.Context, accountID int64) error

func (*Client) SystemLanguage

func (cl *Client) SystemLanguage() string

func (*Client) SystemTranslatorLanguages

func (cl *Client) SystemTranslatorLanguages() []string

func (*Client) TaskModel

func (cl *Client) TaskModel(ctx context.Context, skill string) (string, error)

func (*Client) TestCapability

func (cl *Client) TestCapability(ctx context.Context, id int64, in core.ModelServiceInput, c string) (core.CapStatus, error)

func (*Client) TestPluginModel

func (cl *Client) TestPluginModel(ctx context.Context, ref string) (core.CapStatus, error)

func (*Client) ThreadDeadline added in v1.40.0

func (cl *Client) ThreadDeadline(ctx context.Context, threadID int64) (core.ReaderDeadline, error)

func (*Client) ThreadLabels

func (cl *Client) ThreadLabels(ctx context.Context, threadIDs []int64) (map[int64][]core.AppliedLabel, error)

func (*Client) TrayShown

func (cl *Client) TrayShown(ctx context.Context) (bool, error)

func (*Client) TrustImageSender

func (cl *Client) TrustImageSender(ctx context.Context, from string) error

func (*Client) TrustedImageSenders

func (cl *Client) TrustedImageSenders(ctx context.Context) ([]string, error)

func (*Client) UnblockSender

func (cl *Client) UnblockSender(ctx context.Context, addr string) error

func (*Client) UndoArchive

func (cl *Client) UndoArchive(ctx context.Context, a core.SenderArchive) error

func (*Client) UndoArchiveThreads

func (cl *Client) UndoArchiveThreads(ctx context.Context, u core.ArchiveUndo) error

func (*Client) UndoLastAssist

func (cl *Client) UndoLastAssist(ctx context.Context, draftID int64) error

func (*Client) UndoPurge

func (cl *Client) UndoPurge(ctx context.Context, ids []int64) (int, error)

func (*Client) UndoRemoveAppAndWitDeadlines added in v1.40.0

func (cl *Client) UndoRemoveAppAndWitDeadlines(ctx context.Context, removed []core.RemovedDeadline) error

func (*Client) UndoRuleRun

func (cl *Client) UndoRuleRun(ctx context.Context, runID int64) (int, error)

func (*Client) UndoSetThreadDeadline added in v1.40.0

func (cl *Client) UndoSetThreadDeadline(ctx context.Context, before core.RemovedDeadline) error

func (*Client) UninstallPlugin

func (cl *Client) UninstallPlugin(ctx context.Context, name string) error

func (*Client) Unsubscribe

func (cl *Client) Unsubscribe(ctx context.Context, messageID int64) (core.UnsubscribeResult, error)

func (*Client) UnsubscribeMethod

func (cl *Client) UnsubscribeMethod(ctx context.Context, messageID int64) (core.Unsubscribe, error)

func (*Client) UntrustImageSender

func (cl *Client) UntrustImageSender(ctx context.Context, addr string) error

func (*Client) UpdateAccount

func (cl *Client) UpdateAccount(ctx context.Context, id int64, p core.AccountPatch) (core.Account, error)

func (*Client) UpdateAddressBookAuth

func (cl *Client) UpdateAddressBookAuth(ctx context.Context, id int64, password string, oauthFlowID string, client core.OAuthClient) (core.AddressBook, error)

func (*Client) UpdateLabel

func (cl *Client) UpdateLabel(ctx context.Context, id int64, in core.LabelInput) (core.Label, error)

func (*Client) UpdateMCPServer

func (cl *Client) UpdateMCPServer(ctx context.Context, id int64, in core.MCPServerInput) (core.MCPServer, error)

func (*Client) UpdateModelService

func (cl *Client) UpdateModelService(ctx context.Context, id int64, in core.ModelServiceInput) (core.ModelService, error)

func (*Client) UpdatePassword

func (cl *Client) UpdatePassword(ctx context.Context, id int64, password string) error

func (*Client) UpdateSignature

func (cl *Client) UpdateSignature(ctx context.Context, id int64, p core.SignaturePatch) (core.Signature, error)

func (*Client) ViewContents

func (cl *Client) ViewContents(ctx context.Context, id int64, limit int) (core.ViewContents, error)

func (*Client) ViewExceptions

func (cl *Client) ViewExceptions(ctx context.Context, id int64) ([]core.ViewException, error)

func (*Client) ViewGroupPage

func (cl *Client) ViewGroupPage(ctx context.Context, id int64, groupID string, cursor string, limit int) (core.ViewGroupPage, error)

func (*Client) ViewTemplates

func (cl *Client) ViewTemplates(ctx context.Context) ([]core.ViewTemplate, error)

func (*Client) ViewWhy

func (cl *Client) ViewWhy(ctx context.Context, id int64, threadID int64) (core.ViewReason, error)

Directories

Path Synopsis
cmd
gen command
Command gen regenerates uiclient/client_gen.go from app/service.go and webui/service.go.
Command gen regenerates uiclient/client_gen.go from app/service.go and webui/service.go.

Jump to

Keyboard shortcuts

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