model

package
v0.0.0-...-89805ac Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateManifestRequest

type CreateManifestRequest struct {
	Name                   *string                          `json:"name,omitempty"`
	Description            *string                          `json:"description,omitempty"`
	IssuerDID              string                           `json:"issuerDid" validate:"required"`
	IssuerName             *string                          `json:"issuerName,omitempty"`
	OutputDescriptors      []manifestsdk.OutputDescriptor   `json:"outputDescriptors" validate:"required,dive"`
	ClaimFormat            *exchange.ClaimFormat            `json:"format" validate:"required,dive"`
	PresentationDefinition *exchange.PresentationDefinition `json:"presentationDefinition,omitempty" validate:"omitempty,dive"`
}

type CreateManifestResponse

type CreateManifestResponse struct {
	Manifest    manifestsdk.CredentialManifest `json:"manifest"`
	ManifestJWT keyaccess.JWT                  `json:"manifestJwt,omitempty"`
}

type DeleteApplicationRequest

type DeleteApplicationRequest struct {
	ID string `json:"id,omitempty" validate:"required"`
}

type DeleteManifestRequest

type DeleteManifestRequest struct {
	ID string `json:"id" validate:"required"`
}

type DeleteResponseRequest

type DeleteResponseRequest struct {
	ID string `json:"id" validate:"required"`
}

type GetApplicationRequest

type GetApplicationRequest struct {
	ID string `json:"id" validate:"required"`
}

type GetApplicationResponse

type GetApplicationResponse struct {
	// One of "pending", "fulfilled", "rejected". When Status is either fulfilled or rejected, a corresponding
	// SubmissionApplicationResponse is guaranteed to exist.
	Status      string
	Application manifestsdk.CredentialApplication `json:"application"`
}

type GetApplicationsResponse

type GetApplicationsResponse struct {
	Applications []manifestsdk.CredentialApplication `json:"applications,omitempty"`
}

type GetManifestRequest

type GetManifestRequest struct {
	ID string `json:"id" validate:"required"`
}

type GetManifestResponse

type GetManifestResponse struct {
	Manifest    manifestsdk.CredentialManifest `json:"manifest"`
	ManifestJWT keyaccess.JWT                  `json:"manifestJwt,omitempty"`
}

type GetManifestsResponse

type GetManifestsResponse struct {
	Manifests []GetManifestResponse `json:"manifests,omitempty"`
}

type GetResponseRequest

type GetResponseRequest struct {
	ID string `json:"id,omitempty" validate:"required"`
}

type GetResponseResponse

type GetResponseResponse struct {
	Response manifestsdk.CredentialResponse `json:"response"`
}

type GetResponsesResponse

type GetResponsesResponse struct {
	Responses []manifestsdk.CredentialResponse `json:"responses,omitempty"`
}

type SubmitApplicationRequest

type SubmitApplicationRequest struct {
	ApplicantDID    string                            `json:"applicantDid" validate:"required"`
	Application     manifestsdk.CredentialApplication `json:"application" validate:"required"`
	Credentials     []cred.Container                  `json:"credentials,omitempty"`
	ApplicationJWT  keyaccess.JWT                     `json:"applicationJwt,omitempty" validate:"required"`
	ApplicationJSON map[string]any                    `json:"applicationJson,omitempty"`
}

type SubmitApplicationResponse

type SubmitApplicationResponse struct {
	Response    manifestsdk.CredentialResponse `json:"response" validate:"required"`
	Credentials []any                          `json:"credentials,omitempty"`
	ResponseJWT keyaccess.JWT                  `json:"responseJwt,omitempty" validate:"required"`
}

func ServiceModel

func ServiceModel(storedResponse *storage.StoredResponse) SubmitApplicationResponse

ServiceModel creates a SubmitApplicationResponse from a given StoredResponse.

type VerifyManifestRequest

type VerifyManifestRequest struct {
	// ManifestJWT contains a `CredentialManifestWrapper` with a top level `credential_manifest` claim
	ManifestJWT keyaccess.JWT `json:"manifestJwt"`
}

type VerifyManifestResponse

type VerifyManifestResponse struct {
	Verified bool   `json:"verified"`
	Reason   string `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

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