com.fedproxy.temp.xrpc.subscribe

Open a relay channel. The subscriber presents a com.fedproxy.temp.xrpc.registration: a record signed (network.attested.signature) over the nonce previously issued by com.fedproxy.temp.xrpc.getRegistrationNonce. The relay verifies the registration's signatures against the issued nonce and the did:key, then binds the WebSocket to that key. On connect the relay sends a #registered frame with the assigned serviceId/proxyRef; subsequent #request frames carry inbound XRPC calls the subscriber answers with #response frames.

Details · subscription
Kindsubscription
Authorityxrpc.temp.fedproxy.com
Indexed
cid bafyreibxzyhicfjowd4wy7yf5w43swtctz2w3lq3lahb2kzpcbvl7srwoi

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Open a relay channel. The subscriber presents a com.fedproxy.temp.xrpc.registration: a record signed (network.attested.signature) over the nonce previously issued by com.fedproxy.temp.xrpc.getRegistrationNonce. The relay verifies the registration's signatures against the issued nonce and the did:key, then binds the WebSocket to that key. On connect the relay sends a #registered frame with the assigned serviceId/proxyRef; subsequent #request frames carry inbound XRPC calls the subscriber answers with #response frames.",
      "errors": [
        {
          "description": "Malformed or missing registration.",
          "name": "InvalidRequest"
        },
        {
          "description": "Registration signatures do not verify against the issued nonce or did:key, or the nonce is unknown/expired.",
          "name": "Unauthorized"
        }
      ],
      "message": {
        "schema": {
          "refs": [
            "#registered",
            "#request",
            "#response"
          ],
          "type": "union"
        }
      },
      "parameters": {
        "properties": {
          "registration": {
            "description": "The full com.fedproxy.temp.xrpc.registration object as URL-encoded JSON, signing the nonce from getRegistrationNonce. Sent inline (not an AT-URI) so the subscriber needs no PDS to host the record.",
            "type": "string"
          }
        },
        "required": [
          "registration"
        ],
        "type": "params"
      },
      "type": "subscription"
    },
    "registered": {
      "description": "First frame sent by the relay on connect, assigning this subscriber a serviceId.",
      "properties": {
        "proxyRef": {
          "description": "did:web:HOST#serviceId value callers pass as the atproto-proxy header to route XRPC calls to this subscriber.",
          "type": "string"
        },
        "serviceId": {
          "description": "Opaque id the relay assigns to this subscriber for the connection lifetime.",
          "type": "string"
        }
      },
      "required": [
        "serviceId",
        "proxyRef"
      ],
      "type": "object"
    },
    "request": {
      "description": "An inbound XRPC call relayed to the subscriber to handle.",
      "properties": {
        "body": {
          "type": "unknown"
        },
        "callerDid": {
          "format": "did",
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "nsid": {
          "format": "nsid",
          "type": "string"
        },
        "params": {
          "description": "Query params as a map of string keys to string values.",
          "type": "unknown"
        },
        "requestId": {
          "type": "string"
        }
      },
      "required": [
        "requestId",
        "method",
        "nsid",
        "params",
        "callerDid"
      ],
      "type": "object"
    },
    "response": {
      "description": "The subscriber's reply to a #request, keyed by the same requestId.",
      "properties": {
        "body": {
          "type": "unknown"
        },
        "contentType": {
          "type": "string"
        },
        "requestId": {
          "type": "string"
        },
        "status": {
          "type": "integer"
        }
      },
      "required": [
        "requestId",
        "status"
      ],
      "type": "object"
    }
  },
  "id": "com.fedproxy.temp.xrpc.subscribe",
  "lexicon": 1
}