{"openapi":"3.1.0","info":{"title":"⚡ Lightning Red-Lily Hybrid Autonomous Hegemony v9.0 [PERPETUUM] ⚡","version":"0.1.0"},"paths":{"/api/v1/payments/deposit":{"get":{"summary":"Create Deposit Invoice","operationId":"create_deposit_invoice_api_v1_payments_deposit_get","parameters":[{"name":"bot_id","in":"query","required":true,"schema":{"type":"string","description":"チャージ対象のボットID","title":"Bot Id"},"description":"チャージ対象のボットID"}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/economy/syndicate":{"post":{"summary":"Syndicate Bot External Earnings","description":"ボットが外海でサトシを稼いできた証明書（Zap ID等）を中央銀行に審査提出する窓口。","operationId":"syndicate_bot_external_earnings_api_v1_economy_syndicate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarningsSyndicationReport"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/economy/transfer":{"post":{"summary":"Transfer Bot Liquidity","operationId":"transfer_bot_liquidity_api_v1_economy_transfer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/economy/loan":{"post":{"summary":"Apply Fortress Loan","operationId":"apply_fortress_loan_api_v1_economy_loan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/economy/ledger":{"get":{"summary":"Get Financial Ledger History","operationId":"get_financial_ledger_history_api_v1_economy_ledger_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Get Robots Txt","operationId":"get_robots_txt_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/v1/protected/stream":{"get":{"summary":"Get Protected L402 Stream","operationId":"get_protected_l402_stream_api_v1_protected_stream_get","parameters":[{"name":"payment_hash","in":"query","required":false,"schema":{"type":"string","title":"Payment Hash"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/intelligence/stream":{"get":{"summary":"Get Premium Intelligence","operationId":"get_premium_intelligence_api_v1_intelligence_stream_get","parameters":[{"name":"payment_hash","in":"query","required":false,"schema":{"type":"string","title":"Payment Hash"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"summary":"Get Premium Intelligence","operationId":"get_premium_intelligence_api_v1_intelligence_stream_get","parameters":[{"name":"payment_hash","in":"query","required":false,"schema":{"type":"string","title":"Payment Hash"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/confirm/{payment_hash}":{"get":{"summary":"Confirm Deposit And Credit","operationId":"confirm_deposit_and_credit_api_v1_payments_confirm__payment_hash__get","parameters":[{"name":"payment_hash","in":"path","required":true,"schema":{"type":"string","title":"Payment Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/scan":{"post":{"summary":"Run Scan","operationId":"run_scan_api_v1_scan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/history":{"get":{"summary":"Get Hunt History","operationId":"get_hunt_history_api_v1_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/insurance":{"get":{"summary":"Get Insurance Status","operationId":"get_insurance_status_api_v1_insurance_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}},"/api/v1/insurance/subscribe":{"post":{"summary":"Subscribe Insurance","operationId":"subscribe_insurance_api_v1_insurance_subscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceSubscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/order":{"post":{"summary":"Create Invoice","operationId":"create_invoice_api_v1_order_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/check/{payment_hash}/{target}":{"get":{"summary":"Check Invoice And Run","operationId":"check_invoice_and_run_api_v1_check__payment_hash___target__get","parameters":[{"name":"payment_hash","in":"path","required":true,"schema":{"type":"string","title":"Payment Hash"}},{"name":"target","in":"path","required":true,"schema":{"type":"string","title":"Target"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"EarningsSyndicationReport":{"properties":{"bot_id":{"type":"string","title":"Bot Id"},"earned_sats":{"type":"integer","title":"Earned Sats"},"proof_event_id":{"type":"string","title":"Proof Event Id"},"market_source":{"type":"string","title":"Market Source"}},"type":"object","required":["bot_id","earned_sats","proof_event_id","market_source"],"title":"EarningsSyndicationReport"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InsuranceSubscribeRequest":{"properties":{"subscriber_npub":{"type":"string","title":"Subscriber Npub"},"target_domain":{"type":"string","title":"Target Domain"},"lightning_address":{"type":"string","title":"Lightning Address"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"}},"type":"object","required":["subscriber_npub","target_domain","lightning_address"],"title":"InsuranceSubscribeRequest"},"LoanRequest":{"properties":{"requested_amount":{"type":"integer","title":"Requested Amount"}},"type":"object","required":["requested_amount"],"title":"LoanRequest"},"OrderRequest":{"properties":{"target":{"type":"string","title":"Target"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"}},"type":"object","required":["target"],"title":"OrderRequest"},"ScanRequest":{"properties":{"target":{"type":"string","title":"Target"}},"type":"object","required":["target"],"title":"ScanRequest"},"TransferRequest":{"properties":{"receiver_bot_id":{"type":"string","title":"Receiver Bot Id"},"amount":{"type":"integer","title":"Amount"}},"type":"object","required":["receiver_bot_id","amount"],"title":"TransferRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}