{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/staycharted-com/json-schema/staycharted-com-new-customer-schema.json",
  "title": "NewCustomer",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/staycharted-com-openapi.yaml#/components/schemas/NewCustomer",
  "type": "object",
  "required": [
    "name",
    "plan",
    "contactEmail"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120
    },
    "plan": {
      "type": "string",
      "enum": [
        "essentials",
        "business"
      ]
    },
    "addOns": {
      "$ref": "#/$defs/AddOns"
    },
    "contactEmail": {
      "type": "string",
      "format": "email",
      "description": "The customer's contact. For `access: api`, the address that gets\na login link if the customer is ever handed over; nothing is sent\nbefore then. For a resold customer (`login: true`), the account's\nOwner, mailed at once.\n"
    },
    "login": {
      "type": "boolean",
      "default": false,
      "description": "True for a resold customer whose own people sign in to AMT."
    }
  },
  "$defs": {
    "AddOns": {
      "type": "array",
      "description": "Add-on ids. `vision` reads pictures; `byom` is Your AI Models. What a plan offers is on the pricing page.",
      "items": {
        "type": "string",
        "enum": [
          "vision",
          "byom"
        ]
      }
    }
  }
}