1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.feed.getFeedGenerator
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// FeedGetFeedGenerator_Output is the output of a app.bsky.feed.getFeedGenerator call.
14type FeedGetFeedGenerator_Output struct {
15 // isOnline: Indicates whether the feed generator service has been online recently, or else seems to be inactive.
16 IsOnline bool `json:"isOnline" cborgen:"isOnline"`
17 // isValid: Indicates whether the feed generator service is compatible with the record declaration.
18 IsValid bool `json:"isValid" cborgen:"isValid"`
19 View *FeedDefs_GeneratorView `json:"view" cborgen:"view"`
20}
21
22// FeedGetFeedGenerator calls the XRPC method "app.bsky.feed.getFeedGenerator".
23//
24// feed: AT-URI of the feed generator record.
25func FeedGetFeedGenerator(ctx context.Context, c util.LexClient, feed string) (*FeedGetFeedGenerator_Output, error) {
26 var out FeedGetFeedGenerator_Output
27
28 params := map[string]interface{}{}
29 params["feed"] = feed
30 if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedGenerator", params, nil, &out); err != nil {
31 return nil, err
32 }
33
34 return &out, nil
35}