vcclient

package
v0.5.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidRequest is returned when the request is invalid
	ErrInvalidRequest = errors.New("invalid request")

	// ErrNotAllowedRequest is returned when the request is not allowed
	ErrNotAllowedRequest = errors.New("not allowed request")
)

Functions

This section is empty.

Types

type APIGWClient

type APIGWClient struct {
	Document *documentHandler
	Identity *identityHandler
	Root     *rootHandler
	OAuth    *oauthHandler
	User     *userHandler
	// contains filtered or unexported fields
}

APIGWClient handles all APIGW endpoints

type Client

type Client struct {
	APIGW    *APIGWClient
	Verifier *VerifierClient
	// contains filtered or unexported fields
}

Client is the client

func New

func New(config *Config, log *logger.Log) (*Client, error)

New creates a new client

type Config

type Config struct {
	ApigwURL    string `validate:""`
	VerifierURL string `validate:""`
}

Config is the configuration for the client

type DocumentCollectIDQuery

type DocumentCollectIDQuery struct {
	AuthenticSource string `json:"authentic_source"`
	Scope           string `json:"scope"`
	CollectID       string `json:"collect_id"`
}

DocumentCollectIDQuery is the query for CollectID

type DocumentCollectIDReply

type DocumentCollectIDReply struct {
	DocumentData any `json:"document_data"`
}

DocumentCollectIDReply is the reply for CollectID

type DocumentDeleteQuery

type DocumentDeleteQuery struct {
	AuthenticSource string `json:"authentic_source" validate:"required"`
	Scope           string `json:"scope" validate:"required"`
	DocumentID      string `json:"document_id" validate:"required"`
}

DocumentDeleteQuery is the query for Delete

type DocumentGetQuery

type DocumentGetQuery struct {
	AuthenticSource string `json:"authentic_source"`
	Scope           string `json:"scope"`
	DocumentID      string `json:"document_id"`
}

DocumentGetQuery is the query for GetDocument

type DocumentListQuery

type DocumentListQuery struct {
	AuthenticSource   string `json:"authentic_source"`
	IdentityMappingID string `json:"identity_mapping_id"`
	Scope             string `json:"scope"`
	ValidTo           int64  `json:"valid_to"`
	ValidFrom         int64  `json:"valid_from"`
}

DocumentListQuery is the query for ListDocument

type IdentityMappingCreateReply added in v0.5.7

type IdentityMappingCreateReply struct {
	AuthenticSourcePersonID string `json:"authentic_source_person_id"`
}

IdentityMappingCreateReply is the reply containing the identifier

type IdentityMappingCreateRequest added in v0.5.7

type IdentityMappingCreateRequest struct {
	AuthenticSource         string            `json:"authentic_source"`
	AuthenticSourcePersonID string            `json:"authentic_source_person_id,omitempty"`
	Attributes              map[string]string `json:"attributes,omitempty"`
}

IdentityMappingCreateRequest is the request for creating an identity mapping

type IdentityMappingDeleteRequest added in v0.5.7

type IdentityMappingDeleteRequest struct {
	AuthenticSource         string `json:"authentic_source"`
	AuthenticSourcePersonID string `json:"authentic_source_person_id"`
}

IdentityMappingDeleteRequest is the request for deleting an identity mapping

type IdentityMappingResolveReply added in v0.5.7

type IdentityMappingResolveReply struct {
	AuthenticSourcePersonID string `json:"authentic_source_person_id"`
}

IdentityMappingResolveReply is the reply with the resolved identifier

type IdentityMappingResolveRequest added in v0.5.7

type IdentityMappingResolveRequest struct {
	AuthenticSource string            `json:"authentic_source"`
	Attributes      map[string]string `json:"attributes"`
}

IdentityMappingResolveRequest is the request for resolving attributes to an identifier

type IdentityMappingUpdateRequest added in v0.5.7

type IdentityMappingUpdateRequest struct {
	AuthenticSource         string            `json:"authentic_source"`
	AuthenticSourcePersonID string            `json:"authentic_source_person_id"`
	Attributes              map[string]string `json:"attributes,omitempty"`
}

IdentityMappingUpdateRequest is the request for updating an identity mapping

type NotificationReply

type NotificationReply struct {
	Data *openid4vci.QR `json:"data"`
}

NotificationReply is the reply for Notification

type NotificationRequest

type NotificationRequest struct {
	AuthenticSource string `json:"authentic_source" validate:"required"`
	Scope           string `json:"scope" validate:"required"`
	DocumentID      string `json:"document_id" validate:"required"`
}

NotificationRequest is the request for Notification

type SVGClaim

type SVGClaim struct {
	Label string `json:"label"`
	Value string `json:"value"`
}

type SVGTemplateReply

type SVGTemplateReply struct {
	Template string `json:"template"`
}

SVGTemplateReply holds SVG template data.

type UploadRequest

type UploadRequest struct {
	Meta               *model.MetaData `json:"meta" validate:"required"`
	IdentityMappingIDs []string        `json:"identity_mapping_ids" validate:"required,min=1,dive,required,max=128,printascii"`
	DocumentData       map[string]any  `json:"document_data" validate:"required"`
}

type UserAuthenticSourceLookupReply

type UserAuthenticSourceLookupReply struct {
	AuthenticSources []string `json:"authentic_sources,omitempty" validate:"omitempty,dive,max=128,printascii"`
}

type UserAuthenticSourceLookupRequest

type UserAuthenticSourceLookupRequest struct {
	AuthenticSource string `json:"authentic_source,omitempty" validate:"omitempty,max=128,printascii"`
	SessionID       string `json:"-"`
}

type UserLookupReply

type UserLookupReply struct {
	SVGTemplateClaims map[string]SVGClaim `json:"svg_template_claims"`
	RedirectURL       string              `json:"redirect_url,omitempty"`
}

type UserLookupRequest

type UserLookupRequest struct {
	AuthProvider string        `json:"-"`
	ResponseCode string        `json:"-"`
	RequestURI   string        `json:"-" validate:"omitempty,max=128,printascii"`
	VCTM         *sdjwtvc.VCTM `json:"-"`
}

type VerifierClient

type VerifierClient struct {
	// contains filtered or unexported fields
}

VerifierClient handles Verifier endpoints

func (*VerifierClient) Health

Health checks the health of the Verifier service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL