GCC Build OSv0
/api

BackupCompletedevent type

Daily D1 backup written to R2. Captures sequence_no_at_backup so restore + replay can reconstruct exactly the state at backup time.

Full spec

{
  "name": "BackupCompleted",
  "description": "Daily D1 backup written to R2. Captures sequence_no_at_backup so restore + replay can reconstruct exactly the state at backup time.",
  "current_version": 1,
  "actor_type_allowed": [
    "system"
  ],
  "object_type": null,
  "payload_versions": {
    "v1": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "backup_id",
        "r2_key",
        "sequence_no_at_backup",
        "completed_at"
      ],
      "properties": {
        "backup_id": {
          "type": "string",
          "format": "uuid"
        },
        "r2_key": {
          "type": "string",
          "minLength": 1
        },
        "sequence_no_at_backup": {
          "type": "integer",
          "minimum": 0
        },
        "byte_size": {
          "type": "integer",
          "minimum": 0
        },
        "retention_days": {
          "type": "integer",
          "minimum": 1,
          "default": 30
        },
        "completed_at": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  },
  "projections_consuming": [
    "backups_view",
    "audit_log"
  ],
  "canonicalizer_module": "event-canonicalizers/backup_completed.ts"
}