{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cayra-io/json-schema/cayra-io-self-service-deployment-response-schema.json",
  "title": "SelfServiceDeploymentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cayra-io-client-api-openapi.yml#/components/schemas/SelfServiceDeploymentResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "company_id": {
      "type": "string",
      "format": "uuid",
      "title": "Company Id"
    },
    "subdomain": {
      "type": "string",
      "title": "Subdomain"
    },
    "status": {
      "$ref": "#/$defs/DeploymentStatusEnum"
    },
    "provider": {
      "$ref": "#/$defs/CloudProviderEnum"
    },
    "public_url": {
      "type": "string",
      "title": "Public Url"
    },
    "public_ip": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Public Ip"
    },
    "instance_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instance Type"
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Region"
    },
    "product_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Product Version"
    },
    "deployed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Deployed At"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "company_id",
    "subdomain",
    "status",
    "provider",
    "public_url",
    "public_ip",
    "instance_type",
    "region",
    "product_version",
    "deployed_at",
    "created_at"
  ],
  "$defs": {
    "CloudProviderEnum": {
      "type": "string",
      "enum": [
        "aws",
        "azure"
      ],
      "title": "CloudProviderEnum"
    },
    "DeploymentStatusEnum": {
      "type": "string",
      "enum": [
        "active",
        "terminated",
        "failed"
      ],
      "title": "DeploymentStatusEnum",
      "description": "Deployment status enumeration"
    }
  }
}