{"openapi":"3.1.0","info":{"title":"Tao public agent foundation","version":"1.0.0"},"paths":{"/agent/v1/projects":{"get":{"tags":["Public agent foundation"],"summary":"Projects","operationId":"projects_agent_v1_projects_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/v1/methodologies/hemp-material-scenario":{"get":{"tags":["Public agent foundation"],"summary":"Methodology","operationId":"methodology_agent_v1_methodologies_hemp_material_scenario_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/v1/calculations":{"post":{"tags":["Public agent foundation"],"summary":"Calculation","operationId":"calculation_agent_v1_calculations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Scenario"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculationResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/reservation-requests":{"post":{"tags":["Public agent foundation"],"summary":"Reserve","operationId":"reserve_agent_v1_reservation_requests_post","parameters":[{"name":"idempotency-key","in":"header","required":true,"schema":{"type":"string","minLength":16,"maxLength":80,"pattern":"^[A-Za-z0-9_-]+$","title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Sign in required"},"403":{"description":"Verified email required"},"404":{"description":"Request not found or not owned"},"409":{"description":"Idempotency key conflicts"},"429":{"description":"Request limit reached"}},"security":[{"VerifiedAccount":[]}]}},"/agent/v1/reservation-requests/{rid}":{"get":{"tags":["Public agent foundation"],"summary":"Get Request","operationId":"get_request_agent_v1_reservation_requests__rid__get","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"401":{"description":"Sign in required"},"403":{"description":"Verified email required"},"404":{"description":"Request not found or not owned"},"409":{"description":"Idempotency key conflicts"},"429":{"description":"Request limit reached"}},"security":[{"VerifiedAccount":[]}]}},"/agent/v1/orders":{"post":{"tags":["Public agent foundation"],"summary":"Unavailable","operationId":"unavailable_agent_v1_orders_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/v1/holds":{"post":{"tags":["Public agent foundation"],"summary":"Unavailable","operationId":"unavailable_agent_v1_holds_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Amount":{"properties":{"value":{"type":"number","maximum":1000000000000.0,"minimum":0.0,"title":"Value"},"source":{"type":"string","maxLength":500,"minLength":3,"title":"Source"}},"additionalProperties":false,"type":"object","required":["value","source"],"title":"Amount"},"CalculationResult":{"properties":{"method_id":{"type":"string","title":"Method Id"},"input_sha256":{"type":"string","title":"Input Sha256"},"status":{"type":"string","const":"scenario","title":"Status"},"units":{"type":"string","const":"tCO2e","title":"Units"},"gross_storage_tco2e":{"type":"number","title":"Gross Storage Tco2E"},"scenario_net_tco2e":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Scenario Net Tco2E"},"missing_inputs":{"items":{"type":"string"},"type":"array","title":"Missing Inputs"},"inputs":{"$ref":"#/components/schemas/Scenario"},"formula":{"type":"string","title":"Formula"},"sources_validated":{"type":"boolean","const":false,"title":"Sources Validated"},"uncertainty":{"type":"string","title":"Uncertainty"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["method_id","input_sha256","status","units","gross_storage_tco2e","scenario_net_tco2e","missing_inputs","inputs","formula","sources_validated","uncertainty","warnings"],"title":"CalculationResult"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Scenario":{"properties":{"dry_biomass_tonnes":{"$ref":"#/components/schemas/Amount"},"carbon_fraction":{"$ref":"#/components/schemas/Amount"},"retained_fraction":{"$ref":"#/components/schemas/Amount"},"storage_years":{"type":"number","maximum":1000.0,"exclusiveMinimum":0.0,"title":"Storage Years"},"storage_source":{"type":"string","maxLength":500,"minLength":3,"title":"Storage Source"},"accounting_scope":{"type":"string","maxLength":1000,"minLength":3,"title":"Accounting Scope"},"project_emissions_tco2e":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"baseline_tco2e":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"leakage_tco2e":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]},"risk_deduction_tco2e":{"anyOf":[{"$ref":"#/components/schemas/Amount"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["dry_biomass_tonnes","carbon_fraction","retained_fraction","storage_years","storage_source","accounting_scope"],"title":"Scenario"},"SupplyRequest":{"properties":{"project_id":{"type":"string","const":"moldova-hemp","title":"Project Id"},"requested_tonnes":{"type":"number","maximum":1000000.0,"exclusiveMinimum":0.0,"title":"Requested Tonnes"},"company":{"type":"string","maxLength":160,"minLength":1,"title":"Company"},"delivery_preference":{"type":"string","maxLength":200,"minLength":1,"title":"Delivery Preference"},"notes":{"type":"string","maxLength":1500,"title":"Notes","default":""},"authority_confirmed":{"type":"boolean","const":true,"title":"Authority Confirmed"},"non_binding_acknowledged":{"type":"boolean","const":true,"title":"Non Binding Acknowledged"}},"additionalProperties":false,"type":"object","required":["project_id","requested_tonnes","company","delivery_preference","authority_confirmed","non_binding_acknowledged"],"title":"SupplyRequest"},"SupplyResponse":{"properties":{"request_id":{"type":"string","title":"Request Id"},"status":{"type":"string","const":"received_for_review","title":"Status"},"staff_workflow_status":{"type":"string","title":"Staff Workflow Status"},"project_id":{"type":"string","title":"Project Id"},"requested_tonnes":{"type":"number","title":"Requested Tonnes"},"created_at":{"type":"string","title":"Created At"},"allocated_tonnes":{"type":"integer","const":0,"title":"Allocated Tonnes"},"binding":{"type":"boolean","const":false,"title":"Binding"},"notice":{"type":"string","title":"Notice"}},"type":"object","required":["request_id","status","staff_workflow_status","project_id","requested_tonnes","created_at","allocated_tonnes","binding","notice"],"title":"SupplyResponse"},"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"}},"securitySchemes":{"VerifiedAccount":{"type":"http","scheme":"bearer","bearerFormat":"Firebase ID token","description":"Short-lived verified Tao account token. Use only with account-holder authority. No staff privileges are granted."}}},"servers":[{"url":"https://taoclimateplatform.com"}]}