{"openapi":"3.1.0","info":{"title":"Practice Review Queue","version":"1.0.0","description":"Build a capped daily review queue from a supplied spacing schedule and the latest outcome for each item.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/practice-review-queue/v1/check":{"post":{"operationId":"practice_review_queue","summary":"Build a capped daily review queue from a supplied spacing schedule and the latest outcome for each item.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"today":{"type":"integer","minimum":0,"maximum":100000},"capacity":{"type":"integer","minimum":0,"maximum":250},"intervals":{"minItems":1,"maxItems":25,"type":"array","items":{"type":"integer","minimum":1,"maximum":365}},"items":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"last_day":{"type":"integer","minimum":0,"maximum":100000},"streak":{"type":"integer","minimum":0,"maximum":10000},"outcome":{"type":"string","enum":["pass","retry"]}},"required":["id","last_day","streak","outcome"],"additionalProperties":false}}},"required":["today","capacity","intervals","items"],"additionalProperties":false},"example":{"today":20,"capacity":1,"intervals":[2,7],"items":[{"id":"A","last_day":10,"streak":2,"outcome":"pass"},{"id":"B","last_day":12,"streak":0,"outcome":"retry"},{"id":"C","last_day":19,"streak":1,"outcome":"pass"}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"queue":[{"id":"B","due_day":13,"days_overdue":7}],"deferred":[{"id":"A","due_day":17,"days_overdue":3}],"upcoming":1}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}