{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundmail-dev/json-schema/groundmail-dev-oauth-client-registration-request-schema.json",
  "title": "OAuthClientRegistrationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundmail-dev-oauth-api-openapi.yml#/components/schemas/OAuthClientRegistrationRequest",
  "type": "object",
  "required": [
    "client_name"
  ],
  "properties": {
    "client_name": {
      "type": "string"
    },
    "redirect_uris": {
      "type": "array",
      "description": "Required with the authorization_code grant (the default)",
      "items": {
        "type": "string"
      }
    },
    "token_endpoint_auth_method": {
      "type": "string",
      "enum": [
        "none",
        "client_secret_post"
      ],
      "default": "none"
    },
    "grant_types": {
      "type": "array",
      "description": "Default `authorization_code` and `refresh_token`",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token",
          "urn:ietf:params:oauth:grant-type:device_code"
        ]
      }
    }
  }
}