{"openapi":"3.1.0","info":{"title":"Cutlist Kerf Plan","version":"1.0.0","description":"Pack pieces onto stock lengths with one saw kerf between cuts and report retained offcuts.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/cutlist-kerf-plan/v1/check":{"post":{"operationId":"cutlist_kerf_plan","summary":"Pack pieces onto stock lengths with one saw kerf between cuts and report retained offcuts.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stock_mm":{"type":"integer","exclusiveMinimum":0,"maximum":100000},"kerf_mm":{"type":"integer","minimum":0,"maximum":1000},"pieces":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":60},"mm":{"type":"integer","exclusiveMinimum":0,"maximum":100000}},"required":["id","mm"],"additionalProperties":false}}},"required":["stock_mm","kerf_mm","pieces"],"additionalProperties":false},"example":{"stock_mm":1000,"kerf_mm":3,"pieces":[{"id":"top","mm":600},{"id":"side","mm":397},{"id":"leg","mm":396}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"stocks":[{"pieces":["top","side"],"offcut_mm":0},{"pieces":["leg"],"offcut_mm":604}],"unplaced":[],"method":"first-fit-decreasing"}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}