// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. // Lexicon schema: app.bsky.feed.getFeedGenerator package bsky import ( "context" lexutil "github.com/bluesky-social/indigo/lex/util" ) // FeedGetFeedGenerator_Output is the output of a app.bsky.feed.getFeedGenerator call. type FeedGetFeedGenerator_Output struct { // isOnline: Indicates whether the feed generator service has been online recently, or else seems to be inactive. IsOnline bool `json:"isOnline" cborgen:"isOnline"` // isValid: Indicates whether the feed generator service is compatible with the record declaration. IsValid bool `json:"isValid" cborgen:"isValid"` View *FeedDefs_GeneratorView `json:"view" cborgen:"view"` } // FeedGetFeedGenerator calls the XRPC method "app.bsky.feed.getFeedGenerator". // // feed: AT-URI of the feed generator record. func FeedGetFeedGenerator(ctx context.Context, c lexutil.LexClient, feed string) (*FeedGetFeedGenerator_Output, error) { var out FeedGetFeedGenerator_Output params := map[string]interface{}{} params["feed"] = feed if err := c.LexDo(ctx, lexutil.Query, "", "app.bsky.feed.getFeedGenerator", params, nil, &out); err != nil { return nil, err } return &out, nil }