Monorepo for Tangled tangled.org
6

Configure Feed

Select the types of activity you want to include in your feed.

1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.knot.version 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 KnotVersionNSID = "sh.tangled.knot.version" 15) 16 17// KnotVersion_Output is the output of a sh.tangled.knot.version call. 18type KnotVersion_Output struct { 19 // capabilities: Protocol capability tokens this knot implements, such as knot-acl. Knots that omit this field are treated as legacy. 20 Capabilities []string `json:"capabilities,omitempty" cborgen:"capabilities,omitempty"` 21 Version string `json:"version" cborgen:"version"` 22} 23 24// KnotVersion calls the XRPC method "sh.tangled.knot.version". 25func KnotVersion(ctx context.Context, c util.LexClient) (*KnotVersion_Output, error) { 26 var out KnotVersion_Output 27 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.version", nil, nil, &out); err != nil { 28 return nil, err 29 } 30 31 return &out, nil 32}