{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thoughtbox-ai/json-schema/thoughtbox-ai-tenant-record-schema.json",
  "title": "TenantRecord",
  "description": "One row in the registry — represents one trusted MPC Cognito pool.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thoughtbox-ai-openapi.json#/components/schemas/TenantRecord",
  "properties": {
    "tenant_id": {
      "type": "string",
      "title": "Tenant Id"
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "SUSPENDED"
      ],
      "title": "Status",
      "default": "ACTIVE"
    },
    "domains": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Domains"
    },
    "cognito_iss": {
      "type": "string",
      "title": "Cognito Iss"
    },
    "cognito_aud": {
      "type": "string",
      "title": "Cognito Aud"
    },
    "cognito_region": {
      "type": "string",
      "title": "Cognito Region",
      "default": "us-east-1"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "app_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "App Url"
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    }
  },
  "type": "object",
  "required": [
    "tenant_id",
    "cognito_iss",
    "cognito_aud"
  ]
}