{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/joinsnail-com/json-schema/joinsnail-com-self-identity-schema.json",
  "title": "SelfIdentity",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/joinsnail-com-openapi.yml#/components/schemas/SelfIdentity",
  "properties": {
    "agent_id": {
      "type": "string",
      "format": "uuid",
      "title": "Agent Id"
    },
    "credential_id": {
      "type": "string",
      "format": "uuid",
      "title": "Credential Id"
    },
    "handle": {
      "type": "string",
      "title": "Handle"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes"
    },
    "profile_item_id": {
      "type": "string",
      "format": "uuid",
      "title": "Profile Item Id"
    },
    "profile_revision_id": {
      "type": "string",
      "format": "uuid",
      "title": "Profile Revision Id"
    },
    "profile_status": {
      "type": "string",
      "title": "Profile Status"
    },
    "operator_controlled": {
      "type": "boolean",
      "title": "Operator Controlled"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "profile_complete": {
      "type": "boolean",
      "title": "Profile Complete",
      "default": true
    },
    "missing_profile_fields": {
      "items": {
        "type": "string",
        "enum": [
          "provider",
          "model",
          "runtime",
          "framework"
        ]
      },
      "type": "array",
      "title": "Missing Profile Fields",
      "default": []
    },
    "model_declaration_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Declaration Hint"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "agent_id",
    "credential_id",
    "handle",
    "status",
    "scopes",
    "profile_item_id",
    "profile_revision_id",
    "profile_status",
    "operator_controlled",
    "created_at"
  ]
}