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.beginSession
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 TempFocusBeginSessionNSID = "org.tangled.temp.focus.beginSession"
15)
16
17// TempFocusBeginSession_Output is the output of a org.tangled.temp.focus.beginSession call.
18type TempFocusBeginSession_Output struct {
19 // issueAt: AT-URI of the issue to navigate to, if the item is an issue.
20 IssueAt *string `json:"issueAt,omitempty" cborgen:"issueAt,omitempty"`
21 // notificationId: ID of the first notification to address. Absent if the queue is empty.
22 NotificationId *int64 `json:"notificationId,omitempty" cborgen:"notificationId,omitempty"`
23 // pullAt: AT-URI of the pull to navigate to, if the item is a pull.
24 PullAt *string `json:"pullAt,omitempty" cborgen:"pullAt,omitempty"`
25 // repoDid: DID of the repository the item belongs to. Absent if the queue is empty.
26 RepoDid *string `json:"repoDid,omitempty" cborgen:"repoDid,omitempty"`
27}
28
29// TempFocusBeginSession calls the XRPC method "org.tangled.temp.focus.beginSession".
30func TempFocusBeginSession(ctx context.Context, c util.LexClient) (*TempFocusBeginSession_Output, error) {
31 var out TempFocusBeginSession_Output
32 if err := c.LexDo(ctx, util.Procedure, "", "org.tangled.temp.focus.beginSession", nil, nil, &out); err != nil {
33 return nil, err
34 }
35
36 return &out, nil
37}