{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-auth-capabilities-schema.json",
  "title": "AuthCapabilities",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-oauth-api-openapi.yml#/components/schemas/AuthCapabilities",
  "type": "object",
  "properties": {
    "password": {
      "type": "boolean",
      "description": "True if email + password sign-in is available (always on here)"
    },
    "google": {
      "type": "boolean",
      "description": "True if Google sign-in is configured"
    },
    "github": {
      "type": "boolean",
      "description": "True if GitHub sign-in is configured"
    },
    "oidc": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "providerId": {
          "type": "string",
          "description": "The provider id used to initiate SSO"
        },
        "label": {
          "type": "string",
          "description": "Human-readable label for the SSO button"
        }
      },
      "required": [
        "providerId",
        "label"
      ],
      "description": "The enterprise OIDC/SSO provider, or null if none is configured"
    },
    "emailVerification": {
      "type": "boolean",
      "description": "True if verification emails can be sent (a mail transport is configured)"
    },
    "passwordReset": {
      "type": "boolean",
      "description": "True if password-reset emails can be sent"
    },
    "passkey": {
      "type": "boolean",
      "description": "True if passkey (WebAuthn) sign-in works on this instance"
    }
  },
  "required": [
    "password",
    "google",
    "github",
    "oidc",
    "emailVerification",
    "passwordReset",
    "passkey"
  ]
}