47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "ConsumeAccountRateLimitResetCreditResponse",
|
|
"type": "object",
|
|
"required": [
|
|
"outcome"
|
|
],
|
|
"properties": {
|
|
"outcome": {
|
|
"$ref": "#/definitions/ConsumeAccountRateLimitResetCreditOutcome"
|
|
}
|
|
},
|
|
"definitions": {
|
|
"ConsumeAccountRateLimitResetCreditOutcome": {
|
|
"oneOf": [
|
|
{
|
|
"description": "A reset credit was consumed and the eligible rate-limit windows were reset.",
|
|
"type": "string",
|
|
"enum": [
|
|
"reset"
|
|
]
|
|
},
|
|
{
|
|
"description": "No current rate-limit window is eligible for a reset.",
|
|
"type": "string",
|
|
"enum": [
|
|
"nothingToReset"
|
|
]
|
|
},
|
|
{
|
|
"description": "The account has no earned reset credits available.",
|
|
"type": "string",
|
|
"enum": [
|
|
"noCredit"
|
|
]
|
|
},
|
|
{
|
|
"description": "The same idempotency key already completed a reset successfully.",
|
|
"type": "string",
|
|
"enum": [
|
|
"alreadyRedeemed"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |