{"openapi":"3.1.0","info":{"title":"Podcast Break Window","version":"1.0.0","description":"Choose the nearest legal ad-break start without crossing editorial blocks or exceeding the episode duration.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/podcast-break-window/v1/check":{"post":{"operationId":"podcast_break_window","summary":"Choose the nearest legal ad-break start without crossing editorial blocks or exceeding the episode duration.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"duration":{"type":"integer","exclusiveMinimum":0,"maximum":86400},"break_seconds":{"type":"integer","exclusiveMinimum":0,"maximum":3600},"target":{"type":"integer","minimum":0,"maximum":86400},"blocked":{"maxItems":300,"type":"array","items":{"type":"object","properties":{"start":{"type":"integer","minimum":0,"maximum":86400},"end":{"type":"integer","minimum":0,"maximum":86400}},"required":["start","end"],"additionalProperties":false}}},"required":["duration","break_seconds","target","blocked"],"additionalProperties":false},"example":{"duration":120,"break_seconds":15,"target":50,"blocked":[{"start":45,"end":60},{"start":70,"end":90}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"start":30,"end":45,"distance_seconds":20}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}