{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bamf-ai/json-schema/bamf-ai-agent-creator-context-operation-response-schema.json",
  "title": "AgentCreatorContextOperationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bamf-ai-agent-api-openapi.yml#/components/schemas/AgentCreatorContextOperationResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema",
    "operation_ref",
    "data",
    "receipt"
  ],
  "properties": {
    "schema": {
      "const": "bamf.operation-result/v1"
    },
    "operation_ref": {
      "const": "bamf.creator.context.read/v1"
    },
    "data": {
      "$ref": "#/$defs/AgentCreatorContextData"
    },
    "receipt": {
      "type": "null"
    }
  },
  "$defs": {
    "AgentBrandKitCollection": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "creator_id",
        "brand_packs",
        "brand_kit_projects"
      ],
      "properties": {
        "creator_id": {
          "type": "string"
        },
        "brand_packs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentBrandPack"
          }
        },
        "brand_kit_projects": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentBrandKitProject"
          }
        }
      }
    },
    "AgentBrandKitPage": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "brand_kit_project_id",
        "media_asset_id",
        "page_number",
        "page_title",
        "page_goal",
        "sections",
        "copy_blocks",
        "layout_direction",
        "image_url",
        "output_size",
        "aspect_ratio",
        "reference_manifest",
        "version",
        "status",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "brand_kit_project_id": {
          "type": "string"
        },
        "media_asset_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "page_number": {
          "type": "integer"
        },
        "page_title": {
          "type": [
            "string",
            "null"
          ]
        },
        "page_goal": {
          "type": [
            "string",
            "null"
          ]
        },
        "sections": {
          "$ref": "#/$defs/JSONValue"
        },
        "copy_blocks": {
          "$ref": "#/$defs/JSONValue"
        },
        "layout_direction": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "output_size": {
          "type": [
            "string",
            "null"
          ]
        },
        "aspect_ratio": {
          "type": [
            "string",
            "null"
          ]
        },
        "reference_manifest": {
          "$ref": "#/$defs/JSONValue"
        },
        "version": {
          "type": "integer"
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "AgentBrandKitProject": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "creator_id",
        "source",
        "status",
        "title",
        "brand_name",
        "website",
        "founder_name",
        "founder_title",
        "brand_positioning",
        "target_audience",
        "offer_category",
        "output_type",
        "number_of_pages",
        "aspect_ratio",
        "output_size",
        "compiler_version",
        "style_reference_summary",
        "founder_likeness_summary",
        "creative_brief",
        "page_plan",
        "negative_constraints",
        "reference_manifest",
        "created_at",
        "updated_at",
        "pages"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "creator_id": {
          "type": "string"
        },
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "brand_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "founder_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "founder_title": {
          "type": [
            "string",
            "null"
          ]
        },
        "brand_positioning": {
          "type": [
            "string",
            "null"
          ]
        },
        "target_audience": {
          "type": [
            "string",
            "null"
          ]
        },
        "offer_category": {
          "type": [
            "string",
            "null"
          ]
        },
        "output_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "number_of_pages": {
          "type": "integer"
        },
        "aspect_ratio": {
          "type": [
            "string",
            "null"
          ]
        },
        "output_size": {
          "type": [
            "string",
            "null"
          ]
        },
        "compiler_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "style_reference_summary": {
          "$ref": "#/$defs/JSONValue"
        },
        "founder_likeness_summary": {
          "$ref": "#/$defs/JSONValue"
        },
        "creative_brief": {
          "$ref": "#/$defs/JSONValue"
        },
        "page_plan": {
          "$ref": "#/$defs/JSONValue"
        },
        "negative_constraints": {
          "$ref": "#/$defs/JSONValue"
        },
        "reference_manifest": {
          "$ref": "#/$defs/JSONValue"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "pages": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentBrandKitPage"
          }
        }
      }
    },
    "AgentBrandPack": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "creator_id",
        "pack_type",
        "name",
        "description",
        "is_default",
        "tags",
        "palette",
        "fonts",
        "visual_style_prompt",
        "brand_rules",
        "notes",
        "negative_prompt",
        "created_at",
        "updated_at",
        "assets"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "creator_id": {
          "type": "string"
        },
        "pack_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_default": {
          "type": "boolean"
        },
        "tags": {
          "$ref": "#/$defs/JSONValue"
        },
        "palette": {
          "$ref": "#/$defs/JSONValue"
        },
        "fonts": {
          "$ref": "#/$defs/JSONValue"
        },
        "visual_style_prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "brand_rules": {
          "type": [
            "string",
            "null"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "negative_prompt": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "assets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentBrandPackAsset"
          }
        }
      }
    },
    "AgentBrandPackAsset": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "brand_pack_id",
        "media_asset_id",
        "reference_image_id",
        "url",
        "asset_role",
        "sort_order",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "brand_pack_id": {
          "type": "string"
        },
        "media_asset_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "reference_image_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "asset_role": {
          "type": [
            "string",
            "null"
          ]
        },
        "sort_order": {
          "type": "integer"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    },
    "AgentCreatorContextData": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "creator_id",
        "generated_at",
        "requested_sections",
        "omitted_sections",
        "page"
      ],
      "properties": {
        "creator_id": {
          "type": "string"
        },
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "requested_sections": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "enum": [
              "profile",
              "context",
              "voice_profile",
              "linkedin_profile",
              "website",
              "brand_kits",
              "media"
            ]
          }
        },
        "omitted_sections": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "section",
              "required_scope"
            ],
            "properties": {
              "section": {
                "enum": [
                  "media"
                ]
              },
              "required_scope": {
                "const": "media:read"
              }
            }
          }
        },
        "profile": {
          "$ref": "#/$defs/AgentCreatorProfile"
        },
        "context": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "identity_profile",
            "writing_preferences",
            "ai_analysis_summaries"
          ],
          "properties": {
            "identity_profile": {
              "$ref": "#/$defs/JSONValue"
            },
            "writing_preferences": {
              "$ref": "#/$defs/JSONValue"
            },
            "ai_analysis_summaries": {
              "$ref": "#/$defs/JSONValue"
            }
          }
        },
        "voice_profile": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "fine_tune",
            "fine_tune_v2",
            "voice_settings",
            "writing_preferences"
          ],
          "properties": {
            "fine_tune": {
              "type": [
                "string",
                "null"
              ]
            },
            "fine_tune_v2": {
              "type": [
                "string",
                "null"
              ]
            },
            "voice_settings": {
              "$ref": "#/$defs/JSONValue"
            },
            "writing_preferences": {
              "$ref": "#/$defs/JSONValue"
            }
          }
        },
        "linkedin_profile": {
          "$ref": "#/$defs/LinkedInCreatorProfile"
        },
        "website": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "url",
            "summary",
            "screenshot"
          ],
          "properties": {
            "url": {
              "type": [
                "string",
                "null"
              ]
            },
            "summary": {
              "type": [
                "string",
                "null"
              ]
            },
            "screenshot": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "$ref": "#/$defs/AgentReferenceImage"
                }
              ]
            }
          }
        },
        "brand_kits": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/AgentBrandKitCollection"
            }
          ]
        },
        "media": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "reference_images",
            "website_screenshots"
          ],
          "properties": {
            "reference_images": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AgentReferenceImage"
              }
            },
            "website_screenshots": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/AgentReferenceImage"
              }
            }
          }
        },
        "page": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "limit"
          ],
          "properties": {
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        }
      }
    },
    "AgentCreatorProfile": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "creator_id",
        "name",
        "bio",
        "industry",
        "job_description",
        "avatar_url",
        "linkedin_username",
        "linkedin_headline",
        "linkedin_profile_url",
        "website_url"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "creator_id": {
          "type": "string"
        },
        "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"
          ]
        }
      }
    },
    "AgentReferenceImage": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "creator_id",
        "url",
        "filename",
        "description",
        "reference_role",
        "is_primary",
        "is_active_for_likeness",
        "sort_order",
        "notes",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "creator_id": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "filename": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "reference_role": {
          "type": [
            "string",
            "null"
          ]
        },
        "is_primary": {
          "type": "boolean"
        },
        "is_active_for_likeness": {
          "type": "boolean"
        },
        "sort_order": {
          "type": "integer"
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_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"
        }
      }
    }
  }
}