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:
@@ -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.",
|
||||
),
|
||||
})
|
||||
|
||||
@@ -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.",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user