{"openapi":"3.1.0","info":{"title":"HyperGSC","version":"0.1.0"},"paths":{"/api/public-tools/{tool}":{"post":{"summary":"Run","operationId":"run_api_public_tools__tool__post","parameters":[{"name":"tool","in":"path","required":true,"schema":{"type":"string","title":"Tool"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users":{"get":{"summary":"Users","operationId":"users_api_admin_users_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Query"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(newest|usage)$","default":"newest","title":"Sort"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUsersResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}":{"get":{"summary":"User Detail","operationId":"user_detail_api_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{user_id}/plan":{"patch":{"summary":"Update User Plan","operationId":"update_user_plan_api_admin_users__user_id__plan_patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPlanUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/analytics":{"get":{"summary":"Analytics","operationId":"analytics_api_admin_analytics_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":7,"default":30,"title":"Days"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAnalyticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing":{"get":{"summary":"Status","operationId":"status_api_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}}}}},"/api/billing/reconcile":{"post":{"summary":"Reconcile","operationId":"reconcile_api_billing_reconcile_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReconcileInput"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/checkout":{"post":{"summary":"Checkout","operationId":"checkout_api_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/portal":{"post":{"summary":"Portal","operationId":"portal_api_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingLink"}}}}}}},"/billing/webhook":{"post":{"summary":"Webhook","operationId":"webhook_billing_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/feedback":{"post":{"summary":"Send Feedback","operationId":"send_feedback_api_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/delete":{"post":{"summary":"Delete Account","operationId":"delete_account_api_account_delete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/diagnostics":{"get":{"summary":"Diagnostics","operationId":"diagnostics_api_diagnostics_get","parameters":[{"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","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnosticsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tools":{"get":{"summary":"List Tools","operationId":"list_tools_api_tools_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolCatalogResponse"}}}}}}},"/api/tools/{operation}":{"post":{"summary":"Run Paid Tool","operationId":"run_paid_tool_api_tools__operation__post","parameters":[{"name":"operation","in":"path","required":true,"schema":{"type":"string","title":"Operation"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/health":{"get":{"summary":"Health","operationId":"health_api_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/session":{"get":{"summary":"Session Info","operationId":"session_info_api_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}}}}},"/api/prompts":{"get":{"summary":"Prompt Library","operationId":"prompt_library_api_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Prompt"},"type":"array","title":"Response Prompt Library Api Prompts Get"}}}}}}},"/api/auth/local":{"post":{"summary":"Local Sign In","operationId":"local_sign_in_api_auth_local_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/logout":{"post":{"summary":"Logout","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/google/start":{"post":{"summary":"Google Start","operationId":"google_start_api_auth_google_start_post","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"/connections","title":"Next"}},{"name":"analytics","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Analytics"}},{"name":"after_login","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"After Login"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Local Google Start","operationId":"local_google_start_api_auth_google_start_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"type":"string","default":"/connections","title":"Next"}},{"name":"analytics","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Analytics"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/google/callback":{"get":{"summary":"Google Callback","operationId":"google_callback_api_auth_google_callback_get","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/overview":{"get":{"summary":"Overview","operationId":"overview_api_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Overview"}}}}}}},"/api/properties/refresh":{"post":{"summary":"Refresh","operationId":"refresh_api_properties_refresh_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshOverview"}}}}}}},"/api/properties/selection":{"put":{"summary":"Select Properties","operationId":"select_properties_api_properties_selection_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertySelection"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/properties/{property_id}":{"patch":{"summary":"Toggle Property","operationId":"toggle_property_api_properties__property_id__patch","parameters":[{"name":"property_id","in":"path","required":true,"schema":{"type":"string","title":"Property Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Toggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/connections/{connection_id}":{"delete":{"summary":"Disconnect","operationId":"disconnect_api_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/demo/connect":{"post":{"summary":"Connect Demo","operationId":"connect_demo_api_demo_connect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshOverview"}}}}}}},"/api/performance":{"post":{"summary":"Performance","operationId":"performance_api_performance_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerformanceInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/key":{"get":{"summary":"Read Key","operationId":"read_key_api_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AbsentKey"},{"$ref":"#/components/schemas/ReadyKey"}],"title":"Response Read Key Api Key Get","discriminator":{"propertyName":"state","mapping":{"absent":"#/components/schemas/AbsentKey","ready":"#/components/schemas/ReadyKey"}}}}}}}},"post":{"summary":"Ensure Key","operationId":"ensure_key_api_key_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyKey"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/key/regenerate":{"post":{"summary":"Regenerate Key","operationId":"regenerate_key_api_key_regenerate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateKeyInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReadyKey"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyStateChanged"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/oauth/consent/{request_id}":{"get":{"summary":"Consent Info","operationId":"consent_info_api_oauth_consent__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Consent Decision","operationId":"consent_decision_api_oauth_consent__request_id__post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentInput"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentDecisionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/grants":{"get":{"summary":"Grants","operationId":"grants_api_grants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantsResponse"}}}}}}},"/api/grants/{grant_id}":{"delete":{"summary":"Revoke Grant","operationId":"revoke_grant_api_grants__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-setup":{"get":{"summary":"Agent Setup","operationId":"agent_setup_api_agent_setup_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"AbsentKey":{"properties":{"state":{"type":"string","const":"absent","title":"State","default":"absent"}},"type":"object","title":"AbsentKey"},"AdminAnalyticsDay":{"properties":{"date":{"type":"string","title":"Date"},"calls":{"type":"integer","title":"Calls"},"successes":{"type":"integer","title":"Successes"},"tools":{"additionalProperties":{"type":"integer"},"type":"object","title":"Tools"}},"type":"object","required":["date","calls","successes","tools"],"title":"AdminAnalyticsDay"},"AdminAnalyticsResponse":{"properties":{"days":{"items":{"$ref":"#/components/schemas/AdminAnalyticsDay"},"type":"array","title":"Days"},"tools":{"items":{"$ref":"#/components/schemas/AdminToolUsage"},"type":"array","title":"Tools"},"calls":{"type":"integer","title":"Calls"},"successes":{"type":"integer","title":"Successes"},"active_users":{"type":"integer","title":"Active Users"},"total_users":{"type":"integer","title":"Total Users"},"properties":{"type":"integer","title":"Properties"}},"type":"object","required":["days","tools","calls","successes","active_users","total_users","properties"],"title":"AdminAnalyticsResponse"},"AdminCall":{"properties":{"id":{"type":"string","title":"Id"},"tool_name":{"type":"string","title":"Tool Name"},"success":{"type":"boolean","title":"Success"},"created_at":{"type":"integer","title":"Created At"}},"type":"object","required":["id","tool_name","success","created_at"],"title":"AdminCall"},"AdminConnection":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status"},"demo":{"type":"boolean","title":"Demo"}},"type":"object","required":["id","email","status","demo"],"title":"AdminConnection"},"AdminKey":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","created_at","last_used_at"],"title":"AdminKey"},"AdminPlanUpdate":{"properties":{"plan":{"anyOf":[{"type":"string","enum":["Free","Starter","Pro","Max"]},{"type":"null"}],"title":"Plan"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["plan","reason"],"title":"AdminPlanUpdate"},"AdminProperty":{"properties":{"id":{"type":"string","title":"Id"},"site_url":{"type":"string","title":"Site Url"},"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["id","site_url","enabled"],"title":"AdminProperty"},"AdminToolUsage":{"properties":{"name":{"type":"string","title":"Name"},"calls":{"type":"integer","title":"Calls"}},"type":"object","required":["name","calls"],"title":"AdminToolUsage"},"AdminUser":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"},"billing_plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Billing Plan"},"admin_plan":{"anyOf":[{"type":"string","enum":["Free","Starter","Pro","Max"]},{"type":"null"}],"title":"Admin Plan"},"created_at":{"type":"integer","title":"Created At"},"calls":{"type":"integer","title":"Calls"},"last_used_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Used At"},"properties":{"type":"integer","title":"Properties"},"connections":{"type":"integer","title":"Connections"}},"type":"object","required":["id","name","email","plan","billing_plan","admin_plan","created_at","calls","last_used_at","properties","connections"],"title":"AdminUser"},"AdminUserDetailResponse":{"properties":{"user":{"$ref":"#/components/schemas/AdminUser"},"connections":{"items":{"$ref":"#/components/schemas/AdminConnection"},"type":"array","title":"Connections"},"properties":{"items":{"$ref":"#/components/schemas/AdminProperty"},"type":"array","title":"Properties"},"keys":{"items":{"$ref":"#/components/schemas/AdminKey"},"type":"array","title":"Keys"},"recent_calls":{"items":{"$ref":"#/components/schemas/AdminCall"},"type":"array","title":"Recent Calls"}},"type":"object","required":["user","connections","properties","keys","recent_calls"],"title":"AdminUserDetailResponse"},"AdminUsersResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminUser"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AdminUsersResponse"},"BillingLink":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"BillingLink"},"BillingStatus":{"properties":{"configured":{"type":"boolean","title":"Configured"},"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"},"subscription":{"$ref":"#/components/schemas/SubscriptionStatus"},"purchase_action":{"type":"string","enum":["start_checkout","resume_checkout","manage_subscription","reconciling","unavailable"],"title":"Purchase Action"},"reason_code":{"anyOf":[{"type":"string","enum":["BILLING_NOT_CONFIGURED","BILLING_SYNC_PENDING","BILLING_SYNC_REQUIRED","BILLING_SYNC_FAILED","BILLING_RECOVERY_REQUIRED","BILLING_STATE_UNKNOWN"]},{"type":"null"}],"title":"Reason Code"},"checkout":{"anyOf":[{"$ref":"#/components/schemas/CheckoutStatus"},{"type":"null"}]},"sync":{"$ref":"#/components/schemas/SyncStatus"},"prices":{"additionalProperties":{"additionalProperties":{"type":"boolean"},"propertyNames":{"enum":["monthly","quarterly"]},"type":"object"},"propertyNames":{"enum":["Starter","Pro","Max"]},"type":"object","title":"Prices"}},"type":"object","required":["configured","plan","subscription","purchase_action","reason_code","checkout","sync","prices"],"title":"BillingStatus"},"CheckoutInput":{"properties":{"plan":{"type":"string","enum":["Starter","Pro","Max"],"title":"Plan"},"interval":{"type":"string","enum":["monthly","quarterly"],"title":"Interval","default":"monthly"}},"additionalProperties":false,"type":"object","required":["plan"],"title":"CheckoutInput"},"CheckoutStatus":{"properties":{"reference":{"type":"string","format":"uuid","title":"Reference"},"state":{"type":"string","enum":["open","completed","expired","unknown"],"title":"State"},"plan":{"type":"string","enum":["Starter","Pro","Max"],"title":"Plan"},"interval":{"type":"string","enum":["monthly","quarterly"],"title":"Interval"}},"type":"object","required":["reference","state","plan","interval"],"title":"CheckoutStatus"},"ConnectionRefreshResult":{"properties":{"connection_id":{"type":"string","title":"Connection Id"},"status":{"type":"string","enum":["refreshed","reconnect_required","temporarily_unavailable","disconnected_during_refresh","not_attempted"],"title":"Status"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"type":"string","title":"Message"}},"type":"object","required":["connection_id","status","code","message"],"title":"ConnectionRefreshResult"},"ConsentDecisionResponse":{"properties":{"redirect_url":{"type":"string","title":"Redirect Url"}},"type":"object","required":["redirect_url"],"title":"ConsentDecisionResponse"},"ConsentInput":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"type":"object","required":["approve"],"title":"ConsentInput"},"ConsentResponse":{"properties":{"client_name":{"type":"string","title":"Client Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"properties":{"items":{"$ref":"#/components/schemas/OverviewProperty"},"type":"array","title":"Properties"}},"type":"object","required":["client_name","scopes","properties"],"title":"ConsentResponse"},"CreateKeyInput":{"properties":{},"additionalProperties":false,"type":"object","title":"CreateKeyInput"},"DeleteAccountInput":{"properties":{"confirmation":{"type":"string","const":"DELETE","title":"Confirmation"}},"type":"object","required":["confirmation"],"title":"DeleteAccountInput"},"DiagnosticMetric":{"properties":{"label":{"type":"string","title":"Label"},"checked":{"type":"integer","title":"Checked"},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"}},"type":"object","required":["label","checked","total"],"title":"DiagnosticMetric"},"DiagnosticQuota":{"properties":{"limit":{"type":"integer","title":"Limit"},"used":{"type":"integer","title":"Used"},"remaining":{"type":"integer","title":"Remaining"},"resets_at":{"type":"string","title":"Resets At"}},"type":"object","required":["limit","used","remaining","resets_at"],"title":"DiagnosticQuota"},"DiagnosticReport":{"properties":{"id":{"type":"string","title":"Id"},"tool":{"type":"string","title":"Tool"},"title":{"type":"string","title":"Title"},"target":{"type":"string","title":"Target"},"source":{"type":"string","enum":["mcp","dashboard"],"title":"Source"},"started_at":{"type":"string","title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"status":{"type":"string","enum":["running","complete","partial","failed"],"title":"Status"},"metrics":{"items":{"$ref":"#/components/schemas/DiagnosticMetric"},"type":"array","title":"Metrics"},"notes":{"items":{"type":"string"},"type":"array","title":"Notes"}},"type":"object","required":["id","tool","title","target","source","started_at","finished_at","status","metrics","notes"],"title":"DiagnosticReport"},"DiagnosticsResponse":{"properties":{"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"},"allowances":{"items":{"$ref":"#/components/schemas/UsageAllowance"},"type":"array","title":"Allowances"},"quota":{"$ref":"#/components/schemas/DiagnosticQuota"},"reports":{"items":{"$ref":"#/components/schemas/DiagnosticReport"},"type":"array","title":"Reports"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["plan","allowances","quota","reports","total","limit","offset"],"title":"DiagnosticsResponse"},"FeedbackInput":{"properties":{"feedback":{"type":"string","maxLength":2000,"minLength":1,"title":"Feedback"},"emoji":{"type":"string","enum":["☹️","😐","😀"],"title":"Emoji"},"page":{"type":"string","maxLength":500,"title":"Page","default":"/"}},"additionalProperties":false,"type":"object","required":["feedback","emoji"],"title":"FeedbackInput"},"GoogleStartResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"GoogleStartResponse"},"GrantsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/OAuthGrant"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"GrantsResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"JsonValue":{},"KeyMetadata":{"properties":{"id":{"type":"string","title":"Id"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","prefix","created_at","last_used_at"],"title":"KeyMetadata"},"KeyStateChanged":{"properties":{"code":{"type":"string","const":"KEY_STATE_CHANGED","title":"Code"},"detail":{"type":"string","title":"Detail"}},"type":"object","required":["code","detail"],"title":"KeyStateChanged"},"OAuthGrant":{"properties":{"id":{"type":"string","title":"Id"},"client_id":{"type":"string","title":"Client Id"},"client_name":{"type":"string","title":"Client Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"created_at":{"type":"string","title":"Created At"},"expires_at":{"type":"string","title":"Expires At"}},"type":"object","required":["id","client_id","client_name","scopes","created_at","expires_at"],"title":"OAuthGrant"},"Overview":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/OverviewConnection"},"type":"array","title":"Connections"},"properties":{"items":{"$ref":"#/components/schemas/OverviewProperty"},"type":"array","title":"Properties"},"property_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Limit"},"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"},"usage":{"$ref":"#/components/schemas/OverviewUsage"},"demo":{"type":"boolean","title":"Demo"},"mcp_url":{"type":"string","title":"Mcp Url"}},"type":"object","required":["connections","properties","property_limit","plan","usage","demo","mcp_url"],"title":"Overview"},"OverviewConnection":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"status":{"type":"string","title":"Status"},"analytics_status":{"type":"string","enum":["connected","not_connected","reconnect_required","unknown"],"title":"Analytics Status","default":"unknown"}},"type":"object","required":["id","email","status"],"title":"OverviewConnection"},"OverviewProperty":{"properties":{"id":{"type":"string","title":"Id"},"site_url":{"type":"string","title":"Site Url"},"permission_level":{"type":"string","title":"Permission Level"},"enabled":{"type":"boolean","title":"Enabled"},"connection_id":{"type":"string","title":"Connection Id"}},"type":"object","required":["id","site_url","permission_level","enabled","connection_id"],"title":"OverviewProperty"},"OverviewUsage":{"properties":{"total_calls":{"type":"integer","title":"Total Calls"},"successful_calls":{"type":"integer","title":"Successful Calls"},"last_call_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Call At"},"last_agent_call_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Agent Call At"},"calls_today":{"type":"integer","title":"Calls Today"}},"type":"object","required":["total_calls","successful_calls","last_call_at","last_agent_call_at","calls_today"],"title":"OverviewUsage"},"PerformanceInput":{"properties":{"property_id":{"type":"string","maxLength":36,"title":"Property Id"},"start_date":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Start Date"},"end_date":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"End Date"},"dimensions":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":6},{"type":"null"}],"title":"Dimensions"},"limit":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Limit","default":20}},"additionalProperties":false,"type":"object","required":["property_id"],"title":"PerformanceInput"},"Prompt":{"properties":{"id":{"type":"string","title":"Id"},"category":{"type":"string","enum":["Performance","Content","Rankings","Indexing"],"title":"Category"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"text":{"type":"string","title":"Text"}},"type":"object","required":["id","category","title","description","text"],"title":"Prompt"},"PropertySelection":{"properties":{"property_ids":{"items":{"type":"string","maxLength":36,"minLength":1},"type":"array","maxItems":1000,"title":"Property Ids"}},"additionalProperties":false,"type":"object","required":["property_ids"],"title":"PropertySelection"},"PublicInput":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"}},"additionalProperties":false,"type":"object","required":["url"],"title":"PublicInput"},"ReadyKey":{"properties":{"state":{"type":"string","const":"ready","title":"State","default":"ready"},"key":{"type":"string","title":"Key"},"item":{"$ref":"#/components/schemas/KeyMetadata"}},"type":"object","required":["key","item"],"title":"ReadyKey"},"ReconcileInput":{"properties":{"checkout_ref":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Checkout Ref"}},"additionalProperties":false,"type":"object","title":"ReconcileInput"},"RefreshOverview":{"properties":{"connections":{"items":{"$ref":"#/components/schemas/OverviewConnection"},"type":"array","title":"Connections"},"properties":{"items":{"$ref":"#/components/schemas/OverviewProperty"},"type":"array","title":"Properties"},"property_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Property Limit"},"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"},"usage":{"$ref":"#/components/schemas/OverviewUsage"},"demo":{"type":"boolean","title":"Demo"},"mcp_url":{"type":"string","title":"Mcp Url"},"refresh_results":{"items":{"$ref":"#/components/schemas/ConnectionRefreshResult"},"type":"array","title":"Refresh Results"}},"type":"object","required":["connections","properties","property_limit","plan","usage","demo","mcp_url","refresh_results"],"title":"RefreshOverview"},"RotateKeyInput":{"properties":{"expected_key_id":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","title":"Expected Key Id"}},"additionalProperties":false,"type":"object","required":["expected_key_id"],"title":"RotateKeyInput"},"SessionResponse":{"properties":{"account_deletion_enabled":{"type":"boolean","title":"Account Deletion Enabled","default":false},"user":{"anyOf":[{"$ref":"#/components/schemas/SessionUser"},{"type":"null"}]},"local_auth_enabled":{"type":"boolean","title":"Local Auth Enabled"},"google_configured":{"type":"boolean","title":"Google Configured"}},"type":"object","required":["user","local_auth_enabled","google_configured"],"title":"SessionResponse"},"SessionUser":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","title":"Email"},"is_admin":{"type":"boolean","title":"Is Admin"},"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"}},"type":"object","required":["id","name","email","is_admin","plan"],"title":"SessionUser"},"SubscriptionStatus":{"properties":{"state":{"type":"string","enum":["none","active","needs_attention","unknown"],"title":"State"}},"type":"object","required":["state"],"title":"SubscriptionStatus"},"SyncStatus":{"properties":{"state":{"type":"string","enum":["idle","pending","error"],"title":"State"},"required":{"type":"boolean","title":"Required"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked At"},"retry_after_seconds":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Retry After Seconds"}},"type":"object","required":["state","required","checked_at","retry_after_seconds"],"title":"SyncStatus"},"Toggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"Toggle"},"ToolAllowance":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"configured":{"type":"boolean","title":"Configured"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"period":{"anyOf":[{"type":"string","enum":["day","month"]},{"type":"null"}],"title":"Period"},"used":{"type":"integer","title":"Used"}},"type":"object","required":["allowed","reason_code","configured","limit","period","used"],"title":"ToolAllowance"},"ToolCatalogItem":{"properties":{"allowed":{"type":"boolean","title":"Allowed"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"configured":{"type":"boolean","title":"Configured"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"period":{"anyOf":[{"type":"string","enum":["day","month"]},{"type":"null"}],"title":"Period"},"used":{"type":"integer","title":"Used"},"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"constraints":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Constraints"},"input_schema":{"additionalProperties":{"$ref":"#/components/schemas/JsonValue"},"type":"object","title":"Input Schema"},"variants":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ToolAllowance"},"type":"object"},{"type":"null"}],"title":"Variants"},"component_usage":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ToolComponentUsage"},"type":"object"},{"type":"null"}],"title":"Component Usage"},"partial_results_supported":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partial Results Supported"}},"type":"object","required":["allowed","reason_code","configured","limit","period","used","id","title","constraints","input_schema"],"title":"ToolCatalogItem"},"ToolCatalogResponse":{"properties":{"plan":{"type":"string","enum":["Free","Starter","Pro","Max"],"title":"Plan"},"tools":{"items":{"$ref":"#/components/schemas/ToolCatalogItem"},"type":"array","title":"Tools"},"javascript_available":{"type":"boolean","title":"Javascript Available"},"quota_note":{"type":"string","title":"Quota Note"}},"type":"object","required":["plan","tools","javascript_available","quota_note"],"title":"ToolCatalogResponse"},"ToolComponentUsage":{"properties":{"quota_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quota Group"},"maximum_units":{"type":"integer","title":"Maximum Units"}},"type":"object","required":["quota_group","maximum_units"],"title":"ToolComponentUsage"},"ToolRequest":{"properties":{"arguments":{"additionalProperties":true,"type":"object","title":"Arguments"}},"additionalProperties":false,"type":"object","title":"ToolRequest"},"UsageAllowance":{"properties":{"id":{"type":"string","title":"Id"},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"},"used":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Used"},"period":{"anyOf":[{"type":"string","enum":["day","month"]},{"type":"null"}],"title":"Period"},"resets_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resets At"}},"type":"object","required":["id","limit","used","period","resets_at"],"title":"UsageAllowance"},"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"}}}}