{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presify-io/json-schema/presify-io-client-registration-request-schema.json",
  "title": "ClientRegistrationRequest",
  "description": "RFC 7591 client metadata. Unknown fields are ignored.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presify-io-openapi.json#/components/schemas/ClientRegistrationRequest",
  "type": "object",
  "required": [
    "redirect_uris"
  ],
  "properties": {
    "redirect_uris": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "string",
        "format": "uri"
      },
      "description": "https URIs, or http on localhost/127.0.0.1 for development. Exact-match on authorize."
    },
    "client_name": {
      "type": "string",
      "maxLength": 200
    },
    "client_uri": {
      "type": "string",
      "format": "uri"
    },
    "token_endpoint_auth_method": {
      "type": "string",
      "enum": [
        "none",
        "client_secret_basic",
        "client_secret_post"
      ],
      "default": "none"
    },
    "grant_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      }
    },
    "response_types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "code"
        ]
      }
    },
    "scope": {
      "type": "string",
      "description": "Only `presify:read` is issued."
    },
    "software_id": {
      "type": "string"
    },
    "software_version": {
      "type": "string"
    }
  }
}