model

package
v0.1.178 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BasicMessage

type BasicMessage struct {
	ID         string    `json:"id"`
	Message    string    `json:"message"`
	SentByMe   bool      `json:"sentByMe"`
	Delivered  *bool     `json:"delivered"`
	CreatedMs  string    `json:"createdMs"`
	Connection *Pairwise `json:"connection"`
}

type BasicMessageConnection

type BasicMessageConnection struct {
	ConnectionID *string             `json:"ConnectionId"`
	Edges        []*BasicMessageEdge `json:"edges"`
	Nodes        []*BasicMessage     `json:"nodes"`
	PageInfo     *PageInfo           `json:"pageInfo"`
	TotalCount   int                 `json:"totalCount"`
}

type BasicMessageEdge

type BasicMessageEdge struct {
	Cursor string        `json:"cursor"`
	Node   *BasicMessage `json:"node"`
}

type ConnectInput

type ConnectInput struct {
	Invitation string `json:"invitation"`
}

type Credential

type Credential struct {
	ID            string             `json:"id"`
	Role          CredentialRole     `json:"role"`
	SchemaID      string             `json:"schemaId"`
	CredDefID     string             `json:"credDefId"`
	Attributes    []*CredentialValue `json:"attributes"`
	InitiatedByUs bool               `json:"initiatedByUs"`
	ApprovedMs    *string            `json:"approvedMs"`
	IssuedMs      *string            `json:"issuedMs"`
	CreatedMs     string             `json:"createdMs"`
	Connection    *Pairwise          `json:"connection"`
}

type CredentialConnection

type CredentialConnection struct {
	ConnectionID *string           `json:"connectionId"`
	Edges        []*CredentialEdge `json:"edges"`
	Nodes        []*Credential     `json:"nodes"`
	PageInfo     *PageInfo         `json:"pageInfo"`
	TotalCount   int               `json:"totalCount"`
}

type CredentialEdge

type CredentialEdge struct {
	Cursor string      `json:"cursor"`
	Node   *Credential `json:"node"`
}

type CredentialMatch added in v0.1.3

type CredentialMatch struct {
	ID           string `json:"id"`
	CredentialID string `json:"credentialId"`
	Value        string `json:"value"`
}

type CredentialRole

type CredentialRole string
const (
	CredentialRoleIssuer CredentialRole = "ISSUER"
	CredentialRoleHolder CredentialRole = "HOLDER"
)

func (CredentialRole) IsValid

func (e CredentialRole) IsValid() bool

func (CredentialRole) MarshalGQL

func (e CredentialRole) MarshalGQL(w io.Writer)

func (CredentialRole) String

func (e CredentialRole) String() string

func (*CredentialRole) UnmarshalGQL

func (e *CredentialRole) UnmarshalGQL(v interface{}) error

type CredentialValue

type CredentialValue struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Event

type Event struct {
	ID          string    `json:"id"`
	Read        bool      `json:"read"`
	Description string    `json:"description"`
	CreatedMs   string    `json:"createdMs"`
	Job         *JobEdge  `json:"job"`
	Connection  *Pairwise `json:"connection"`
}

type EventConnection

type EventConnection struct {
	ConnectionID *string      `json:"connectionId"`
	Edges        []*EventEdge `json:"edges"`
	Nodes        []*Event     `json:"nodes"`
	PageInfo     *PageInfo    `json:"pageInfo"`
	TotalCount   int          `json:"totalCount"`
}

type EventEdge

type EventEdge struct {
	Cursor string `json:"cursor"`
	Node   *Event `json:"node"`
}

type InvitationResponse

type InvitationResponse struct {
	ID       string `json:"id"`
	Label    string `json:"label"`
	Endpoint string `json:"endpoint"`
	Raw      string `json:"raw"`
	ImageB64 string `json:"imageB64"`
}

type Job

type Job struct {
	ID            string       `json:"id"`
	Protocol      ProtocolType `json:"protocol"`
	InitiatedByUs bool         `json:"initiatedByUs"`
	Status        JobStatus    `json:"status"`
	Result        JobResult    `json:"result"`
	CreatedMs     string       `json:"createdMs"`
	UpdatedMs     string       `json:"updatedMs"`
	Output        *JobOutput   `json:"output"`
}

type JobConnection

type JobConnection struct {
	ConnectionID *string    `json:"connectionId"`
	Completed    *bool      `json:"completed"`
	Edges        []*JobEdge `json:"edges"`
	Nodes        []*Job     `json:"nodes"`
	PageInfo     *PageInfo  `json:"pageInfo"`
	TotalCount   int        `json:"totalCount"`
}

type JobEdge

type JobEdge struct {
	Cursor string `json:"cursor"`
	Node   *Job   `json:"node"`
}

type JobOutput

type JobOutput struct {
	Connection *PairwiseEdge     `json:"connection"`
	Message    *BasicMessageEdge `json:"message"`
	Credential *CredentialEdge   `json:"credential"`
	Proof      *ProofEdge        `json:"proof"`
}

type JobResult

type JobResult string
const (
	JobResultNone    JobResult = "NONE"
	JobResultSuccess JobResult = "SUCCESS"
	JobResultFailure JobResult = "FAILURE"
)

func (JobResult) IsValid

func (e JobResult) IsValid() bool

func (JobResult) MarshalGQL

func (e JobResult) MarshalGQL(w io.Writer)

func (JobResult) String

func (e JobResult) String() string

func (*JobResult) UnmarshalGQL

func (e *JobResult) UnmarshalGQL(v interface{}) error

type JobStatus

type JobStatus string
const (
	JobStatusWaiting  JobStatus = "WAITING"
	JobStatusPending  JobStatus = "PENDING"
	JobStatusBlocked  JobStatus = "BLOCKED"
	JobStatusComplete JobStatus = "COMPLETE"
)

func (JobStatus) IsValid

func (e JobStatus) IsValid() bool

func (JobStatus) MarshalGQL

func (e JobStatus) MarshalGQL(w io.Writer)

func (JobStatus) String

func (e JobStatus) String() string

func (*JobStatus) UnmarshalGQL

func (e *JobStatus) UnmarshalGQL(v interface{}) error

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

type MarkReadInput

type MarkReadInput struct {
	ID string `json:"id"`
}

type MessageInput

type MessageInput struct {
	ConnectionID string `json:"connectionId"`
	Message      string `json:"message"`
}

type PageInfo

type PageInfo struct {
	EndCursor       *string `json:"endCursor"`
	HasNextPage     bool    `json:"hasNextPage"`
	HasPreviousPage bool    `json:"hasPreviousPage"`
	StartCursor     *string `json:"startCursor"`
}

type Pairwise

type Pairwise struct {
	ID            string                  `json:"id"`
	OurDid        string                  `json:"ourDid"`
	TheirDid      string                  `json:"theirDid"`
	TheirEndpoint string                  `json:"theirEndpoint"`
	TheirLabel    string                  `json:"theirLabel"`
	CreatedMs     string                  `json:"createdMs"`
	ApprovedMs    string                  `json:"approvedMs"`
	Invited       bool                    `json:"invited"`
	Messages      *BasicMessageConnection `json:"messages"`
	Credentials   *CredentialConnection   `json:"credentials"`
	Proofs        *ProofConnection        `json:"proofs"`
	Jobs          *JobConnection          `json:"jobs"`
	Events        *EventConnection        `json:"events"`
}

type PairwiseConnection

type PairwiseConnection struct {
	Edges      []*PairwiseEdge `json:"edges"`
	Nodes      []*Pairwise     `json:"nodes"`
	PageInfo   *PageInfo       `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

type PairwiseEdge

type PairwiseEdge struct {
	Cursor string    `json:"cursor"`
	Node   *Pairwise `json:"node"`
}

type Proof

type Proof struct {
	ID            string            `json:"id"`
	Role          ProofRole         `json:"role"`
	Attributes    []*ProofAttribute `json:"attributes"`
	Values        []*ProofValue     `json:"values"`
	Provable      *Provable         `json:"provable"`
	InitiatedByUs bool              `json:"initiatedByUs"`
	Result        bool              `json:"result"`
	VerifiedMs    *string           `json:"verifiedMs"`
	ApprovedMs    *string           `json:"approvedMs"`
	CreatedMs     string            `json:"createdMs"`
	Connection    *Pairwise         `json:"connection"`
}

type ProofAttribute

type ProofAttribute struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	CredDefID string `json:"credDefId"`
}

type ProofConnection

type ProofConnection struct {
	ConnectionID *string      `json:"connectionId"`
	Edges        []*ProofEdge `json:"edges"`
	Nodes        []*Proof     `json:"nodes"`
	PageInfo     *PageInfo    `json:"pageInfo"`
	TotalCount   int          `json:"totalCount"`
}

type ProofEdge

type ProofEdge struct {
	Cursor string `json:"cursor"`
	Node   *Proof `json:"node"`
}

type ProofRequestAttribute added in v0.1.163

type ProofRequestAttribute struct {
	Name      string `json:"name"`
	CredDefID string `json:"credDefId"`
}

type ProofRequestInput added in v0.1.163

type ProofRequestInput struct {
	ConnectionID string                   `json:"connectionId"`
	Attributes   []*ProofRequestAttribute `json:"attributes"`
}

type ProofRole

type ProofRole string
const (
	ProofRoleVerifier ProofRole = "VERIFIER"
	ProofRoleProver   ProofRole = "PROVER"
)

func (ProofRole) IsValid

func (e ProofRole) IsValid() bool

func (ProofRole) MarshalGQL

func (e ProofRole) MarshalGQL(w io.Writer)

func (ProofRole) String

func (e ProofRole) String() string

func (*ProofRole) UnmarshalGQL

func (e *ProofRole) UnmarshalGQL(v interface{}) error

type ProofValue added in v0.1.3

type ProofValue struct {
	ID          string `json:"id"`
	AttributeID string `json:"attributeId"`
	Value       string `json:"value"`
}

type ProtocolType

type ProtocolType string
const (
	ProtocolTypeNone         ProtocolType = "NONE"
	ProtocolTypeConnection   ProtocolType = "CONNECTION"
	ProtocolTypeCredential   ProtocolType = "CREDENTIAL"
	ProtocolTypeProof        ProtocolType = "PROOF"
	ProtocolTypeBasicMessage ProtocolType = "BASIC_MESSAGE"
)

func (ProtocolType) IsValid

func (e ProtocolType) IsValid() bool

func (ProtocolType) MarshalGQL

func (e ProtocolType) MarshalGQL(w io.Writer)

func (ProtocolType) String

func (e ProtocolType) String() string

func (*ProtocolType) UnmarshalGQL

func (e *ProtocolType) UnmarshalGQL(v interface{}) error

type Provable added in v0.1.3

type Provable struct {
	ID         string               `json:"id"`
	Provable   bool                 `json:"provable"`
	Attributes []*ProvableAttribute `json:"attributes"`
}

type ProvableAttribute added in v0.1.3

type ProvableAttribute struct {
	ID          string             `json:"id"`
	Attribute   *ProofAttribute    `json:"attribute"`
	Credentials []*CredentialMatch `json:"credentials"`
}

type Response

type Response struct {
	Ok bool `json:"ok"`
}

type ResumeJobInput

type ResumeJobInput struct {
	ID     string `json:"id"`
	Accept bool   `json:"accept"`
}

type User

type User struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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