porting all github actions from bluesky-social/indigo to tangled CI
at main 1.8 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.searchStarterPacksSkeleton 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// UnspeccedSearchStarterPacksSkeleton_Output is the output of a app.bsky.unspecced.searchStarterPacksSkeleton call. 14type UnspeccedSearchStarterPacksSkeleton_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 // hitsTotal: Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. 17 HitsTotal *int64 `json:"hitsTotal,omitempty" cborgen:"hitsTotal,omitempty"` 18 StarterPacks []*UnspeccedDefs_SkeletonSearchStarterPack `json:"starterPacks" cborgen:"starterPacks"` 19} 20 21// UnspeccedSearchStarterPacksSkeleton calls the XRPC method "app.bsky.unspecced.searchStarterPacksSkeleton". 22// 23// cursor: Optional pagination mechanism; may not necessarily allow scrolling through entire result set. 24// q: Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. 25// viewer: DID of the account making the request (not included for public/unauthenticated queries). 26func UnspeccedSearchStarterPacksSkeleton(ctx context.Context, c util.LexClient, cursor string, limit int64, q string, viewer string) (*UnspeccedSearchStarterPacksSkeleton_Output, error) { 27 var out UnspeccedSearchStarterPacksSkeleton_Output 28 29 params := map[string]interface{}{} 30 if cursor != "" { 31 params["cursor"] = cursor 32 } 33 if limit != 0 { 34 params["limit"] = limit 35 } 36 params["q"] = q 37 if viewer != "" { 38 params["viewer"] = viewer 39 } 40 if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.searchStarterPacksSkeleton", params, nil, &out); err != nil { 41 return nil, err 42 } 43 44 return &out, nil 45}