/
actorupdateProfile.go
38 lines (30 loc) · 1.25 KB
/
actorupdateProfile.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
36
37
38
package schemagen
import (
"context"
"github.com/whyrusleeping/gosky/lex/util"
"github.com/whyrusleeping/gosky/xrpc"
)
// schema: app.bsky.actor.updateProfile
func init() {
}
type ActorUpdateProfile_Input struct {
LexiconTypeID string `json:"$type,omitempty"`
Avatar *util.Blob `json:"avatar,omitempty" cborgen:"avatar"`
Banner *util.Blob `json:"banner,omitempty" cborgen:"banner"`
Description *string `json:"description,omitempty" cborgen:"description"`
Did *string `json:"did,omitempty" cborgen:"did"`
DisplayName *string `json:"displayName,omitempty" cborgen:"displayName"`
}
type ActorUpdateProfile_Output struct {
LexiconTypeID string `json:"$type,omitempty"`
Cid string `json:"cid" cborgen:"cid"`
Record util.LexiconTypeDecoder `json:"record" cborgen:"record"`
Uri string `json:"uri" cborgen:"uri"`
}
func ActorUpdateProfile(ctx context.Context, c *xrpc.Client, input *ActorUpdateProfile_Input) (*ActorUpdateProfile_Output, error) {
var out ActorUpdateProfile_Output
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.actor.updateProfile", nil, input, &out); err != nil {
return nil, err
}
return &out, nil
}