forked from hyperledger-archives/aries-framework-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
69 lines (51 loc) · 1.46 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
Copyright SecureKey Technologies Inc. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package didexchange
import (
"github.com/hyperledger/aries-framework-go/pkg/didcomm/protocol/didexchange"
"github.com/hyperledger/aries-framework-go/pkg/store/connection"
)
// QueryConnectionsParams model
//
// Parameters for querying connections.
//
type QueryConnectionsParams struct {
// Alias of connection invitation
Alias string `json:"alias,omitempty"`
// Initiator is Connection invitation initiator
Initiator string `json:"initiator,omitempty"`
// Invitation key
InvitationKey string `json:"invitation_key,omitempty"`
// Invitation ID
InvitationID string `json:"invitation_id,omitempty"`
// Parent threadID
ParentThreadID string `json:"parent_thread_id,omitempty"`
// MyDID is DID of the agent
MyDID string `json:"my_did,omitempty"`
// State of the connection invitation
State string `json:"state"`
// TheirDID is other party's DID
TheirDID string `json:"their_did,omitempty"`
// TheirRole is other party's role
TheirRole string `json:"their_role,omitempty"`
}
// Connection model
//
// This is used to represent query connection result.
//
type Connection struct {
*connection.Record
}
// Invitation model for DID Exchange invitation.
type Invitation struct {
*didexchange.Invitation
}
// DIDInfo model for specifying public DID and associated label.
type DIDInfo struct {
// the DID
DID string
// the label associated with DID
Label string
}