{
  "$id": "https://elicitra.eigen.rest/developers/v6/schemas/mcp/elicitra_account_info.output.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "additionalProperties": false,
      "properties": {
        "capabilities": {
          "additionalProperties": false,
          "properties": {
            "campaignDraftAuthoring": {
              "type": "boolean"
            },
            "campaignRead": {
              "type": "boolean"
            },
            "scenarioDraftAuthoring": {
              "type": "boolean"
            },
            "scenarioRead": {
              "type": "boolean"
            }
          },
          "required": [
            "scenarioRead",
            "scenarioDraftAuthoring",
            "campaignRead",
            "campaignDraftAuthoring"
          ],
          "type": "object"
        },
        "credits": {
          "additionalProperties": false,
          "properties": {
            "available": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "enforcement": {
              "enum": [
                "enforced",
                "not_enforced"
              ],
              "type": "string"
            }
          },
          "required": [
            "available",
            "enforcement"
          ],
          "type": "object"
        },
        "organization": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "name": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "plan": {
              "enum": [
                "free",
                "pro",
                "growth",
                "scale"
              ],
              "type": "string"
            },
            "role": {
              "enum": [
                "owner",
                "admin"
              ],
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "role",
            "plan"
          ],
          "type": "object"
        },
        "owner": {
          "additionalProperties": false,
          "properties": {
            "email": {
              "format": "email",
              "maxLength": 320,
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
              "type": "string"
            },
            "id": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            },
            "name": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id",
            "name",
            "email"
          ],
          "type": "object"
        },
        "token": {
          "additionalProperties": false,
          "properties": {
            "effectiveScopes": {
              "items": {
                "enum": [
                  "scenario:read",
                  "campaign:read",
                  "scenario:write",
                  "campaign:write"
                ],
                "type": "string"
              },
              "maxItems": 4,
              "minItems": 1,
              "type": "array"
            },
            "expiresAt": {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
              "type": "string"
            },
            "prefix": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "prefix",
            "expiresAt",
            "effectiveScopes"
          ],
          "type": "object"
        },
        "usage": {
          "additionalProperties": false,
          "properties": {
            "activePersonalAccessTokens": {
              "additionalProperties": false,
              "properties": {
                "limit": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "used": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "used",
                "limit"
              ],
              "type": "object"
            },
            "campaigns": {
              "additionalProperties": false,
              "properties": {
                "limit": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "used": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "used",
                "limit"
              ],
              "type": "object"
            },
            "scenarios": {
              "additionalProperties": false,
              "properties": {
                "limit": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "used": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "used",
                "limit"
              ],
              "type": "object"
            }
          },
          "required": [
            "scenarios",
            "campaigns",
            "activePersonalAccessTokens"
          ],
          "type": "object"
        }
      },
      "required": [
        "owner",
        "organization",
        "token",
        "usage",
        "credits",
        "capabilities"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "NOT_FOUND",
            "REVISION_CONFLICT",
            "SCENARIO_LOCKED",
            "CAMPAIGN_LOCKED",
            "VALIDATION_FAILED",
            "QUOTA_EXCEEDED",
            "TOOL_NOT_AVAILABLE",
            "IDEMPOTENCY_KEY_REUSED",
            "REMOVAL_ACKNOWLEDGEMENT_REQUIRED",
            "UNAUTHORIZED",
            "FORBIDDEN",
            "RATE_LIMITED",
            "SERVICE_UNAVAILABLE"
          ],
          "type": "string"
        },
        "currentRevision": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "docsUrl": {
          "maxLength": 2048,
          "type": "string"
        },
        "editorUrl": {
          "maxLength": 2048,
          "type": "string"
        },
        "field": {
          "maxLength": 256,
          "type": "string"
        },
        "issues": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "maxLength": 128,
                "type": "string"
              },
              "message": {
                "maxLength": 1024,
                "type": "string"
              },
              "path": {
                "maxLength": 512,
                "type": "string"
              }
            },
            "required": [
              "path",
              "code",
              "message"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        },
        "message": {
          "maxLength": 1024,
          "minLength": 1,
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        },
        "studioUrl": {
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    }
  ],
  "title": "elicitra_account_info output",
  "type": "object"
}
