{"openapi":"3.1.0","info":{"title":"MSI Tree API - PH3AR","description":"API for MSI database parsing, viewing, and export services. Part of the PH3AR (pronounced FEAR) project by Platphorm News. Fear nothing. Build everything.","version":"0.0.1","contact":{"name":"PH3AR - Platphorm News","url":"https://www.platphormnews.com","email":"Michael@Barbineworldwide.com"},"license":{"name":"MIT","url":"https://opensource.org/licenses/MIT"},"x-logo":{"url":"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>📦</text></svg>","altText":"MSI Tree by PH3AR"}},"servers":[{"url":"https://msi.platphormnews.com","description":"Production server"}],"paths":{"/api/health":{"get":{"summary":"Health Check","description":"Returns the health status of the MSI Tree service","operationId":"getHealth","tags":["System"],"responses":{"200":{"description":"Service is healthy","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","example":"healthy"},"service":{"type":"string","example":"msi-tree"},"version":{"type":"string","example":"0.0.1"},"timestamp":{"type":"string","format":"date-time"}}}}}}}}},"/api/v1/parse":{"post":{"summary":"Parse MSI File","description":"Upload and parse an MSI database file","operationId":"parseMsi","tags":["MSI Operations"],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"MSI file to parse"}},"required":["file"]}}}},"responses":{"200":{"description":"Successfully parsed MSI file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MSIDatabase"}}}},"400":{"description":"Invalid file format"}}}},"/api/v1/export":{"post":{"summary":"Export Database","description":"Export MSI database to various formats","operationId":"exportDatabase","tags":["MSI Operations"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"database":{"$ref":"#/components/schemas/MSIDatabase"},"format":{"type":"string","enum":["json","xml","sql","csv"]},"table":{"type":"string","description":"Specific table to export (optional)"}},"required":["database","format"]}}}},"responses":{"200":{"description":"Export successful","content":{"application/json":{},"application/xml":{},"text/csv":{},"text/sql":{}}}}}},"/api/webhooks":{"post":{"summary":"Register Webhook","description":"Subscribe to MSI Tree events","operationId":"registerWebhook","tags":["Webhooks"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"events":{"type":"array","items":{"type":"string","enum":["parse.completed","export.completed","validation.completed"]}},"secret":{"type":"string"}},"required":["url","events"]}}}},"responses":{"201":{"description":"Webhook registered"}}},"get":{"summary":"List Webhooks","description":"Get all registered webhooks","operationId":"listWebhooks","tags":["Webhooks"],"responses":{"200":{"description":"List of webhooks"}}}},"/api/mcp":{"post":{"summary":"MCP Endpoint","description":"Model Context Protocol JSON-RPC endpoint","operationId":"mcpEndpoint","tags":["MCP"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"method":{"type":"string"},"params":{"type":"object"},"id":{"type":["string","number"]}},"required":["jsonrpc","method","id"]}}}},"responses":{"200":{"description":"MCP response"}}}}},"components":{"schemas":{"MSIDatabase":{"type":"object","properties":{"fileName":{"type":"string"},"fileSize":{"type":"integer"},"tables":{"type":"array","items":{"$ref":"#/components/schemas/MSITable"}},"summary":{"$ref":"#/components/schemas/MSISummaryInfo"},"validationErrors":{"type":"array","items":{"$ref":"#/components/schemas/ValidationError"}}}},"MSITable":{"type":"object","properties":{"name":{"type":"string"},"columns":{"type":"array","items":{"$ref":"#/components/schemas/MSIColumn"}},"rows":{"type":"array","items":{"$ref":"#/components/schemas/MSIRow"}},"primaryKey":{"type":"array","items":{"type":"string"}},"isSystem":{"type":"boolean"}}},"MSIColumn":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["string","integer","binary","localizable"]},"nullable":{"type":"boolean"},"width":{"type":"integer"},"key":{"type":"boolean"}}},"MSIRow":{"type":"object","properties":{"id":{"type":"string"},"values":{"type":"object"},"modified":{"type":"boolean"},"deleted":{"type":"boolean"},"added":{"type":"boolean"}}},"MSISummaryInfo":{"type":"object","properties":{"title":{"type":"string"},"subject":{"type":"string"},"author":{"type":"string"},"productCode":{"type":"string"},"productVersion":{"type":"string"},"manufacturer":{"type":"string"}}},"ValidationError":{"type":"object","properties":{"table":{"type":"string"},"row":{"type":"integer"},"column":{"type":"string"},"severity":{"type":"string","enum":["error","warning","info"]},"message":{"type":"string"},"code":{"type":"string"}}}}},"tags":[{"name":"System","description":"System health and status endpoints"},{"name":"MSI Operations","description":"MSI file parsing and export operations"},{"name":"Webhooks","description":"Webhook subscription management"},{"name":"MCP","description":"Model Context Protocol integration"}]}