Skip to content

chore: bump @seamless-auth/types to 0.33 and read the dry run capped flag - #316

Merged
Bccorb merged 1 commit into
mainfrom
chore/types-0-33-dry-run-capped
Oct 26, 2026
Merged

Bccorb merged 1 commit into
mainfrom
chore/types-0-33-dry-run-capped

Conversation

@Bccorb

@Bccorb Bccorb commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #314. @seamless-auth/types 0.33.0 adds optional PolicyDryRunResponse.capped, and the auth API returns it as of fells-code/seamless-auth-api#505.

Changes

  • Bump @seamless-auth/types to ^0.33.0.
  • The Sign-in Policy page shows the account limit notice from capped. When capped is absent (an older API), it still infers the cap from usersEvaluated + breakGlassAccounts >= 10000. An explicit capped: false is trusted over the counts.
  • Drop the local PolicyDryRunReport type (a capped? extension of PolicyDryRunResponse) in favour of the upstream type.
  • The e2e makePolicyDryRun factory returns capped: false, matching the current API.
  • Patch changeset.

Other 0.33 additions (MeResponse.recovery, the recovery schemas) need no changes here. The console has no local copies of them.

Checks

  • npm run lint, npm run typecheck, npm run format:check: clean
  • npm test: 99 files, 671 tests passed
  • npx playwright test e2e/tests/policy.spec.ts: 6 passed
  • npm run build: ok
  • npm run check:types-current: ^0.33.0 is current

…flag

The Sign-in Policy dry run now shows its account limit notice from the API's
capped field. When an older API omits it, the page falls back to inferring the
cap from usersEvaluated plus breakGlassAccounts. The local capped extension of
PolicyDryRunResponse is replaced by the upstream type.
@Bccorb
Bccorb merged commit 299c38d into main Oct 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant