A fork of https://github.com/teal-fm/piper
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.actor.getSuggestions
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// ActorGetSuggestions_Output is the output of a app.bsky.actor.getSuggestions call.
14type ActorGetSuggestions_Output struct {
15 Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17 // recId: Snowflake for this recommendation, use when submitting recommendation events.
18 RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"`
19}
20
21// ActorGetSuggestions calls the XRPC method "app.bsky.actor.getSuggestions".
22func ActorGetSuggestions(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*ActorGetSuggestions_Output, error) {
23 var out ActorGetSuggestions_Output
24
25 params := map[string]interface{}{
26 "cursor": cursor,
27 "limit": limit,
28 }
29 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getSuggestions", params, nil, &out); err != nil {
30 return nil, err
31 }
32
33 return &out, nil
34}