{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/broad-institute/json-schema/broad-institute-nih-status-schema.json",
  "title": "NihStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/broad-institute-nih-api-openapi.yml#/components/schemas/NihStatus",
  "allOf": [
    {
      "$ref": "#/$defs/NihResources"
    },
    {
      "required": [
        "linkedNihUsername"
      ],
      "type": "object",
      "properties": {
        "linkedNihUsername": {
          "type": "string"
        },
        "linkExpireTime": {
          "type": "integer",
          "format": "int64",
          "default": 0
        }
      }
    }
  ],
  "$defs": {
    "DatasetPermission": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "the name of the NIH dataset"
        },
        "authorized": {
          "type": "boolean",
          "description": "true if you have access to the dataset, false otherwise"
        }
      }
    },
    "NihResources": {
      "type": "object",
      "properties": {
        "datasetPermissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DatasetPermission"
          }
        }
      }
    }
  }
}