A fork of https://github.com/teal-fm/piper
at main 30 lines 854 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.graph.getStarterPacks 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// GraphGetStarterPacks_Output is the output of a app.bsky.graph.getStarterPacks call. 14type GraphGetStarterPacks_Output struct { 15 StarterPacks []*GraphDefs_StarterPackViewBasic `json:"starterPacks" cborgen:"starterPacks"` 16} 17 18// GraphGetStarterPacks calls the XRPC method "app.bsky.graph.getStarterPacks". 19func GraphGetStarterPacks(ctx context.Context, c *xrpc.Client, uris []string) (*GraphGetStarterPacks_Output, error) { 20 var out GraphGetStarterPacks_Output 21 22 params := map[string]interface{}{ 23 "uris": uris, 24 } 25 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getStarterPacks", params, nil, &out); err != nil { 26 return nil, err 27 } 28 29 return &out, nil 30}