"Docs":"Account exports web API functions for the account web interface. All its\nmethods are exported under /api/. Function calls require valid HTTP\nAuthentication credentials of a user.",
"Docs":"SetPassword saves a new password for the account, invalidating the previous password.\nSessions are not interrupted, and will keep working. New login attempts must use the new password.\nPassword must be at least 8 characters.",
"Docs":"Destinations returns the default domain, and the destinations (keys are email\naddresses, or localparts to the default domain).\ntodo: replace with a function that returns the whole account, when sherpadoc understands unnamed struct fields.",
"Params":[],
"Returns":[
{
"Name":"r0",
"Typewords":[
"Domain"
]
},
{
"Name":"r1",
"Typewords":[
"{}",
"Destination"
]
}
]
},
{
"Name":"DestinationSave",
"Docs":"DestinationSave updates a destination.\nOldDest is compared against the current destination. If it does not match, an\nerror is returned. Otherwise newDest is saved and the configuration reloaded.",
"Docs":"Domain is a domain name, with one or more labels, with at least an ASCII\nrepresentation, and for IDNA non-ASCII domains a unicode representation.\nThe ASCII string must be used for DNS lookups.",
"Fields":[
{
"Name":"ASCII",
"Docs":"A non-unicode domain, e.g. with A-labels (xn--...) or NR-LDH (non-reserved letters/digits/hyphens) labels. Always in lower case.",
"Typewords":[
"string"
]
},
{
"Name":"Unicode",
"Docs":"Name as U-labels. Empty if this is an ASCII-only domain.",