{"openapi":"3.1.0","info":{"title":"Multipart Byte Plan","version":"1.0.0","description":"Plan contiguous half-open byte ranges for multipart transfer with caller-supplied part limits and optional alignment.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/multipart-byte-plan/v1/check":{"post":{"operationId":"multipart_byte_plan","summary":"Plan contiguous half-open byte ranges for multipart transfer with caller-supplied part limits and optional alignment.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"total_bytes":{"type":"integer","minimum":1,"maximum":1000000000000},"min_regular_bytes":{"type":"integer","minimum":1,"maximum":1000000000000},"max_part_bytes":{"type":"integer","minimum":1,"maximum":1000000000000},"preferred_bytes":{"type":"integer","minimum":1,"maximum":1000000000000},"alignment_bytes":{"type":"integer","minimum":1,"maximum":1000000000000},"max_parts":{"type":"integer","minimum":1,"maximum":500}},"required":["total_bytes","min_regular_bytes","max_part_bytes","preferred_bytes","alignment_bytes","max_parts"],"additionalProperties":false},"example":{"total_bytes":40,"min_regular_bytes":8,"max_part_bytes":16,"preferred_bytes":8,"alignment_bytes":4,"max_parts":3}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"total_bytes":40,"regular_part_bytes":12,"parts":[{"number":1,"start":0,"end":12,"bytes":12},{"number":2,"start":12,"end":24,"bytes":12},{"number":3,"start":24,"end":40,"bytes":16}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}