{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "IdempotencyKeyRequired"
        },
        {
          "name": "IdempotencyConflict"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "RateLimited"
        },
        {
          "name": "QuotaExceeded"
        },
        {
          "name": "PayloadTooLarge"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "repo": {
              "format": "did",
              "type": "string"
            },
            "space": {
              "format": "at-uri",
              "type": "string"
            },
            "validate": {
              "type": "boolean"
            },
            "writes": {
              "items": {
                "type": "unknown"
              },
              "maxLength": 200,
              "minLength": 1,
              "type": "array"
            }
          },
          "required": [
            "space",
            "repo",
            "writes"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "results": {
              "items": {
                "type": "unknown"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Write-proxy alias of com.atproto.space.applyWrites. The body is the standard space batch shape; the $type values inside writes stay in the com.atproto.space.applyWrites namespace. The proxy checks every operation and forwards the canonical method. Requires an Idempotency-Key header.",
  "id": "party.whey.writeproxy.applyWrites",
  "lexicon": 1
}
