{
  "lexicon": 1,
  "id": "space.polymodel.actor.bootstrapProfile",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "One-time authenticated bootstrap of the actor's Polymodel profile from their own PDS profile records. Creates space.polymodel.actor.profile/self only when absent locally and PDS-side.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "status",
            "profile"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid"
            },
            "profile": {
              "type": "ref",
              "ref": "space.polymodel.actor.defs#profileView"
            },
            "status": {
              "type": "string",
              "knownValues": [
                "existingLocal",
                "existingRemote",
                "created"
              ]
            },
            "uri": {
              "type": "string",
              "format": "at-uri"
            }
          }
        }
      }
    }
  }
}