···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package tangled
44+55+// schema: sh.tangled.knot.health
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/lex/util"
1111+)
1212+1313+const (
1414+ KnotHealthNSID = "sh.tangled.knot.health"
1515+)
1616+1717+// KnotHealth_Output is the output of a sh.tangled.knot.health call.
1818+type KnotHealth_Output struct {
1919+ // status: Health status of the knot
2020+ Status string `json:"status" cborgen:"status"`
2121+ // timestamp: Timestamp of the health check
2222+ Timestamp *string `json:"timestamp,omitempty" cborgen:"timestamp,omitempty"`
2323+ // version: Version of the knot server
2424+ Version *string `json:"version,omitempty" cborgen:"version,omitempty"`
2525+}
2626+2727+// KnotHealth calls the XRPC method "sh.tangled.knot.health".
2828+func KnotHealth(ctx context.Context, c util.LexClient) (*KnotHealth_Output, error) {
2929+ var out KnotHealth_Output
3030+ if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.health", nil, nil, &out); err != nil {
3131+ return nil, err
3232+ }
3333+3434+ return &out, nil
3535+}