porting all github actions from bluesky-social/indigo to tangled CI
at main 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.server.reserveSigningKey 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// ServerReserveSigningKey_Input is the input argument to a com.atproto.server.reserveSigningKey call. 14type ServerReserveSigningKey_Input struct { 15 // did: The DID to reserve a key for. 16 Did *string `json:"did,omitempty" cborgen:"did,omitempty"` 17} 18 19// ServerReserveSigningKey_Output is the output of a com.atproto.server.reserveSigningKey call. 20type ServerReserveSigningKey_Output struct { 21 // signingKey: The public key for the reserved signing key, in did:key serialization. 22 SigningKey string `json:"signingKey" cborgen:"signingKey"` 23} 24 25// ServerReserveSigningKey calls the XRPC method "com.atproto.server.reserveSigningKey". 26func ServerReserveSigningKey(ctx context.Context, c util.LexClient, input *ServerReserveSigningKey_Input) (*ServerReserveSigningKey_Output, error) { 27 var out ServerReserveSigningKey_Output 28 if err := c.LexDo(ctx, util.Procedure, "application/json", "com.atproto.server.reserveSigningKey", nil, input, &out); err != nil { 29 return nil, err 30 } 31 32 return &out, nil 33}