{"openapi":"3.1.0","info":{"title":"Cipherbit IAAS","version":"4.0-safe"},"paths":{"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/config":{"get":{"summary":"Auth Config","operationId":"auth_config_api_auth_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google":{"post":{"summary":"Google Login","operationId":"google_login_api_auth_google_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleCredential"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overview":{"get":{"summary":"Overview","operationId":"overview_api_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/devices":{"post":{"summary":"Create Device","operationId":"create_device_api_devices_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Device"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/telemetry":{"post":{"summary":"Ingest","operationId":"ingest_api_telemetry_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Telemetry"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/collector":{"post":{"summary":"Collect","operationId":"collect_api_collector_post","parameters":[{"name":"x-collector-key","in":"header","required":false,"schema":{"type":"string","default":"","title":"X-Collector-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Telemetry"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/threats/analyze":{"post":{"summary":"Analyze","operationId":"analyze_api_threats_analyze_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Threat"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sast":{"post":{"summary":"Sast","operationId":"sast_api_sast_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Scan"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/reports/assessments.csv":{"get":{"summary":"Export Csv","operationId":"export_csv_api_reports_assessments_csv_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/assistant":{"post":{"summary":"Assistant","operationId":"assistant_api_assistant_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","default":"","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prompt"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Index","operationId":"index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Device":{"properties":{"device_id":{"type":"string","pattern":"^DEV-[0-9]{6}$","title":"Device Id"},"label":{"type":"string","maxLength":80,"minLength":2,"title":"Label"},"hardware_tier":{"type":"string","maxLength":80,"title":"Hardware Tier","default":"Edge_E7_Appliance"},"firmware_lang":{"type":"string","enum":["Rust","Go"],"title":"Firmware Lang","default":"Go"}},"type":"object","required":["device_id","label"],"title":"Device"},"GoogleCredential":{"properties":{"credential":{"type":"string","maxLength":10000,"minLength":100,"title":"Credential"}},"type":"object","required":["credential"],"title":"GoogleCredential"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Prompt":{"properties":{"message":{"type":"string","maxLength":2000,"minLength":1,"title":"Message"}},"type":"object","required":["message"],"title":"Prompt"},"Scan":{"properties":{"source_code":{"type":"string","maxLength":100000,"title":"Source Code"},"high":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"High","default":0},"medium":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Medium","default":0},"low":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Low","default":0}},"type":"object","required":["source_code"],"title":"Scan"},"Telemetry":{"properties":{"device_id":{"type":"string","pattern":"^DEV-[0-9]{6}$","title":"Device Id"},"metrics":{"additionalProperties":{"anyOf":[{"type":"number"},{"type":"integer"},{"type":"string"},{"type":"boolean"}]},"type":"object","title":"Metrics"}},"type":"object","required":["device_id","metrics"],"title":"Telemetry"},"Threat":{"properties":{"device_id":{"type":"string","pattern":"^DEV-[0-9]{6}$","title":"Device Id"},"source":{"type":"string","enum":["Nodeswiss_Extension","E7_Sensor","NOC_Alert"],"title":"Source","default":"NOC_Alert"},"vector":{"type":"string","enum":["NW","EP","ID","CL","AP","DA","PH","GP"],"title":"Vector","default":"NW"},"severity":{"type":"string","enum":["INFO","LOW","MEDIUM","HIGH","CRITICAL"],"title":"Severity","default":"LOW"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["device_id"],"title":"Threat"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}