{"openapi":"3.1.0","info":{"title":"Froggit","description":"Froggit is company memory for people and AI, by Frowg Systems. Access it through MCP, REST, and A2A.","version":"2.0.0","contact":{"name":"Froggit Support","url":"https://froggit.ai","email":"support@froggit.ai"},"x-api-lifecycle":{"v1":{"status":"current","paths":["/api/v1/**"],"notes":"Active production version. Sunset is configured per deployment via ``FORGE_API_V1_SUNSET_DATE``; absence of a sunset means v1 is the sole active API."}}},"servers":[{"url":"https://froggit.ai","description":"Production"},{"url":"https://staging.forgecascade.org","description":"Staging"}],"paths":{"/sitemap-index.xml":{"get":{"tags":["SEO"],"summary":"Sitemap Index Xml","description":"Serve a sitemap index instead of letting the SPA fallback answer.","operationId":"sitemap_index_xml_get_sitemap_index_xml","responses":{"200":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]},"head":{"tags":["SEO"],"summary":"Sitemap Index Xml","description":"Serve a sitemap index instead of letting the SPA fallback answer.","operationId":"sitemap_index_xml_sitemap_index_xml_head","responses":{"200":{"description":"Successful Response"}},"security":[{"HTTPBearer":[]}]}},"/sitemap.xml":{"get":{"tags":["SEO"],"summary":"Sitemap Xml","description":"Generate an XML sitemap listing all public Froggit pages.\n\nSupports up to 50,000 URLs per sitemap (Google's limit).","operationId":"sitemap_xml_get_sitemap_xml","responses":{"200":{"description":"Successful Response"}},"security":[]}},"/robots.txt":{"get":{"tags":["SEO"],"summary":"Robots Txt","description":"Serve robots.txt pointing crawlers to the sitemap.\n\nW7-DEEP-48-L1: Adds ``Crawl-delay: 5`` for anonymous bots + dedicated\nGooglebot block with ``Crawl-delay: 1`` so throttling doesn't hurt\nlegitimate indexing throughput. Also adds ``Disallow: /admin/``.","operationId":"robots_txt_get_robots_txt_2","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[]},"head":{"tags":["SEO"],"summary":"Robots Txt","description":"Serve robots.txt pointing crawlers to the sitemap.\n\nW7-DEEP-48-L1: Adds ``Crawl-delay: 5`` for anonymous bots + dedicated\nGooglebot block with ``Crawl-delay: 1`` so throttling doesn't hurt\nlegitimate indexing throughput. Also adds ``Disallow: /admin/``.","operationId":"robots_txt_robots_txt_head","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[]}},"/sitemap-capsules.xml":{"get":{"tags":["GEO"],"summary":"Sitemap Froggits","operationId":"sitemap_capsules_get_sitemap_capsules_xml","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[],"description":"Sitemap Froggits"}},"/sitemap-listings.xml":{"get":{"tags":["GEO"],"summary":"Sitemap Listings","operationId":"sitemap_listings_get_sitemap_listings_xml","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[],"description":"Sitemap Listings"}},"/llms.txt":{"get":{"tags":["GEO"],"summary":"Llms Txt","operationId":"llms_txt_get_llms_txt","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[],"description":"Llms Txt"}},"/llms-full.txt":{"get":{"tags":["GEO"],"summary":"Llms Full Txt","operationId":"llms_full_txt_get_llms_full_txt","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[],"description":"Llms Full Txt"}},"/ai.txt":{"get":{"tags":["GEO"],"summary":"Ai Txt","operationId":"ai_txt_get_ai_txt","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}],"description":"Ai Txt"},"head":{"tags":["GEO"],"summary":"Ai Txt","operationId":"ai_txt_ai_txt_head","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[{"HTTPBearer":[]}],"description":"Ai Txt"}},"/feeds/capsules.xml":{"get":{"tags":["GEO"],"summary":"Rss Feed","operationId":"rss_feed_get_feeds_capsules_xml","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[],"description":"Rss Feed"}},"/feeds/capsules.json":{"get":{"tags":["GEO"],"summary":"Json Feed","operationId":"json_feed_get_feeds_capsules_json","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[],"description":"Json Feed"}},"/public/capsules/{capsule_id}":{"get":{"tags":["GEO"],"summary":"Public Froggit","description":"Serve an eligible public Froggit as a JSON-LD CreativeWork.\n\nThis unauthenticated route applies the same public retrieval and safety\ngates as the canonical Froggit read surface. Only records with public\nvisibility are returned; missing, private, archived, or otherwise\nineligible records all return the same 404 response so existence is not\nleaked after a visibility downgrade.","operationId":"public_capsule_get_public_capsules_capsule_id","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/public/capsules/{capsule_id}/context":{"get":{"tags":["GEO"],"summary":"Public Froggit Context","description":"Return authorized public graph context for a Froggit.","operationId":"public_capsule_context_get_public_capsules_capsule_id_context","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/public/capsules/{capsule_id}/provenance":{"get":{"tags":["GEO"],"summary":"Public Froggit Provenance","description":"Return public provenance anchors for a retrievable Froggit.","operationId":"public_capsule_provenance_get_public_capsules_capsule_id_provenance","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/public/search":{"get":{"tags":["GEO"],"summary":"Public Search","operationId":"public_search_get_public_search","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":500,"default":"Froggit","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"max_results","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"title":"Max Results"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[],"description":"Public Search"}},"/public/categories":{"get":{"tags":["GEO"],"summary":"Public Categories","operationId":"public_categories_get_public_categories","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Categories Public Categories Get"}}}}},"security":[],"description":"Public Categories"}},"/api/v1/public/categories":{"get":{"tags":["GEO"],"summary":"Api Public Categories","description":"Compatibility alias used by the Froggit browse page.","operationId":"api_public_categories_get_api_v1_public_categories","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Api Public Categories Api V1 Public Categories Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/.well-known/ai-plugin.json":{"get":{"tags":["GEO"],"summary":"Ai Plugin Manifest","operationId":"ai_plugin_manifest_get_well_known_ai_plugin_json","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ai Plugin Manifest  Well Known Ai Plugin Json Get"}}}}},"security":[],"description":"Ai Plugin Manifest"}},"/api/v1/agent-payments/x402-demo":{"get":{"tags":["Agent Discovery","Agent Payments"],"summary":"X402 Demo Payment Required","description":"Return an x402-compatible 402 challenge for discovery scanners.","operationId":"x402_demo_payment_required_get_api_v1_agent_payments_x402_demo","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"402":{"description":"Payment Required","headers":{"Payment-Required":{"description":"Base64-encoded x402 payment requirements.","schema":{"type":"string"}},"X-Payment-Required":{"description":"Compatibility payment challenge header.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"accepts":{"type":"array","items":{"type":"object"}}}}}}}},"security":[],"x-payment-info":{"intent":"charge","method":"base_l2_native_eth","amount":"10000000000000","currency":"ETH","description":"Agent-native payment metadata for Froggit commerce operations.","settlementSupported":false,"x402":{"scheme":"exact","network":"eip155:8453","asset":"ETH","amount":"10000000000000","maxAmountRequired":"10000000000000","payTo":"0x3CA3443c28B18332933Ea131aF85D6C9D8B88b94","paymentMethod":"base_l2_native_eth","nativeAsset":true,"resource":"/api/v1/agent-payments/x402-demo","maxTimeoutSeconds":60,"settlementSupported":false},"offers":[{"intent":"charge","method":"base_l2_native_eth","amount":"10000000000000","currency":"ETH","description":"Agent-native payment metadata for Froggit commerce operations.","commercial":{"catalog":"https://froggit.ai/offers.json","offerCatalog":"https://froggit.ai/offers.json","marketplace":"https://froggit.ai/marketplace","aiDiscovery":"https://froggit.ai/ai.txt","directoryListing":"https://froggit.ai/directory-listing.json","paymentOpenAPI":"https://froggit.ai/openapi.payments.json","mcp":"https://froggit.ai/.well-known/mcp.json","rest":"https://froggit.ai/docs/api","a2a":"https://froggit.ai/.well-known/agent-card.json"}}],"commercial":{"catalog":"https://froggit.ai/offers.json","offerCatalog":"https://froggit.ai/offers.json","marketplace":"https://froggit.ai/marketplace","aiDiscovery":"https://froggit.ai/ai.txt","directoryListing":"https://froggit.ai/directory-listing.json","paymentOpenAPI":"https://froggit.ai/openapi.payments.json","mcp":"https://froggit.ai/.well-known/mcp.json","rest":"https://froggit.ai/docs/api","a2a":"https://froggit.ai/.well-known/agent-card.json"}}}},"/.well-known/agent-card.json":{"get":{"tags":["A2A Protocol"],"summary":"Agent Card","description":"Public, unauthenticated. Returns the A2A Agent Card.\n\nR23 audit fix (Fig R17+ persistent — agent card empty): Fig\nkeeps reporting that `name=None, skills=0`. The builder at\n``forge/a2a/agent_card.py:build_agent_card`` always returns\na fully-populated card (name has a default, skills comes from\nthe 7-entry ``FORGE_SKILLS`` constant). Likely causes: (a)\n``a2a_protocol`` feature flag disabled → 404 (Fig may be\nmisinterpreting the 404 body as empty card), (b) response is\nbeing cached by an upstream proxy, (c) Fig is hitting a\ndifferent path. Add diagnostic logging so we can see exactly\nwhat Fig's audit is receiving next round.","operationId":"agent_card_get_well_known_agent_card_json","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/.well-known/agent.json":{"get":{"tags":["A2A Protocol"],"summary":"Agent Card","description":"Public, unauthenticated. Returns the A2A Agent Card.\n\nR23 audit fix (Fig R17+ persistent — agent card empty): Fig\nkeeps reporting that `name=None, skills=0`. The builder at\n``forge/a2a/agent_card.py:build_agent_card`` always returns\na fully-populated card (name has a default, skills comes from\nthe 7-entry ``FORGE_SKILLS`` constant). Likely causes: (a)\n``a2a_protocol`` feature flag disabled → 404 (Fig may be\nmisinterpreting the 404 body as empty card), (b) response is\nbeing cached by an upstream proxy, (c) Fig is hitting a\ndifferent path. Add diagnostic logging so we can see exactly\nwhat Fig's audit is receiving next round.","operationId":"agent_card_get_well_known_agent_json","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/.well-known/a2a-agent-card.json":{"get":{"tags":["A2A Protocol"],"summary":"Agent Card","description":"Public, unauthenticated. Returns the A2A Agent Card.\n\nR23 audit fix (Fig R17+ persistent — agent card empty): Fig\nkeeps reporting that `name=None, skills=0`. The builder at\n``forge/a2a/agent_card.py:build_agent_card`` always returns\na fully-populated card (name has a default, skills comes from\nthe 7-entry ``FORGE_SKILLS`` constant). Likely causes: (a)\n``a2a_protocol`` feature flag disabled → 404 (Fig may be\nmisinterpreting the 404 body as empty card), (b) response is\nbeing cached by an upstream proxy, (c) Fig is hitting a\ndifferent path. Add diagnostic logging so we can see exactly\nwhat Fig's audit is receiving next round.","operationId":"agent_card_get_well_known_a2a_agent_card_json","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/api/v1/a2a/agent-card":{"get":{"tags":["A2A Protocol"],"summary":"Agent Card","description":"Public, unauthenticated. Returns the A2A Agent Card.\n\nR23 audit fix (Fig R17+ persistent — agent card empty): Fig\nkeeps reporting that `name=None, skills=0`. The builder at\n``forge/a2a/agent_card.py:build_agent_card`` always returns\na fully-populated card (name has a default, skills comes from\nthe 7-entry ``FORGE_SKILLS`` constant). Likely causes: (a)\n``a2a_protocol`` feature flag disabled → 404 (Fig may be\nmisinterpreting the 404 body as empty card), (b) response is\nbeing cached by an upstream proxy, (c) Fig is hitting a\ndifferent path. Add diagnostic logging so we can see exactly\nwhat Fig's audit is receiving next round.","operationId":"agent_card_get_api_v1_a2a_agent_card","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/a2a":{"post":{"tags":["A2A Protocol"],"summary":"Handle A2A","description":"JSON-RPC 2.0 dispatcher. Auth required (Bearer token).\n\nFor ``message/stream``, returns ``StreamingResponse`` (SSE).\nFor all other methods, returns ``JSONResponse``.","operationId":"handle_a2a_post_a2a","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]},{"APIKey":[]}]}},"/api/v1/acp/discover":{"get":{"tags":[],"summary":"Discover Offerings","description":"Public discovery endpoint for external agents.\n\nReturns active marketplace listings formatted as ACP-compatible\nofferings so agents can browse, select, and purchase Froggits\nwithout needing user-level authentication.","operationId":"discover_offerings_get_api_v1_acp_discover","parameters":[{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by tag/category","title":"Category"},"description":"Filter by tag/category"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search query to filter offerings by title/description/tags","title":"Q"},"description":"Search query to filter offerings by title/description/tags"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Discover Offerings Api V1 Acp Discover Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/auth/password-strength":{"post":{"tags":["auth"],"summary":"Check Password Strength","description":"Check password strength and get feedback.\n\nThis is a public endpoint (no auth required) so the frontend\ncan check strength during registration.","operationId":"check_password_strength_post_api_v1_auth_password_strength","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordStrengthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordStrengthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","description":"Register a new user account.\n\nNew users currently start at STANDARD trust level after registration.\nA verification email is sent; users must verify before logging in.\nAn existing email returns the same public shape without changing an account.","operationId":"register_post_api_v1_auth_register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[]}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Authenticate and receive JWT tokens.\n\nTokens are set as httpOnly cookies for security.\nReturns a CSRF token that must be included in X-CSRF-Token header\nfor all state-changing requests (POST, PUT, PATCH, DELETE).\n\nMFA policy returns only a pending verification or enrollment challenge.","operationId":"login_post_api_v1_auth_login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LoginResponse"},{"$ref":"#/components/schemas/LoginMFARequiredResponse"},{"$ref":"#/components/schemas/MFAEnrollmentRequiredResponse"}],"title":"Response Login Api V1 Auth Login Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[]}},"/api/v1/auth/service-token":{"post":{"tags":["auth"],"summary":"Get Service Token","description":"Issue a JWT for an authorized service agent.\n\nRequires a pre-shared SERVICE_AUTH_KEY set on the server. Production\nissuance is disabled unless explicitly enabled and subjects/scopes are\nallowlisted server-side.","operationId":"get_service_token_post_api_v1_auth_service_token","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceTokenResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/auth/mfa/enrollment/setup":{"post":{"tags":["auth"],"summary":"Setup Enrollment","operationId":"setup_enrollment_post_api_v1_auth_mfa_enrollment_setup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[],"description":"Setup Enrollment"}},"/api/v1/auth/mfa/enrollment/verify":{"post":{"tags":["auth"],"summary":"Verify Enrollment","operationId":"verify_enrollment_post_api_v1_auth_mfa_enrollment_verify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnrollmentVerifyRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[],"description":"Verify Enrollment"}},"/api/v1/auth/mfa/verify":{"post":{"tags":["auth"],"summary":"Verify Mfa Login","description":"Complete MFA login verification.\n\nSECURITY FIX (Audit 6 - Session 3): Second step of two-step login flow.\nExchanges an MFA pending token + TOTP/backup code for full authentication.\n\nArgs:\n    mfa_token: Temporary token from /login response (5 min expiry)\n    code: TOTP code (6 digits) or backup code (XXXX-XXXX format)\n\nReturns:\n    LoginResponse with full authentication (tokens in cookies)","operationId":"verify_mfa_login_post_api_v1_auth_mfa_verify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFALoginVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh Token","description":"Refresh access token using refresh token from cookie.\n\nReturns new CSRF token. New tokens are set as httpOnly cookies.","operationId":"refresh_token_post_api_v1_auth_refresh","parameters":[{"name":"refresh_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[]}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Logout current user.\n\nClears authentication cookies and blacklists the current token.","operationId":"logout_post_api_v1_auth_logout","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Current User Profile","description":"Get current authenticated user's profile.\n\nR37 audit fix (Fig R34+ \"capsule_count null\"): populate capsule_count\nfrom a cheap count query so the profile surface exposes how many\nFroggits the user owns. Errors in the count are swallowed and the\nresponse falls back to ``from_user`` with capsule_count=None so a\nfailed count never blocks the profile read.\n\nR42 audit fix (Fig R41 \"capsule_count=0 for fresh users\"): pass\n``include_unreviewed=True`` so the count reflects every Froggit\nthe user owns, including ones still in ``pending_review`` /\n``rejected`` / ``contradicts_known_facts`` states. Those are\nstill the user's own data and should show up on their profile\neven before moderation completes. Previously a freshly-registered\nuser who created N Froggits saw ``capsule_count=0`` until each\nFroggit graduated out of pending_review.","operationId":"get_current_user_profile_get_api_v1_auth_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["auth"],"summary":"Update Profile","description":"Update current user's profile.\n\nSECURITY FIX (DEEP-01 F10): Email changes are rejected here and must use\nthe dedicated dual-confirmation flow at ``PATCH /users/me/email``. A\nhijacked session must not be able to silently pivot the account by swapping\nthe email and then initiating a password reset from the new inbox.","operationId":"update_profile_patch_api_v1_auth_me","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/password":{"post":{"tags":["auth"],"summary":"Change Password","description":"Change current user's password.","operationId":"change_password_post_api_v1_auth_me_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/trust":{"get":{"tags":["auth"],"summary":"Get Trust Info","description":"Get current user's trust information.","operationId":"get_trust_info_get_api_v1_auth_me_trust","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Trust Info Api V1 Auth Me Trust Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/trust/review-request":{"post":{"tags":["auth"],"summary":"Request Trust Review","description":"Queue an auditable trust review request for the current user.\n\nThis does not grant trust by itself. It gives SANDBOX/QUARANTINE users\nand careful contributors a visible, non-self-awarding path into review.","operationId":"request_trust_review_post_api_v1_auth_me_trust_review_request","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustReviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Request Trust Review Api V1 Auth Me Trust Review Request Post"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/verify-email":{"post":{"tags":["auth"],"summary":"Verify Email","description":"Verify a user's email address using a verification token.\n\nThe token is received via email after registration.","operationId":"verify_email_post_api_v1_auth_verify_email","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Verify Email Api V1 Auth Verify Email Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/resend-verification":{"post":{"tags":["auth"],"summary":"Resend Verification","description":"Resend verification email.\n\nAlways returns the same generic message regardless of whether\nthe email exists to prevent user enumeration.","operationId":"resend_verification_post_api_v1_auth_resend_verification","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Resend Verification Api V1 Auth Resend Verification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/mfa/setup":{"post":{"tags":["auth"],"summary":"Setup Mfa","description":"Initialize MFA setup for the current user.\n\nReturns the TOTP secret, QR code URI, and backup codes.\nUser must verify setup by calling /me/mfa/verify with a valid code.\n\nSECURITY: Backup codes are shown only once - user must save them.\nLocal password accounts must re-authenticate before secrets are issued.","operationId":"setup_mfa_post_api_v1_auth_me_mfa_setup","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MFASetupRequest"},{"type":"null"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFASetupResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/mfa/verify":{"post":{"tags":["auth"],"summary":"Verify Mfa Setup","description":"Verify MFA setup with a TOTP code from authenticator app.\n\nThis completes the MFA setup process.","operationId":"verify_mfa_setup_post_api_v1_auth_me_mfa_verify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAVerifyRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/mfa/status":{"get":{"tags":["auth"],"summary":"Get Mfa Status","description":"Get MFA status for the current user.","operationId":"get_mfa_status_get_api_v1_auth_me_mfa_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAStatusResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/mfa":{"delete":{"tags":["auth"],"summary":"Disable Mfa","description":"Disable MFA for the current user.\n\nRequires a valid TOTP code or backup code for security.","operationId":"disable_mfa_delete_api_v1_auth_me_mfa","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAVerifyRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/me/mfa/backup-codes":{"post":{"tags":["auth"],"summary":"Regenerate Backup Codes","description":"Regenerate backup codes.\n\nRequires a valid TOTP code. All previous backup codes are invalidated.\n\nSECURITY: New codes are shown only once - user must save them.","operationId":"regenerate_backup_codes_post_api_v1_auth_me_mfa_backup_codes","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response Regenerate Backup Codes Api V1 Auth Me Mfa Backup Codes Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","description":"Request a password reset email.\n\nAlways returns a generic 200 response regardless of whether\nthe email exists. Account lookup and mail delivery run after the response\nto prevent account-dependent work from affecting response timing.","operationId":"forgot_password_post_api_v1_auth_forgot_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Forgot Password Api V1 Auth Forgot Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","description":"Reset password using a valid reset token.\n\nThe token was sent via email from /forgot-password.","operationId":"reset_password_post_api_v1_auth_reset_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Reset Password Api V1 Auth Reset Password Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/deactivate":{"post":{"tags":["auth"],"summary":"Deactivate Account","description":"Deactivate the current user's account.\n\nRequires password confirmation. The account can be reactivated later.","operationId":"deactivate_account_post_api_v1_auth_deactivate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeactivateAccountRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/reactivate":{"post":{"tags":["auth"],"summary":"Reactivate Account","description":"Reactivate a previously deactivated account.\n\nRequires email/password and a recorded self-deactivation. Administrative\ndisables require administrative recovery.","operationId":"reactivate_account_post_api_v1_auth_reactivate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactivateAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Reactivate Account Api V1 Auth Reactivate Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/logout-all":{"post":{"tags":["auth"],"summary":"Logout All Sessions","description":"Logout from all sessions by invalidating all tokens.\n\nForces re-authentication on all devices.","operationId":"logout_all_sessions_post_api_v1_auth_logout_all","responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/google":{"post":{"tags":["auth"],"summary":"Google Auth","description":"Authenticate via Google OAuth.\n\nAccepts a Google ID token from the frontend Sign-In.\nCreates a new user account if one doesn't exist,\nor logs in the existing user linked to this Google account.\n\nSECURITY FIX (DEEP-21 INFO-04): Shares the same IP-based rate limiter as\n/auth/login so an attacker cannot bypass credential-stuffing protection\nsimply by submitting forged or replayed Google ID tokens against this\nendpoint.\n\nSECURITY FIX (DEEP-21 MEDIUM-01): If the Google email matches an existing\npassword account, return HTTP 409 with guidance to sign in with the\npassword and explicitly link Google from account settings — never\nsilently merge identities.","operationId":"google_auth_post_api_v1_auth_google","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GoogleAuthResponse"},{"$ref":"#/components/schemas/LoginMFARequiredResponse"},{"$ref":"#/components/schemas/MFAEnrollmentRequiredResponse"}],"title":"Response Google Auth Api V1 Auth Google Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/google/link/status":{"get":{"tags":["auth"],"summary":"Get Google Link Status","description":"Return whether Google is linked to the authenticated account.\n\nThe internal Google subject identifier is deliberately never returned.","operationId":"get_google_link_status_get_api_v1_auth_google_link_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLinkStatusResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/google/link":{"post":{"tags":["auth"],"summary":"Link Google Account","description":"Link a Google account to the current user.\n\nAllows users who signed up with email/password to add Google Sign-In.","operationId":"link_google_account_post_api_v1_auth_google_link","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAuthRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleLinkResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/google/unlink":{"delete":{"tags":["auth"],"summary":"Unlink Google Account","description":"Unlink Google account from the current user.\n\nUser must have a password set to unlink Google (to prevent lockout).","operationId":"unlink_google_account_delete_api_v1_auth_google_unlink","responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/oauth/clients":{"post":{"tags":["OAuth 2.0"],"summary":"Register Oauth Client","description":"Register an OAuth client: manager flow, or RFC 7591 DCR when bare.\n\nAuthenticated interactive-human calls keep the manager behavior.\nUnauthenticated calls are public dynamic client registration and are\nconstrained to secret-less PKCE clients with a 90-day registration lifetime\n(see ``_register_dcr_client``).\nA presented-but-wrong credential (PAT, agent key, API key) is rejected\nby the interactive chain, never silently downgraded to DCR.","operationId":"register_oauth_client_post_api_v1_oauth_clients","responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OAuthClientResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/oauth/authorize":{"get":{"tags":["OAuth 2.0"],"summary":"Authorize","description":"Validate an authorization request and render explicit user consent.","operationId":"authorize_get_api_v1_oauth_authorize","security":[{"HTTPBearer":[]}],"parameters":[{"name":"response_type","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Response Type"}},{"name":"client_id","in":"query","required":true,"schema":{"type":"string","maxLength":200,"title":"Client Id"}},{"name":"redirect_uri","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Redirect Uri"}},{"name":"scope","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Scope"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"State"}},{"name":"code_challenge","in":"query","required":true,"schema":{"type":"string","minLength":43,"maxLength":128,"title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":true,"schema":{"type":"string","maxLength":20,"title":"Code Challenge Method"}},{"name":"nonce","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Nonce"}},{"name":"tenant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/oauth/authorize/decision":{"post":{"tags":["OAuth 2.0"],"summary":"Authorize Decision","description":"Consume a same-origin, one-time consent challenge and issue a code.","operationId":"authorize_decision_post_api_v1_oauth_authorize_decision","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/oauth/token":{"post":{"tags":["OAuth 2.0"],"summary":"Oauth Token","operationId":"oauth_token_post_api_v1_oauth_token","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Oauth Token"}},"/api/v1/oauth/introspect":{"post":{"tags":["OAuth 2.0"],"summary":"Oauth Introspect","operationId":"oauth_introspect_post_api_v1_oauth_introspect","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Oauth Introspect"}},"/api/v1/oauth/revoke":{"post":{"tags":["OAuth 2.0"],"summary":"Oauth Revoke","operationId":"oauth_revoke_post_api_v1_oauth_revoke","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Oauth Revoke"}},"/api/v1/capsules/factory/preflight":{"get":{"tags":["Factory"],"summary":"Factory Preflight","description":"Return only the aggregate proof required by one approved factory run.","operationId":"capsule_factory_preflight_get_api_v1_capsules_factory_preflight","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleFactoryPreflightResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/capsules/factory/reservations":{"post":{"tags":["Factory"],"summary":"Reserve Factory Capacity","description":"Reserve the exact approved 150-slot run under the entitlement lock.","operationId":"reserve_capsule_factory_capacity_post_api_v1_capsules_factory_reservations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleFactoryReservationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleFactoryReservationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/capsules/factory/finalize":{"post":{"tags":["Factory"],"summary":"Finalize Factory Reservation","description":"Close a contained run under a fresh root terminal grant.","operationId":"finalize_capsule_factory_reservation_post_api_v1_capsules_factory_finalize","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleFactoryFinalizationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleFactoryFinalizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-memory/candidates/{candidate_id}/lifecycle":{"post":{"tags":["Agent Memory Lifecycle"],"summary":"Transition Agent Experience Candidate","description":"Suppress or revoke one private Agent Experience.\n\nForget requests are retained for compatibility but return a manual-review\nconflict before any content or graph mutation.\n\nThis is a monotonic safety/privacy operation. It never restores a memory,\npublishes it, or deletes its provenance root. An owner is locked to their\nauthenticated tenant; administrators must explicitly name both target\nscopes for cross-tenant action.","operationId":"transition_agent_experience_candidate_post_api_v1_agent_memory_candidates_candidate_id_lifecycle","security":[{"HTTPBearer":[]}],"parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"title":"Candidate Id"}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateLifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Transition Agent Experience Candidate Api V1 Agent Memory Candidates  Candidate Id  Lifecycle Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens":{"get":{"tags":["Personal Access Tokens"],"summary":"List all Personal Access Tokens","description":"Get a list of all your Personal Access Tokens. Token values are not included.","operationId":"list_tokens_get_api_v1_tokens","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenListResponse"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Personal Access Tokens"],"summary":"Create a new Personal Access Token","description":"Create a new Personal Access Token for external API access.\n\n    **IMPORTANT**: The raw token is only returned in this response.\n    Save it securely - it cannot be retrieved again!\n\n    Use cases:\n    - Obsidian Forge Sync plugin\n    - CI/CD pipelines\n    - External integrations\n    - Mobile applications","operationId":"create_token_post_api_v1_tokens","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTokenRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PATCreatedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["Personal Access Tokens"],"summary":"Revoke all Personal Access Tokens","description":"Revoke all your tokens. Use with caution - all external integrations will stop working.","operationId":"revoke_all_tokens_delete_api_v1_tokens","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tokens/{token_id}":{"delete":{"tags":["Personal Access Tokens"],"summary":"Revoke a Personal Access Token","description":"Revoke a specific token. This action cannot be undone.","operationId":"revoke_token_delete_api_v1_tokens_token_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tokens/scopes":{"get":{"tags":["Personal Access Tokens"],"summary":"List available token scopes","description":"Get a list of all available scopes that can be assigned to tokens.","operationId":"list_scopes_get_api_v1_tokens_scopes","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Response List Scopes Api V1 Tokens Scopes Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/peers":{"post":{"tags":["Federation"],"summary":"Register Peer","description":"Register a new federated peer.\n\nThis initiates a handshake with the remote peer to exchange public keys\nand establish trust.\n\nRequires admin authentication.","operationId":"register_peer_post_api_v1_federation_peers","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeerRegistrationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeerResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}},"get":{"tags":["Federation"],"summary":"List Peers","description":"List all registered peers, optionally filtered by status.\n\nR70 N3: federation backend init can fail (Neo4j not initialized,\nsync service constructor raises, etc.) — Fig saw this surface as\nHTTP 500 with an unhandled exception. Wrap the service calls and\nreturn 503 Service Unavailable so transient federation backend\nfailures don't leak stack traces.\n\nR91 N2 HIGH: the admin-only invariant across the rest of this\nrouter was missing on list_peers — non-admin callers would hit\nsync_service which sometimes 500'd, masking the authorization\ncheck. Enforce admin explicitly so regular users get a clean 403.\n\nR100 N2 HIGH: the R91 fix added ``require_admin_role()`` inside\nthe handler body — but ``sync_service`` and ``trust_manager`` were\nstill resolved via ``Depends()`` at parameter-binding time, BEFORE\nthe body runs. When their constructors raised (Neo4j not yet up,\na singleton init error, etc.) FastAPI returned 500 before the\nadmin check ever fired. Fix: drop the Depends() wiring for those\ntwo and lazy-load them inside the handler AFTER the admin check.\nNow non-admin → 403, sync-service-down → 503, both deterministic.","operationId":"list_peers_get_api_v1_federation_peers","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PeerStatus"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PeerResponse"},"title":"Response List Peers Api V1 Federation Peers Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/federation/peers/{peer_id}":{"get":{"tags":["Federation"],"summary":"Get Peer","description":"Get details for a specific peer.","operationId":"get_peer_get_api_v1_federation_peers_peer_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeerResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}},"patch":{"tags":["Federation"],"summary":"Update Peer","description":"Update peer settings. Requires admin authentication.","operationId":"update_peer_patch_api_v1_federation_peers_peer_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeerUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeerResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}},"delete":{"tags":["Federation"],"summary":"Remove Peer","description":"Remove a federated peer. Requires admin authentication.","operationId":"remove_peer_delete_api_v1_federation_peers_peer_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Remove Peer Api V1 Federation Peers  Peer Id  Delete"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/federation/peers/{peer_id}/trust":{"post":{"tags":["Federation"],"summary":"Adjust Peer Trust","description":"Manually adjust a peer's trust score. Requires admin authentication.","operationId":"adjust_peer_trust_post_api_v1_federation_peers_peer_id_trust","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TrustAdjustmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Adjust Peer Trust Api V1 Federation Peers  Peer Id  Trust Post"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/peers/{peer_id}/trust/history":{"get":{"tags":["Federation"],"summary":"Get Peer Trust History","description":"Get trust adjustment history for a peer.","operationId":"get_peer_trust_history_get_api_v1_federation_peers_peer_id_trust_history","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Peer Trust History Api V1 Federation Peers  Peer Id  Trust History Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/peers/{peer_id}/trust/permissions":{"get":{"tags":["Federation"],"summary":"Get Peer Permissions","description":"Get sync permissions for a peer based on their trust tier.","operationId":"get_peer_permissions_get_api_v1_federation_peers_peer_id_trust_permissions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Peer Permissions Api V1 Federation Peers  Peer Id  Trust Permissions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/sync/all":{"post":{"tags":["Federation"],"summary":"Trigger Sync All","description":"Trigger sync with all active peers.","operationId":"trigger_sync_all_post_api_v1_federation_sync_all","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Trigger Sync All Api V1 Federation Sync All Post"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/sync/{peer_id}":{"post":{"tags":["Federation"],"summary":"Trigger Sync","description":"Trigger a sync with a specific peer.","operationId":"trigger_sync_post_api_v1_federation_sync_peer_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncTriggerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncStateResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/sync/status":{"get":{"tags":["Federation"],"summary":"Get Sync Status","description":"Get recent sync history.","operationId":"get_sync_status_get_api_v1_federation_sync_status","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Peer Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Sync Status Api V1 Federation Sync Status Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/sync/history/{sync_id}":{"get":{"tags":["Federation"],"summary":"Get Sync Details","description":"Get details for a specific sync operation.","operationId":"get_sync_details_get_api_v1_federation_sync_history_sync_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"sync_id","in":"path","required":true,"schema":{"type":"string","title":"Sync Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncStateResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/stats":{"get":{"tags":["Federation"],"summary":"Get Federation Stats","description":"Get overall federation statistics.\n\nR75 N4: previously crashed with 500 when no peers existed — the\naggregation paths in ``get_federation_stats`` / ``calculate_\nnetwork_trust`` weren't null-safe for an empty peer set. Wrap the\nservice calls so an empty federation returns a zero-valued stats\nobject rather than a stack trace.","operationId":"get_federation_stats_get_api_v1_federation_stats","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FederationStatsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/handshake":{"post":{"tags":["Federation"],"summary":"Handle Handshake","description":"Handle incoming handshake from a peer.\nReturns our handshake response.","operationId":"handle_handshake_post_api_v1_federation_handshake","parameters":[{"name":"x-forge-public-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Forge-Public-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PeerHandshake"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Handle Handshake Api V1 Federation Handshake Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/health":{"get":{"tags":["Federation"],"summary":"Federation Health","description":"Health check endpoint for peers.","operationId":"federation_health_get_api_v1_federation_health","parameters":[{"name":"x-forge-public-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Forge-Public-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Federation Health Api V1 Federation Health Get"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/changes":{"get":{"tags":["Federation"],"summary":"Get Changes","description":"Get changes for a peer to pull.\nRequires signed request with valid peer public key.","operationId":"get_changes_get_api_v1_federation_changes","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Types"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"nonce","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"32-char hex nonce for replay protection (P2B21)","title":"Nonce"},"description":"32-char hex nonce for replay protection (P2B21)"},{"name":"x-forge-signature","in":"header","required":false,"schema":{"type":"string","title":"X-Forge-Signature"}},{"name":"x-forge-public-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Forge-Public-Key"}},{"name":"x-forge-nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Forge-Nonce"}},{"name":"x-forge-timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Forge-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Changes Api V1 Federation Changes Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/incoming/capsules":{"post":{"tags":["Federation"],"summary":"Receive Froggits","description":"Receive Froggits pushed from a peer.\nVerifies signature before processing.\n\nD2-A6 CRITICAL-03: per-request batch size is capped at\n``MAX_CAPSULES_PER_PUSH`` and duplicate ``capsule_id`` values within\na single payload are rejected. Without these guards a rogue peer\ncould either flood the sync pipeline in a single signed request or\nreplay the same ``capsule_id`` repeatedly to overwhelm the\nfederated Froggit index.","operationId":"receive_capsules_post_api_v1_federation_incoming_capsules","parameters":[{"name":"x-forge-public-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Forge-Public-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Receive Capsules Api V1 Federation Incoming Capsules Post"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"429":{"description":"Rate Limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateLimitResponse"}}},"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"RateLimit-Limit":{"$ref":"#/components/headers/RateLimit-Limit"},"RateLimit-Remaining":{"$ref":"#/components/headers/RateLimit-Remaining"},"RateLimit-Reset":{"$ref":"#/components/headers/RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/federation/peers/{peer_id}/substrate":{"get":{"tags":["Federation"],"summary":"Get Peer Substrate","description":"Get substrate classification for a peer.","operationId":"get_peer_substrate_get_api_v1_federation_peers_peer_id_substrate","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Peer Substrate Api V1 Federation Peers  Peer Id  Substrate Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/federation/peers/{peer_id}/verify-dns":{"post":{"tags":["Federation"],"summary":"Verify Peer Dns","description":"Verify DNS TXT record challenge for institutional peer verification.","operationId":"verify_peer_dns_post_api_v1_federation_peers_peer_id_verify_dns","security":[{"HTTPBearer":[]}],"parameters":[{"name":"peer_id","in":"path","required":true,"schema":{"type":"string","title":"Peer Id"}},{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain with _forge-verify TXT record","title":"Domain"},"description":"Domain with _forge-verify TXT record"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Peer Dns Api V1 Federation Peers  Peer Id  Verify Dns Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants/me":{"get":{"tags":["Multi-Tenancy"],"summary":"Get My Tenant","description":"Get the current user's individual tenant.","operationId":"get_my_tenant_get_api_v1_tenants_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get My Tenant Api V1 Tenants Me Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tenants/me/orgs":{"get":{"tags":["Multi-Tenancy"],"summary":"Get My Orgs","description":"Get all organizations the current user belongs to.","operationId":"get_my_orgs_get_api_v1_tenants_me_orgs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Get My Orgs Api V1 Tenants Me Orgs Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/orgs":{"post":{"tags":["Multi-Tenancy"],"summary":"Create Organization","description":"Create a new organization. The creating user becomes the owner.","operationId":"create_organization_post_api_v1_orgs","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrgRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Organization Api V1 Orgs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/orgs/{org_id}/employees":{"post":{"tags":["Multi-Tenancy"],"summary":"Link Employee","description":"Provision an employee as a platform admin with strictly senior org authority.","operationId":"link_employee_post_api_v1_orgs_org_id_employees","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkEmployeeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Link Employee Api V1 Orgs  Org Id  Employees Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/{org_id}/departments":{"post":{"tags":["Multi-Tenancy"],"summary":"Create Department","description":"Create a department. Requires manage_departments permission.","operationId":"create_department_post_api_v1_orgs_org_id_departments","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDepartmentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Department Api V1 Orgs  Org Id  Departments Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsules/{capsule_id}/visibility":{"put":{"tags":["Multi-Tenancy"],"summary":"Set Froggit Visibility","description":"Set visibility. Only the Froggit owner can change this.","operationId":"set_capsule_visibility_put_api_v1_capsules_capsule_id_visibility","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetVisibilityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Set Capsule Visibility Api V1 Capsules  Capsule Id  Visibility Put"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsules/accessible":{"get":{"tags":["Multi-Tenancy"],"summary":"Get Accessible Froggits","description":"Get all Froggits the current user can access.","operationId":"get_accessible_capsules_get_api_v1_capsules_accessible","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Accessible Capsules Api V1 Capsules Accessible Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/{org_id}/retention-agreements":{"post":{"tags":["Multi-Tenancy"],"summary":"Create Retention Agreement","description":"Create retention agreement. Requires manage_retention permission.","operationId":"create_retention_agreement_post_api_v1_orgs_org_id_retention_agreements","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateRetentionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Retention Agreement Api V1 Orgs  Org Id  Retention Agreements Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orgs/{org_id}/departures":{"post":{"tags":["Multi-Tenancy"],"summary":"Initiate Departure","description":"Initiate departure. Requires approve_departures permission.","operationId":"initiate_departure_post_api_v1_orgs_org_id_departures","security":[{"HTTPBearer":[]}],"parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"employee_user_id","in":"query","required":true,"schema":{"type":"string","title":"Employee User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Initiate Departure Api V1 Orgs  Org Id  Departures Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/departures/{event_id}/approve":{"post":{"tags":["Multi-Tenancy"],"summary":"Approve Departure","description":"Approve a departure event (employee or org side).","operationId":"approve_departure_post_api_v1_departures_event_id_approve","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveDepartureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Approve Departure Api V1 Departures  Event Id  Approve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/chat/health":{"get":{"tags":["chat"],"summary":"Chat service health check","description":"Check chat service health.","operationId":"chat_health_get_api_v1_chat_health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"}]},"type":"object","title":"Response Chat Health Api V1 Chat Health Get"}}}}},"security":[]}},"/api/v1/capsules/factory/create":{"post":{"tags":["Factory"],"summary":"Create one root-authorized factory draft","description":"Apply the ordinary create pipeline behind the bounded factory grant.","operationId":"create_factory_capsule_post_api_v1_capsules_factory_create","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__capsules__CreateCapsuleRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/capsules":{"post":{"tags":["Froggits"],"summary":"Create Froggit","description":"Create a new Froggit.\n\nThe Froggit will be processed through the 7-phase cascade pipeline\nfor validation, analysis, and governance checks.\n\nEmbeddings are generated at creation time for semantic search and\nknowledge enrichment links are created in the background.\n\nSANDBOX-originated submissions are accepted as contribution drafts:\nthey are forced private, marked pending_review, and remain ineligible\nfor public retrieval until review accepts their provenance/safety.","operationId":"create_capsule_post_api_v1_capsules","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__capsules__CreateCapsuleRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}},"get":{"tags":["Froggits"],"summary":"List Froggits","description":"List Froggits with optional filtering.\n\nR34: added ``domain`` and ``source_url`` filters — both were silently\ndropped before (Fig R17+ persistent \"filters ignored\" finding).","operationId":"list_capsules_get_api_v1_capsules","security":[{"HTTPBearer":[]}],"parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CapsuleType"},{"type":"null"}],"title":"Type"}},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Id"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":3,"maxLength":200},{"type":"null"}],"title":"Search"}},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"}},{"name":"source_url","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","pattern":"^(own|granted|all)$","default":"all","title":"Scope"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","pattern":"^(created_at|updated_at|title|trust_level)$","default":"created_at","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","pattern":"^(asc|desc)$","default":"desc","title":"Sort Order"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Page"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Size"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skip"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/capsules/jobs/{job_id}":{"get":{"tags":["Froggits"],"summary":"Get Froggit Job Status","description":"Return durable Temporal Froggit job status for the authenticated owner.","operationId":"get_capsule_job_status_get_api_v1_capsules_jobs_job_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleJobStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsules/search":{"post":{"tags":["Froggits"],"summary":"Search Froggits","description":"Semantic search across Froggits.","operationId":"search_capsules_post_api_v1_capsules_search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/capsules/review-queue":{"get":{"tags":["Froggits"],"summary":"Get Review Queue","description":"Get Froggits pending peer review.\n\nReturns Froggits with verification_status='pending_review', optionally\nfiltered by sensitive domain. Requires TRUSTED trust level (80+).","operationId":"get_review_queue_get_api_v1_capsules_review_queue","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by sensitive domain (medical, financial)","title":"Domain"},"description":"Filter by sensitive domain (medical, financial)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Review Queue Api V1 Capsules Review Queue Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsules/review/{capsule_id}":{"post":{"tags":["Froggits"],"summary":"Review Froggit","description":"Review a pending Froggit. Approve, explicitly publish, reject, send back, or flag it.\n\n- **approve**: Sets verification_status to 'human_reviewed'\n- **publish**: Reruns every public gate for an Agent Experience candidate\n- **reject**: Archives the Froggit and sets status to 'rejected'\n- **sendback**: Sets verification_status to 'needs_revision' without archiving\n- **flag**: Sets status to 'contradicts_known_facts'\n\nRequires TRUSTED trust level (80+).","operationId":"review_capsule_post_api_v1_capsules_review_capsule_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"action","in":"query","required":true,"schema":{"type":"string","description":"Review action: approve, publish, reject, sendback, or flag","title":"Action"},"description":"Review action: approve, publish, reject, sendback, or flag"},{"name":"reason","in":"query","required":false,"schema":{"type":"string","description":"Attributable reason for publication, rejection, sendback, or flag","default":"","title":"Reason"},"description":"Attributable reason for publication, rejection, sendback, or flag"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Review Capsule Api V1 Capsules Review  Capsule Id  Post"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConflictResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsules/{capsule_id}/versions":{"get":{"tags":["Froggits"],"summary":"Get Froggit Versions","description":"Return the derivation/version history of a Froggit.\n\nWalks the ``DERIVED_FROM`` lineage chain via the repository's\n``get_ancestors`` method and returns each ancestor + the\nrequested Froggit itself, ordered oldest-first. Each entry is\na thin summary (id, title, version, created_at, owner_id) so\nclients can render a version timeline without fetching every\nFroggit body.","operationId":"get_capsule_versions_get_api_v1_capsules_capsule_id_versions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"max_depth","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Max ancestor depth","default":20,"title":"Max Depth"},"description":"Max ancestor depth"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Capsule Versions Api V1 Capsules  Capsule Id  Versions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/capsules/{capsule_id}/similar":{"get":{"tags":["Froggits"],"summary":"Get Similar Froggits","description":"Get Froggits similar to the given one using embeddings when available.\n\nThe route reads the source embedding and uses the existing\n``capsule_embeddings`` Neo4j vector index through\n``find_similar_by_embedding``. If the source has no embedding or the\nvector lookup is unavailable, it returns an empty result rather than\ninventing fallback similarity scores. The source Froggit's normal\nprivate/archive visibility gates still apply before any vector lookup.","operationId":"get_similar_capsules_get_api_v1_capsules_capsule_id_similar","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Similar Capsules Api V1 Capsules  Capsule Id  Similar Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/capsules/{capsule_id}/provenance/proof":{"get":{"tags":["Froggits"],"summary":"Get Public Froggit Provenance Proof","description":"Return a signed, externally verifiable proof for a public Froggit.","operationId":"get_public_capsule_provenance_proof_get_api_v1_capsules_capsule_id_provenance_proof","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleProvenanceProofResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/capsules/{capsule_id}":{"get":{"tags":["Froggits"],"summary":"Get Froggit","description":"Get a specific Froggit by ID.\n\nWhen verify=True, also performs integrity verification and returns\nan additional integrity_status field.","operationId":"get_capsule_get_api_v1_capsules_capsule_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"verify","in":"query","required":false,"schema":{"type":"boolean","description":"Verify Froggit integrity","default":false,"title":"Verify"},"description":"Verify Froggit integrity"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Capsule Api V1 Capsules  Capsule Id  Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}},"patch":{"tags":["Froggits"],"summary":"Update Froggit","description":"Partially update a Froggit.\n\nPATCH is the only supported update method for Froggits. Only fields\npresent in the request body are modified; omitted fields remain unchanged.\nPUT is intentionally NOT supported and will return 405 Method Not Allowed,\nsince this endpoint does not perform a full-resource replace as REST PUT\nsemantics require.\n\nOnly the owner can update their Froggits.\nAdmins can update any Froggit.","operationId":"update_capsule_patch_api_v1_capsules_capsule_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateCapsuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}},"delete":{"tags":["Froggits"],"summary":"Delete Froggit","description":"Delete a Froggit.\n\nOnly the owner can delete their own Froggits. Admins can delete any\nFroggit. The route ALWAYS verifies ownership inside the handler;\nthe trust requirement is the floor for being able to attempt the\noperation, not authorization to delete arbitrary content.\n\nRound 16 audit C-4: lowered the trust requirement from TRUSTED to\nSTANDARD because the previous setting created a moderation dead-end —\nstandard users could create Froggits but had no path to remove their\nown. There is no documented way for a standard user to reach trusted\nstatus, so the route was effectively read-only-after-create for the\noverwhelming majority of accounts.\n\nRound 15 audit N-6: returns ``200 OK`` with a confirmation body\n``{deleted, id, deleted_at}`` instead of ``204 No Content``, so\ncallers can verify the deletion happened and when.","operationId":"delete_capsule_delete_api_v1_capsules_capsule_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapsuleDeleteResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/capsules/public/intake":{"get":{"tags":["Froggits"],"summary":"Public Froggit Intake","description":"Public metadata-only feed of newly protected Froggit entries.\n\nThis endpoint intentionally does not expose Froggit content and does not make\nprivate or review-only Froggits answer-eligible. It gives human reviewers a\nvisible signal that Forge is still creating, gating, and linking new Froggit\nentries while the stricter public browse/search surfaces continue to show\nonly source-backed evidence.","operationId":"public_capsule_intake_get_api_v1_capsules_public_intake","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Capsule Intake Api V1 Capsules Public Intake Get"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/capsules/public/status":{"get":{"tags":["Froggits"],"summary":"Public Froggit Status","description":"Public summary for the source-backed Froggit surface.\n\nThis endpoint intentionally reports only aggregate corpus health. It lets\npublic pages show live freshness, source coverage, and eligibility counts\nwithout returning protected Froggit content or review-only rows.","operationId":"public_capsule_status_get_api_v1_capsules_public_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Public Capsule Status Api V1 Capsules Public Status Get"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[]}},"/api/v1/capsules/public/browse":{"get":{"tags":["Froggits"],"summary":"Public Browse Froggits","description":"Public Froggit browse -- shows metadata without full content.\n\nNo authentication required.  Returns a paginated list of non-archived\nFroggits with title, type, tags, trust level, verification status, owner,\ncreation date, a list preview, and explicit full-content length metadata.","operationId":"public_browse_capsules_get_api_v1_capsules_public_browse","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Q"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Tags"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Type"}},{"name":"min_trust","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":0,"default":60,"title":"Min Trust"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"default":0,"title":"Offset"}},{"name":"include_exploratory","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Exploratory"}},{"name":"dedupe_topics","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Dedupe Topics"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Public Browse Capsules Api V1 Capsules Public Browse Get"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/capsule-grants":{"post":{"tags":["Froggit Sharing"],"summary":"Create Grant","operationId":"create_grant_post_api_v1_capsule_grants","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Grant Api V1 Capsule Grants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"Create Grant"},"get":{"tags":["Froggit Sharing"],"summary":"List Grants","operationId":"list_grants_get_api_v1_capsule_grants","security":[{"HTTPBearer":[]}],"parameters":[{"name":"direction","in":"query","required":false,"schema":{"enum":["outbound","inbound"],"type":"string","default":"outbound","title":"Direction"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Grants Api V1 Capsule Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"List Grants"}},"/api/v1/capsule-grants/batch":{"post":{"tags":["Froggit Sharing"],"summary":"Create Grant Batch","operationId":"create_grant_batch_post_api_v1_capsule_grants_batch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantBatchCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Grant Batch Api V1 Capsule Grants Batch Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Create Grant Batch"}},"/api/v1/capsule-grants/settings":{"patch":{"tags":["Froggit Sharing"],"summary":"Update Inbound Settings","operationId":"update_inbound_settings_patch_api_v1_capsule_grants_settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundGrantSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Update Inbound Settings Api V1 Capsule Grants Settings Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Update Inbound Settings"}},"/api/v1/capsule-grants/events":{"get":{"tags":["Froggit Sharing"],"summary":"List Grant Events","operationId":"list_grant_events_get_api_v1_capsule_grants_events","security":[{"HTTPBearer":[]}],"parameters":[{"name":"direction","in":"query","required":false,"schema":{"enum":["outbound","inbound"],"type":"string","default":"outbound","title":"Direction"}},{"name":"grant_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grant Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Grant Events Api V1 Capsule Grants Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"List Grant Events"}},"/api/v1/capsule-grants/{grant_id}":{"get":{"tags":["Froggit Sharing"],"summary":"Inspect Grant","operationId":"inspect_grant_get_api_v1_capsule_grants_grant_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["outbound","inbound"],"type":"string","default":"outbound","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Inspect Grant Api V1 Capsule Grants  Grant Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"Inspect Grant"},"delete":{"tags":["Froggit Sharing"],"summary":"Revoke Grant","operationId":"revoke_grant_delete_api_v1_capsule_grants_grant_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Revoke Grant Api V1 Capsule Grants  Grant Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"Revoke Grant"}},"/api/v1/capsules/{capsule_id}/grants":{"post":{"tags":["Froggit Sharing"],"summary":"Create Froggit Grant","operationId":"create_capsule_grant_post_api_v1_capsules_capsule_id_grants","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerCapsuleGrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Capsule Grant Api V1 Capsules  Capsule Id  Grants Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"Create Froggit Grant"},"get":{"tags":["Froggit Sharing"],"summary":"List Froggit Grants","operationId":"list_capsule_grants_get_api_v1_capsules_capsule_id_grants","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["outbound","inbound"],"type":"string","default":"outbound","title":"Direction"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Capsule Grants Api V1 Capsules  Capsule Id  Grants Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"description":"List Froggit Grants"}},"/api/v1/claims/search":{"post":{"tags":["claims"],"summary":"Search Claims","operationId":"search_claims_post_api_v1_claims_search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Search Claims Api V1 Claims Search Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Search Claims"}},"/api/v1/demo/knowledge-graph":{"get":{"tags":["Knowledge Graph Demo"],"summary":"Get Knowledge Graph Demo","description":"Return the public general knowledge graph corpus.","operationId":"get_knowledge_graph_demo_get_api_v1_demo_knowledge_graph","parameters":[{"name":"audience","in":"query","required":false,"schema":{"enum":["all","explorer","student","professional","researcher"],"type":"string","default":"all","title":"Audience"}},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Domain"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeGraphDemoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/demo/knowledge-graph/copilot":{"post":{"tags":["Knowledge Graph Demo"],"summary":"Ask Knowledge Graph Demo Copilot","description":"Answer a public question using only the general knowledge graph corpus.","operationId":"ask_knowledge_graph_demo_copilot_post_api_v1_demo_knowledge_graph_copilot","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeGraphDemoCopilotRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeGraphDemoCopilotResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/search":{"get":{"tags":["Search"],"summary":"Search Froggits","description":"Search Froggits.\n\nSupports multiple search modes:\n- **semantic**: Vector similarity search using embeddings\n- **keyword**: Full-text keyword matching\n- **hybrid**: Combined semantic + keyword (default)\n- **exact**: Exact content match\n- **advanced** / **graphrag**: Combined vector + graph search via HybridRetriever\n\n**Note**: `limit` is capped at 50. Requests with `limit > 50` will receive\na 422 validation error.","operationId":"search_capsules_get_api_v1_search","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":500,"description":"Search query","title":"Q"},"description":"Search query"},{"name":"search_type","in":"query","required":false,"schema":{"type":"string","description":"Search mode: semantic, keyword, hybrid, exact, advanced, graphrag","default":"hybrid","title":"Search Type"},"description":"Search mode: semantic, keyword, hybrid, exact, advanced, graphrag"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Max results (capped at 50)","default":20,"title":"Limit"},"description":"Max results (capped at 50)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":0,"description":"Result offset (max 1000)","default":0,"title":"Offset"},"description":"Result offset (max 1000)"},{"name":"capsule_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter by Froggit type","title":"Capsule Type"},"description":"Filter by Froggit type"},{"name":"owner_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter by owner","title":"Owner Id"},"description":"Filter by owner"},{"name":"min_trust","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"description":"Explicit trust floor for all results; omitted uses 40 with read-scope exemptions","title":"Min Trust"},"description":"Explicit trust floor for all results; omitted uses 40 with read-scope exemptions"},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Comma-separated tag filter","title":"Tags"},"description":"Comma-separated tag filter"},{"name":"domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Comma-separated knowledge-domain filter (matches persisted Froggit domains). Added R17 — previously this query param was silently ignored.","title":"Domain"},"description":"Comma-separated knowledge-domain filter (matches persisted Froggit domains). Added R17 — previously this query param was silently ignored."},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","description":"Compatibility flag; archived Froggits remain excluded from read-scoped retrieval.","default":false,"title":"Include Archived"},"description":"Compatibility flag; archived Froggits remain excluded from read-scoped retrieval."},{"name":"include_disputed","in":"query","required":false,"schema":{"type":"boolean","description":"Reviewer compatibility flag; hard Froggit retrieval exclusions remain enforced.","default":false,"title":"Include Disputed"},"description":"Reviewer compatibility flag; hard Froggit retrieval exclusions remain enforced."},{"name":"include_superseded","in":"query","required":false,"schema":{"type":"boolean","description":"Include superseded Froggits, badged.","default":false,"title":"Include Superseded"},"description":"Include superseded Froggits, badged."},{"name":"granularity","in":"query","required":false,"schema":{"type":"string","pattern":"^(capsule|claim)$","description":"Search granularity wire value: ``capsule`` (Froggit) or claim.","default":"capsule","title":"Granularity"},"description":"Search granularity wire value: ``capsule`` (Froggit) or claim."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Capsules Api V1 Search Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/graph/explore":{"get":{"tags":["graph"],"summary":"Explore the Froggit Graph","description":"Get graph data for interactive visualization.\n\nReturns nodes with their PageRank scores, community assignments,\nand edges with relationship types.\n\nPublic-wedge deployments expose Froggit graph data only. Internal profiles\nmay enable additional research overlays.","operationId":"explore_graph_get_api_v1_graph_explore","security":[{"HTTPBearer":[]}],"parameters":[{"name":"center_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Backward-compatible centered exploration alias for /node/{id}/neighbors","title":"Center Id"},"description":"Backward-compatible centered exploration alias for /node/{id}/neighbors"},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","maximum":3,"minimum":1,"description":"Traversal depth when center_id is provided","default":1,"title":"Depth"},"description":"Traversal depth when center_id is provided"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by node type","title":"Type"},"description":"Filter by node type"},{"name":"community","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Filter by community ID","title":"Community"},"description":"Filter by community ID"},{"name":"min_trust","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":0,"description":"Minimum trust level","default":0,"title":"Min Trust"},"description":"Minimum trust level"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":10,"description":"Max nodes to return","default":100,"title":"Limit"},"description":"Max nodes to return"},{"name":"source","in":"query","required":false,"schema":{"type":"string","description":"Data source. Public-wedge deployments expose Froggit graph data only.","default":"capsule","title":"Source"},"description":"Data source. Public-wedge deployments expose Froggit graph data only."},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":2,"maxLength":200},{"type":"null"}],"description":"Search query","title":"Search"},"description":"Search query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphExplorerResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/capsules/{capsule_id}":{"get":{"tags":["graph"],"summary":"Get Graph Froggit","description":"Look up a single Froggit node from the graph store.\n\nRound 15 audit (H-3): clients (A2A, dashboards, the audit harness) were\nasking ``/api/v1/graph/capsules/{id}`` and getting a 404 from FastAPI's\nrouter because no such route was registered — they had to fall back to\n``/node/{id}/neighbors`` which conflated \"node missing\" with \"no\nneighbors\". Adding the explicit endpoint gives clients a clean way to\nanswer \"is this Froggit indexed in the graph?\" and unblocks A2A\n``query_graph`` for newly created Froggits.","operationId":"get_graph_capsule_get_api_v1_graph_capsules_capsule_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Graph Capsule Api V1 Graph Capsules  Capsule Id  Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/metrics":{"get":{"tags":["graph"],"summary":"Get Graph Metrics","description":"Get overall graph statistics and metrics.","operationId":"get_graph_metrics_get_api_v1_graph_metrics","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GraphMetricsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/graph/query":{"post":{"tags":["graph"],"summary":"Query Knowledge","description":"Query the knowledge graph using natural language.\n\nExamples:\n- \"What influenced the rate limiting decision?\"\n- \"Who contributed most to security knowledge?\"\n- \"Find contradictions in authentication docs\"","operationId":"query_knowledge_post_api_v1_graph_query","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeQueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KnowledgeQueryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/graph/query/suggestions":{"get":{"tags":["graph"],"summary":"Get Query Suggestions","description":"Get example queries to help users understand capabilities.","operationId":"get_query_suggestions_get_api_v1_graph_query_suggestions","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"type":"object","title":"Response Get Query Suggestions Api V1 Graph Query Suggestions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/graph/query/schema":{"get":{"tags":["graph"],"summary":"Get Queryable Schema","description":"Get information about the queryable graph schema.","operationId":"get_queryable_schema_get_api_v1_graph_query_schema","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Queryable Schema Api V1 Graph Query Schema Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/graph/capsules/{capsule_id}/versions":{"get":{"tags":["graph"],"summary":"Get Froggit Versions","description":"Get version history for a Froggit.\n\nDEEP-80 H2 fix: upper bound tightened from 200 to 50. A living\nFroggit that refreshes hourly for 8+ days accumulates 200+ versions,\nand requesting ``limit=200`` returned up to 200 full version\nsnapshots (~5 KB each, ≈1 MB response). The new cap keeps the worst-\ncase response body bounded at ~250 KB without breaking the default\n50-item page that existing clients already request.","operationId":"get_capsule_versions_get_api_v1_graph_capsules_capsule_id_versions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/VersionResponse"},"title":"Response Get Capsule Versions Api V1 Graph Capsules  Capsule Id  Versions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/capsules/{capsule_id}/versions/diff":{"get":{"tags":["graph"],"summary":"Diff Froggit Versions","description":"Compare two versions of a Froggit.\n\nNOTE: This route MUST be defined before /versions/{version_id} to prevent\n\"diff\" from being matched as a version_id parameter.\n\nDEEP-80 M4 fix: apply the same visibility / archive gate to the diff\nendpoint that the canonical Froggit read endpoints enforce. If the\nFroggit is private and the caller is not the owner, or if it is\narchived and the caller is not an admin, return 404 — so historical\ncontent (which may have been more permissive at earlier versions)\ncannot be retrieved after a visibility downgrade.","operationId":"diff_capsule_versions_get_api_v1_graph_capsules_capsule_id_versions_diff","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"version_a","in":"query","required":true,"schema":{"type":"string","description":"First version ID","title":"Version A"},"description":"First version ID"},{"name":"version_b","in":"query","required":true,"schema":{"type":"string","description":"Second version ID","title":"Version B"},"description":"Second version ID"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Diff Capsule Versions Api V1 Graph Capsules  Capsule Id  Versions Diff Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/capsules/{capsule_id}/versions/{version_id}":{"get":{"tags":["graph"],"summary":"Get Froggit Version","description":"Get a specific version with full content.","operationId":"get_capsule_version_get_api_v1_graph_capsules_capsule_id_versions_version_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"string","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/capsules/{capsule_id}/at-time":{"get":{"tags":["graph"],"summary":"Get Froggit At Time","description":"Get Froggit state at a specific point in time.","operationId":"get_capsule_at_time_get_api_v1_graph_capsules_capsule_id_at_time","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"timestamp","in":"query","required":true,"schema":{"type":"string","description":"ISO timestamp","title":"Timestamp"},"description":"ISO timestamp"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Capsule At Time Api V1 Graph Capsules  Capsule Id  At Time Get"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/snapshots/graph/latest":{"get":{"tags":["graph"],"summary":"Get Latest Graph Snapshot","description":"Get the most recent graph snapshot.","operationId":"get_latest_graph_snapshot_get_api_v1_graph_snapshots_graph_latest","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Latest Graph Snapshot Api V1 Graph Snapshots Graph Latest Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/graph/capsules/{capsule_id}/edges":{"get":{"tags":["graph"],"summary":"Get Froggit Edges","description":"Get semantic edges for a Froggit.","operationId":"get_capsule_edges_get_api_v1_graph_capsules_capsule_id_edges","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","description":"in, out, or both (for API compatibility, filtering done post-query)","default":"both","title":"Direction"},"description":"in, out, or both (for API compatibility, filtering done post-query)"},{"name":"relationship_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by type","title":"Relationship Type"},"description":"Filter by type"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SemanticEdgeResponse"},"title":"Response Get Capsule Edges Api V1 Graph Capsules  Capsule Id  Edges Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/capsules/{capsule_id}/neighbors":{"get":{"tags":["graph"],"summary":"Get Froggit Neighbors","description":"Get semantically connected neighbors of a Froggit.","operationId":"get_semantic_neighbors_get_api_v1_graph_capsules_capsule_id_neighbors","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"relationship_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relationship Type"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","default":"both","title":"Direction"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SemanticNeighborsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/analytics/pagerank":{"get":{"tags":["graph"],"summary":"Gds Pagerank Get","description":"GET shim for the PageRank endpoint (Round 15 audit N-7).\n\nThe original endpoint is POST-only and accepts a typed request body\nwith ``node_labels`` / ``relationship_types``. The audit harness was\nhitting GET and getting a 405. Most consumers want the default Froggit\nprojection (Neo4j ``Capsule`` nodes plus ``DERIVED_FROM``/``REFERENCES``\nedges), so this GET shim accepts only the simple knobs and delegates to\nthe same backend.","operationId":"gds_pagerank_get_get_api_v1_graph_analytics_pagerank","security":[{"HTTPBearer":[]}],"parameters":[{"name":"top_n","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Top N"}},{"name":"damping_factor","in":"query","required":false,"schema":{"type":"number","maximum":1.0,"minimum":0.0,"default":0.85,"title":"Damping Factor"}},{"name":"max_iterations","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Max Iterations"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Gds Pagerank Get Api V1 Graph Analytics Pagerank Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/analytics/centrality/{node_id}":{"get":{"tags":["graph"],"summary":"Gds Node Centrality","description":"Get betweenness centrality for a specific node using GDS.\n\nRequires Neo4j GDS plugin and GDS_ENABLED=true env var.","operationId":"gds_node_centrality_get_api_v1_graph_analytics_centrality_node_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","title":"Node Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Gds Node Centrality Api V1 Graph Analytics Centrality  Node Id  Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/analysis/contradiction-clusters":{"get":{"tags":["graph"],"summary":"Get Contradiction Clusters","description":"Find clusters of contradicting Froggits.\n\nUseful for identifying areas of knowledge conflict.","operationId":"get_contradiction_clusters_get_api_v1_graph_analysis_contradiction_clusters","security":[{"HTTPBearer":[]}],"parameters":[{"name":"min_size","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":2,"default":2,"title":"Min Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Contradiction Clusters Api V1 Graph Analysis Contradiction Clusters Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/contradictions":{"get":{"tags":["graph"],"summary":"List Contradictions Index","description":"Index / discovery endpoint for contradiction APIs.\n\nR89 (R88 N5): Fig's R88 hit ``GET /api/v1/graph/contradictions`` and\ngot 404 — the router only defined per-Froggit and ``/unresolved``\nsubroutes. Adding a bare index endpoint that documents the available\npaths so API explorers don't dead-end at a 404.","operationId":"list_contradictions_index_get_api_v1_graph_contradictions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"claimid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Claimid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Contradictions Index Api V1 Graph Contradictions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/capsules/{capsule_id}/contradictions":{"get":{"tags":["graph"],"summary":"Get Froggit Contradictions","description":"Find contradictions involving a Froggit.","operationId":"get_contradictions_get_api_v1_graph_capsules_capsule_id_contradictions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContradictionResponse"},"title":"Response Get Contradictions Api V1 Graph Capsules  Capsule Id  Contradictions Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/contradictions/unresolved":{"get":{"tags":["graph"],"summary":"Get Unresolved Contradictions","description":"Get all unresolved contradictions across the knowledge base.\n\nReturns contradictions ordered by severity.","operationId":"get_unresolved_contradictions_get_api_v1_graph_contradictions_unresolved","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Unresolved Contradictions Api V1 Graph Contradictions Unresolved Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/graph/contradictions/stats":{"get":{"tags":["graph"],"summary":"Get Contradiction Stats","description":"Get statistics about contradictions in the knowledge base.","operationId":"get_contradiction_stats_get_api_v1_graph_contradictions_stats","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Contradiction Stats Api V1 Graph Contradictions Stats Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/research-insights/sessions":{"post":{"tags":["research-insights"],"summary":"Create a new research insights session","description":"Create a new biomedical literature and knowledge-graph exploration session. Forge Research Insights is not a medical device, is not intended for clinical decision-making, and is for biomedical research exploration only.","operationId":"create_session_post_api_v1_research_insights_sessions","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__CreateSessionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/research-insights/sessions/{session_id}/start":{"post":{"tags":["research-insights"],"summary":"Start research exploration with initial data","description":"Start biomedical knowledge-graph exploration with phenotype, variant, and literature context. Forge Research Insights is not a medical device, is not intended for clinical decision-making, and is for biomedical research exploration only.","operationId":"start_research_insights_session","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartResearchInsightRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}":{"get":{"tags":["research-insights"],"summary":"Get session status","description":"Get the current status of a research exploration session.","operationId":"get_session_get_api_v1_research_insights_sessions_session_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["research-insights"],"summary":"Delete session","description":"Delete a research exploration session.","operationId":"delete_session_delete_api_v1_research_insights_sessions_session_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Session Api V1 Research Insights Sessions  Session Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}/answer":{"post":{"tags":["research-insights"],"summary":"Answer follow-up questions","description":"Submit answers to pending follow-up questions.","operationId":"answer_questions_post_api_v1_research_insights_sessions_session_id_answer","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerQuestionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}/skip":{"post":{"tags":["research-insights"],"summary":"Skip pending questions","description":"Skip pending questions and finalize with current evidence.","operationId":"skip_questions_post_api_v1_research_insights_sessions_session_id_skip","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}/pause":{"post":{"tags":["research-insights"],"summary":"Pause session","description":"Pause a running session.","operationId":"pause_session_post_api_v1_research_insights_sessions_session_id_pause","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}/resume":{"post":{"tags":["research-insights"],"summary":"Resume session","description":"Resume a paused session.","operationId":"resume_session_post_api_v1_research_insights_sessions_session_id_resume","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__research_insights__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}/result":{"get":{"tags":["research-insights"],"summary":"Get final research insight result","description":"Get the final research insight result for a completed session.","operationId":"get_research_insights_result","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResearchInsightResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/sessions/{session_id}/stream":{"get":{"tags":["research-insights"],"summary":"Stream session events","description":"Stream real-time research exploration events using SSE.","operationId":"stream_events_get_api_v1_research_insights_sessions_session_id_stream","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/multi-agent/analyze":{"post":{"tags":["research-insights"],"summary":"Run multi-agent research analysis","description":"Run collaborative biomedical literature and knowledge-graph analysis. Forge Research Insights is not a medical device, is not intended for clinical decision-making, and is for biomedical research exploration only.","operationId":"run_multi_agent_research_analysis","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MultiAgentResearchInsightRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Run Multi Agent Research Analysis"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/research-insights/multi-agent/sessions/{session_id}/discriminating-phenotypes":{"get":{"tags":["research-insights"],"summary":"Get discriminating phenotypes","description":"Get phenotypes that best distinguish among top research hypotheses.","operationId":"get_discriminating_phenotypes_get_api_v1_research_insights_multi_agent_sessions_session_id_discriminating_phenotypes","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Discriminating Phenotypes Api V1 Research Insights Multi Agent Sessions  Session Id  Discriminating Phenotypes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/research-insights/health":{"get":{"tags":["research-insights"],"summary":"Health check","description":"Check research insights service health.","operationId":"health_check_get_api_v1_research_insights_health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"},{"type":"integer"}]},"type":"object","title":"Response Health Check Api V1 Research Insights Health Get"}}}}},"security":[]}},"/api/v1/research/status":{"get":{"tags":["Sentinel Research"],"summary":"Sentinel Research Pipeline Liveness (public)","description":"Return a minimal unauthenticated liveness signal.\n\nEX-S1-C1: deliberately does NOT leak the model name, research\nquestions, category list, cycle counts, or topics-per-cycle. Only\nreturns whether the pipeline is enabled and a coarse bucket for\n\"how long since it last ran\" so an uptime monitor can detect\na stall without handing adversaries the research agenda.","operationId":"research_status_get_api_v1_research_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Research Status Api V1 Research Status Get"}}}}},"security":[]}},"/api/v1/governance/proposals":{"get":{"tags":["governance"],"summary":"List Proposals","description":"List governance proposals.","operationId":"list_proposals_get_api_v1_governance_proposals","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"proposal_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposal Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Page"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Size"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skip"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/governance/proposals/active":{"get":{"tags":["governance"],"summary":"Get Active Proposals","description":"Get all active (votable) proposals.","operationId":"get_active_proposals_get_api_v1_governance_proposals_active","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Active Proposals Api V1 Governance Proposals Active Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/proposals/{proposal_id}":{"get":{"tags":["governance"],"summary":"Get Proposal","description":"Get a specific proposal.","operationId":"get_proposal_get_api_v1_governance_proposals_proposal_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}}}},"/api/v1/governance/proposals/{proposal_id}/votes":{"get":{"tags":["governance"],"summary":"Get Proposal Votes","description":"Get all votes on a proposal.","operationId":"get_proposal_votes_get_api_v1_governance_proposals_proposal_id_votes","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Proposal Votes Api V1 Governance Proposals  Proposal Id  Votes Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/proposals/{proposal_id}/tally":{"get":{"tags":["governance"],"summary":"Get Proposal Tally","description":"Return a tally of votes on a proposal, broken down by choice.\n\nR90 N8: Fig reported ``/proposals/{id}/tally`` was 404. Callers\nhad to fetch ``/votes`` and tally client-side, which is both\nexpensive (one round-trip per dashboard render) and inconsistent\nwith the rest of the governance surface. Return a compact\n``{proposal_id, total_votes, by_choice, quorum_status}`` payload.","operationId":"get_proposal_tally_get_api_v1_governance_proposals_proposal_id_tally","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Proposal Tally Api V1 Governance Proposals  Proposal Id  Tally Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/proposals/{proposal_id}/my-vote":{"get":{"tags":["governance"],"summary":"Get My Vote","description":"Get current user's vote on a proposal.","operationId":"get_my_vote_get_api_v1_governance_proposals_proposal_id_my_vote","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/VoteResponse"},{"type":"null"}],"title":"Response Get My Vote Api V1 Governance Proposals  Proposal Id  My Vote Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/proposals/{proposal_id}/ghost-council":{"get":{"tags":["governance"],"summary":"Get Ghost Council Recommendation","description":"Get Ghost Council's recommendation on a proposal.\n\nThe Ghost Council is an AI advisory board that analyzes proposals\nand provides transparent recommendations. When use_ai=True, the\ncouncil members deliberate using LLM-based analysis. When use_ai=False,\nuses quick heuristics based on voting patterns.\n\nError semantics:\n- 404 — proposal does not exist, or no deliberation is available for it\n- 503 — Ghost Council service is not initialized / unavailable\n- 500 — unexpected internal error (detail included in body)","operationId":"get_ghost_council_recommendation_get_api_v1_governance_proposals_proposal_id_ghost_council","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}},{"name":"use_ai","in":"query","required":false,"schema":{"type":"boolean","description":"Use AI deliberation (False for quick heuristic)","default":true,"title":"Use Ai"},"description":"Use AI deliberation (False for quick heuristic)"},{"name":"skip_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Force a fresh deliberation, bypassing the Ghost Council opinion cache. Use when you need to confirm the LLM is back online after an outage.","default":false,"title":"Skip Cache"},"description":"Force a fresh deliberation, bypassing the Ghost Council opinion cache. Use when you need to confirm the LLM is back online after an outage."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GhostCouncilResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/ghost-council/members":{"get":{"tags":["governance"],"summary":"Get Ghost Council Members","description":"Get the list of Ghost Council members.\n\nThe Ghost Council consists of AI advisors with different expertise areas\nwho deliberate on proposals and serious issues. Returns the full configured\nroster with current weights, domain expertise, icons, and personas.","operationId":"get_ghost_council_members_get_api_v1_governance_ghost_council_members","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GhostCouncilMemberResponse"},"type":"array","title":"Response Get Ghost Council Members Api V1 Governance Ghost Council Members Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/ghost-council/issues":{"get":{"tags":["governance"],"summary":"Get Active Issues","description":"Get all active (unresolved) serious issues.\n\nSerious issues are automatically detected by the system and\nrequire Ghost Council attention.","operationId":"get_active_issues_get_api_v1_governance_ghost_council_issues","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SeriousIssueResponse"},"type":"array","title":"Response Get Active Issues Api V1 Governance Ghost Council Issues Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/ghost-council/stats":{"get":{"tags":["governance"],"summary":"Get Ghost Council Stats","description":"Get Ghost Council statistics.\n\nReturns metrics about proposals reviewed, issues responded to, etc.","operationId":"get_ghost_council_stats_get_api_v1_governance_ghost_council_stats","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Ghost Council Stats Api V1 Governance Ghost Council Stats Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/metrics":{"get":{"tags":["governance"],"summary":"Get Governance Metrics","description":"Get governance system metrics.\n\nReturns statistics about proposals, voting participation,\nand governance health.\n\nPERFORMANCE FIX: Uses optimized aggregation queries to avoid N+1 pattern.","operationId":"get_governance_metrics_get_api_v1_governance_metrics","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernanceMetricsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/policies":{"get":{"tags":["governance"],"summary":"Get Active Policies","description":"Get all active governance policies.","operationId":"get_active_policies_get_api_v1_governance_policies","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response Get Active Policies Api V1 Governance Policies Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/policies/{policy_id}":{"get":{"tags":["governance"],"summary":"Get Policy","description":"Get a specific policy.","operationId":"get_policy_get_api_v1_governance_policies_policy_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"policy_id","in":"path","required":true,"schema":{"type":"string","title":"Policy Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Policy Api V1 Governance Policies  Policy Id  Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/proposals/{proposal_id}/constitutional-analysis":{"get":{"tags":["governance"],"summary":"Get Constitutional Analysis","description":"Get Constitutional AI ethical analysis of a proposal.\n\nThe Constitutional AI system evaluates proposals against:\n- Ethical principles\n- Fairness and equity\n- Safety considerations\n- Transparency requirements\n\nThis helps ensure proposals align with system values before voting.","operationId":"get_constitutional_analysis_get_api_v1_governance_proposals_proposal_id_constitutional_analysis","security":[{"HTTPBearer":[]}],"parameters":[{"name":"proposal_id","in":"path","required":true,"schema":{"type":"string","title":"Proposal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConstitutionalAnalysisResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotFoundResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/delegations":{"get":{"tags":["governance"],"summary":"Get My Delegations","description":"Get delegations where I am either delegator or delegate.","operationId":"get_my_delegations_get_api_v1_governance_delegations","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DelegationResponse"},"type":"array","title":"Response Get My Delegations Api V1 Governance Delegations Get"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/governance/authorize-tool":{"post":{"tags":["Governance Tools"],"summary":"Authorize an MCP tool call","description":"Runs an MCP tool call through the forge_arbiter overlay for trust-gated authorization with behavioral risk scoring.","operationId":"authorize_tool_post_api_v1_governance_authorize_tool","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeToolRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorizeToolResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/health":{"get":{"tags":["system"],"summary":"Comprehensive health check","description":"Returns detailed health status of all system components","operationId":"get_health_get_api_v1_system_health","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/health/live":{"get":{"tags":["system"],"summary":"Liveness probe","description":"Simple liveness check for Kubernetes/container orchestration","operationId":"liveness_probe_get_api_v1_system_health_live","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Liveness Probe Api V1 System Health Live Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/health/llm":{"get":{"tags":["system"],"summary":"LLM provider health","description":"Returns non-secret LLM provider status. With probe=true, performs a cheap reachability probe such as Eidolon /v1/models, without generating text.","operationId":"llm_health_probe_get_api_v1_system_health_llm","parameters":[{"name":"probe","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Probe"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Llm Health Probe Api V1 System Health Llm Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/health/ready":{"get":{"tags":["system"],"summary":"Readiness probe","description":"Readiness check verifying critical dependencies. This is the machine-facing orchestrator probe (Kubernetes readiness, ALB/ECS target health checks): it is intentionally public and returns only minimal non-secret readiness state. No diagnostics token is required. Detailed operational diagnostics remain gated behind the FORGE_HEALTH_DIAGNOSTICS_TOKEN on /health, /health/llm, and /status.","operationId":"readiness_probe_get_api_v1_system_health_ready","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Readiness Probe Api V1 System Health Ready Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/status":{"get":{"tags":["system"],"summary":"Get system status","description":"Returns simplified system status for monitoring","operationId":"get_system_status_get_api_v1_system_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/maintenance/status":{"get":{"tags":["system"],"summary":"Get maintenance mode status","description":"Check if maintenance mode is enabled","operationId":"get_maintenance_status_get_api_v1_system_maintenance_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MaintenanceModeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/metrics":{"get":{"tags":["system"],"summary":"Get system metrics","description":"Returns comprehensive system metrics","operationId":"get_system_metrics_get_api_v1_system_metrics","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemMetricsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/system/emergency/status":{"get":{"tags":["system","emergency"],"summary":"Get Emergency Status","description":"Get current emergency halt status.","operationId":"get_emergency_status_get_api_v1_system_emergency_status","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmergencyHaltResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/listings":{"get":{"tags":["Marketplace"],"summary":"List Listings","description":"Browse public marketplace listings.","operationId":"list_listings_get_api_v1_marketplace_listings","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"active","title":"Status"}},{"name":"seller_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Seller Id"}},{"name":"min_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Min Price"}},{"name":"max_price","in":"query","required":false,"schema":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}],"title":"Max Price"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated tags","title":"Tags"},"description":"Comma-separated tags"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Search listing title, description, preview, Froggit text, or tags","title":"Q"},"description":"Search listing title, description, preview, Froggit text, or tags"},{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Alias for q used by older browse clients","title":"Search"},"description":"Alias for q used by older browse clients"},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"title":"Category"}},{"name":"min_trust","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100,"minimum":0},{"type":"null"}],"title":"Min Trust"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"featured","title":"Sort By"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":20,"title":"Limit"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":1000,"minimum":1},{"type":"null"}],"title":"Page"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/listings/mine":{"get":{"tags":["Marketplace"],"summary":"List My Listings","description":"Return listings owned by the authenticated caller (seller_id = user.id).\n\nCompanion to public ``GET /listings`` browse — this one filters to\nthe caller's own inventory across any status (DRAFT / ACTIVE /\nSOLD / CANCELLED / EXPIRED).","operationId":"list_my_listings_get_api_v1_marketplace_listings_mine","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional status filter","title":"Status"},"description":"Optional status filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":10000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/marketplace/listings/by-capsule/{capsule_id}":{"get":{"tags":["Marketplace"],"summary":"Get Listing By Froggit","description":"Get the public marketplace listing attached to a Froggit ID.","operationId":"get_listing_by_capsule_get_api_v1_marketplace_listings_by_capsule_capsule_id","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/listings/{listing_id}":{"get":{"tags":["Marketplace"],"summary":"Get Listing","description":"Get public details for a specific listing.","operationId":"get_listing_get_api_v1_marketplace_listings_listing_id","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/payment-config":{"get":{"tags":["Marketplace"],"summary":"Get Payment Config","description":"Return the backend-authoritative Base ETH payment config used for verification.","operationId":"get_payment_config_get_api_v1_marketplace_payment_config","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplacePaymentConfigResponse"}}}}},"security":[]}},"/api/v1/marketplace/cart":{"get":{"tags":["Marketplace"],"summary":"Get Cart","description":"Get current user's cart.","operationId":"get_cart_get_api_v1_marketplace_cart","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/cart/items/{listing_id}":{"post":{"tags":["Marketplace"],"summary":"Add To Cart","description":"Add a listing to cart.","operationId":"add_to_cart_post_api_v1_marketplace_cart_items_listing_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Marketplace"],"summary":"Remove From Cart","description":"Remove a listing from cart.","operationId":"remove_from_cart_delete_api_v1_marketplace_cart_items_listing_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/marketplace/buyer-intents":{"post":{"tags":["Marketplace"],"summary":"Record Buyer Intent","description":"Capture a public assisted-checkout request before payment settlement.","operationId":"record_buyer_intent_post_api_v1_marketplace_buyer_intents","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceBuyerIntentRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceBuyerIntentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/checkout":{"post":{"tags":["Marketplace"],"summary":"Checkout","description":"Process cart checkout.","operationId":"checkout_post_api_v1_marketplace_checkout","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PurchaseResponse"},"type":"array","title":"Response Checkout Api V1 Marketplace Checkout Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/listings/{listing_id}/purchase":{"post":{"tags":["Marketplace"],"summary":"Purchase Single","description":"Purchase a single listing directly.","operationId":"purchase_single_post_api_v1_marketplace_listings_listing_id_purchase","security":[{"HTTPBearer":[]}],"parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/marketplace/purchases":{"get":{"tags":["Marketplace"],"summary":"Get Purchases","description":"Get purchase history.","operationId":"get_purchases_get_api_v1_marketplace_purchases","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PurchaseResponse"},"title":"Response Get Purchases Api V1 Marketplace Purchases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/marketplace/pricing/tiers":{"get":{"tags":["Marketplace"],"summary":"Get Pricing Tiers","description":"Get information about pricing tiers and base prices.","operationId":"get_pricing_tiers_get_api_v1_marketplace_pricing_tiers","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Pricing Tiers Api V1 Marketplace Pricing Tiers Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/license/{capsule_id}":{"get":{"tags":["Marketplace"],"summary":"Check License","description":"Check whether the user has a valid license for a Froggit.","operationId":"check_license_get_api_v1_marketplace_license_capsule_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Check License Api V1 Marketplace License  Capsule Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/marketplace/purchase":{"post":{"tags":["Marketplace"],"summary":"Submit Web3 Purchase","description":"Submit a Web3 purchase after the native Base ETH payment has been sent.\n\nThe backend verifies the transaction on Base (checking recipient, amount,\nand recipient) and then grants Froggit access to the buyer's account.\n\n**Required fields**\n\n- `items[].capsule_id` — Froggit being purchased\n- `items[].title`      — human-readable title at time of sale\n- `items[].price_wei` — native ETH price in wei, **as a decimal string**\n  (required because uint256 values can exceed JSON number precision)\n- `wallet_address`     — buyer EVM wallet (0x + 40 hex chars)\n- `transaction_hash`   — on-chain tx hash (0x + 64 hex chars)\n\n**Example request body**\n\n```json\n{\n  \"items\": [\n    {\n      \"listing_id\": \"listing_9f2c4b7a1d30\",\n      \"capsule_id\": \"cap_8a1e4b9d2f06\",\n      \"title\": \"Institutional Memory Patterns — Q1 2026\",\n      \"price_wei\": \"1500000000000000000\",\n      \"price_usd\": 4.27\n    }\n  ],\n  \"wallet_address\": \"0x742d35Cc6634C0532925a3b844Bc9e7595f0beB1\",\n  \"transaction_hash\": \"0xabc1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd\"\n}\n```\n\n**Response**\n\nReturns `Web3PurchaseResponse` with `status` in `{pending, confirmed, failed}`.","operationId":"submit_web3_purchase_post_api_v1_marketplace_purchase","security":[{"HTTPBearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Web3PurchaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Web3PurchaseResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/marketplace/search":{"get":{"tags":["Marketplace"],"summary":"Search Marketplace","description":"Public search endpoint for marketplace Froggits.\n\nNo auth required. Rate limited to 10 req/min per IP.\nReturns Froggit previews without full content.","operationId":"search_marketplace_get_api_v1_marketplace_search","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Search query","title":"Q"},"description":"Search query"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Search Marketplace Api V1 Marketplace Search Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/marketplace/bundles":{"get":{"tags":["Marketplace Bundles"],"summary":"List Bundles","description":"List active public marketplace bundles with optional type filtering.","operationId":"list_bundles_get_api_v1_marketplace_bundles","parameters":[{"name":"bundle_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter: chain, topic, curated","title":"Bundle Type"},"description":"Filter: chain, topic, curated"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"const":"active","type":"string"},{"type":"null"}],"description":"Optional active-status filter; non-public inventory is never listed here.","title":"Status"},"description":"Optional active-status filter; non-public inventory is never listed here."},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"per_page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Per Page"}},{"name":"page_size","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page Size"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"skip","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Skip"}},{"name":"offset","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BundleListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/agent-gateway/renew":{"post":{"tags":["Agent Gateway"],"summary":"Renew Current Agent Session","description":"Renew the authenticated agent session before API-key expiry.","operationId":"renew_current_agent_session_post_api_v1_agent_gateway_renew","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Renew Current Agent Session Api V1 Agent Gateway Renew Post"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/sessions":{"post":{"tags":["Agent Gateway"],"summary":"Create Session","description":"Create a new agent session.\n\nReturns the session with API key (shown only once - store securely!).\n\nEX-N1 N1-C2 (CRIT): trust_level is NOT client-authoritative. A\nnon-admin caller requesting ``VERIFIED`` / ``TRUSTED`` / ``SYSTEM``\nwould previously get that tier stamped on the session, and the\nskill registry's ``min_trust`` check would honor it because the\nauthorisation decision at dispatch time only reads\n``session.trust_level``. That gave any authenticated user a path\nto ``view_governance`` (min_trust=VERIFIED) without being verified,\nand to every ``TRUSTED`` / ``SYSTEM`` skill we ship in the\nfuture. Clamp to BASIC for ordinary users; only admins may mint\nhigher-tier sessions.","operationId":"create_session_post_api_v1_agent_gateway_sessions","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__agent_gateway__CreateSessionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__agent_gateway__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Agent Gateway"],"summary":"List Sessions","description":"List agent sessions owned by the current user.","operationId":"list_sessions_get_api_v1_agent_gateway_sessions","security":[{"HTTPBearer":[]}],"parameters":[{"name":"active_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Active Only"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/forge__api__routes__agent_gateway__SessionResponse"},"title":"Response List Sessions Api V1 Agent Gateway Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent-gateway/sessions/{session_id}":{"get":{"tags":["Agent Gateway"],"summary":"Get Session","description":"Get details for a specific session.","operationId":"get_session_get_api_v1_agent_gateway_sessions_session_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__agent_gateway__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Agent Gateway"],"summary":"Revoke Session","description":"Revoke an agent session (DEEP-06 P2-1).\n\nAuth: owner of the agent session OR a user with the ``admin`` role.\nReturns 204 on successful revocation, 404 when ``session_id`` is\nunknown, and 403 when the caller is neither the owner nor an admin.\n\nPreviously this endpoint returned 404 for both \"session missing\"\nand \"wrong owner\" — which matched the information-leak mitigation\nfor public-facing endpoints, but the audit requires the distinct\n403 on ownership mismatch so admins and owners both have a clear\nsignal and ops tooling can tell the two cases apart.","operationId":"revoke_session_delete_api_v1_agent_gateway_sessions_session_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"204":{"description":"Session revoked"},"403":{"description":"Caller is not the session owner and not an admin"},"404":{"description":"Session not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent-gateway/sessions/{session_id}/rotate":{"post":{"tags":["Agent Gateway"],"summary":"Rotate Session Key","description":"Rotate a session API key and return the replacement key exactly once.","operationId":"rotate_session_key_post_api_v1_agent_gateway_sessions_session_id_rotate","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__agent_gateway__SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent-gateway/session/current":{"delete":{"tags":["Agent Gateway"],"summary":"Revoke Current Agent Session","description":"Let an authenticated agent immediately revoke its own API key.","operationId":"revoke_current_agent_session_delete_api_v1_agent_gateway_session_current","responses":{"200":{"description":"Current agent API key revoked","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Revoke Current Agent Session Api V1 Agent Gateway Session Current Delete"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/register":{"post":{"tags":["Agent Gateway"],"summary":"Register Agent","description":"Register as an external agent to get API access.\n\nPublic registration is disabled unless an operator explicitly enables it.\nAuthenticated users retain the separate ``POST /sessions`` path. When\nenabled, this endpoint returns an API key once and grants BASIC trust.","operationId":"register_agent_post_api_v1_agent_gateway_register","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAgentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[]}},"/api/v1/agent-gateway/register/verify":{"post":{"tags":["Agent Gateway"],"summary":"Verify Agent Registration","operationId":"verify_agent_registration_post_api_v1_agent_gateway_register_verify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAgentRegistrationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterAgentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[],"description":"Verify Agent Registration"}},"/api/v1/agent-gateway/info":{"get":{"tags":["Agent Gateway"],"summary":"Gateway Info","description":"Public API documentation for the Agent Gateway.\n\nNo authentication required. Describes available query types,\nrate limits, and how to register.","operationId":"gateway_info_get_api_v1_agent_gateway_info","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Gateway Info Api V1 Agent Gateway Info Get"}}}}},"security":[]}},"/api/v1/agent-gateway/quickstart":{"get":{"tags":["Agent Gateway"],"summary":"Agent Quickstart","description":"Structured getting-started guide for AI agents. No authentication required.","operationId":"agent_quickstart_get_api_v1_agent_gateway_quickstart","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Agent Quickstart Api V1 Agent Gateway Quickstart Get"}}}}},"security":[]}},"/api/v1/agent-gateway/query":{"post":{"tags":["Agent Gateway"],"summary":"Execute Query","description":"Execute a knowledge query.\n\nSupports natural language, semantic search, graph traversal, and more.","operationId":"execute_query_post_api_v1_agent_gateway_query","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/search":{"post":{"tags":["Agent Gateway"],"summary":"Semantic Search","description":"Quick semantic search endpoint.\n\nShorthand for execute_query with SEMANTIC_SEARCH type.\nAccepts ``?query=...`` as a URL param OR a JSON body\n``{\"query\": \"...\", \"max_results\": N, \"capsule_types\": \"...\"}``.","operationId":"semantic_search_post_api_v1_agent_gateway_search","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":1000},{"type":"null"}],"title":"Query"}},{"name":"max_results","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"title":"Max Results"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"title":"Limit"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Single Froggit type","title":"Type"},"description":"Single Froggit type"},{"name":"capsule_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated types","title":"Capsule Types"},"description":"Comma-separated types"},{"name":"include_superseded","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Superseded"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SemanticSearchBody"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/capsule/{capsule_id}":{"get":{"tags":["Agent Gateway"],"summary":"Get Froggit","description":"Get a specific Froggit by ID.\n\nSubject to trust-level access controls.","operationId":"get_capsule_get_api_v1_agent_gateway_capsule_capsule_id","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Capsule Api V1 Agent Gateway Capsule  Capsule Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/capsules/{capsule_id}":{"patch":{"tags":["Agent Gateway"],"summary":"Update Agent Froggit","description":"Update an agent-owned Froggit through the gateway.","operationId":"update_agent_capsule_patch_api_v1_agent_gateway_capsules_capsule_id","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentCapsuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Update Agent Capsule Api V1 Agent Gateway Capsules  Capsule Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["Agent Gateway"],"summary":"Delete Agent Froggit","description":"Archive an agent-owned Froggit without hard-deleting lineage history.","operationId":"delete_agent_capsule_delete_api_v1_agent_gateway_capsules_capsule_id","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Agent Capsule Api V1 Agent Gateway Capsules  Capsule Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/capsule/{capsule_id}/lineage":{"get":{"tags":["Agent Gateway"],"summary":"Get Froggit Lineage","description":"Own-tenant lineage only: granted neighbors remain redacted (item 429).","operationId":"get_capsule_lineage_get_api_v1_agent_gateway_capsule_capsule_id_lineage","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"max_depth","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":15,"title":"Max Depth"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Capsule Lineage Api V1 Agent Gateway Capsule  Capsule Id  Lineage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/capsule/{capsule_id}/neighbors":{"get":{"tags":["Agent Gateway"],"summary":"Get Froggit Neighbors","description":"Own-tenant neighbors only: grant expansion remains excluded (item 429).","operationId":"get_capsule_neighbors_get_api_v1_agent_gateway_capsule_capsule_id_neighbors","parameters":[{"name":"capsule_id","in":"path","required":true,"schema":{"type":"string","title":"Capsule Id"}},{"name":"relationship_types","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated","title":"Relationship Types"},"description":"Comma-separated"},{"name":"direction","in":"query","required":false,"schema":{"type":"string","pattern":"^(in|out|both)$","default":"both","title":"Direction"}},{"name":"max_depth","in":"query","required":false,"schema":{"type":"integer","maximum":5,"minimum":1,"default":1,"title":"Max Depth"}},{"name":"max_results","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Max Results"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/capsules":{"post":{"tags":["Agent Gateway"],"summary":"Create Froggit","description":"Create a new Froggit.\n\nBASIC agents may create Froggits, but the submission is forced into a\n``requires_approval=true`` workflow so Ghost Council or admin review\ngates it before it enters the public graph. UNTRUSTED agents remain\nblocked; VERIFIED and higher may submit directly.\n\nRequires the technical ``CREATE_CAPSULES`` capability. UNTRUSTED agents\nare blocked outright, BASIC submissions are auto-flagged for review, and\nVERIFIED or higher sessions may use the requested approval behavior.","operationId":"create_capsule_post_api_v1_agent_gateway_capsules","parameters":[{"name":"X-Forge-Capsule-Submit-Intent","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"BASIC agents must set this to approval-queued before Froggit submissions.","title":"X-Forge-Capsule-Submit-Intent"},"description":"BASIC agents must set this to approval-queued before Froggit submissions."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/forge__api__routes__agent_gateway__CreateCapsuleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Capsule Api V1 Agent Gateway Capsules Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/capsule-jobs/{job_id}":{"get":{"tags":["Agent Gateway"],"summary":"Get Froggit Creation Job","description":"Return the status of an async Froggit creation job.","operationId":"get_capsule_creation_job_get_api_v1_agent_gateway_capsule_jobs_job_id","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Capsule Creation Job Api V1 Agent Gateway Capsule Jobs  Job Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/stats":{"get":{"tags":["Agent Gateway"],"summary":"Get Gateway Stats","description":"Get aggregate gateway usage statistics.","operationId":"get_gateway_stats_get_api_v1_agent_gateway_stats","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/agent-gateway/sessions/{session_id}/access-logs":{"get":{"tags":["Agent Gateway"],"summary":"Get Access Logs","description":"Get access logs for a session.","operationId":"get_access_logs_get_api_v1_agent_gateway_sessions_session_id_access_logs","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","additionalProperties":true},"title":"Response Get Access Logs Api V1 Agent Gateway Sessions  Session Id  Access Logs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/agent-gateway/capabilities":{"get":{"tags":["Agent Gateway"],"summary":"List Capabilities","description":"Get available capabilities and query types.\n\nR86 N3: this endpoint returns only enum/descriptor metadata (no\nuser data, no rate-limited operations). Previously it required a\nuser JWT via ``ActiveUserDep``, which meant agent clients holding\na valid ``forge_agent_*`` API key could not discover what the\ngateway supports — an onboarding dead end, since ``/capabilities``\nis literally the \"what does this gateway do?\" endpoint. Made it\npublic to match ``/info`` (same information class).","operationId":"list_capabilities_get_api_v1_agent_gateway_capabilities","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Capabilities Api V1 Agent Gateway Capabilities Get"}}}}},"security":[]}},"/api/v1/webhooks/stripe":{"post":{"tags":["Stripe Webhooks"],"summary":"Receive Stripe Webhook","description":"Persist revenue proof and provision tenant access from one verified event.","operationId":"receive_stripe_webhook_post_api_v1_webhooks_stripe","parameters":[{"name":"Stripe-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe-Signature"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Receive Stripe Webhook Api V1 Webhooks Stripe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aiwg/import":{"post":{"tags":["AIWG"],"summary":"Import Aiwg Index","description":"Import AIWG project memory into private, reviewed Froggits.","operationId":"import_aiwg_index_post_api_v1_integrations_aiwg_import","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGImportRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGImportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aiwg/projects":{"get":{"tags":["AIWG"],"summary":"List Aiwg Projects","description":"List AIWG projects imported for the caller's tenant.","operationId":"list_aiwg_projects_get_api_v1_integrations_aiwg_projects","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGProjectsResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aiwg/search":{"post":{"tags":["AIWG"],"summary":"Search Aiwg Memory","description":"Search imported AIWG memory scoped to the caller's tenant.","operationId":"search_aiwg_memory_post_api_v1_integrations_aiwg_search","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGSearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aiwg/promote":{"post":{"tags":["AIWG"],"summary":"Promote Aiwg Memory","description":"Promote one reviewed AIWG import into public answer eligibility.","operationId":"promote_aiwg_memory_post_api_v1_integrations_aiwg_promote","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGPromotionRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGPromotionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aiwg/promotion-receipts":{"get":{"tags":["AIWG"],"summary":"List Aiwg Promotion Receipts","description":"List durable AIWG promotion approval receipts for the caller's tenant.","operationId":"list_aiwg_promotion_receipts_get_api_v1_integrations_aiwg_promotion_receipts","security":[{"HTTPBearer":[]}],"parameters":[{"name":"project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AIWGPromotionReceiptsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/aeos/audit":{"get":{"tags":["AEOS"],"summary":"Read Aeos Audit Events","description":"Return tenant/project-scoped AEOS audit events for operator verification.","operationId":"read_aeos_audit_events_get_api_v1_integrations_aeos_audit","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Tenant Id"}},{"name":"project_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Project Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSAuditReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/aeos/approvals/check":{"post":{"tags":["AEOS"],"summary":"Check Aeos Approvals","description":"Return latest Forge approval decisions for AEOS tasks, default-deny.","operationId":"check_aeos_approvals_post_api_v1_integrations_aeos_approvals_check","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSApprovalCheckRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSApprovalCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aeos/approvals/record":{"post":{"tags":["AEOS"],"summary":"Record Aeos Approval","description":"Persist an AEOS approval decision into Forge audit history.","operationId":"record_aeos_approval_post_api_v1_integrations_aeos_approvals_record","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSApprovalRecordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSAuditRecordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aeos/receipts":{"post":{"tags":["AEOS"],"summary":"Record Aeos Action Receipt","description":"Persist an AEOS action receipt into Forge audit history.","operationId":"record_aeos_action_receipt_post_api_v1_integrations_aeos_receipts","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSActionReceiptRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSAuditRecordResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aeos/zo/runtime/status":{"post":{"tags":["AEOS"],"summary":"Record Aeos Zo Runtime Status","description":"Persist Zo runtime progress callbacks into Forge audit history.","operationId":"record_aeos_zo_runtime_status_post_api_v1_integrations_aeos_zo_runtime_status","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSZoRuntimeStatusRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSZoRuntimeStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aeos/tenants":{"get":{"tags":["AEOS"],"summary":"List Aeos Tenants","description":"List AEOS tenant records visible to the caller.","operationId":"list_aeos_tenants_get_api_v1_integrations_aeos_tenants","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantListResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aeos/tenants/{tenant_id}":{"get":{"tags":["AEOS"],"summary":"Get Aeos Tenant","description":"Read one AEOS tenant record visible to the caller.","operationId":"get_aeos_tenant_get_api_v1_integrations_aeos_tenants_tenant_id","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantReadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/aeos/tenants/upsert":{"post":{"tags":["AEOS"],"summary":"Upsert Aeos Tenants","description":"Validate and persist AEOS company-instance contracts in Forge.","operationId":"upsert_aeos_tenants_post_api_v1_integrations_aeos_tenants_upsert","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantUpsertRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantUpsertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/aeos/tenants/{tenant_id}/members/upsert":{"post":{"tags":["AEOS"],"summary":"Upsert Aeos Tenant Member","description":"Grant or replace a user's AEOS tenant membership roles.","operationId":"upsert_aeos_tenant_member_post_api_v1_integrations_aeos_tenants_tenant_id_members_upsert","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantMemberUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantMemberUpsertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/aeos/tenants/{tenant_id}/deactivate":{"post":{"tags":["AEOS"],"summary":"Deactivate Aeos Tenant","description":"Mark an AEOS tenant inactive without deleting its evidence.","operationId":"deactivate_aeos_tenant_post_api_v1_integrations_aeos_tenants_tenant_id_deactivate","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantLifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantLifecycleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/aeos/tenants/{tenant_id}/archive":{"post":{"tags":["AEOS"],"summary":"Archive Aeos Tenant","description":"Archive an AEOS tenant while preserving its audit trail.","operationId":"archive_aeos_tenant_post_api_v1_integrations_aeos_tenants_tenant_id_archive","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tenant_id","in":"path","required":true,"schema":{"type":"string","title":"Tenant Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantLifecycleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AEOSTenantLifecycleResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/egs1/customer-tenants":{"post":{"tags":["EGS1"],"summary":"Provision Customer Tenant","description":"Create once or retrieve the exact immutable EGS1 customer organization.","operationId":"provision_customer_tenant_post_api_v1_integrations_egs1_customer_tenants","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTenantRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"EGS1ProvisioningKey":[]}]}},"/api/v1/integrations/egs1/customer-tenants/{customer_id}":{"get":{"tags":["EGS1"],"summary":"Get Customer Tenant","description":"Recover a saved binding after an interrupted provision response.","operationId":"get_customer_tenant_get_api_v1_integrations_egs1_customer_tenants_customer_id","security":[{"EGS1ProvisioningKey":[]}],"parameters":[{"name":"customer_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Customer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerTenantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/obsidian/vaults":{"get":{"tags":["Obsidian Public"],"summary":"List Vaults","description":"Return persisted vaults in the verified owner and tenant scope.","operationId":"list_vaults_get_api_v1_obsidian_vaults","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PluginVault"},"title":"Response List Vaults Api V1 Obsidian Vaults Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["Obsidian Public"],"summary":"Register Vault","description":"Persist a distinct registration, or retry a stable client registration ID.","operationId":"register_vault_post_api_v1_obsidian_vaults","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PluginVaultRegistration"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginVault"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}":{"get":{"tags":["Obsidian Public"],"summary":"Get Vault","description":"Get the current user's persisted vault in the active tenant.","operationId":"get_vault_get_api_v1_obsidian_vaults_vault_id","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginVault"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}/conflicts":{"get":{"tags":["Obsidian Public"],"summary":"Get Conflicts","description":"Return unresolved vault sync conflicts when vault-sync data exists.","operationId":"get_conflicts_get_api_v1_obsidian_vaults_vault_id_conflicts","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{},"title":"Response Get Conflicts Api V1 Obsidian Vaults  Vault Id  Conflicts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}/status":{"get":{"tags":["Obsidian Public"],"summary":"Get Vault Status","description":"Return plugin-compatible vault status.","operationId":"get_vault_status_get_api_v1_obsidian_vaults_vault_id_status","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PluginVaultStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}/conflicts/{conflict_id}/resolve":{"post":{"tags":["Obsidian Public"],"summary":"Resolve Conflict","description":"Persist acknowledgement of a conflict handled by the plugin user.","operationId":"resolve_conflict_post_api_v1_obsidian_vaults_vault_id_conflicts_conflict_id_resolve","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"conflict_id","in":"path","required":true,"schema":{"type":"string","title":"Conflict Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PluginConflictAcknowledgement"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Resolve Conflict Api V1 Obsidian Vaults  Vault Id  Conflicts  Conflict Id  Resolve Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}/notes/upload":{"post":{"tags":["Obsidian Public"],"summary":"Upload Note","description":"Create a Froggit from an authenticated Obsidian note upload.","operationId":"upload_note_post_api_v1_obsidian_vaults_vault_id_notes_upload","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObsidianNoteUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObsidianNoteUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}/sync":{"post":{"tags":["Obsidian Public"],"summary":"Sync Vault","description":"Pull Froggits for Obsidian sync.\n\nWith API key: returns only purchased or owned Froggits.\nWithout valid plugin credentials: returns 401 so the client can surface setup errors.","operationId":"sync_vault_post_api_v1_obsidian_vaults_vault_id_sync","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/vaults/{vault_id}/notes":{"post":{"tags":["Obsidian Public"],"summary":"Upload Note Compat","description":"Compatibility alias for the canonical ``notes/upload`` endpoint.","operationId":"upload_note_compat_post_api_v1_obsidian_vaults_vault_id_notes","parameters":[{"name":"vault_id","in":"path","required":true,"schema":{"type":"string","title":"Vault Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-API-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObsidianNoteUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObsidianNoteUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/obsidian/generate-key":{"post":{"tags":["Obsidian Public"],"summary":"Generate Api Key","description":"Generate a plugin key from a fully verified active user session.\n\n``body`` remains accepted for wire compatibility, but legacy username and\npassword authentication is intentionally unsupported because it bypassed\nthe normal MFA, revocation, token-version, and tenant-membership gates.","operationId":"generate_api_key_post_api_v1_obsidian_generate_key","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Generate Api Key Api V1 Obsidian Generate Key Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/consent":{"get":{"tags":["Privacy Consent"],"summary":"Get Consent","operationId":"get_consent_get_api_v1_consent","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Consent Api V1 Consent Get"}}}}},"security":[{"HTTPBearer":[]}],"description":"Get Consent"},"post":{"tags":["Privacy Consent"],"summary":"Set Consent","operationId":"set_consent_post_api_v1_consent","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentChoices"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}],"description":"Set Consent"}},"/health/detailed":{"get":{"summary":"Health Detailed","description":"Comprehensive health check showing all component statuses.\n\nUsed by frontend diagnostics page and verify_system.py script.\nReveals whether providers are mocked (development) or real (production).","operationId":"health_detailed_get_health_detailed","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Health Detailed Health Detailed Get"}}}}},"security":[{"HTTPBearer":[]}],"tags":["system"]}}},"components":{"schemas":{"AEOSActionReceiptRequest":{"properties":{"schema":{"type":"string","const":"aeos.action_receipt.v1","title":"Schema","default":"aeos.action_receipt.v1"},"trace_id":{"type":"string","maxLength":200,"minLength":1,"title":"Trace Id"},"tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Tenant Id"},"project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Project Id"},"task_id":{"type":"string","maxLength":200,"minLength":1,"title":"Task Id"},"actor":{"type":"string","maxLength":200,"title":"Actor","default":""},"role":{"type":"string","maxLength":80,"title":"Role","default":""},"action_type":{"type":"string","maxLength":120,"minLength":1,"title":"Action Type"},"tool_name":{"type":"string","maxLength":160,"title":"Tool Name","default":"aeos-task-loop"},"input_refs":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Input Refs"},"evidence_refs":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Evidence Refs"},"approval_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Approval Id"},"decision":{"type":"string","enum":["executed","blocked","skipped","failed"],"title":"Decision"},"output_refs":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Output Refs"},"rollback_ref":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Rollback Ref"}},"type":"object","required":["trace_id","tenant_id","project_id","task_id","action_type","decision"],"title":"AEOSActionReceiptRequest"},"AEOSApprovalCheckRequest":{"properties":{"schema":{"type":"string","const":"aeos.approval_check.v1","title":"Schema","default":"aeos.approval_check.v1"},"tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Tenant Id"},"project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Project Id"},"tasks":{"items":{"$ref":"#/components/schemas/AEOSTaskApprovalCheck"},"type":"array","maxItems":100,"title":"Tasks"}},"type":"object","required":["tenant_id","project_id"],"title":"AEOSApprovalCheckRequest"},"AEOSApprovalCheckResponse":{"properties":{"schema":{"type":"string","const":"aeos.approval_check_result.v1","title":"Schema","default":"aeos.approval_check_result.v1"},"project_id":{"type":"string","title":"Project Id"},"approvals":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Approvals"},"decisions":{"items":{"$ref":"#/components/schemas/AEOSApprovalDecision"},"type":"array","title":"Decisions"}},"type":"object","required":["project_id","approvals","decisions"],"title":"AEOSApprovalCheckResponse"},"AEOSApprovalDecision":{"properties":{"task_id":{"type":"string","title":"Task Id"},"action":{"type":"string","title":"Action"},"approval_key":{"type":"string","title":"Approval Key"},"decision":{"type":"string","enum":["approve","deny"],"title":"Decision"},"approved":{"type":"boolean","title":"Approved"},"approval_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approval Id"},"approver":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approver"},"reason":{"type":"string","title":"Reason","default":""},"evidence_refs":{"items":{"type":"string"},"type":"array","title":"Evidence Refs"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"decided_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["task_id","action","approval_key","decision","approved"],"title":"AEOSApprovalDecision"},"AEOSApprovalRecordRequest":{"properties":{"schema":{"type":"string","const":"aeos.approval_record.v1","title":"Schema","default":"aeos.approval_record.v1"},"tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Tenant Id"},"project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Project Id"},"task_id":{"type":"string","maxLength":200,"minLength":1,"title":"Task Id"},"action":{"type":"string","maxLength":120,"minLength":1,"title":"Action"},"approval_key":{"type":"string","maxLength":80,"minLength":1,"title":"Approval Key"},"decision":{"type":"string","enum":["approve","deny"],"title":"Decision"},"reason":{"type":"string","maxLength":2000,"title":"Reason","default":""},"evidence_refs":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Evidence Refs"},"expires_at":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["tenant_id","project_id","task_id","action","approval_key","decision"],"title":"AEOSApprovalRecordRequest"},"AEOSAuditEvent":{"properties":{"id":{"type":"string","title":"Id"},"action":{"type":"string","title":"Action"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"actor_id":{"type":"string","title":"Actor Id"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"timestamp":{"type":"string","title":"Timestamp"},"tenant_id":{"type":"string","title":"Tenant Id"},"project_id":{"type":"string","title":"Project Id"},"details":{"additionalProperties":true,"type":"object","title":"Details"}},"type":"object","required":["id","action","resource_type","actor_id","timestamp","tenant_id","project_id","details"],"title":"AEOSAuditEvent"},"AEOSAuditReadResponse":{"properties":{"schema":{"type":"string","const":"aeos.audit_read_result.v1","title":"Schema","default":"aeos.audit_read_result.v1"},"ok":{"type":"boolean","title":"Ok"},"tenant_id":{"type":"string","title":"Tenant Id"},"project_id":{"type":"string","title":"Project Id"},"events":{"items":{"$ref":"#/components/schemas/AEOSAuditEvent"},"type":"array","title":"Events"},"returned":{"type":"integer","title":"Returned"}},"type":"object","required":["ok","tenant_id","project_id","events","returned"],"title":"AEOSAuditReadResponse"},"AEOSAuditRecordResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"audit_id":{"type":"string","title":"Audit Id"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id"}},"type":"object","required":["ok","audit_id"],"title":"AEOSAuditRecordResponse"},"AEOSProductionTenantRecord":{"properties":{"tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Tenant Id"},"company_id":{"type":"string","maxLength":200,"minLength":1,"title":"Company Id"},"forge_project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Forge Project Id"},"status":{"type":"string","enum":["draft","sandbox","pilot","production-ready","active","inactive","archived"],"title":"Status","default":"active"},"schema":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Schema"},"access_control":{"$ref":"#/components/schemas/AEOSTenantAccessControl"},"credential_policy":{"$ref":"#/components/schemas/AEOSTenantCredentialPolicy"},"partner_scopes":{"additionalProperties":{"type":"string"},"type":"object","title":"Partner Scopes"}},"type":"object","required":["tenant_id","company_id","forge_project_id","access_control","credential_policy","partner_scopes"],"title":"AEOSProductionTenantRecord"},"AEOSTaskApprovalCheck":{"properties":{"task_id":{"type":"string","maxLength":200,"minLength":1,"title":"Task Id"},"action":{"type":"string","maxLength":120,"minLength":1,"title":"Action"},"approval_key":{"type":"string","maxLength":80,"minLength":1,"title":"Approval Key"}},"type":"object","required":["task_id","action","approval_key"],"title":"AEOSTaskApprovalCheck"},"AEOSTenantAccessControl":{"properties":{"source_of_truth":{"type":"string","const":"forge","title":"Source Of Truth"},"tenant_membership_required":{"type":"boolean","title":"Tenant Membership Required"},"deny_by_default":{"type":"boolean","title":"Deny By Default"},"required_roles":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Required Roles"},"production_promotion_role":{"type":"string","maxLength":120,"minLength":1,"title":"Production Promotion Role"}},"type":"object","required":["source_of_truth","tenant_membership_required","deny_by_default","required_roles","production_promotion_role"],"title":"AEOSTenantAccessControl"},"AEOSTenantCredentialPolicy":{"properties":{"storage_authority":{"type":"string","maxLength":200,"minLength":1,"title":"Storage Authority"},"scope":{"type":"string","const":"per-tenant","title":"Scope"},"shared_credentials_allowed":{"type":"boolean","title":"Shared Credentials Allowed"},"rotation_required":{"type":"boolean","title":"Rotation Required"}},"type":"object","required":["storage_authority","scope","shared_credentials_allowed","rotation_required"],"title":"AEOSTenantCredentialPolicy"},"AEOSTenantLifecycleRequest":{"properties":{"schema":{"type":"string","const":"aeos.tenant_lifecycle_request.v1","title":"Schema","default":"aeos.tenant_lifecycle_request.v1"},"operator_id":{"type":"string","maxLength":200,"minLength":1,"title":"Operator Id"},"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["operator_id","reason"],"title":"AEOSTenantLifecycleRequest"},"AEOSTenantLifecycleResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"schema":{"type":"string","const":"aeos.tenant_lifecycle_response.v1","title":"Schema","default":"aeos.tenant_lifecycle_response.v1"},"tenant_id":{"type":"string","title":"Tenant Id"},"status":{"type":"string","enum":["inactive","archived"],"title":"Status"},"audit_id":{"type":"string","title":"Audit Id"}},"type":"object","required":["tenant_id","status","audit_id"],"title":"AEOSTenantLifecycleResponse"},"AEOSTenantListResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"schema":{"type":"string","const":"aeos.tenant_list_response.v1","title":"Schema","default":"aeos.tenant_list_response.v1"},"tenants":{"items":{"$ref":"#/components/schemas/AEOSProductionTenantRecord"},"type":"array","title":"Tenants"}},"type":"object","required":["tenants"],"title":"AEOSTenantListResponse"},"AEOSTenantMemberUpsertRequest":{"properties":{"schema":{"type":"string","const":"aeos.tenant_member_upsert_request.v1","title":"Schema","default":"aeos.tenant_member_upsert_request.v1"},"user_id":{"type":"string","maxLength":200,"minLength":1,"title":"User Id"},"roles":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Roles"},"operator_id":{"type":"string","maxLength":200,"minLength":1,"title":"Operator Id"}},"type":"object","required":["user_id","roles","operator_id"],"title":"AEOSTenantMemberUpsertRequest"},"AEOSTenantMemberUpsertResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"schema":{"type":"string","const":"aeos.tenant_member_upsert_response.v1","title":"Schema","default":"aeos.tenant_member_upsert_response.v1"},"tenant_id":{"type":"string","title":"Tenant Id"},"user_id":{"type":"string","title":"User Id"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"audit_id":{"type":"string","title":"Audit Id"}},"type":"object","required":["tenant_id","user_id","roles","audit_id"],"title":"AEOSTenantMemberUpsertResponse"},"AEOSTenantReadResponse":{"properties":{"ok":{"type":"boolean","title":"Ok","default":true},"schema":{"type":"string","const":"aeos.tenant_read_response.v1","title":"Schema","default":"aeos.tenant_read_response.v1"},"tenant":{"$ref":"#/components/schemas/AEOSProductionTenantRecord"}},"type":"object","required":["tenant"],"title":"AEOSTenantReadResponse"},"AEOSTenantUpsertRequest":{"properties":{"schema":{"type":"string","const":"aeos.tenant_upsert_request.v1","title":"Schema","default":"aeos.tenant_upsert_request.v1"},"operation":{"type":"string","const":"upsert_production_tenants","title":"Operation","default":"upsert_production_tenants"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"operator_id":{"type":"string","maxLength":200,"minLength":1,"title":"Operator Id"},"authority":{"type":"string","const":"forge","title":"Authority"},"tenants":{"items":{"$ref":"#/components/schemas/AEOSProductionTenantRecord"},"type":"array","maxItems":50,"minItems":1,"title":"Tenants"}},"type":"object","required":["operator_id","authority","tenants"],"title":"AEOSTenantUpsertRequest"},"AEOSTenantUpsertResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"schema":{"type":"string","const":"aeos.tenant_upsert_response.v1","title":"Schema","default":"aeos.tenant_upsert_response.v1"},"dry_run":{"type":"boolean","title":"Dry Run"},"upserted_count":{"type":"integer","title":"Upserted Count"},"tenant_ids":{"items":{"type":"string"},"type":"array","title":"Tenant Ids"},"audit_ids":{"items":{"type":"string"},"type":"array","title":"Audit Ids"}},"type":"object","required":["ok","dry_run","upserted_count","tenant_ids"],"title":"AEOSTenantUpsertResponse"},"AEOSZoRuntimeStatusRequest":{"properties":{"schema":{"type":"string","const":"aeos.zo_runtime_status.v1","title":"Schema","default":"aeos.zo_runtime_status.v1"},"task_id":{"type":"string","maxLength":200,"minLength":1,"title":"Task Id"},"status":{"type":"string","enum":["queued","running","checkpointed","succeeded","failed","blocked","cancelled"],"title":"Status"},"tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Tenant Id"},"project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Project Id"},"trace_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Trace Id"},"message":{"type":"string","maxLength":2000,"title":"Message","default":""},"progress":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Progress"},"checkpoint_ref":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Checkpoint Ref"},"output_refs":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Output Refs"},"error":{"type":"string","maxLength":2000,"title":"Error","default":""},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["task_id","status","tenant_id","project_id"],"title":"AEOSZoRuntimeStatusRequest"},"AEOSZoRuntimeStatusResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"audit_id":{"type":"string","title":"Audit Id"},"correlation_id":{"type":"string","title":"Correlation Id"},"deduplicated":{"type":"boolean","title":"Deduplicated","default":false},"callback_url_path":{"type":"string","title":"Callback Url Path","default":"/api/v1/integrations/aeos/zo/runtime/status"}},"type":"object","required":["ok","audit_id","correlation_id"],"title":"AEOSZoRuntimeStatusResponse"},"AIWGArtifactRecord":{"properties":{"item_id":{"type":"string","maxLength":512,"minLength":1,"title":"Item Id"},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Title"},"searchable_text":{"anyOf":[{"type":"string","maxLength":100000},{"type":"null"}],"title":"Searchable Text"},"repo_relative_path":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Repo Relative Path"},"locator":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Locator"},"source_path":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Source Path"},"graph":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Graph"},"artifact_type":{"type":"string","maxLength":120,"title":"Artifact Type","default":"artifact"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"concepts":{"items":{"type":"string"},"type":"array","title":"Concepts"},"facets":{"additionalProperties":true,"type":"object","title":"Facets"},"dependency_ids":{"items":{"type":"string"},"type":"array","title":"Dependency Ids"},"provenance_refs":{"items":{"type":"string"},"type":"array","title":"Provenance Refs"},"privacy":{"type":"string","maxLength":80,"title":"Privacy","default":"private"},"pii":{"type":"boolean","title":"Pii","default":false}},"type":"object","required":["item_id"],"title":"AIWGArtifactRecord","description":"One AIWG/Fortemi-style index-export record."},"AIWGImportItemResult":{"properties":{"item_id":{"type":"string","title":"Item Id"},"capsule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Id"},"status":{"type":"string","title":"Status"},"content_hash":{"type":"string","title":"Content Hash"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["item_id","status","content_hash"],"title":"AIWGImportItemResult"},"AIWGImportRequest":{"properties":{"project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Project Id"},"graph":{"type":"string","maxLength":120,"minLength":1,"title":"Graph","default":"project"},"source_format":{"type":"string","maxLength":120,"title":"Source Format","default":"aiwg.froggit.index.v1"},"records":{"items":{"$ref":"#/components/schemas/AIWGArtifactRecord"},"type":"array","maxItems":100,"minItems":1,"title":"Records"},"dry_run":{"type":"boolean","title":"Dry Run","default":false}},"type":"object","required":["project_id","records"],"title":"AIWGImportRequest","description":"Batch import request for AIWG project memory."},"AIWGImportResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"source":{"type":"string","title":"Source","default":"aiwg"},"total_records":{"type":"integer","title":"Total Records"},"imported_count":{"type":"integer","title":"Imported Count"},"created_count":{"type":"integer","title":"Created Count"},"updated_count":{"type":"integer","title":"Updated Count"},"unchanged_count":{"type":"integer","title":"Unchanged Count"},"error_count":{"type":"integer","title":"Error Count"},"dependency_edges_synced":{"type":"integer","title":"Dependency Edges Synced","default":0},"results":{"items":{"$ref":"#/components/schemas/AIWGImportItemResult"},"type":"array","title":"Results"}},"type":"object","required":["project_id","total_records","imported_count","created_count","updated_count","unchanged_count","error_count","results"],"title":"AIWGImportResponse"},"AIWGProjectSummary":{"properties":{"project_id":{"type":"string","title":"Project Id"},"last_sync":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync"},"imported_artifact_count":{"type":"integer","title":"Imported Artifact Count","default":0},"review_queue_count":{"type":"integer","title":"Review Queue Count","default":0},"sync_error_count":{"type":"integer","title":"Sync Error Count","default":0},"sync_errors":{"items":{"$ref":"#/components/schemas/AIWGProjectSyncError"},"type":"array","title":"Sync Errors"}},"type":"object","required":["project_id"],"title":"AIWGProjectSummary"},"AIWGProjectSyncError":{"properties":{"item_id":{"type":"string","title":"Item Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"last_imported_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Imported At"}},"type":"object","required":["item_id"],"title":"AIWGProjectSyncError"},"AIWGProjectsResponse":{"properties":{"projects":{"items":{"$ref":"#/components/schemas/AIWGProjectSummary"},"type":"array","title":"Projects"}},"type":"object","required":["projects"],"title":"AIWGProjectsResponse"},"AIWGPromotionReceipt":{"properties":{"receipt_id":{"type":"string","title":"Receipt Id"},"project_id":{"type":"string","title":"Project Id"},"item_id":{"type":"string","title":"Item Id"},"capsule_id":{"type":"string","title":"Capsule Id"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"promoted_by":{"type":"string","title":"Promoted By"},"promoted_at":{"type":"string","title":"Promoted At"},"reason":{"type":"string","title":"Reason"},"decision":{"type":"string","title":"Decision","default":"approved"},"visibility":{"type":"string","title":"Visibility"},"verification_status":{"type":"string","title":"Verification Status"},"quality_status":{"type":"string","title":"Quality Status"},"answer_eligible":{"type":"boolean","title":"Answer Eligible"}},"type":"object","required":["receipt_id","project_id","item_id","capsule_id","promoted_by","promoted_at","reason","visibility","verification_status","quality_status","answer_eligible"],"title":"AIWGPromotionReceipt"},"AIWGPromotionReceiptsResponse":{"properties":{"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"receipts":{"items":{"$ref":"#/components/schemas/AIWGPromotionReceipt"},"type":"array","title":"Receipts"}},"type":"object","required":["receipts"],"title":"AIWGPromotionReceiptsResponse"},"AIWGPromotionRequest":{"properties":{"project_id":{"type":"string","maxLength":200,"minLength":1,"title":"Project Id"},"item_id":{"type":"string","maxLength":512,"minLength":1,"title":"Item Id"},"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"expected_content_hash":{"type":"string","maxLength":128,"minLength":1,"title":"Expected Content Hash"}},"type":"object","required":["project_id","item_id","reason","expected_content_hash"],"title":"AIWGPromotionRequest","description":"Operator request to promote one imported AIWG record after review."},"AIWGPromotionResponse":{"properties":{"project_id":{"type":"string","title":"Project Id"},"item_id":{"type":"string","title":"Item Id"},"capsule_id":{"type":"string","title":"Capsule Id"},"receipt_id":{"type":"string","title":"Receipt Id"},"promoted":{"type":"boolean","title":"Promoted"},"visibility":{"type":"string","title":"Visibility"},"verification_status":{"type":"string","title":"Verification Status"},"quality_status":{"type":"string","title":"Quality Status"},"answer_eligible":{"type":"boolean","title":"Answer Eligible"},"promoted_at":{"type":"string","title":"Promoted At"}},"type":"object","required":["project_id","item_id","capsule_id","receipt_id","promoted","visibility","verification_status","quality_status","answer_eligible","promoted_at"],"title":"AIWGPromotionResponse"},"AIWGSearchRequest":{"properties":{"query":{"type":"string","maxLength":500,"minLength":1,"title":"Query"},"project_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Project Id"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10}},"type":"object","required":["query"],"title":"AIWGSearchRequest"},"AIWGSearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Project Id"},"results":{"items":{"$ref":"#/components/schemas/AIWGSearchResult"},"type":"array","title":"Results"}},"type":"object","required":["query","results"],"title":"AIWGSearchResponse"},"AIWGSearchResult":{"properties":{"capsule_id":{"type":"string","title":"Capsule Id"},"item_id":{"type":"string","title":"Item Id"},"project_id":{"type":"string","title":"Project Id"},"content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Hash"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"locator":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locator"},"repo_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Repo Path"},"last_imported_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Imported At"},"sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Status"},"review_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"},"privacy":{"type":"string","title":"Privacy","default":"private"},"pii":{"type":"boolean","title":"Pii","default":false},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"},"verification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"},"quality_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Status"},"answer_eligible":{"type":"boolean","title":"Answer Eligible","default":false},"promotion_eligible":{"type":"boolean","title":"Promotion Eligible","default":false}},"type":"object","required":["capsule_id","item_id","project_id"],"title":"AIWGSearchResult"},"AgentCapability":{"type":"string","enum":["read_capsules","query_graph","semantic_search","create_capsules","update_capsules","execute_cascade","access_lineage","view_governance","commerce"],"title":"AgentCapability","description":"Capabilities an agent can request."},"AgentExperienceLifecycleAction":{"type":"string","enum":["suppressed","revoked","forgotten"],"title":"AgentExperienceLifecycleAction","description":"Monotonic private-candidate lifecycle states."},"AgentExperienceLifecycleReason":{"type":"string","enum":["outdated","misleading","unsafe","owner_request","admin_policy","privacy_request"],"title":"AgentExperienceLifecycleReason","description":"Bounded reason codes; arbitrary user content never enters receipts."},"AgentTrustLevel":{"type":"string","enum":["untrusted","basic","verified","trusted","system"],"title":"AgentTrustLevel","description":"Trust levels for agent access."},"AnswerQuestionRequest":{"properties":{"answers":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Answers","description":"List of {question_id, answer, additional_info}"}},"type":"object","required":["answers"],"title":"AnswerQuestionRequest","description":"Request to answer follow-up questions."},"ApproveDepartureRequest":{"properties":{"approver_type":{"type":"string","pattern":"^(employee|org)$","title":"Approver Type"}},"type":"object","required":["approver_type"],"title":"ApproveDepartureRequest"},"AuthorizeToolRequest":{"properties":{"tool_name":{"type":"string","title":"Tool Name","description":"Name of the MCP tool being invoked"},"agent_id":{"type":"string","title":"Agent Id","description":"Agent identifier","default":"unknown"},"mcp_source":{"type":"string","title":"Mcp Source","description":"Source platform (e.g., forge-arbiter-platform)","default":"forge-arbiter-platform"},"federated_auth_claims":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Federated Auth Claims","description":"Federated Auth JWT claims (sub, email, email_verified, name, provider)"},"active_toolkit":{"items":{"type":"string"},"type":"array","title":"Active Toolkit","description":"List of tools in the agent's active toolkit"},"arguments":{"additionalProperties":true,"type":"object","title":"Arguments","description":"Arguments being passed to the tool"}},"type":"object","required":["tool_name"],"title":"AuthorizeToolRequest","description":"Request to authorize an MCP tool call."},"AuthorizeToolResponse":{"properties":{"authorized":{"type":"boolean","title":"Authorized","description":"Whether the tool call is authorized"},"decision":{"type":"string","title":"Decision","description":"Authorization decision (authorize|deny|narrow|escalate)"},"trust_tier":{"type":"integer","title":"Trust Tier","description":"Agent's effective trust tier"},"risk_score":{"type":"number","title":"Risk Score","description":"Session risk score (0.0-1.0)"},"reason":{"type":"string","title":"Reason","description":"Human-readable reason for decision"},"compliance_frameworks":{"items":{"type":"string"},"type":"array","title":"Compliance Frameworks","description":"Applicable compliance frameworks"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id","description":"Session ID for risk scoring continuity"},"contributing_factors":{"items":{"type":"string"},"type":"array","title":"Contributing Factors","description":"Factors that influenced the decision"},"data_classifications":{"items":{"type":"string"},"type":"array","title":"Data Classifications","description":"Detected data classifications"},"source_type":{"type":"string","title":"Source Type","description":"Detected source type","default":"internal"}},"type":"object","required":["authorized","decision","trust_tier","risk_score","reason"],"title":"AuthorizeToolResponse","description":"Response from tool authorization check."},"BundleListResponse":{"properties":{"bundles":{"items":{"$ref":"#/components/schemas/BundleResponse"},"type":"array","title":"Bundles"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["bundles","total"],"title":"BundleListResponse","description":"Paginated list of bundles."},"BundleResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"bundle_type":{"type":"string","title":"Bundle Type"},"status":{"type":"string","title":"Status"},"capsule_count":{"type":"integer","title":"Capsule Count"},"price":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Price"},"currency":{"type":"string","title":"Currency"},"bundle_url":{"type":"string","title":"Bundle Url"},"checkout_url":{"type":"string","title":"Checkout Url"},"invoice_url":{"type":"string","title":"Invoice Url"},"checkout_mode":{"type":"string","title":"Checkout Mode"},"price_label":{"type":"string","title":"Price Label"},"pricing_basis":{"type":"string","title":"Pricing Basis"},"sales_ready":{"type":"boolean","title":"Sales Ready"},"buyer_summary":{"type":"string","title":"Buyer Summary"},"creator_id":{"type":"string","title":"Creator Id"},"purchase_count":{"type":"integer","title":"Purchase Count","default":0},"view_count":{"type":"integer","title":"View Count","default":0},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"cover_capsule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cover Capsule Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","description","bundle_type","status","capsule_count","price","currency","bundle_url","checkout_url","invoice_url","checkout_mode","price_label","pricing_basis","sales_ready","buyer_summary","creator_id","created_at","updated_at"],"title":"BundleResponse","description":"Bundle metadata returned by API."},"CandidateLifecycleRequest":{"properties":{"action":{"$ref":"#/components/schemas/AgentExperienceLifecycleAction"},"reason":{"$ref":"#/components/schemas/AgentExperienceLifecycleReason"},"owner_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Owner Id"},"tenant_id":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["action","reason"],"title":"CandidateLifecycleRequest","description":"A bounded, attributable private-candidate lifecycle decision."},"CapsuleDeleteResponse":{"properties":{"deleted":{"type":"boolean","title":"Deleted","default":true},"id":{"type":"string","title":"Id"},"deleted_at":{"type":"string","title":"Deleted At"}},"type":"object","required":["id","deleted_at"],"title":"CapsuleDeleteResponse","description":"Confirmation body for a successful Froggit delete.\n\nRound 15 audit N-6: DELETE /capsules/{id} previously returned 204\nNo Content with an empty body, so callers had no way to confirm\ndeletion happened. Combined with the cache leak fix in a675fd48,\nthis lets clients verify both that the delete succeeded AND when\nit happened."},"CapsuleFactoryFinalizationRequest":{"properties":{"authorization_manifest_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Authorization Manifest Sha256"},"terminal_receipt_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Terminal Receipt Sha256"},"run_receipt_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$","title":"Run Receipt Sha256"},"invocation_id":{"type":"string","pattern":"^[0-9a-f]{32}$","title":"Invocation Id"},"run_status":{"type":"string","pattern":"^(completed|manual_review_required)$","title":"Run Status"},"accepted_count":{"type":"integer","maximum":150.0,"minimum":0.0,"title":"Accepted Count"},"pipeline_proven_count":{"type":"integer","maximum":150.0,"minimum":0.0,"title":"Pipeline Proven Count"},"failed_count":{"type":"integer","maximum":150.0,"minimum":0.0,"title":"Failed Count"}},"additionalProperties":false,"type":"object","required":["authorization_manifest_sha256","terminal_receipt_sha256","run_receipt_sha256","invocation_id","run_status","accepted_count","pipeline_proven_count","failed_count"],"title":"CapsuleFactoryFinalizationRequest"},"CapsuleFactoryFinalizationResponse":{"properties":{"status":{"type":"string","title":"Status"},"reservation_id":{"type":"string","title":"Reservation Id"},"amount":{"type":"integer","title":"Amount"},"consumed":{"type":"integer","title":"Consumed"},"released":{"type":"integer","title":"Released"},"held":{"type":"integer","title":"Held"},"attempts_used":{"type":"integer","title":"Attempts Used"},"committed_count":{"type":"integer","title":"Committed Count"},"abandoned_count":{"type":"integer","title":"Abandoned Count"},"exact_success":{"type":"boolean","title":"Exact Success"},"duplicate":{"type":"boolean","title":"Duplicate"}},"additionalProperties":false,"type":"object","required":["status","reservation_id","amount","consumed","released","held","attempts_used","committed_count","abandoned_count","exact_success","duplicate"],"title":"CapsuleFactoryFinalizationResponse"},"CapsuleFactoryPreflightResponse":{"properties":{"status":{"type":"string","title":"Status"},"tenant_id":{"type":"string","title":"Tenant Id"},"source_revision":{"type":"string","title":"Source Revision"},"schema_version":{"type":"integer","title":"Schema Version"},"temporal_ready":{"type":"boolean","title":"Temporal Ready"},"temporal_worker_capability_ready":{"type":"boolean","title":"Temporal Worker Capability Ready"},"temporal_worker_readiness_sha256":{"type":"string","title":"Temporal Worker Readiness Sha256"},"entitlement_status":{"type":"string","title":"Entitlement Status"},"entitlement_period_start":{"type":"string","title":"Entitlement Period Start"},"entitlement_period_end":{"type":"string","title":"Entitlement Period End"},"capsule_limit":{"type":"integer","title":"Capsule Limit"},"capsule_used":{"type":"integer","title":"Capsule Used"},"capsule_remaining":{"type":"integer","title":"Capsule Remaining"},"bounded_factory_create_route":{"type":"boolean","title":"Bounded Factory Create Route"},"factory_create_interval_ms":{"type":"integer","title":"Factory Create Interval Ms"},"rate_limit_floor_rpm":{"type":"integer","title":"Rate Limit Floor Rpm"},"rate_limit_redis_coordinated":{"type":"boolean","title":"Rate Limit Redis Coordinated"},"rate_limit_minute_remaining":{"type":"integer","title":"Rate Limit Minute Remaining"},"rate_limit_hour_limit":{"type":"integer","title":"Rate Limit Hour Limit"},"rate_limit_hour_remaining":{"type":"integer","title":"Rate Limit Hour Remaining"},"entry_pipeline_required":{"type":"boolean","title":"Entry Pipeline Required"},"embedding_ready":{"type":"boolean","title":"Embedding Ready"},"embedding_dimensions":{"type":"integer","title":"Embedding Dimensions"},"embedding_model_fingerprint":{"type":"string","title":"Embedding Model Fingerprint"},"audit_encryption_ready":{"type":"boolean","title":"Audit Encryption Ready"}},"type":"object","required":["status","tenant_id","source_revision","schema_version","temporal_ready","temporal_worker_capability_ready","temporal_worker_readiness_sha256","entitlement_status","entitlement_period_start","entitlement_period_end","capsule_limit","capsule_used","capsule_remaining","bounded_factory_create_route","factory_create_interval_ms","rate_limit_floor_rpm","rate_limit_redis_coordinated","rate_limit_minute_remaining","rate_limit_hour_limit","rate_limit_hour_remaining","entry_pipeline_required","embedding_ready","embedding_dimensions","embedding_model_fingerprint","audit_encryption_ready"],"title":"CapsuleFactoryPreflightResponse"},"CapsuleFactoryReservationRequest":{"properties":{"authorization_manifest_sha256":{"type":"string","maxLength":64,"minLength":64,"title":"Authorization Manifest Sha256"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"capsule_count":{"type":"integer","title":"Capsule Count"}},"additionalProperties":false,"type":"object","required":["authorization_manifest_sha256","expires_at","capsule_count"],"title":"CapsuleFactoryReservationRequest"},"CapsuleFactoryReservationResponse":{"properties":{"status":{"type":"string","title":"Status"},"reservation_id":{"type":"string","title":"Reservation Id"},"capsule_count":{"type":"integer","title":"Capsule Count"},"remaining":{"type":"integer","title":"Remaining"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["status","reservation_id","capsule_count","remaining","expires_at"],"title":"CapsuleFactoryReservationResponse"},"CapsuleJobStatusResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"workflow_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workflow Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"state":{"type":"string","title":"State","default":"unknown"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"current_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Phase"},"phases":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Phases"},"capsule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"retry_count":{"type":"integer","title":"Retry Count","default":0},"poll":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poll"}},"type":"object","required":["job_id"],"title":"CapsuleJobStatusResponse"},"CapsuleListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/CapsuleResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"},"total_pages":{"type":"integer","title":"Total Pages"},"has_more":{"type":"boolean","title":"Has More","default":false},"offset":{"type":"integer","title":"Offset","default":0}},"type":"object","required":["items","total","page","per_page","total_pages"],"title":"CapsuleListResponse","description":"Paginated list of Froggits."},"CapsuleProvenanceProofResponse":{"properties":{"capsule_id":{"type":"string","title":"Capsule Id"},"visibility":{"type":"string","const":"public","title":"Visibility"},"content_hash":{"type":"string","title":"Content Hash","description":"SHA-256 hash of the Froggit content."},"content_hash_algorithm":{"type":"string","title":"Content Hash Algorithm","default":"sha256:utf8"},"merkle_root":{"type":"string","title":"Merkle Root","description":"Domain-separated hash-chain root."},"merkle_algorithm":{"type":"string","title":"Merkle Algorithm","default":"forge-capsule-merkle:v2"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"parent_content_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Content Hash"},"parent_merkle_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Merkle Root"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"issued_at":{"type":"string","title":"Issued At"},"proof_expires_at":{"type":"string","title":"Proof Expires At"},"verification_status":{"type":"string","title":"Verification Status"},"provenance_status":{"type":"string","title":"Provenance Status"},"safety_status":{"type":"string","title":"Safety Status"},"quality_status":{"type":"string","title":"Quality Status"},"curation_status":{"type":"string","title":"Curation Status"},"evidence_level":{"type":"string","title":"Evidence Level"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"sources_cited":{"items":{"type":"string"},"type":"array","title":"Sources Cited"},"source_url_specificity":{"type":"string","title":"Source Url Specificity"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"answer_eligible":{"type":"boolean","title":"Answer Eligible"},"contains_disputed_claims":{"type":"boolean","title":"Contains Disputed Claims"},"requires_reverification":{"type":"boolean","title":"Requires Reverification"},"signing_kid":{"type":"string","title":"Signing Kid"},"signature_algorithm":{"type":"string","const":"Ed25519","title":"Signature Algorithm","default":"Ed25519"},"verification_key_url":{"type":"string","title":"Verification Key Url","default":"/.well-known/forge-signing-key.json"},"canonicalization":{"type":"string","title":"Canonicalization","description":"Rules used to canonicalize signed JSON."},"signed_payload":{"additionalProperties":true,"type":"object","title":"Signed Payload","description":"Exact JSON object covered by the JWS."},"payload_hash":{"type":"string","title":"Payload Hash"},"protected":{"type":"string","title":"Protected"},"payload":{"type":"string","title":"Payload"},"signature":{"type":"string","title":"Signature"},"jws":{"type":"string","title":"Jws"}},"type":"object","required":["capsule_id","visibility","content_hash","merkle_root","issued_at","proof_expires_at","verification_status","provenance_status","safety_status","quality_status","curation_status","evidence_level","source_url_specificity","answer_eligible","contains_disputed_claims","requires_reverification","signing_kid","canonicalization","signed_payload","payload_hash","protected","payload","signature","jws"],"title":"CapsuleProvenanceProofResponse","description":"Externally verifiable provenance proof for a public Froggit."},"CapsuleResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"type":{"type":"string","title":"Type"},"owner_id":{"type":"string","title":"Owner Id"},"owner_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Display Name"},"shared_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared Via"},"grant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grant Id"},"source_tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Tenant Id"},"source_tenant_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Tenant Name"},"granted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted At"},"trust_level":{"type":"string","title":"Trust Level"},"version":{"type":"string","title":"Version"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"view_count":{"type":"integer","title":"View Count"},"fork_count":{"type":"integer","title":"Fork Count"},"is_archived":{"type":"boolean","title":"Is Archived"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"verification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"evidence_level":{"type":"string","title":"Evidence Level","default":"ungraded"},"answer_eligible":{"type":"boolean","title":"Answer Eligible","default":false},"reliability_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reliability Tier"},"quality_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Status"},"requires_reverification":{"type":"boolean","title":"Requires Reverification","default":false},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"integrity_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Integrity Status"},"provenance_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provenance Status"},"merkle_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Merkle Root"},"lineage_valid":{"type":"boolean","title":"Lineage Valid","default":true},"lineage_repair_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lineage Repair Action"},"lineage_repaired_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lineage Repaired At"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"original_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Language"},"source_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Language"},"target_language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Language"},"language_metadata_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language Metadata Version"},"language_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Language Confidence"},"needs_english_translation":{"type":"boolean","title":"Needs English Translation","default":false},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth"},"visibility":{"type":"string","enum":["public","private","shared"],"title":"Visibility","default":"public"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"external_source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Source Url"},"citations":{"items":{"type":"string"},"type":"array","title":"Citations"},"knowledge_as_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knowledge As Of"},"post_create_job":{"anyOf":[{"$ref":"#/components/schemas/CapsuleJobStatusResponse"},{"type":"null"}]},"reconciliation_required":{"type":"boolean","title":"Reconciliation Required","default":false},"reconciliation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reconciliation Reason"},"standing":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Standing"},"superseded_by":{"items":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"array","title":"Superseded By"},"open_contradictions":{"items":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object"},"type":"array","title":"Open Contradictions"},"evidence_grade":{"type":"boolean","title":"Evidence Grade","description":"Finding a froggit does not certify it as answer evidence.","readOnly":true}},"type":"object","required":["id","title","content","type","owner_id","trust_level","version","parent_id","tags","metadata","view_count","fork_count","is_archived","created_at","updated_at","evidence_grade"],"title":"CapsuleResponse","description":"Froggit response model."},"CapsuleSyncItem":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content"},"capsule_type":{"type":"string","title":"Capsule Type","default":"research"},"domain":{"type":"string","title":"Domain","default":"unknown"},"confidence":{"type":"number","title":"Confidence","default":1.0},"created_at":{"type":"string","title":"Created At","default":""},"updated_at":{"type":"string","title":"Updated At","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"source_url":{"type":"string","title":"Source Url","default":""}},"type":"object","required":["id","title","content"],"title":"CapsuleSyncItem","description":"A Froggit formatted for Obsidian sync."},"CapsuleType":{"type":"string","enum":["INSIGHT","DECISION","LESSON","WARNING","PRINCIPLE","MEMORY","KNOWLEDGE","CODE","CONFIG","TEMPLATE","DOCUMENT","RESEARCH","PUBLIC_SOURCE_MAP","SYSTEM_META","ARCHITECTURE_TOPOLOGY","SUBSYSTEM_IDENTITY","FRAMEWORK_DETECTION","DEPENDENCY_GRAPH","COMPLEXITY_PROFILE","SECURITY_FINDING","DATA_PERSISTENCE_MODEL","DEPLOYMENT_TOPOLOGY","MAINTAINABILITY_SCORE","TEMPORAL_PROFILE"],"title":"CapsuleType","description":"Froggit content types with stable wire values for compatibility."},"CapsuleVisibility":{"type":"string","enum":["private","org","matter","public"],"title":"CapsuleVisibility"},"CartResponse":{"properties":{"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"total":{"type":"number","title":"Total"},"item_count":{"type":"integer","title":"Item Count"}},"type":"object","required":["items","total","item_count"],"title":"CartResponse","description":"Cart information response."},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","maxLength":128,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":72,"minLength":8,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest","description":"Password change request."},"ClaimSearchRequest":{"properties":{"query":{"type":"string","maxLength":500,"minLength":1,"title":"Query"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":10},"include_disputed":{"type":"boolean","title":"Include Disputed","default":false}},"type":"object","required":["query"],"title":"ClaimSearchRequest"},"ConflictResolution":{"type":"string","enum":["higher_trust","newer_timestamp","manual_review","merge","local_wins","remote_wins"],"title":"ConflictResolution","description":"How to resolve sync conflicts."},"ConflictResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Conflict message","default":"Resource conflict"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code","default":"CONFLICT"}},"type":"object","title":"ConflictResponse","description":"Response for conflict errors (409)."},"ConsentChoices":{"properties":{"necessary":{"type":"boolean","title":"Necessary","default":true},"analytics":{"type":"boolean","title":"Analytics","default":false},"marketing":{"type":"boolean","title":"Marketing","default":false}},"type":"object","title":"ConsentChoices","description":"Consent choices. Analytics and marketing default off."},"ConstitutionalAnalysisResponse":{"properties":{"proposal_id":{"type":"string","title":"Proposal Id"},"analyzed_at":{"type":"string","title":"Analyzed At"},"ethical_score":{"type":"integer","title":"Ethical Score"},"fairness_score":{"type":"integer","title":"Fairness Score"},"safety_score":{"type":"integer","title":"Safety Score"},"transparency_score":{"type":"integer","title":"Transparency Score"},"overall_score":{"type":"number","title":"Overall Score"},"concerns":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Concerns"},"summary":{"type":"string","title":"Summary"},"recommendation":{"type":"string","title":"Recommendation"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["proposal_id","analyzed_at","ethical_score","fairness_score","safety_score","transparency_score","overall_score","concerns","summary","recommendation","confidence"],"title":"ConstitutionalAnalysisResponse","description":"Constitutional AI analysis response."},"ContradictionResponse":{"properties":{"capsule_a":{"additionalProperties":true,"type":"object","title":"Capsule A"},"capsule_b":{"additionalProperties":true,"type":"object","title":"Capsule B"},"edge":{"$ref":"#/components/schemas/SemanticEdgeResponse"},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},"type":"object","required":["capsule_a","capsule_b","edge","severity"],"title":"ContradictionResponse","description":"Contradiction between Froggits."},"CreateDepartmentRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"CreateDepartmentRequest"},"CreateOrgRequest":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"settings":{"additionalProperties":true,"type":"object","title":"Settings"}},"type":"object","required":["name"],"title":"CreateOrgRequest"},"CreateRetentionRequest":{"properties":{"employee_user_id":{"type":"string","title":"Employee User Id"},"default_policy":{"$ref":"#/components/schemas/RetentionPolicy","default":"org_retains"},"exceptions":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Exceptions"},"notice_period_days":{"type":"integer","title":"Notice Period Days","default":30}},"type":"object","required":["employee_user_id"],"title":"CreateRetentionRequest"},"CreateTokenRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","description":"Human-readable name for the token (e.g., 'Obsidian Sync')","examples":["Obsidian Sync","CI/CD Pipeline","Mobile App"]},"scopes":{"items":{"$ref":"#/components/schemas/PATScope"},"type":"array","title":"Scopes","description":"Scopes/permissions to grant to this token"},"expires_in_days":{"anyOf":[{"type":"integer","maximum":365.0,"minimum":1.0},{"type":"null"}],"title":"Expires In Days","description":"Number of days until the token expires (None = never expires)"}},"type":"object","required":["name"],"title":"CreateTokenRequest","description":"Request to create a new Personal Access Token."},"CustomerTenantRequest":{"properties":{"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"}},"additionalProperties":false,"type":"object","required":["customer_id","name"],"title":"CustomerTenantRequest"},"CustomerTenantResponse":{"properties":{"customer_id":{"type":"string","format":"uuid","title":"Customer Id"},"tenant_id":{"type":"string","format":"uuid","title":"Tenant Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","const":"ready","title":"Status"}},"type":"object","required":["customer_id","tenant_id","name","status"],"title":"CustomerTenantResponse"},"DeactivateAccountRequest":{"properties":{"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"},"reason":{"type":"string","maxLength":500,"title":"Reason","default":"user_requested"}},"type":"object","required":["password"],"title":"DeactivateAccountRequest","description":"Request to deactivate own account."},"DelegationResponse":{"properties":{"id":{"type":"string","title":"Id"},"delegator_id":{"type":"string","title":"Delegator Id"},"delegate_id":{"type":"string","title":"Delegate Id"},"proposal_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Proposal Types"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["id","delegator_id","delegate_id","proposal_types","is_active","created_at","expires_at"],"title":"DelegationResponse","description":"Delegation response."},"EdgeConflictPolicy":{"type":"string","enum":["mergecontradictions"],"title":"EdgeConflictPolicy","description":"How to handle conflicting peer positions on the same claim pair."},"EmergencyHaltResponse":{"properties":{"level":{"type":"string","title":"Level"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"initiated_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initiated By"},"initiated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Initiated At"},"is_halted":{"type":"boolean","title":"Is Halted"},"resume_approvals":{"items":{"type":"string"},"type":"array","title":"Resume Approvals"}},"type":"object","required":["level","is_halted"],"title":"EmergencyHaltResponse","description":"Emergency halt status response."},"EnrollmentRequest":{"properties":{"enrollment_token":{"type":"string","maxLength":2048,"minLength":1,"title":"Enrollment Token"}},"additionalProperties":false,"type":"object","required":["enrollment_token"],"title":"EnrollmentRequest"},"EnrollmentSetupResponse":{"properties":{"secret":{"type":"string","title":"Secret"},"provisioning_uri":{"type":"string","title":"Provisioning Uri"},"backup_codes":{"items":{"type":"string"},"type":"array","title":"Backup Codes"}},"type":"object","required":["secret","provisioning_uri","backup_codes"],"title":"EnrollmentSetupResponse"},"EnrollmentVerifyRequest":{"properties":{"enrollment_token":{"type":"string","maxLength":2048,"minLength":1,"title":"Enrollment Token"},"code":{"type":"string","pattern":"^[0-9]{6}$","title":"Code"}},"additionalProperties":false,"type":"object","required":["enrollment_token","code"],"title":"EnrollmentVerifyRequest"},"ErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Human-readable error message"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Machine-readable error code"}},"type":"object","required":["detail"],"title":"ErrorResponse","description":"Standard error response for API endpoints."},"FederationStatsResponse":{"properties":{"total_peers":{"type":"integer","title":"Total Peers"},"active_peers":{"type":"integer","title":"Active Peers"},"pending_peers":{"type":"integer","title":"Pending Peers"},"total_federated_capsules":{"type":"integer","title":"Total Federated Capsules"},"synced_capsules":{"type":"integer","title":"Synced Capsules"},"pending_capsules":{"type":"integer","title":"Pending Capsules"},"conflicted_capsules":{"type":"integer","title":"Conflicted Capsules"},"total_federated_edges":{"type":"integer","title":"Total Federated Edges"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"syncs_today":{"type":"integer","title":"Syncs Today"},"syncs_failed_today":{"type":"integer","title":"Syncs Failed Today"},"network_health":{"additionalProperties":true,"type":"object","title":"Network Health"}},"type":"object","required":["total_peers","active_peers","pending_peers","total_federated_capsules","synced_capsules","pending_capsules","conflicted_capsules","total_federated_edges","last_sync_at","syncs_today","syncs_failed_today","network_health"],"title":"FederationStatsResponse","description":"Response containing federation statistics."},"ForbiddenResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Permission denied message","default":"Access denied"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code","default":"FORBIDDEN"}},"type":"object","title":"ForbiddenResponse","description":"Response for authorization errors (403)."},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","maxLength":320,"minLength":3,"title":"Email","description":"Email address (permissive — deliverability is not checked here to avoid user enumeration)."}},"type":"object","required":["email"],"title":"ForgotPasswordRequest","description":"Request to initiate password reset.\n\nR86 N2 (HIGH): Fig reported user enumeration via /forgot-password —\nregistered@real.com → 200, notexist@fake.invalid → 422. The 422\ncame from Pydantic's ``EmailStr``: by default email-validator\nverifies DNS deliverability, and ``.invalid`` is a reserved\nnon-routable TLD. The 200/422 delta let an attacker enumerate\nwhich email domains (and by extension, accounts) are real.\n\nThe handler body already returns a generic 200 regardless of\nwhether the user exists — the leak was purely at the validation\nlayer. Switch to plain ``str`` with a permissive format check so\nany plausibly-formatted email yields the generic 200, and only\na grossly malformed input (no ``@``) returns 422."},"GeneticVariantInput":{"properties":{"notation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notation","description":"Variant notation (e.g., NM_000546.6:c.215C>G)"},"gene_symbol":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gene Symbol","description":"Gene symbol (e.g., BRCA1)"},"pathogenicity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pathogenicity","description":"Pathogenicity classification"},"zygosity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zygosity","description":"Zygosity: heterozygous, homozygous"}},"type":"object","title":"GeneticVariantInput","description":"A genetic variant input."},"GhostCouncilHistoricalPatterns":{"properties":{"similar_proposals":{"type":"integer","title":"Similar Proposals"},"typical_outcome":{"type":"string","title":"Typical Outcome"},"participation_rate":{"type":"number","title":"Participation Rate"},"votes_cast":{"type":"integer","title":"Votes Cast","default":0},"eligible_voters":{"type":"integer","title":"Eligible Voters","default":0}},"type":"object","required":["similar_proposals","typical_outcome","participation_rate"],"title":"GhostCouncilHistoricalPatterns","description":"Historical patterns for Ghost Council recommendation."},"GhostCouncilMemberResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"weight":{"type":"number","title":"Weight"},"persona":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Persona"}},"type":"object","required":["id","name","role","weight"],"title":"GhostCouncilMemberResponse","description":"Ghost Council member info."},"GhostCouncilResponse":{"properties":{"proposal_id":{"type":"string","title":"Proposal Id"},"recommendation":{"type":"string","title":"Recommendation"},"confidence":{"type":"number","title":"Confidence"},"reasoning":{"type":"string","title":"Reasoning"},"historical_patterns":{"$ref":"#/components/schemas/GhostCouncilHistoricalPatterns"}},"type":"object","required":["proposal_id","recommendation","confidence","reasoning","historical_patterns"],"title":"GhostCouncilResponse","description":"Ghost Council recommendation."},"GoogleAuthRequest":{"properties":{"credential":{"type":"string","title":"Credential","description":"Google ID token from Sign-In"},"client_type":{"type":"string","enum":["cascade","shop"],"title":"Client Type","description":"Client type for redirect URI selection","default":"cascade"}},"type":"object","required":["credential"],"title":"GoogleAuthRequest","description":"Request for Google OAuth authentication."},"GoogleAuthResponse":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"},"expires_in":{"type":"integer","title":"Expires In"},"user":{"$ref":"#/components/schemas/UserResponse"},"is_new_user":{"type":"boolean","title":"Is New User"}},"type":"object","required":["csrf_token","expires_in","user","is_new_user"],"title":"GoogleAuthResponse","description":"Response after Google OAuth authentication."},"GoogleLinkResponse":{"properties":{"linked":{"type":"boolean","title":"Linked"},"google_email":{"type":"string","title":"Google Email"}},"type":"object","required":["linked","google_email"],"title":"GoogleLinkResponse","description":"Response after linking Google account."},"GoogleLinkStatusResponse":{"properties":{"linked":{"type":"boolean","title":"Linked"},"google_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Email"},"has_local_password":{"type":"boolean","title":"Has Local Password"}},"type":"object","required":["linked","google_email","has_local_password"],"title":"GoogleLinkStatusResponse","description":"Safe current-user view of Google account linkage."},"GovernanceMetricsResponse":{"properties":{"timestamp":{"type":"string","title":"Timestamp"},"total_proposals":{"type":"integer","title":"Total Proposals"},"active_proposals":{"type":"integer","title":"Active Proposals"},"passed_proposals":{"type":"integer","title":"Passed Proposals"},"rejected_proposals":{"type":"integer","title":"Rejected Proposals"},"total_votes":{"type":"integer","title":"Total Votes"},"unique_voters":{"type":"integer","title":"Unique Voters"},"average_participation":{"type":"number","title":"Average Participation"},"average_pass_rate":{"type":"number","title":"Average Pass Rate"},"proposals_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Proposals By Type"},"proposals_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Proposals By Status"}},"type":"object","required":["timestamp","total_proposals","active_proposals","passed_proposals","rejected_proposals","total_votes","unique_voters","average_participation","average_pass_rate","proposals_by_type","proposals_by_status"],"title":"GovernanceMetricsResponse","description":"Governance system metrics."},"GrantBatchCreate":{"properties":{"grantee_tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Grantee Tenant Id"},"grantee_member_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Grantee Member Ids"},"capsule_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Capsule Ids"},"batch_name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Batch Name"}},"additionalProperties":false,"type":"object","required":["grantee_tenant_id","capsule_ids"],"title":"GrantBatchCreate"},"GrantCreate":{"properties":{"grantee_tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Grantee Tenant Id"},"grantee_member_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Grantee Member Ids"},"capsule_id":{"type":"string","maxLength":200,"minLength":1,"title":"Capsule Id"}},"additionalProperties":false,"type":"object","required":["grantee_tenant_id","capsule_id"],"title":"GrantCreate"},"GraphExplorerResponse":{"properties":{"nodes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Nodes"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Edges"},"communities":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Communities"},"metrics":{"additionalProperties":true,"type":"object","title":"Metrics"},"neighbors":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Neighbors"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"center_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Center Id"},"depth":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Depth"}},"type":"object","required":["nodes","edges","communities","metrics"],"title":"GraphExplorerResponse","description":"Response for graph exploration."},"GraphMetricsResponse":{"properties":{"total_nodes":{"type":"integer","title":"Total Nodes"},"total_edges":{"type":"integer","title":"Total Edges"},"density":{"type":"number","title":"Density"},"avg_clustering":{"type":"number","title":"Avg Clustering"},"connected_components":{"type":"integer","title":"Connected Components"},"diameter":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Diameter"},"node_distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Node Distribution"},"edge_distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Edge Distribution"}},"type":"object","required":["total_nodes","total_edges","density","avg_clustering","connected_components","diameter","node_distribution","edge_distribution"],"title":"GraphMetricsResponse","description":"Overall graph metrics."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthStatus":{"properties":{"status":{"type":"string","title":"Status","description":"Overall status: healthy, degraded, unhealthy"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"uptime_seconds":{"type":"number","title":"Uptime Seconds","description":"Application uptime in seconds"},"version":{"type":"string","title":"Version","default":"0.1.0"},"components":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Components","description":"Individual component health status"},"checks":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Checks","description":"Quick health check results"},"simulation_mode":{"additionalProperties":true,"type":"object","title":"Simulation Mode","description":"Simulation mode status for blockchain services"}},"type":"object","required":["status","uptime_seconds"],"title":"HealthStatus","description":"Overall health status response."},"InboundGrantSettings":{"properties":{"accept_inbound_grants":{"type":"boolean","title":"Accept Inbound Grants"}},"additionalProperties":false,"type":"object","required":["accept_inbound_grants"],"title":"InboundGrantSettings"},"InternalErrorResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Server error message","default":"Internal server error"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code","default":"INTERNAL_ERROR"}},"type":"object","title":"InternalErrorResponse","description":"Response for internal server errors (500)."},"KnowledgeGraphDemoCapsule":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"content":{"type":"string","title":"Content"},"domain":{"type":"string","title":"Domain"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"audiences":{"items":{"type":"string"},"type":"array","title":"Audiences"},"source_urls":{"items":{"type":"string"},"type":"array","title":"Source Urls"},"source_kind":{"type":"string","title":"Source Kind","default":"concept"},"trust_level":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trust Level"},"knowledge_as_of":{"type":"string","title":"Knowledge As Of","default":"2026-07-10"},"requires_refresh":{"type":"boolean","title":"Requires Refresh","default":false}},"type":"object","required":["id","slug","title","summary","content","domain"],"title":"KnowledgeGraphDemoCapsule"},"KnowledgeGraphDemoCopilotRequest":{"properties":{"message":{"type":"string","maxLength":600,"minLength":1,"title":"Message"},"capsule_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Id"},"selected_ids":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Selected Ids"},"audience":{"type":"string","enum":["all","explorer","student","professional","researcher"],"title":"Audience","default":"all"},"domain":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Domain"},"answer_mode":{"type":"string","enum":["concise","learn","connect","sources"],"title":"Answer Mode","default":"learn"}},"type":"object","required":["message"],"title":"KnowledgeGraphDemoCopilotRequest"},"KnowledgeGraphDemoCopilotResponse":{"properties":{"content":{"type":"string","title":"Content"},"citations":{"items":{"$ref":"#/components/schemas/KnowledgeGraphDemoSource"},"type":"array","title":"Citations"},"capsule_ids":{"items":{"type":"string"},"type":"array","title":"Capsule Ids"},"fallback":{"type":"boolean","title":"Fallback","default":false}},"type":"object","required":["content"],"title":"KnowledgeGraphDemoCopilotResponse"},"KnowledgeGraphDemoEdge":{"properties":{"id":{"type":"string","title":"Id"},"source_id":{"type":"string","title":"Source Id"},"target_id":{"type":"string","title":"Target Id"},"relationship_type":{"type":"string","title":"Relationship Type"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"source_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Title"},"target_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Title"}},"type":"object","required":["id","source_id","target_id","relationship_type"],"title":"KnowledgeGraphDemoEdge"},"KnowledgeGraphDemoResponse":{"properties":{"language":{"type":"string","const":"en","title":"Language","default":"en"},"audience":{"type":"string","enum":["all","explorer","student","professional","researcher"],"title":"Audience"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"seed":{"type":"string","title":"Seed","default":"general_knowledge_graph_demo_v1"},"corpus_version":{"type":"string","title":"Corpus Version","default":"connected-knowledge-2026.07"},"knowledge_as_of":{"type":"string","title":"Knowledge As Of","default":"2026-07-10"},"serving":{"type":"string","enum":["verified_persisted","canonical_fallback"],"title":"Serving","default":"verified_persisted"},"stats":{"$ref":"#/components/schemas/KnowledgeGraphDemoStats"},"capsules":{"items":{"$ref":"#/components/schemas/KnowledgeGraphDemoCapsule"},"type":"array","title":"Capsules"},"edges":{"items":{"$ref":"#/components/schemas/KnowledgeGraphDemoEdge"},"type":"array","title":"Edges"},"sources":{"items":{"$ref":"#/components/schemas/KnowledgeGraphDemoSource"},"type":"array","title":"Sources"}},"type":"object","required":["audience","stats","capsules","edges","sources"],"title":"KnowledgeGraphDemoResponse"},"KnowledgeGraphDemoSource":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","label","url"],"title":"KnowledgeGraphDemoSource"},"KnowledgeGraphDemoStats":{"properties":{"capsule_count":{"type":"integer","title":"Capsule Count"},"edge_count":{"type":"integer","title":"Edge Count"},"domain_count":{"type":"integer","title":"Domain Count"},"source_count":{"type":"integer","title":"Source Count"},"path_count":{"type":"integer","title":"Path Count"}},"type":"object","required":["capsule_count","edge_count","domain_count","source_count","path_count"],"title":"KnowledgeGraphDemoStats"},"KnowledgeQueryRequest":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":5,"title":"Question","description":"Question in natural language"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":20},"include_results":{"type":"boolean","title":"Include Results","description":"Include raw results","default":true},"debug":{"type":"boolean","title":"Debug","description":"Include Cypher query in response","default":false}},"type":"object","required":["question"],"title":"KnowledgeQueryRequest","description":"Natural language query request."},"KnowledgeQueryResponse":{"properties":{"question":{"type":"string","title":"Question"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"result_count":{"type":"integer","title":"Result Count"},"execution_time_ms":{"type":"number","title":"Execution Time Ms"},"complexity":{"type":"string","title":"Complexity"},"explanation":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Explanation"},"cypher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cypher"},"results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Results"}},"type":"object","required":["question","answer","result_count","execution_time_ms","complexity"],"title":"KnowledgeQueryResponse","description":"Knowledge query response."},"LinkEmployeeRequest":{"properties":{"user_id":{"type":"string","title":"User Id"},"role_name":{"type":"string","title":"Role Name","default":"associate"},"department_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Department Id"}},"type":"object","required":["user_id"],"title":"LinkEmployeeRequest"},"ListingListResponse":{"properties":{"listings":{"items":{"$ref":"#/components/schemas/ListingResponse"},"type":"array","title":"Listings"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["listings","total"],"title":"ListingListResponse","description":"List of listings."},"ListingResponse":{"properties":{"id":{"type":"string","title":"Id"},"capsule_id":{"type":"string","title":"Capsule Id"},"seller_id":{"type":"string","title":"Seller Id"},"price":{"type":"number","title":"Price"},"currency":{"type":"string","title":"Currency"},"price_wei":{"type":"string","title":"Price Wei"},"price_usd":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price Usd"},"price_usd_as_of":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Price Usd As Of"},"suggested_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Suggested Price"},"value_tier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Tier"},"pricing_signal":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing Signal"},"listing_url":{"type":"string","title":"Listing Url"},"checkout_url":{"type":"string","title":"Checkout Url"},"checkout_mode":{"type":"string","title":"Checkout Mode"},"buyer_intent_api":{"type":"string","title":"Buyer Intent Api"},"purchase_api":{"type":"string","title":"Purchase Api"},"price_label":{"type":"string","title":"Price Label"},"pricing_basis":{"type":"string","title":"Pricing Basis"},"sales_ready":{"type":"boolean","title":"Sales Ready"},"buyer_summary":{"type":"string","title":"Buyer Summary"},"license_type":{"type":"string","title":"License Type"},"status":{"type":"string","title":"Status"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"preview_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Preview Content"},"quality_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Status"},"answer_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Answer Eligible"},"trust_level":{"anyOf":[{"type":"integer"},{"type":"number"},{"type":"string"},{"type":"null"}],"title":"Trust Level"},"evidence_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Level"},"source_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Count"},"quality_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality Score"},"view_count":{"type":"integer","title":"View Count"},"purchase_count":{"type":"integer","title":"Purchase Count"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["id","capsule_id","seller_id","price","currency","price_wei","suggested_price","listing_url","checkout_url","checkout_mode","buyer_intent_api","purchase_api","price_label","pricing_basis","sales_ready","buyer_summary","license_type","status","title","description","tags","preview_content","view_count","purchase_count","created_at","published_at"],"title":"ListingResponse","description":"Listing information response."},"LoginMFARequiredResponse":{"properties":{"mfa_required":{"type":"boolean","const":true,"title":"Mfa Required","default":true},"mfa_token":{"type":"string","title":"Mfa Token"},"expires_in":{"type":"integer","title":"Expires In"},"message":{"type":"string","title":"Message","default":"MFA verification required"}},"type":"object","required":["mfa_token","expires_in"],"title":"LoginMFARequiredResponse","description":"Response when MFA verification is required to complete login.\n\nSECURITY FIX (Audit 6 - Session 3): Two-step login flow for MFA users.\nPassword was verified, but user must now provide TOTP/backup code."},"LoginRequest":{"properties":{"username":{"type":"string","maxLength":255,"minLength":1,"title":"Username"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest","description":"User login request."},"LoginResponse":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"},"expires_in":{"type":"integer","title":"Expires In"},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["csrf_token","expires_in","user"],"title":"LoginResponse","description":"Login response with CSRF token (tokens are in httpOnly cookies)."},"MFAEnrollmentRequiredResponse":{"properties":{"mfa_enrollment_required":{"type":"boolean","const":true,"title":"Mfa Enrollment Required","default":true},"enrollment_token":{"type":"string","title":"Enrollment Token"},"expires_in":{"type":"integer","title":"Expires In","default":300},"message":{"type":"string","title":"Message","default":"Set up your authenticator before signing in."}},"type":"object","required":["enrollment_token"],"title":"MFAEnrollmentRequiredResponse"},"MFALoginVerifyRequest":{"properties":{"mfa_token":{"type":"string","maxLength":2048,"title":"Mfa Token","description":"MFA pending token from login response"},"code":{"type":"string","maxLength":14,"minLength":6,"title":"Code","description":"TOTP code (6 digits) or backup code (XXXX-XXXX-XXXX)"}},"type":"object","required":["mfa_token","code"],"title":"MFALoginVerifyRequest","description":"Request to complete MFA login verification."},"MFASetupRequest":{"properties":{"current_password":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Current Password"}},"type":"object","title":"MFASetupRequest","description":"Request to initialize MFA setup.\n\nLocal/password accounts must re-enter their current password before\nthe server returns a new TOTP secret or one-time backup codes."},"MFASetupResponse":{"properties":{"secret":{"type":"string","title":"Secret"},"provisioning_uri":{"type":"string","title":"Provisioning Uri"},"qr_code":{"type":"string","title":"Qr Code"},"backup_codes":{"items":{"type":"string"},"type":"array","title":"Backup Codes"}},"type":"object","required":["secret","provisioning_uri","qr_code","backup_codes"],"title":"MFASetupResponse","description":"Response for MFA setup."},"MFAStatusResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"verified":{"type":"boolean","title":"Verified"},"backup_codes_remaining":{"type":"integer","title":"Backup Codes Remaining"}},"type":"object","required":["enabled","verified","backup_codes_remaining"],"title":"MFAStatusResponse","description":"MFA status response."},"MFAVerifyRequest":{"properties":{"code":{"type":"string","maxLength":8,"minLength":6,"title":"Code","description":"TOTP or backup code"}},"type":"object","required":["code"],"title":"MFAVerifyRequest","description":"Request to verify MFA code."},"MaintenanceModeResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"enabled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Enabled At"},"enabled_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Enabled By"},"message":{"type":"string","title":"Message"}},"type":"object","required":["enabled","message"],"title":"MaintenanceModeResponse","description":"Maintenance mode status response."},"MarketplaceBuyerIntentItem":{"properties":{"listing_id":{"type":"string","maxLength":180,"minLength":1,"title":"Listing Id"},"capsule_id":{"type":"string","maxLength":180,"minLength":1,"title":"Capsule Id"},"title":{"type":"string","maxLength":240,"minLength":1,"title":"Title"},"displayed_price":{"type":"string","maxLength":80,"title":"Displayed Price","default":""},"pricing_basis":{"type":"string","maxLength":240,"title":"Pricing Basis","default":""},"buyer_summary":{"anyOf":[{"type":"string","maxLength":360},{"type":"null"}],"title":"Buyer Summary"},"currency":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Currency"},"price":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price"}},"type":"object","required":["listing_id","capsule_id","title"],"title":"MarketplaceBuyerIntentItem","description":"Public checkout request line item captured before assisted payment."},"MarketplaceBuyerIntentRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MarketplaceBuyerIntentItem"},"type":"array","maxItems":25,"minItems":1,"title":"Items"},"total_label":{"type":"string","maxLength":80,"title":"Total Label","default":""},"currency":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Currency"},"cart_reference":{"type":"string","maxLength":180,"title":"Cart Reference","default":"marketplace-cart"},"preferred_payment_path":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Preferred Payment Path"},"buyer_email":{"type":"string","maxLength":254,"minLength":3,"title":"Buyer Email"},"organization":{"anyOf":[{"type":"string","maxLength":180},{"type":"null"}],"title":"Organization"},"notes":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Notes"},"source":{"type":"string","maxLength":80,"title":"Source","default":"marketplace-cart"},"page_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Page Url"}},"type":"object","required":["items","buyer_email"],"title":"MarketplaceBuyerIntentRequest","description":"Public request to preserve assisted marketplace checkout details."},"MarketplaceBuyerIntentResponse":{"properties":{"intent_id":{"type":"string","title":"Intent Id"},"status":{"type":"string","title":"Status"},"support_email":{"type":"string","title":"Support Email"},"cart_reference":{"type":"string","title":"Cart Reference"},"item_count":{"type":"integer","title":"Item Count"},"message":{"type":"string","title":"Message"}},"type":"object","required":["intent_id","status","support_email","cart_reference","item_count","message"],"title":"MarketplaceBuyerIntentResponse","description":"Acknowledgement for a captured assisted checkout request."},"MarketplacePaymentConfigResponse":{"properties":{"recipient_address":{"type":"string","title":"Recipient Address"},"chain_id":{"type":"integer","title":"Chain Id"},"payment_asset":{"type":"string","title":"Payment Asset","default":"ETH"},"payment_network":{"type":"string","title":"Payment Network","default":"Base"},"payment_method":{"type":"string","title":"Payment Method","default":"base_l2_native_eth"}},"type":"object","required":["recipient_address","chain_id"],"title":"MarketplacePaymentConfigResponse","description":"Authoritative Web3 payment configuration for marketplace checkout."},"MessageResponse":{"properties":{"message":{"type":"string","title":"Message"},"success":{"type":"boolean","title":"Success","default":true}},"type":"object","required":["message"],"title":"MessageResponse","description":"Simple message response."},"MultiAgentResearchInsightRequest":{"properties":{"phenotypes":{"items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/PhenotypeInput"}]},"type":"array","title":"Phenotypes","description":"Phenotypes","default":[]},"genetic_variants":{"items":{"$ref":"#/components/schemas/GeneticVariantInput"},"type":"array","title":"Genetic Variants","description":"Genetic variants","default":[]},"research_context":{"items":{"type":"string"},"type":"array","title":"Research Context","description":"Research context notes","default":[]},"family_context":{"items":{"type":"string"},"type":"array","title":"Family Context","description":"Family or cohort context notes","default":[]},"demographics":{"anyOf":[{"$ref":"#/components/schemas/ResearchSubjectDemographics"},{"type":"null"}]},"wearable_data":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Wearable Data","description":"Wearable device data","default":[]}},"type":"object","title":"MultiAgentResearchInsightRequest","description":"Request for multi-agent research analysis."},"NotFoundResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Not found message","default":"Resource not found"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code","default":"NOT_FOUND"}},"type":"object","title":"NotFoundResponse","description":"Response for resource not found errors (404)."},"OAuthClientResponse":{"properties":{"client_id":{"type":"string","title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Secret"},"client_id_issued_at":{"type":"integer","title":"Client Id Issued At"},"client_secret_expires_at":{"type":"integer","title":"Client Secret Expires At","description":"Registration expiry for dynamic clients; 0 for manager clients.","default":0},"client_name":{"type":"string","title":"Client Name"},"redirect_uris":{"items":{"type":"string"},"type":"array","title":"Redirect Uris"},"scope":{"type":"string","title":"Scope"},"token_endpoint_auth_method":{"type":"string","title":"Token Endpoint Auth Method"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["client_id","client_id_issued_at","client_name","redirect_uris","scope","token_endpoint_auth_method"],"title":"OAuthClientResponse"},"ObsidianNoteUploadRequest":{"properties":{"path":{"type":"string","maxLength":1000,"minLength":1,"title":"Path"},"content":{"type":"string","maxLength":100000,"minLength":1,"title":"Content"}},"additionalProperties":false,"type":"object","required":["path","content"],"title":"ObsidianNoteUploadRequest","description":"An Obsidian note uploaded by the Forge Sync plugin."},"ObsidianNoteUploadResponse":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"capsule_id":{"type":"string","title":"Capsule Id"},"vault_id":{"type":"string","title":"Vault Id"},"note_path":{"type":"string","title":"Note Path"}},"type":"object","required":["capsule_id","vault_id","note_path"],"title":"ObsidianNoteUploadResponse","description":"Froggit creation result returned to the Obsidian plugin."},"PATCreatedResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"token_prefix":{"type":"string","title":"Token Prefix"},"scopes":{"items":{"$ref":"#/components/schemas/PATScope"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"token":{"type":"string","title":"Token","description":"The raw token - SAVE THIS! It cannot be retrieved again."}},"type":"object","required":["id","name","token_prefix","scopes","expires_at","last_used_at","is_active","created_at","token"],"title":"PATCreatedResponse","description":"Response when creating a new PAT (includes the raw token ONCE)."},"PATResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"token_prefix":{"type":"string","title":"Token Prefix"},"scopes":{"items":{"$ref":"#/components/schemas/PATScope"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","token_prefix","scopes","expires_at","last_used_at","is_active","created_at"],"title":"PATResponse","description":"PAT response (without sensitive data)."},"PATScope":{"type":"string","enum":["capsules:read","capsules:write","profile:read","aeos_tenant_read","aeos_tenant_write","aeos_tenant_admin","aeos_approval_read","aeos_approval_write","aeos_receipt_write","aeos_audit_read","aeos_egs_metrics_read","aeos_egs_metrics_write","aiwg_import","aiwg_read","mcp_admin_read","mcp_admin_write","*"],"title":"PATScope","description":"Scopes that limit what a PAT can access."},"PasswordStrengthRequest":{"properties":{"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["password"],"title":"PasswordStrengthRequest","description":"Request to check password strength."},"PasswordStrengthResponse":{"properties":{"length":{"type":"integer","title":"Length"},"has_uppercase":{"type":"boolean","title":"Has Uppercase"},"has_lowercase":{"type":"boolean","title":"Has Lowercase"},"has_digit":{"type":"boolean","title":"Has Digit"},"has_special":{"type":"boolean","title":"Has Special"},"score":{"type":"integer","title":"Score"},"label":{"type":"string","title":"Label"},"feedback":{"items":{"type":"string"},"type":"array","title":"Feedback"},"entropy_based":{"type":"boolean","title":"Entropy Based"}},"type":"object","required":["length","has_uppercase","has_lowercase","has_digit","has_special","score","label","feedback","entropy_based"],"title":"PasswordStrengthResponse","description":"Response with password strength evaluation."},"PeerHandshake":{"properties":{"instance_id":{"type":"string","title":"Instance Id"},"instance_name":{"type":"string","title":"Instance Name"},"api_version":{"type":"string","title":"Api Version"},"public_key":{"type":"string","title":"Public Key"},"supports_push":{"type":"boolean","title":"Supports Push","default":true},"supports_pull":{"type":"boolean","title":"Supports Pull","default":true},"supports_streaming":{"type":"boolean","title":"Supports Streaming","default":false},"suggested_interval_minutes":{"type":"integer","title":"Suggested Interval Minutes","default":60},"max_capsules_per_sync":{"type":"integer","title":"Max Capsules Per Sync","default":1000},"signature":{"type":"string","title":"Signature"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"nonce":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nonce","description":"Cryptographic nonce to prevent replay attacks (32 hex chars)"}},"type":"object","required":["instance_id","instance_name","api_version","public_key","signature","timestamp"],"title":"PeerHandshake","description":"Data exchanged during peer handshake."},"PeerRegistrationRequest":{"properties":{"name":{"type":"string","title":"Name","description":"Human-readable peer name"},"url":{"type":"string","title":"Url","description":"Base URL of the peer's API"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"admin_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Contact"},"sync_direction":{"$ref":"#/components/schemas/SyncDirection","default":"bidirectional"},"sync_interval_minutes":{"type":"integer","minimum":5.0,"title":"Sync Interval Minutes","default":60},"conflict_resolution":{"$ref":"#/components/schemas/ConflictResolution","default":"higher_trust"},"edge_conflict_policy":{"$ref":"#/components/schemas/EdgeConflictPolicy","default":"mergecontradictions"},"sync_capsule_types":{"items":{"type":"string"},"type":"array","title":"Sync Capsule Types"},"min_trust_to_sync":{"type":"integer","maximum":100.0,"minimum":0.0,"title":"Min Trust To Sync","default":50},"private_sync_enabled":{"type":"boolean","title":"Private Sync Enabled","default":false},"private_sync_tenant_ids":{"items":{"type":"string"},"type":"array","title":"Private Sync Tenant Ids"}},"type":"object","required":["name","url"],"title":"PeerRegistrationRequest","description":"Request to register a new peer.\n\nR90 N2: accept ``base_url`` and ``endpoint`` as aliases for\n``url``. Fig posted ``{\"base_url\": ..., \"name\": ..., ...}`` and\ngot 422 because the canonical field is ``url``. These are\nconventional interchange names for the same value — aliasing\nprevents integration dead-ends."},"PeerResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"public_key":{"type":"string","title":"Public Key"},"trust_score":{"type":"number","title":"Trust Score"},"trust_tier":{"type":"string","title":"Trust Tier"},"status":{"$ref":"#/components/schemas/PeerStatus"},"sync_direction":{"$ref":"#/components/schemas/SyncDirection"},"sync_interval_minutes":{"type":"integer","title":"Sync Interval Minutes"},"conflict_resolution":{"$ref":"#/components/schemas/ConflictResolution"},"edge_conflict_policy":{"$ref":"#/components/schemas/EdgeConflictPolicy"},"sync_capsule_types":{"items":{"type":"string"},"type":"array","title":"Sync Capsule Types"},"min_trust_to_sync":{"type":"integer","title":"Min Trust To Sync"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"admin_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Contact"},"registered_at":{"type":"string","format":"date-time","title":"Registered At"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"total_syncs":{"type":"integer","title":"Total Syncs"},"successful_syncs":{"type":"integer","title":"Successful Syncs"},"failed_syncs":{"type":"integer","title":"Failed Syncs"},"capsules_received":{"type":"integer","title":"Capsules Received"},"capsules_sent":{"type":"integer","title":"Capsules Sent"},"private_sync_enabled":{"type":"boolean","title":"Private Sync Enabled","default":false},"private_sync_tenant_ids":{"items":{"type":"string"},"type":"array","title":"Private Sync Tenant Ids"}},"type":"object","required":["id","name","url","public_key","trust_score","trust_tier","status","sync_direction","sync_interval_minutes","conflict_resolution","edge_conflict_policy","sync_capsule_types","min_trust_to_sync","description","admin_contact","registered_at","last_sync_at","last_seen_at","total_syncs","successful_syncs","failed_syncs","capsules_received","capsules_sent"],"title":"PeerResponse","description":"Response containing peer information."},"PeerStatus":{"type":"string","enum":["pending","active","degraded","suspended","offline","revoked"],"title":"PeerStatus","description":"Status of a federated peer."},"PeerUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"admin_contact":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Contact"},"sync_direction":{"anyOf":[{"$ref":"#/components/schemas/SyncDirection"},{"type":"null"}]},"sync_interval_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sync Interval Minutes"},"conflict_resolution":{"anyOf":[{"$ref":"#/components/schemas/ConflictResolution"},{"type":"null"}]},"edge_conflict_policy":{"anyOf":[{"$ref":"#/components/schemas/EdgeConflictPolicy"},{"type":"null"}]},"sync_capsule_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sync Capsule Types"},"min_trust_to_sync":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Trust To Sync"},"status":{"anyOf":[{"$ref":"#/components/schemas/PeerStatus"},{"type":"null"}]},"private_sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Private Sync Enabled"},"private_sync_tenant_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Private Sync Tenant Ids"}},"type":"object","title":"PeerUpdateRequest","description":"Request to update peer settings."},"PerCapsuleGrantCreate":{"properties":{"grantee_tenant_id":{"type":"string","maxLength":200,"minLength":1,"title":"Grantee Tenant Id"},"grantee_member_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":25},{"type":"null"}],"title":"Grantee Member Ids"}},"additionalProperties":false,"type":"object","required":["grantee_tenant_id"],"title":"PerCapsuleGrantCreate"},"PhenotypeInput":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"HPO code (e.g., HP:0001250)"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value","description":"Text description"},"negated":{"type":"boolean","title":"Negated","description":"Whether phenotype is absent","default":false},"severity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity","description":"Severity: mild, moderate, severe"}},"type":"object","title":"PhenotypeInput","description":"A phenotype input."},"PluginConflictAcknowledgement":{"properties":{"resolution":{"type":"string","const":"acknowledged","title":"Resolution","default":"acknowledged"}},"additionalProperties":false,"type":"object","title":"PluginConflictAcknowledgement","description":"The plugin acknowledges completion; server-side merges use /obsidian-server."},"PluginVault":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"notes_count":{"type":"integer","title":"Notes Count","default":0}},"type":"object","required":["id","name"],"title":"PluginVault","description":"Persisted vault info with the existing plugin response shape."},"PluginVaultRegistration":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name","default":"Forge Vault"},"client_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Client Id"}},"additionalProperties":false,"type":"object","title":"PluginVaultRegistration","description":"Register client metadata; this route never opens a server filesystem path."},"PluginVaultStatus":{"properties":{"vault_id":{"type":"string","title":"Vault Id"},"status":{"type":"string","title":"Status","default":"registered"},"last_sync_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync At"},"total_notes":{"type":"integer","title":"Total Notes","default":0},"synced_notes":{"type":"integer","title":"Synced Notes","default":0},"pending_syncs":{"type":"integer","title":"Pending Syncs","default":0},"unresolved_conflicts":{"type":"integer","title":"Unresolved Conflicts","default":0},"watching":{"type":"boolean","title":"Watching","default":false},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["vault_id"],"title":"PluginVaultStatus","description":"Status shape expected by the Obsidian plugin."},"ProposalListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProposalResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"per_page":{"type":"integer","title":"Per Page"}},"type":"object","required":["items","total","page","per_page"],"title":"ProposalListResponse","description":"Paginated list of proposals."},"ProposalResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"proposal_type":{"type":"string","title":"Proposal Type"},"status":{"type":"string","title":"Status"},"proposer_id":{"type":"string","title":"Proposer Id"},"action":{"additionalProperties":true,"type":"object","title":"Action"},"voting_period_days":{"type":"integer","title":"Voting Period Days"},"quorum_percent":{"type":"number","title":"Quorum Percent"},"pass_threshold":{"type":"number","title":"Pass Threshold"},"votes_for":{"type":"integer","title":"Votes For"},"votes_against":{"type":"integer","title":"Votes Against"},"votes_abstain":{"type":"integer","title":"Votes Abstain"},"weight_for":{"type":"number","title":"Weight For"},"weight_against":{"type":"number","title":"Weight Against"},"weight_abstain":{"type":"number","title":"Weight Abstain"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"},"voting_starts_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voting Starts At"},"voting_ends_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voting Ends At"},"execution_allowed_after":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Execution Allowed After"},"executed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Executed At"},"timelock_remaining_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timelock Remaining Seconds"},"is_execution_allowed":{"type":"boolean","title":"Is Execution Allowed","default":false}},"type":"object","required":["id","title","description","proposal_type","status","proposer_id","action","voting_period_days","quorum_percent","pass_threshold","votes_for","votes_against","votes_abstain","weight_for","weight_against","weight_abstain","created_at","voting_starts_at","voting_ends_at"],"title":"ProposalResponse","description":"Proposal response model."},"PurchaseResponse":{"properties":{"id":{"type":"string","title":"Id"},"listing_id":{"type":"string","title":"Listing Id"},"capsule_id":{"type":"string","title":"Capsule Id"},"price":{"type":"number","title":"Price"},"currency":{"type":"string","title":"Currency"},"license_type":{"type":"string","title":"License Type"},"purchased_at":{"type":"string","format":"date-time","title":"Purchased At"},"license_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"License Expires At"}},"type":"object","required":["id","listing_id","capsule_id","price","currency","license_type","purchased_at","license_expires_at"],"title":"PurchaseResponse","description":"Purchase information response."},"QueryRequest":{"properties":{"query_type":{"$ref":"#/components/schemas/QueryType","default":"natural_language"},"query_text":{"type":"string","maxLength":4096,"title":"Query Text","default":""},"context":{"additionalProperties":true,"type":"object","title":"Context"},"filters":{"additionalProperties":true,"type":"object","title":"Filters"},"response_format":{"$ref":"#/components/schemas/ResponseFormat","default":"json"},"max_results":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Max Results","default":10},"include_metadata":{"type":"boolean","title":"Include Metadata","default":true},"include_lineage":{"type":"boolean","title":"Include Lineage","default":false},"include_superseded":{"type":"boolean","title":"Include Superseded","default":false},"start_node":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Node","description":"Starting Froggit ID for graph traversal queries"},"max_depth":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":1.0},{"type":"null"}],"title":"Max Depth","description":"Graph traversal depth for graph_traverse queries"}},"additionalProperties":false,"type":"object","title":"QueryRequest","description":"Request to execute a query.\n\nR86 N7: accept the conventional field names ``query`` / ``question`` /\n``limit`` as aliases for ``query_text`` / ``max_results``. The\nprevious strict schema required exact legacy names and returned 422\non agent-canonical payloads like ``{\"query\": \"...\", \"limit\": 5}``,\nwhich was the single biggest onboarding paper-cut flagged in R86."},"QueryResponse":{"properties":{"query_id":{"type":"string","title":"Query Id"},"success":{"type":"boolean","title":"Success"},"results":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Results"},"total_count":{"type":"integer","title":"Total Count"},"generated_cypher":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generated Cypher"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer"},"answer_eligible":{"type":"boolean","title":"Answer Eligible","default":false},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"uncertainty_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uncertainty Reason"},"sources":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Sources"},"execution_time_ms":{"type":"integer","title":"Execution Time Ms"},"tokens_used":{"type":"integer","title":"Tokens Used"},"cache_hit":{"type":"boolean","title":"Cache Hit"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},"type":"object","required":["query_id","success","results","total_count","generated_cypher","answer","sources","execution_time_ms","tokens_used","cache_hit","error","error_code"],"title":"QueryResponse","description":"Query result response."},"QueryType":{"type":"string","enum":["natural_language","semantic_search","graph_traverse","capsule_lookup","direct_cypher","aggregation"],"title":"QueryType","description":"Types of agent queries."},"RateLimitResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Rate limit message","default":"Rate limit exceeded"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code","default":"RATE_LIMITED"},"retry_after":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Retry After","description":"Seconds until rate limit resets"}},"type":"object","title":"RateLimitResponse","description":"Response for rate limit errors (429)."},"ReactivateAccountRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"ReactivateAccountRequest","description":"Request to reactivate a deactivated account."},"RefreshResponse":{"properties":{"csrf_token":{"type":"string","title":"Csrf Token"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["csrf_token","expires_in"],"title":"RefreshResponse","description":"Refresh response with new CSRF token."},"RegisterAgentRequest":{"properties":{"agent_name":{"type":"string","maxLength":100,"minLength":2,"title":"Agent Name"},"platform":{"type":"string","maxLength":50,"minLength":2,"title":"Platform"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"turnstile_token":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Turnstile Token"},"contact_email":{"anyOf":[{"type":"string","maxLength":254,"pattern":"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"},{"type":"null"}],"title":"Contact Email"},"signing_public_key_b64":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Signing Public Key B64","description":"Optional base64-encoded raw 32-byte Ed25519 public key pinned to this session for verifying sovereignty-bearing A2A messages (DEEP-67 C1 TOFU defence)."}},"additionalProperties":false,"type":"object","required":["agent_name","platform"],"title":"RegisterAgentRequest","description":"Request to register an external agent.\n\nDEEP-67 C1 (rogue agent impersonation): ``signing_public_key_b64``\nis an OPTIONAL base64-encoded raw 32-byte Ed25519 public key. When\nsupplied, the fingerprint is computed and PINNED to the session;\nfuture signed A2A messages from this session must verify against\nthe pinned key. This is trust-on-first-use: a leaked API key alone\nis insufficient to forge signed session messages because the\nattacker would also need the agent's private key. Sessions that\nomit this field remain in unsigned-session mode."},"RegisterAgentResponse":{"properties":{"status":{"type":"string","title":"Status","default":"registered"},"verification_required":{"type":"boolean","title":"Verification Required","default":false},"registration_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registration Id"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"agent_name":{"type":"string","title":"Agent Name"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"},"trust_level":{"type":"string","title":"Trust Level"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"requests_per_minute":{"type":"integer","title":"Requests Per Minute"},"requests_per_hour":{"type":"integer","title":"Requests Per Hour"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"expires_in_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In Days"},"renewal_recommended_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Renewal Recommended At"},"wallet_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Address"},"wallet_chain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Chain"},"wallet_info":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Info"},"simulation_mode":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Simulation Mode"},"payment_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Mode"},"payment_warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Warning"},"signing_pubkey_fingerprint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signing Pubkey Fingerprint"}},"type":"object","required":["agent_name","trust_level","capabilities","requests_per_minute","requests_per_hour","expires_at"],"title":"RegisterAgentResponse","description":"Response with API key for a newly registered agent."},"RegisterRequest":{"properties":{"username":{"type":"string","maxLength":50,"minLength":3,"title":"Username"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":72,"minLength":8,"title":"Password"},"display_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["username","email","password"],"title":"RegisterRequest","description":"User registration request."},"RegisterResponse":{"properties":{"user":{"$ref":"#/components/schemas/UserResponse"},"message":{"type":"string","title":"Message"},"requires_verification":{"type":"boolean","title":"Requires Verification"}},"type":"object","required":["user","message","requires_verification"],"title":"RegisterResponse","description":"Registration response with verification info."},"ResearchInsightResultResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"primary_hypothesis":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Primary Hypothesis"},"confidence":{"type":"number","title":"Confidence"},"differential":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Differential"},"key_findings":{"items":{"type":"string"},"type":"array","title":"Key Findings"},"recommended_reviews":{"items":{"type":"string"},"type":"array","title":"Recommended Reviews"},"iterations":{"type":"integer","title":"Iterations"},"questions_asked":{"type":"integer","title":"Questions Asked"}},"type":"object","required":["session_id","primary_hypothesis","confidence","differential","key_findings","recommended_reviews","iterations","questions_asked"],"title":"ResearchInsightResultResponse","description":"Final research insight result response."},"ResearchSubjectDemographics":{"properties":{"age":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age","description":"Current age in years"},"age_of_onset":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Age Of Onset","description":"Age at symptom onset"},"sex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sex","description":"Sex: male, female, other"},"ethnicity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ethnicity","description":"Ethnicity"}},"type":"object","title":"ResearchSubjectDemographics","description":"Research subject demographics."},"ResendVerificationRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ResendVerificationRequest","description":"Request to resend verification email."},"ResetPasswordRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"},"new_password":{"type":"string","maxLength":72,"minLength":8,"title":"New Password"}},"type":"object","required":["token","new_password"],"title":"ResetPasswordRequest","description":"Request to reset password with token."},"ResponseFormat":{"type":"string","enum":["json","markdown","plain","streaming"],"title":"ResponseFormat","description":"Response format options."},"RetentionPolicy":{"type":"string","enum":["org_retains","employee_retains","shared","negotiate"],"title":"RetentionPolicy"},"SearchRequest":{"properties":{"query":{"type":"string","maxLength":2000,"minLength":1,"title":"Query"},"limit":{"type":"integer","maximum":50.0,"minimum":1.0,"title":"Limit","default":10},"filters":{"additionalProperties":true,"type":"object","title":"Filters"},"granularity":{"type":"string","enum":["capsule","claim"],"title":"Granularity","default":"capsule"},"include_disputed":{"type":"boolean","title":"Include Disputed","default":false},"include_superseded":{"type":"boolean","title":"Include Superseded","default":false},"offset":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Offset","default":0}},"type":"object","required":["query"],"title":"SearchRequest","description":"Semantic search request."},"SearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"results":{"items":{"$ref":"#/components/schemas/CapsuleResponse"},"type":"array","title":"Results"},"scores":{"items":{"type":"number"},"type":"array","title":"Scores"},"total":{"type":"integer","title":"Total"},"granularity":{"type":"string","enum":["capsule","claim"],"title":"Granularity","default":"capsule"},"claims":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Claims"},"filters_applied":{"additionalProperties":true,"type":"object","title":"Filters Applied"}},"type":"object","required":["query","results","scores","total"],"title":"SearchResponse","description":"Search results."},"SemanticEdgeResponse":{"properties":{"id":{"type":"string","title":"Id"},"source_id":{"type":"string","title":"Source Id"},"target_id":{"type":"string","title":"Target Id"},"relationship_type":{"type":"string","title":"Relationship Type"},"confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Confidence"},"weight":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Weight"},"properties":{"additionalProperties":true,"type":"object","title":"Properties"},"created_by":{"type":"string","title":"Created By"},"created_at":{"type":"string","title":"Created At"},"bidirectional":{"type":"boolean","title":"Bidirectional"}},"type":"object","required":["id","source_id","target_id","relationship_type","properties","created_by","created_at","bidirectional"],"title":"SemanticEdgeResponse","description":"Semantic edge information.\n\nR38 audit fix (Fig R36 N7 \"edge response missing stored fields\"):\nthe old shape omitted ``confidence`` and ``weight`` so clients had\nto query the edge separately to verify what was stored. Both are\nnow included; ``weight`` is an alias for ``confidence`` kept for\nbackward compat with clients expecting Fig's test shape."},"SemanticNeighborsResponse":{"properties":{"capsule_id":{"type":"string","title":"Capsule Id"},"neighbors":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Neighbors"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["capsule_id","neighbors","total"],"title":"SemanticNeighborsResponse","description":"Semantic neighbors of a Froggit."},"SemanticSearchBody":{"properties":{"query":{"anyOf":[{"type":"string","maxLength":1000,"minLength":1},{"type":"null"}],"title":"Query"},"max_results":{"anyOf":[{"type":"integer","maximum":50.0,"minimum":1.0},{"type":"null"}],"title":"Max Results"},"capsule_types":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Types"},"include_superseded":{"type":"boolean","title":"Include Superseded","default":false},"capsule_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capsule Type"}},"additionalProperties":false,"type":"object","title":"SemanticSearchBody","description":"Optional body for POST /agent-gateway/search.\n\nR86 N7: the route previously required ``?query=...`` as a URL\nquery param; callers sending the same data as a JSON body (the\nconventional POST shape) got 422. Both now work — query-param\nwins when both are set, body provides a fallback so the agent-\ncanonical ``{\"query\": \"...\", \"max_results\": N}`` shape works."},"SeriousIssueResponse":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","title":"Category"},"severity":{"type":"string","title":"Severity"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"affected_entities":{"items":{"type":"string"},"type":"array","title":"Affected Entities"},"detected_at":{"type":"string","title":"Detected At"},"source":{"type":"string","title":"Source"},"resolved":{"type":"boolean","title":"Resolved"},"resolution":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolution"},"has_ghost_council_opinion":{"type":"boolean","title":"Has Ghost Council Opinion"}},"type":"object","required":["id","category","severity","title","description","affected_entities","detected_at","source","resolved","resolution","has_ghost_council_opinion"],"title":"SeriousIssueResponse","description":"Response for a serious issue."},"ServiceTokenRequest":{"properties":{"service_key":{"type":"string","title":"Service Key","description":"Pre-shared service authentication key"},"agent_name":{"type":"string","maxLength":64,"minLength":1,"title":"Agent Name","description":"Name of the requesting agent","default":"service-agent"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes","description":"Requested permission scopes"}},"type":"object","required":["service_key"],"title":"ServiceTokenRequest","description":"Request for a service token."},"ServiceTokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"agent_name":{"type":"string","title":"Agent Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["access_token","expires_in","agent_name","scopes"],"title":"ServiceTokenResponse","description":"Response with service JWT."},"SetVisibilityRequest":{"properties":{"visibility":{"$ref":"#/components/schemas/CapsuleVisibility"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["visibility"],"title":"SetVisibilityRequest"},"StartResearchInsightRequest":{"properties":{"phenotypes":{"items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/PhenotypeInput"}]},"type":"array","title":"Phenotypes","description":"Phenotypes (HPO codes or descriptions)","default":[]},"genetic_variants":{"items":{"$ref":"#/components/schemas/GeneticVariantInput"},"type":"array","title":"Genetic Variants","description":"Genetic variants","default":[]},"research_context":{"items":{"type":"string"},"type":"array","title":"Research Context","description":"Research context notes","default":[]},"family_context":{"items":{"type":"string"},"type":"array","title":"Family Context","description":"Family or cohort context notes","default":[]},"demographics":{"anyOf":[{"$ref":"#/components/schemas/ResearchSubjectDemographics"},{"type":"null"}],"description":"Research subject demographics"}},"type":"object","title":"StartResearchInsightRequest","description":"Request to start research exploration with initial data."},"StatsResponse":{"properties":{"active_sessions":{"type":"integer","title":"Active Sessions"},"total_sessions":{"type":"integer","title":"Total Sessions"},"queries_today":{"type":"integer","title":"Queries Today"},"queries_this_hour":{"type":"integer","title":"Queries This Hour"},"avg_response_time_ms":{"type":"number","title":"Avg Response Time Ms"},"cache_hit_rate":{"type":"number","title":"Cache Hit Rate"},"total_tokens":{"type":"integer","title":"Total Tokens"},"tokens_today":{"type":"integer","title":"Tokens Today"},"tokens_this_hour":{"type":"integer","title":"Tokens This Hour"},"avg_tokens_per_query":{"type":"number","title":"Avg Tokens Per Query"},"queries_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Queries By Type"},"capsules_read":{"type":"integer","title":"Capsules Read"},"capsules_created":{"type":"integer","title":"Capsules Created"},"error_rate":{"type":"number","title":"Error Rate"}},"type":"object","required":["active_sessions","total_sessions","queries_today","queries_this_hour","avg_response_time_ms","cache_hit_rate","total_tokens","tokens_today","tokens_this_hour","avg_tokens_per_query","queries_by_type","capsules_read","capsules_created","error_rate"],"title":"StatsResponse","description":"Gateway statistics response."},"SyncDirection":{"type":"string","enum":["push","pull","bidirectional"],"title":"SyncDirection","description":"Direction of sync operations."},"SyncOperationStatus":{"type":"string","enum":["running","completed","failed","cancelled"],"title":"SyncOperationStatus","description":"Status of a sync operation."},"SyncPayload":{"properties":{"peer_id":{"type":"string","title":"Peer Id"},"sync_id":{"type":"string","title":"Sync Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"capsules":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Capsules"},"edges":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Edges"},"deletions":{"items":{"type":"string"},"type":"array","title":"Deletions"},"car_data":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Car Data","description":"CAR archive data"},"capsule_cids":{"items":{"type":"string"},"type":"array","title":"Capsule Cids","description":"CIDs of Froggits in sync"},"has_more":{"type":"boolean","title":"Has More","default":false},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"content_hash":{"type":"string","title":"Content Hash"},"signature":{"type":"string","title":"Signature"},"nonce":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Nonce","description":"Cryptographic nonce to prevent replay attacks (32 hex chars)"}},"type":"object","required":["peer_id","sync_id","timestamp","content_hash","signature"],"title":"SyncPayload","description":"Payload for sync operations."},"SyncPhase":{"type":"string","enum":["init","fetching","processing","applying","finalizing"],"title":"SyncPhase","description":"Current phase of a sync operation."},"SyncResult":{"properties":{"status":{"type":"string","title":"Status","default":"success"},"notes_synced":{"type":"integer","title":"Notes Synced","default":0},"notes_created":{"type":"integer","title":"Notes Created","default":0},"notes_updated":{"type":"integer","title":"Notes Updated","default":0},"notes_deleted":{"type":"integer","title":"Notes Deleted","default":0},"conflicts_found":{"type":"integer","title":"Conflicts Found","default":0},"conflicts_resolved":{"type":"integer","title":"Conflicts Resolved","default":0},"error_messages":{"items":{"type":"string"},"type":"array","title":"Error Messages"},"errors":{"type":"integer","title":"Errors","default":0},"capsules":{"items":{"$ref":"#/components/schemas/CapsuleSyncItem"},"type":"array","title":"Capsules"}},"type":"object","title":"SyncResult","description":"Sync result for plugin compatibility."},"SyncStateResponse":{"properties":{"id":{"type":"string","title":"Id"},"peer_id":{"type":"string","title":"Peer Id"},"peer_name":{"type":"string","title":"Peer Name"},"direction":{"$ref":"#/components/schemas/SyncDirection"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"status":{"$ref":"#/components/schemas/SyncOperationStatus"},"phase":{"$ref":"#/components/schemas/SyncPhase"},"capsules_fetched":{"type":"integer","title":"Capsules Fetched"},"capsules_created":{"type":"integer","title":"Capsules Created"},"capsules_updated":{"type":"integer","title":"Capsules Updated"},"capsules_skipped":{"type":"integer","title":"Capsules Skipped"},"capsules_conflicted":{"type":"integer","title":"Capsules Conflicted"},"edges_fetched":{"type":"integer","title":"Edges Fetched"},"edges_created":{"type":"integer","title":"Edges Created"},"edges_skipped":{"type":"integer","title":"Edges Skipped"},"private_exported":{"type":"integer","title":"Private Exported","default":0},"private_accepted":{"type":"integer","title":"Private Accepted","default":0},"private_rejected":{"type":"integer","title":"Private Rejected","default":0},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["id","peer_id","peer_name","direction","started_at","completed_at","status","phase","capsules_fetched","capsules_created","capsules_updated","capsules_skipped","capsules_conflicted","edges_fetched","edges_created","edges_skipped","error_message"],"title":"SyncStateResponse","description":"Response containing sync state."},"SyncTriggerRequest":{"properties":{"direction":{"anyOf":[{"$ref":"#/components/schemas/SyncDirection"},{"type":"null"}]},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","title":"SyncTriggerRequest","description":"Request to trigger a sync."},"SystemMetricsResponse":{"properties":{"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"events_emitted_total":{"type":"integer","title":"Events Emitted Total"},"events_processed_total":{"type":"integer","title":"Events Processed Total"},"active_overlays":{"type":"integer","title":"Active Overlays"},"pipeline_executions":{"type":"integer","title":"Pipeline Executions"},"average_pipeline_duration_ms":{"type":"number","title":"Average Pipeline Duration Ms"},"open_circuit_breakers":{"type":"integer","title":"Open Circuit Breakers"},"active_anomalies":{"type":"integer","title":"Active Anomalies"},"canary_deployments":{"type":"integer","title":"Canary Deployments"},"db_connected":{"type":"boolean","title":"Db Connected"},"memory_usage_mb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Memory Usage Mb"},"cpu_usage_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cpu Usage Percent"}},"type":"object","required":["timestamp","events_emitted_total","events_processed_total","active_overlays","pipeline_executions","average_pipeline_duration_ms","open_circuit_breakers","active_anomalies","canary_deployments","db_connected"],"title":"SystemMetricsResponse","description":"Comprehensive system metrics."},"SystemStatusResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Overall status: operational, degraded, down"},"version":{"type":"string","title":"Version","default":"0.1.0"},"uptime_seconds":{"type":"number","title":"Uptime Seconds"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"services":{"additionalProperties":{"type":"string"},"type":"object","title":"Services","description":"Status of each service: operational, degraded, down"}},"type":"object","required":["status","uptime_seconds","timestamp"],"title":"SystemStatusResponse","description":"Simplified system status response."},"TokenListResponse":{"properties":{"tokens":{"items":{"$ref":"#/components/schemas/PATResponse"},"type":"array","title":"Tokens"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["tokens","total"],"title":"TokenListResponse","description":"Response containing list of tokens."},"TrustAdjustmentRequest":{"properties":{"delta":{"type":"number","maximum":1.0,"minimum":-1.0,"title":"Delta"},"reason":{"type":"string","title":"Reason"}},"type":"object","required":["delta","reason"],"title":"TrustAdjustmentRequest","description":"Request to manually adjust peer trust."},"TrustReviewRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"},"evidence_capsule_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Evidence Capsule Ids"}},"type":"object","title":"TrustReviewRequest","description":"Request a trust review for the current account."},"UnauthorizedResponse":{"properties":{"detail":{"type":"string","title":"Detail","description":"Authentication required message","default":"Not authenticated"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Error code","default":"UNAUTHORIZED"}},"type":"object","title":"UnauthorizedResponse","description":"Response for authentication errors (401)."},"UpdateAgentCapsuleRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":3},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string","maxLength":32000,"minLength":1},{"type":"null"}],"title":"Content"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"visibility":{"anyOf":[{"type":"string","pattern":"^(public|private|shared)$"},{"type":"null"}],"title":"Visibility"}},"additionalProperties":false,"type":"object","title":"UpdateAgentCapsuleRequest","description":"Patch request for an agent-owned Froggit."},"UpdateCapsuleRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":500,"minLength":1},{"type":"null"}],"title":"Title"},"content":{"anyOf":[{"type":"string","maxLength":100000,"minLength":1},{"type":"null"}],"title":"Content"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"evidence_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Level","description":"Evidence grade: systematic_review, peer_reviewed, institutional, verified_report, expert_opinion, ai_generated, social_media, ungraded"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"},"visibility":{"anyOf":[{"type":"string","enum":["public","private","shared"]},{"type":"null"}],"title":"Visibility","description":"Access scope override: 'public', 'private', or 'shared'."},"domain":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Domain","description":"Primary / canonical knowledge domain."},"source_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Source Url","description":"Canonical source URL for provenance tracking."},"sources_cited":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Sources Cited","description":"First-class provenance references backing the Froggit."}},"additionalProperties":false,"type":"object","title":"UpdateCapsuleRequest","description":"Request to update a Froggit.\n\nR28 audit fix (Fig R22+ persistent \"visibility PATCH silently ignored\"):\nR24 added ``visibility`` / ``domain`` / ``source_url`` to the *internal*\n``CapsuleUpdate`` model (forge/models/capsule.py:251) AND to the repo\nupdate Cypher, but the *route input* model below was never widened to\naccept those fields. Pydantic's default ``extra='ignore'`` silently\ndropped them, so a PATCH body of ``{\"visibility\": \"private\"}`` returned\n200 with the field unchanged. Tightened to ``extra='forbid'`` so any\nfuture field-name mismatch surfaces as a clean 422 listing accepted keys."},"UpdateProfileRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Display Name"},"email":{"anyOf":[{"type":"string","format":"email"},{"type":"null"}],"title":"Email"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata","description":"User metadata (max 10 keys, 1KB value limit)"},"current_password":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Current Password","description":"Ignored by this endpoint. Use /users/me/email for email changes."}},"type":"object","title":"UpdateProfileRequest","description":"Profile update request.\n\nEmail is kept as an explicit legacy field so requests that try to\nmutate it can be rejected with a clear error. Email changes must use\nthe dedicated dual-confirmation flow at ``PATCH /users/me/email``."},"UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"username":{"type":"string","title":"Username"},"email":{"type":"string","title":"Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"trust_level":{"type":"string","title":"Trust Level"},"trust_score":{"type":"number","title":"Trust Score"},"roles":{"items":{"type":"string"},"type":"array","title":"Roles"},"is_active":{"type":"boolean","title":"Is Active"},"is_verified":{"type":"boolean","title":"Is Verified"},"created_at":{"type":"string","title":"Created At"},"capsule_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Capsule Count"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"},"tenant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"type":"object","required":["id","username","email","display_name","trust_level","trust_score","roles","is_active","is_verified","created_at"],"title":"UserResponse","description":"User profile response."},"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"},"ValidationErrorDetail":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Loc","description":"Location of the error in the request"},"msg":{"type":"string","title":"Msg","description":"Error message"},"type":{"type":"string","title":"Type","description":"Error type identifier"}},"type":"object","required":["loc","msg","type"],"title":"ValidationErrorDetail","description":"Detail for a single validation error."},"ValidationErrorResponse":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationErrorDetail"},"type":"array","title":"Detail","description":"List of validation errors"}},"type":"object","required":["detail"],"title":"ValidationErrorResponse","description":"Response for validation errors (422)."},"VerifyAgentRegistrationRequest":{"properties":{"registration_id":{"type":"string","maxLength":80,"minLength":8,"title":"Registration Id"},"verification_token":{"type":"string","maxLength":256,"minLength":16,"title":"Verification Token"}},"type":"object","required":["registration_id","verification_token"],"title":"VerifyAgentRegistrationRequest","description":"Compatibility payload for the fail-closed email-verification route."},"VerifyEmailRequest":{"properties":{"token":{"type":"string","maxLength":256,"minLength":1,"title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest","description":"Request to verify email address."},"VersionResponse":{"properties":{"version_id":{"type":"string","title":"Version Id"},"capsule_id":{"type":"string","title":"Capsule Id"},"version_number":{"type":"string","title":"Version Number"},"snapshot_type":{"type":"string","title":"Snapshot Type"},"change_type":{"type":"string","title":"Change Type"},"created_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By"},"created_at":{"type":"string","title":"Created At"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"}},"type":"object","required":["version_id","capsule_id","version_number","snapshot_type","change_type","created_by","created_at"],"title":"VersionResponse","description":"Froggit version information."},"VoteResponse":{"properties":{"id":{"type":"string","title":"Id"},"proposal_id":{"type":"string","title":"Proposal Id"},"user_id":{"type":"string","title":"User Id"},"choice":{"type":"string","title":"Choice"},"weight":{"type":"number","title":"Weight"},"direct_weight":{"type":"number","title":"Direct Weight"},"delegated_weight":{"type":"number","title":"Delegated Weight"},"delegated_from_ids":{"items":{"type":"string"},"type":"array","title":"Delegated From Ids"},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","proposal_id","user_id","choice","weight","direct_weight","delegated_weight","delegated_from_ids","rationale","created_at"],"title":"VoteResponse","description":"Vote response model."},"Web3PurchaseItem":{"properties":{"listing_id":{"type":"string","title":"Listing Id","description":"Marketplace listing identifier for this item.","examples":["listing_9f2c4b7a1d30"]},"capsule_id":{"type":"string","title":"Capsule Id","description":"Froggit identifier being purchased.","examples":["cap_8a1e4b9d2f06"]},"title":{"type":"string","title":"Title","description":"Human-readable title of the Froggit at time of purchase.","examples":["Institutional Memory Patterns — Q1 2026"]},"price_wei":{"type":"string","title":"Price Wei","description":"Native ETH payment amount on Base, expressed as a base-10 wei string (18 decimals). MUST be a string — not a number — to preserve full uint256 precision across JSON clients that would otherwise lose precision on large integers. Example: '1500000000000000000' represents 1.5 ETH.","examples":["1500000000000000000"]},"price_usd":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Price Usd","description":"Optional USD-equivalent price at time of purchase (display only).","examples":[4.27]}},"type":"object","required":["listing_id","capsule_id","title","price_wei"],"title":"Web3PurchaseItem","description":"Item in a Web3 purchase."},"Web3PurchaseRequest":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Web3PurchaseItem"},"type":"array","minItems":1,"title":"Items","description":"One or more Froggits included in this purchase."},"wallet_address":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","title":"Wallet Address","description":"Buyer's EVM wallet address (0x-prefixed 40-char hex).","examples":["0x742d35Cc6634C0532925a3b844Bc9e7595f0beB1"]},"transaction_hash":{"anyOf":[{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"},{"type":"null"}],"title":"Transaction Hash","description":"On-chain transaction hash of the native Base ETH payment (0x-prefixed 64-char hex). Backend will verify this transaction on Base before granting Froggit access.","examples":["0xabc1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcd"]},"nonce":{"anyOf":[{"type":"string","maxLength":128,"minLength":8,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"title":"Nonce","description":"Unique client nonce included in the signed purchase request."},"timestamp":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Timestamp","description":"Unix epoch seconds included in the signed purchase request."},"signature":{"anyOf":[{"type":"string","maxLength":512,"minLength":10},{"type":"null"}],"title":"Signature","description":"Wallet signature over the server-canonical purchase replay message."},"simulate":{"type":"boolean","title":"Simulate","description":"Return a safe mock purchase response without chain verification or persistence.","default":false},"checkout_intent_id":{"anyOf":[{"type":"string","maxLength":80,"pattern":"^[A-Za-z0-9_-]+$"},{"type":"null"}],"title":"Checkout Intent Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":128,"minLength":8,"pattern":"^[A-Za-z0-9._:-]+$"},{"type":"null"}],"title":"Idempotency Key","description":"Optional operation idempotency key for safe client retries."}},"type":"object","required":["items","wallet_address"],"title":"Web3PurchaseRequest","description":"Request to submit a Web3 purchase."},"Web3PurchaseResponse":{"properties":{"purchase_id":{"type":"string","title":"Purchase Id"},"status":{"type":"string","title":"Status"},"transaction_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction Hash"},"capsule_ids":{"items":{"type":"string"},"type":"array","title":"Capsule Ids"},"total_wei":{"type":"string","title":"Total Wei"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"skipped_capsule_ids":{"items":{"type":"string"},"type":"array","title":"Skipped Capsule Ids"}},"type":"object","required":["purchase_id","status","transaction_hash","capsule_ids","total_wei","created_at"],"title":"Web3PurchaseResponse","description":"Response for a Web3 purchase submission."},"forge__api__routes__agent_gateway__CreateCapsuleRequest":{"properties":{"capsule_type":{"$ref":"#/components/schemas/CapsuleType"},"title":{"type":"string","maxLength":200,"minLength":3,"title":"Title"},"content":{"type":"string","maxLength":100000,"title":"Content","default":""},"content_chunks":{"items":{"type":"string"},"type":"array","maxItems":128,"title":"Content Chunks"},"source_capsule_ids":{"items":{"type":"string"},"type":"array","title":"Source Capsule Ids"},"supersedes":{"items":{"type":"string"},"type":"array","maxItems":25,"title":"Supersedes"},"contradicts":{"items":{"type":"string"},"type":"array","maxItems":25,"title":"Contradicts"},"reasoning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"visibility":{"type":"string","pattern":"^(public|private|shared)$","title":"Visibility","default":"private"},"requires_approval":{"type":"boolean","title":"Requires Approval","default":true},"allow_new_version":{"type":"boolean","title":"Allow New Version","default":false}},"additionalProperties":false,"type":"object","required":["capsule_type","title"],"title":"CreateCapsuleRequest","description":"Request for an agent to create a Froggit."},"forge__api__routes__agent_gateway__CreateSessionRequest":{"properties":{"agent_name":{"type":"string","maxLength":100,"title":"Agent Name"},"trust_level":{"$ref":"#/components/schemas/AgentTrustLevel","default":"basic"},"capabilities":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentCapability"},"type":"array"},{"type":"null"}],"title":"Capabilities"},"allowed_capsule_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Capsule Types"},"expires_in_days":{"type":"integer","maximum":365.0,"minimum":1.0,"title":"Expires In Days","default":30}},"type":"object","required":["agent_name"],"title":"CreateSessionRequest","description":"Request to create an agent session."},"forge__api__routes__agent_gateway__SessionResponse":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"type":"string","title":"Agent Id"},"agent_name":{"type":"string","title":"Agent Name"},"owner_user_id":{"type":"string","title":"Owner User Id"},"trust_level":{"type":"string","title":"Trust Level"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"requests_per_minute":{"type":"integer","title":"Requests Per Minute"},"requests_per_hour":{"type":"integer","title":"Requests Per Hour"},"total_requests":{"type":"integer","title":"Total Requests"},"is_active":{"type":"boolean","title":"Is Active"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","required":["id","agent_id","agent_name","owner_user_id","trust_level","capabilities","requests_per_minute","requests_per_hour","total_requests","is_active","created_at","expires_at"],"title":"SessionResponse","description":"Agent session information."},"forge__api__routes__capsules__CreateCapsuleRequest":{"properties":{"title":{"type":"string","maxLength":500,"minLength":1,"title":"Title","description":"Non-empty Froggit title. Required."},"content":{"type":"string","maxLength":100000,"minLength":1,"title":"Content"},"type":{"$ref":"#/components/schemas/CapsuleType","default":"KNOWLEDGE"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"supersedes":{"items":{"type":"string"},"type":"array","maxItems":25,"title":"Supersedes"},"contradicts":{"items":{"type":"string"},"type":"array","maxItems":25,"title":"Contradicts"},"tags":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Tags"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"matter_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Matter Id","description":"Legal matter ID (required in lawfirm mode)"},"visibility":{"type":"string","enum":["public","private","shared"],"title":"Visibility","description":"Access scope. 'public' is readable by any authenticated user; 'private' is restricted to the owner; 'shared' is readable by active tenant members. Omission uses the tenant default, or private when unset.","default":"private"},"domain":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Domain","description":"Primary / canonical knowledge domain (distinct from the ``domains`` array computed from tags)."},"source_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Source Url","description":"Canonical source URL for provenance tracking."},"sources_cited":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Sources Cited","description":"First-class provenance references backing the Froggit."},"summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Summary","description":"Brief summary of the Froggit content."}},"additionalProperties":false,"type":"object","required":["title","content"],"title":"CreateCapsuleRequest","description":"Request to create a new Froggit."},"forge__api__routes__research_insights__CreateSessionRequest":{"properties":{"subject_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject Id","description":"Optional research subject ID"},"auto_advance":{"type":"boolean","title":"Auto Advance","description":"Auto-advance through exploration states","default":true}},"type":"object","title":"CreateSessionRequest","description":"Request to create a research exploration session."},"forge__api__routes__research_insights__SessionResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"state":{"type":"string","title":"State"},"is_complete":{"type":"boolean","title":"Is Complete"},"is_confident":{"type":"boolean","title":"Is Confident"},"iteration":{"type":"integer","title":"Iteration"},"hypotheses_count":{"type":"integer","title":"Hypotheses Count"},"top_hypotheses":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Top Hypotheses"},"pending_questions":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Pending Questions"},"answered_questions_count":{"type":"integer","title":"Answered Questions Count"}},"type":"object","required":["session_id","state","is_complete","is_confident","iteration","hypotheses_count","top_hypotheses","pending_questions","answered_questions_count"],"title":"SessionResponse","description":"Session state response."}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"JWT bearer token (HS256/RS256/ES256 per ``FORGE_JWT_ACCEPTED_ALGORITHMS``). Obtained via ``POST /api/v1/auth/login``. Default lifetime 24h; refresh via ``POST /api/v1/auth/refresh``. Revoked tokens are blacklisted server-side (``TokenBlacklist``). MFA, when enforced, is completed in the login flow and reflected in the ``amr`` claim.","x-tokenLifetimeSeconds":86400,"x-tokenRefreshEndpoint":"/api/v1/auth/refresh","x-scopes":{"read":"Read access to Froggits, queries, and non-sensitive data","write":"Create, update, and delete Froggits, comments, and user content","admin":"Administrative operations (user management, system configuration)","governance":"Governance operations (voting, proposals, ratification)","mcp:admin":"MCP (Model Context Protocol) tool / resource write operations"}},"EGS1ProvisioningKey":{"type":"apiKey","in":"header","name":"X-EGS1-Provisioning-Key"},"APIKey":{"type":"apiKey","name":"X-API-Key","in":"header","description":"Service-token / PAT for integrations and automation. Issue via ``POST /api/v1/auth/service-token`` (authenticated) or request a PAT in the account settings UI. Keys expire per ``FORGE_PAT_MAX_LIFETIME_DAYS`` (default 90 days). Revocation is immediate; rotation is automatic if ``auto_revoke_previous`` is set at creation time."}},"headers":{"X-RateLimit-Limit":{"description":"Requests allowed per window (legacy header).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Remaining":{"description":"Requests remaining in the current window (legacy header).","schema":{"type":"integer","minimum":0}},"X-RateLimit-Reset":{"description":"Unix timestamp when the current window resets (legacy header).","schema":{"type":"integer","minimum":0}},"RateLimit-Limit":{"description":"Requests allowed per window per RFC draft `draft-ietf-httpapi-ratelimit-headers`.","schema":{"type":"integer","minimum":0}},"RateLimit-Remaining":{"description":"Requests remaining in the current window (RFC draft).","schema":{"type":"integer","minimum":0}},"RateLimit-Reset":{"description":"Seconds until the window resets (RFC draft).","schema":{"type":"integer","minimum":0}},"Retry-After":{"description":"Sent on 429 / 503 responses per RFC 7231 §7.1.3. Either seconds-to-wait or an HTTP-date.","schema":{"type":"string"}}}},"tags":[{"name":"auth","description":"Authentication and authorization endpoints"},{"name":"Froggits","description":"Froggit management"},{"name":"chat","description":"Chat rooms with role-based access control (Audit 6 - Session 4)"},{"name":"governance","description":"Symbolic governance and voting"},{"name":"system","description":"System health and metrics"},{"name":"graph","description":"Graph analysis, queries, and temporal operations"},{"name":"Search","description":"Unified search across Froggits - semantic, keyword, hybrid, exact, and advanced (GraphRAG) modes"},{"name":"Federation","description":"Federated knowledge sharing between Froggit instances"},{"name":"Marketplace","description":"Froggit marketplace for buying and selling source-backed knowledge"},{"name":"Agent Gateway","description":"AI agent access to the knowledge graph"},{"name":"research-insights","description":"Biomedical literature and knowledge-graph exploration for research workflows"},{"name":"A2A Protocol","description":"Froggit A2A Protocol operations."},{"name":"AEOS","description":"Froggit AEOS operations."},{"name":"AIWG","description":"Froggit AIWG operations."},{"name":"Agent Discovery","description":"Froggit Agent Discovery operations."},{"name":"Agent Memory Lifecycle","description":"Froggit Agent Memory Lifecycle operations."},{"name":"Agent Payments","description":"Froggit Agent Payments operations."},{"name":"EGS1","description":"Froggit EGS1 operations."},{"name":"Factory","description":"Froggit Factory operations."},{"name":"Froggit Sharing","description":"Froggit Froggit Sharing operations."},{"name":"GEO","description":"Froggit GEO operations."},{"name":"Governance Tools","description":"Froggit Governance Tools operations."},{"name":"Knowledge Graph Demo","description":"Froggit Knowledge Graph Demo operations."},{"name":"Marketplace Bundles","description":"Froggit Marketplace Bundles operations."},{"name":"Multi-Tenancy","description":"Froggit Multi-Tenancy operations."},{"name":"OAuth 2.0","description":"Froggit OAuth 2.0 operations."},{"name":"Obsidian Public","description":"Froggit Obsidian Public operations."},{"name":"Personal Access Tokens","description":"Froggit Personal Access Tokens operations."},{"name":"Privacy Consent","description":"Froggit Privacy Consent operations."},{"name":"SEO","description":"Froggit SEO operations."},{"name":"Sentinel Research","description":"Froggit Sentinel Research operations."},{"name":"Stripe Webhooks","description":"Froggit Stripe Webhooks operations."},{"name":"claims","description":"Froggit claims operations."},{"name":"emergency","description":"Froggit emergency operations."}],"x-service-info":{"categories":["data","developer-tools","marketplace"],"docs":{"homepage":"https://froggit.ai","apiReference":"https://froggit.ai/api/docs","llms":"https://froggit.ai/llms.txt"},"commercial":{"catalog":"https://froggit.ai/offers.json","offerCatalog":"https://froggit.ai/offers.json","marketplace":"https://froggit.ai/marketplace","aiDiscovery":"https://froggit.ai/ai.txt","directoryListing":"https://froggit.ai/directory-listing.json","paymentOpenAPI":"https://froggit.ai/openapi.payments.json","mcp":"https://froggit.ai/.well-known/mcp.json","rest":"https://froggit.ai/docs/api","a2a":"https://froggit.ai/.well-known/agent-card.json"}}}