This repository has no description
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: org.tangled.temp.focus.nextItem
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 TempFocusNextItemNSID = "org.tangled.temp.focus.nextItem"
15)
16
17// TempFocusNextItem_Input is the input argument to a org.tangled.temp.focus.nextItem call.
18type TempFocusNextItem_Input struct {
19 // currentId: ID of the notification just addressed, to be marked read.
20 CurrentId int64 `json:"currentId" cborgen:"currentId"`
21}
22
23// TempFocusNextItem_Output is the output of a org.tangled.temp.focus.nextItem call.
24type TempFocusNextItem_Output struct {
25 // issueAt: AT-URI of the issue to navigate to, if the item is an issue.
26 IssueAt *string `json:"issueAt,omitempty" cborgen:"issueAt,omitempty"`
27 // notificationId: ID of the next notification to address. Absent when focus mode has ended.
28 NotificationId *int64 `json:"notificationId,omitempty" cborgen:"notificationId,omitempty"`
29 // pullAt: AT-URI of the pull to navigate to, if the item is a pull.
30 PullAt *string `json:"pullAt,omitempty" cborgen:"pullAt,omitempty"`
31 // repoDid: DID of the repository the next item belongs to. Absent when focus mode has ended.
32 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
33}
34
35// TempFocusNextItem calls the XRPC method "org.tangled.temp.focus.nextItem".
36func TempFocusNextItem(ctx context.Context, c util.LexClient, input *TempFocusNextItem_Input) (*TempFocusNextItem_Output, error) {
37 var out TempFocusNextItem_Output
38 if err := c.LexDo(ctx, util.Procedure, "application/json", "org.tangled.temp.focus.nextItem", nil, input, &out); err != nil {
39 return nil, err
40 }
41
42 return &out, nil
43}