{"openapi":"3.1.0","info":{"title":"Trust History Oracle API","version":"0.1.1","description":"Base Sepolia testnet alpha (eip155:84532). Mainnet is disabled. Test USDC only; historical evidence is not a safety guarantee. Use cases: npm dependency-history screening; package instructions that predate registration; exact-URL public-web history; web provenance; agent supply-chain security."},"servers":[{"url":"https://trust-history-oracle.delicate-yellowhorn.workers.dev","description":"Current service origin"}],"paths":{"/health":{"get":{"operationId":"health","summary":"Service health","responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/package":{"get":{"operationId":"packageHistory","summary":"npm dependency-history screening","description":"Screen npm dependency history for agent supply-chain security using registry creation and publication evidence.","parameters":[{"in":"query","name":"ecosystem","required":false,"schema":{"type":"string","enum":["npm"],"default":"npm"}},{"in":"query","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"x402 payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/url-history":{"get":{"operationId":"urlHistory","summary":"exact-URL public-web history and web provenance","description":"Inspect bounded exact-URL public-web history and web provenance using Common Crawl evidence.","parameters":[{"in":"query","name":"url","required":true,"schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"x402 payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/chronology":{"get":{"operationId":"packageInstructionChronology","summary":"package instructions that predate registration","description":"Compare archived package instructions with registration time to detect chronology anomalies for agent supply-chain security.","parameters":[{"in":"query","name":"ecosystem","required":false,"schema":{"type":"string","enum":["npm"],"default":"npm"}},{"in":"query","name":"name","required":true,"schema":{"type":"string"}},{"in":"query","name":"instruction_url","required":true,"schema":{"type":"string","format":"uri"}}],"responses":{"200":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}},"402":{"description":"x402 payment required","headers":{"PAYMENT-REQUIRED":{"schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"422":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}},"503":{"description":"JSON response","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}