You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
build: bump openapi-generation to license token validation; wire the commercial license election and offline licenses
Bumps openapi-generation to a version that validates commercial license
tokens and requires an explicit license election for generated output.
The CLI always elects the customer's commercial license: the AGPL
election exists only as a source-build fallback in the upstream
generator and is never used here. A missing license token no longer
downgrades the election; generation proceeds as commercial and the
generator rejects it as unproven, with a CLI warning pointing at the
platform. Lint's diagnostic dry-run reuses the workspace license token
under a commercial election and skips diagnostics when unauthenticated.
Adds offline licenses (internal/license): a validated license token from
SPEAKEASY_LICENSE_TOKEN, SPEAKEASY_LICENSE_FILE, or the persisted
offline_license_token authenticates 'run' and 'generate sdk' without the
platform, gated per command by the new OfflineCapable field. Offline
contexts re-authenticate on demand via EnsureTargets, EnsurePlatform,
and WithPlatformFallback, so GitHub runs and uncovered targets still go
online. Generation access honors the offline license even when a
persisted API key put an SDK client in the context, keeping offline
generation offline for logged-in users.
Auth persistence captures the license token issued at validation, scoped
to the authenticated workspace and never for free tiers. Token-less
authentication preserves a manually configured offline license, a
workspace change clears it, and logout wipes it. --force on run and
generate sdk stays a generation-control flag; refreshing the persisted
license online is done explicitly via 'speakeasy auth login', which can
again replace a revoked key or switch accounts.
0 commit comments