{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cotal-ai/json-schema/cotal-ai-mesh-bundle-schema.json",
  "title": "MeshBundle",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cotal-ai-auth-openapi.yml#/components/schemas/MeshBundle",
  "type": "object",
  "properties": {
    "space": {
      "type": "string",
      "minLength": 1
    },
    "server": {
      "type": "string",
      "minLength": 1
    },
    "tlsRequired": {
      "const": true
    },
    "userAuth": {
      "type": "object",
      "properties": {
        "provider": {
          "const": "cotal"
        },
        "idp": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "minLength": 1
            },
            "issuer": {
              "type": "string",
              "minLength": 1
            },
            "audience": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "url",
            "issuer",
            "audience"
          ]
        },
        "endpoints": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "minLength": 1
            },
            "managerAuthorityUrl": {
              "type": "string",
              "minLength": 1
            },
            "agentProvisioningUrl": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "url",
            "managerAuthorityUrl"
          ]
        }
      },
      "required": [
        "provider",
        "idp",
        "endpoints"
      ]
    },
    "sentinelCreds": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "space",
    "server",
    "tlsRequired",
    "userAuth",
    "sentinelCreds"
  ]
}