{
  "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": {
            "status": {
              "type": "string",
              "knownValues": ["existingLocal", "existingRemote", "created"]
            },
            "uri": { "type": "string", "format": "at-uri" },
            "cid": { "type": "string", "format": "cid" },
            "profile": { "type": "ref", "ref": "space.polymodel.actor.defs#profileView" }
          }
        }
      }
    }
  }
}
