okami.mom/albedo

git clone https://git.nkp.pet/okami.mom/albedo

Aly Raffauffeat(api)!: migrate daemon and clients to protocol 361c43ca

main
1.1 KiB62 linesraw
1package tui
2
3import (
4	"albedo/cli/internal/config"
5	"albedo/cli/internal/daemon"
6)
7
8type LoginDoneMsg struct {
9	Gen      int
10	Name     string
11	Settings config.Settings
12}
13
14type LoginCancelMsg struct{}
15
16type loginModelsLoadedMsg struct {
17	Err    error
18	Note   string
19	Models []string
20	Gen    int
21}
22
23// signInsLoadedMsg carries the daemon's sign-ins and accounts, after the first
24// read and after every change. Profiles comes from the same settings snapshot.
25type signInsLoadedMsg struct {
26	Mutation bool
27	Err      error
28	Profiles *config.Profiles
29	Listed   daemon.SignIns
30	Gen      int
31}
32
33type signInStartedMsg struct {
34	ETag string
35	Err  error
36	ID   string
37	URL  string
38	Gen  int
39}
40
41type signInStatusMsg struct {
42	ETag, Instructions string
43	Accounts           []daemon.Account
44	URL                string
45	Err                error
46	ID                 string
47	State              string
48	Message            string
49	Gen                int
50}
51
52type signInPollMsg struct {
53	ID  string
54	Gen int
55}
56
57type providerSavedMsg struct {
58	Gen      int
59	Err      error
60	Name     string
61	Settings config.Settings
62}