{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/alphabazaar-ai/json-schema/alphabazaar-ai-smart-feed-response-schema.json",
  "title": "SmartFeedResponse",
  "description": "GET /api/confluence/smart-feed",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/alphabazaar-ai-confluence-api-openapi.yml#/components/schemas/SmartFeedResponse",
  "properties": {
    "events": {
      "items": {
        "$ref": "#/$defs/SmartFeedEvent"
      },
      "type": "array",
      "title": "Events"
    },
    "offset": {
      "type": "integer",
      "title": "Offset"
    },
    "limit": {
      "type": "integer",
      "title": "Limit"
    },
    "has_more": {
      "type": "boolean",
      "title": "Has More",
      "default": false
    },
    "total": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total"
    },
    "graph_data": {
      "anyOf": [
        {},
        {
          "type": "null"
        }
      ],
      "title": "Graph Data"
    },
    "disclaimers": {
      "anyOf": [
        {
          "$ref": "#/$defs/SmartFeedDisclaimers"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "events",
    "offset",
    "limit"
  ],
  "$defs": {
    "ConfluenceConfirmation": {
      "properties": {
        "signal_id": {
          "type": "string",
          "title": "Signal Id"
        },
        "publisher_username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publisher Username"
        },
        "publisher_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publisher Type"
        },
        "publisher_avg_return": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publisher Avg Return"
        },
        "publisher_win_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Publisher Win Rate"
        },
        "horizon": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Horizon"
        },
        "signal_action": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signal Action"
        },
        "entry_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Entry Price"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "is_verified_trade": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Is Verified Trade"
        }
      },
      "type": "object",
      "required": [
        "signal_id"
      ],
      "title": "ConfluenceConfirmation"
    },
    "ConfluenceDetectionMetadata": {
      "properties": {
        "original_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Original Score"
        },
        "first_detected_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "First Detected At"
        },
        "members_joined_after_detection": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Members Joined After Detection"
        }
      },
      "type": "object",
      "title": "ConfluenceDetectionMetadata"
    },
    "SmartFeedDisclaimers": {
      "properties": {
        "investment_advice": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Investment Advice"
        },
        "historical_performance": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Historical Performance"
        }
      },
      "type": "object",
      "title": "SmartFeedDisclaimers"
    },
    "SmartFeedEvent": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "ticker": {
          "type": "string",
          "title": "Ticker"
        },
        "action": {
          "type": "string",
          "title": "Action"
        },
        "confluence_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confluence Type"
        },
        "confluence_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confluence Score"
        },
        "actionability_score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actionability Score"
        },
        "actionability_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Actionability Label"
        },
        "signal_freshness": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signal Freshness"
        },
        "last_join_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Join At"
        },
        "latest_price": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Latest Price"
        },
        "price_at_detection": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price At Detection"
        },
        "current_return": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Current Return"
        },
        "confirmations": {
          "items": {
            "$ref": "#/$defs/ConfluenceConfirmation"
          },
          "type": "array",
          "title": "Confirmations",
          "default": []
        },
        "detection_metadata": {
          "anyOf": [
            {
              "$ref": "#/$defs/ConfluenceDetectionMetadata"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified_confirmation_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Verified Confirmation Count"
        },
        "has_verified_backing": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Has Verified Backing"
        }
      },
      "type": "object",
      "required": [
        "id",
        "ticker",
        "action"
      ],
      "title": "SmartFeedEvent"
    }
  }
}