Documentation
¶
Index ¶
- type AcceptExchangeRequestParams
- type AcceptExchangeResult
- type AcceptInvitationRequest
- type AcceptInvitationResponse
- type CreateInvitationParams
- type CreateInvitationRequest
- type CreateInvitationResponse
- type ExchangeResponse
- type GenericError
- type GetConnectionRequest
- type QueryConnectionResponse
- type QueryConnections
- type QueryConnectionsResponse
- type ReceiveInvitationRequest
- type ReceiveInvitationResponse
- type RemoveConnectionRequest
- type RemoveConnectionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptExchangeRequestParams ¶
type AcceptExchangeRequestParams struct {
// Connection ID
//
// in: path
// required: true
ID string `json:"id"`
}
AcceptExchangeRequestParams model
This is used for accepting connection request ¶
swagger:parameters acceptRequest
type AcceptExchangeResult ¶
type AcceptExchangeResult struct {
// in: body
Result *ExchangeResponse `json:""`
}
AcceptExchangeResult model
This is used for returning response for accept exchange request ¶
swagger:response acceptExchangeResponse
type AcceptInvitationRequest ¶
type AcceptInvitationRequest struct {
// Connection ID
//
// in: path
// required: true
ID string `json:"id"`
}
AcceptInvitationRequest model
This is used for operation to accept connection invitation ¶
swagger:parameters acceptInvitation
type AcceptInvitationResponse ¶
type AcceptInvitationResponse struct {
// State of the connection invitation
State string `json:"state,omitempty"`
// Other party's DID
InviterDID string `json:"their_did,omitempty"`
// Created time
CreateTime time.Time `json:"created_at,omitempty"`
// Connection invitation accept mode
Accept string `json:"accept,omitempty"`
// My DID
DID string `json:"my_did,omitempty"`
// Request ID of invitation response
RequestID string `json:"request_id,omitempty"`
// Other party's label
InviterLabel string `json:"their_label,omitempty"`
// Alias
Alias string `json:"alias,omitempty"`
// Other party's role
InviterRole string `json:"their_role,omitempty"`
// Connection invitation initiator
Initiator string `json:"initiator,omitempty"`
// Updated time
UpdateTime time.Time `json:"updated_at,omitempty"`
// Invitation key
InvitationKey string `json:"invitation_key,omitempty"`
// Routing state of connection invitation
RoutingState string `json:"routing_state,omitempty"`
// Inbound Connection ID of the connection invitation
InboundConnectionID string `json:"inbound_connection_id,omitempty"`
// the connection ID of the connection invitation
ConnectionID string `json:"connection_id,omitempty"`
// Error message
Error string `json:"error_msg,omitempty"`
// Invitation mode
Mode string `json:"invitation_mode,omitempty"`
}
AcceptInvitationResponse model
This is used for returning a accept invitation response for single invitation ¶
swagger:response acceptInvitationResponse
type CreateInvitationParams ¶
type CreateInvitationParams struct {
// The Alias to be used in invitation to be created
Alias string `json:"alias"`
// Optional public DID to be used in invitation
Public string `json:"public,omitempty"`
}
CreateInvitationParams model
This is used for creating invitation
type CreateInvitationRequest ¶
type CreateInvitationRequest struct {
// Params for creating invitation
//
// in: path
*CreateInvitationParams
}
CreateInvitationRequest model
This is used for operation to create invitation ¶
swagger:parameters createInvitation
type CreateInvitationResponse ¶
type CreateInvitationResponse struct {
// in: body
Invitation *didexchange.Invitation `json:"invitation"`
// in: body
Alias string `json:"alias"`
// in: body
InvitationURL string `json:"invitation_url"`
}
CreateInvitationResponse model
This is used for returning a create invitation response with a single connection invitation as body ¶
swagger:response createInvitationResponse
type ExchangeResponse ¶
type ExchangeResponse struct {
// Routing state of connection invitation
RoutingState string `json:"routing_state,omitempty"`
// the connection ID of the connection invitation
InboundConnectionID string `json:"inbound_connection_id,omitempty"`
// Invitation key
InvitationKey string `json:"invitation_key,omitempty"`
// TheirDID is other party's DID
TheirDID string `json:"their_did"`
// Request ID of the connection request
RequestID string `json:"request_id"`
// Invitation mode
Mode string `json:"invitation_mode,omitempty"`
// TheirRole is other party's role
TheirRole string `json:"their_role,omitempty"`
// TheirRole is other party's role
TheirLabel string `json:"their_label,omitempty"`
// the connection ID of the connection invitation
ConnectionID string `json:"connection_id,omitempty"`
// Initiator is Connection invitation initiator
Initiator string `json:"initiator,omitempty"`
// MyDID is DID of the agent
MyDID string `json:"my_did,omitempty"`
// Updated time
UpdatedTime time.Time `json:"updated_at,omitempty"`
// Created time
CreatedTime time.Time `json:"created_at,omitempty"`
// Error message
Error string `json:"error_msg,omitempty"`
// Alias of connection invitation
Alias string `json:"alias,omitempty"`
// State of the connection invitation
State string `json:"state"`
// Connection invitation accept mode
Accept string `json:"accept,omitempty"`
}
ExchangeResponse model
response of accept exchange request
swagger:model ExchangeResponse
type GenericError ¶
type GenericError struct {
// in: body
Body struct {
Code int32 `json:"code"`
Message string `json:"message"`
} `json:"body"`
}
A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures.
swagger:response genericError
type GetConnectionRequest ¶
type GetConnectionRequest struct {
// The ID of the connection to get
//
// in: path
// required: true
ID string `json:"id"`
}
GetConnectionRequest model
This is used for getting specific connection record ¶
swagger:parameters getConnection
type QueryConnectionResponse ¶
type QueryConnectionResponse struct {
// in: body
Result *didexchange.Connection `json:"result,omitempty"`
}
QueryConnectionResponse model
This is used for returning query connection result for single record search ¶
swagger:response queryConnectionResponse
type QueryConnections ¶
type QueryConnections struct {
// Params for querying connections
//
// in: path
// required: true
*didexchange.QueryConnectionsParams
}
QueryConnections model
This is used for querying connections ¶
swagger:parameters queryConnections
type QueryConnectionsResponse ¶
type QueryConnectionsResponse struct {
// in: body
Results []*didexchange.Connection `json:"results,omitempty"`
}
QueryConnectionsResponse model
This is used for returning query connections results ¶
swagger:response queryConnectionsResponse
type ReceiveInvitationRequest ¶
type ReceiveInvitationRequest struct {
// The Invitation Request to receive
//
// required: true
// in: body
Invitation *didexchange.Invitation `json:""`
}
ReceiveInvitationRequest model
This is used for operation to receive connection invitation ¶
swagger:parameters receiveInvitation
type ReceiveInvitationResponse ¶
type ReceiveInvitationResponse struct {
// State of the connection invitation
State string `json:"state"`
// Created time
CreateTime time.Time `json:"created_at,omitempty"`
// Updated time
UpdateTime time.Time `json:"updated_at,omitempty"`
// the connection ID of the connection invitation
ConnectionID string `json:"connection_id"`
// Routing state of connection invitation
RoutingState string `json:"routing_state,omitempty"`
// Connection invitation initiator
Initiator string `json:"initiator,omitempty"`
// Connection invitation accept mode
Accept string `json:"accept,omitempty"`
// Invitation mode
Mode string `json:"invitation_mode,omitempty"`
// Request ID of invitation response
RequestID string `json:"request_id"`
// My DID
DID string `json:"my_did"`
// Invitation key
InvitationKey string `json:"invitation_key,omitempty"`
// Other party's label
InviterLabel string `json:"their_label,omitempty"`
}
ReceiveInvitationResponse model
This is used for returning a receive invitation response with a single receive invitation response as body ¶
swagger:response receiveInvitationResponse
type RemoveConnectionRequest ¶
type RemoveConnectionRequest struct {
// The ID of the connection record to remove
//
// in: path
// required: true
ID string `json:"id"`
}
RemoveConnectionRequest model
This is used for removing connection request ¶
swagger:parameters removeConnection
type RemoveConnectionResponse ¶
type RemoveConnectionResponse struct {
}
RemoveConnectionResponse model
response of remove connection action
swagger:response removeConnectionResponse