app.tempomusic.actor.putAnalyticsConsent

Store the requesting viewer's analytics consent preferences with last-write-wins semantics on the sibling updatedAtMicros clock (client wall-clock microseconds): the server keeps the document with the highest value and always returns the winning document with its clock, which the client must adopt as its new local state. The viewer DID is read from the service-auth JWT (`iss` claim).

Details · procedure
Kindprocedure
Authorityactor.tempomusic.app
Indexed
cid bafyreiddhw2qclb7omweaddd2ltkrbixjydufxpkzv2yqfshuj3twvnod4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Store the requesting viewer's analytics consent preferences with last-write-wins semantics on the sibling updatedAtMicros clock (client wall-clock microseconds): the server keeps the document with the highest value and always returns the winning document with its clock, which the client must adopt as its new local state. The viewer DID is read from the service-auth JWT (`iss` claim).",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "preferences": {
              "ref": "app.tempomusic.actor.defs#analyticsConsentPreferences",
              "type": "ref"
            },
            "updatedAtMicros": {
              "description": "Client wall-clock microseconds of this write. LWW tie-breaker; the server keeps the document with the highest value (the stored document wins ties).",
              "type": "integer"
            }
          },
          "required": [
            "preferences",
            "updatedAtMicros"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "preferences": {
              "ref": "app.tempomusic.actor.defs#analyticsConsentPreferences",
              "type": "ref"
            },
            "updatedAtMicros": {
              "description": "Clock of the winning document after reconciliation.",
              "type": "integer"
            }
          },
          "required": [
            "preferences",
            "updatedAtMicros"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.tempomusic.actor.putAnalyticsConsent",
  "lexicon": 1
}