{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bamf-ai/json-schema/bamf-ai-authenticated-actor-schema.json",
  "title": "AuthenticatedActor",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bamf-ai-me-api-openapi.yml#/components/schemas/AuthenticatedActor",
  "type": "object",
  "properties": {
    "user_id": {
      "type": "string"
    },
    "key_type": {
      "type": "string"
    },
    "creator_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "creator_space": {
      "anyOf": [
        {
          "$ref": "#/$defs/CreatorSpace"
        },
        {
          "type": "null"
        }
      ]
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "CreatorSpace": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "creator_id": {
          "type": "string",
          "description": "Alias of id for agent workflows that ask for creator_id."
        },
        "user_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "workspace_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "bio": {
          "type": [
            "string",
            "null"
          ]
        },
        "industry": {
          "type": [
            "string",
            "null"
          ]
        },
        "job_description": {
          "type": [
            "string",
            "null"
          ]
        },
        "avatar_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "linkedin_username": {
          "type": [
            "string",
            "null"
          ]
        },
        "linkedin_headline": {
          "type": [
            "string",
            "null"
          ]
        },
        "linkedin_profile_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "website_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "website_summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "follower_count": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Current LinkedIn follower count from the linked profile metrics row."
        },
        "connection_count": {
          "type": [
            "integer",
            "null"
          ]
        },
        "profile_views": {
          "type": [
            "integer",
            "null"
          ]
        },
        "linkedin_profile": {
          "$ref": "#/$defs/LinkedInCreatorProfile"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "LinkedInCreatorProfile": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "headline": {
          "type": [
            "string",
            "null"
          ]
        },
        "bio": {
          "type": [
            "string",
            "null"
          ]
        },
        "job_title": {
          "type": [
            "string",
            "null"
          ]
        },
        "company_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ]
        },
        "profile_image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "follower_count": {
          "type": [
            "integer",
            "null"
          ]
        },
        "connection_count": {
          "type": [
            "integer",
            "null"
          ]
        },
        "profile_views": {
          "type": [
            "integer",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_refreshed": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}