-
Notifications
You must be signed in to change notification settings - Fork 89
/
unspeccedgetTaggedSuggestions.go
35 lines (26 loc) · 1.23 KB
/
unspeccedgetTaggedSuggestions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package bsky
// schema: app.bsky.unspecced.getTaggedSuggestions
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// UnspeccedGetTaggedSuggestions_Output is the output of a app.bsky.unspecced.getTaggedSuggestions call.
type UnspeccedGetTaggedSuggestions_Output struct {
Suggestions []*UnspeccedGetTaggedSuggestions_Suggestion `json:"suggestions" cborgen:"suggestions"`
}
// UnspeccedGetTaggedSuggestions_Suggestion is a "suggestion" in the app.bsky.unspecced.getTaggedSuggestions schema.
type UnspeccedGetTaggedSuggestions_Suggestion struct {
Subject string `json:"subject" cborgen:"subject"`
SubjectType string `json:"subjectType" cborgen:"subjectType"`
Tag string `json:"tag" cborgen:"tag"`
}
// UnspeccedGetTaggedSuggestions calls the XRPC method "app.bsky.unspecced.getTaggedSuggestions".
func UnspeccedGetTaggedSuggestions(ctx context.Context, c *xrpc.Client) (*UnspeccedGetTaggedSuggestions_Output, error) {
var out UnspeccedGetTaggedSuggestions_Output
params := map[string]interface{}{}
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTaggedSuggestions", params, nil, &out); err != nil {
return nil, err
}
return &out, nil
}