{"openapi":"3.1.0","info":{"title":"Dimension History Coverage","version":"1.0.0","description":"Check effective-dated dimension records for missing and overlapping versions throughout a caller-defined reporting window.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/dimension-history-coverage/v1/check":{"post":{"operationId":"dimension_history_coverage","summary":"Check effective-dated dimension records for missing and overlapping versions throughout a caller-defined reporting window.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"from":{"type":"integer","minimum":-1000000000000,"maximum":1000000000000},"until":{"type":"integer","minimum":-1000000000000,"maximum":1000000000000},"entities":{"minItems":1,"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"versions":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"from":{"type":"integer","minimum":-1000000000000,"maximum":1000000000000},"until":{"anyOf":[{"type":"integer","minimum":-1000000000000,"maximum":1000000000000},{"type":"null"}]}},"required":["id","from","until"],"additionalProperties":false}}},"required":["id","versions"],"additionalProperties":false}}},"required":["from","until","entities"],"additionalProperties":false},"example":{"from":0,"until":10,"entities":[{"id":"region","versions":[{"id":"v1","from":-2,"until":3},{"id":"v2","from":5,"until":8},{"id":"v3","from":7,"until":null}]}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"complete":false,"entities":[{"id":"region","gaps":[{"from":3,"until":5}],"overlaps":[{"from":7,"until":8,"versions":["v2","v3"]}]}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}