{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bamf-ai/json-schema/bamf-ai-creator-context-response-schema.json",
  "title": "CreatorContextResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bamf-ai-openapi.json#/components/schemas/CreatorContextResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "creator_id": {
          "type": "string"
        },
        "sections": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "omitted_sections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "section": {
                "type": "string"
              },
              "required_scope": {
                "type": "string"
              }
            }
          }
        },
        "creator_space": {
          "$ref": "#/$defs/CreatorSpace"
        },
        "profile": {
          "$ref": "#/$defs/JSONValue"
        },
        "context": {
          "$ref": "#/$defs/JSONValue"
        },
        "voice_profile": {
          "$ref": "#/$defs/JSONValue"
        },
        "ai_analysis": {
          "$ref": "#/$defs/JSONValue"
        },
        "knowledge_docs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JSONValue"
          }
        },
        "interviews": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JSONValue"
          }
        },
        "integrations": {
          "$ref": "#/$defs/JSONValue"
        },
        "linkedin_profile": {
          "$ref": "#/$defs/LinkedInCreatorProfile"
        },
        "linkedin_posts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JSONValue"
          }
        },
        "linkedin_analytics": {
          "$ref": "#/$defs/JSONValue"
        },
        "x_profile": {
          "$ref": "#/$defs/JSONValue"
        },
        "x_posts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JSONValue"
          }
        },
        "x_analytics": {
          "$ref": "#/$defs/JSONValue"
        },
        "website": {
          "$ref": "#/$defs/JSONValue"
        },
        "website_screenshot": {
          "$ref": "#/$defs/JSONValue"
        },
        "brand_kits": {
          "$ref": "#/$defs/JSONValue"
        },
        "media": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/JSONValue"
          }
        }
      }
    }
  },
  "$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"
        }
      }
    },
    "JSONValue": {
      "description": "Any JSON value returned by flexible workflow, analytics, context, or generation payloads."
    },
    "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"
        }
      }
    }
  }
}