app.tempomusic.actor.putAnalyticsConsent

lexicons.tempomusic.fan

Documentation

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).

main procedure

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

Encodingapplication/json
updatedAtMicros integer Required

Client wall-clock microseconds of this write. LWW tie-breaker; the server keeps the document with the highest value (the stored document wins ties).

Output

Encodingapplication/json
updatedAtMicros integer Required

Clock of the winning document after reconciliation.

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "preferences",
        "updatedAtMicros"
      ],
      "properties": {
        "preferences": {
          "ref": "app.tempomusic.actor.defs#analyticsConsentPreferences",
          "type": "ref"
        },
        "updatedAtMicros": {
          "type": "integer",
          "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)."
        }
      }
    },
    "encoding": "application/json"
  },
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "preferences",
        "updatedAtMicros"
      ],
      "properties": {
        "preferences": {
          "ref": "app.tempomusic.actor.defs#analyticsConsentPreferences",
          "type": "ref"
        },
        "updatedAtMicros": {
          "type": "integer",
          "description": "Clock of the winning document after reconciliation."
        }
      }
    },
    "encoding": "application/json"
  },
  "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)."
}

Lexicon Garden

@