{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agent-gst-integration-scope.constalabs.com/pilot-brief.schema.json",
  "title": "GST e-Invoice Integration Pilot Brief",
  "description": "Technical intake schema for scoping an Indian GST e-Invoice integration pilot. This is not tax or legal advice.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "organisation",
    "billingSystem",
    "integrationMode",
    "monthlyVolume",
    "timeline",
    "capabilities"
  ],
  "properties": {
    "organisation": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "contactName": {
      "type": "string",
      "maxLength": 200
    },
    "billingSystem": {
      "type": "string",
      "enum": [
        "custom-web-application",
        "desktop-application",
        "erp-or-accounting-software",
        "spreadsheet-or-manual",
        "not-decided"
      ]
    },
    "integrationMode": {
      "type": "string",
      "enum": [
        "direct-api",
        "embedded-web-component",
        "file-import-export",
        "recommendation-required"
      ]
    },
    "monthlyVolume": {
      "type": "string",
      "enum": [
        "under-100",
        "100-1000",
        "1001-10000",
        "over-10000",
        "unknown"
      ]
    },
    "timeline": {
      "type": "string",
      "enum": [
        "proof-of-concept-first",
        "within-2-weeks",
        "within-1-month",
        "exploratory"
      ]
    },
    "capabilities": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "invoice-validation",
          "irp-payload-generation",
          "irn-submission-and-status",
          "signed-qr-and-invoice-output",
          "cancellation-workflow",
          "audit-logs-and-reconciliation"
        ]
      }
    },
    "constraints": {
      "type": "string",
      "maxLength": 5000
    },
    "sampleDataPolicy": {
      "const": "non-sensitive-only"
    }
  }
}
