/
actorcreateScene.go
34 lines (26 loc) · 967 Bytes
/
actorcreateScene.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
package schemagen
import (
"context"
"github.com/whyrusleeping/gosky/xrpc"
)
// schema: app.bsky.actor.createScene
func init() {
}
type ActorCreateScene_Input struct {
LexiconTypeID string `json:"$type,omitempty"`
Handle string `json:"handle" cborgen:"handle"`
RecoveryKey *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey"`
}
type ActorCreateScene_Output struct {
LexiconTypeID string `json:"$type,omitempty"`
Declaration *SystemDeclRef `json:"declaration" cborgen:"declaration"`
Did string `json:"did" cborgen:"did"`
Handle string `json:"handle" cborgen:"handle"`
}
func ActorCreateScene(ctx context.Context, c *xrpc.Client, input *ActorCreateScene_Input) (*ActorCreateScene_Output, error) {
var out ActorCreateScene_Output
if err := c.Do(ctx, xrpc.Procedure, "application/json", "app.bsky.actor.createScene", nil, input, &out); err != nil {
return nil, err
}
return &out, nil
}