api

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation = protocol.Annotation

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL string) *Client

func (*Client) Acknowledge

func (c *Client) Acknowledge(ctx context.Context, annotationID string) error

func (*Client) Dismiss

func (c *Client) Dismiss(ctx context.Context, annotationID, reason string) error

func (*Client) GetPending

func (c *Client) GetPending(ctx context.Context, sessionID, projectID string) (*PendingResponse, error)

func (*Client) GetSession

func (c *Client) GetSession(ctx context.Context, sessionID string) (*SessionWithAnnotations, error)

func (*Client) ListSessions

func (c *Client) ListSessions(ctx context.Context, projectID string) ([]Session, error)

func (*Client) Reply

func (c *Client) Reply(ctx context.Context, annotationID, message string) error

func (*Client) Resolve

func (c *Client) Resolve(ctx context.Context, annotationID, summary string) error

func (*Client) Watch

func (c *Client) Watch(ctx context.Context, opts WatchOptions) (*WatchOutput, error)

type PendingResponse

type PendingResponse = protocol.PendingResponse

type Session

type Session = protocol.Session

type SessionWithAnnotations

type SessionWithAnnotations = protocol.SessionWithAnnotations

type ThreadMessage

type ThreadMessage = protocol.ThreadMessage

type WatchOptions

type WatchOptions struct {
	SessionID string
	ProjectID string
	Timeout   time.Duration
}

type WatchOutput

type WatchOutput struct {
	Timeout     bool         `json:"timeout"`
	Message     string       `json:"message,omitempty"`
	Count       int          `json:"count,omitempty"`
	Sessions    []string     `json:"sessions,omitempty"`
	Annotations []Annotation `json:"annotations,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL