Action

@Serializable
data class Action(val type: String, val url: String? = null, val data: Map<String, JsonElement>? = null, val description: String? = null)

Represents an action required to complete a DID operation.

According to the DID Registration specification, when an operation's state is "action", the action field contains details about what additional steps are required.

Common action types:

  • redirect: Redirect user to a URL (e.g., for OAuth flow)

  • sign: Request signature from external wallet

  • wait: Wait for external process to complete

  • retry: Retry the operation with different parameters

See also

https

://identity.foundation/did-registration/

Constructors

Link copied to clipboard
constructor(type: String, url: String? = null, data: Map<String, JsonElement>? = null, description: String? = null)

Properties

Link copied to clipboard
val data: Map<String, JsonElement>?

Additional data required for the action.

Link copied to clipboard

Description or instructions for the action. Human-readable text explaining what needs to be done.

Link copied to clipboard

Type of action required.

Link copied to clipboard
val url: String?

URL to redirect to or endpoint to call. Used for redirect and some sign action types.