{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/firma-dev/main/json-schema/firma-dev-secret-status-response-schema.json",
  "title": "SecretStatusResponse",
  "description": "Webhook secret status and rotation info",
  "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/SecretStatusResponse",
  "type": "object",
  "properties": {
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the webhook secret was created"
    },
    "last_rotated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the webhook secret was last rotated"
    },
    "grace_period_active": {
      "type": "boolean",
      "description": "Whether the old secret is still valid alongside the new one"
    },
    "grace_period_ends_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the old secret grace period expires"
    }
  },
  "required": [
    "created_at"
  ]
}