1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.unspecced.getSuggestedFeedsSkeleton
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// UnspeccedGetSuggestedFeedsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestedFeedsSkeleton call.
14type UnspeccedGetSuggestedFeedsSkeleton_Output struct {
15 Feeds []string `json:"feeds" cborgen:"feeds"`
16}
17
18// UnspeccedGetSuggestedFeedsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestedFeedsSkeleton".
19//
20// viewer: DID of the account making the request (not included for public/unauthenticated queries).
21func UnspeccedGetSuggestedFeedsSkeleton(ctx context.Context, c util.LexClient, limit int64, viewer string) (*UnspeccedGetSuggestedFeedsSkeleton_Output, error) {
22 var out UnspeccedGetSuggestedFeedsSkeleton_Output
23
24 params := map[string]interface{}{}
25 if limit != 0 {
26 params["limit"] = limit
27 }
28 if viewer != "" {
29 params["viewer"] = viewer
30 }
31 if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedFeedsSkeleton", params, nil, &out); err != nil {
32 return nil, err
33 }
34
35 return &out, nil
36}