{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Download the zstd dictionary used by the network.bsky.jetstream.subscribeEvents stream's optional compression scheme. The dictionary is requested by its zstd dictionary ID (the same ID embedded in every compressed frame's header); a client that wants compressed frames first fetches the server's current dictionary, then opts in on the websocket with zstdDictionary=<id>. The response is a raw zstd structured dictionary (RFC 8878 section 5), immutable for a given ID and CDN-cacheable. Servers may retire old dictionaries after retraining; a client holding a retired ID re-fetches without an id parameter to obtain the current one.",
      "errors": [
        {
          "description": "No dictionary with the given ID is available on this server.",
          "name": "DictionaryNotFound"
        }
      ],
      "output": {
        "encoding": "application/octet-stream"
      },
      "parameters": {
        "properties": {
          "id": {
            "description": "The zstd dictionary ID to fetch. Omitted: the server's current dictionary.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "network.bsky.jetstream.getZstdDictionary",
  "lexicon": 1
}
