{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daytona-io/json-schema/daytona-io-organization-schema.json",
  "title": "Organization",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daytona-io-organizations-api-openapi.yml#/components/schemas/Organization",
  "properties": {
    "id": {
      "description": "Organization ID",
      "type": "string"
    },
    "name": {
      "description": "Organization name",
      "type": "string"
    },
    "createdBy": {
      "description": "User ID of the organization creator",
      "type": "string"
    },
    "personal": {
      "description": "Personal organization flag",
      "type": "boolean"
    },
    "createdAt": {
      "description": "Creation timestamp",
      "format": "date-time",
      "type": "string"
    },
    "updatedAt": {
      "description": "Last update timestamp",
      "format": "date-time",
      "type": "string"
    },
    "suspended": {
      "description": "Suspended flag",
      "type": "boolean"
    },
    "suspendedAt": {
      "description": "Suspended at",
      "format": "date-time",
      "type": "string"
    },
    "suspensionReason": {
      "description": "Suspended reason",
      "type": "string"
    },
    "suspendedUntil": {
      "description": "Suspended until",
      "format": "date-time",
      "type": "string"
    },
    "suspensionCleanupGracePeriodHours": {
      "description": "Suspension cleanup grace period hours",
      "type": "number"
    },
    "maxCpuPerSandbox": {
      "description": "Max CPU per sandbox",
      "type": "number"
    },
    "maxMemoryPerSandbox": {
      "description": "Max memory per sandbox",
      "type": "number"
    },
    "maxDiskPerSandbox": {
      "description": "Max disk per sandbox",
      "type": "number"
    },
    "secretQuota": {
      "description": "Maximum number of secrets",
      "type": "number"
    },
    "maxSecretsPerSandbox": {
      "description": "Maximum number of secrets that can be mounted to a single sandbox",
      "type": "number"
    },
    "snapshotDeactivationTimeoutMinutes": {
      "default": 20160,
      "description": "Time in minutes before an unused snapshot is deactivated",
      "type": "number"
    },
    "defaultQueueTimeout": {
      "description": "Default minutes to wait for runner assignment before cancelling sandbox creation. Applied when sandbox create omits queueTimeout. Null means no default.",
      "type": [
        "integer",
        "null"
      ]
    },
    "sandboxLimitedNetworkEgress": {
      "description": "Sandbox default network block all",
      "type": "boolean"
    },
    "previewWarningEnabled": {
      "description": "Whether the proxy shows the preview URL warning page for this organization",
      "type": "boolean"
    },
    "ssoEnabled": {
      "description": "Whether this organization may configure SSO identity providers",
      "type": "boolean"
    },
    "scimEnabled": {
      "description": "Whether this organization may use SCIM directory sync",
      "type": "boolean"
    },
    "defaultRegionId": {
      "description": "Default region ID",
      "type": "string"
    },
    "workosOrgId": {
      "description": "ID of the WorkOS organization mirrored from this organization (absent for personal organizations, which are never mirrored)",
      "type": "string"
    },
    "directorySyncStatus": {
      "allOf": [
        {
          "$ref": "#/$defs/DirectorySyncStatus"
        }
      ],
      "description": "Connection state of the WorkOS SCIM directory, as last reported by WorkOS (absent when no directory has ever reported in)"
    },
    "directorySyncStatusChangedAt": {
      "description": "When the directory sync status last changed",
      "format": "date-time",
      "type": "string"
    },
    "directorySyncTokenRevokedAt": {
      "description": "When the directory bearer token was revoked; absent while a valid token exists. A revoked token stops provisioning even if the directory is still active.",
      "format": "date-time",
      "type": "string"
    },
    "authenticatedRateLimit": {
      "description": "Authenticated rate limit per minute",
      "type": [
        "number",
        "null"
      ]
    },
    "sandboxCreateRateLimit": {
      "description": "Sandbox create rate limit per minute",
      "type": [
        "number",
        "null"
      ]
    },
    "sandboxLifecycleRateLimit": {
      "description": "Sandbox lifecycle rate limit per minute",
      "type": [
        "number",
        "null"
      ]
    },
    "experimentalConfig": {
      "description": "Experimental configuration",
      "type": "object"
    },
    "otelConfig": {
      "allOf": [
        {
          "$ref": "#/$defs/OtelConfig"
        }
      ],
      "description": "OpenTelemetry collection configuration"
    },
    "authenticatedRateLimitTtlSeconds": {
      "description": "Authenticated rate limit TTL in seconds",
      "type": [
        "number",
        "null"
      ]
    },
    "sandboxCreateRateLimitTtlSeconds": {
      "description": "Sandbox create rate limit TTL in seconds",
      "type": [
        "number",
        "null"
      ]
    },
    "sandboxLifecycleRateLimitTtlSeconds": {
      "description": "Sandbox lifecycle rate limit TTL in seconds",
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "authenticatedRateLimit",
    "authenticatedRateLimitTtlSeconds",
    "createdAt",
    "createdBy",
    "defaultQueueTimeout",
    "experimentalConfig",
    "id",
    "maxCpuPerSandbox",
    "maxDiskPerSandbox",
    "maxMemoryPerSandbox",
    "maxSecretsPerSandbox",
    "name",
    "otelConfig",
    "personal",
    "previewWarningEnabled",
    "sandboxCreateRateLimit",
    "sandboxCreateRateLimitTtlSeconds",
    "sandboxLifecycleRateLimit",
    "sandboxLifecycleRateLimitTtlSeconds",
    "sandboxLimitedNetworkEgress",
    "scimEnabled",
    "secretQuota",
    "snapshotDeactivationTimeoutMinutes",
    "ssoEnabled",
    "suspended",
    "suspendedAt",
    "suspendedUntil",
    "suspensionCleanupGracePeriodHours",
    "suspensionReason",
    "updatedAt"
  ],
  "type": "object",
  "$defs": {
    "DirectorySyncStatus": {
      "description": "Connection state of the WorkOS SCIM directory, as last reported by WorkOS (absent when no directory has ever reported in)",
      "enum": [
        "active",
        "inactive",
        "deleted"
      ],
      "type": "string"
    },
    "OtelConfig": {
      "properties": {
        "endpoint": {
          "description": "Endpoint",
          "type": "string"
        },
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Headers",
          "type": [
            "object",
            "null"
          ]
        },
        "organizationId": {
          "description": "Organization ID the config belongs to",
          "type": "string"
        }
      },
      "required": [
        "endpoint"
      ],
      "type": "object"
    }
  }
}