WalletOrganizationBuilder

Wallet Organization Builder DSL.

Provides a fluent API for organizing credentials in wallets without manual type checks. Automatically handles capability detection and provides helpful error messages.

Example Usage:

wallet.organize {
collection("Education", "Academic degrees") {
add(bachelorId, masterId)
tag(bachelorId, "education", "degree", "bachelor")
tag(masterId, "education", "degree", "master")
}

collection("Work Experience") {
add(job1Id, job2Id)
tag(job1Id, "work", "employment", "completed")
tag(job2Id, "work", "employment", "current")
}
}

Constructors

Link copied to clipboard
constructor(wallet: Wallet)

Types

Link copied to clipboard
inner class CollectionBuilder(val name: String, val description: String?)

Collection builder for configuring a collection.

Link copied to clipboard
inner class MetadataBuilder

Metadata builder for configuring metadata.

Link copied to clipboard
sealed class TagOperation

Tag operation.

Functions

Link copied to clipboard
fun collection(name: String, description: String? = null, block: WalletOrganizationBuilder.CollectionBuilder.() -> Unit)

Create a collection and configure it.

Link copied to clipboard

Execute all organization operations.

Link copied to clipboard

Add metadata to a credential.

Link copied to clipboard
fun notes(credentialId: String, notes: String?)

Update notes for a credential.

Link copied to clipboard
fun tag(credentialId: String, vararg tags: String)

Add tags to a credential.

Link copied to clipboard
fun untag(credentialId: String, vararg tags: String)

Remove tags from a credential.