{"openapi":"3.1.0","info":{"title":"Volunteer Time Reconcile","version":"1.0.0","description":"Calculate distinct credited volunteer minutes and isolate overlapping or unapproved minutes in submitted logs.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/volunteer-time-reconcile/v1/check":{"post":{"operationId":"volunteer_time_reconcile","summary":"Calculate distinct credited volunteer minutes and isolate overlapping or unapproved minutes in submitted logs.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"logs":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"volunteer":{"type":"string","minLength":1,"maxLength":80},"start":{"type":"integer","minimum":0,"maximum":1000000000},"end":{"type":"integer","minimum":0,"maximum":1000000000},"approved":{"type":"boolean"}},"required":["id","volunteer","start","end","approved"],"additionalProperties":false}}},"required":["logs"],"additionalProperties":false},"example":{"logs":[{"id":"L1","volunteer":"V","start":0,"end":60,"approved":true},{"id":"L2","volunteer":"V","start":40,"end":80,"approved":true},{"id":"L3","volunteer":"V","start":90,"end":100,"approved":false}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"volunteers":[{"volunteer":"V","credited_minutes":80,"overlap_minutes":20,"unapproved_minutes":10}],"overlapping_logs":[{"id":"L2","minutes":20}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}