{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://finance.entelekron.org/schemas/entelemint-orchestration-control-profile.schema.json",
  "title": "EnteleMINT TVKUSD orchestration control profile",
  "type": "object",
  "additionalProperties": false,
  "required": ["$schema", "schemaVersion", "controlPlaneId", "canonicalAssetId", "profileId", "status", "effectiveAt", "acceptedEnvironments", "productionRequestEndpoint", "productionQueueEndpoint", "activeOrderCount", "stateMachine", "requiredBindings", "sequencing", "replayProtection", "compensation", "authority", "notice"],
  "properties": {
    "$schema": {"const": "https://finance.entelekron.org/schemas/entelemint-orchestration-control-profile.schema.json"},
    "schemaVersion": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
    "controlPlaneId": {"const": "tvk-group:entelekron-financial-infrastructure"},
    "canonicalAssetId": {"const": "tvk-group:tvkusd"},
    "profileId": {"type": "string", "minLength": 1},
    "status": {"const": "prelaunch-locked"},
    "effectiveAt": {"type": "string", "format": "date-time"},
    "acceptedEnvironments": {"type": "array", "maxItems": 0},
    "productionRequestEndpoint": {"type": "null"},
    "productionQueueEndpoint": {"type": "null"},
    "activeOrderCount": {"const": 0},
    "stateMachine": {
      "type": "object", "additionalProperties": false,
      "required": ["currentOperationalState", "definedStates", "terminalSuccessState", "exceptionStates"],
      "properties": {
        "currentOperationalState": {"const": "disabled"},
        "definedStates": {"type": "array", "minItems": 12, "uniqueItems": true, "items": {"type": "string"}},
        "terminalSuccessState": {"const": "reconciled"},
        "exceptionStates": {"type": "array", "minItems": 4, "uniqueItems": true, "items": {"type": "string"}}
      }
    },
    "requiredBindings": {"type": "array", "minItems": 19, "uniqueItems": true, "items": {"type": "string"}},
    "sequencing": {"$ref": "#/$defs/booleanControls"},
    "replayProtection": {
      "type": "object", "additionalProperties": false,
      "required": ["required", "serverGeneratedRequestId", "singleUseNonce", "idempotencyKeyRequired", "maximumAuthorizationLifetimeSeconds"],
      "properties": {
        "required": {"const": true}, "serverGeneratedRequestId": {"const": true}, "singleUseNonce": {"const": true}, "idempotencyKeyRequired": {"const": true},
        "maximumAuthorizationLifetimeSeconds": {"type": "integer", "minimum": 1, "maximum": 300}
      }
    },
    "compensation": {"$ref": "#/$defs/booleanControls"},
    "authority": {"$ref": "#/$defs/falseControls"},
    "notice": {"type": "string", "minLength": 1}
  },
  "$defs": {
    "booleanControls": {"type": "object", "minProperties": 1, "additionalProperties": {"type": "boolean"}},
    "falseControls": {"type": "object", "minProperties": 1, "additionalProperties": {"const": false}}
  }
}
