{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudovna-eu/json-schema/cloudovna-eu-organization-response-schema.json",
  "title": "OrganizationResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudovna-eu-organizations-api-openapi.yml#/components/schemas/OrganizationResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "id": {
      "type": "string",
      "format": "guid"
    },
    "name": {
      "type": "string"
    },
    "billingEmail": {
      "type": [
        "string",
        "null"
      ]
    },
    "invoiceLanguage": {
      "type": "string"
    },
    "unbilled": {
      "type": "boolean"
    },
    "role": {
      "$ref": "#/$defs/OrganizationRole"
    },
    "member": {
      "type": "boolean"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationMemberDto"
      }
    },
    "invitations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InvitationDto"
      }
    }
  },
  "$defs": {
    "InvitationDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "format": "guid"
        },
        "email": {
          "type": "string"
        },
        "role": {
          "$ref": "#/$defs/OrganizationRole"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "OrganizationMemberDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "format": "guid"
        },
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "role": {
          "$ref": "#/$defs/OrganizationRole"
        },
        "since": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "OrganizationRole": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Viewer",
        "Member",
        "Owner"
      ],
      "enum": [
        "Viewer",
        "Member",
        "Owner"
      ]
    }
  }
}