correio/passwordless/store
Trusted adapter protocol. Applications normally use passwordless.Service. Implementations must serialize each command, sample milliseconds since Unix epoch after acquiring serialization, and return Unknown for ambiguous writes.
Types
pub type Fault {
Unavailable
Unknown
Capacity
IncompatibleData
IssueExpired
IdentityCollision
}
Constructors
-
Unavailable -
Unknown -
Capacity -
IncompatibleData -
IssueExpired -
IdentityCollision
pub type Issue(a) {
Issue(
id: String,
subject: a,
scope: String,
purpose: String,
destination: String,
verifier: String,
expires_at: Int,
retain_until: Int,
attempts: Int,
)
}
Constructors
-
Issue( id: String, subject: a, scope: String, purpose: String, destination: String, verifier: String, expires_at: Int, retain_until: Int, attempts: Int, )
pub type Refusal {
Missing
Expired
Revoked
Exhausted
Consumed
WrongAnswer
BindingMismatch
Malformed
}
Constructors
-
Missing -
Expired -
Revoked -
Exhausted -
Consumed -
WrongAnswer -
BindingMismatch -
Malformed
pub type Revoke {
Revoke(id: String, scope: String, purpose: String)
}
Constructors
-
Revoke(id: String, scope: String, purpose: String)
pub type Row(a) {
Row(
id: String,
subject: a,
scope: String,
purpose: String,
destination: String,
verifier: String,
expires_at: Int,
retain_until: Int,
attempts: Int,
status: Status,
failed_commands: List(String),
)
}
Constructors
-
Row( id: String, subject: a, scope: String, purpose: String, destination: String, verifier: String, expires_at: Int, retain_until: Int, attempts: Int, status: Status, failed_commands: List(String), )
pub type Status {
Active
Spent(command: String, authenticated_at: Int)
Withdrawn
TimedOut
}
Constructors
-
Active -
Spent(command: String, authenticated_at: Int) -
Withdrawn -
TimedOut