{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gen-pro/json-schema/gen-pro-organization-schema.json",
  "title": "Organization",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gen-pro-organizations-api-openapi.yml#/components/schemas/Organization",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "uuid": {
      "type": "string"
    },
    "organization_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "avatar": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "thumbnail_url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "user_role": {
      "type": "string"
    },
    "credit": {
      "type": "number"
    },
    "available_credit": {
      "type": "object",
      "properties": {
        "generic": {
          "type": "number"
        },
        "aura": {
          "type": "number"
        }
      }
    },
    "total_members": {
      "type": "integer"
    },
    "credit_plan": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "cycle": {
          "type": "string"
        }
      }
    }
  }
}