Driftwatch

Vercel / Vercel REST API /

Breakingdirection flip: their tools call this safe

scope can now return "product"

What changed

Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

Affects payload.budget.scope on UserEvent reachable from 1 operation.

New value: product.

can now return "product"

Who is affected

Code that reads Vercel's UserEvent objects, used by 1 Vercel operation.

Before and after

WhereBeforeAfter
UserEvent.payload.budget.scope"organization", "project", "team""organization", "product", "project", "team"
UserEvent.payload.prevBudget.scope"organization", "project", "team""organization", "product", "project", "team"
UserEvent.payload.budget.budgetItem.scope"organization", "project", "team""organization", "product", "project", "team"

Code that breaks

switch (response.payload.budget.scope) {
  // existing branches …
  // no branch for "product"
  default:
    throw new Error("unexpected scope");
}

Based on Vercel’s published API specification. How severity is decided.