at.happyproto.actor.syncAccount
Record the email address on the caller's PDS account with HappyProto, read server-side from their PDS session. The dashboard calls it once after each sign-in. The PDS reports the address only when the sign-in granted it (transition:email or account:email); without one, the last recorded address is kept, and an unconfirmed address never replaces a confirmed one. The address itself is never returned. Customers and staff; anyone else gets recorded = false.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | actor.happyproto.at |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.idempotencyKeyNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Record the email address on the caller's PDS account with HappyProto, read server-side from their PDS session. The dashboard calls it once after each sign-in. The PDS reports the address only when the sign-in granted it (transition:email or account:email); without one, the last recorded address is kept, and an unconfirmed address never replaces a confirmed one. The address itself is never returned. Customers and staff; anyone else gets recorded = false.",
"errors": [
{
"description": "This endpoint requires an authenticated caller.",
"name": "AuthRequired"
},
{
"description": "idempotencyKey is missing or not a UUID, or the provisioner refused the request as malformed.",
"name": "InvalidRequest"
},
{
"description": "Passed through from the provisioner.",
"name": "Forbidden"
},
{
"description": "Passed through from the provisioner.",
"name": "NotFound"
},
{
"description": "Passed through from the provisioner.",
"name": "InvalidSlug"
},
{
"description": "Passed through from the provisioner.",
"name": "SlugTaken"
},
{
"description": "Passed through from the provisioner.",
"name": "NotEntitled"
},
{
"description": "Passed through from the provisioner.",
"name": "InstanceLimit"
},
{
"description": "Passed through from the provisioner.",
"name": "NoCapacity"
},
{
"description": "Passed through from the provisioner.",
"name": "OperationInProgress"
},
{
"description": "The provisioner is unreachable, not configured, or answered with an error it does not explain to callers.",
"name": "Upstream"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"idempotencyKey": {
"description": "A UUID the client generates once per sign-in and resends on every retry of it.",
"type": "string"
}
},
"required": [
"idempotencyKey"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"emailConfirmed": {
"description": "Whether the PDS reported the held address as confirmed, when it said.",
"type": "boolean"
},
"emailRecorded": {
"description": "Whether HappyProto now holds an address for the caller: this sign-in's, or the last one recorded.",
"type": "boolean"
},
"recorded": {
"description": "Whether the caller has a HappyProto account to record it against: false for anyone who is neither a customer nor staff.",
"type": "boolean"
}
},
"required": [
"recorded"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "at.happyproto.actor.syncAccount",
"lexicon": 1
}