// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package atproto

// schema: com.atproto.identity.getRecommendedDidCredentials

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

// IdentityGetRecommendedDidCredentials_Output is the output of a com.atproto.identity.getRecommendedDidCredentials call.
type IdentityGetRecommendedDidCredentials_Output struct {
	AlsoKnownAs []string `json:"alsoKnownAs,omitempty" cborgen:"alsoKnownAs,omitempty"`
	// rotationKeys: Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.
	RotationKeys        []string                 `json:"rotationKeys,omitempty" cborgen:"rotationKeys,omitempty"`
	Services            *util.LexiconTypeDecoder `json:"services,omitempty" cborgen:"services,omitempty"`
	VerificationMethods *util.LexiconTypeDecoder `json:"verificationMethods,omitempty" cborgen:"verificationMethods,omitempty"`
}

// IdentityGetRecommendedDidCredentials calls the XRPC method "com.atproto.identity.getRecommendedDidCredentials".
func IdentityGetRecommendedDidCredentials(ctx context.Context, c util.LexClient) (*IdentityGetRecommendedDidCredentials_Output, error) {
	var out IdentityGetRecommendedDidCredentials_Output
	if err := c.LexDo(ctx, util.Query, "", "com.atproto.identity.getRecommendedDidCredentials", nil, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}
