···2323func ActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
2424 var out ActorSearchActors_Output
25252626- params := map[string]interface{}{
2727- "cursor": cursor,
2828- "limit": limit,
2929- "q": q,
3030- "term": term,
2626+ params := map[string]interface{}{}
2727+ if cursor != "" {
2828+ params["cursor"] = cursor
2929+ }
3030+ if limit != 0 {
3131+ params["limit"] = limit
3232+ }
3333+ if q != "" {
3434+ params["q"] = q
3535+ }
3636+ if term != "" {
3737+ params["term"] = term
3138 }
3239 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
3340 return nil, err
+9-4
api/bsky/actorsearchActorsTypeahead.go
···2222func ActorSearchActorsTypeahead(ctx context.Context, c *xrpc.Client, limit int64, q string, term string) (*ActorSearchActorsTypeahead_Output, error) {
2323 var out ActorSearchActorsTypeahead_Output
24242525- params := map[string]interface{}{
2626- "limit": limit,
2727- "q": q,
2828- "term": term,
2525+ params := map[string]interface{}{}
2626+ if limit != 0 {
2727+ params["limit"] = limit
2828+ }
2929+ if q != "" {
3030+ params["q"] = q
3131+ }
3232+ if term != "" {
3333+ params["term"] = term
2934 }
3035 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActorsTypeahead", params, nil, &out); err != nil {
3136 return nil, err
+1-1
api/bsky/actorstatus.go
···2121type ActorStatus struct {
2222 LexiconTypeID string `json:"$type,const=app.bsky.actor.status" cborgen:"$type,const=app.bsky.actor.status"`
2323 CreatedAt string `json:"createdAt" cborgen:"createdAt"`
2424- // durationMinutes: The duration of the status in minutes. Applications can choose to limit the duration.
2424+ // durationMinutes: The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.
2525 DurationMinutes *int64 `json:"durationMinutes,omitempty" cborgen:"durationMinutes,omitempty"`
2626 // embed: An optional embed associated with the status.
2727 Embed *ActorStatus_Embed `json:"embed,omitempty" cborgen:"embed,omitempty"`