github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/protocol/outofbandv2/models.go (about) 1 /* 2 Copyright SecureKey Technologies Inc. All Rights Reserved. 3 4 SPDX-License-Identifier: Apache-2.0 5 */ 6 7 package outofbandv2 8 9 import "github.com/hyperledger/aries-framework-go/pkg/didcomm/protocol/decorator" 10 11 // Invitation is this protocol's `invitation` message. 12 type Invitation struct { 13 ID string `json:"id"` 14 Type string `json:"type"` 15 Label string `json:"label,omitempty"` 16 From string `json:"from"` 17 Body *InvitationBody `json:"body"` 18 Requests []*decorator.AttachmentV2 `json:"attachments,omitempty"` 19 } 20 21 // InvitationBody contains invitation's goal and accept headers. 22 type InvitationBody struct { 23 Goal string `json:"goal,omitempty"` 24 GoalCode string `json:"goal_code,omitempty"` 25 Accept []string `json:"accept,omitempty"` 26 }