{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0si-ai/json-schema/0si-ai-status-response-schema.json",
  "title": "StatusResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0si-ai-status-api-openapi.yml#/components/schemas/StatusResponse",
  "type": "object",
  "required": [
    "object",
    "data",
    "meta"
  ],
  "properties": {
    "object": {
      "const": "status"
    },
    "data": {
      "type": "object",
      "required": [
        "service",
        "status",
        "plan",
        "scopes"
      ],
      "properties": {
        "service": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "operational"
          ]
        },
        "plan": {
          "$ref": "#/$defs/Plan"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "disclosures:read",
              "stream:read",
              "webhooks:write"
            ]
          }
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "required": [
        "request_id",
        "generated_at",
        "api_version"
      ],
      "properties": {
        "request_id": {
          "type": "string"
        },
        "generated_at": {
          "type": "string",
          "format": "date-time"
        },
        "api_version": {
          "type": "string",
          "const": "v1"
        }
      }
    },
    "Plan": {
      "type": "string",
      "enum": [
        "pro",
        "trial",
        "credit"
      ],
      "description": "pro: Pro subscription. trial: free daily allowance. credit: the account holds prepaid credits (real-time data; calls beyond the free allowance spend one credit each)."
    }
  }
}