Documentation
¶
Overview ¶
Package uiclient implements the UI's Service interfaces over the Local API socket under the ui role.
Index ¶
- func Generate(appServicePath, webuiServicePath string) ([]byte, error)
- type Client
- func (cl *Client) AccountIcon(ctx context.Context, id int64) (core.AccountIcon, error)
- func (cl *Client) AddAccount(ctx context.Context, in core.AccountInput) (core.Account, error)
- func (cl *Client) AddAddressBook(ctx context.Context, in core.AddressBookInput) (core.AddressBook, error)
- func (cl *Client) AddAttachmentAt(ctx context.Context, draftID int64, revision int64, srcPath string, ...) (core.DraftAttachment, int64, error)
- func (cl *Client) AddIdentity(ctx context.Context, accountID int64, in core.IdentityInput) (core.Identity, error)
- func (cl *Client) AddLocalArchive(ctx context.Context, name string) (core.Account, error)
- func (cl *Client) AddMCPServer(ctx context.Context, in core.MCPServerInput) (core.MCPServer, error)
- func (cl *Client) AddModelService(ctx context.Context, in core.ModelServiceInput) (core.ModelService, error)
- func (cl *Client) AllAccountLabels(ctx context.Context) (map[int64][]core.Label, error)
- func (cl *Client) AnswerQuestion(ctx context.Context, id int64, round int, answers [][]string) error
- func (cl *Client) ApplyEditedProposal(ctx context.Context, approvalID int64, edited string) error
- func (cl *Client) ApproveDraft(ctx context.Context, draftID int64, revision int64) error
- func (cl *Client) ArchiveMessages(ctx context.Context, ids []int64, folderID int64) (core.ArchiveUndo, error)
- func (cl *Client) ArchiveSender(ctx context.Context, addr string) (core.SenderArchive, error)
- func (cl *Client) ArchiveThreads(ctx context.Context, threadIDs []int64) (core.ArchiveUndo, error)
- func (cl *Client) ArchiveUsage(ctx context.Context, accountID int64) (int64, error)
- func (cl *Client) AskAgain(ctx context.Context, conversationID int64, turn string, input string, ...) (<-chan core.WitEvent, error)
- func (cl *Client) AskWith(ctx context.Context, conversationID int64, input string, quoted []int64) (<-chan core.WitEvent, error)
- func (cl *Client) AssistConversation(ctx context.Context, draftID int64, create bool) (int64, error)
- func (cl *Client) AssistSkill(ctx context.Context, draftID int64, skill string, opts core.SkillOptions) (<-chan core.WitEvent, error)
- func (cl *Client) AssistWith(ctx context.Context, draftID int64, input string, quoted []int64) (<-chan core.WitEvent, error)
- func (cl *Client) AttachmentCacheUsage(ctx context.Context, accountID int64) (int64, error)
- func (cl *Client) AwaitOAuth(ctx context.Context, flowID string) (string, error)
- func (cl *Client) BeginOAuth(ctx context.Context, providerID string, loginHint string, ...) (string, string, error)
- func (cl *Client) BeginPluginLogin(ctx context.Context, name string) (string, error)
- func (cl *Client) BlockSender(ctx context.Context, from string) error
- func (cl *Client) BlockedSenders(ctx context.Context) ([]string, error)
- func (cl *Client) CachedAttachments(ctx context.Context, attachmentIDs []int64) (map[int64]string, error)
- func (cl *Client) CachedImage(ctx context.Context, src string) (core.CachedImageFile, error)
- func (cl *Client) CachedImageDims(src string) core.ImageDims
- func (cl *Client) CancelOAuth(flowID string)
- func (cl *Client) CancelOutbox(ctx context.Context, id int64) error
- func (cl *Client) CancelPluginLogin(ctx context.Context, name string, flow string) error
- func (cl *Client) CancelRun(ctx context.Context, runID int64) error
- func (cl *Client) CancelTrayQuit(ctx context.Context) error
- func (cl *Client) CheckAccount(ctx context.Context, in core.AccountInput) (core.CheckReport, error)
- func (cl *Client) CheckModelService(ctx context.Context, id int64, in core.ModelServiceInput) (core.ServiceCheck, error)
- func (cl *Client) ClearAttachmentCache(ctx context.Context, accountID int64) error
- func (cl *Client) ClearImageCache() error
- func (cl *Client) ClearMaskingLog(ctx context.Context) error
- func (c *Client) Close() error
- func (cl *Client) CompactConversation(ctx context.Context, id int64) error
- func (cl *Client) CompleteContacts(ctx context.Context, query string, limit int) ([]core.ContactCompletion, error)
- func (cl *Client) ConfirmSummaryService(ctx context.Context) error
- func (cl *Client) ContactAvatars(ctx context.Context, addrs []string) ([]core.Avatar, error)
- func (cl *Client) ContactDetail(ctx context.Context, addr string) (core.ContactDetail, error)
- func (cl *Client) ContactMail(ctx context.Context, addr string, cursor string, limit int) (core.MessagePage, error)
- func (cl *Client) Contacts(ctx context.Context) ([]core.Contact, error)
- func (cl *Client) CountAppAndWitDeadlines(ctx context.Context) (int, error)
- func (cl *Client) CountUnrepliedToSummarize(ctx context.Context) (int, error)
- func (cl *Client) CreateLabel(ctx context.Context, in core.LabelInput) (core.Label, error)
- func (cl *Client) CreateLocalFolder(ctx context.Context, accountID int64, name string) (core.Folder, error)
- func (cl *Client) CreateSignature(ctx context.Context, name string) (core.Signature, error)
- func (cl *Client) CreateSimpleLoginAlias(ctx context.Context, in core.SimpleLoginAliasInput) (core.SimpleLoginAlias, error)
- func (cl *Client) Delete(ctx context.Context, ids []int64) error
- func (cl *Client) DeleteConversation(ctx context.Context, id int64) error
- func (cl *Client) DeleteDraft(ctx context.Context, id int64) error
- func (cl *Client) DeleteDraftIfEmpty(ctx context.Context, id int64, revision int64) (bool, error)
- func (cl *Client) DeleteForever(ctx context.Context, ids []int64) error
- func (cl *Client) DeleteLabel(ctx context.Context, id int64) error
- func (cl *Client) DeleteLocalFolder(ctx context.Context, folderID int64) error
- func (cl *Client) DeleteRule(ctx context.Context, id int64) error
- func (cl *Client) DeleteSignature(ctx context.Context, id int64) error
- func (cl *Client) DeleteView(ctx context.Context, id int64) error
- func (cl *Client) DetectProvider(ctx context.Context, email string) (auth.Provider, auth.Source, error)
- func (cl *Client) DevPreviewSignInCode(ctx context.Context, messageID int64, link bool) error
- func (c *Client) Done() <-chan struct{}
- func (c *Client) DownloadRecognitionModel(ctx context.Context, progress func(got, total int64)) error
- func (cl *Client) DraftAttachmentFiles(ctx context.Context, draftID int64, attachmentIDs []int64) ([]core.DraftFile, error)
- func (cl *Client) DraftCounts(ctx context.Context) (map[int64]int, error)
- func (cl *Client) DraftForApproval(ctx context.Context, approvalID int64) (int64, error)
- func (cl *Client) DraftFromQuickReply(ctx context.Context, messageID int64, r core.QuickReply) (core.Draft, error)
- func (cl *Client) DraftImageFiles(ctx context.Context, draftID int64, cids []string) ([]core.InlineImage, error)
- func (cl *Client) EditProposedRule(ctx context.Context, id int64) (core.Rule, error)
- func (cl *Client) EmptyFolder(ctx context.Context, folderID int64) ([]int64, error)
- func (cl *Client) ExportAccountsFile(ctx context.Context) (string, error)
- func (cl *Client) FailQuestion(ctx context.Context, conv int64, question string, quoted []int64, ...) error
- func (c *Client) FetchAttachments(ctx context.Context, attachmentIDs []int64, ...) error
- func (cl *Client) Find(ctx context.Context, q core.FindQuery) (core.FindResult, error)
- func (cl *Client) FirstTimeRecipients(ctx context.Context, addrs []string) ([]string, error)
- func (cl *Client) ForgetImageFailure(urls []string)
- func (cl *Client) GetConversation(ctx context.Context, id int64) (core.Conversation, error)
- func (cl *Client) GetDraft(ctx context.Context, id int64) (core.Draft, error)
- func (cl *Client) GetMessage(ctx context.Context, id int64, loadRemoteImages bool) (core.Message, error)
- func (cl *Client) GetMessageLazyImages(ctx context.Context, id int64, loadRemoteImages bool) (core.Message, error)
- func (cl *Client) GetMessageText(ctx context.Context, id int64) (core.MessageText, error)
- func (cl *Client) GetPluginConfig(ctx context.Context, name string) ([]core.ConfigValue, error)
- func (cl *Client) GetSettings(ctx context.Context) (core.Settings, error)
- func (cl *Client) GetThread(ctx context.Context, id int64) (core.Thread, error)
- func (cl *Client) GrantMCPServer(ctx context.Context, id int64) error
- func (cl *Client) GrantPermission(ctx context.Context, name string) error
- func (cl *Client) ImageCacheSize() int64
- func (cl *Client) ImagesAllowed(ctx context.Context, message int64) (bool, error)
- func (cl *Client) ImportAccountsFile(ctx context.Context, path string, digest string) (core.AccountImportResult, error)
- func (cl *Client) ImportEML(ctx context.Context, accountID int64, folderID int64, paths []string) (core.ImportSummary, error)
- func (c *Client) InlineImages(ctx context.Context, id int64, each func(cid string, a mail.Attachment)) error
- func (cl *Client) InlineSignatureImages(ctx context.Context, html string) (string, error)
- func (cl *Client) InstallPlugin(ctx context.Context, srcDir string) (core.PluginInfo, error)
- func (c *Client) InstallPluginFromRegistryWithProgress(ctx context.Context, name string, progress func(core.PluginInstallProgress)) (core.PluginInfo, error)
- func (cl *Client) KeychainStatus(ctx context.Context) error
- func (cl *Client) LabelModelReady(ctx context.Context) bool
- func (cl *Client) ListAccounts(ctx context.Context) ([]core.Account, error)
- func (cl *Client) ListActions(ctx context.Context, kind string) ([]core.ActionInfo, error)
- func (cl *Client) ListAddressBookPresets() []core.AddressBookPreset
- func (cl *Client) ListAddressBooks(ctx context.Context) ([]core.AddressBook, error)
- func (cl *Client) ListApprovals(ctx context.Context, conversationID int64) ([]core.Approval, error)
- func (cl *Client) ListConversations(ctx context.Context, kind string) ([]core.Conversation, error)
- func (cl *Client) ListDrafts(ctx context.Context, accountID int64) ([]core.Draft, error)
- func (cl *Client) ListFolders(ctx context.Context, accountID int64) ([]core.Folder, error)
- func (cl *Client) ListIdentities(ctx context.Context, accountID int64) ([]core.Identity, error)
- func (cl *Client) ListLabels(ctx context.Context) ([]core.Label, error)
- func (cl *Client) ListMCPServers(ctx context.Context) ([]core.MCPServer, error)
- func (cl *Client) ListMessages(ctx context.Context, v core.View, cursor string, limit int) (core.MessagePage, error)
- func (cl *Client) ListModelServices(ctx context.Context) ([]core.ModelService, error)
- func (cl *Client) ListOutbox(ctx context.Context, accountID int64) ([]core.OutboxItem, error)
- func (cl *Client) ListPluginModels(ctx context.Context) ([]core.PluginModels, error)
- func (cl *Client) ListPluginRegistry(ctx context.Context) (core.RegistryView, error)
- func (cl *Client) ListPlugins(ctx context.Context) ([]core.PluginInfo, error)
- func (cl *Client) ListProviders() []auth.Provider
- func (cl *Client) ListSignatures(ctx context.Context) ([]core.Signature, error)
- func (cl *Client) ListSimpleLoginAliases(ctx context.Context, accountID int64) ([]core.SimpleLoginAlias, error)
- func (cl *Client) ListSkills(ctx context.Context) ([]core.SkillInfo, error)
- func (cl *Client) ListThreads(ctx context.Context, v core.View, cursor string, limit int) (core.ThreadPage, error)
- func (cl *Client) ListTranslators(ctx context.Context) ([]core.TranslatorInfo, error)
- func (cl *Client) LoadOlder(ctx context.Context, folderID int64) (bool, error)
- func (cl *Client) MCPScope(ctx context.Context) (core.MCPScope, error)
- func (cl *Client) MailboxUnread(ctx context.Context) (map[int64]int, error)
- func (cl *Client) MarkAllAsRead(ctx context.Context, v core.View) (int, error)
- func (cl *Client) MarkViewRead(ctx context.Context, id int64) (int, error)
- func (cl *Client) MaskingLog(ctx context.Context) ([]core.MaskRecord, error)
- func (cl *Client) MessageExists(ctx context.Context, id int64) (bool, error)
- func (cl *Client) MessageGist(ctx context.Context, messageID int64) (string, error)
- func (cl *Client) MessageLabels(ctx context.Context, ids []int64) (map[int64][]core.AppliedLabel, error)
- func (cl *Client) ModelName(ctx context.Context, ref string) string
- func (cl *Client) ModelServiceAvatar(ctx context.Context, id int64) (core.Avatar, error)
- func (cl *Client) MoveFrom(ctx context.Context, ids []int64, from int64, folderID int64) error
- func (cl *Client) MoveToRole(ctx context.Context, ids []int64, role string) error
- func (cl *Client) NewConversation(ctx context.Context, kind string, draftID int64) (core.Conversation, error)
- func (cl *Client) NewDraft(ctx context.Context, accountID int64, mode string, sourceMessageID int64) (core.Draft, error)
- func (cl *Client) NewMailtoDraft(ctx context.Context, accountID int64, link string) (core.Draft, error)
- func (cl *Client) OpenThread(ctx context.Context, threadID int64, messageID int64) (core.OpenedThread, error)
- func (cl *Client) PendingLabels(ctx context.Context) (int, error)
- func (cl *Client) PendingMCPSends(ctx context.Context) ([]core.MCPSend, error)
- func (cl *Client) PluginCards(ctx context.Context, messageID int64) ([]core.Card, error)
- func (cl *Client) PluginLoginStatus(ctx context.Context, name string) (core.PluginLogin, error)
- func (cl *Client) PluginLogout(ctx context.Context, name string) error
- func (cl *Client) PluginReadme(ctx context.Context, name string, lang string) (string, error)
- func (cl *Client) PluginTags(ctx context.Context, messageID int64) ([]core.Tag, error)
- func (cl *Client) PollPluginLogin(ctx context.Context, name string, flow string) (core.PluginLoginState, error)
- func (c *Client) PrepareModelWithProgress(ctx context.Context, ref string, progress func(core.ModelStatus)) (core.ModelStatus, error)
- func (cl *Client) PreviewAccountImportFile(ctx context.Context, path string) (core.AccountImportPreview, error)
- func (cl *Client) PreviewMasking(ctx context.Context, st core.Settings, text string) (string, error)
- func (cl *Client) PreviewRule(ctx context.Context, d core.RuleDoc, limit int) (core.RulePreview, error)
- func (cl *Client) PreviewView(ctx context.Context, d core.SavedViewDoc, viewID int64, limit int) (core.ViewContents, error)
- func (cl *Client) ProposedRuleSaved(ctx context.Context, id int64, r core.Rule) error
- func (cl *Client) Purges(ctx context.Context, accountID int64) (map[string]core.Purge, error)
- func (cl *Client) QuickReplies(ctx context.Context, messageID int64) ([]core.QuickReply, error)
- func (c *Client) RPC() *rpc.Client
- func (cl *Client) RawMessageFile(ctx context.Context, messageID int64) (string, error)
- func (cl *Client) ReadingLanguage(ctx context.Context) string
- func (cl *Client) Reauthorize(ctx context.Context, id int64, flowID string) error
- func (cl *Client) RecentLog() string
- func (cl *Client) RecentSignInCodes(ctx context.Context, now time.Time) ([]core.SignInCode, error)
- func (cl *Client) RecheckSending(ctx context.Context, id int64) (core.CheckReport, error)
- func (cl *Client) RecognitionModelBackend(ctx context.Context) (*core.RecognitionModelBackend, error)
- func (cl *Client) RecognitionModelError() error
- func (cl *Client) RecognitionModelInstalled() bool
- func (cl *Client) RecordCapStatus(ctx context.Context, id int64, version int64, c string, st core.CapStatus) error
- func (cl *Client) RefreshMCPTools(ctx context.Context, id int64) error
- func (cl *Client) RefreshPluginRegistry(ctx context.Context) error
- func (cl *Client) RefreshSimpleLogin(ctx context.Context) (core.SimpleLoginState, error)
- func (cl *Client) RemoveAccount(ctx context.Context, id int64) error
- func (cl *Client) RemoveAddressBook(ctx context.Context, id int64) error
- func (cl *Client) RemoveAppAndWitDeadlines(ctx context.Context) ([]core.RemovedDeadline, error)
- func (cl *Client) RemoveAttachmentAt(ctx context.Context, draftID int64, attachmentID int64, revision int64) (int64, error)
- func (cl *Client) RemoveIdentity(ctx context.Context, id int64) error
- func (cl *Client) RemoveMCPServer(ctx context.Context, id int64) error
- func (cl *Client) RemoveModelFiles(ctx context.Context, ref string) error
- func (cl *Client) RemoveModelService(ctx context.Context, id int64) error
- func (cl *Client) RenameAddressBook(ctx context.Context, id int64, name string) error
- func (cl *Client) RenameLocalFolder(ctx context.Context, folderID int64, name string) error
- func (cl *Client) ReorderAccountEntries(ctx context.Context, entries []core.AccountEntry) error
- func (cl *Client) ReorderLabels(ctx context.Context, ids []int64) error
- func (cl *Client) ReorderRules(ctx context.Context, ids []int64) error
- func (c *Client) ReplaceUIBackend(ctx context.Context) error
- func (cl *Client) RescanLabels(ctx context.Context, days int, all bool) (int, error)
- func (cl *Client) RescanSecurity(ctx context.Context, days int, all bool) (int, error)
- func (cl *Client) ResolveAll(ctx context.Context, runID int64, accept bool) error
- func (cl *Client) ResolveApproval(ctx context.Context, id int64, accept bool) error
- func (cl *Client) ResolveApprovalForConversation(ctx context.Context, id int64) error
- func (cl *Client) ResolveApprovalWithArgs(ctx context.Context, id int64, accept bool, args json.RawMessage) error
- func (cl *Client) ResolveMCPSend(ctx context.Context, id int64, accept bool) error
- func (cl *Client) ResolveMCPSendAcknowledged(ctx context.Context, id int64, digest string, send bool) error
- func (cl *Client) ResolveOutbox(ctx context.Context, id int64, action string) error
- func (cl *Client) RetryRuleRun(ctx context.Context, runID int64) error
- func (cl *Client) RewriteSelection(ctx context.Context, draftID int64, sel core.Selection, instruction string) (<-chan core.WitEvent, error)
- func (cl *Client) RuleHitCounts(ctx context.Context) (map[int64]int, error)
- func (cl *Client) RuleHits(ctx context.Context, ruleID int64) ([]core.RuleHit, error)
- func (cl *Client) Rules(ctx context.Context) ([]core.Rule, error)
- func (cl *Client) RulesInBackground(ctx context.Context) (bool, error)
- func (cl *Client) RunAction(ctx context.Context, id string, t core.Target, opts core.RunActionOptions) (core.ActionResult, error)
- func (cl *Client) RunConversation(ctx context.Context, runID int64) (int64, error)
- func (cl *Client) RunRuleOnExisting(ctx context.Context, ruleID int64) (int, error)
- func (cl *Client) RunSkill(ctx context.Context, name string, t core.Target) (<-chan ai.Event, error)
- func (cl *Client) SaveDraft(ctx context.Context, d core.Draft) (core.Draft, error)
- func (cl *Client) SaveRule(ctx context.Context, r core.Rule) (int64, error)
- func (cl *Client) SaveView(ctx context.Context, b core.SavedView) (int64, error)
- func (cl *Client) SavedViews(ctx context.Context) ([]core.SavedView, error)
- func (cl *Client) SearchWith(ctx context.Context, q core.SearchQuery, limit int) ([]core.MessageSummary, error)
- func (cl *Client) SecurityProgress(ctx context.Context) (core.SecurityScanProgress, error)
- func (cl *Client) SendAcknowledgedRevision(ctx context.Context, draftID int64, revision int64, digest string) error
- func (cl *Client) SendLater(ctx context.Context, draftID int64, revision int64, at time.Time, ...) error
- func (cl *Client) SendRevision(ctx context.Context, draftID int64, revision int64) error
- func (cl *Client) SenderAvatar(ctx context.Context, messageID int64, allowRemote bool) (core.Avatar, error)
- func (cl *Client) SetAddressBookCollectionEnabled(ctx context.Context, collectionID int64, enabled bool) error
- func (c *Client) SetComposeOpen(ctx context.Context, draftIDs []int64) error
- func (cl *Client) SetConversationModel(ctx context.Context, id int64, ref string, effort string) error
- func (cl *Client) SetDraftAccount(ctx context.Context, id int64, accountID int64, revision int64) (core.Draft, error)
- func (cl *Client) SetDraftFrom(ctx context.Context, id int64, accountID int64, identityID int64, ...) (core.Draft, error)
- func (cl *Client) SetDraftModel(ctx context.Context, draftID int64, model string) error
- func (cl *Client) SetDraftSignature(ctx context.Context, id int64, signatureID int64, revision int64) (core.Draft, error)
- func (cl *Client) SetDraftSimpleLoginAlias(ctx context.Context, draftID int64, aliasID int64, revision int64) (core.Draft, error)
- func (cl *Client) SetFlags(ctx context.Context, ids []int64, add []string, remove []string) error
- func (cl *Client) SetLabel(ctx context.Context, messageIDs []int64, labelID int64, on bool) error
- func (cl *Client) SetMCPScope(ctx context.Context, sc core.MCPScope) error
- func (cl *Client) SetMCPServerEnabled(ctx context.Context, id int64, enabled bool) error
- func (cl *Client) SetMCPToolTrusted(ctx context.Context, id int64, tool string, trusted bool) error
- func (cl *Client) SetMessageSecurity(ctx context.Context, messageIDs []int64, reason string) error
- func (cl *Client) SetPluginConfig(ctx context.Context, name string, values map[string]json.RawMessage) error
- func (cl *Client) SetPluginEnabled(ctx context.Context, name string, enabled bool) error
- func (cl *Client) SetPurge(ctx context.Context, accountID int64, role string, days int) error
- func (cl *Client) SetRoleFolder(ctx context.Context, accountID int64, role string, folderID int64) error
- func (cl *Client) SetRuleEnabled(ctx context.Context, id int64, on bool) error
- func (cl *Client) SetSettings(ctx context.Context, st core.Settings) (core.Settings, error)
- func (cl *Client) SetSimpleLogin(ctx context.Context, in core.SimpleLoginSetup) (core.SimpleLoginState, error)
- func (cl *Client) SetSimpleLoginMailbox(ctx context.Context, mode string) (core.SimpleLoginState, error)
- func (cl *Client) SetSkillEnabled(ctx context.Context, name string, enabled bool) error
- func (cl *Client) SetThreadDeadline(ctx context.Context, threadID int64, d core.Deadline) (core.RemovedDeadline, error)
- func (cl *Client) SetUIForeground(ctx context.Context, on bool) error
- func (c *Client) SetUIReady(ctx context.Context, on bool) error
- func (cl *Client) SetViewException(ctx context.Context, id int64, threadID int64, kind string) error
- func (cl *Client) SignatureCode(ctx context.Context, id int64) (string, error)
- func (cl *Client) SignatureEditor(ctx context.Context, id int64) (string, error)
- func (cl *Client) SignatureShown(ctx context.Context, block string) (string, error)
- func (cl *Client) SimpleLogin(ctx context.Context) (core.SimpleLoginState, error)
- func (cl *Client) SimpleLoginAliasOptions(ctx context.Context, hostname string) (core.SimpleLoginAliasOptions, error)
- func (cl *Client) SimpleLoginMailboxes(ctx context.Context) ([]core.SimpleLoginBox, error)
- func (cl *Client) StarredCounts(ctx context.Context) (map[int64]int, int, error)
- func (cl *Client) StopRescan(ctx context.Context) error
- func (cl *Client) StopSecurityRescan(ctx context.Context) error
- func (c *Client) StopUIBackend(ctx context.Context) error
- func (c *Client) StoreLatestVersion(ctx context.Context) (string, error)
- func (cl *Client) StoredHTML(ctx context.Context, id int64) (string, error)
- func (c *Client) StreamErr(ch any) error
- func (c *Client) StreamErrs() []error
- func (cl *Client) Subscribe() (<-chan events.Event, func())
- func (cl *Client) SubscribeConversation(id int64) (<-chan core.WitEvent, func())
- func (cl *Client) SummarizeUnreplied(ctx context.Context) (int, error)
- func (cl *Client) SummaryArrivalState(ctx context.Context) (core.SummaryArrival, error)
- func (cl *Client) SwitchToGraph(ctx context.Context, id int64) (core.Account, error)
- func (cl *Client) SyncAddressBook(ctx context.Context, id int64) error
- func (cl *Client) SyncNow(ctx context.Context, accountID int64) error
- func (cl *Client) SystemLanguage() string
- func (cl *Client) SystemTranslatorLanguages() []string
- func (cl *Client) TaskModel(ctx context.Context, skill string) (string, error)
- func (cl *Client) TestCapability(ctx context.Context, id int64, in core.ModelServiceInput, c string) (core.CapStatus, error)
- func (cl *Client) TestPluginModel(ctx context.Context, ref string) (core.CapStatus, error)
- func (cl *Client) ThreadDeadline(ctx context.Context, threadID int64) (core.ReaderDeadline, error)
- func (cl *Client) ThreadLabels(ctx context.Context, threadIDs []int64) (map[int64][]core.AppliedLabel, error)
- func (cl *Client) ToggleSimpleLoginAlias(ctx context.Context, aliasID int64, enabled bool) (core.SimpleLoginAlias, error)
- func (cl *Client) TrayShown(ctx context.Context) (bool, error)
- func (cl *Client) TrustImageSender(ctx context.Context, from string) error
- func (cl *Client) TrustedImageSenders(ctx context.Context) ([]string, error)
- func (cl *Client) UnblockSender(ctx context.Context, addr string) error
- func (cl *Client) UndoArchive(ctx context.Context, a core.SenderArchive) error
- func (cl *Client) UndoArchiveThreads(ctx context.Context, u core.ArchiveUndo) error
- func (cl *Client) UndoLastAssist(ctx context.Context, draftID int64) error
- func (cl *Client) UndoPurge(ctx context.Context, ids []int64) (int, error)
- func (cl *Client) UndoRemoveAppAndWitDeadlines(ctx context.Context, removed []core.RemovedDeadline) error
- func (cl *Client) UndoRuleRun(ctx context.Context, runID int64) (int, error)
- func (cl *Client) UndoSetThreadDeadline(ctx context.Context, before core.RemovedDeadline) error
- func (cl *Client) UninstallPlugin(ctx context.Context, name string) error
- func (cl *Client) Unsubscribe(ctx context.Context, messageID int64) (core.UnsubscribeResult, error)
- func (cl *Client) UnsubscribeMethod(ctx context.Context, messageID int64) (core.Unsubscribe, error)
- func (cl *Client) UntrustImageSender(ctx context.Context, addr string) error
- func (cl *Client) UpdateAccount(ctx context.Context, id int64, p core.AccountPatch) (core.Account, error)
- func (cl *Client) UpdateAddressBookAuth(ctx context.Context, id int64, password string, oauthFlowID string, ...) (core.AddressBook, error)
- func (cl *Client) UpdateIdentity(ctx context.Context, id int64, p core.IdentityPatch) (core.Identity, error)
- func (cl *Client) UpdateLabel(ctx context.Context, id int64, in core.LabelInput) (core.Label, error)
- func (cl *Client) UpdateMCPServer(ctx context.Context, id int64, in core.MCPServerInput) (core.MCPServer, error)
- func (cl *Client) UpdateModelService(ctx context.Context, id int64, in core.ModelServiceInput) (core.ModelService, error)
- func (cl *Client) UpdatePassword(ctx context.Context, id int64, password string) error
- func (cl *Client) UpdateSignature(ctx context.Context, id int64, p core.SignaturePatch) (core.Signature, error)
- func (cl *Client) ViewContents(ctx context.Context, id int64, limit int) (core.ViewContents, error)
- func (cl *Client) ViewExceptions(ctx context.Context, id int64) ([]core.ViewException, error)
- func (cl *Client) ViewGroupPage(ctx context.Context, id int64, groupID string, cursor string, limit int) (core.ViewGroupPage, error)
- func (cl *Client) ViewTemplates(ctx context.Context) ([]core.ViewTemplate, error)
- func (cl *Client) ViewWhy(ctx context.Context, id int64, threadID int64) (core.ViewReason, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client calls *core.Service over a RoleUI JSON-RPC connection.
func (*Client) AccountIcon ¶
func (*Client) AddAccount ¶
func (*Client) AddAddressBook ¶
func (cl *Client) AddAddressBook(ctx context.Context, in core.AddressBookInput) (core.AddressBook, error)
func (*Client) AddAttachmentAt ¶
func (*Client) AddIdentity ¶ added in v1.44.0
func (*Client) AddLocalArchive ¶
func (*Client) AddMCPServer ¶
func (*Client) AddModelService ¶
func (cl *Client) AddModelService(ctx context.Context, in core.ModelServiceInput) (core.ModelService, error)
func (*Client) AllAccountLabels ¶
func (*Client) AnswerQuestion ¶
func (*Client) ApplyEditedProposal ¶
func (*Client) ApproveDraft ¶ added in v1.39.0
func (*Client) ArchiveMessages ¶
func (*Client) ArchiveSender ¶
func (*Client) ArchiveThreads ¶
func (*Client) ArchiveUsage ¶
func (*Client) AssistConversation ¶
func (*Client) AssistSkill ¶
func (*Client) AssistWith ¶
func (*Client) AttachmentCacheUsage ¶
func (*Client) AwaitOAuth ¶
func (*Client) BeginOAuth ¶
func (*Client) BeginPluginLogin ¶
func (*Client) BlockedSenders ¶
func (*Client) CachedAttachments ¶ added in v1.40.0
func (*Client) CachedImage ¶
func (*Client) CancelOAuth ¶
func (*Client) CancelPluginLogin ¶
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 (*Client) ClearImageCache ¶
func (*Client) Close ¶
Close closes the underlying connection; pending calls and streams end with rpc.ErrClosed.
func (*Client) CompactConversation ¶
func (*Client) CompleteContacts ¶
func (*Client) ConfirmSummaryService ¶ added in v1.40.0
func (*Client) ContactAvatars ¶ added in v1.43.0
func (*Client) ContactDetail ¶
func (*Client) ContactMail ¶
func (*Client) CountAppAndWitDeadlines ¶ added in v1.40.0
func (*Client) CountUnrepliedToSummarize ¶ added in v1.40.0
func (*Client) CreateLabel ¶
func (*Client) CreateLocalFolder ¶
func (*Client) CreateSignature ¶
func (*Client) CreateSimpleLoginAlias ¶ added in v1.44.0
func (cl *Client) CreateSimpleLoginAlias(ctx context.Context, in core.SimpleLoginAliasInput) (core.SimpleLoginAlias, error)
func (*Client) DeleteConversation ¶
func (*Client) DeleteDraftIfEmpty ¶
func (*Client) DeleteForever ¶
func (*Client) DeleteLocalFolder ¶
func (*Client) DeleteSignature ¶
func (*Client) DetectProvider ¶
func (*Client) DevPreviewSignInCode ¶
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) DraftAttachmentFiles ¶ added in v1.44.0
func (*Client) DraftCounts ¶ added in v1.41.0
func (*Client) DraftForApproval ¶
func (*Client) DraftFromQuickReply ¶
func (*Client) DraftImageFiles ¶ added in v1.41.0
func (*Client) EditProposedRule ¶
func (*Client) EmptyFolder ¶
func (*Client) ExportAccountsFile ¶
func (*Client) FailQuestion ¶
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) FirstTimeRecipients ¶
func (*Client) ForgetImageFailure ¶
func (*Client) GetConversation ¶
func (*Client) GetMessage ¶
func (*Client) GetMessageLazyImages ¶
func (*Client) GetMessageText ¶
func (*Client) GetPluginConfig ¶
func (*Client) GetSettings ¶
func (*Client) GrantMCPServer ¶
func (*Client) GrantPermission ¶
func (*Client) ImageCacheSize ¶
func (*Client) ImagesAllowed ¶
func (*Client) ImportAccountsFile ¶
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 (*Client) InstallPlugin ¶
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) ListAccounts ¶
func (*Client) ListActions ¶
func (*Client) ListAddressBookPresets ¶
func (cl *Client) ListAddressBookPresets() []core.AddressBookPreset
func (*Client) ListAddressBooks ¶
func (*Client) ListApprovals ¶
func (*Client) ListConversations ¶
func (*Client) ListDrafts ¶
func (*Client) ListFolders ¶
func (*Client) ListIdentities ¶ added in v1.44.0
func (*Client) ListMCPServers ¶
func (*Client) ListMessages ¶
func (*Client) ListModelServices ¶
func (*Client) ListOutbox ¶
func (*Client) ListPluginModels ¶
func (*Client) ListPluginRegistry ¶
func (*Client) ListPlugins ¶
func (*Client) ListProviders ¶
func (*Client) ListSignatures ¶
func (*Client) ListSimpleLoginAliases ¶ added in v1.44.0
func (*Client) ListSkills ¶
func (*Client) ListThreads ¶
func (*Client) ListTranslators ¶
func (*Client) MailboxUnread ¶ added in v1.44.0
func (*Client) MarkAllAsRead ¶
func (*Client) MarkViewRead ¶
func (*Client) MaskingLog ¶
func (*Client) MessageExists ¶
func (*Client) MessageGist ¶
func (*Client) MessageLabels ¶
func (*Client) ModelServiceAvatar ¶
func (*Client) MoveToRole ¶
func (*Client) NewConversation ¶
func (*Client) NewMailtoDraft ¶
func (*Client) OpenThread ¶ added in v1.43.0
func (*Client) PendingMCPSends ¶
func (*Client) PluginCards ¶
func (*Client) PluginLoginStatus ¶
func (*Client) PluginLogout ¶
func (*Client) PluginReadme ¶
func (*Client) PluginTags ¶
func (*Client) PollPluginLogin ¶
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 (*Client) PreviewMasking ¶
func (*Client) PreviewRule ¶
func (*Client) PreviewView ¶
func (cl *Client) PreviewView(ctx context.Context, d core.SavedViewDoc, viewID int64, limit int) (core.ViewContents, error)
func (*Client) ProposedRuleSaved ¶
func (*Client) QuickReplies ¶
func (*Client) RawMessageFile ¶
func (*Client) Reauthorize ¶
func (*Client) RecentSignInCodes ¶
func (*Client) RecheckSending ¶
func (*Client) RecognitionModelBackend ¶
func (*Client) RecognitionModelError ¶
func (*Client) RecognitionModelInstalled ¶
func (*Client) RecordCapStatus ¶
func (*Client) RefreshMCPTools ¶
func (*Client) RefreshPluginRegistry ¶
func (*Client) RefreshSimpleLogin ¶ added in v1.44.0
func (*Client) RemoveAddressBook ¶
func (*Client) RemoveAppAndWitDeadlines ¶ added in v1.40.0
func (*Client) RemoveAttachmentAt ¶
func (*Client) RemoveIdentity ¶ added in v1.44.0
func (*Client) RemoveMCPServer ¶
func (*Client) RemoveModelFiles ¶
func (*Client) RemoveModelService ¶
func (*Client) RenameAddressBook ¶
func (*Client) RenameLocalFolder ¶
func (*Client) ReorderAccountEntries ¶
func (*Client) ReorderLabels ¶
func (*Client) ReorderRules ¶
func (*Client) RescanLabels ¶
func (*Client) RescanSecurity ¶
func (*Client) ResolveAll ¶
func (*Client) ResolveApproval ¶
func (*Client) ResolveApprovalForConversation ¶
func (*Client) ResolveApprovalWithArgs ¶
func (*Client) ResolveMCPSend ¶
func (*Client) ResolveMCPSendAcknowledged ¶
func (*Client) ResolveOutbox ¶
func (*Client) RetryRuleRun ¶
func (*Client) RewriteSelection ¶
func (*Client) RuleHitCounts ¶
func (*Client) RulesInBackground ¶
func (*Client) RunConversation ¶
func (*Client) RunRuleOnExisting ¶
func (*Client) SavedViews ¶
func (*Client) SearchWith ¶
func (cl *Client) SearchWith(ctx context.Context, q core.SearchQuery, limit int) ([]core.MessageSummary, error)
func (*Client) SecurityProgress ¶
func (*Client) SendAcknowledgedRevision ¶
func (*Client) SendRevision ¶
func (*Client) SenderAvatar ¶
func (*Client) SetAddressBookCollectionEnabled ¶
func (*Client) SetComposeOpen ¶
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 (*Client) SetDraftAccount ¶
func (*Client) SetDraftFrom ¶ added in v1.44.0
func (*Client) SetDraftModel ¶
func (*Client) SetDraftSignature ¶ added in v1.41.0
func (*Client) SetDraftSimpleLoginAlias ¶ added in v1.44.0
func (*Client) SetMCPScope ¶ added in v1.42.0
func (*Client) SetMCPServerEnabled ¶
func (*Client) SetMCPToolTrusted ¶
func (*Client) SetMessageSecurity ¶
func (*Client) SetPluginConfig ¶
func (*Client) SetPluginEnabled ¶
func (*Client) SetRoleFolder ¶
func (*Client) SetRuleEnabled ¶
func (*Client) SetSettings ¶
func (*Client) SetSimpleLogin ¶ added in v1.44.0
func (cl *Client) SetSimpleLogin(ctx context.Context, in core.SimpleLoginSetup) (core.SimpleLoginState, error)
func (*Client) SetSimpleLoginMailbox ¶ added in v1.44.0
func (*Client) SetSkillEnabled ¶
func (*Client) SetThreadDeadline ¶ added in v1.40.0
func (*Client) SetUIForeground ¶
func (*Client) SetUIReady ¶
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 (*Client) SignatureCode ¶
func (*Client) SignatureEditor ¶
func (*Client) SignatureShown ¶
func (*Client) SimpleLogin ¶ added in v1.44.0
func (*Client) SimpleLoginAliasOptions ¶ added in v1.44.0
func (*Client) SimpleLoginMailboxes ¶ added in v1.44.0
func (*Client) StarredCounts ¶
func (*Client) StoreLatestVersion ¶
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 (*Client) StreamErr ¶
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 ¶
StreamErrs returns every abnormal stream or void-call failure recorded so far.
func (*Client) SubscribeConversation ¶
func (*Client) SummarizeUnreplied ¶ added in v1.40.0
func (*Client) SummaryArrivalState ¶ added in v1.40.0
func (*Client) SwitchToGraph ¶ added in v1.44.0
func (*Client) SyncAddressBook ¶
func (*Client) SystemLanguage ¶
func (*Client) SystemTranslatorLanguages ¶
func (*Client) TestCapability ¶
func (*Client) TestPluginModel ¶
func (*Client) ThreadDeadline ¶ added in v1.40.0
func (*Client) ThreadLabels ¶
func (*Client) ToggleSimpleLoginAlias ¶ added in v1.44.0
func (*Client) TrustImageSender ¶
func (*Client) TrustedImageSenders ¶
func (*Client) UnblockSender ¶
func (*Client) UndoArchive ¶
func (*Client) UndoArchiveThreads ¶
func (*Client) UndoLastAssist ¶
func (*Client) UndoRemoveAppAndWitDeadlines ¶ added in v1.40.0
func (*Client) UndoRuleRun ¶
func (*Client) UndoSetThreadDeadline ¶ added in v1.40.0
func (*Client) UninstallPlugin ¶
func (*Client) Unsubscribe ¶
func (*Client) UnsubscribeMethod ¶
func (*Client) UntrustImageSender ¶
func (*Client) UpdateAccount ¶
func (*Client) UpdateAddressBookAuth ¶
func (*Client) UpdateIdentity ¶ added in v1.44.0
func (*Client) UpdateLabel ¶
func (*Client) UpdateMCPServer ¶
func (*Client) UpdateModelService ¶
func (cl *Client) UpdateModelService(ctx context.Context, id int64, in core.ModelServiceInput) (core.ModelService, error)