{"openapi":"3.1.0","info":{"title":"Field Observation Revisit Audit","version":"1.0.0","description":"Compare surveyed stations against a visit plan and flag visits that lack effort, fall outside their round, or are still missing.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/field-observation-revisit-audit/v1/check":{"post":{"operationId":"field_observation_revisit_audit","summary":"Compare surveyed stations against a visit plan and flag visits that lack effort, fall outside their round, or are still missing.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stations":{"minItems":1,"maxItems":120,"type":"array","items":{"type":"string","minLength":1,"maxLength":60}},"rounds":{"minItems":1,"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"first_day":{"type":"integer","minimum":0,"maximum":100000},"last_day":{"type":"integer","minimum":0,"maximum":100000},"min_effort_minutes":{"type":"integer","minimum":1,"maximum":1440}},"required":["id","first_day","last_day","min_effort_minutes"],"additionalProperties":false}},"observations":{"maxItems":400,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"station":{"type":"string","minLength":1,"maxLength":60},"round":{"type":"string","minLength":1,"maxLength":60},"day":{"type":"integer","minimum":0,"maximum":100000},"effort_minutes":{"type":"integer","minimum":0,"maximum":1440}},"required":["id","station","round","day","effort_minutes"],"additionalProperties":false}}},"required":["stations","rounds","observations"],"additionalProperties":false},"example":{"stations":["E","W"],"rounds":[{"id":"spring","first_day":5,"last_day":8,"min_effort_minutes":20}],"observations":[{"id":"1","station":"E","round":"spring","day":6,"effort_minutes":21},{"id":"2","station":"W","round":"spring","day":6,"effort_minutes":5}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"rounds":[{"id":"spring","completed_stations":["E"],"missing_stations":["W"]}],"issues":[{"id":"2","reason":"insufficient_effort"}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}