fork of indigo with slightly nicer lexgen
at main 1.0 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.unspecced.getSuggestedStarterPacks 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// UnspeccedGetSuggestedStarterPacks_Output is the output of a app.bsky.unspecced.getSuggestedStarterPacks call. 14type UnspeccedGetSuggestedStarterPacks_Output struct { 15 StarterPacks []*GraphDefs_StarterPackView `json:"starterPacks" cborgen:"starterPacks"` 16} 17 18// UnspeccedGetSuggestedStarterPacks calls the XRPC method "app.bsky.unspecced.getSuggestedStarterPacks". 19func UnspeccedGetSuggestedStarterPacks(ctx context.Context, c util.LexClient, limit int64) (*UnspeccedGetSuggestedStarterPacks_Output, error) { 20 var out UnspeccedGetSuggestedStarterPacks_Output 21 22 params := map[string]interface{}{} 23 if limit != 0 { 24 params["limit"] = limit 25 } 26 if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getSuggestedStarterPacks", params, nil, &out); err != nil { 27 return nil, err 28 } 29 30 return &out, nil 31}