From 463004b3e5115c8141cbde4307fce4024f9e8d73 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Wed, 26 Aug 2026 16:05:36 +0300 Subject: [PATCH] api/tangled: generate search actor typeahead types Signed-off-by: Anirudh Oppiliappan --- api/tangled/actorsearchActorsTypeahead.go | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 api/tangled/actorsearchActorsTypeahead.go diff --git a/api/tangled/actorsearchActorsTypeahead.go b/api/tangled/actorsearchActorsTypeahead.go new file mode 100644 index 00000000..c3fd0e25 --- /dev/null +++ b/api/tangled/actorsearchActorsTypeahead.go @@ -0,0 +1,46 @@ +// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. + +package tangled + +// schema: sh.tangled.actor.searchActorsTypeahead + +import ( + "context" + + "github.com/bluesky-social/indigo/lex/util" +) + +const ( + ActorSearchActorsTypeaheadNSID = "sh.tangled.actor.searchActorsTypeahead" +) + +// ActorSearchActorsTypeahead_Actor is a "actor" in the sh.tangled.actor.searchActorsTypeahead schema. +type ActorSearchActorsTypeahead_Actor struct { + Did string `json:"did" cborgen:"did"` + Handle string `json:"handle" cborgen:"handle"` + // uri: AT-URI for the actor's Tangled profile. + Uri string `json:"uri" cborgen:"uri"` +} + +// ActorSearchActorsTypeahead_Output is the output of a sh.tangled.actor.searchActorsTypeahead call. +type ActorSearchActorsTypeahead_Output struct { + Actors []*ActorSearchActorsTypeahead_Actor `json:"actors" cborgen:"actors"` +} + +// ActorSearchActorsTypeahead calls the XRPC method "sh.tangled.actor.searchActorsTypeahead". +// +// q: The beginning of a handle. A leading @ is optional. +func ActorSearchActorsTypeahead(ctx context.Context, c util.LexClient, limit int64, q string) (*ActorSearchActorsTypeahead_Output, error) { + var out ActorSearchActorsTypeahead_Output + + params := map[string]interface{}{} + if limit != 0 { + params["limit"] = limit + } + params["q"] = q + if err := c.LexDo(ctx, util.Query, "", "sh.tangled.actor.searchActorsTypeahead", params, nil, &out); err != nil { + return nil, err + } + + return &out, nil +} -- 2.51.2