{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vruum-ai/json-schema/vruum-ai-briefing-response-schema.json",
  "title": "BriefingResponse",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vruum-ai-openapi.json#/components/schemas/BriefingResponse",
  "properties": {
    "pending_approvals_count": {
      "type": "integer",
      "title": "Pending Approvals Count",
      "default": 0
    },
    "messages_needing_authoring": {
      "type": "integer",
      "title": "Messages Needing Authoring",
      "default": 0
    },
    "engagements_needing_authoring": {
      "type": "integer",
      "title": "Engagements Needing Authoring",
      "default": 0
    },
    "engagers_awaiting_decision": {
      "type": "integer",
      "title": "Engagers Awaiting Decision",
      "default": 0
    },
    "oldest_needs_draft_age_days": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Oldest Needs Draft Age Days"
    },
    "top_pending_approvals": {
      "items": {
        "$ref": "#/$defs/PendingApprovalPreview"
      },
      "type": "array",
      "title": "Top Pending Approvals",
      "default": []
    },
    "new_replies_count": {
      "type": "integer",
      "title": "New Replies Count",
      "default": 0
    },
    "recent_replies": {
      "items": {
        "$ref": "#/$defs/ReplyPreview"
      },
      "type": "array",
      "title": "Recent Replies",
      "default": []
    },
    "meetings_booked_this_week": {
      "type": "integer",
      "title": "Meetings Booked This Week",
      "default": 0
    },
    "pipeline_summary": {
      "items": {
        "$ref": "#/$defs/PipelineStage"
      },
      "type": "array",
      "title": "Pipeline Summary",
      "default": []
    },
    "stalled_deals": {
      "items": {
        "$ref": "#/$defs/StalledDeal"
      },
      "type": "array",
      "title": "Stalled Deals",
      "default": []
    },
    "deal_alerts": {
      "items": {
        "$ref": "#/$defs/DealAlert"
      },
      "type": "array",
      "title": "Deal Alerts",
      "default": []
    },
    "deal_alerts_count": {
      "type": "integer",
      "title": "Deal Alerts Count",
      "default": 0
    },
    "active_outreach_plans": {
      "type": "integer",
      "title": "Active Outreach Plans",
      "default": 0
    },
    "channel_holds": {
      "items": {
        "$ref": "#/$defs/SenderChannelHold"
      },
      "type": "array",
      "title": "Channel Holds",
      "default": []
    },
    "discovery_jobs_in_progress": {
      "type": "integer",
      "title": "Discovery Jobs In Progress",
      "default": 0
    },
    "tasks_due_today_count": {
      "type": "integer",
      "title": "Tasks Due Today Count",
      "default": 0
    },
    "top_tasks_due": {
      "items": {
        "$ref": "#/$defs/TaskDue"
      },
      "type": "array",
      "title": "Top Tasks Due",
      "default": []
    },
    "new_warm_paths_count": {
      "type": "integer",
      "title": "New Warm Paths Count",
      "default": 0
    },
    "new_warm_paths": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "New Warm Paths",
      "default": []
    },
    "seo_geo_open_gaps": {
      "type": "integer",
      "title": "Seo Geo Open Gaps",
      "default": 0
    },
    "latest_logged_meeting_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Latest Logged Meeting At"
    },
    "motion_health": {
      "$ref": "#/$defs/MotionHealth",
      "default": {
        "state": "unmeasured",
        "window_days": 60,
        "contacted": 0,
        "replied": 0,
        "worst_objective_contacted": 0
      }
    },
    "objective_health": {
      "items": {
        "$ref": "#/$defs/ObjectiveConversion"
      },
      "type": "array",
      "title": "Objective Health",
      "default": []
    },
    "content_cadence": {
      "$ref": "#/$defs/ContentCadence",
      "default": {
        "posts_last_30d": 0
      }
    },
    "expansion_candidates_count": {
      "type": "integer",
      "title": "Expansion Candidates Count",
      "default": 0
    },
    "winback_candidates_count": {
      "type": "integer",
      "title": "Winback Candidates Count",
      "default": 0
    },
    "synthesis_applied": {
      "type": "boolean",
      "title": "Synthesis Applied",
      "default": false
    },
    "synthesis_headline": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Synthesis Headline"
    },
    "top_recommendation": {
      "type": "string",
      "title": "Top Recommendation",
      "default": "all_clear"
    },
    "recommendation_detail": {
      "type": "string",
      "title": "Recommendation Detail",
      "default": "Nothing urgent — you're all caught up."
    },
    "sections_degraded": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Sections Degraded",
      "default": []
    },
    "suggested_actions": {
      "items": {
        "$ref": "#/$defs/SuggestedAction"
      },
      "type": "array",
      "title": "Suggested Actions",
      "default": []
    }
  },
  "type": "object",
  "$defs": {
    "CommercialTerms-Output": {
      "properties": {
        "version": {
          "type": "string",
          "const": "commercial-terms.v1",
          "title": "Version",
          "default": "commercial-terms.v1"
        },
        "revision_id": {
          "type": "string",
          "title": "Revision Id"
        },
        "predecessor_revision_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Predecessor Revision Id"
        },
        "source_offer_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Offer Id"
        },
        "source_offer_monetization_model": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source Offer Monetization Model"
        },
        "observed_at": {
          "type": "string",
          "format": "date-time",
          "title": "Observed At"
        },
        "effective_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective From"
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "title": "Currency",
          "default": "USD"
        },
        "components": {
          "items": {
            "$ref": "#/$defs/PricingComponent-Output"
          },
          "type": "array",
          "title": "Components",
          "default": []
        },
        "discounts": {
          "items": {
            "$ref": "#/$defs/PriceDiscount-Output"
          },
          "type": "array",
          "title": "Discounts",
          "default": []
        },
        "agreed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agreed At"
        },
        "basis": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "stripe",
                "email",
                "crm",
                "agent",
                "operator"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Basis"
        },
        "pricing_type": {
          "type": "string",
          "enum": [
            "fixed",
            "commission",
            "hybrid",
            "custom",
            "components"
          ],
          "title": "Pricing Type",
          "default": "fixed"
        },
        "pricing_notes": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 4000
            },
            {
              "type": "null"
            }
          ],
          "title": "Pricing Notes"
        },
        "commission_basis": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 500
            },
            {
              "type": "null"
            }
          ],
          "title": "Commission Basis"
        },
        "contract_term_months": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 120.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Contract Term Months"
        },
        "contract_term_basis": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contract Term Basis"
        },
        "contract_term_declared_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contract Term Declared At"
        },
        "contract_term_evidence_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Contract Term Evidence Id"
        },
        "guarantees": {
          "items": {
            "$ref": "#/$defs/GuaranteeTerm"
          },
          "type": "array",
          "maxItems": 50,
          "title": "Guarantees",
          "default": []
        },
        "service_levels": {
          "items": {
            "$ref": "#/$defs/ServiceLevelTerm-Output"
          },
          "type": "array",
          "maxItems": 50,
          "title": "Service Levels",
          "default": []
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "CommercialTerms"
    },
    "ContentCadence": {
      "properties": {
        "last_published_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Published At"
        },
        "days_since_last_post": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Days Since Last Post"
        },
        "posts_last_30d": {
          "type": "integer",
          "title": "Posts Last 30D",
          "default": 0
        }
      },
      "type": "object",
      "title": "ContentCadence",
      "description": "Marketing cadence — content is a GTM motion, not a side quest, and a\ndark feed removes the warm surface every other motion converts against."
    },
    "DealAlert": {
      "properties": {
        "deal_id": {
          "type": "string",
          "title": "Deal Id"
        },
        "deal_name": {
          "type": "string",
          "title": "Deal Name"
        },
        "alert_type": {
          "type": "string",
          "title": "Alert Type",
          "description": "silence (no activity for 7+ days), overdue_next_step (the account's next move is due: an act move past its revisit date, raised once per account on its most recently updated open deal, critical at 7+ days; the detail quotes the move's headline) or slippage (past the expected close date)."
        },
        "severity": {
          "type": "string",
          "title": "Severity"
        },
        "detail": {
          "type": "string",
          "title": "Detail"
        },
        "days": {
          "type": "integer",
          "title": "Days"
        },
        "person_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Person Name"
        }
      },
      "type": "object",
      "required": [
        "deal_id",
        "deal_name",
        "alert_type",
        "severity",
        "detail",
        "days"
      ],
      "title": "DealAlert"
    },
    "DealTermsRecord": {
      "properties": {
        "commercial_terms": {
          "anyOf": [
            {
              "$ref": "#/$defs/CommercialTerms-Output"
            },
            {
              "type": "null"
            }
          ]
        },
        "offer_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Offer Id"
        },
        "amount_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Amount Minor"
        },
        "currency": {
          "type": "string",
          "title": "Currency",
          "default": "USD"
        },
        "billing_period": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "one_time",
                "monthly",
                "quarterly",
                "annual"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Billing Period"
        },
        "quantity": {
          "type": "integer",
          "title": "Quantity",
          "default": 1
        },
        "agreed_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Agreed At"
        },
        "annual_value_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Annual Value Minor",
          "description": "Annual contract value of recurring terms; null for one-time or unstated terms."
        },
        "project_total_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Project Total Minor",
          "description": "The one-time total; null unless billing_period is one_time."
        },
        "revenue_basis": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "monthly_recurring",
                "project_total"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Revenue Basis",
          "description": "The ledger basis a commitment on these terms lands on."
        },
        "stated": {
          "type": "boolean",
          "title": "Stated",
          "description": "Amount and billing period are both recorded.",
          "default": false
        },
        "agreed": {
          "type": "boolean",
          "title": "Agreed",
          "description": "The customer agreed these terms.",
          "default": false
        },
        "basis": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "stripe",
                "email",
                "crm",
                "agent",
                "operator"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Basis",
          "description": "Who authored the figure: stripe (agreed from a confirmed Stripe binding), email (agreed from a customer-authored email over the CRM figure), crm (the CRM sync), agent (the value agent's estimate), operator (a person; with no amount, a person cleared the figure and nothing writes it back). Null when no figure is recorded and nobody cleared one, or when its author predates the record."
        },
        "text": {
          "type": "string",
          "title": "Text",
          "description": "Prose form with the unit, e.g. '1,800.00 USD per month × 3, agreed'.",
          "default": "value not recorded"
        }
      },
      "type": "object",
      "title": "DealTermsRecord",
      "description": "The record as readers see it: the stored columns plus the figures\n``app.shared.money`` derives from them."
    },
    "GuaranteeTerm": {
      "properties": {
        "term_id": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "pattern": "\\S",
          "title": "Term Id"
        },
        "measurement_window_days": {
          "type": "integer",
          "maximum": 3660.0,
          "minimum": 1.0,
          "title": "Measurement Window Days"
        },
        "cap_amount_minor": {
          "type": "integer",
          "maximum": 9007199254740991.0,
          "minimum": 0.0,
          "title": "Cap Amount Minor"
        },
        "cap_currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "title": "Cap Currency"
        },
        "effective_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective From"
        },
        "effective_until": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective Until"
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Source Ids",
          "default": []
        },
        "condition": {
          "type": "string",
          "maxLength": 1000,
          "minLength": 1,
          "pattern": "\\S",
          "title": "Condition"
        },
        "remedy": {
          "type": "string",
          "enum": [
            "refund",
            "credit",
            "extension"
          ],
          "title": "Remedy"
        },
        "extension_days": {
          "anyOf": [
            {
              "type": "integer",
              "maximum": 3660.0,
              "minimum": 1.0
            },
            {
              "type": "null"
            }
          ],
          "title": "Extension Days"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "term_id",
        "measurement_window_days",
        "cap_amount_minor",
        "cap_currency",
        "condition",
        "remedy"
      ],
      "title": "GuaranteeTerm",
      "description": "An outcome guarantee: if ``condition`` is not met within the window,\nthe customer is owed the remedy, never more than the cap."
    },
    "MotionHealth": {
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "healthy",
            "weak",
            "broken",
            "unmeasured"
          ],
          "title": "State",
          "default": "unmeasured"
        },
        "window_days": {
          "type": "integer",
          "title": "Window Days",
          "default": 60
        },
        "contacted": {
          "type": "integer",
          "title": "Contacted",
          "default": 0
        },
        "replied": {
          "type": "integer",
          "title": "Replied",
          "default": 0
        },
        "reply_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reply Rate"
        },
        "worst_objective_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Worst Objective Id"
        },
        "worst_objective_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Worst Objective Name"
        },
        "worst_objective_contacted": {
          "type": "integer",
          "title": "Worst Objective Contacted",
          "default": 0
        }
      },
      "type": "object",
      "title": "MotionHealth",
      "description": "Is the outbound motion converting at all?\n\nThis gates the whole briefing: when the motion is `broken`, actions that\nadd VOLUME to it (approve more drafts, import more prospects, author more\nengagements) are suppressed and the fix is promoted instead. Without this,\nthe briefing's top recommendation is to feed a machine that is not working.\n\n`unmeasured` is a distinct state on purpose — a tenant that has contacted\n29 people has not proven anything, and telling a new account its motion is\ndead is worse than saying nothing."
    },
    "ObjectiveConversion": {
      "properties": {
        "objective_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Objective Id"
        },
        "objective_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Objective Name"
        },
        "contacted": {
          "type": "integer",
          "title": "Contacted",
          "default": 0
        },
        "replied": {
          "type": "integer",
          "title": "Replied",
          "default": 0
        },
        "reply_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reply Rate"
        }
      },
      "type": "object",
      "title": "ObjectiveConversion",
      "description": "Per-objective outbound conversion over the motion-health window.\n\n`contacted`/`replied` are UNIQUE PEOPLE, not messages — the same\ndenominator `analytics/services/reply_rate.py` uses, so this never\ndisagrees with the analytics surface for the same window.\n\nNamed `CampaignConversion`, not `CampaignHealth`: the improve briefing\nalready owns a `CampaignHealth` (reply rate vs benchmark, experiment\nstate). Two schemas with one name collide in the OpenAPI components map\nand orval resolves the clash by emitting\n`appSharedSchemasMcpCompoundCampaignHealth1` — a generated type no\nfrontend author can be expected to recognise."
    },
    "PendingApprovalPreview": {
      "properties": {
        "message_id": {
          "type": "string",
          "title": "Message Id"
        },
        "person_name": {
          "type": "string",
          "title": "Person Name"
        },
        "channel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channel"
        },
        "category": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Category"
        },
        "subject": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Subject"
        },
        "content_preview": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Preview"
        }
      },
      "type": "object",
      "required": [
        "message_id",
        "person_name"
      ],
      "title": "PendingApprovalPreview"
    },
    "PipelineStage": {
      "properties": {
        "stage": {
          "type": "string",
          "title": "Stage"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "values": {
          "items": {
            "$ref": "#/$defs/PipelineValue"
          },
          "type": "array",
          "title": "Values"
        }
      },
      "type": "object",
      "required": [
        "stage",
        "count"
      ],
      "title": "PipelineStage"
    },
    "PipelineValue": {
      "properties": {
        "currency": {
          "type": "string",
          "title": "Currency"
        },
        "deals": {
          "type": "integer",
          "title": "Deals",
          "default": 0
        },
        "annual_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Annual Minor",
          "default": 0
        },
        "weighted_annual_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weighted Annual Minor",
          "default": 0
        },
        "project_total_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Project Total Minor",
          "default": 0
        },
        "weighted_project_total_minor": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weighted Project Total Minor",
          "default": 0
        },
        "unstated_minor": {
          "type": "integer",
          "title": "Unstated Minor",
          "default": 0
        },
        "unstated_deals": {
          "type": "integer",
          "title": "Unstated Deals",
          "default": 0
        },
        "valuation_complete": {
          "type": "boolean",
          "title": "Valuation Complete",
          "default": true
        },
        "unavailable_deals": {
          "type": "integer",
          "title": "Unavailable Deals",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "currency"
      ],
      "title": "PipelineValue",
      "description": "One currency's totals over a set of deals, per basis: the recurring\nannual value, the project totals, and the figures with no stated period.\nCurrencies never add together."
    },
    "PriceDiscount-Output": {
      "properties": {
        "source_id": {
          "type": "string",
          "title": "Source Id"
        },
        "eligible_product_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Eligible Product Ids",
          "default": []
        },
        "percent": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Percent"
        },
        "amount_minor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Amount Minor"
        },
        "currency": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Currency"
        },
        "starts_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Starts At"
        },
        "ends_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ends At"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "source_id"
      ],
      "title": "PriceDiscount"
    },
    "PriceTier-Output": {
      "properties": {
        "up_to": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Up To"
        },
        "unit_amount_minor": {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
          "title": "Unit Amount Minor",
          "default": "0"
        },
        "flat_amount_minor": {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
          "title": "Flat Amount Minor",
          "default": "0"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "PriceTier"
    },
    "PricingComponent-Output": {
      "properties": {
        "version": {
          "type": "string",
          "const": "commercial-pricing.v1",
          "title": "Version",
          "default": "commercial-pricing.v1"
        },
        "component_id": {
          "type": "string",
          "minLength": 1,
          "title": "Component Id"
        },
        "product_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Product Id"
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "title": "Currency"
        },
        "kind": {
          "type": "string",
          "enum": [
            "fixed",
            "per_unit",
            "graduated",
            "volume",
            "commission"
          ],
          "title": "Kind"
        },
        "usage_type": {
          "type": "string",
          "enum": [
            "licensed",
            "metered",
            "one_time",
            "contingent"
          ],
          "title": "Usage Type",
          "default": "licensed"
        },
        "billing_unit": {
          "type": "string",
          "title": "Billing Unit",
          "default": "unit"
        },
        "interval": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month",
                "year"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Interval"
        },
        "interval_count": {
          "type": "integer",
          "minimum": 1.0,
          "title": "Interval Count",
          "default": 1
        },
        "quantity": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Quantity"
        },
        "unit_amount_minor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Unit Amount Minor"
        },
        "tiers": {
          "items": {
            "$ref": "#/$defs/PriceTier-Output"
          },
          "type": "array",
          "title": "Tiers",
          "default": []
        },
        "transform_divide_by": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Transform Divide By"
        },
        "transform_round": {
          "type": "string",
          "enum": [
            "up",
            "down"
          ],
          "title": "Transform Round",
          "default": "up"
        },
        "included_units": {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
          "title": "Included Units",
          "default": "0"
        },
        "minimum_minor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Minimum Minor"
        },
        "maximum_minor": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Maximum Minor"
        },
        "commission_bps": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Commission Bps"
        },
        "discounts": {
          "items": {
            "$ref": "#/$defs/PriceDiscount-Output"
          },
          "type": "array",
          "title": "Discounts",
          "default": []
        },
        "tax_behavior": {
          "type": "string",
          "enum": [
            "inclusive",
            "exclusive",
            "unspecified"
          ],
          "title": "Tax Behavior",
          "default": "unspecified"
        },
        "effective_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective From"
        },
        "effective_until": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective Until"
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Source Ids",
          "default": []
        },
        "missing": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Missing",
          "default": []
        },
        "rounding": {
          "type": "string",
          "enum": [
            "half_up",
            "half_even"
          ],
          "title": "Rounding",
          "default": "half_up"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "component_id",
        "currency",
        "kind"
      ],
      "title": "PricingComponent"
    },
    "ReplyPreview": {
      "properties": {
        "message_id": {
          "type": "string",
          "title": "Message Id"
        },
        "person_name": {
          "type": "string",
          "title": "Person Name"
        },
        "person_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Person Id"
        },
        "channel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channel"
        },
        "reply_sentiment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reply Sentiment"
        },
        "replied_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Replied At"
        }
      },
      "type": "object",
      "required": [
        "message_id",
        "person_name"
      ],
      "title": "ReplyPreview"
    },
    "SenderChannelHold": {
      "properties": {
        "channel": {
          "type": "string",
          "const": "linkedin",
          "title": "Channel"
        },
        "state": {
          "type": "string",
          "enum": [
            "quota_exhausted",
            "provider_rate_limited",
            "reconnect_needed",
            "degraded"
          ],
          "title": "State"
        },
        "reason_code": {
          "type": "string",
          "enum": [
            "linkedin_daily_quota_exhausted",
            "linkedin_provider_rate_limited",
            "linkedin_reconnect_needed",
            "linkedin_channel_state_unknown"
          ],
          "title": "Reason Code"
        },
        "blocking": {
          "type": "boolean",
          "title": "Blocking",
          "default": true
        },
        "retryable": {
          "type": "boolean",
          "title": "Retryable",
          "default": true
        },
        "sender_user_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sender User Id"
        },
        "account_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Account Id"
        },
        "account_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Account Name"
        },
        "used_today": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Used Today"
        },
        "effective_limit": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective Limit"
        },
        "remaining": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Remaining"
        },
        "retry_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Retry At"
        },
        "affected_approved_count": {
          "type": "integer",
          "title": "Affected Approved Count",
          "default": 0
        },
        "affected_draft_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Affected Draft Count"
        },
        "affected_plan_count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Affected Plan Count"
        },
        "next_action": {
          "type": "string",
          "title": "Next Action"
        }
      },
      "type": "object",
      "required": [
        "channel",
        "state",
        "reason_code",
        "next_action"
      ],
      "title": "SenderChannelHold",
      "description": "Machine-readable sender block shared by outreach and briefing tools."
    },
    "ServiceLevelTerm-Output": {
      "properties": {
        "term_id": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "pattern": "\\S",
          "title": "Term Id"
        },
        "measurement_window_days": {
          "type": "integer",
          "maximum": 3660.0,
          "minimum": 1.0,
          "title": "Measurement Window Days"
        },
        "cap_amount_minor": {
          "type": "integer",
          "maximum": 9007199254740991.0,
          "minimum": 0.0,
          "title": "Cap Amount Minor"
        },
        "cap_currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$",
          "title": "Cap Currency"
        },
        "effective_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective From"
        },
        "effective_until": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Effective Until"
        },
        "source_ids": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Source Ids",
          "default": []
        },
        "metric": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1,
          "pattern": "\\S",
          "title": "Metric"
        },
        "comparator": {
          "type": "string",
          "enum": [
            "at_least",
            "at_most"
          ],
          "title": "Comparator"
        },
        "target": {
          "type": "string",
          "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
          "title": "Target"
        },
        "unit": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1,
          "pattern": "\\S",
          "title": "Unit"
        },
        "remedy_credit_bps": {
          "type": "integer",
          "maximum": 10000.0,
          "minimum": 1.0,
          "title": "Remedy Credit Bps"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "term_id",
        "measurement_window_days",
        "cap_amount_minor",
        "cap_currency",
        "metric",
        "comparator",
        "target",
        "unit",
        "remedy_credit_bps"
      ],
      "title": "ServiceLevelTerm",
      "description": "A measured service level with a capped credit remedy in basis points\nof the affected period's fee."
    },
    "StalledDeal": {
      "properties": {
        "deal_id": {
          "type": "string",
          "title": "Deal Id"
        },
        "deal_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deal Name"
        },
        "person_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Person Name"
        },
        "stage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stage"
        },
        "terms": {
          "$ref": "#/$defs/DealTermsRecord"
        },
        "days_stalled": {
          "type": "integer",
          "title": "Days Stalled",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "deal_id"
      ],
      "title": "StalledDeal"
    },
    "SuggestedAction": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "kind": {
          "type": "string",
          "enum": [
            "setup",
            "action",
            "fallback"
          ],
          "title": "Kind"
        },
        "intent": {
          "type": "string",
          "enum": [
            "connect_agent",
            "upgrade",
            "review_outreach_queue",
            "handle_replies",
            "review_engagement_queue",
            "review_engagers",
            "triage_deals",
            "complete_tasks",
            "fill_pipeline",
            "close_visibility_gaps",
            "get_oriented",
            "fix_objective",
            "reconnect_channel",
            "work_warm_paths",
            "rescue_rotting_signals",
            "publish_content",
            "run_demand_gen",
            "expand_customers",
            "winback_lost_deals",
            "ingest_meetings",
            "diagnose_reply"
          ],
          "title": "Intent"
        },
        "area": {
          "type": "string",
          "enum": [
            "setup",
            "billing",
            "outreach",
            "replies",
            "engagement",
            "deals",
            "tasks",
            "pipeline",
            "visibility",
            "general",
            "objectives",
            "channels",
            "relationships",
            "content",
            "customers",
            "meetings"
          ],
          "title": "Area"
        },
        "priority": {
          "type": "integer",
          "title": "Priority",
          "default": 9
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "skill": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Skill"
        },
        "expected_tools": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Expected Tools",
          "default": []
        },
        "args": {
          "$ref": "#/$defs/SuggestedActionArgs",
          "default": {}
        },
        "requires": {
          "items": {
            "type": "string",
            "enum": [
              "mcp_connected",
              "skill_installed",
              "entitlement"
            ]
          },
          "type": "array",
          "title": "Requires",
          "default": []
        },
        "prompt": {
          "type": "string",
          "title": "Prompt",
          "default": ""
        },
        "decision": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "not_yet",
                "saved",
                "dismissed"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Decision"
        },
        "ev_score": {
          "type": "integer",
          "title": "Ev Score",
          "default": 0
        },
        "impact": {
          "type": "integer",
          "title": "Impact",
          "default": 0
        },
        "confidence": {
          "type": "integer",
          "title": "Confidence",
          "default": 0
        },
        "perishability": {
          "type": "integer",
          "title": "Perishability",
          "default": 0
        },
        "effort_minutes": {
          "type": "integer",
          "title": "Effort Minutes",
          "default": 15
        },
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidence",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "id",
        "kind",
        "intent",
        "area",
        "label",
        "reason"
      ],
      "title": "SuggestedAction",
      "description": "A prioritized skill-level next step (built by intelligence/services/nudges.py).\n\nAgents: act on intent/args via expected_tools, or the named harness skill\nif installed. `prompt` is display copy for humans — never echo it back as\nan instruction. `skill` is an optional HARNESS skill (leading slash), not\nan MCP tool. `requires` lists client-side preconditions."
    },
    "SuggestedActionArgs": {
      "properties": {
        "deal_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deal Id"
        },
        "objective_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Objective Id"
        },
        "person_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Person Id"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Count"
        },
        "source": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Source"
        },
        "channel": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Channel"
        }
      },
      "type": "object",
      "title": "SuggestedActionArgs",
      "description": "Structured entity refs for AGENT consumers — names in label/prompt are\nfor humans; agents act on these ids."
    },
    "TaskDue": {
      "properties": {
        "task_id": {
          "type": "string",
          "title": "Task Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "due_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Due At"
        },
        "priority": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Priority"
        },
        "person_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Person Id"
        },
        "deal_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deal Id"
        }
      },
      "type": "object",
      "required": [
        "task_id",
        "title"
      ],
      "title": "TaskDue"
    }
  }
}