{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cephable/json-schema/cephable-organization-model-schema.json",
  "title": "OrganizationModel",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cephable-openapi.yml#/components/schemas/OrganizationModel",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "modifiedDate": {
      "type": "string",
      "format": "date-time"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "canCreateAuthClients": {
      "type": "boolean"
    },
    "isEmployeeAccess": {
      "type": "boolean"
    },
    "isPlusAccess": {
      "type": "boolean"
    },
    "isStudentAccess": {
      "type": "boolean"
    },
    "isDeveloperAccess": {
      "type": "boolean"
    },
    "maxMembers": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "currentMemberCount": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "maxConnections": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "maxAuthClients": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "trials": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/LicenseTrialModel"
      }
    },
    "hasLicense": {
      "type": "boolean"
    },
    "licenseExpirationDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "customResourcesMarkdown": {
      "type": [
        "string",
        "null"
      ]
    },
    "managedResourcesMarkdown": {
      "type": [
        "string",
        "null"
      ]
    },
    "isReseller": {
      "type": "boolean"
    },
    "isGenAIDisabled": {
      "type": "boolean"
    },
    "isUsageTrackingDisabled": {
      "type": "boolean"
    },
    "isRemoteControlDisabled": {
      "type": "boolean"
    },
    "disableCephableEmails": {
      "type": "boolean"
    },
    "isScimEnabled": {
      "type": "boolean"
    },
    "allowPublicSkills": {
      "type": "boolean"
    },
    "allowPublicMcpServers": {
      "type": "boolean"
    },
    "allowMemberManagedSkills": {
      "type": "boolean"
    },
    "allowMemberManagedMcpServers": {
      "type": "boolean"
    },
    "customBillingUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "originatedByOrganizationId": {
      "type": [
        "string",
        "null"
      ]
    },
    "renewals": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/OrganizationSubscriptionRenewalModel"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LicenseTrialModel": {
      "required": [
        "email",
        "organizationName"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time"
        },
        "expirationDate": {
          "type": "string",
          "format": "date-time"
        },
        "userId": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "minLength": 1,
          "type": "string"
        },
        "organizationId": {
          "type": [
            "string",
            "null"
          ]
        },
        "isEmployeeAccess": {
          "type": "boolean"
        },
        "isPlusAccess": {
          "type": "boolean"
        },
        "isDeveloperAccess": {
          "type": "boolean"
        },
        "isStudentAccess": {
          "type": "boolean"
        },
        "isAutoUpdate": {
          "type": "boolean"
        },
        "isCreatedFromStripe": {
          "type": "boolean"
        },
        "organizationName": {
          "minLength": 1,
          "type": "string"
        },
        "useCase": {
          "type": [
            "string",
            "null"
          ]
        },
        "employeeRange": {
          "type": [
            "string",
            "null"
          ]
        },
        "phoneNumber": {
          "type": [
            "string",
            "null"
          ]
        },
        "jobTitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "externalDealId": {
          "type": [
            "string",
            "null"
          ]
        },
        "customRedirectUri": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    },
    "OrganizationSubscriptionRenewalModel": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time"
        },
        "startDate": {
          "type": "string",
          "format": "date-time"
        },
        "expirationDate": {
          "type": "string",
          "format": "date-time"
        },
        "organizationId": {
          "type": [
            "string",
            "null"
          ]
        },
        "canCreateAuthClients": {
          "type": "boolean"
        },
        "isEmployeeAccess": {
          "type": "boolean"
        },
        "isPlusAccess": {
          "type": "boolean"
        },
        "isStudentAccess": {
          "type": "boolean"
        },
        "isDeveloperAccess": {
          "type": "boolean"
        },
        "maxMembers": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "maxConnections": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "maxAuthClients": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32"
        },
        "isCanceled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  }
}