revert(balances): keep trackTokens operationId camelCase

The track_tokens route path is already snake_case (correct). operationId/SDK method names are camelCase across all ~40 routes (batchTrack, getOrCreateCustomer, redeemReferralCode...); Speakeasy emits the override verbatim, so snake_case here produced a lone track_tokens SDK method. Reverts bd41bde10.
This commit is contained in:
Ridhwan Hussain
2026-06-01 15:02:24 +01:00
parent c3dd74c3eb
commit 0d85809ad7
2 changed files with 3 additions and 3 deletions

View File

@@ -163,12 +163,12 @@ export const balancesTrackTokensContract = oc
.route({
method: "POST",
path: "/v1/balances.track_tokens",
operationId: "track_tokens",
operationId: "trackTokens",
description: balancesTrackTokensJsDoc,
spec: (spec) =>
withAcceptedResponse(
spec,
"track_tokens",
"trackTokens",
"Accepted. Autumn is experiencing degraded service from a downstream provider, so the token usage event was accepted for replay and will be tracked as soon as the service is restored.",
),
})

View File

@@ -81,7 +81,7 @@ export const balancesTrackTokensJsDoc = createJSDocDescription({
},
}),
],
methodName: "track_tokens",
methodName: "trackTokens",
returns:
"The dollar value recorded and the updated AI credit system balance. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the token usage event for replay so it can be tracked as soon as the service is restored.",
});