Skip to content

feat(auth): regenerate against OpenAPI 0.95.1 (AuthTokenError)#1

Merged
mrmx merged 3 commits into
mainfrom
feat/auth-token-phase2
May 25, 2026
Merged

feat(auth): regenerate against OpenAPI 0.95.1 (AuthTokenError)#1
mrmx merged 3 commits into
mainfrom
feat/auth-token-phase2

Conversation

@mrmx

@mrmx mrmx commented May 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Regenerates @qtsurfer/api-client against OpenAPI spec 0.95.1, picking up the AuthErrorAuthTokenError schema rename (symmetric with AuthTokenResponse). No other contract changes.

Carries forward additive schema updates from prior un-regenerated spec bumps (auth token endpoint, EquityPoint, ResultMap.equityCurve, ResultMap.pnlTotalPercent).

Generated type renames

  • AuthError (schema model) -> AuthTokenError
  • AuthError2 (op error union) -> AuthError (clean — no 2 suffix)

The schema model is now exposed as AuthTokenError; the per-operation error union returned by auth() is the unsuffixed AuthError. Hey-api no longer needs to suffix because the name conflict is gone in the spec.

Version

0.2.0 -> 0.2.1

Test plan

  • bunx openapi-ts succeeds against qtsurfer-api/main/openapi.yaml (spec 0.95.1).
  • bunx tsc --noEmit clean.
  • bunx tsup build clean (ESM 3.22KB, DTS 30.31KB).
  • grep -c AuthError2 src/generated/*.ts returns 0 across all generated files.
  • sdk.gen.ts imports AuthError (union) — no longer AuthError2.

mrmx added 3 commits May 25, 2026 19:21
Picks up OpenAPI spec 0.95.0:
- New POST /auth/token operation, exported as auth()
- AuthTokenResponse and AuthError schemas
- apiKeyAuth security scheme

Also carries forward additive schema changes from a prior
missed regen: EquityPoint, ResultMap.pnlTotalPercent, and
ResultMap.equityCurve.
Picks up the AuthError schema rename in spec 0.95.1 (symmetric
with AuthTokenResponse). All other contract details unchanged.

Generated type renames:
- AuthError (schema)        -> AuthTokenError
- AuthError2 (op error union) -> AuthError  (clean now, no suffix)

The schema model is exposed as AuthTokenError; the per-operation
error union returned by auth() is the unsuffixed AuthError.

Bumps @qtsurfer/api-client to 0.2.1.
… cross-link

Generator regen does not touch the README. Add the `auth` row to the
operations table, a short usage snippet showing how to call `await auth({
headers: { 'X-API-Key': ... } })` and destructure `data.access_token`,
document the QTSURFER_APIKEY env-var convention, and point production callers
at the sibling SDK for token-refresh handling.

Part of openapi-auth-rollout Phase 2 (#168).
@mrmx mrmx merged commit d0e36f4 into main May 25, 2026
3 checks passed
@mrmx mrmx deleted the feat/auth-token-phase2 branch May 25, 2026 21:20
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