Skip to content
Snippets Groups Projects
types.go 1.06 KiB
Newer Older
  • Learn to ignore specific revisions
  • 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 {
    
    	ProofRecordID            string `json:"proofRecordId"`
    	PresentationMessage      string `json:"presentationMessage"`
    	PresentationMessageShort string `json:"presentationMessageShort"`
    	CreatedDate              string `json:"createdDate"`
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    }
    
    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 {
    
    	State         string         `json:"state"`
    	Presentations []Presentation `json:"presentations"`
    
    type Presentation struct {
    
    Yordan Kinkov's avatar
    Yordan Kinkov committed
    	SchemaID  string                 `json:"schemaId"`
    	CredDefID string                 `json:"credDefId"`
    	Claims    map[string]interface{} `json:"credentialSubject"`
    }