fix(balances): update operationId and spec identifiers for track_tokens route

This commit is contained in:
Ridhwan Hussain
2026-06-01 14:46:06 +01:00
parent 7833dc29f9
commit bd41bde109
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: "trackTokens",
operationId: "track_tokens",
description: balancesTrackTokensJsDoc,
spec: (spec) =>
withAcceptedResponse(
spec,
"trackTokens",
"track_tokens",
"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: "trackTokens",
methodName: "track_tokens",
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.",
});