Versions in this module Expand all Collapse all v0 v0.1.0 Nov 23, 2026 Changes in this version + const ContentTypeJSON + const ContentTypeProblem + const DefaultLimit + const HeaderChannel + const HeaderGeneration + const HeaderIdempotencyKey + const HeaderRequestID + const HeaderVersion + const MaxBodyBytes + const MaxLimit + const ProblemTypePrefix + func AggregateETag(body []byte) string + func FormatETag(gen domain.Generation, v domain.Version) string + func NewIdempotencyKey() string + func ParseETag(s string) (domain.Expect, error) + func ValidIdempotencyKey(k string) bool + type AIChanges struct + NextCursor *string + Ops []OpSummary + ReviewedThrough int64 + Unreviewed int + type AcceptNewRequest struct + Items []struct{ ... } + type AddEntryRequest struct + Notes string + TaskID Opt[int64] + Time *civil.Minute + Title string + WorkDate *civil.Date + type AddPlacement struct + Block *BlockRequest + Defer *Moment + How string + Ref int64 + type AddTaskRequest struct + Due *Moment + Notes string + Place *AddPlacement + Priority string + Project string + Tags []string + Title string + type BackupHealth struct + Healthy bool + LastError string + LastSuccessAt *Time + type BackupStatus struct + Dir string + Snapshots []Snapshot + type Banner struct + Kind string + Message string + type Block struct + CancelReason *string + CreatedAt Time + Current bool + Date civil.Date + ETag string + End civil.EndMinute + Ended bool + ID int64 + NeedsReblock bool + OutcomeSource *string + ResolvedAt *Time + Slipped bool + SlippedAt *Time + Start civil.Minute + Started bool + Status string + TaskETag string + TaskID int64 + TaskTitle string + Version int64 + type BlockRequest struct + Date civil.Date + End civil.EndMinute + Start civil.Minute + type Clock struct + DueSoonDays int + Generation string + Now Time + ServerVersion string + Timezone string + Today civil.Date + WeekStart string + type CompleteRequest struct + As *string + Date *civil.Date + Log string + Notes string + type Conflict struct + Actor string + At Time + Entity string + EntityID int64 + Kind string + OpID string + type Conv struct + Gen domain.Generation + Loc *time.Location + func (c Conv) Block(v domain.BlockView) Block + func (c Conv) ETag(v domain.Version) string + func (c Conv) Entry(v domain.EntryView) Entry + func (c Conv) Interruption(i domain.Interruption) Interruption + func (c Conv) LogEntry(e domain.LogEntry, taskTitle string) Entry + func (c Conv) OptTime(t sql.Null[time.Time]) *Time + func (c Conv) Task(v domain.TaskView) Task + func (c Conv) TaskDetail(v domain.TaskDetail) TaskDetail + func (c Conv) Time(t time.Time) Time + func (c Conv) Token(t domain.Token) TokenInfo + type CreateTokenRequest struct + ExpiresAt Opt[Time] + MutationsPerHour int + Name string + Scopes string + type Day struct + Blocks []Block + Date civil.Date + Entries []Entry + Interruptions []Interruption + Unlinked []Entry + type DeferRequest struct + Until Opt[Moment] + type DueRequest struct + Due Opt[Moment] + type Effect struct + BlockID int64 + EntryID int64 + From string + Kind string + Reason string + TaskID int64 + To string + Via string + type Entry struct + CreatedAt Time + DeletedAt *Time + ETag string + ID int64 + Kind string + Notes string + Reopened bool + TaskID *int64 + TaskTitle *string + Time *civil.Minute + Title string + UpdatedAt Time + Version int64 + WorkDate civil.Date + type EventView struct + Action string + After json.RawMessage + Before json.RawMessage + Entity string + EntityID int64 + ID int64 + Op OpSummary + type FieldError struct + Field string + Message string + type FocusRequest struct + Interrupt bool + TaskID Opt[int64] + type Interruption struct + At Time + Date civil.Date + FromBlockID *int64 + FromTaskID *int64 + ID int64 + ToTaskID int64 + type Moment struct + Date civil.Date + Time *civil.Minute + type OpDetail struct + Events []EventView + Op OpSummary + type OpResponse struct + Block *Block + Effects []Effect + Entry *Entry + OpID *string + Replayed bool + Task *Task + Tasks []Task + Warnings []string + type OpSummary struct + Actor string + At Time + Channel string + Effects []Effect + Kind string + OpID string + Revertible bool + Seq int64 + State string + TaskIDs []int64 + Via *string + type Opt struct + Null bool + Set bool + V T + func (o *Opt[T]) UnmarshalJSON(b []byte) error + func (o Opt[T]) IsZero() bool + func (o Opt[T]) MarshalJSON() ([]byte, error) + type OutcomeRequest struct + Outcome string + type Page struct + Items []T + NextCursor *string + type PasswordRequest struct + Current string + New string + func (PasswordRequest) LogValue() slog.Value + type PlaceRequest struct + How string + Ref int64 + type Problem struct + Code string + Conflicts []Conflict + Current json.RawMessage + Detail string + Errors []FieldError + RequestID string + RetryAfter int + Status int + Title string + Type string + func (p *Problem) Error() string + type Reason struct + Reason string + Since Time + type ReblockRequest struct + TaskETag string + type RelinkRequest struct + TaskID Opt[int64] + type ReopenRequest struct + RemoveEntry bool + type Report struct + Days []ReportDay + From civil.Date + Project *string + Tag *string + Tasks map[string]ReportTask + To civil.Date + Todo *ReportTodo + Upcoming []Task + type ReportDay struct + Date civil.Date + Lines []ReportLine + type ReportLine struct + EntryID int64 + Kind string + Notes string + Reopened bool + TaskID *int64 + Time *civil.Minute + Title string + type ReportTask struct + Deleted bool + Status string + Title string + type ReportTodo struct + Backlog []Task + Triage []Task + type ReviewRequest struct + ThroughSeq int64 + type SearchHit struct + ID int64 + Kind string + Snippet string + Status string + TaskID *int64 + Title string + WorkDate *civil.Date + type Settings struct + BackupKeepDaily int + BackupKeepWeekly int + type SettingsRequest struct + BackupKeepDaily *int + BackupKeepWeekly *int + Password string + func (SettingsRequest) LogValue() slog.Value + type Slips struct + Lifetime int + SinceTriage int + type Snapshot struct + At Time + Kind string + Name string + Path string + SchemaVersion int + Size int64 + type Status struct + AI int + BackupWarn bool + CurrentBlock *StatusBlock + Due int + Focus *StatusTask + PurgeWarning bool + Triage int + type StatusBlock struct + End civil.EndMinute + ID int64 + TaskID int64 + Title string + type StatusTask struct + ID int64 + Title string + type TagCount struct + Count int + Name string + type Task struct + CompletedAt *Time + CompletedDate *civil.Date + CreatedAt Time + Defer *Moment + Deferred bool + DeletedAt *Time + Due *Moment + DuePhase string + DueSoon bool + ETag string + ID int64 + LastPlacedAt *Time + Notes string + Origin string + Priority *string + Project *string + Reasons []Reason + Slips Slips + Status string + Tags []string + Title string + UpdatedAt Time + Version int64 + View string + type TaskDetail struct + Blocks []Block + Entries []Entry + Interruptions []Interruption + type Time struct + func (t *Time) UnmarshalJSON(b []byte) error + func (t Time) MarshalJSON() ([]byte, error) + type Today struct + AIChanges int + Backup BackupHealth + Banners []Banner + Blocks []Block + Clock Clock + CurrentBlock *Block + DueSoon []Task + Entries []Entry + Focus *Task + Interruptions []Interruption + Overdue []Task + TriageCount int + TriageTop []Task + type TokenCreated struct + Secret string + Token TokenInfo + type TokenInfo struct + CreatedAt Time + ExpiresAt *Time + ID int64 + LastUsedAt *Time + MutationsPerHour int + Name string + Owner bool + RevokedAt *Time + Scopes string + type Upcoming struct + Deferred []Task + DueSoon []Task + type UpdateEntryRequest struct + Notes Opt[string] + Time Opt[civil.Minute] + Title Opt[string] + WorkDate Opt[civil.Date] + type UpdateTaskRequest struct + Notes Opt[string] + Priority Opt[string] + Project Opt[string] + TagsAdd []string + TagsRemove []string + Title Opt[string] + type WhoAmI struct + Actor string + Generation string + Owner bool + Scopes string