← Files Zuora Coding AgentARCHIVED FILE

references/meter-operators/SCRIPT_MAP.json

994 Bytes · Oct 2, 2026 · 00:30 UTC

↓ Download file

{
  "key": "SCRIPT_MAP",
  "nodeType": "PROCESSOR",
  "operatorType": "SCRIPT_MAP",
  "metadata": {
    "language": "JS",
    "source": null,
    "schemaId": null
  },
  "label": "Script Map",
  "assumptions": [
    {
      "path": "language",
      "value": "JS",
      "reason": "JS is the default scripting language; PYTHON is also supported.",
      "confidence": 0.85
    }
  ],
  "generatable_fields": {
    "source": "Generate this from the user's business logic description. See references/meter-operator-codegen.md for the SCRIPT_MAP signature and examples. Ask the user: what transformation should the script perform, and what are the input/output field names?"
  },
  "blockers": [
    {
      "path": "language",
      "message": "SCRIPT_MAP language: 'JS' or 'PYTHON'? Default: JS."
    },
    {
      "path": "schemaId",
      "message": "SCRIPT_MAP schemaId is required. Which output schema should the mapped events conform to? (get the ID from the Schema Registry)"
    }
  ]
}

SHA-256: 4d4d3f2186629b2b8db23834c4059c6d840707217e664c1eeeece017f423473b