{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "本人のPDSにある現在レコードを取得し、Nagi AppViewへ即時反映する。",
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "name": "InvalidRecord"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "maxLength": 128,
              "type": "string"
            },
            "uri": {
              "format": "at-uri",
              "maxLength": 2048,
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "format": "cid",
              "maxLength": 128,
              "type": "string"
            },
            "indexed": {
              "const": true,
              "type": "boolean"
            },
            "uri": {
              "format": "at-uri",
              "maxLength": 2048,
              "type": "string"
            }
          },
          "required": [
            "uri",
            "cid",
            "indexed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.suibari.nagi.ensureRecord",
  "lexicon": 1
}
