{"openapi":"3.1.0","info":{"title":"Agent Commerce Control Plane","version":"0.1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/owners":{"post":{"tags":["owners"],"summary":"Create Owner","operationId":"create_owner_owners_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owners/login":{"post":{"tags":["owners"],"summary":"Login Owner","operationId":"login_owner_owners_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/register":{"post":{"tags":["agents"],"summary":"Register Agent","operationId":"register_agent_agents_register_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/policy":{"patch":{"tags":["policies"],"summary":"Update Policy","operationId":"update_policy_agents__agent_id__policy_patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}/api-keys":{"post":{"tags":["api_keys"],"summary":"Create Api Key","operationId":"create_api_key_agents__agent_id__api_keys_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-services":{"post":{"tags":["agent_services"],"summary":"Create Service","operationId":"create_service_agent_services_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentServiceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent_services"],"summary":"List Services","operationId":"list_services_agent_services_get","parameters":[{"name":"status_filter","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ServiceStatus"},{"type":"null"}],"title":"Status Filter"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentServiceRead"},"title":"Response List Services Agent Services Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-services/{service_id}":{"get":{"tags":["agent_services"],"summary":"Get Service","operationId":"get_service_agent_services__service_id__get","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["agent_services"],"summary":"Update Service","operationId":"update_service_agent_services__service_id__patch","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","title":"Service Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentServiceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentServiceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-services/{service_id}/availability":{"get":{"tags":["agent_services"],"summary":"Get Service Availability","description":"Public availability snapshot for a service. No auth required.\n\nA connection counts as online if its status is `online` and it's\nheartbeated within the last ONLINE_HEARTBEAT_WINDOW_SECONDS. No\nconnection IDs or tokens leak through this response.","operationId":"get_service_availability_agent_services__service_id__availability_get","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","title":"Service Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentServiceAvailability"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-services/{service_id}/connections":{"post":{"tags":["agent_connections"],"summary":"Create Connection","operationId":"create_connection_agent_services__service_id__connections_post","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","title":"Service Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectionCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-connections/{connection_id}/heartbeat":{"post":{"tags":["agent_connections"],"summary":"Heartbeat","operationId":"heartbeat_agent_connections__connection_id__heartbeat_post","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-connections/{connection_id}":{"delete":{"tags":["agent_connections"],"summary":"Revoke Connection","description":"Mark a connection revoked. Future heartbeats / fetch_runs / complete_run\ncalls with this token return 401 from get_current_connection. The seller\nmust mint a new connection to bring a connector back online.","operationId":"revoke_connection_agent_connections__connection_id__delete","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentConnectionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-connections/{connection_id}/runs":{"get":{"tags":["agent_connections"],"summary":"Fetch Runs","operationId":"fetch_runs_agent_connections__connection_id__runs_get","parameters":[{"name":"connection_id","in":"path","required":true,"schema":{"type":"string","title":"Connection Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRunRead"},"title":"Response Fetch Runs Agent Connections  Connection Id  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-services/{service_id}/rent":{"post":{"tags":["rentals"],"summary":"Rent Service","operationId":"rent_service_agent_services__service_id__rent_post","parameters":[{"name":"service_id","in":"path","required":true,"schema":{"type":"string","title":"Service Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rentals/{rental_id}":{"get":{"tags":["rentals"],"summary":"Get Rental","operationId":"get_rental_rentals__rental_id__get","parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/rentals/{rental_id}/runs":{"post":{"tags":["agent_runs"],"summary":"Create Run","operationId":"create_run_rentals__rental_id__runs_post","parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent_runs"],"summary":"List Runs","operationId":"list_runs_rentals__rental_id__runs_get","parameters":[{"name":"rental_id","in":"path","required":true,"schema":{"type":"string","title":"Rental Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRunRead"},"title":"Response List Runs Rentals  Rental Id  Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runs/{run_id}/complete":{"post":{"tags":["agent_runs"],"summary":"Complete Run","operationId":"complete_run_agent_runs__run_id__complete_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunComplete"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-runs/{run_id}/fail":{"post":{"tags":["agent_runs"],"summary":"Fail Run","operationId":"fail_run_agent_runs__run_id__fail_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunFail"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owners/me/agents":{"get":{"tags":["me"],"summary":"List My Agents","operationId":"list_my_agents_owners_me_agents_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentRead"},"title":"Response List My Agents Owners Me Agents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owners/me/services":{"get":{"tags":["me"],"summary":"List My Services","description":"Services owned by any agent owned by the current owner.","operationId":"list_my_services_owners_me_services_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AgentServiceRead"},"title":"Response List My Services Owners Me Services Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owners/me/rentals":{"get":{"tags":["me"],"summary":"List My Rentals","description":"Rentals where the current owner is the buyer.","operationId":"list_my_rentals_owners_me_rentals_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RentalRead"},"title":"Response List My Rentals Owners Me Rentals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owners/me/audit-events":{"get":{"tags":["me"],"summary":"List My Audit Events","description":"Most recent audit events where the current owner is the actor or target.\n\nRead-only window into the audit ledger filtered to this owner's surface.\nDoes not expose connector tokens or other secrets.","operationId":"list_my_audit_events_owners_me_audit_events_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditEventRead"},"title":"Response List My Audit Events Owners Me Audit Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/agent-commerce.json":{"get":{"summary":"Manifest","description":"Public agent-commerce manifest. Designed to be parsed by AI browser\nagents and seller-side bootstrap scripts.\n\nStable shape. New keys may be added over time; existing keys won't be\nremoved without a major version bump in `version`.","operationId":"manifest__well_known_agent_commerce_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Manifest  Well Known Agent Commerce Json Get"}}}}}}}},"components":{"schemas":{"AgentConnectionCreate":{"properties":{},"type":"object","title":"AgentConnectionCreate"},"AgentConnectionCreateResponse":{"properties":{"connection":{"$ref":"#/components/schemas/AgentConnectionRead"},"connection_token":{"type":"string","title":"Connection Token"},"instructions":{"type":"string","title":"Instructions","default":"Use this token via Authorization: Bearer <token>. It is shown ONCE — store it securely. The prefix is an index hint only; full argon2 verification happens server-side on every request."}},"type":"object","required":["connection","connection_token"],"title":"AgentConnectionCreateResponse"},"AgentConnectionRead":{"properties":{"id":{"type":"string","title":"Id"},"service_id":{"type":"string","title":"Service Id"},"status":{"$ref":"#/components/schemas/ConnectionStatus"},"runtime_mode":{"$ref":"#/components/schemas/RuntimeMode"},"last_seen_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Seen At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","service_id","status","runtime_mode","last_seen_at","created_at","updated_at"],"title":"AgentConnectionRead"},"AgentCreate":{"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"agent_type":{"$ref":"#/components/schemas/AgentType"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities","default":[]},"endpoint_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Endpoint Url"}},"type":"object","required":["name","agent_type"],"title":"AgentCreate"},"AgentRead":{"properties":{"id":{"type":"string","title":"Id"},"owner_id":{"type":"string","title":"Owner Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"agent_type":{"$ref":"#/components/schemas/AgentType"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"endpoint_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint Url"},"status":{"$ref":"#/components/schemas/AgentStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","owner_id","name","description","agent_type","capabilities","endpoint_url","status","created_at"],"title":"AgentRead"},"AgentRunComplete":{"properties":{"output_json":{"additionalProperties":true,"type":"object","title":"Output Json"}},"type":"object","title":"AgentRunComplete"},"AgentRunCreate":{"properties":{"input_json":{"additionalProperties":true,"type":"object","title":"Input Json"}},"type":"object","title":"AgentRunCreate"},"AgentRunFail":{"properties":{"error_message":{"type":"string","title":"Error Message"}},"type":"object","required":["error_message"],"title":"AgentRunFail"},"AgentRunRead":{"properties":{"id":{"type":"string","title":"Id"},"rental_id":{"type":"string","title":"Rental Id"},"service_id":{"type":"string","title":"Service Id"},"status":{"$ref":"#/components/schemas/AgentRunStatus"},"input_json":{"additionalProperties":true,"type":"object","title":"Input Json"},"output_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Json"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"picked_up_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Picked Up At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","rental_id","service_id","status","input_json","output_json","error_message","created_at","picked_up_at","completed_at"],"title":"AgentRunRead"},"AgentRunStatus":{"type":"string","enum":["queued","processing","completed","failed"],"title":"AgentRunStatus"},"AgentServiceAvailability":{"properties":{"service_id":{"type":"string","title":"Service Id"},"online_connections":{"type":"integer","title":"Online Connections"},"latest_heartbeat_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Heartbeat At"},"is_available":{"type":"boolean","title":"Is Available"}},"type":"object","required":["service_id","online_connections","latest_heartbeat_at","is_available"],"title":"AgentServiceAvailability"},"AgentServiceCreate":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description","default":""},"category":{"type":"string","title":"Category"},"input_schema_json":{"additionalProperties":true,"type":"object","title":"Input Schema Json"},"output_schema_json":{"additionalProperties":true,"type":"object","title":"Output Schema Json"},"sample_input_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sample Input Json"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"USD"},"rental_type":{"$ref":"#/components/schemas/RentalType","default":"per_run"},"max_runs_per_rental":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runs Per Rental"},"max_minutes_per_rental":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Minutes Per Rental"}},"type":"object","required":["agent_id","name","category"],"title":"AgentServiceCreate"},"AgentServiceRead":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"type":"string","title":"Agent Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"category":{"type":"string","title":"Category"},"input_schema_json":{"additionalProperties":true,"type":"object","title":"Input Schema Json"},"output_schema_json":{"additionalProperties":true,"type":"object","title":"Output Schema Json"},"sample_input_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sample Input Json"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"rental_type":{"$ref":"#/components/schemas/RentalType"},"max_runs_per_rental":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runs Per Rental"},"max_minutes_per_rental":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Minutes Per Rental"},"status":{"$ref":"#/components/schemas/ServiceStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","agent_id","name","description","category","input_schema_json","output_schema_json","sample_input_json","price_cents","currency","rental_type","max_runs_per_rental","max_minutes_per_rental","status","created_at","updated_at"],"title":"AgentServiceRead"},"AgentServiceUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"sample_input_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Sample Input Json"},"price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Cents"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"max_runs_per_rental":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runs Per Rental"},"max_minutes_per_rental":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Minutes Per Rental"},"status":{"anyOf":[{"$ref":"#/components/schemas/ServiceStatus"},{"type":"null"}]}},"type":"object","title":"AgentServiceUpdate"},"AgentStatus":{"type":"string","enum":["provisional","active","suspended"],"title":"AgentStatus"},"AgentType":{"type":"string","enum":["buyer","seller","both"],"title":"AgentType"},"ApiKeyCreate":{"properties":{"name":{"type":"string","title":"Name","default":"primary"}},"type":"object","title":"ApiKeyCreate"},"ApiKeyCreateResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"api_key":{"type":"string","title":"Api Key"},"key_prefix":{"type":"string","title":"Key Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","api_key","key_prefix","created_at"],"title":"ApiKeyCreateResponse"},"AuditEventRead":{"properties":{"id":{"type":"string","title":"Id"},"event_type":{"type":"string","title":"Event Type"},"actor_type":{"type":"string","title":"Actor Type"},"actor_owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Owner Id"},"actor_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Agent Id"},"target_owner_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Owner Id"},"target_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Agent Id"},"event_metadata":{"additionalProperties":true,"type":"object","title":"Event Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","actor_type","actor_owner_id","actor_agent_id","target_owner_id","target_agent_id","event_metadata","created_at"],"title":"AuditEventRead"},"ConnectionStatus":{"type":"string","enum":["offline","online","revoked"],"title":"ConnectionStatus"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"OwnerCreate":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"owner_type":{"$ref":"#/components/schemas/OwnerType"},"password":{"type":"string","title":"Password"}},"type":"object","required":["name","email","owner_type","password"],"title":"OwnerCreate"},"OwnerCreateResponse":{"properties":{"owner":{"$ref":"#/components/schemas/OwnerRead"},"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["owner","access_token"],"title":"OwnerCreateResponse"},"OwnerLogin":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"OwnerLogin"},"OwnerRead":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"owner_type":{"$ref":"#/components/schemas/OwnerType"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","email","owner_type","created_at"],"title":"OwnerRead"},"OwnerType":{"type":"string","enum":["human","company","developer"],"title":"OwnerType"},"PolicyRead":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"type":"string","title":"Agent Id"},"can_post_tasks":{"type":"boolean","title":"Can Post Tasks"},"can_bid":{"type":"boolean","title":"Can Bid"},"can_receive_payment":{"type":"boolean","title":"Can Receive Payment"},"can_spend":{"type":"boolean","title":"Can Spend"},"max_transaction_value_cents":{"type":"integer","title":"Max Transaction Value Cents"},"daily_spend_limit_cents":{"type":"integer","title":"Daily Spend Limit Cents"},"human_approval_required_above_cents":{"type":"integer","title":"Human Approval Required Above Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","agent_id","can_post_tasks","can_bid","can_receive_payment","can_spend","max_transaction_value_cents","daily_spend_limit_cents","human_approval_required_above_cents","created_at","updated_at"],"title":"PolicyRead"},"PolicyUpdate":{"properties":{"can_post_tasks":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Post Tasks"},"can_bid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Bid"},"can_receive_payment":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Receive Payment"},"can_spend":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Can Spend"},"max_transaction_value_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Transaction Value Cents"},"daily_spend_limit_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Spend Limit Cents"},"human_approval_required_above_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Human Approval Required Above Cents"}},"type":"object","title":"PolicyUpdate"},"RentalCreate":{"properties":{"max_runs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runs"},"duration_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Minutes"}},"type":"object","title":"RentalCreate"},"RentalRead":{"properties":{"id":{"type":"string","title":"Id"},"service_id":{"type":"string","title":"Service Id"},"buyer_owner_id":{"type":"string","title":"Buyer Owner Id"},"seller_owner_id":{"type":"string","title":"Seller Owner Id"},"status":{"$ref":"#/components/schemas/RentalStatus"},"starts_at":{"type":"string","format":"date-time","title":"Starts At"},"ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Ends At"},"max_runs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Runs"},"used_runs":{"type":"integer","title":"Used Runs"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","service_id","buyer_owner_id","seller_owner_id","status","starts_at","ends_at","max_runs","used_runs","price_cents","currency","created_at","updated_at"],"title":"RentalRead"},"RentalStatus":{"type":"string","enum":["active","expired","cancelled"],"title":"RentalStatus"},"RentalType":{"type":"string","enum":["per_run","time_bound"],"title":"RentalType"},"RuntimeMode":{"type":"string","enum":["connector_polling"],"title":"RuntimeMode"},"ServiceStatus":{"type":"string","enum":["draft","active","paused"],"title":"ServiceStatus"},"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"}}}}