{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://bigmeangreen.com/brief.schema.json",
  "title": "BigMeanGreen brief",
  "description": "The brief an owner or their agent sends to start work with BigMeanGreen. Send it as JSON to the endpoint named in x-destination, or through the form at https://bigmeangreen.com/brief/. A successful submission returns a reference; quote that reference to check status (see x-status). Plan ids match the service ids in https://bigmeangreen.com/manifest.json.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "client",
    "email",
    "lane",
    "the_pile"
  ],
  "x-destination": "POST https://bigmeangreen.com/api/brief",
  "x-status": "GET https://bigmeangreen.com/api/status?ref=<reference>, or write to hello@bigmeangreen.com with the reference in the subject line",
  "x-plan-names": {
    "factory-base": "Factory Base",
    "factory-base-black-friday": "Factory Base (Black Friday)",
    "factory-daily": "Factory Daily",
    "factory-daily-black-friday": "Factory Daily (Black Friday)",
    "website-refresh": "Refresh",
    "website-refresh-black-friday": "Refresh (Black Friday)",
    "standard-build": "Standard Build",
    "standard-build-black-friday": "Standard Build (Black Friday)",
    "expanded-build": "Expanded Build",
    "expanded-build-black-friday": "Expanded Build (Black Friday)",
    "care-plan": "Care Plan",
    "care-plan-black-friday": "Care Plan (Black Friday)",
    "readiness-audit": "Readiness Audit",
    "readiness-audit-black-friday": "Readiness Audit (Black Friday)",
    "crew-setup-sprint": "Crew Setup Sprint",
    "crew-setup-sprint-black-friday": "Crew Setup Sprint (Black Friday)",
    "managed-crew": "Managed Crew",
    "managed-crew-black-friday": "Managed Crew (Black Friday)",
    "agent-ready-stage-1": "Stage 1: Readable",
    "agent-ready-stage-1-black-friday": "Stage 1: Readable (Black Friday)",
    "agent-ready-stage-2": "Stage 2: Understandable",
    "agent-ready-stage-2-black-friday": "Stage 2: Understandable (Black Friday)",
    "agent-ready-stage-3": "Stage 3: Actionable",
    "agent-ready-stage-3-black-friday": "Stage 3: Actionable (Black Friday)",
    "agent-ready-stage-4": "Stage 4: Manageable",
    "agent-ready-stage-4-black-friday": "Stage 4: Manageable (Black Friday)",
    "agent-readiness-audit": "Agent-Readiness Audit",
    "not-sure": "Not sure yet"
  },
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "brief",
        "contact",
        "quote"
      ],
      "default": "brief",
      "description": "brief: start a service. quote: request a written quote (the Expanded Build is sold by quote). contact: a general message."
    },
    "client": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "Your name and business."
    },
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 200,
      "description": "The address replies and the receipt go to."
    },
    "lane": {
      "type": "string",
      "enum": [
        "factory",
        "websites",
        "back-office",
        "agent-ready"
      ],
      "description": "factory: Social Media Factory. websites: website builds and care. back-office: AI OS audits, sprints, and managed crew. agent-ready: Agent-Ready Websites stages and the Agent-Readiness Audit."
    },
    "plan": {
      "type": "string",
      "enum": [
        "factory-base",
        "factory-base-black-friday",
        "factory-daily",
        "factory-daily-black-friday",
        "website-refresh",
        "website-refresh-black-friday",
        "standard-build",
        "standard-build-black-friday",
        "expanded-build",
        "expanded-build-black-friday",
        "care-plan",
        "care-plan-black-friday",
        "readiness-audit",
        "readiness-audit-black-friday",
        "crew-setup-sprint",
        "crew-setup-sprint-black-friday",
        "managed-crew",
        "managed-crew-black-friday",
        "agent-ready-stage-1",
        "agent-ready-stage-1-black-friday",
        "agent-ready-stage-2",
        "agent-ready-stage-2-black-friday",
        "agent-ready-stage-3",
        "agent-ready-stage-3-black-friday",
        "agent-ready-stage-4",
        "agent-ready-stage-4-black-friday",
        "agent-readiness-audit",
        "not-sure"
      ],
      "description": "The plan id from the manifest. Use not-sure if you do not know yet."
    },
    "current_site_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 400,
      "description": "Your current site, for websites and agent-ready work."
    },
    "domain_access": {
      "type": "string",
      "enum": [
        "yes",
        "no",
        "not-applicable"
      ],
      "description": "Whether you can give registrar or delegate access to the domain."
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 80
      },
      "maxItems": 12,
      "description": "The accounts the work touches, for example Facebook Page, Instagram, TikTok. Names only, never passwords."
    },
    "the_pile": {
      "type": "string",
      "minLength": 10,
      "maxLength": 5000,
      "description": "In one or two sentences: what is piling up, or what you are asking."
    },
    "approver": {
      "type": "string",
      "maxLength": 160,
      "description": "Who says go before anything publishes or is sent."
    }
  }
}
