1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.unspecced.getTimelineSkeleton
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// UnspeccedGetTimelineSkeleton_Output is the output of a app.bsky.unspecced.getTimelineSkeleton call.
14type UnspeccedGetTimelineSkeleton_Output struct {
15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16 Feed []*FeedDefs_SkeletonFeedPost `json:"feed" cborgen:"feed"`
17}
18
19// UnspeccedGetTimelineSkeleton calls the XRPC method "app.bsky.unspecced.getTimelineSkeleton".
20func UnspeccedGetTimelineSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*UnspeccedGetTimelineSkeleton_Output, error) {
21 var out UnspeccedGetTimelineSkeleton_Output
22
23 params := map[string]interface{}{
24 "cursor": cursor,
25 "limit": limit,
26 }
27 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTimelineSkeleton", params, nil, &out); err != nil {
28 return nil, err
29 }
30
31 return &out, nil
32}