{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mahastrategies-com/json-schema/mahastrategies-com-tensor-network-job-schema.json",
  "title": "TensorNetworkJob",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mahastrategies-com-openapi.json#/components/schemas/TensorNetworkJob",
  "type": "object",
  "required": [
    "jobId",
    "kind",
    "status",
    "clientRequestId",
    "inputHash",
    "acceptedConfiguration",
    "credits",
    "result",
    "methodBoundary"
  ],
  "properties": {
    "jobId": {
      "type": "string",
      "pattern": "^job_[a-f0-9]{32}$"
    },
    "kind": {
      "type": "string",
      "const": "tensor-network"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "clientRequestId": {
      "type": "string"
    },
    "inputHash": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "acceptedConfiguration": {
      "type": "object"
    },
    "credits": {
      "type": "object"
    },
    "result": {
      "type": [
        "object",
        "null"
      ]
    },
    "diagnostics": {
      "type": [
        "object",
        "null"
      ]
    },
    "error": {
      "type": [
        "object",
        "null"
      ]
    },
    "pollUrl": {
      "type": "string"
    },
    "quotedCredits": {
      "type": "integer"
    },
    "problemStored": {
      "type": "boolean",
      "const": false
    },
    "methodBoundary": {
      "type": "string"
    }
  }
}