{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/advisorppc-com/json-schema/advisorppc-com-recommendation-list-out-schema.json",
  "title": "RecommendationListOut",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/advisorppc-com-recommendations-api-openapi.yml#/components/schemas/RecommendationListOut",
  "properties": {
    "recommendations": {
      "items": {
        "$ref": "#/$defs/RecommendationOut"
      },
      "type": "array",
      "title": "Recommendations"
    },
    "writes_enabled": {
      "type": "boolean",
      "title": "Writes Enabled",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "recommendations"
  ],
  "$defs": {
    "RecommendationOut": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "instance_id": {
          "type": "integer",
          "title": "Instance Id"
        },
        "playbook_key": {
          "type": "string",
          "title": "Playbook Key"
        },
        "rec_type": {
          "type": "string",
          "title": "Rec Type"
        },
        "provider": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provider"
        },
        "campaign_external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Campaign External Id"
        },
        "account_ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Account Ref"
        },
        "account_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Account Label"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "body_json": {
          "additionalProperties": true,
          "type": "object",
          "title": "Body Json"
        },
        "predicted_effect_json": {
          "additionalProperties": true,
          "type": "object",
          "title": "Predicted Effect Json"
        },
        "confidence": {
          "type": "number",
          "title": "Confidence"
        },
        "guardrail_json": {
          "additionalProperties": true,
          "type": "object",
          "title": "Guardrail Json"
        },
        "rollback_json": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rollback Json"
        },
        "scenario": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Scenario"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "source": {
          "type": "string",
          "title": "Source",
          "default": "engine"
        },
        "expires_at": {
          "type": "string",
          "format": "date-time",
          "title": "Expires At"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "instance_id",
        "playbook_key",
        "rec_type",
        "provider",
        "campaign_external_id",
        "account_ref",
        "account_label",
        "title",
        "body_json",
        "predicted_effect_json",
        "confidence",
        "guardrail_json",
        "rollback_json",
        "scenario",
        "status",
        "expires_at",
        "created_at"
      ],
      "title": "RecommendationOut"
    }
  }
}