Skip to content
Snippets Groups Projects
types.go 928 B
Newer Older
Yordan Kinkov's avatar
Yordan Kinkov committed
package ocm

type LoginProofInvitationResponse struct {
	StatusCode int                              `json:"statusCode"`
	Message    string                           `json:"message"`
	Data       LoginProofInvitationResponseData `json:"data"`
}

type LoginProofInvitationResponseData struct {
Yordan Kinkov's avatar
Yordan Kinkov committed
	PresentationID      string `json:"presentationId"`
Yordan Kinkov's avatar
Yordan Kinkov committed
	PresentationMessage string `json:"presentationMessage"`
}
Yordan Kinkov's avatar
Yordan Kinkov committed

type LoginProofResultResponse struct {
	StatusCode int                          `json:"statusCode"`
	Message    string                       `json:"message"`
	Data       LoginProofResultResponseData `json:"data"`
}

type LoginProofResultResponseData struct {
Yordan Kinkov's avatar
Yordan Kinkov committed
	State string       `json:"state"`
	Data  []Credential `json:"data"`
}

type Credential struct {
Yordan Kinkov's avatar
Yordan Kinkov committed
	SchemaID  string                 `json:"schemaId"`
	CredDefID string                 `json:"credDefId"`
	Claims    map[string]interface{} `json:"credentialSubject"`
}