{"openapi":"3.1.0","info":{"title":"Arena-CAD API","version":"0.1.0"},"paths":{"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/config":{"get":{"summary":"Get Config","operationId":"get_config_v1_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/me":{"get":{"summary":"Get Me","operationId":"get_me_v1_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/me/verification-email":{"post":{"summary":"Post Verification Email","operationId":"post_verification_email_v1_me_verification_email_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/me/ledger":{"get":{"summary":"Get Ledger","operationId":"get_ledger_v1_me_ledger_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/me/battles":{"get":{"summary":"Get Battles","operationId":"get_battles_v1_me_battles_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/battles":{"post":{"summary":"Post Battle","operationId":"post_battle_v1_battles_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_post_battle_v1_battles_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/battles/{battle_id}":{"get":{"summary":"Get Battle","operationId":"get_battle_v1_battles__battle_id__get","parameters":[{"name":"battle_id","in":"path","required":true,"schema":{"type":"string","title":"Battle Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/battles/{battle_id}/vote":{"post":{"summary":"Post Vote","operationId":"post_vote_v1_battles__battle_id__vote_post","parameters":[{"name":"battle_id","in":"path","required":true,"schema":{"type":"string","title":"Battle Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CastVote"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/leaderboard":{"get":{"summary":"Get Leaderboard","operationId":"get_leaderboard_v1_leaderboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/billing/checkout":{"post":{"summary":"Post Checkout","operationId":"post_checkout_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Checkout"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/stripe":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/internal/runs/{battle_id}/{side}/events":{"post":{"summary":"Run Event","operationId":"run_event_v1_internal_runs__battle_id___side__events_post","parameters":[{"name":"battle_id","in":"path","required":true,"schema":{"type":"string","title":"Battle Id"}},{"name":"side","in":"path","required":true,"schema":{"$ref":"#/components/schemas/Side"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Event"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_post_battle_v1_battles_post":{"properties":{"task_type":{"$ref":"#/components/schemas/TaskType"},"format":{"$ref":"#/components/schemas/Format"},"prompt":{"type":"string","title":"Prompt","default":""},"run_mode":{"$ref":"#/components/schemas/RunMode","default":"battle"},"contestant_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contestant Id"},"contestant_b_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contestant B Id"},"execution_mode":{"$ref":"#/components/schemas/ExecutionMode","default":"fast"},"image":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Image"},"step":{"anyOf":[{"type":"string","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Step"}},"type":"object","required":["task_type","format"],"title":"Body_post_battle_v1_battles_post"},"CastVote":{"properties":{"winner":{"$ref":"#/components/schemas/Winner"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment"}},"type":"object","required":["winner"],"title":"CastVote"},"Checkout":{"properties":{"package_id":{"type":"string","title":"Package Id"}},"type":"object","required":["package_id"],"title":"Checkout"},"ExecutionMode":{"type":"string","enum":["fast","max"],"title":"ExecutionMode"},"Format":{"type":"string","enum":["freecad","nx"],"title":"Format"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"RunMode":{"type":"string","enum":["battle","direct","side_by_side"],"title":"RunMode"},"Side":{"type":"string","enum":["a","b"],"title":"Side"},"TaskType":{"type":"string","enum":["cad","assembly","drawing","reconstruction","simulation"],"title":"TaskType"},"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"},"Winner":{"type":"string","enum":["a","b","tie","both_bad"],"title":"Winner"}}}}