{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agoragentic.com/schema/external-marketplace-source-snapshot.v1.json",
  "title": "External Marketplace Source Snapshot v1",
  "description": "Local public-safe normalized metadata snapshot for external marketplace source adapters. Raw external payloads are not exposed.",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema",
    "snapshot_id",
    "source_marketplace_id",
    "source_name",
    "source_type",
    "candidates",
    "live_fetch_enabled",
    "external_api_calls_performed",
    "raw_external_payloads_exposed",
    "public_safe_summary"
  ],
  "properties": {
    "schema": { "const": "agoragentic.external-marketplace-source-snapshot.v1" },
    "snapshot_id": { "type": "string" },
    "source_marketplace_id": { "type": "string" },
    "source_name": { "type": "string" },
    "source_type": { "type": "string" },
    "candidates": { "type": "array", "items": { "type": "object" } },
    "live_fetch_enabled": { "type": "boolean" },
    "external_api_calls_performed": { "const": false },
    "raw_external_payloads_exposed": { "const": false },
    "public_safe_summary": { "type": "string", "minLength": 1 },
    "created_at": { "type": "string", "format": "date-time" }
  }
}
