fmgp.did.comm.protocol.actionmenu2
Members list
Type members
Classlikes
object Form
object FromParam
A requester is expected to display only one active menu per connection when action menus are employed by the responder. A newly received menu is not expected to interrupt a user, but rather be made available for the user to inspect possible actions related to the responder.
A requester is expected to display only one active menu per connection when action menus are employed by the responder. A newly received menu is not expected to interrupt a user, but rather be made available for the user to inspect possible actions related to the responder.
{
"type": "https://didcomm.org/action-menu/2.0/menu",
"id": "5678876542344",
"to" : [ "did:example:bob" ],
"from" : "did:example:alice",
"body": {
"title": "Welcome to IIWBook",
"description": "IIWBook facilitates connections between attendees by verifying attendance and distributing connection invitations.",
"errormsg": "No IIWBook names were found.",
"options": [
{
"name": "obtain-email-cred",
"title": "Obtain a verified email credential",
"description": "Connect with the BC email verification service to obtain a verified email credential"
},
{
"name": "verify-email-cred",
"title": "Verify your participation",
"description": "Present a verified email credential to identify yourself"
},
{
"name": "search-introductions",
"title": "Search introductions",
"description": "Your email address must be verified to perform a search",
"disabled": true
}
]
}
}
Quick forms:
{
"type": "https://didcomm.org/action-menu/2.0/menu",
"id": "5678876542347",
"thid": "5678876542344",
"to" : [ "did:example:bob" ],
"from" : "did:example:alice",
"title": "Attendance Verified",
"body": {
"description": "",
"options": [
{
"name": "submit-invitation",
"title": "Submit an invitation",
"description": "Send an invitation for IIWBook to share with another participant"
},
{
"name": "search-introductions",
"title": "Search introductions",
"form": {
"description": "Enter a participant name below to perform a search.",
"params": [
{
"name": "query",
"title": "Participant name",
"default": "",
"description": "",
"required": true,
"type": "text"
}
],
"submit-label": "Search"
}
}
]
}
}
Attributes
- Companion
- object
- Supertypes
object Menu
final case class MenuForm(name: String, title: String, form: Form) extends MenuOptionFrom
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MenuOptionFromclass Objecttrait Matchableclass AnyShow all
object MenuForm
final case class MenuOption(name: String, title: String, description: String, disabled: Option[Boolean]) extends MenuOptionFrom
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait MenuOptionFromclass Objecttrait Matchableclass AnyShow all
object MenuOption
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MenuOption.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class MenuFormclass MenuOption
object MenuOptionFrom
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
MenuOptionFrom.type
{
"type": "https://didcomm.org/action-menu/2.0/perform",
"id": "5678876542346",
"thid": "5678876542344",
"to" : [ "did:example:alice" ],
"from" : "did:example:bob",
"body":{
"name": "obtain-email-cred",
"params": {}
}
}
Attributes
- Companion
- object
- Supertypes
In this article