{"openapi":"3.1.0","info":{"title":"moneymachine-text-stats","version":"m11.0.0","description":"Deterministic paid UTF-8 text statistics"},"paths":{"/entrypoints/text-stats/invoke":{"post":{"operationId":"invoke_text-stats","summary":"Deterministic UTF-8 text statistics: word, character, and byte counts. No input retention or paid upstream.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":10000}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful invocation","content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"words":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"characters":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"bytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["words","characters","bytes"],"additionalProperties":false}}}},"402":{"description":"Payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"},"description":"x402 payment requirements"},"PAYMENT-RESPONSE":{"schema":{"type":"string"},"description":"x402 settlement receipt"}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/PaymentProblem"}}}}},"x-x402-payment":{"entrypointKey":"text-stats","kind":"invoke","offers":[{"scheme":"exact","network":"eip155:84532","price":"0.001","facilitatorUrl":"https://api.cdp.coinbase.com/platform/v2/x402","payTo":"0x0797746532dDbbF4524Aefb960005B5ad4f0f8e7"}],"extensions":{"bazaar":{"info":{"input":{"type":"http","method":"POST","bodyType":"json","body":{"input":{"text":""}}}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"object","properties":{"type":{"type":"string","const":"http"},"method":{"type":"string","enum":["POST","PUT","PATCH"]},"bodyType":{"type":"string","enum":["json","form-data","text"]},"body":{"properties":{"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":10000}},"required":["text"],"additionalProperties":false}},"required":["input"]}},"required":["type","method","bodyType","body"],"additionalProperties":false}},"required":["input"]}}}}}}},"components":{"schemas":{"PaymentProblem":{"type":"object","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri-reference"},"title":{"type":"string"},"status":{"type":"integer"},"detail":{"type":"string"},"instance":{"type":"string","format":"uri-reference"}}},"X402PaymentIdentifier":{"type":"string","minLength":16,"maxLength":128,"pattern":"^[a-zA-Z0-9_-]+$","description":"Correlation identifier that must equal the HTTP Idempotency-Key."}}}}