{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/firma-dev/main/json-schema/firma-dev-rotate-secret-response-schema.json",
  "title": "RotateSecretResponse",
  "description": "Secret rotation result with grace period",
  "x-generated": "2026-09-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firma-dev-webhooks-api-openapi.yml#/components/schemas/RotateSecretResponse",
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    },
    "new_secret": {
      "type": "string",
      "description": "The new webhook signing secret (64 character hex string)"
    },
    "grace_period_hours": {
      "type": "integer",
      "description": "Hours the old secret remains valid alongside the new one"
    },
    "warning": {
      "type": "string",
      "description": "Reminder to update webhook signature verification"
    }
  },
  "required": [
    "message",
    "new_secret",
    "grace_period_hours"
  ]
}