{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presify-io/json-schema/presify-io-client-registration-response-schema.json",
  "title": "ClientRegistrationResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presify-io-openapi.json#/components/schemas/ClientRegistrationResponse",
  "type": "object",
  "required": [
    "client_id",
    "client_id_issued_at",
    "redirect_uris",
    "grant_types",
    "response_types",
    "token_endpoint_auth_method",
    "scope"
  ],
  "properties": {
    "client_id": {
      "type": "string",
      "format": "uuid"
    },
    "client_id_issued_at": {
      "type": "integer",
      "description": "Unix seconds."
    },
    "client_name": {
      "type": "string"
    },
    "redirect_uris": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "grant_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "response_types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "token_endpoint_auth_method": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "client_secret": {
      "type": "string",
      "description": "Confidential clients only. Shown once; only a hash is stored."
    },
    "client_secret_expires_at": {
      "type": "integer",
      "description": "0 = never expires (rotate by re-registering)."
    }
  }
}