{"openapi":"3.1.0","info":{"title":"ai_memory_market","version":"0.1.0"},"servers":[{"url":"/api"}],"paths":{"/viewer/me":{"get":{"tags":["viewer"],"summary":"Viewer Me","description":"Return the anonymous viewer id (minting one if needed).\n\nThis endpoint exists mainly for the frontend to display a soft accountability\nidentifier and to ensure cookies are established early in the session.","operationId":"viewer_me_viewer_me_get","parameters":[{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewerMeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/request-otp":{"post":{"tags":["auth"],"summary":"Request Otp","operationId":"request_otp_auth_request_otp_post","parameters":[{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOtpIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOtpOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify-otp":{"post":{"tags":["auth"],"summary":"Verify Otp","operationId":"verify_otp_auth_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyOtpOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password-reset/request":{"post":{"tags":["auth"],"summary":"Request Password Reset","operationId":"request_password_reset_auth_password_reset_request_post","parameters":[{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password-reset/verify":{"post":{"tags":["auth"],"summary":"Verify Password Reset","operationId":"verify_password_reset_auth_password_reset_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetVerifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetVerifyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password-reset/set-password":{"post":{"tags":["auth"],"summary":"Set Password After Reset","operationId":"set_password_after_reset_auth_password_reset_set_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetSetPasswordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetSetPasswordOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/set-password":{"post":{"tags":["auth"],"summary":"Set Password","operationId":"set_password_auth_set_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPasswordIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetPasswordOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_auth_login_post","parameters":[{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_auth_logout_post","parameters":[{"name":"session_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/invite-code/me":{"get":{"tags":["auth"],"summary":"Get My Invite Code","operationId":"get_my_invite_code_auth_invite_code_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCodeMeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/invite-code/claim":{"post":{"tags":["auth"],"summary":"Claim My Invite Code","operationId":"claim_my_invite_code_auth_invite_code_claim_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteCodeClaimOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me":{"get":{"tags":["auth"],"summary":"Me","operationId":"me_auth_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/profile":{"post":{"tags":["auth"],"summary":"Update Profile","operationId":"update_profile_auth_profile_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/username":{"post":{"tags":["auth"],"summary":"Update Username","operationId":"update_username_auth_username_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsernameUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsernameUpdateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/overview":{"get":{"tags":["admin"],"summary":"Admin Overview","description":"Small admin dashboard summary for the unified console shell.","operationId":"admin_overview_admin_overview_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Overview Admin Overview Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orders":{"get":{"tags":["admin"],"summary":"Admin List Orders","operationId":"admin_list_orders_admin_orders_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdminOrderOut"},"title":"Response Admin List Orders Admin Orders Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orders/{order_id}/mark-paid":{"post":{"tags":["admin"],"summary":"Admin Mark Paid","description":"Admin-only payment confirmation.\n\nNotes:\n- Must be idempotent.\n- Must not oversell under concurrent confirmations.\n- Must not mint multiple entitlements for a single order.","operationId":"admin_mark_paid_admin_orders__order_id__mark_paid_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminMarkPaidOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"tags":["admin-users"],"summary":"Admin List Users","operationId":"admin_list_users_admin_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Search user id/email/username/display name","title":"Q"},"description":"Search user id/email/username/display name"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},{"name":"risk_flag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Flag"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Users Admin Users Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/profile":{"get":{"tags":["admin-users"],"summary":"Admin User Profile","operationId":"admin_user_profile_admin_users__user_id__profile_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin User Profile Admin Users  User Id  Profile Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/notes":{"post":{"tags":["admin-users"],"summary":"Admin Add User Note","operationId":"admin_add_user_note_admin_users__user_id__notes_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserNoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Add User Note Admin Users  User Id  Notes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/restrict":{"post":{"tags":["admin-users"],"summary":"Admin Restrict User","operationId":"admin_restrict_user_admin_users__user_id__restrict_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAdminActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Restrict User Admin Users  User Id  Restrict Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/restore":{"post":{"tags":["admin-users"],"summary":"Admin Restore User","operationId":"admin_restore_user_admin_users__user_id__restore_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserAdminActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Restore User Admin Users  User Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/problem-rooms":{"get":{"tags":["admin-moderation"],"summary":"Admin Problem Rooms","operationId":"admin_problem_rooms_admin_moderation_problem_rooms_get","parameters":[{"name":"room_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"risk_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Status"}},{"name":"admin_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Problem Rooms Admin Moderation Problem Rooms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/problem-rooms/{room_id}":{"patch":{"tags":["admin-moderation"],"summary":"Patch Problem Room Admin","operationId":"patch_problem_room_admin_admin_moderation_problem_rooms__room_id__patch","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomAdminPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Problem Room Admin Admin Moderation Problem Rooms  Room Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/solutions":{"get":{"tags":["admin-moderation"],"summary":"Admin Solutions","operationId":"admin_solutions_admin_moderation_solutions_get","parameters":[{"name":"problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"risk_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Status"}},{"name":"admin_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Solutions Admin Moderation Solutions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/solutions/{solution_id}":{"patch":{"tags":["admin-moderation"],"summary":"Patch Solution Admin","operationId":"patch_solution_admin_admin_moderation_solutions__solution_id__patch","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAdminPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Solution Admin Admin Moderation Solutions  Solution Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/vendor-contacts":{"get":{"tags":["admin-moderation"],"summary":"Admin Vendor Contacts","operationId":"admin_vendor_contacts_admin_moderation_vendor_contacts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"verification_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"}},{"name":"contact_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Vendor Contacts Admin Moderation Vendor Contacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/vendor-contacts/{contact_id}":{"patch":{"tags":["admin-moderation"],"summary":"Patch Vendor Contact Admin","operationId":"patch_vendor_contact_admin_admin_moderation_vendor_contacts__contact_id__patch","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactAdminPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Vendor Contact Admin Admin Moderation Vendor Contacts  Contact Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/risk-flags":{"post":{"tags":["admin-moderation"],"summary":"Create Risk Flag","operationId":"create_risk_flag_admin_moderation_risk_flags_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskFlagCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Risk Flag Admin Moderation Risk Flags Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-moderation"],"summary":"List Risk Flags","operationId":"list_risk_flags_admin_moderation_risk_flags_get","parameters":[{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Risk Flags Admin Moderation Risk Flags Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/risk-flags/{flag_id}":{"patch":{"tags":["admin-moderation"],"summary":"Patch Risk Flag","operationId":"patch_risk_flag_admin_moderation_risk_flags__flag_id__patch","parameters":[{"name":"flag_id","in":"path","required":true,"schema":{"type":"string","title":"Flag Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskFlagPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Risk Flag Admin Moderation Risk Flags  Flag Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/disputes":{"post":{"tags":["admin-moderation"],"summary":"Create Dispute","operationId":"create_dispute_admin_moderation_disputes_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputeCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Dispute Admin Moderation Disputes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-moderation"],"summary":"List Disputes","operationId":"list_disputes_admin_moderation_disputes_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"case_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Type"}},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Disputes Admin Moderation Disputes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/disputes/{case_id}":{"get":{"tags":["admin-moderation"],"summary":"Get Dispute","operationId":"get_dispute_admin_moderation_disputes__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Dispute Admin Moderation Disputes  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["admin-moderation"],"summary":"Patch Dispute","operationId":"patch_dispute_admin_moderation_disputes__case_id__patch","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisputePatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Patch Dispute Admin Moderation Disputes  Case Id  Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation/actions":{"post":{"tags":["admin-moderation"],"summary":"Create Admin Action","operationId":"create_admin_action_admin_moderation_actions_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Admin Action Admin Moderation Actions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin-moderation"],"summary":"List Admin Actions","operationId":"list_admin_actions_admin_moderation_actions_get","parameters":[{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"}},{"name":"target_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Id"}},{"name":"action_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Admin Actions Admin Moderation Actions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/preview/{listing_id}":{"get":{"tags":["preview"],"summary":"Preview Listing","description":"Return a safe preview (meta/manifest/items) for an entitled buyer.\n\nMVP behavior: we read from the *latest ready delivery.zip* for the listing's package\nand return only JSON index files (no blobs).\n\nIf no ready delivery exists yet, the caller should request one via /request-delivery.","operationId":"preview_listing_preview__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/register":{"post":{"tags":["packages"],"summary":"Register Package","operationId":"register_package_packages_register_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageRegisterIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageRegisterOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/mine":{"get":{"tags":["packages"],"summary":"List My Packages","operationId":"list_my_packages_packages_mine_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MyWorkOut"},"title":"Response List My Packages Packages Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/delete":{"post":{"tags":["packages"],"summary":"Delete My Package","description":"Soft-delete a package (hide from portal). Keeps DB rows for audit/review.","operationId":"delete_my_package_packages__package_id__delete_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDeleteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/delete-requests":{"post":{"tags":["packages"],"summary":"Request Delete Sold Package","description":"Create a deletion request for a sold package (manual review).","operationId":"request_delete_sold_package_packages__package_id__delete_requests_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDeletionRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageDeletionRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}":{"get":{"tags":["packages"],"summary":"Get Package","operationId":"get_package_packages__package_id__get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PackagePublicOut"},{"$ref":"#/components/schemas/PackagePrivateOut"}],"title":"Response Get Package Packages  Package Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/solution-usage":{"get":{"tags":["packages"],"summary":"Get Package Solution Usage","description":"Return public Solution usage and assetization provenance for a package.\n\nThis is the P2-C reverse index: asset packs are the inside layer, so the\npublic asset page can show which visible Solutions use the package as a\ncomponent and which Solutions generated it as a reusable asset. Hidden or\ninternal component edges are not disclosed unless the authenticated user is\nthe package creator.","operationId":"get_package_solution_usage_packages__package_id__solution_usage_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Package Solution Usage Packages  Package Id  Solution Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/cert":{"get":{"tags":["packages"],"summary":"Get Package Cert","operationId":"get_package_cert_packages__package_id__cert_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageCertOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/ciphertext-download":{"get":{"tags":["packages"],"summary":"Ciphertext Download","description":"Return a presigned GET URL for ciphertext.zip.\n\nProduct UI MVP: ciphertext download must be gated by entitlement bound to the\nauthenticated user (user_id). viewer_id may exist for anonymous browsing/diagnostics,\nbut is not the purchase identity.","operationId":"ciphertext_download_packages__package_id__ciphertext_download_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CiphertextDownloadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings":{"post":{"tags":["listings"],"summary":"Create Listing","operationId":"create_listing_listings_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["listings"],"summary":"List Listings","description":"Return public marketplace listings with server-side filters.\n\nKeep this lightweight for the web marketplace. Agent search still uses its\nmanifest-aware endpoint, but both routes now agree on visibility rules and\ncore filters so pagination/sorting do not depend on frontend-only filtering.","operationId":"list_listings_listings_get","parameters":[{"name":"market_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Market Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Category"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"subscription_eligible","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subscription Eligible"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","maxLength":32,"default":"newest","title":"Sort"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"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":{"$ref":"#/components/schemas/ListingOut"},"title":"Response List Listings Listings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/drafts":{"post":{"tags":["listings"],"summary":"Create Draft Listing","description":"Create a draft listing for the creator portal.\n\nUnlike the public create_listing endpoint, this intentionally creates a *draft*.\nWe allow drafts even when the package is not yet technically ready, so creators\ncan fill in title/description/price/supply first. Publishing still requires\nexplicit acknowledgements and (typically) a ready package.","operationId":"create_draft_listing_listings_drafts_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingDraftCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingDraftCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}":{"get":{"tags":["listings"],"summary":"Get Listing","operationId":"get_listing_listings__listing_id__get","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/ListingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["listings"],"summary":"Update Listing","operationId":"update_listing_listings__listing_id__patch","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["listings"],"summary":"Delete Listing","operationId":"delete_listing_listings__listing_id__delete","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Listing Listings  Listing Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}/solution-usage":{"get":{"tags":["listings"],"summary":"Get Listing Solution Usage","operationId":"get_listing_solution_usage_listings__listing_id__solution_usage_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing 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 Listing Solution Usage Listings  Listing Id  Solution Usage Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}/purchase-surface":{"get":{"tags":["listings"],"summary":"Get Listing Purchase Surface","description":"Return public purchase UX context for a listing.\n\nWhen a listing is the primary wrapper for a published Solution, the checkout\nshould say “buy solution” even though the existing order system still uses\nlisting_id/package_id under the hood. Plain asset package listings stay as listing purchases.","operationId":"get_listing_purchase_surface_listings__listing_id__purchase_surface_get","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/ListingPurchaseSurfaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}/quote":{"get":{"tags":["listings"],"summary":"Get Listing Quote","description":"Return a server-authoritative purchase/subscription quote for this buyer.\n\nAuth is required because protected-upstream credits depend on whether the\nbuyer already owns same-scope upstream entitlements. The response includes\nblocked_reason instead of raising for business-rule denials so checkout can\nshow a precise explanation.","operationId":"get_listing_quote_listings__listing_id__quote_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"license_scope","in":"query","required":false,"schema":{"type":"string","description":"personal|commercial","default":"personal","title":"License Scope"},"description":"personal|commercial"},{"name":"access_mode","in":"query","required":false,"schema":{"type":"string","description":"purchase|subscription","default":"purchase","title":"Access Mode"},"description":"purchase|subscription"},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Listing Quote Listings  Listing Id  Quote Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}/references":{"get":{"tags":["listings"],"summary":"Get Listing References","operationId":"get_listing_references_listings__listing_id__references_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ListingReferenceOut"},"title":"Response Get Listing References Listings  Listing Id  References Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["listings"],"summary":"Add Listing Reference","operationId":"add_listing_reference_listings__listing_id__references_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingReferenceCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingReferenceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}/references/validation":{"get":{"tags":["listings"],"summary":"Validate Listing Reference Graph","operationId":"validate_listing_reference_graph_listings__listing_id__references_validation_get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingReferenceValidationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/listings/{listing_id}/references/{reference_id}":{"delete":{"tags":["listings"],"summary":"Delete Listing Reference","operationId":"delete_listing_reference_listings__listing_id__references__reference_id__delete","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"reference_id","in":"path","required":true,"schema":{"type":"string","title":"Reference Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Listing Reference Listings  Listing Id  References  Reference Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders":{"post":{"tags":["orders"],"summary":"Create Order","operationId":"create_order_orders_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}/pay-with-wallet":{"post":{"tags":["orders"],"summary":"Pay With Wallet","description":"Pay a pending order using wallet balance.\n\nPhase 3 validates the current server quote before charging. If the quote has\nchanged since the order was created, payment is rejected so the client can\nrefresh checkout instead of over/under-charging the buyer.","operationId":"pay_with_wallet_orders__order_id__pay_with_wallet_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayWithWalletOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}/mark-paid":{"post":{"tags":["orders"],"summary":"Mark Paid","description":"Buyer self-service mark-paid is intentionally removed.\n\nPayment confirmation is an admin-only action. Keep this route as a hard\ntombstone so old clients fail loudly without accidentally enabling fake\npayments.","operationId":"mark_paid_orders__order_id__mark_paid_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkPaidOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/me":{"get":{"tags":["orders"],"summary":"List My Orders","operationId":"list_my_orders_orders_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrderOut"},"title":"Response List My Orders Orders Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orders/{order_id}":{"get":{"tags":["orders"],"summary":"Get Order","operationId":"get_order_orders__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["orders"],"summary":"Cancel Order","operationId":"cancel_order_orders__order_id__delete","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/entitlements/me":{"get":{"tags":["entitlements"],"summary":"My Entitlements","operationId":"my_entitlements_entitlements_me_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":5,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EntitlementOut"},"title":"Response My Entitlements Entitlements Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/request-delivery":{"post":{"tags":["deliveries"],"summary":"Request Delivery","operationId":"request_delivery_request_delivery_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestDeliveryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestDeliveryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliveries/me":{"get":{"tags":["deliveries"],"summary":"List My Deliveries","operationId":"list_my_deliveries_deliveries_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeliveryOut"},"title":"Response List My Deliveries Deliveries Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deliveries/{delivery_id}":{"get":{"tags":["deliveries"],"summary":"Get Delivery","operationId":"get_delivery_deliveries__delivery_id__get","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/integrations/sources":{"get":{"tags":["integrations"],"summary":"Integrations Sources","operationId":"integrations_sources_integrations_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/IntegrationSourceOut"},"type":"array","title":"Response Integrations Sources Integrations Sources Get"}}}}}}},"/integrations/build-payload":{"post":{"tags":["integrations"],"summary":"Integrations Build Payload","description":"Build and return a memory-package/v1 payload.zip.\n\nLocal-only endpoint:\n- Reads only from the user-provided local path.\n- Does not call any cloud APIs.\n\nNote: The caller must ensure the provided workspace/export path does not\ncontain sensitive material they do not want packaged.","operationId":"integrations_build_payload_integrations_build_payload_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BuildPayloadIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/ezpay/submit":{"get":{"tags":["payments"],"summary":"Ezpay Submit","description":"Return an auto-submitting HTML form for 易支付.\n\n易支付发起支付是 POST 到 submit.php。为了避免前端处理签名/密钥，\n我们在后端生成表单并自动提交。","operationId":"ezpay_submit_payments_ezpay_submit_get","parameters":[{"name":"order_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Order Id"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"alipay|wxpay|qqpay","title":"Type"},"description":"alipay|wxpay|qqpay"}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payments/ezpay/topup/submit":{"get":{"tags":["payments"],"summary":"Ezpay Topup Submit","description":"Return an auto-submitting HTML form for EzPay wallet top-up.","operationId":"ezpay_topup_submit_payments_ezpay_topup_submit_get","parameters":[{"name":"topup_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Topup Id"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"alipay|wxpay","title":"Type"},"description":"alipay|wxpay"}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ezpay/topup/notify":{"get":{"tags":["payments"],"summary":"Ezpay Topup Notify","description":"EzPay async notify for wallet top-ups (GET).","operationId":"ezpay_topup_notify_webhooks_ezpay_topup_notify_get","parameters":[{"name":"pid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pid"}},{"name":"trade_no","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade No"}},{"name":"out_trade_no","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out Trade No"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"money","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Money"}},{"name":"trade_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Status"}},{"name":"sign","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign"}},{"name":"sign_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign Type"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/ezpay/notify":{"get":{"tags":["payments"],"summary":"Ezpay Notify","description":"易支付异步通知（GET）。\n\n只有 trade_status == TRADE_SUCCESS 视为成功。\n验签通过后，幂等地将订单置为 paid 并发放 entitlement。\n\n注意：notify_url 是最终可信结果；return_url 仅用于页面提示。","operationId":"ezpay_notify_webhooks_ezpay_notify_get","parameters":[{"name":"pid","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pid"}},{"name":"trade_no","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade No"}},{"name":"out_trade_no","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Out Trade No"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},{"name":"money","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Money"}},{"name":"trade_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trade Status"}},{"name":"sign","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign"}},{"name":"sign_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sign Type"}}],"responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/me":{"get":{"tags":["wallet"],"summary":"Wallet Me","operationId":"wallet_me_wallet_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletMeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/topups/create":{"post":{"tags":["wallet"],"summary":"Wallet Topup Create","operationId":"wallet_topup_create_wallet_topups_create_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTopupCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTopupCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/ledger":{"get":{"tags":["wallet"],"summary":"Wallet Ledger","operationId":"wallet_ledger_wallet_ledger_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletLedgerOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/wallet/topups":{"get":{"tags":["wallet"],"summary":"Admin Wallet Topups","description":"Minimal internal/debug endpoint.\n\nProtected by `ADMIN_TOKEN` + header `x-admin-token`.","operationId":"admin_wallet_topups_admin_wallet_topups_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminWalletTopupsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms":{"post":{"tags":["problem-rooms"],"summary":"Create Problem Room","operationId":"create_problem_room_problem_rooms_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["problem-rooms"],"summary":"List Problem Rooms","operationId":"list_problem_rooms_problem_rooms_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"room_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type"}},{"name":"parent_problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Problem Room Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/me/contributions":{"get":{"tags":["problem-rooms"],"summary":"My Iqo Contributions","operationId":"my_iqo_contributions_problem_rooms_me_contributions_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IQOContributionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/me/rooms":{"get":{"tags":["problem-rooms"],"summary":"My Problem Rooms","operationId":"my_problem_rooms_problem_rooms_me_rooms_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"room_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}":{"get":{"tags":["problem-rooms"],"summary":"Get Problem Room","operationId":"get_problem_room_problem_rooms__room_id__get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/notes":{"post":{"tags":["problem-rooms"],"summary":"Add Problem Note","operationId":"add_problem_note_problem_rooms__room_id__notes_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemNoteCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemNoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["problem-rooms"],"summary":"List Problem Notes","operationId":"list_problem_notes_problem_rooms__room_id__notes_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"note_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note Type"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProblemNoteOut"},"title":"Response List Problem Notes Problem Rooms  Room Id  Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/reference-notes":{"post":{"tags":["problem-rooms"],"summary":"Add Problem Reference Note","operationId":"add_problem_reference_note_problem_rooms__room_id__reference_notes_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomReferenceNoteCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemNoteOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/information-requests":{"post":{"tags":["problem-rooms"],"summary":"Create Information Request","operationId":"create_information_request_problem_rooms__room_id__information_requests_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationRequestCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["problem-rooms"],"summary":"List Information Requests","operationId":"list_information_requests_problem_rooms__room_id__information_requests_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InformationRequestOut"},"title":"Response List Information Requests Problem Rooms  Room Id  Information Requests Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/information-requests/{request_id}/answer":{"post":{"tags":["problem-rooms"],"summary":"Answer Information Request","operationId":"answer_information_request_problem_rooms__room_id__information_requests__request_id__answer_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationRequestAnswerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/iqo/contributions":{"post":{"tags":["problem-rooms"],"summary":"Contribute To Problem Room Iqo","operationId":"contribute_to_problem_room_iqo_problem_rooms__room_id__iqo_contributions_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IQOContributionCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IQOContributionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/children":{"post":{"tags":["problem-rooms"],"summary":"Create Child Problem Room","operationId":"create_child_problem_room_problem_rooms__room_id__children_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomChildCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomChildCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["problem-rooms"],"summary":"List Child Problem Rooms","operationId":"list_child_problem_rooms_problem_rooms__room_id__children_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomRelationsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/child-rooms":{"get":{"tags":["problem-rooms"],"summary":"List Child Problem Room Records","operationId":"list_child_problem_room_records_problem_rooms__room_id__child_rooms_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/parents":{"get":{"tags":["problem-rooms"],"summary":"List Parent Problem Rooms","operationId":"list_parent_problem_rooms_problem_rooms__room_id__parents_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomRelationsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/iqo":{"get":{"tags":["problem-rooms"],"summary":"Get Problem Room Iqo","operationId":"get_problem_room_iqo_problem_rooms__room_id__iqo_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"include_items","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Items"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomIQOOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-intake/draft":{"post":{"tags":["problem-intake"],"summary":"Create Problem Intake Draft","operationId":"create_problem_intake_draft_problem_intake_draft_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeDraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-intake/{draft_id}":{"get":{"tags":["problem-intake"],"summary":"Get Problem Intake Draft","operationId":"get_problem_intake_draft_problem_intake__draft_id__get","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-intake/{draft_id}/redraft":{"post":{"tags":["problem-intake"],"summary":"Redraft Problem Intake","operationId":"redraft_problem_intake_problem_intake__draft_id__redraft_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeRedraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeDraftOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-intake/{draft_id}/confirm":{"post":{"tags":["problem-intake"],"summary":"Confirm Problem Intake Draft","operationId":"confirm_problem_intake_draft_problem_intake__draft_id__confirm_post","parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","title":"Draft Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeConfirmIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemIntakeConfirmOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/normal-bounty/escrow":{"post":{"tags":["normal-bounties"],"summary":"Create Normal Bounty Escrow","operationId":"create_normal_bounty_escrow_problem_rooms__room_id__normal_bounty_escrow_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdinaryBountyEscrowCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdinaryBountyEscrowOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/normal-bounty":{"get":{"tags":["normal-bounties"],"summary":"Get Normal Bounty Summary","operationId":"get_normal_bounty_summary_problem_rooms__room_id__normal_bounty_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdinaryBountySummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/normal-bounty/award":{"post":{"tags":["normal-bounties"],"summary":"Award Normal Bounty","operationId":"award_normal_bounty_problem_rooms__room_id__normal_bounty_award_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdinaryBountyAwardIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrdinaryBountyAwardOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/recommendations":{"get":{"tags":["recommendations"],"summary":"Get Problem Room Recommendations","operationId":"get_problem_room_recommendations_problem_rooms__room_id__recommendations_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomRecommendationsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/similar-problems":{"post":{"tags":["recommendations"],"summary":"Create Similar Problem Edge","operationId":"create_similar_problem_edge_problem_rooms__room_id__similar_problems_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimilarProblemCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimilarProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/similar-problems/{edge_id}/feedback":{"patch":{"tags":["recommendations"],"summary":"Update Similar Problem Feedback","operationId":"update_similar_problem_feedback_similar_problems__edge_id__feedback_patch","parameters":[{"name":"edge_id","in":"path","required":true,"schema":{"type":"string","title":"Edge Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimilarProblemFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SimilarProblemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/recommendations/solutions":{"post":{"tags":["recommendations"],"summary":"Create Solution Recommendation","operationId":"create_solution_recommendation_problem_rooms__room_id__recommendations_solutions_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionRecommendationCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionRecommendationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recommendations/{recommendation_id}/feedback":{"patch":{"tags":["recommendations"],"summary":"Update Solution Recommendation Feedback","operationId":"update_solution_recommendation_feedback_recommendations__recommendation_id__feedback_patch","parameters":[{"name":"recommendation_id","in":"path","required":true,"schema":{"type":"string","title":"Recommendation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionRecommendationFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionRecommendationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/problem-hints":{"get":{"tags":["recommendations"],"summary":"List Package Problem Hints","operationId":"list_package_problem_hints_packages__package_id__problem_hints_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProblemHintsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["recommendations"],"summary":"Create Package Problem Hint","operationId":"create_package_problem_hint_packages__package_id__problem_hints_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProblemHintCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetProblemHintOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/discovery/search":{"post":{"tags":["discovery"],"summary":"Agent Search Discovery","description":"Agent Token discovery search for problem-first Relicex Skill loops.\n\nThis mirrors /discovery/search but avoids viewer-cookie requirements so\nrelicex_skill can run from cron, OpenClaw background tasks, systemd timers\nor other non-browser runtimes. Results are grouped as complete solutions,\ncustomizable solutions, asset components and similar problem rooms.","operationId":"agent_search_discovery_agent_v1_discovery_search_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/DiscoverySearchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverySearchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/discovery/search":{"post":{"tags":["discovery"],"summary":"Search Discovery","operationId":"search_discovery_discovery_search_post","parameters":[{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverySearchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoverySearchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/component-candidates":{"post":{"tags":["discovery"],"summary":"Solution Component Candidates","description":"Find public asset/listing candidates for a Solution component graph.\n\nThis is read-only. It can be used on a draft or submitted Solution by its\nowner, but it never changes the Solution; the optional mutation lives in\n`/solutions/{solution_id}/assets/from-candidate`.","operationId":"solution_component_candidates_solutions__solution_id__component_candidates_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SolutionComponentCandidatesIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionComponentCandidatesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{problem_room_id}/discover":{"post":{"tags":["discovery"],"summary":"Discover For Problem Room","operationId":"discover_for_problem_room_problem_rooms__problem_room_id__discover_post","parameters":[{"name":"problem_room_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ProblemRoomDiscoverIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomDiscoverOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{problem_room_id}/discovery-results":{"get":{"tags":["discovery"],"summary":"Get Problem Room Discovery Results","operationId":"get_problem_room_discovery_results_problem_rooms__problem_room_id__discovery_results_get","parameters":[{"name":"problem_room_id","in":"path","required":true,"schema":{"type":"string","title":"Problem Room Id"}},{"name":"limit_per_group","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"default":8,"title":"Limit Per Group"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomDiscoveryResultsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/discovery/feedback":{"post":{"tags":["discovery"],"summary":"Create Discovery Feedback","operationId":"create_discovery_feedback_discovery_feedback_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryFeedbackIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveryFeedbackOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendor-contacts":{"post":{"tags":["vendor-contacts"],"summary":"Create Vendor Contact","operationId":"create_vendor_contact_vendor_contacts_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendor-contacts/{contact_id}":{"get":{"tags":["vendor-contacts"],"summary":"Get Vendor Contact","operationId":"get_vendor_contact_vendor_contacts__contact_id__get","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["vendor-contacts"],"summary":"Patch Vendor Contact","operationId":"patch_vendor_contact_vendor_contacts__contact_id__patch","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/vendor-contacts/{contact_id}/status":{"patch":{"tags":["vendor-contacts"],"summary":"Patch Vendor Contact Status","operationId":"patch_vendor_contact_status_vendor_contacts__contact_id__status_patch","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","title":"Contact Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactStatusPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/vendor-contacts":{"get":{"tags":["vendor-contacts"],"summary":"List Room Vendor Contacts","operationId":"list_room_vendor_contacts_problem_rooms__room_id__vendor_contacts_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"contact_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Type"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/vendor-contacts":{"get":{"tags":["vendor-contacts"],"summary":"List Solution Vendor Contacts","operationId":"list_solution_vendor_contacts_solutions__solution_id__vendor_contacts_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"contact_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Type"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/steps/{step_id}/vendor-contacts":{"get":{"tags":["vendor-contacts"],"summary":"List Step Vendor Contacts","operationId":"list_step_vendor_contacts_solutions__solution_id__steps__step_id__vendor_contacts_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"contact_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Type"}},{"name":"region","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},{"name":"include_inactive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Inactive"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorContactsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions":{"post":{"tags":["solutions"],"summary":"Create Solution","operationId":"create_solution_solutions_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["solutions"],"summary":"List Public Solutions","description":"Public discovery surface for Solution-first UI.\n\n`/solutions/[id]` existed before TODO_01, but the top-level `/solutions`\npage needs a real data source instead of static cards. Draft/withdrawn\nsolutions remain private through `_solution_visible_to`; room visibility is\nalso checked so private/unlisted rooms do not leak through the global list.","operationId":"list_public_solutions_solutions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"}},{"name":"include_assets","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Assets"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/manifest/validate":{"post":{"tags":["solutions"],"summary":"Validate Solution Manifest Payload","operationId":"validate_solution_manifest_payload_solutions_manifest_validate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionManifestValidateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Validate Solution Manifest Payload Solutions Manifest Validate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/":{"get":{"tags":["solutions"],"summary":"List Public Solutions","description":"Public discovery surface for Solution-first UI.\n\n`/solutions/[id]` existed before TODO_01, but the top-level `/solutions`\npage needs a real data source instead of static cards. Draft/withdrawn\nsolutions remain private through `_solution_visible_to`; room visibility is\nalso checked so private/unlisted rooms do not leak through the global list.","operationId":"list_public_solutions_solutions__get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"}},{"name":"include_assets","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Assets"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/by-room/{room_id}":{"get":{"tags":["solutions"],"summary":"List Solutions By Room","operationId":"list_solutions_by_room_solutions_by_room__room_id__get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/me":{"get":{"tags":["solutions"],"summary":"My Solutions","operationId":"my_solutions_solutions_me_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/purchase-surface":{"get":{"tags":["solutions"],"summary":"Get Solution Purchase Surface","description":"Return Solution-first purchase metadata without changing listing checkout.\n\nA Solution is directly purchasable only when it is public enough to view and\nhas a primary asset link that resolves to one active ready listing. Plain\nasset packages and listings remain purchasable through their own listing\ncheckout endpoints.","operationId":"get_solution_purchase_surface_solutions__solution_id__purchase_surface_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionPurchaseSurfaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}":{"get":{"tags":["solutions"],"summary":"Get Solution","operationId":"get_solution_solutions__solution_id__get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/manifest":{"get":{"tags":["solutions"],"summary":"Get Solution Manifest","operationId":"get_solution_manifest_solutions__solution_id__manifest_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"full","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Full"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionManifestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/submit":{"post":{"tags":["solutions"],"summary":"Submit Solution","operationId":"submit_solution_solutions__solution_id__submit_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionSubmitOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/status":{"patch":{"tags":["solutions"],"summary":"Patch Solution Status","operationId":"patch_solution_status_solutions__solution_id__status_patch","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStatusPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/assets/from-candidate":{"post":{"tags":["solutions"],"summary":"Add Solution Asset From Candidate","description":"Attach a public Discovery asset candidate to a draft Solution.","operationId":"add_solution_asset_from_candidate_solutions__solution_id__assets_from_candidate_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetFromCandidateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/assets":{"post":{"tags":["solutions"],"summary":"Add Solution Asset","operationId":"add_solution_asset_solutions__solution_id__assets_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetLinkCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/assets/{asset_link_id}":{"delete":{"tags":["solutions"],"summary":"Delete Solution Asset","operationId":"delete_solution_asset_solutions__solution_id__assets__asset_link_id__delete","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"asset_link_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Link Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Solution Asset Solutions  Solution Id  Assets  Asset Link Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/steps":{"post":{"tags":["solutions"],"summary":"Create Solution Step","operationId":"create_solution_step_solutions__solution_id__steps_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStepCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStepOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["solutions"],"summary":"List Solution Steps","operationId":"list_solution_steps_solutions__solution_id__steps_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStepsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/steps/{step_id}":{"get":{"tags":["solutions"],"summary":"Get Solution Step","operationId":"get_solution_step_solutions__solution_id__steps__step_id__get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStepOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["solutions"],"summary":"Patch Solution Step","operationId":"patch_solution_step_solutions__solution_id__steps__step_id__patch","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStepPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionStepOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["solutions"],"summary":"Delete Solution Step","operationId":"delete_solution_step_solutions__solution_id__steps__step_id__delete","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Delete Solution Step Solutions  Solution Id  Steps  Step Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/steps/{step_id}/assets":{"post":{"tags":["solutions"],"summary":"Add Solution Step Asset","operationId":"add_solution_step_asset_solutions__solution_id__steps__step_id__assets_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetLinkCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/deliverables":{"post":{"tags":["solutions"],"summary":"Create Solution Deliverable","operationId":"create_solution_deliverable_solutions__solution_id__deliverables_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["solutions"],"summary":"List Solution Deliverables","operationId":"list_solution_deliverables_solutions__solution_id__deliverables_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverablesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/deliverables/{deliverable_id}":{"patch":{"tags":["solutions"],"summary":"Patch Solution Deliverable","operationId":"patch_solution_deliverable_solutions__solution_id__deliverables__deliverable_id__patch","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","title":"Deliverable Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverablePatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/generated-assets":{"post":{"tags":["solutions"],"summary":"Create Solution Generated Asset","operationId":"create_solution_generated_asset_solutions__solution_id__generated_assets_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionGeneratedAssetCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionGeneratedAssetOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["solutions"],"summary":"List Solution Generated Assets","operationId":"list_solution_generated_assets_solutions__solution_id__generated_assets_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionGeneratedAssetsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/steps/{step_id}/child-problem-room":{"post":{"tags":["solutions"],"summary":"Create Child Problem Room From Step","operationId":"create_child_problem_room_from_step_solutions__solution_id__steps__step_id__child_problem_room_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildProblemRoomCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChildProblemRoomOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/steps/{step_id}/link-solution":{"post":{"tags":["solutions"],"summary":"Link Child Solution To Step","operationId":"link_child_solution_to_step_solutions__solution_id__steps__step_id__link_solution_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"step_id","in":"path","required":true,"schema":{"type":"string","title":"Step Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepLinkSolutionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionAssetLinkOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/revenue-summary":{"get":{"tags":["solutions"],"summary":"Get Solution Revenue Summary","operationId":"get_solution_revenue_summary_solutions__solution_id__revenue_summary_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionRevenueSummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/me/origin-royalties":{"get":{"tags":["solutions"],"summary":"My Origin Royalties","operationId":"my_origin_royalties_solutions_me_origin_royalties_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyOriginRoyaltiesOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/evaluations":{"post":{"tags":["solution-evaluations"],"summary":"Create Solution Evaluation","operationId":"create_solution_evaluation_solutions__solution_id__evaluations_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionEvaluationCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionEvaluationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["solution-evaluations"],"summary":"List Solution Evaluations","operationId":"list_solution_evaluations_solutions__solution_id__evaluations_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"evaluator_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"active","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionEvaluationsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/evaluation-summary":{"get":{"tags":["solution-evaluations"],"summary":"Get Solution Evaluation Summary","operationId":"get_solution_evaluation_summary_solutions__solution_id__evaluation_summary_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionEvaluationSummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/evaluations/{evaluation_id}/status":{"patch":{"tags":["solution-evaluations"],"summary":"Patch Solution Evaluation Status","operationId":"patch_solution_evaluation_status_solutions__solution_id__evaluations__evaluation_id__status_patch","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"evaluation_id","in":"path","required":true,"schema":{"type":"string","title":"Evaluation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionEvaluationStatusPatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionEvaluationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/iqo/allocations":{"post":{"tags":["bounty-allocations"],"summary":"Create Bounty Allocation","operationId":"create_bounty_allocation_problem_rooms__room_id__iqo_allocations_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BountyAllocationCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BountyAllocationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["bounty-allocations"],"summary":"List Bounty Allocations","operationId":"list_bounty_allocations_problem_rooms__room_id__iqo_allocations_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"solution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"}},{"name":"contribution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contribution Id"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BountyAllocationsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/iqo/contributions/{contribution_id}/allocation-status":{"get":{"tags":["bounty-allocations"],"summary":"Get Contribution Allocation Status","operationId":"get_contribution_allocation_status_problem_rooms__room_id__iqo_contributions__contribution_id__allocation_status_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"contribution_id","in":"path","required":true,"schema":{"type":"string","title":"Contribution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContributionAllocationStatusOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/iqo/allocations/{allocation_id}/cancel":{"post":{"tags":["bounty-allocations"],"summary":"Cancel Bounty Allocation","operationId":"cancel_bounty_allocation_problem_rooms__room_id__iqo_allocations__allocation_id__cancel_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"allocation_id","in":"path","required":true,"schema":{"type":"string","title":"Allocation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BountyAllocationCancelIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BountyAllocationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/problem-rooms/{room_id}/iqo/allocations/{allocation_id}/award":{"post":{"tags":["bounty-allocations"],"summary":"Award Bounty Allocation","operationId":"award_bounty_allocation_problem_rooms__room_id__iqo_allocations__allocation_id__award_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"allocation_id","in":"path","required":true,"schema":{"type":"string","title":"Allocation Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/BountyAllocationAwardIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionBountyAwardSummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/solutions/{solution_id}/bounty-award-summary":{"get":{"tags":["bounty-allocations"],"summary":"Get Solution Bounty Award Summary","operationId":"get_solution_bounty_award_summary_solutions__solution_id__bounty_award_summary_get","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionBountyAwardSummaryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/workers":{"post":{"tags":["agent-work"],"summary":"Create Worker","operationId":"create_worker_agent_work_workers_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkerCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkerOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-work"],"summary":"List Workers","operationId":"list_workers_agent_work_workers_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkersOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/workers/{worker_id}":{"get":{"tags":["agent-work"],"summary":"Get Worker","operationId":"get_worker_agent_work_workers__worker_id__get","parameters":[{"name":"worker_id","in":"path","required":true,"schema":{"type":"string","title":"Worker Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkerOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/workers/{worker_id}/policy":{"patch":{"tags":["agent-work"],"summary":"Update Worker Policy","operationId":"update_worker_policy_agent_work_workers__worker_id__policy_patch","parameters":[{"name":"worker_id","in":"path","required":true,"schema":{"type":"string","title":"Worker Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkerPolicyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkerPolicyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/workers/{worker_id}/reputation":{"get":{"tags":["agent-work"],"summary":"Get Worker Reputation","operationId":"get_worker_reputation_agent_work_workers__worker_id__reputation_get","parameters":[{"name":"worker_id","in":"path","required":true,"schema":{"type":"string","title":"Worker Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkerReputationOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/items":{"post":{"tags":["agent-work"],"summary":"Create Work Item","operationId":"create_work_item_agent_work_items_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkItemCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent-work"],"summary":"List Work Items","operationId":"list_work_items_agent_work_items_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"open","title":"Status"}},{"name":"work_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Type"}},{"name":"work_domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Domain"}},{"name":"actor_side","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Side"}},{"name":"problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"}},{"name":"solution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"}},{"name":"source_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"}},{"name":"submission_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Mode"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkItemsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/items/{work_id}/run-status":{"get":{"tags":["agent-work"],"summary":"Get Work Item Run Status","operationId":"get_work_item_run_status_agent_work_items__work_id__run_status_get","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkRunPublicOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/items/{work_id}":{"get":{"tags":["agent-work"],"summary":"Get Work Item","operationId":"get_work_item_agent_work_items__work_id__get","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/items/{work_id}/deliverable-bundles":{"post":{"tags":["agent-work"],"summary":"Upload Work Item Deliverable Bundle","operationId":"upload_work_item_deliverable_bundle_agent_work_items__work_id__deliverable_bundles_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_work_item_deliverable_bundle_agent_work_items__work_id__deliverable_bundles_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableBundleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/deliverable-bundles/{bundle_id}":{"get":{"tags":["agent-work"],"summary":"Get Deliverable Bundle","operationId":"get_deliverable_bundle_agent_work_deliverable_bundles__bundle_id__get","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableBundleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/deliverable-bundles/{bundle_id}/download":{"get":{"tags":["agent-work"],"summary":"Download Deliverable Bundle","operationId":"download_deliverable_bundle_agent_work_deliverable_bundles__bundle_id__download_get","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableBundleDownloadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/items/{work_id}/claim":{"post":{"tags":["agent-work"],"summary":"Claim Work Item","operationId":"claim_work_item_agent_work_items__work_id__claim_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkClaimCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkClaimOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/claims/me":{"get":{"tags":["agent-work"],"summary":"List My Claims","operationId":"list_my_claims_agent_work_claims_me_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkClaimsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/claims/my":{"get":{"tags":["agent-work"],"summary":"List My Claims","operationId":"list_my_claims_agent_work_claims_my_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkClaimsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/solutions/{solution_id}/review-work-item":{"post":{"tags":["agent-work"],"summary":"Ensure Solution Review Work Item Endpoint","operationId":"ensure_solution_review_work_item_endpoint_agent_work_solutions__solution_id__review_work_item_post","parameters":[{"name":"solution_id","in":"path","required":true,"schema":{"type":"string","title":"Solution Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/problem-rooms/{room_id}/review-current-solutions-work-items":{"post":{"tags":["agent-work"],"summary":"Ensure Current Solution Review Work Items Endpoint","operationId":"ensure_current_solution_review_work_items_endpoint_agent_work_problem_rooms__room_id__review_current_solutions_work_items_post","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkReviewBatchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/problem-rooms/{room_id}/evaluation-overview":{"get":{"tags":["agent-work"],"summary":"Get Problem Room Evaluation Overview","operationId":"get_problem_room_evaluation_overview_agent_work_problem_rooms__room_id__evaluation_overview_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemRoomEvaluationOverviewOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/outputs":{"get":{"tags":["agent-work"],"summary":"List Outputs","description":"List Agent outputs published to a problem, solution, or work item.\n\nAgentWorkOutput is now a work log/provenance object. Solution-like outputs\ncreate first-class SolutionProposal rows immediately; there is no separate\nseparate accepted/rejected output category.","operationId":"list_outputs_agent_work_outputs_get","parameters":[{"name":"problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"}},{"name":"solution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"}},{"name":"work_item_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Item Id"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_ignored","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Ignored"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/outputs/me":{"get":{"tags":["agent-work"],"summary":"List My Outputs","operationId":"list_my_outputs_agent_work_outputs_me_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"mine","title":"Scope"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/items/{work_id}/outputs":{"post":{"tags":["agent-work"],"summary":"Submit Work Item Output","description":"Publish an open-call output directly for a work item.\n\nThis is the default Agent Work UX: one work item can receive multiple\noutputs. Solution-like outputs produce first-class SolutionProposal rows\nimmediately. The legacy claim endpoint remains available for explicit\nexclusive flows.","operationId":"submit_work_item_output_agent_work_items__work_id__outputs_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/work-claims/{claim_id}/outputs":{"post":{"tags":["agent-work"],"summary":"Submit Claim Output","operationId":"submit_claim_output_agent_work_work_claims__claim_id__outputs_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/claims/{claim_id}/outputs":{"post":{"tags":["agent-work"],"summary":"Submit Claim Output","operationId":"submit_claim_output_agent_work_claims__claim_id__outputs_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent-work/outputs/{output_id}/status":{"patch":{"tags":["agent-work"],"summary":"Update Output Status","operationId":"update_output_status_agent_work_outputs__output_id__status_patch","parameters":[{"name":"output_id","in":"path","required":true,"schema":{"type":"string","title":"Output Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items":{"get":{"tags":["agent-work"],"summary":"Agent List Work Items","operationId":"agent_list_work_items_agent_v1_work_items_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"open","title":"Status"}},{"name":"work_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Type"}},{"name":"work_domain","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Domain"}},{"name":"actor_side","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Side"}},{"name":"problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"}},{"name":"solution_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"}},{"name":"source_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"}},{"name":"submission_mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Mode"}},{"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":{"$ref":"#/components/schemas/AgentWorkItemsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items/{work_id}/run-status":{"get":{"tags":["agent-work"],"summary":"Agent Get Work Item Run Status","operationId":"agent_get_work_item_run_status_agent_v1_work_items__work_id__run_status_get","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work 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/AgentWorkRunPublicOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items/{work_id}/runs/acquire":{"post":{"tags":["agent-work"],"summary":"Agent Acquire Work Run","operationId":"agent_acquire_work_run_agent_v1_work_items__work_id__runs_acquire_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkRunAcquireIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-runs/{run_id}/heartbeat":{"post":{"tags":["agent-work"],"summary":"Agent Heartbeat Work Run","operationId":"agent_heartbeat_work_run_agent_v1_work_runs__run_id__heartbeat_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/AgentWorkRunHeartbeatIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-runs/{run_id}/status":{"patch":{"tags":["agent-work"],"summary":"Agent Update Work Run Status","operationId":"agent_update_work_run_status_agent_v1_work_runs__run_id__status_patch","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/AgentWorkRunStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkRunOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items/{work_id}":{"get":{"tags":["agent-work"],"summary":"Agent Get Work Item","operationId":"agent_get_work_item_agent_v1_work_items__work_id__get","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work 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/AgentWorkItemOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items/{work_id}/deliverable-bundles":{"post":{"tags":["agent-work"],"summary":"Agent Upload Work Item Deliverable Bundle","operationId":"agent_upload_work_item_deliverable_bundle_agent_v1_work_items__work_id__deliverable_bundles_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_agent_upload_work_item_deliverable_bundle_agent_v1_work_items__work_id__deliverable_bundles_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolutionDeliverableBundleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/deliverable-bundles/{bundle_id}":{"get":{"tags":["agent-work"],"summary":"Agent Get Deliverable Bundle","operationId":"agent_get_deliverable_bundle_agent_v1_deliverable_bundles__bundle_id__get","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle 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/SolutionDeliverableBundleOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/deliverable-bundles/{bundle_id}/download":{"get":{"tags":["agent-work"],"summary":"Agent Download Deliverable Bundle","operationId":"agent_download_deliverable_bundle_agent_v1_deliverable_bundles__bundle_id__download_get","parameters":[{"name":"bundle_id","in":"path","required":true,"schema":{"type":"string","title":"Bundle 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/SolutionDeliverableBundleDownloadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items/{work_id}/outputs":{"post":{"tags":["agent-work"],"summary":"Agent Submit Work Item Output","operationId":"agent_submit_work_item_output_agent_v1_work_items__work_id__outputs_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work 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/AgentWorkOutputCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-items/{work_id}/claim":{"post":{"tags":["agent-work"],"summary":"Agent Claim Work Item","operationId":"agent_claim_work_item_agent_v1_work_items__work_id__claim_post","parameters":[{"name":"work_id","in":"path","required":true,"schema":{"type":"string","title":"Work Id"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkClaimCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkClaimOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-claims/my":{"get":{"tags":["agent-work"],"summary":"Agent List My Claims","operationId":"agent_list_my_claims_agent_v1_work_claims_my_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":{"$ref":"#/components/schemas/AgentWorkClaimsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-outputs/my":{"get":{"tags":["agent-work"],"summary":"Agent List My Outputs","operationId":"agent_list_my_outputs_agent_v1_work_outputs_my_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"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":{"$ref":"#/components/schemas/AgentWorkOutputsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/problem-rooms":{"get":{"tags":["agent-work"],"summary":"Agent List Problem Rooms","operationId":"agent_list_problem_rooms_agent_v1_problem_rooms_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"open","title":"Status"}},{"name":"room_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type"}},{"name":"parent_problem_room_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Problem Room Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Q"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Query"}},{"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":"object","additionalProperties":true,"title":"Response Agent List Problem Rooms Agent V1 Problem Rooms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/problem-rooms/{room_id}":{"get":{"tags":["agent-work"],"summary":"Agent Get Problem Room","operationId":"agent_get_problem_room_agent_v1_problem_rooms__room_id__get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room 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":"object","additionalProperties":true,"title":"Response Agent Get Problem Room Agent V1 Problem Rooms  Room Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/problem-rooms/{room_id}/child-rooms":{"get":{"tags":["agent-work"],"summary":"Agent List Problem Child Rooms","operationId":"agent_list_problem_child_rooms_agent_v1_problem_rooms__room_id__child_rooms_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"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":"object","additionalProperties":true,"title":"Response Agent List Problem Child Rooms Agent V1 Problem Rooms  Room Id  Child Rooms Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/problem-rooms/{room_id}/notes":{"get":{"tags":["agent-work"],"summary":"Agent List Problem Notes","operationId":"agent_list_problem_notes_agent_v1_problem_rooms__room_id__notes_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"note_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note Type"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"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":"object","additionalProperties":true,"title":"Response Agent List Problem Notes Agent V1 Problem Rooms  Room Id  Notes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/problem-rooms/{room_id}/outputs":{"get":{"tags":["agent-work"],"summary":"Agent List Problem Outputs","operationId":"agent_list_problem_outputs_agent_v1_problem_rooms__room_id__outputs_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"output_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"include_ignored","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Ignored"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"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":{"$ref":"#/components/schemas/AgentWorkOutputsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/problem-rooms/{room_id}/solutions":{"get":{"tags":["agent-work"],"summary":"Agent List Problem Solutions","operationId":"agent_list_problem_solutions_agent_v1_problem_rooms__room_id__solutions_get","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"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":"object","additionalProperties":true,"title":"Response Agent List Problem Solutions Agent V1 Problem Rooms  Room Id  Solutions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/work-claims/{claim_id}/outputs":{"post":{"tags":["agent-work"],"summary":"Agent Submit Claim Output","operationId":"agent_submit_claim_output_agent_v1_work_claims__claim_id__outputs_post","parameters":[{"name":"claim_id","in":"path","required":true,"schema":{"type":"string","title":"Claim 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/AgentWorkOutputCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentWorkOutputOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/plans":{"get":{"tags":["subscriptions"],"summary":"List Subscription Plans","operationId":"list_subscription_plans_subscriptions_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response List Subscription Plans Subscriptions Plans Get"}}}}}}},"/subscriptions/me":{"get":{"tags":["subscriptions"],"summary":"Subscription Me","operationId":"subscription_me_subscriptions_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Subscription Me Subscriptions Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/subscribe":{"post":{"tags":["subscriptions"],"summary":"Subscribe","operationId":"subscribe_subscriptions_subscribe_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscribeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Subscribe Subscriptions Subscribe Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/cancel":{"post":{"tags":["subscriptions"],"summary":"Cancel My Subscription","operationId":"cancel_my_subscription_subscriptions_cancel_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel My Subscription Subscriptions Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/subscriptions/authorize":{"post":{"tags":["subscriptions"],"summary":"Subscription Authorize","operationId":"subscription_authorize_subscriptions_authorize_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionAuthorizeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Subscription Authorize Subscriptions Authorize Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscription-plans":{"get":{"tags":["subscriptions"],"summary":"Admin List Subscription Plans","operationId":"admin_list_subscription_plans_admin_subscription_plans_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Subscription Plans Admin Subscription Plans Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["subscriptions"],"summary":"Admin Create Subscription Plan","operationId":"admin_create_subscription_plan_admin_subscription_plans_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPlanCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Create Subscription Plan Admin Subscription Plans Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscriptions":{"get":{"tags":["subscriptions"],"summary":"Admin List Subscriptions","operationId":"admin_list_subscriptions_admin_subscriptions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Subscriptions Admin Subscriptions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscriptions/usages":{"get":{"tags":["subscriptions"],"summary":"Admin List Subscription Usages","operationId":"admin_list_subscription_usages_admin_subscriptions_usages_get","parameters":[{"name":"period_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Key"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Subscription Usages Admin Subscriptions Usages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscriptions/allocation-runs":{"post":{"tags":["subscriptions"],"summary":"Admin Run Subscription Allocation","operationId":"admin_run_subscription_allocation_admin_subscriptions_allocation_runs_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAllocationRunIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Run Subscription Allocation Admin Subscriptions Allocation Runs Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["subscriptions"],"summary":"Admin List Subscription Allocation Runs","operationId":"admin_list_subscription_allocation_runs_admin_subscriptions_allocation_runs_get","parameters":[{"name":"period_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Key"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Subscription Allocation Runs Admin Subscriptions Allocation Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/subscriptions/allocation-runs/{run_id}/void":{"post":{"tags":["subscriptions"],"summary":"Admin Void Subscription Allocation Run","operationId":"admin_void_subscription_allocation_run_admin_subscriptions_allocation_runs__run_id__void_post","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminAllocationVoidIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Void Subscription Allocation Run Admin Subscriptions Allocation Runs  Run Id  Void Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports":{"post":{"tags":["reports","admin-enforcement"],"summary":"Create Report","operationId":"create_report_reports_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Report Reports Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reports/me":{"get":{"tags":["reports","admin-enforcement"],"summary":"My Reports","operationId":"my_reports_reports_me_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Reports Reports Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/abuse-cases":{"get":{"tags":["reports","admin-enforcement"],"summary":"Admin List Abuse Cases","operationId":"admin_list_abuse_cases_admin_abuse_cases_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"case_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Type"}},{"name":"target_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Type"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"reporter_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reporter User Id"}},{"name":"creator_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator User Id"}},{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"package_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Abuse Cases Admin Abuse Cases Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/abuse-cases/{case_id}/review-artifacts":{"get":{"tags":["reports","admin-enforcement"],"summary":"Admin Get Abuse Case Review Artifacts","operationId":"admin_get_abuse_case_review_artifacts_admin_abuse_cases__case_id__review_artifacts_get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Abuse Case Review Artifacts Admin Abuse Cases  Case Id  Review Artifacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/abuse-cases/{case_id}":{"get":{"tags":["reports","admin-enforcement"],"summary":"Admin Get Abuse Case","operationId":"admin_get_abuse_case_admin_abuse_cases__case_id__get","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Get Abuse Case Admin Abuse Cases  Case Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/abuse-cases/{case_id}/status":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Update Abuse Case Status","operationId":"admin_update_abuse_case_status_admin_abuse_cases__case_id__status_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCaseStatusIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Update Abuse Case Status Admin Abuse Cases  Case Id  Status Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/abuse-cases/{case_id}/actions":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Apply Enforcement Action","operationId":"admin_apply_enforcement_action_admin_abuse_cases__case_id__actions_post","parameters":[{"name":"case_id","in":"path","required":true,"schema":{"type":"string","title":"Case Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Apply Enforcement Action Admin Abuse Cases  Case Id  Actions Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/listings/{listing_id}/delist":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Delist Listing","operationId":"admin_delist_listing_admin_listings__listing_id__delist_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminResourceActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Delist Listing Admin Listings  Listing Id  Delist Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/listings/{listing_id}/restore":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Restore Listing","operationId":"admin_restore_listing_admin_listings__listing_id__restore_post","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminResourceActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Restore Listing Admin Listings  Listing Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/packages/{package_id}/quarantine":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Quarantine Package","operationId":"admin_quarantine_package_admin_packages__package_id__quarantine_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminResourceActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Quarantine Package Admin Packages  Package Id  Quarantine Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/packages/{package_id}/restore":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Restore Package","operationId":"admin_restore_package_admin_packages__package_id__restore_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminResourceActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Restore Package Admin Packages  Package Id  Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settlements/freeze":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Freeze Settlements","operationId":"admin_freeze_settlements_admin_settlements_freeze_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettlementScopeActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Freeze Settlements Admin Settlements Freeze Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settlements/restore":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Restore Settlements","operationId":"admin_restore_settlements_admin_settlements_restore_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettlementScopeActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Restore Settlements Admin Settlements Restore Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settlements/forfeit":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Forfeit Settlements","operationId":"admin_forfeit_settlements_admin_settlements_forfeit_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminSettlementScopeActionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Forfeit Settlements Admin Settlements Forfeit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/access-events":{"get":{"tags":["reports","admin-enforcement"],"summary":"Admin List Access Events","operationId":"admin_list_access_events_admin_access_events_get","parameters":[{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"package_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"}},{"name":"agent_token_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"}},{"name":"risk_flag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Flag"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Access Events Admin Access Events Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settlements":{"get":{"tags":["reports","admin-enforcement"],"summary":"Admin List Settlements","operationId":"admin_list_settlements_admin_settlements_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"recipient_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recipient User Id"}},{"name":"case_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Case Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin List Settlements Admin Settlements Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/settlements/release-available":{"post":{"tags":["reports","admin-enforcement"],"summary":"Admin Release Available Settlements","operationId":"admin_release_available_settlements_admin_settlements_release_available_post","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":500,"title":"Limit"}},{"name":"dry_run","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Dry Run"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Admin Release Available Settlements Admin Settlements Release Available Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/earnings/me":{"get":{"tags":["earnings"],"summary":"My Earnings","operationId":"my_earnings_earnings_me_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response My Earnings Earnings Me Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/refunds/request":{"post":{"summary":"User Request Refund","operationId":"user_request_refund_refunds_request_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/refunds/me":{"get":{"summary":"User Refunds","operationId":"user_refunds_refunds_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payout-accounts":{"post":{"summary":"Save Payout Account","operationId":"save_payout_account_payout_accounts_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutAccountIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payout-accounts/me":{"get":{"summary":"My Payout Accounts","operationId":"my_payout_accounts_payout_accounts_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payout-requests":{"post":{"summary":"Create Payout Request","operationId":"create_payout_request_payout_requests_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payout-requests/me":{"get":{"summary":"My Payout Requests","operationId":"my_payout_requests_payout_requests_me_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/refunds":{"get":{"summary":"Admin Refunds","operationId":"admin_refunds_admin_refunds_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mode"}},{"name":"reason_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"}},{"name":"paid_via","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Via"}},{"name":"buyer_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Buyer User Id"}},{"name":"listing_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"}},{"name":"package_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":500,"title":"Limit"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/refunds/{refund_id}":{"get":{"summary":"Admin Refund Detail","operationId":"admin_refund_detail_admin_refunds__refund_id__get","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","title":"Refund Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/refunds/{refund_id}/approve":{"post":{"summary":"Admin Approve Refund","operationId":"admin_approve_refund_admin_refunds__refund_id__approve_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","title":"Refund Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminRefundActionIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/refunds/{refund_id}/reject":{"post":{"summary":"Admin Reject Refund","operationId":"admin_reject_refund_admin_refunds__refund_id__reject_post","parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"string","title":"Refund Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminRefundActionIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orders/{order_id}/chargeback":{"post":{"summary":"Admin Chargeback Order","operationId":"admin_chargeback_order_admin_orders__order_id__chargeback_post","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminChargebackIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-accounts":{"get":{"summary":"Admin Payout Accounts","operationId":"admin_payout_accounts_admin_payout_accounts_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-accounts/{account_id}/verify":{"post":{"summary":"Admin Verify Payout Account","operationId":"admin_verify_payout_account_admin_payout_accounts__account_id__verify_post","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyPayoutAccountIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-requests":{"get":{"summary":"Admin Payout Requests","operationId":"admin_payout_requests_admin_payout_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-requests/{request_id}/approve":{"post":{"summary":"Admin Approve Payout Request","operationId":"admin_approve_payout_request_admin_payout_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPayoutActionIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-requests/{request_id}/mark-paid":{"post":{"summary":"Admin Mark Payout Paid","operationId":"admin_mark_payout_paid_admin_payout_requests__request_id__mark_paid_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPayoutActionIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-requests/{request_id}/mark-failed":{"post":{"summary":"Admin Mark Payout Failed","operationId":"admin_mark_payout_failed_admin_payout_requests__request_id__mark_failed_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPayoutActionIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-requests/{request_id}/reject":{"post":{"summary":"Admin Reject Payout Request","operationId":"admin_reject_payout_request_admin_payout_requests__request_id__reject_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}},{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AdminPayoutActionIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/payout-batches":{"post":{"summary":"Admin Create Payout Batch","operationId":"admin_create_payout_batch_admin_payout_batches_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayoutBatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/earnings/me/export.csv":{"get":{"summary":"Export My Earnings Csv","operationId":"export_my_earnings_csv_earnings_me_export_csv_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exports/orders.csv":{"get":{"summary":"Export Orders Csv","operationId":"export_orders_csv_admin_exports_orders_csv_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exports/settlements.csv":{"get":{"summary":"Export Settlements Csv","operationId":"export_settlements_csv_admin_exports_settlements_csv_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/exports/creator-earnings.csv":{"get":{"summary":"Export Creator Earnings Csv","operationId":"export_creator_earnings_csv_admin_exports_creator_earnings_csv_get","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/tokens":{"get":{"tags":["agent"],"summary":"List Agent Tokens","operationId":"list_agent_tokens_agent_v1_tokens_get","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTokenListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["agent"],"summary":"Create Agent Token","operationId":"create_agent_token_agent_v1_tokens_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTokenCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTokenCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/tokens/{token_id}/revoke":{"post":{"tags":["agent"],"summary":"Revoke Agent Token","operationId":"revoke_agent_token_agent_v1_tokens__token_id__revoke_post","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentTokenRevokeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/audit/logs":{"get":{"tags":["agent"],"summary":"List Agent Audit Logs","operationId":"list_agent_audit_logs_agent_v1_audit_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAuditLogListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/audit-logs":{"get":{"tags":["agent"],"summary":"List Agent Audit Logs V1","operationId":"list_agent_audit_logs_v1_agent_v1_audit_logs_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Return logs strictly before this timestamp","title":"Before"},"description":"Return logs strictly before this timestamp"},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAuditLogV1ListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/ping":{"get":{"tags":["agent"],"summary":"Agent Ping","operationId":"agent_ping_agent_v1_ping_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":"object","additionalProperties":true,"title":"Response Agent Ping Agent V1 Ping Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/listings/search":{"get":{"tags":["agent"],"summary":"Agent Listings Search","description":"AI-friendly search over public listings.\n\nFirst version:\n- read-only\n- only returns active listings\n- lightweight filtering; avoids exposing internal endpoints","operationId":"agent_listings_search_agent_v1_listings_search_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Query"}},{"name":"market_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Market Type"}},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Category"}},{"name":"tags","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"description":"Comma-separated tags","title":"Tags"},"description":"Comma-separated tags"},{"name":"max_price_cents","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Max Price Cents"}},{"name":"currency","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Currency"}},{"name":"subscription_eligible","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subscription Eligible"}},{"name":"allow_reference","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Reference"}},{"name":"license_scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"personal|commercial","title":"License Scope"},"description":"personal|commercial"},{"name":"commercial_ready","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Commercial Ready"}},{"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"}},{"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/AgentListingSearchOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/listings/{listing_id}":{"get":{"tags":["agent"],"summary":"Agent Listings Detail","description":"AI-friendly listing detail view.\n\nFirst version:\n- read-only\n- only exposes public/active listings backed by a ready package\n- never returns signed download urls (delivery flow only)","operationId":"agent_listings_detail_agent_v1_listings__listing_id__get","parameters":[{"name":"listing_id","in":"path","required":true,"schema":{"type":"string","title":"Listing 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/AgentListingDetailOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/listings/drafts":{"post":{"tags":["agent"],"summary":"Agent Listings Create Draft","description":"Create a listing draft owned by the current Agent token user.\n\nFirst version constraints:\n- Draft only (never auto-publish)\n- Must belong to the token's user\n- Can only draft-list packages owned by the same user","operationId":"agent_listings_create_draft_agent_v1_listings_drafts_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/AgentListingDraftCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentListingDraftCreateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/packages/{package_id}/manifest":{"get":{"tags":["agent"],"summary":"Agent Packages Manifest","description":"Read a package manifest in an agent-friendly way.\n\nRules (MVP):\n- Public packages: allowed if there is an active public listing for this package.\n- Private packages: allowed only for the owner (creator_user_id) or users with an entitlement.\n\nNever returns the package blob / ciphertext / file contents. For Relicex pack v0\nuploads, this returns the stored manifest JSON under `manifest` plus normalized\ntop-level fields used by agents and MCP tools.","operationId":"agent_packages_manifest_agent_v1_packages__package_id__manifest_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package 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":"object","additionalProperties":true,"title":"Response Agent Packages Manifest Agent V1 Packages  Package Id  Manifest Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/packages/mine":{"get":{"tags":["agent"],"summary":"Agent Packages Mine","description":"List the creator's own packages (agent token).\n\nThis is a *self* endpoint (scoped to the agent token's user_id), useful for\nMCP verification and creator automation.\n\nNever returns ciphertext / object keys.","operationId":"agent_packages_mine_agent_v1_packages_mine_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/AgentMyWorkOut"},"title":"Response Agent Packages Mine Agent V1 Packages Mine Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/entitlements/me":{"get":{"tags":["agent"],"summary":"Agent Entitlements Me","operationId":"agent_entitlements_me_agent_v1_entitlements_me_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":{"$ref":"#/components/schemas/AgentEntitlementsMeOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/deliveries/request":{"post":{"tags":["agent"],"summary":"Agent Request Delivery","operationId":"agent_request_delivery_agent_v1_deliveries_request_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/AgentDeliveryRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentDeliveryRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/deliveries/{delivery_id}":{"get":{"tags":["agent"],"summary":"Agent Get Delivery","operationId":"agent_get_delivery_agent_v1_deliveries__delivery_id__get","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery 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/AgentDeliveryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/deliveries/{delivery_id}/download":{"get":{"tags":["agent"],"summary":"Agent Get Delivery Download","description":"Return a short-lived presigned download URL for a ready delivery.\n\nThis endpoint exists so agents can fetch the artifact when it is ready,\nwhile keeping the default delivery status endpoint free of signed URLs.","operationId":"agent_get_delivery_download_agent_v1_deliveries__delivery_id__download_get","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery 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/AgentDeliveryDownloadOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/orders/quote":{"post":{"tags":["agent"],"summary":"Agent Quote Order","description":"Return a server-side quote for the token owner.\n\nThe quote includes protected-upstream credits that depend on this buyer's\ncurrent same-scope entitlements. It does not create an order or charge money.","operationId":"agent_quote_order_agent_v1_orders_quote_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/AgentOrderQuoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Agent Quote Order Agent V1 Orders Quote Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/orders/request":{"post":{"tags":["agent"],"summary":"Agent Request Order","description":"Create an Agent access request for a listing.\n\nThe endpoint is designed for Relicex unified skill flows:\n  search -> quote -> choose -> request access -> delivery when entitled.","operationId":"agent_request_order_agent_v1_orders_request_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/AgentOrderRequestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentOrderRequestOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/packages/upload-session":{"post":{"tags":["agent"],"summary":"Agent Packages Upload Session","description":"Create an upload session (presigned PUT) for agent package drafts.\n\nFirst version constraints:\n- requires Agent API token + package.upload scope\n- best-effort file size limit via UPLOAD_MAX_BYTES\n- only allow .zip and .json files (client decides content)\n\nNote: This only returns a presigned PUT URL; the agent still needs to upload\nto S3/MinIO, then call /agent/v1/packages/register (future work).","operationId":"agent_packages_upload_session_agent_v1_packages_upload_session_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/AgentUploadSessionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUploadSessionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/packages/register":{"post":{"tags":["agent"],"summary":"Agent Packages Register","description":"Register a draft package previously uploaded via a presigned PUT.\n\nThis endpoint is intentionally conservative:\n- does NOT publish a listing\n- does NOT read local files\n- stores only the uploaded object key reference\n\nValidations are best-effort in v1; deeper inspection happens in a later review step.","operationId":"agent_packages_register_agent_v1_packages_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/AgentPackageRegisterIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentPackageRegisterOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/usage-reports":{"post":{"tags":["agent"],"summary":"Create Usage Report","operationId":"create_usage_report_agent_v1_usage_reports_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/UsageReportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageReportOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["agent"],"summary":"List Usage Reports","operationId":"list_usage_reports_agent_v1_usage_reports_get","parameters":[{"name":"package_id","in":"query","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageReportListOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/v1/usage-reports/aggregate":{"get":{"tags":["agent"],"summary":"Aggregate Usage Reports","operationId":"aggregate_usage_reports_agent_v1_usage_reports_aggregate_get","parameters":[{"name":"package_id","in":"query","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"window_days","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Window Days"}},{"name":"Authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageReportAggregateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ratings":{"post":{"tags":["ratings"],"summary":"Create Or Update Rating","operationId":"create_or_update_rating_ratings_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["ratings"],"summary":"List Ratings","operationId":"list_ratings_ratings_get","parameters":[{"name":"package_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Package 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":"array","items":{"$ref":"#/components/schemas/RatingOut"},"title":"Response List Ratings Ratings Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/ratings/aggregate":{"get":{"tags":["ratings"],"summary":"Aggregate Ratings","operationId":"aggregate_ratings_ratings_aggregate_get","parameters":[{"name":"package_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingAggregateOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/categories":{"get":{"tags":["categories"],"summary":"List Categories","operationId":"list_categories_categories_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CategoryOut"},"title":"Response List Categories Categories Get"}}}}}},"post":{"tags":["categories"],"summary":"Create Category","operationId":"create_category_categories_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secrets":{"get":{"tags":["user-secrets"],"summary":"List User Secrets","operationId":"list_user_secrets_secrets_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"secret_key","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret Key"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSecretsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["user-secrets"],"summary":"Create Secret","operationId":"create_secret_secrets_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSecretCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSecretOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secrets/access-logs":{"get":{"tags":["user-secrets"],"summary":"List Secret Access Logs","operationId":"list_secret_access_logs_secrets_access_logs_get","parameters":[{"name":"user_secret_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Secret Id"}},{"name":"package_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretAccessLogsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secrets/{secret_id}":{"put":{"tags":["user-secrets"],"summary":"Update Secret","operationId":"update_secret_secrets__secret_id__put","parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSecretUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSecretOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["user-secrets"],"summary":"Revoke Secret","operationId":"revoke_secret_secrets__secret_id__delete","parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSecretOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/secrets/{secret_id}/validate":{"post":{"tags":["user-secrets"],"summary":"Validate Secret","operationId":"validate_secret_secrets__secret_id__validate_post","parameters":[{"name":"secret_id","in":"path","required":true,"schema":{"type":"string","title":"Secret Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateSecretOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/secret-requirements":{"get":{"tags":["package-secrets"],"summary":"Get Package Secret Requirements","operationId":"get_package_secret_requirements_packages__package_id__secret_requirements_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageSecretRequirementsOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/secret-config":{"get":{"tags":["package-secrets"],"summary":"Get Package Secret Config","operationId":"get_package_secret_config_packages__package_id__secret_config_get","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageSecretConfigOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/secret-bindings":{"post":{"tags":["package-secrets"],"summary":"Upsert Package Secret Binding","operationId":"upsert_package_secret_binding_packages__package_id__secret_bindings_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretBindingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretBindingOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/secret-bindings/{binding_id}":{"delete":{"tags":["package-secrets"],"summary":"Delete Package Secret Binding","operationId":"delete_package_secret_binding_packages__package_id__secret_bindings__binding_id__delete","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"binding_id","in":"path","required":true,"schema":{"type":"string","title":"Binding Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Delete Package Secret Binding Packages  Package Id  Secret Bindings  Binding Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/packages/{package_id}/secret-group-selections":{"post":{"tags":["package-secrets"],"summary":"Select Package Secret Group Option","operationId":"select_package_secret_group_option_packages__package_id__secret_group_selections_post","parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}},{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretGroupSelectionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretGroupSelectionOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runtime/device/start":{"post":{"tags":["runtime-secrets"],"summary":"Runtime Device Start","operationId":"runtime_device_start_runtime_device_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDeviceStartIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDeviceStartOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runtime/device/poll":{"post":{"tags":["runtime-secrets"],"summary":"Runtime Device Poll","operationId":"runtime_device_poll_runtime_device_poll_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDevicePollIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDevicePollOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runtime/device/approve":{"post":{"tags":["runtime-secrets"],"summary":"Runtime Device Approve","operationId":"runtime_device_approve_runtime_device_approve_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDeviceApproveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDeviceApproveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runtime/device/deny":{"post":{"tags":["runtime-secrets"],"summary":"Runtime Device Deny","operationId":"runtime_device_deny_runtime_device_deny_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDeviceDenyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeDeviceDenyOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runtime/runs/resolve":{"post":{"tags":["runtime-secrets"],"summary":"Runtime Run Resolve","operationId":"runtime_run_resolve_runtime_runs_resolve_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/RuntimeRunResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeRunResolveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/runtime/secrets/resolve":{"post":{"tags":["runtime-secrets"],"summary":"Runtime Secrets Resolve","operationId":"runtime_secrets_resolve_runtime_secrets_resolve_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/RuntimeSecretsResolveIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RuntimeSecretsResolveOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/healthz":{"get":{"summary":"Healthz","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Healthz Healthz Get"}}}}}}},"/upload/init":{"post":{"summary":"Upload Init","description":"Return a presigned PUT URL to upload ciphertext.zip to MinIO.\n\nLocal-first; credentials come from env (defaults match docker-compose).","operationId":"upload_init_upload_init_post","parameters":[{"name":"x-admin-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Admin-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadInitIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadInitOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/upload/content":{"post":{"summary":"Upload Content","description":"Upload ciphertext.zip via the API (creator workflow).\n\nWe keep this API-first (instead of presigned PUT) so the browser does not\nneed direct network access to MinIO/S3.\n\nConstraints:\n- requires authenticated user\n- best-effort 1GB max (UPLOAD_MAX_BYTES)","operationId":"upload_content_upload_content_post","parameters":[{"name":"session_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},{"name":"csrf_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csrf Token"}},{"name":"viewer_id","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Viewer Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_content_upload_content_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadContentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AdminActionCreateIn":{"properties":{"target_type":{"type":"string","minLength":1,"title":"Target Type"},"target_id":{"type":"string","minLength":1,"title":"Target Id"},"action_type":{"type":"string","minLength":1,"title":"Action Type"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["target_type","target_id","action_type"],"title":"AdminActionCreateIn"},"AdminActionIn":{"properties":{"action_type":{"type":"string","minLength":1,"title":"Action Type"},"target_type":{"type":"string","minLength":1,"title":"Target Type"},"target_id":{"type":"string","minLength":1,"title":"Target Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"admin_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Notes"}},"type":"object","required":["action_type","target_type","target_id"],"title":"AdminActionIn"},"AdminAllocationRunIn":{"properties":{"period_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period Key","description":"YYYY-MM; defaults to current month"},"force":{"type":"boolean","title":"Force","description":"allow allocation preview/run before the period has ended","default":false},"dry_run":{"type":"boolean","title":"Dry Run","description":"preview allocation without creating settlement records","default":false}},"type":"object","title":"AdminAllocationRunIn"},"AdminAllocationVoidIn":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Reason"}},"type":"object","title":"AdminAllocationVoidIn"},"AdminCaseStatusIn":{"properties":{"status":{"type":"string","minLength":1,"title":"Status"},"admin_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Notes"}},"type":"object","required":["status"],"title":"AdminCaseStatusIn"},"AdminChargebackIn":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"AdminChargebackIn"},"AdminMarkPaidOut":{"properties":{"order_id":{"type":"string","title":"Order Id"},"status":{"type":"string","title":"Status"},"entitlement_id":{"type":"string","title":"Entitlement Id"},"paid_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Via"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["order_id","status","entitlement_id"],"title":"AdminMarkPaidOut"},"AdminOrderOut":{"properties":{"order_id":{"type":"string","title":"Order Id"},"listing_id":{"type":"string","title":"Listing Id"},"buyer_user_id":{"type":"string","title":"Buyer User Id"},"buyer_id":{"type":"string","title":"Buyer Id"},"status":{"type":"string","title":"Status"},"paid_via":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid Via"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid At"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":""},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["order_id","listing_id","buyer_user_id","buyer_id","status","created_at"],"title":"AdminOrderOut"},"AdminPayoutActionIn":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"external_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Reference"}},"type":"object","title":"AdminPayoutActionIn"},"AdminPlanCreateIn":{"properties":{"code":{"type":"string","maxLength":64,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"price_cents":{"type":"integer","minimum":1.0,"title":"Price Cents"},"monthly_quota":{"type":"integer","minimum":1.0,"title":"Monthly Quota"},"status":{"type":"string","title":"Status","default":"active"}},"type":"object","required":["code","name","price_cents","monthly_quota"],"title":"AdminPlanCreateIn"},"AdminRefundActionIn":{"properties":{"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"execute":{"type":"boolean","title":"Execute","default":true}},"type":"object","title":"AdminRefundActionIn"},"AdminResourceActionIn":{"properties":{"case_id":{"type":"string","minLength":1,"title":"Case Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"admin_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Notes"}},"type":"object","required":["case_id"],"title":"AdminResourceActionIn"},"AdminSettlementScopeActionIn":{"properties":{"case_id":{"type":"string","minLength":1,"title":"Case Id"},"scope_type":{"type":"string","minLength":1,"title":"Scope Type"},"scope_id":{"type":"string","minLength":1,"title":"Scope Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"admin_notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Notes"}},"type":"object","required":["case_id","scope_type","scope_id"],"title":"AdminSettlementScopeActionIn"},"AdminWalletTopupOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"ezpay_trade_no":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ezpay Trade No"},"created_at":{"type":"string","title":"Created At"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid At"}},"type":"object","required":["id","user_id","amount_cents","currency","status","created_at"],"title":"AdminWalletTopupOut"},"AdminWalletTopupsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminWalletTopupOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AdminWalletTopupsOut"},"AgentAuditLogItem":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"agent_id":{"type":"string","title":"Agent Id"},"scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Scope"},"route":{"type":"string","title":"Route"},"method":{"type":"string","title":"Method"},"request_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Request Summary"},"response_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Summary"},"status_code":{"type":"integer","title":"Status Code"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","user_id","agent_id","scope","route","method","request_summary","response_summary","status_code","ip","created_at"],"title":"AgentAuditLogItem"},"AgentAuditLogListOut":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/AgentAuditLogItem"},"type":"array","title":"Logs"}},"type":"object","required":["logs"],"title":"AgentAuditLogListOut"},"AgentAuditLogV1Item":{"properties":{"id":{"type":"string","title":"Id"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"agent_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"},"user_id":{"type":"string","title":"User Id"},"method":{"type":"string","title":"Method"},"path":{"type":"string","title":"Path"},"status_code":{"type":"integer","title":"Status Code"},"latency_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latency Ms"},"request_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Request Summary"},"response_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response Summary"}},"type":"object","required":["id","timestamp","agent_token_id","user_id","method","path","status_code","latency_ms","request_summary","response_summary"],"title":"AgentAuditLogV1Item"},"AgentAuditLogV1ListOut":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/AgentAuditLogV1Item"},"type":"array","title":"Logs"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["logs"],"title":"AgentAuditLogV1ListOut"},"AgentDeliveryDownloadOut":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"status":{"type":"string","title":"Status"},"download_url":{"type":"string","title":"Download Url"},"expires_in":{"type":"integer","title":"Expires In"},"license_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Scope"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["delivery_id","status","download_url","expires_in"],"title":"AgentDeliveryDownloadOut"},"AgentDeliveryOut":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"package_id":{"type":"string","title":"Package Id"},"manifest_id":{"type":"string","title":"Manifest Id","default":""},"package_name":{"type":"string","title":"Package Name","default":""},"manifest_title":{"type":"string","title":"Manifest Title","default":""},"manifest_version":{"type":"string","title":"Manifest Version","default":""},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"license_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Scope"},"access_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Type"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"receipt":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Receipt"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["delivery_id","package_id","status","created_at"],"title":"AgentDeliveryOut"},"AgentDeliveryRequestIn":{"properties":{"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"},"license_scope":{"type":"string","title":"License Scope","default":"personal"}},"additionalProperties":false,"type":"object","title":"AgentDeliveryRequestIn"},"AgentDeliveryRequestOut":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"status":{"type":"string","title":"Status"},"license_scope":{"type":"string","title":"License Scope","default":"personal"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"}},"type":"object","required":["delivery_id","status"],"title":"AgentDeliveryRequestOut"},"AgentEntitlementItem":{"properties":{"entitlement_id":{"type":"string","title":"Entitlement Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"title":{"type":"string","title":"Title","default":""},"license":{"type":"string","title":"License","default":""},"license_scope":{"type":"string","title":"License Scope","default":"personal"},"access_type":{"type":"string","title":"Access Type","default":"purchase"},"granted_at":{"type":"string","format":"date-time","title":"Granted At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"delivery_available":{"type":"boolean","title":"Delivery Available","default":true}},"type":"object","required":["entitlement_id","package_id","granted_at"],"title":"AgentEntitlementItem"},"AgentEntitlementsMeOut":{"properties":{"entitlements":{"items":{"$ref":"#/components/schemas/AgentEntitlementItem"},"type":"array","title":"Entitlements"}},"type":"object","title":"AgentEntitlementsMeOut"},"AgentListingDetailOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"manifest_id":{"type":"string","title":"Manifest Id","default":""},"package_name":{"type":"string","title":"Package Name","default":""},"manifest_title":{"type":"string","title":"Manifest Title","default":""},"manifest_version":{"type":"string","title":"Manifest Version","default":""},"package_type":{"type":"string","title":"Package Type","default":""},"package_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Created At"},"validation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation Status"},"validation_high_risk":{"type":"boolean","title":"Validation High Risk","default":false},"validation_warnings_count":{"type":"integer","title":"Validation Warnings Count","default":0},"validation_errors_count":{"type":"integer","title":"Validation Errors Count","default":0},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"market_type":{"type":"string","title":"Market Type"},"category":{"type":"string","title":"Category"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"type":"integer","title":"Reference Floor Cents","default":500},"license_scope_options":{"items":{"type":"string"},"type":"array","title":"License Scope Options"},"upstream_summary":{"additionalProperties":true,"type":"object","title":"Upstream Summary"},"contains_protected_upstreams":{"type":"boolean","title":"Contains Protected Upstreams","default":false},"commercial_ready":{"type":"boolean","title":"Commercial Ready","default":false},"commercial_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Blocked Reason"},"license":{"type":"string","title":"License","default":""},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"import_methods":{"items":{"type":"string"},"type":"array","title":"Import Methods"},"risk_disclosure":{"type":"string","title":"Risk Disclosure","default":""},"contains_personal_data":{"type":"boolean","title":"Contains Personal Data","default":false},"contains_code":{"type":"boolean","title":"Contains Code","default":false},"requires_human_review":{"type":"boolean","title":"Requires Human Review","default":false},"requires_api_key":{"type":"boolean","title":"Requires Api Key","default":false},"secret_requirements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Secret Requirements"},"secret_groups":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Secret Groups"},"runtime_permissions":{"additionalProperties":true,"type":"object","title":"Runtime Permissions"},"manifest_url":{"type":"string","title":"Manifest Url"},"preview_url":{"type":"string","title":"Preview Url"},"entitled":{"type":"boolean","title":"Entitled"}},"type":"object","required":["listing_id","package_id","title","description","market_type","category","price_cents","currency","manifest_url","preview_url","entitled"],"title":"AgentListingDetailOut"},"AgentListingDraftCreateIn":{"properties":{"package_id":{"type":"string","minLength":1,"title":"Package Id"},"market_type":{"type":"string","maxLength":32,"title":"Market Type","default":"memory"},"category":{"type":"string","maxLength":32,"title":"Category","default":"general"},"title_zh":{"type":"string","maxLength":200,"title":"Title Zh","default":""},"title_en":{"type":"string","maxLength":200,"title":"Title En","default":""},"description_zh":{"type":"string","title":"Description Zh","default":""},"description_en":{"type":"string","title":"Description En","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"price_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Price Cents","default":0},"currency":{"type":"string","maxLength":16,"minLength":1,"title":"Currency","default":"CNY"},"supply":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Supply","default":0},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","description":"none|allow","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Reference Floor Cents"}},"additionalProperties":false,"type":"object","required":["package_id"],"title":"AgentListingDraftCreateIn"},"AgentListingDraftCreateOut":{"properties":{"draft_listing_id":{"type":"string","title":"Draft Listing Id"},"review_url":{"type":"string","title":"Review Url"}},"type":"object","required":["draft_listing_id","review_url"],"title":"AgentListingDraftCreateOut"},"AgentListingDraftHint":{"properties":{"market_type":{"type":"string","maxLength":32,"title":"Market Type","default":"memory"},"category":{"type":"string","maxLength":32,"title":"Category","default":"general"},"title_zh":{"type":"string","maxLength":200,"title":"Title Zh","default":""},"title_en":{"type":"string","maxLength":200,"title":"Title En","default":""},"description_zh":{"type":"string","title":"Description Zh","default":""},"description_en":{"type":"string","title":"Description En","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"price_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Price Cents","default":0},"currency":{"type":"string","maxLength":16,"minLength":1,"title":"Currency","default":"CNY"},"supply":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Supply","default":0},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","description":"none|allow","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Reference Floor Cents"}},"additionalProperties":false,"type":"object","title":"AgentListingDraftHint","description":"Optional hint to create a draft listing alongside package registration."},"AgentListingSearchItem":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"manifest_id":{"type":"string","title":"Manifest Id","default":""},"package_name":{"type":"string","title":"Package Name","default":""},"manifest_title":{"type":"string","title":"Manifest Title","default":""},"manifest_version":{"type":"string","title":"Manifest Version","default":""},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"market_type":{"type":"string","title":"Market Type"},"category":{"type":"string","title":"Category"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"type":"integer","title":"Reference Floor Cents","default":500},"license_scope_options":{"items":{"type":"string"},"type":"array","title":"License Scope Options"},"upstream_summary":{"additionalProperties":true,"type":"object","title":"Upstream Summary"},"contains_protected_upstreams":{"type":"boolean","title":"Contains Protected Upstreams","default":false},"commercial_ready":{"type":"boolean","title":"Commercial Ready","default":false},"commercial_blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Blocked Reason"},"license":{"type":"string","title":"License","default":""},"risk_level":{"type":"string","title":"Risk Level","default":""},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"requires_human_review":{"type":"boolean","title":"Requires Human Review","default":false},"manifest_url":{"type":"string","title":"Manifest Url"},"detail_url":{"type":"string","title":"Detail Url"}},"type":"object","required":["listing_id","package_id","title","description","market_type","category","price_cents","currency","manifest_url","detail_url"],"title":"AgentListingSearchItem"},"AgentListingSearchOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentListingSearchItem"},"type":"array","title":"Items"},"page":{"additionalProperties":true,"type":"object","title":"Page"}},"type":"object","required":["items","page"],"title":"AgentListingSearchOut"},"AgentMyWorkListingOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"title":{"type":"string","title":"Title","default":""},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"type":"integer","title":"Reference Floor Cents","default":500}},"type":"object","required":["listing_id","package_id","status","created_at"],"title":"AgentMyWorkListingOut"},"AgentMyWorkOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"validation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation Status"},"validation_report":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Report"},"listings":{"items":{"$ref":"#/components/schemas/AgentMyWorkListingOut"},"type":"array","title":"Listings","default":[]}},"type":"object","required":["package_id","status","created_at"],"title":"AgentMyWorkOut"},"AgentOrderQuoteIn":{"properties":{"listing_id":{"type":"string","minLength":1,"title":"Listing Id"},"license_scope":{"type":"string","title":"License Scope","description":"personal|commercial","default":"personal"},"access_mode":{"type":"string","title":"Access Mode","description":"purchase|subscription","default":"purchase"}},"additionalProperties":false,"type":"object","required":["listing_id"],"title":"AgentOrderQuoteIn"},"AgentOrderRequestIn":{"properties":{"listing_id":{"type":"string","minLength":1,"title":"Listing Id"},"license_scope":{"type":"string","title":"License Scope","description":"personal|commercial","default":"personal"},"access_mode":{"type":"string","title":"Access Mode","description":"purchase|subscription","default":"purchase"}},"additionalProperties":false,"type":"object","required":["listing_id"],"title":"AgentOrderRequestIn","description":"Request access to a public listing.\n\nThis endpoint is intentionally conservative:\n- paid listings charge wallet only when balance is sufficient\n- insufficient wallet creates a pending payment order\n- zero-price/fully credited quotes can mint an entitlement when allowed\n- all actions are scoped to the token owner's user_id"},"AgentOrderRequestOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"order_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Status"},"entitlement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entitlement Id"},"entitlement_granted":{"type":"boolean","title":"Entitlement Granted","default":false},"payment_required":{"type":"boolean","title":"Payment Required","default":false},"next_action":{"type":"string","title":"Next Action"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"license_scope":{"type":"string","title":"License Scope","default":"personal"},"access_mode":{"type":"string","title":"Access Mode","default":"purchase"},"wallet_balance_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wallet Balance Cents"},"wallet_required_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Wallet Required Cents"}},"type":"object","required":["listing_id","package_id","next_action","price_cents","currency"],"title":"AgentOrderRequestOut"},"AgentPackageRegisterIn":{"properties":{"bucket":{"type":"string","title":"Bucket"},"object_key":{"type":"string","title":"Object Key"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"manifest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest"},"draft_listing":{"anyOf":[{"$ref":"#/components/schemas/AgentListingDraftHint"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["bucket","object_key"],"title":"AgentPackageRegisterIn","description":"Register an uploaded draft package for later review/listing creation."},"AgentPackageRegisterOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"status":{"type":"string","title":"Status"},"draft_listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Draft Listing Id"},"review_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Url"}},"type":"object","required":["package_id","status"],"title":"AgentPackageRegisterOut"},"AgentTokenCreateIn":{"properties":{"agent_name":{"type":"string","maxLength":200,"title":"Agent Name","default":""},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"}},"additionalProperties":false,"type":"object","title":"AgentTokenCreateIn"},"AgentTokenCreateOut":{"properties":{"id":{"type":"string","title":"Id"},"agent_name":{"type":"string","title":"Agent Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"token":{"type":"string","title":"Token"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"worker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","agent_name","scopes","token","created_at"],"title":"AgentTokenCreateOut"},"AgentTokenListItem":{"properties":{"id":{"type":"string","title":"Id"},"agent_name":{"type":"string","title":"Agent Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"worker_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","agent_name","scopes","created_at","last_used_at","revoked_at"],"title":"AgentTokenListItem"},"AgentTokenListOut":{"properties":{"tokens":{"items":{"$ref":"#/components/schemas/AgentTokenListItem"},"type":"array","title":"Tokens"}},"type":"object","required":["tokens"],"title":"AgentTokenListOut"},"AgentTokenRevokeOut":{"properties":{"id":{"type":"string","title":"Id"},"revoked_at":{"type":"string","format":"date-time","title":"Revoked At"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"}},"type":"object","required":["id","revoked_at"],"title":"AgentTokenRevokeOut"},"AgentUploadSessionIn":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size Bytes"}},"additionalProperties":false,"type":"object","title":"AgentUploadSessionIn"},"AgentUploadSessionOut":{"properties":{"upload_session_id":{"type":"string","title":"Upload Session Id"},"bucket":{"type":"string","title":"Bucket"},"object_key":{"type":"string","title":"Object Key"},"put_url":{"type":"string","title":"Put Url"},"put_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Put Headers"},"put_content_type_policy":{"type":"string","title":"Put Content Type Policy","description":"Current Relicex presigned PUT contract: omit Content-Type unless put_headers explicitly contains it.","default":"omit"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["upload_session_id","bucket","object_key","put_url","expires_in"],"title":"AgentUploadSessionOut"},"AgentWorkClaimCreateIn":{"properties":{"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"}},"type":"object","title":"AgentWorkClaimCreateIn"},"AgentWorkClaimOut":{"properties":{"id":{"type":"string","title":"Id"},"claim_id":{"type":"string","title":"Claim Id"},"work_item_id":{"type":"string","title":"Work Item Id"},"worker_id":{"type":"string","title":"Worker Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"agent_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"},"status":{"type":"string","title":"Status"},"claimed_at":{"type":"string","title":"Claimed At"},"submitted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted At"},"resolved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["id","claim_id","work_item_id","worker_id","owner_user_id","status","claimed_at"],"title":"AgentWorkClaimOut"},"AgentWorkClaimsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentWorkClaimOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AgentWorkClaimsOut"},"AgentWorkEvaluationBucketOut":{"properties":{"count":{"type":"integer","title":"Count","default":0},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"type":"object","title":"AgentWorkEvaluationBucketOut"},"AgentWorkEvaluationOut":{"properties":{"id":{"type":"string","title":"Id"},"evaluation_id":{"type":"string","title":"Evaluation Id"},"target_type":{"type":"string","title":"Target Type"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"source_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Output Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"evaluator_type":{"type":"string","title":"Evaluator Type"},"evaluator_role":{"type":"string","title":"Evaluator Role"},"score_overall":{"type":"integer","title":"Score Overall"},"weight_bps":{"type":"integer","title":"Weight Bps"},"rubric_scores_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric Scores Json"},"evidence_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Json"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"verified_usage":{"type":"boolean","title":"Verified Usage"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","evaluation_id","target_type","problem_room_id","evaluator_type","evaluator_role","score_overall","weight_bps","verified_usage","status","created_at","updated_at"],"title":"AgentWorkEvaluationOut"},"AgentWorkEvaluationTargetSummaryOut":{"properties":{"target_type":{"type":"string","title":"Target Type"},"target_id":{"type":"string","title":"Target Id"},"key":{"type":"string","title":"Key"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"overall_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Overall Score"},"total_count":{"type":"integer","title":"Total Count","default":0},"active_count":{"type":"integer","title":"Active Count","default":0},"human":{"$ref":"#/components/schemas/AgentWorkEvaluationBucketOut"},"agent":{"$ref":"#/components/schemas/AgentWorkEvaluationBucketOut"},"machine":{"$ref":"#/components/schemas/AgentWorkEvaluationBucketOut"},"human_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Human Score"},"agent_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Agent Score"},"machine_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Machine Score"},"trust_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trust Score"},"recent_reviews":{"items":{"$ref":"#/components/schemas/AgentWorkEvaluationOut"},"type":"array","title":"Recent Reviews"}},"type":"object","required":["target_type","target_id","key"],"title":"AgentWorkEvaluationTargetSummaryOut"},"AgentWorkItemCreateIn":{"properties":{"work_type":{"type":"string","maxLength":64,"minLength":1,"title":"Work Type"},"work_domain":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Work Domain"},"actor_side":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Actor Side"},"conflict_policy":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Conflict Policy"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"type":"string","maxLength":20000,"title":"Description","default":""},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"reward_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Reward Cents","default":0},"currency":{"type":"string","title":"Currency","default":"CNY"},"risk_level":{"type":"string","title":"Risk Level","default":"low"},"required_roles":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required Roles"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"deadline_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deadline At"},"submission_mode":{"type":"string","title":"Submission Mode","default":"open_call"}},"type":"object","required":["work_type","title"],"title":"AgentWorkItemCreateIn"},"AgentWorkItemOut":{"properties":{"id":{"type":"string","title":"Id"},"work_item_id":{"type":"string","title":"Work Item Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"review_target":{"anyOf":[{"$ref":"#/components/schemas/AgentWorkReviewTargetOut"},{"type":"null"}]},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_by_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Agent Id"},"work_type":{"type":"string","title":"Work Type"},"work_domain":{"type":"string","title":"Work Domain"},"actor_side":{"type":"string","title":"Actor Side"},"conflict_policy":{"type":"string","title":"Conflict Policy"},"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"risk_level":{"type":"string","title":"Risk Level"},"reward_cents":{"type":"integer","title":"Reward Cents"},"currency":{"type":"string","title":"Currency"},"required_roles":{"items":{"type":"string"},"type":"array","title":"Required Roles"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"source_kind":{"type":"string","title":"Source Kind"},"source_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Key"},"source_label":{"type":"string","title":"Source Label"},"run_summary":{"anyOf":[{"$ref":"#/components/schemas/AgentWorkRunPublicOut"},{"type":"null"}]},"submission_mode":{"type":"string","title":"Submission Mode"},"auto_generated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Generated At"},"output_count":{"type":"integer","title":"Output Count","default":0},"produced_solution_count":{"type":"integer","title":"Produced Solution Count","default":0},"can_submit":{"type":"boolean","title":"Can Submit","default":true},"can_claim":{"type":"boolean","title":"Can Claim","default":false},"deadline_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deadline At"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","work_item_id","work_type","work_domain","actor_side","conflict_policy","title","description","status","risk_level","reward_cents","currency","required_roles","source_kind","source_label","submission_mode","created_at","updated_at"],"title":"AgentWorkItemOut"},"AgentWorkItemsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentWorkItemOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AgentWorkItemsOut"},"AgentWorkOutputCreateIn":{"properties":{"output_type":{"type":"string","maxLength":64,"title":"Output Type","default":"report"},"actor_side":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Actor Side"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"artifact_package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Package Id"},"deliverable_bundle_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Bundle Id"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"work_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Run Id"},"lease_token":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Lease Token"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"AgentWorkOutputCreateIn"},"AgentWorkOutputOut":{"properties":{"id":{"type":"string","title":"Id"},"output_id":{"type":"string","title":"Output Id"},"claim_id":{"type":"string","title":"Claim Id"},"work_item_id":{"type":"string","title":"Work Item Id"},"worker_id":{"type":"string","title":"Worker Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"work_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Type"},"work_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Title"},"source_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Kind"},"source_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Label"},"submission_mode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submission Mode"},"output_type":{"type":"string","title":"Output Type"},"actor_side":{"type":"string","title":"Actor Side"},"conflict_of_interest":{"type":"string","title":"Conflict Of Interest"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"artifact_package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Package Id"},"deliverable_bundle_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Bundle Id"},"deliverable_bundle":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Deliverable Bundle"},"work_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Run Id"},"status":{"type":"string","title":"Status"},"ui_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ui Status"},"evaluation_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Evaluation Score"},"review_comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Comment"},"produced_solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Produced Solution Id"},"produced_information_request_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Produced Information Request Id"},"produced_evaluation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Produced Evaluation Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"can_review":{"type":"boolean","title":"Can Review","default":false},"quality_flags":{"items":{"type":"string"},"type":"array","title":"Quality Flags"},"quality_warnings":{"items":{"type":"string"},"type":"array","title":"Quality Warnings"}},"type":"object","required":["id","output_id","claim_id","work_item_id","worker_id","owner_user_id","output_type","actor_side","conflict_of_interest","status","created_at","updated_at"],"title":"AgentWorkOutputOut"},"AgentWorkOutputStatusIn":{"properties":{"status":{"type":"string","maxLength":32,"minLength":1,"title":"Status"},"evaluation_score":{"anyOf":[{"type":"integer","maximum":5.0,"minimum":0.0},{"type":"null"}],"title":"Evaluation Score"},"review_comment":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Review Comment"}},"type":"object","required":["status"],"title":"AgentWorkOutputStatusIn"},"AgentWorkOutputsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentWorkOutputOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AgentWorkOutputsOut"},"AgentWorkReviewBatchOut":{"properties":{"review_work_items":{"items":{"$ref":"#/components/schemas/AgentWorkItemOut"},"type":"array","title":"Review Work Items"},"recommendation_work_item":{"anyOf":[{"$ref":"#/components/schemas/AgentWorkItemOut"},{"type":"null"}]},"targets":{"items":{"$ref":"#/components/schemas/AgentWorkReviewTargetOut"},"type":"array","title":"Targets"},"skipped":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Skipped"}},"type":"object","required":["review_work_items"],"title":"AgentWorkReviewBatchOut"},"AgentWorkReviewTargetOut":{"properties":{"target_type":{"type":"string","title":"Target Type"},"target_id":{"type":"string","title":"Target Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"output_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output Id"},"deliverable_bundle":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Deliverable Bundle"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["target_type","target_id"],"title":"AgentWorkReviewTargetOut"},"AgentWorkRunAcquireIn":{"properties":{"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"worker_label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Worker Label"},"client_run_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Client Run Id"},"current_phase":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Current Phase","default":"intake"},"short_status_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Short Status Text","default":"Agent 已接手，正在准备本地工作区。"},"takeover_if_stale":{"type":"boolean","title":"Takeover If Stale","default":true},"lease_seconds":{"type":"integer","maximum":3600.0,"minimum":60.0,"title":"Lease Seconds","default":900}},"type":"object","title":"AgentWorkRunAcquireIn"},"AgentWorkRunHeartbeatIn":{"properties":{"lease_token":{"type":"string","maxLength":256,"minLength":1,"title":"Lease Token"},"lease_seconds":{"type":"integer","maximum":3600.0,"minimum":60.0,"title":"Lease Seconds","default":900}},"type":"object","required":["lease_token"],"title":"AgentWorkRunHeartbeatIn"},"AgentWorkRunOut":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"work_item_id":{"type":"string","title":"Work Item Id"},"status":{"type":"string","title":"Status"},"public_status":{"type":"string","title":"Public Status"},"current_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Phase"},"short_status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Status Text"},"needs_human_input":{"type":"boolean","title":"Needs Human Input","default":false},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"},"is_stale":{"type":"boolean","title":"Is Stale","default":false},"final_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Output Id"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"agent_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"},"worker_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Label"},"run_generation":{"type":"integer","title":"Run Generation","default":1},"lease_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lease Token"},"lease_expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lease Expires At"},"last_heartbeat_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Heartbeat At"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["work_item_id","status","public_status"],"title":"AgentWorkRunOut"},"AgentWorkRunPublicOut":{"properties":{"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"work_item_id":{"type":"string","title":"Work Item Id"},"status":{"type":"string","title":"Status"},"public_status":{"type":"string","title":"Public Status"},"current_phase":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Phase"},"short_status_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Status Text"},"needs_human_input":{"type":"boolean","title":"Needs Human Input","default":false},"blocked_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Blocked Reason"},"is_stale":{"type":"boolean","title":"Is Stale","default":false},"final_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Output Id"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["work_item_id","status","public_status"],"title":"AgentWorkRunPublicOut"},"AgentWorkRunStatusIn":{"properties":{"lease_token":{"type":"string","maxLength":256,"minLength":1,"title":"Lease Token"},"status":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"},"current_phase":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Current Phase"},"short_status_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Short Status Text"},"needs_human_input":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Needs Human Input"},"blocked_reason":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Blocked Reason"},"final_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Output Id"},"lease_seconds":{"anyOf":[{"type":"integer","maximum":3600.0,"minimum":60.0},{"type":"null"}],"title":"Lease Seconds"}},"type":"object","required":["lease_token"],"title":"AgentWorkRunStatusIn"},"AgentWorkerCreateIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"memory_pack_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Pack Id"},"agent_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"}},"type":"object","required":["name"],"title":"AgentWorkerCreateIn"},"AgentWorkerOut":{"properties":{"id":{"type":"string","title":"Id"},"worker_id":{"type":"string","title":"Worker Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"agent_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"},"memory_pack_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Memory Pack Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","title":"Status"},"trust_level":{"type":"string","title":"Trust Level"},"policy":{"anyOf":[{"$ref":"#/components/schemas/AgentWorkerPolicyOut"},{"type":"null"}]},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","worker_id","owner_user_id","name","status","trust_level","created_at","updated_at"],"title":"AgentWorkerOut"},"AgentWorkerPolicyIn":{"properties":{"allowed_work_types":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Work Types"},"allowed_problem_room_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Problem Room Ids"},"allowed_risk_levels":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Risk Levels"},"daily_budget_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Daily Budget Cents","default":0},"max_tasks_per_day":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Max Tasks Per Day","default":10},"auto_submit":{"type":"boolean","title":"Auto Submit","default":false},"requires_human_approval":{"type":"boolean","title":"Requires Human Approval","default":true}},"type":"object","title":"AgentWorkerPolicyIn"},"AgentWorkerPolicyOut":{"properties":{"worker_id":{"type":"string","title":"Worker Id"},"allowed_work_types":{"items":{"type":"string"},"type":"array","title":"Allowed Work Types"},"allowed_problem_room_ids":{"items":{"type":"string"},"type":"array","title":"Allowed Problem Room Ids"},"allowed_risk_levels":{"items":{"type":"string"},"type":"array","title":"Allowed Risk Levels"},"daily_budget_cents":{"type":"integer","title":"Daily Budget Cents"},"max_tasks_per_day":{"type":"integer","title":"Max Tasks Per Day"},"auto_submit":{"type":"boolean","title":"Auto Submit"},"requires_human_approval":{"type":"boolean","title":"Requires Human Approval"}},"type":"object","required":["worker_id","allowed_work_types","allowed_problem_room_ids","allowed_risk_levels","daily_budget_cents","max_tasks_per_day","auto_submit","requires_human_approval"],"title":"AgentWorkerPolicyOut"},"AgentWorkerReputationOut":{"properties":{"worker_id":{"type":"string","title":"Worker Id"},"owner_user_id":{"type":"string","title":"Owner User Id"},"submitted_count":{"type":"integer","title":"Submitted Count"},"accepted_count":{"type":"integer","title":"Accepted Count"},"rejected_count":{"type":"integer","title":"Rejected Count"},"cancelled_count":{"type":"integer","title":"Cancelled Count"},"average_score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Average Score"},"trust_level":{"type":"string","title":"Trust Level"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["worker_id","owner_user_id","submitted_count","accepted_count","rejected_count","cancelled_count","trust_level","updated_at"],"title":"AgentWorkerReputationOut"},"AgentWorkersOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AgentWorkerOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AgentWorkersOut"},"AssetProblemHintCreateIn":{"properties":{"hint_title":{"type":"string","maxLength":200,"minLength":1,"title":"Hint Title"},"hint_description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Hint Description"},"fit_type":{"type":"string","title":"Fit Type","default":"component"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["hint_title"],"title":"AssetProblemHintCreateIn"},"AssetProblemHintOut":{"properties":{"id":{"type":"string","title":"Id"},"hint_id":{"type":"string","title":"Hint Id"},"package_id":{"type":"string","title":"Package Id"},"hint_title":{"type":"string","title":"Hint Title"},"hint_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint Description"},"fit_type":{"type":"string","title":"Fit Type"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","hint_id","package_id","hint_title","fit_type","created_at","updated_at"],"title":"AssetProblemHintOut"},"AssetProblemHintsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AssetProblemHintOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"AssetProblemHintsOut"},"Body_agent_upload_work_item_deliverable_bundle_agent_v1_work_items__work_id__deliverable_bundles_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Worker Id"},"work_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Run Id"},"lease_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lease Token"}},"type":"object","required":["file"],"title":"Body_agent_upload_work_item_deliverable_bundle_agent_v1_work_items__work_id__deliverable_bundles_post"},"Body_upload_content_upload_content_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_content_upload_content_post"},"Body_upload_work_item_deliverable_bundle_agent_work_items__work_id__deliverable_bundles_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_work_item_deliverable_bundle_agent_work_items__work_id__deliverable_bundles_post"},"BountyAllocationAwardIn":{"properties":{"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"}},"type":"object","title":"BountyAllocationAwardIn"},"BountyAllocationCancelIn":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"BountyAllocationCancelIn"},"BountyAllocationCreateIn":{"properties":{"contribution_id":{"type":"string","minLength":1,"title":"Contribution Id"},"solution_id":{"type":"string","minLength":1,"title":"Solution Id"},"amount_cents":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Amount Cents"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["contribution_id","solution_id","amount_cents"],"title":"BountyAllocationCreateIn"},"BountyAllocationOut":{"properties":{"id":{"type":"string","title":"Id"},"allocation_id":{"type":"string","title":"Allocation Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"contribution_id":{"type":"string","title":"Contribution Id"},"solution_id":{"type":"string","title":"Solution Id"},"user_id":{"type":"string","title":"User Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manifest Revision Id"},"wallet_ledger_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Ledger Entry Id"},"created_at":{"type":"string","title":"Created At"},"awarded_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Awarded At"},"cancelled_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cancelled At"}},"type":"object","required":["id","allocation_id","problem_room_id","contribution_id","solution_id","user_id","amount_cents","currency","status","created_at"],"title":"BountyAllocationOut"},"BountyAllocationsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/BountyAllocationOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"BountyAllocationsOut"},"BuildPayloadIn":{"properties":{"source_id":{"type":"string","title":"Source Id","description":"Integration source id (e.g. openclaw, local-dir, export-zip)"},"workspace":{"type":"string","title":"Workspace","description":"Local path to workspace dir or export zip"},"start_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Ts","description":"Unix seconds start (default: now-30d)"},"end_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Ts","description":"Unix seconds end (default: now)"},"package_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Title","description":"Optional title stored in payload/meta.json"}},"type":"object","required":["source_id","workspace"],"title":"BuildPayloadIn"},"CancelOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"order_id":{"type":"string","title":"Order Id"}},"type":"object","required":["ok","order_id"],"title":"CancelOut"},"CategoryCreateIn":{"properties":{"title_zh":{"type":"string","maxLength":200,"minLength":1,"title":"Title Zh"},"title_en":{"type":"string","maxLength":200,"minLength":1,"title":"Title En"}},"type":"object","required":["title_zh","title_en"],"title":"CategoryCreateIn"},"CategoryOut":{"properties":{"slug":{"type":"string","title":"Slug"},"title_zh":{"type":"string","title":"Title Zh"},"title_en":{"type":"string","title":"Title En"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["slug","title_zh","title_en","created_at"],"title":"CategoryOut"},"ChildProblemRoomCreateIn":{"properties":{"raw_text":{"type":"string","maxLength":20000,"minLength":1,"title":"Raw Text"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"summary":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Summary"},"room_type":{"type":"string","title":"Room Type","default":"iqo"},"visibility":{"type":"string","title":"Visibility","default":"public"},"relation_type":{"type":"string","title":"Relation Type","default":"subproblem"},"structured_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Json"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["raw_text"],"title":"ChildProblemRoomCreateIn"},"ChildProblemRoomOut":{"properties":{"relation_id":{"type":"string","title":"Relation Id"},"parent_problem_room_id":{"type":"string","title":"Parent Problem Room Id"},"child_problem_room_id":{"type":"string","title":"Child Problem Room Id"},"parent_solution_id":{"type":"string","title":"Parent Solution Id"},"parent_step_id":{"type":"string","title":"Parent Step Id"},"relation_type":{"type":"string","title":"Relation Type"},"child_room_type":{"type":"string","title":"Child Room Type"},"child_status":{"type":"string","title":"Child Status"}},"type":"object","required":["relation_id","parent_problem_room_id","child_problem_room_id","parent_solution_id","parent_step_id","relation_type","child_room_type","child_status"],"title":"ChildProblemRoomOut"},"CiphertextDownloadOut":{"properties":{"bucket":{"type":"string","title":"Bucket"},"object_key":{"type":"string","title":"Object Key"},"get_url":{"type":"string","title":"Get Url"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["bucket","object_key","get_url","expires_in"],"title":"CiphertextDownloadOut"},"ContributionAllocationStatusOut":{"properties":{"contribution_id":{"type":"string","title":"Contribution Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"active_allocated_cents":{"type":"integer","title":"Active Allocated Cents"},"remaining_cents":{"type":"integer","title":"Remaining Cents"},"status":{"type":"string","title":"Status"}},"type":"object","required":["contribution_id","amount_cents","active_allocated_cents","remaining_cents","status"],"title":"ContributionAllocationStatusOut"},"DeliveryOut":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"package_id":{"type":"string","title":"Package Id"},"manifest_id":{"type":"string","title":"Manifest Id","default":""},"package_name":{"type":"string","title":"Package Name","default":""},"manifest_title":{"type":"string","title":"Manifest Title","default":""},"manifest_version":{"type":"string","title":"Manifest Version","default":""},"buyer_user_id":{"type":"string","title":"Buyer User Id"},"buyer_id":{"type":"string","title":"Buyer Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"license_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Scope"},"access_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Type"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"watermark_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Watermark Id"},"receipt":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Receipt"},"bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bucket"},"object_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Object Key"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"expires_in":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires In"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["delivery_id","package_id","buyer_user_id","buyer_id","status","created_at","watermark_id","receipt","bucket","object_key","download_url","expires_in","error"],"title":"DeliveryOut"},"DiscoveryFeedbackIn":{"properties":{"query_log_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Query Log Id"},"problem_room_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Problem Room Id"},"subject_type":{"type":"string","maxLength":32,"minLength":1,"title":"Subject Type"},"subject_id":{"type":"string","maxLength":128,"minLength":1,"title":"Subject Id"},"result_group":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Result Group"},"fit_type":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Fit Type"},"action":{"type":"string","maxLength":64,"minLength":1,"title":"Action"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["subject_type","subject_id","action"],"title":"DiscoveryFeedbackIn"},"DiscoveryFeedbackOut":{"properties":{"id":{"type":"string","title":"Id"},"feedback_id":{"type":"string","title":"Feedback Id"},"query_log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Log Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"subject_type":{"type":"string","title":"Subject Type"},"subject_id":{"type":"string","title":"Subject Id"},"result_group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Group"},"fit_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fit Type"},"feedback_action":{"type":"string","title":"Feedback Action"},"edge_updated":{"type":"boolean","title":"Edge Updated","default":false},"edge_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edge Status"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","feedback_id","subject_type","subject_id","feedback_action","created_at"],"title":"DiscoveryFeedbackOut"},"DiscoveryFiltersIn":{"properties":{"currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Currency"},"budget_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Budget Cents"},"asset_kinds":{"items":{"type":"string"},"type":"array","title":"Asset Kinds"},"component_roles":{"items":{"type":"string"},"type":"array","title":"Component Roles"},"solution_types":{"items":{"type":"string"},"type":"array","title":"Solution Types"},"commercial_use":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Commercial Use"}},"type":"object","title":"DiscoveryFiltersIn"},"DiscoveryGroupsOut":{"properties":{"complete_solutions":{"items":{"$ref":"#/components/schemas/DiscoveryResultItemOut"},"type":"array","title":"Complete Solutions"},"customizable_solutions":{"items":{"$ref":"#/components/schemas/DiscoveryResultItemOut"},"type":"array","title":"Customizable Solutions"},"asset_components":{"items":{"$ref":"#/components/schemas/DiscoveryResultItemOut"},"type":"array","title":"Asset Components"},"similar_problem_rooms":{"items":{"$ref":"#/components/schemas/DiscoveryResultItemOut"},"type":"array","title":"Similar Problem Rooms"}},"type":"object","title":"DiscoveryGroupsOut"},"DiscoveryResultItemOut":{"properties":{"subject_type":{"type":"string","title":"Subject Type"},"subject_id":{"type":"string","title":"Subject Id"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"},"locale":{"type":"string","title":"Locale","default":"mixed"},"score":{"type":"integer","title":"Score"},"score_breakdown":{"additionalProperties":{"type":"integer"},"type":"object","title":"Score Breakdown"},"title":{"type":"string","title":"Title"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary","default":""},"result_group":{"type":"string","title":"Result Group"},"fit_type":{"type":"string","title":"Fit Type"},"why_matched":{"items":{"type":"string"},"type":"array","title":"Why Matched"},"gaps":{"items":{"type":"string"},"type":"array","title":"Gaps"},"evidence":{"additionalProperties":true,"type":"object","title":"Evidence"},"next_actions":{"items":{"type":"string"},"type":"array","title":"Next Actions"},"public_payload":{"additionalProperties":true,"type":"object","title":"Public Payload"}},"type":"object","required":["subject_type","subject_id","score","title","result_group","fit_type"],"title":"DiscoveryResultItemOut"},"DiscoverySearchIn":{"properties":{"query":{"type":"string","maxLength":20000,"title":"Query","default":""},"locale":{"type":"string","maxLength":16,"title":"Locale","default":"mixed"},"target":{"type":"string","maxLength":32,"title":"Target","default":"all"},"filters":{"anyOf":[{"$ref":"#/components/schemas/DiscoveryFiltersIn"},{"type":"null"}]},"use_embeddings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Embeddings"},"limit_per_group":{"type":"integer","maximum":25.0,"minimum":1.0,"title":"Limit Per Group","default":8}},"type":"object","title":"DiscoverySearchIn"},"DiscoverySearchOut":{"properties":{"query":{"type":"string","title":"Query"},"demand_profile":{"additionalProperties":true,"type":"object","title":"Demand Profile"},"groups":{"$ref":"#/components/schemas/DiscoveryGroupsOut"},"query_log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Log Id"},"result_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Result Counts"}},"type":"object","required":["query","demand_profile","groups"],"title":"DiscoverySearchOut"},"DisputeCreateIn":{"properties":{"case_type":{"type":"string","title":"Case Type","default":"other"},"target_type":{"type":"string","minLength":1,"title":"Target Type"},"target_id":{"type":"string","minLength":1,"title":"Target Id"},"opened_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Opened By User Id"},"title":{"type":"string","maxLength":240,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["target_type","target_id","title"],"title":"DisputeCreateIn"},"DisputePatchIn":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"resolution":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Resolution"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"DisputePatchIn"},"EntitlementOut":{"properties":{"entitlement_id":{"type":"string","title":"Entitlement Id"},"package_id":{"type":"string","title":"Package Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"license_scope":{"type":"string","title":"License Scope","default":"personal"},"access_type":{"type":"string","title":"Access Type","default":"purchase"},"valid_from":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Valid Until"},"revoked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revoked At"},"market_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Type"},"title_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Zh"},"title_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title En"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid At"},"buyer_user_id":{"type":"string","title":"Buyer User Id"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["entitlement_id","package_id","order_id","buyer_user_id","created_at"],"title":"EntitlementOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IQOContributionCreateIn":{"properties":{"amount_cents":{"type":"integer","maximum":2147483647.0,"minimum":1.0,"title":"Amount Cents"},"allocation_mode":{"type":"string","title":"Allocation Mode","default":"manual"},"constraints":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constraints"},"constraints_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constraints Json"}},"type":"object","required":["amount_cents"],"title":"IQOContributionCreateIn"},"IQOContributionOut":{"properties":{"id":{"type":"string","title":"Id"},"contribution_id":{"type":"string","title":"Contribution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"user_id":{"type":"string","title":"User Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"allocation_mode":{"type":"string","title":"Allocation Mode"},"wallet_ledger_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Ledger Entry Id"},"constraints_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constraints Json"},"constraints":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constraints"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","contribution_id","problem_room_id","user_id","amount_cents","currency","status","allocation_mode","created_at"],"title":"IQOContributionOut"},"IQOContributionsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/IQOContributionOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"IQOContributionsOut"},"InformationRequestAnswerIn":{"properties":{"content":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Content"},"answer":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Answer"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"InformationRequestAnswerIn"},"InformationRequestCreateIn":{"properties":{"question":{"type":"string","maxLength":20000,"minLength":1,"title":"Question"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"},"visibility":{"type":"string","title":"Visibility","default":"public"}},"type":"object","required":["question"],"title":"InformationRequestCreateIn"},"InformationRequestOut":{"properties":{"id":{"type":"string","title":"Id"},"request_id":{"type":"string","title":"Request Id"},"information_request_id":{"type":"string","title":"Information Request Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"requester_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester User Id"},"requester_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Requester Agent Id"},"question":{"type":"string","title":"Question"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"status":{"type":"string","title":"Status"},"answer_note_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Note Id"},"answer_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Content"},"answer_author_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Author User Id"},"answer_author_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Author Type"},"answer_payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Answer Payload Json"},"answer_created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answer Created At"},"visibility":{"type":"string","title":"Visibility"},"created_at":{"type":"string","title":"Created At"},"answered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Answered At"}},"type":"object","required":["id","request_id","information_request_id","problem_room_id","question","status","visibility","created_at"],"title":"InformationRequestOut"},"IntegrationSourceOut":{"properties":{"source_id":{"type":"string","title":"Source Id"},"display_name":{"type":"string","title":"Display Name"},"official_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Url"},"storage_model":{"type":"string","title":"Storage Model"},"status":{"type":"string","title":"Status"},"workspace_hint":{"type":"string","title":"Workspace Hint"}},"type":"object","required":["source_id","display_name","official_url","storage_model","status","workspace_hint"],"title":"IntegrationSourceOut"},"InviteCodeClaimOut":{"properties":{"invite_code":{"anyOf":[{"$ref":"#/components/schemas/InviteCodePublic"},{"type":"null"}]},"invited_count":{"type":"integer","title":"Invited Count","default":0},"register_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Register Path"},"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"InviteCodeClaimOut"},"InviteCodeMeOut":{"properties":{"invite_code":{"anyOf":[{"$ref":"#/components/schemas/InviteCodePublic"},{"type":"null"}]},"invited_count":{"type":"integer","title":"Invited Count","default":0},"register_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Register Path"}},"type":"object","title":"InviteCodeMeOut"},"InviteCodePublic":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"status":{"type":"string","title":"Status"},"used_count":{"type":"integer","title":"Used Count"},"max_uses":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Uses"},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","code","status","used_count"],"title":"InviteCodePublic"},"ListingCreateIn":{"properties":{"package_id":{"type":"string","minLength":1,"title":"Package Id"},"market_type":{"type":"string","title":"Market Type","description":"memory|capability|experience","default":"memory"},"category":{"type":"string","title":"Category","description":"finance|media|general","default":"general"},"title_zh":{"type":"string","maxLength":200,"title":"Title Zh","default":""},"title_en":{"type":"string","maxLength":200,"title":"Title En","default":""},"description_zh":{"type":"string","title":"Description Zh","default":""},"description_en":{"type":"string","title":"Description En","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"price_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Price Cents"},"currency":{"type":"string","maxLength":16,"minLength":1,"title":"Currency","default":"CNY"},"supply":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Supply"},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","description":"none|allow","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Reference Floor Cents"},"publish_ack":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Publish Ack","description":"strongly recommended for active create; required for draft publish"}},"type":"object","required":["package_id","price_cents","supply"],"title":"ListingCreateIn"},"ListingCreateOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"ListingCreateOut"},"ListingDraftCreateIn":{"properties":{"package_id":{"type":"string","minLength":1,"title":"Package Id"},"market_type":{"type":"string","title":"Market Type","description":"memory|capability|experience","default":"memory"},"category":{"type":"string","title":"Category","description":"finance|media|general","default":"general"},"title_zh":{"type":"string","maxLength":200,"title":"Title Zh","default":""},"title_en":{"type":"string","maxLength":200,"title":"Title En","default":""},"description_zh":{"type":"string","title":"Description Zh","default":""},"description_en":{"type":"string","title":"Description En","default":""},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"price_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Price Cents","default":0},"currency":{"type":"string","maxLength":16,"minLength":1,"title":"Currency","default":"CNY"},"supply":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Supply","default":0},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","description":"none|allow","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Reference Floor Cents"}},"type":"object","required":["package_id"],"title":"ListingDraftCreateIn"},"ListingDraftCreateOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"ListingDraftCreateOut"},"ListingOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"market_type":{"type":"string","title":"Market Type"},"category":{"type":"string","title":"Category"},"title_zh":{"type":"string","title":"Title Zh"},"title_en":{"type":"string","title":"Title En"},"description_zh":{"type":"string","title":"Description Zh"},"description_en":{"type":"string","title":"Description En"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"supply":{"type":"integer","title":"Supply"},"sold":{"type":"integer","title":"Sold"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"type":"integer","title":"Reference Floor Cents","default":500},"earnings_terms_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Earnings Terms Version"},"publish_rights_ack_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publish Rights Ack At"},"platform_enforcement_authorized_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Enforcement Authorized At"},"solution_usage_count":{"type":"integer","title":"Solution Usage Count","default":0},"solution_problem_usage_count":{"type":"integer","title":"Solution Problem Usage Count","default":0},"solution_generated_count":{"type":"integer","title":"Solution Generated Count","default":0},"solution_primary_count":{"type":"integer","title":"Solution Primary Count","default":0},"solution_top_component_roles":{"items":{"type":"string"},"type":"array","title":"Solution Top Component Roles"}},"type":"object","required":["listing_id","package_id","market_type","category","title_zh","title_en","description_zh","description_en","price_cents","currency","supply","sold","status","created_at"],"title":"ListingOut"},"ListingPurchaseSurfaceOut":{"properties":{"product_type":{"type":"string","title":"Product Type"},"listing_id":{"type":"string","title":"Listing Id"},"solution_surface":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Solution Surface"}},"type":"object","required":["product_type","listing_id"],"title":"ListingPurchaseSurfaceOut"},"ListingReferenceCreateIn":{"properties":{"upstream_listing_id":{"type":"string","minLength":1,"title":"Upstream Listing Id"},"relation_type":{"type":"string","title":"Relation Type","description":"reference|depends_on|derived_from|embedded","default":"reference"}},"type":"object","required":["upstream_listing_id"],"title":"ListingReferenceCreateIn"},"ListingReferenceOut":{"properties":{"reference_id":{"type":"string","title":"Reference Id"},"downstream_listing_id":{"type":"string","title":"Downstream Listing Id"},"downstream_package_id":{"type":"string","title":"Downstream Package Id"},"upstream_listing_id":{"type":"string","title":"Upstream Listing Id"},"upstream_package_id":{"type":"string","title":"Upstream Package Id"},"relation_type":{"type":"string","title":"Relation Type"},"declared_by_user_id":{"type":"string","title":"Declared By User Id"},"created_at":{"type":"string","title":"Created At"},"upstream_creator_user_id_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Creator User Id Snapshot"},"upstream_subscription_eligible_snapshot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Upstream Subscription Eligible Snapshot"},"upstream_price_cents_snapshot":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upstream Price Cents Snapshot"},"upstream_commercial_price_cents_snapshot":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Upstream Commercial Price Cents Snapshot"},"upstream_commercial_use_allowed_snapshot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Upstream Commercial Use Allowed Snapshot"},"upstream_allow_reference_snapshot":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Upstream Allow Reference Snapshot"},"upstream_reference_policy_snapshot":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Upstream Reference Policy Snapshot"}},"type":"object","required":["reference_id","downstream_listing_id","downstream_package_id","upstream_listing_id","upstream_package_id","relation_type","declared_by_user_id","created_at"],"title":"ListingReferenceOut"},"ListingReferenceValidationOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"ok":{"type":"boolean","title":"Ok"},"direct_reference_count":{"type":"integer","title":"Direct Reference Count"},"expanded_upstream_count":{"type":"integer","title":"Expanded Upstream Count"},"protected_upstream_count":{"type":"integer","title":"Protected Upstream Count"},"subscription_compatible_upstream_count":{"type":"integer","title":"Subscription Compatible Upstream Count"},"self_or_same_creator_upstream_count":{"type":"integer","title":"Self Or Same Creator Upstream Count"},"required_min_price_cents":{"type":"integer","title":"Required Min Price Cents"},"protected_price_floor_cents":{"type":"integer","title":"Protected Price Floor Cents"},"subscription_reference_floor_cents":{"type":"integer","title":"Subscription Reference Floor Cents"},"max_depth":{"type":"integer","title":"Max Depth"},"max_expanded_upstreams":{"type":"integer","title":"Max Expanded Upstreams"}},"type":"object","required":["listing_id","ok","direct_reference_count","expanded_upstream_count","protected_upstream_count","subscription_compatible_upstream_count","self_or_same_creator_upstream_count","required_min_price_cents","protected_price_floor_cents","subscription_reference_floor_cents","max_depth","max_expanded_upstreams"],"title":"ListingReferenceValidationOut"},"ListingUpdateIn":{"properties":{"price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Price Cents"},"supply":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Supply"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"draft|active|inactive"},"subscription_eligible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Subscription Eligible"},"allow_reference":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Reference"},"reference_policy":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Policy","description":"none|allow"},"personal_use_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Personal Use Allowed"},"commercial_use_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Commercial Use Allowed"},"commercial_price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Reference Floor Cents"},"publish_ack":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Publish Ack","description":"required when publishing a draft"},"high_risk_ack":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"High Risk Ack","description":"required when publishing a high-risk draft"},"review_ack":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Review Ack","description":"required when publishing a review-required draft"},"market_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Type","description":"memory|capability|experience"},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"finance|media|general"},"title_zh":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title Zh"},"title_en":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title En"},"description_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description Zh"},"description_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description En"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"}},"type":"object","title":"ListingUpdateIn"},"LoginIn":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginIn"},"LoginOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["ok","user_id"],"title":"LoginOut"},"LogoutOut":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"LogoutOut"},"MarkPaidOut":{"properties":{"order_id":{"type":"string","title":"Order Id"},"status":{"type":"string","title":"Status"},"entitlement_id":{"type":"string","title":"Entitlement Id"}},"type":"object","required":["order_id","status","entitlement_id"],"title":"MarkPaidOut"},"MeOut":{"properties":{"user":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"User"}},"type":"object","required":["user"],"title":"MeOut"},"MyOriginRoyaltiesOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MyOriginRoyaltyOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"MyOriginRoyaltiesOut"},"MyOriginRoyaltyOut":{"properties":{"id":{"type":"string","title":"Id"},"payout_id":{"type":"string","title":"Payout Id"},"source_type":{"type":"string","title":"Source Type","default":"purchase"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"revenue_share_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revenue Share Id"},"subscription_usage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Usage Id"},"subscription_revenue_share_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Revenue Share Id"},"component_revenue_share_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Revenue Share Id"},"component_subscription_revenue_share_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Subscription Revenue Share Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"share_bps":{"type":"integer","title":"Share Bps"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","payout_id","solution_id","problem_room_id","amount_cents","currency","share_bps","status","created_at"],"title":"MyOriginRoyaltyOut"},"MyWorkListingOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"market_type":{"type":"string","title":"Market Type"},"category":{"type":"string","title":"Category"},"description_zh":{"type":"string","title":"Description Zh","default":""},"description_en":{"type":"string","title":"Description En","default":""},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"creator_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator User Id"},"creator_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Agent Id"},"creator_agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Agent Name"},"title_zh":{"type":"string","title":"Title Zh"},"title_en":{"type":"string","title":"Title En"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"supply":{"type":"integer","title":"Supply"},"sold":{"type":"integer","title":"Sold"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["listing_id","package_id","market_type","category","title_zh","title_en","price_cents","currency","supply","sold","status","created_at"],"title":"MyWorkListingOut"},"MyWorkOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"ciphertext_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ciphertext Hash"},"deleted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deleted At"},"validation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation Status"},"validation_report":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Report"},"sales_count":{"type":"integer","title":"Sales Count","default":0},"delivery_count":{"type":"integer","title":"Delivery Count","default":0},"listings":{"items":{"$ref":"#/components/schemas/MyWorkListingOut"},"type":"array","title":"Listings","default":[]}},"type":"object","required":["package_id","status","created_at"],"title":"MyWorkOut"},"OrderCreateIn":{"properties":{"listing_id":{"type":"string","minLength":1,"title":"Listing Id"},"license_scope":{"type":"string","title":"License Scope","description":"personal|commercial","default":"personal"}},"type":"object","required":["listing_id"],"title":"OrderCreateIn"},"OrderCreateOut":{"properties":{"order_id":{"type":"string","title":"Order Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["order_id","status"],"title":"OrderCreateOut"},"OrderOut":{"properties":{"order_id":{"type":"string","title":"Order Id"},"listing_id":{"type":"string","title":"Listing Id"},"market_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Market Type"},"title_zh":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title Zh"},"title_en":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title En"},"buyer_user_id":{"type":"string","title":"Buyer User Id"},"buyer_id":{"type":"string","title":"Buyer Id"},"status":{"type":"string","title":"Status"},"price_cents":{"type":"integer","title":"Price Cents","default":0},"currency":{"type":"string","title":"Currency","default":"CNY"},"license_scope":{"type":"string","title":"License Scope","default":"personal"},"access_mode":{"type":"string","title":"Access Mode","default":"purchase"},"created_at":{"type":"string","title":"Created At"},"paid_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paid At"},"refund":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Refund"}},"type":"object","required":["order_id","listing_id","buyer_user_id","buyer_id","status","created_at"],"title":"OrderOut"},"OrdinaryBountyAwardIn":{"properties":{"escrow_id":{"type":"string","minLength":1,"title":"Escrow Id"},"solution_id":{"type":"string","minLength":1,"title":"Solution Id"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["escrow_id","solution_id"],"title":"OrdinaryBountyAwardIn"},"OrdinaryBountyAwardOut":{"properties":{"award_id":{"type":"string","title":"Award Id"},"id":{"type":"string","title":"Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"solution_id":{"type":"string","title":"Solution Id"},"manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manifest Revision Id"},"escrow_id":{"type":"string","title":"Escrow Id"},"payer_user_id":{"type":"string","title":"Payer User Id"},"recipient_user_id":{"type":"string","title":"Recipient User Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"wallet_ledger_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Ledger Entry Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["award_id","id","problem_room_id","solution_id","escrow_id","payer_user_id","recipient_user_id","amount_cents","currency","status","created_at"],"title":"OrdinaryBountyAwardOut"},"OrdinaryBountyEscrowCreateIn":{"properties":{"amount_cents":{"type":"integer","maximum":2147483647.0,"exclusiveMinimum":0.0,"title":"Amount Cents"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["amount_cents"],"title":"OrdinaryBountyEscrowCreateIn"},"OrdinaryBountyEscrowOut":{"properties":{"escrow_id":{"type":"string","title":"Escrow Id"},"id":{"type":"string","title":"Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"payer_user_id":{"type":"string","title":"Payer User Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"wallet_ledger_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wallet Ledger Entry Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"released_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Released At"}},"type":"object","required":["escrow_id","id","problem_room_id","payer_user_id","amount_cents","currency","status","created_at","updated_at"],"title":"OrdinaryBountyEscrowOut"},"OrdinaryBountySummaryOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"room_type":{"type":"string","title":"Room Type"},"currency":{"type":"string","title":"Currency"},"total_escrowed_cents":{"type":"integer","title":"Total Escrowed Cents"},"total_released_cents":{"type":"integer","title":"Total Released Cents"},"active_escrowed_cents":{"type":"integer","title":"Active Escrowed Cents"},"available_escrowed_cents":{"type":"integer","title":"Available Escrowed Cents"},"total_pending_cents":{"type":"integer","title":"Total Pending Cents"},"escrow_count":{"type":"integer","title":"Escrow Count"},"released_count":{"type":"integer","title":"Released Count"},"my_escrows":{"items":{"$ref":"#/components/schemas/OrdinaryBountyEscrowOut"},"type":"array","title":"My Escrows"},"escrows":{"items":{"$ref":"#/components/schemas/OrdinaryBountyEscrowOut"},"type":"array","title":"Escrows"},"awards":{"items":{"$ref":"#/components/schemas/OrdinaryBountyAwardOut"},"type":"array","title":"Awards"}},"type":"object","required":["problem_room_id","room_type","currency","total_escrowed_cents","total_released_cents","active_escrowed_cents","available_escrowed_cents","total_pending_cents","escrow_count","released_count","my_escrows","escrows","awards"],"title":"OrdinaryBountySummaryOut"},"PackageCertOut":{"properties":{"cert":{"additionalProperties":true,"type":"object","title":"Cert"}},"type":"object","required":["cert"],"title":"PackageCertOut"},"PackageDeleteOut":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"PackageDeleteOut"},"PackageDeletionRequestIn":{"properties":{"email":{"type":"string","maxLength":256,"title":"Email","default":""},"reason":{"type":"string","maxLength":5000,"title":"Reason","default":""}},"type":"object","title":"PackageDeletionRequestIn"},"PackageDeletionRequestOut":{"properties":{"request_id":{"type":"string","title":"Request Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["request_id","status"],"title":"PackageDeletionRequestOut"},"PackagePrivateOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"ai_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Id"},"start_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Ts"},"end_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Ts"},"ciphertext_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ciphertext Hash"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"type":"integer","title":"Reference Floor Cents","default":500},"earnings_terms_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Earnings Terms Version"},"publish_rights_ack_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publish Rights Ack At"},"platform_enforcement_authorized_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Enforcement Authorized At"},"manifest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest"},"ciphertext_object_key":{"type":"string","title":"Ciphertext Object Key"},"wrapped_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wrapped Key"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["package_id","ai_id","start_ts","end_ts","ciphertext_hash","status","created_at","ciphertext_object_key","wrapped_key"],"title":"PackagePrivateOut","description":"Private/debug fields.\n\nHardening C2: do not expose these by default on public package views."},"PackagePublicOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"ai_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Id"},"start_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Start Ts"},"end_ts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"End Ts"},"ciphertext_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ciphertext Hash"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"subscription_eligible":{"type":"boolean","title":"Subscription Eligible","default":false},"allow_reference":{"type":"boolean","title":"Allow Reference","default":false},"reference_policy":{"type":"string","title":"Reference Policy","default":"none"},"personal_use_allowed":{"type":"boolean","title":"Personal Use Allowed","default":true},"commercial_use_allowed":{"type":"boolean","title":"Commercial Use Allowed","default":false},"commercial_price_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Commercial Price Cents"},"commercial_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commercial Currency"},"reference_floor_cents":{"type":"integer","title":"Reference Floor Cents","default":500},"earnings_terms_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Earnings Terms Version"},"publish_rights_ack_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publish Rights Ack At"},"platform_enforcement_authorized_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Platform Enforcement Authorized At"},"manifest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest"}},"type":"object","required":["package_id","ai_id","start_ts","end_ts","ciphertext_hash","status","created_at"],"title":"PackagePublicOut"},"PackageRegisterIn":{"properties":{"ai_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Ai Id"},"start_ts":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Start Ts"},"end_ts":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"End Ts"},"ciphertext_object_key":{"type":"string","title":"Ciphertext Object Key"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size Bytes"},"manifest":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest"},"wrapped_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wrapped Key"}},"type":"object","required":["ciphertext_object_key"],"title":"PackageRegisterIn"},"PackageRegisterOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["package_id","status"],"title":"PackageRegisterOut"},"PackageSecretConfigOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"overall_status":{"type":"string","title":"Overall Status"},"requirements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Requirements"},"groups":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Groups"},"runtime_permissions":{"additionalProperties":true,"type":"object","title":"Runtime Permissions"},"redaction":{"additionalProperties":true,"type":"object","title":"Redaction"}},"type":"object","required":["package_id","overall_status"],"title":"PackageSecretConfigOut"},"PackageSecretRequirementsOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"secret_requirements":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Secret Requirements"},"secret_groups":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Secret Groups"},"runtime_permissions":{"additionalProperties":true,"type":"object","title":"Runtime Permissions"},"redaction":{"additionalProperties":true,"type":"object","title":"Redaction"}},"type":"object","required":["package_id"],"title":"PackageSecretRequirementsOut"},"PasswordResetRequestIn":{"properties":{"email":{"type":"string","minLength":3,"title":"Email"}},"type":"object","required":["email"],"title":"PasswordResetRequestIn"},"PasswordResetRequestOut":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"PasswordResetRequestOut"},"PasswordResetSetPasswordIn":{"properties":{"otp_token":{"type":"string","title":"Otp Token"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["otp_token","password"],"title":"PasswordResetSetPasswordIn"},"PasswordResetSetPasswordOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["ok","user_id"],"title":"PasswordResetSetPasswordOut"},"PasswordResetVerifyIn":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","maxLength":12,"minLength":4,"title":"Code"}},"type":"object","required":["email","code"],"title":"PasswordResetVerifyIn"},"PasswordResetVerifyOut":{"properties":{"otp_token":{"type":"string","title":"Otp Token"}},"type":"object","required":["otp_token"],"title":"PasswordResetVerifyOut"},"PayWithWalletOut":{"properties":{"order_id":{"type":"string","title":"Order Id"},"status":{"type":"string","title":"Status"},"entitlement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entitlement Id"}},"type":"object","required":["order_id","status"],"title":"PayWithWalletOut"},"PayoutAccountIn":{"properties":{"provider":{"type":"string","maxLength":64,"minLength":1,"title":"Provider","default":"manual"},"account_display":{"type":"string","maxLength":256,"minLength":1,"title":"Account Display"},"account_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Account Json"}},"type":"object","required":["account_display"],"title":"PayoutAccountIn"},"PayoutBatchIn":{"properties":{"request_ids":{"items":{"type":"string"},"type":"array","title":"Request Ids"}},"type":"object","required":["request_ids"],"title":"PayoutBatchIn"},"PayoutRequestIn":{"properties":{"amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Amount Cents"},"currency":{"type":"string","title":"Currency","default":"CNY"}},"type":"object","title":"PayoutRequestIn"},"PreviewOut":{"properties":{"listing_id":{"type":"string","title":"Listing Id"},"package_id":{"type":"string","title":"Package Id"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"source_delivery_id":{"type":"string","title":"Source Delivery Id"}},"type":"object","required":["listing_id","package_id","source_delivery_id"],"title":"PreviewOut"},"ProblemIntakeConfirmIn":{"properties":{"draft":{"anyOf":[{"$ref":"#/components/schemas/ProblemIntakeDraftData"},{"type":"null"}]},"room_type":{"anyOf":[{"type":"string","enum":["iqo","normal"]},{"type":"null"}],"title":"Room Type"},"visibility":{"anyOf":[{"type":"string","enum":["public","private","unlisted"]},{"type":"null"}],"title":"Visibility"},"initial_bounty_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Initial Bounty Cents"}},"type":"object","title":"ProblemIntakeConfirmIn","description":"User confirmation payload.\n\n``draft`` is optional so clients can either confirm the stored draft as-is or\nsend a fully edited version from the review UI."},"ProblemIntakeConfirmOut":{"properties":{"draft_id":{"type":"string","title":"Draft Id"},"status":{"type":"string","enum":["draft","superseded","confirmed","abandoned"],"title":"Status"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"room_id":{"type":"string","title":"Room Id"},"raw_demand_id":{"type":"string","title":"Raw Demand Id"},"room_type":{"type":"string","title":"Room Type"},"initial_contribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Contribution Id"},"total_bounty_cents":{"type":"integer","title":"Total Bounty Cents"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["draft_id","status","problem_room_id","room_id","raw_demand_id","room_type","total_bounty_cents","currency"],"title":"ProblemIntakeConfirmOut"},"ProblemIntakeDraftData":{"properties":{"room_type":{"type":"string","enum":["iqo","normal"],"title":"Room Type","default":"iqo"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"summary":{"type":"string","maxLength":2000,"minLength":1,"title":"Summary"},"problem_statement":{"type":"string","maxLength":12000,"minLength":1,"title":"Problem Statement"},"goals":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Goals"},"out_of_scope":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Out Of Scope"},"expected_deliverables":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Expected Deliverables"},"success_criteria":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Success Criteria"},"constraints":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Constraints"},"suggested_initial_bounty_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Suggested Initial Bounty Cents"},"visibility":{"type":"string","enum":["public","private","unlisted"],"title":"Visibility","default":"public"},"clarifying_questions":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Clarifying Questions"},"risk_flags":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Risk Flags"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","default":0.55}},"type":"object","required":["title","summary","problem_statement"],"title":"ProblemIntakeDraftData","description":"Structured, user-editable problem draft.\n\nThis is intentionally product-facing rather than model-facing. The backend\nwill validate and coerce this object before it can create a ProblemRoom."},"ProblemIntakeDraftIn":{"properties":{"raw_text":{"type":"string","maxLength":12000,"minLength":10,"title":"Raw Text"},"locale":{"type":"string","maxLength":16,"title":"Locale","default":"zh"},"parent_problem_room_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Parent Problem Room Id"},"source_decomposition_output_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Source Decomposition Output Id"}},"type":"object","required":["raw_text"],"title":"ProblemIntakeDraftIn"},"ProblemIntakeDraftOut":{"properties":{"room_type":{"type":"string","enum":["iqo","normal"],"title":"Room Type","default":"iqo"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"summary":{"type":"string","maxLength":2000,"minLength":1,"title":"Summary"},"problem_statement":{"type":"string","maxLength":12000,"minLength":1,"title":"Problem Statement"},"goals":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Goals"},"out_of_scope":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Out Of Scope"},"expected_deliverables":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Expected Deliverables"},"success_criteria":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Success Criteria"},"constraints":{"items":{"type":"string"},"type":"array","maxItems":12,"title":"Constraints"},"suggested_initial_bounty_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Suggested Initial Bounty Cents"},"visibility":{"type":"string","enum":["public","private","unlisted"],"title":"Visibility","default":"public"},"clarifying_questions":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Clarifying Questions"},"risk_flags":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Risk Flags"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","default":0.55},"draft_id":{"type":"string","title":"Draft Id"},"status":{"type":"string","enum":["draft","superseded","confirmed","abandoned"],"title":"Status","default":"draft"},"parent_problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Problem Room Id"},"source_decomposition_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Decomposition Output Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"raw_text":{"type":"string","title":"Raw Text"},"input_hash":{"type":"string","title":"Input Hash"},"model_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Provider"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"prompt_version":{"type":"string","title":"Prompt Version","default":"deterministic.v1"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"confirmed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confirmed At"}},"type":"object","required":["title","summary","problem_statement","draft_id","raw_text","input_hash","created_at","updated_at"],"title":"ProblemIntakeDraftOut"},"ProblemIntakeRedraftIn":{"properties":{"raw_text":{"anyOf":[{"type":"string","maxLength":12000,"minLength":10},{"type":"null"}],"title":"Raw Text"},"locale":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Locale"}},"type":"object","title":"ProblemIntakeRedraftIn"},"ProblemNoteCreateIn":{"properties":{"content":{"type":"string","maxLength":20000,"minLength":1,"title":"Content"},"visibility":{"type":"string","title":"Visibility","default":"public"},"note_type":{"type":"string","title":"Note Type","default":"note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["content"],"title":"ProblemNoteCreateIn"},"ProblemNoteOut":{"properties":{"id":{"type":"string","title":"Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"author_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author User Id"},"author_type":{"type":"string","title":"Author Type"},"visibility":{"type":"string","title":"Visibility"},"note_type":{"type":"string","title":"Note Type"},"content":{"type":"string","title":"Content"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","problem_room_id","author_type","visibility","note_type","content","created_at"],"title":"ProblemNoteOut"},"ProblemRoomAdminPatchIn":{"properties":{"risk_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Status"},"visibility_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility Status"},"admin_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Status"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ProblemRoomAdminPatchIn"},"ProblemRoomChildCreateIn":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"raw_text":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Raw Text"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"summary":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Summary"},"visibility":{"type":"string","title":"Visibility","default":"public"},"room_type":{"type":"string","title":"Room Type","default":"iqo"},"source_decomposition_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Decomposition Output Id"},"similarity_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Similarity Json"},"structured_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Json"}},"type":"object","title":"ProblemRoomChildCreateIn"},"ProblemRoomChildCreateOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"room_id":{"type":"string","title":"Room Id"},"raw_demand_id":{"type":"string","title":"Raw Demand Id"},"raw_title":{"type":"string","title":"Raw Title"},"initial_contribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Contribution Id"},"total_bounty_cents":{"type":"integer","title":"Total Bounty Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"room_type":{"type":"string","title":"Room Type"},"parent_problem_room_id":{"type":"string","title":"Parent Problem Room Id"},"source_decomposition_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Decomposition Output Id"}},"type":"object","required":["problem_room_id","room_id","raw_demand_id","raw_title","total_bounty_cents","currency","status","room_type","parent_problem_room_id"],"title":"ProblemRoomChildCreateOut"},"ProblemRoomCreateIn":{"properties":{"raw_text":{"type":"string","maxLength":20000,"minLength":1,"title":"Raw Text"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"summary":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Summary"},"initial_bounty_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Initial Bounty Cents","default":0},"visibility":{"type":"string","title":"Visibility","default":"public"},"room_type":{"type":"string","title":"Room Type","default":"iqo"},"similarity_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Similarity Json"},"structured_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Structured Json"},"allocation_mode":{"type":"string","title":"Allocation Mode","default":"manual"},"constraints_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constraints Json"},"constraints":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Constraints"},"parent_problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Problem Room Id"},"source_decomposition_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Decomposition Output Id"}},"type":"object","required":["raw_text"],"title":"ProblemRoomCreateIn"},"ProblemRoomCreateOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"room_id":{"type":"string","title":"Room Id"},"raw_demand_id":{"type":"string","title":"Raw Demand Id"},"raw_title":{"type":"string","title":"Raw Title"},"initial_contribution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Initial Contribution Id"},"total_bounty_cents":{"type":"integer","title":"Total Bounty Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"room_type":{"type":"string","title":"Room Type"},"parent_problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Problem Room Id"},"source_decomposition_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Decomposition Output Id"}},"type":"object","required":["problem_room_id","room_id","raw_demand_id","raw_title","total_bounty_cents","currency","status","room_type"],"title":"ProblemRoomCreateOut"},"ProblemRoomDiscoverIn":{"properties":{"refresh":{"type":"boolean","title":"Refresh","default":true},"locale":{"type":"string","maxLength":16,"title":"Locale","default":"mixed"},"use_embeddings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Embeddings"},"limit_per_group":{"type":"integer","maximum":25.0,"minimum":1.0,"title":"Limit Per Group","default":6}},"type":"object","title":"ProblemRoomDiscoverIn"},"ProblemRoomDiscoverOut":{"properties":{"query":{"type":"string","title":"Query"},"demand_profile":{"additionalProperties":true,"type":"object","title":"Demand Profile"},"groups":{"$ref":"#/components/schemas/DiscoveryGroupsOut"},"query_log_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query Log Id"},"result_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Result Counts"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"persisted_edges":{"additionalProperties":{"type":"integer"},"type":"object","title":"Persisted Edges"}},"type":"object","required":["query","demand_profile","groups","problem_room_id"],"title":"ProblemRoomDiscoverOut"},"ProblemRoomDiscoveryResultsOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"groups":{"$ref":"#/components/schemas/DiscoveryGroupsOut"},"last_discovered_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Discovered At"}},"type":"object","required":["problem_room_id","groups"],"title":"ProblemRoomDiscoveryResultsOut"},"ProblemRoomEvaluationOverviewOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"candidate_count":{"type":"integer","title":"Candidate Count"},"evaluated_candidate_count":{"type":"integer","title":"Evaluated Candidate Count"},"totals":{"additionalProperties":{"type":"integer"},"type":"object","title":"Totals"},"summaries_by_target":{"additionalProperties":{"$ref":"#/components/schemas/AgentWorkEvaluationTargetSummaryOut"},"type":"object","title":"Summaries By Target"},"latest_recommendation_snapshot":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Latest Recommendation Snapshot"}},"type":"object","required":["problem_room_id","candidate_count","evaluated_candidate_count"],"title":"ProblemRoomEvaluationOverviewOut"},"ProblemRoomIQOOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"total_bounty_cents":{"type":"integer","title":"Total Bounty Cents"},"currency":{"type":"string","title":"Currency"},"contribution_count":{"type":"integer","title":"Contribution Count"},"unallocated_count":{"type":"integer","title":"Unallocated Count","default":0},"my_contributions":{"items":{"$ref":"#/components/schemas/IQOContributionOut"},"type":"array","title":"My Contributions"},"items":{"items":{"$ref":"#/components/schemas/IQOContributionOut"},"type":"array","title":"Items"}},"type":"object","required":["problem_room_id","total_bounty_cents","currency","contribution_count"],"title":"ProblemRoomIQOOut"},"ProblemRoomOut":{"properties":{"id":{"type":"string","title":"Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"creator_user_id":{"type":"string","title":"Creator User Id"},"creator_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Username"},"creator_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Creator Display Name"},"creator_user":{"anyOf":[{"$ref":"#/components/schemas/ProblemRoomUserOut"},{"type":"null"}]},"raw_title":{"type":"string","title":"Raw Title"},"raw_text":{"type":"string","title":"Raw Text"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"status":{"type":"string","title":"Status"},"visibility":{"type":"string","title":"Visibility"},"room_type":{"type":"string","title":"Room Type"},"total_bounty_cents":{"type":"integer","title":"Total Bounty Cents"},"currency":{"type":"string","title":"Currency"},"parent_problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Problem Room Id"},"has_parent":{"type":"boolean","title":"Has Parent","default":false},"parent_problem":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parent Problem"},"parent_problem_restricted":{"type":"boolean","title":"Parent Problem Restricted","default":false},"parent_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Label"},"source_decomposition_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Decomposition Output Id"},"activity_summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Activity Summary"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","problem_room_id","creator_user_id","raw_title","raw_text","status","visibility","room_type","total_bounty_cents","currency","created_at","updated_at"],"title":"ProblemRoomOut"},"ProblemRoomRecommendationsOut":{"properties":{"problem_room_id":{"type":"string","title":"Problem Room Id"},"similar_problem_rooms":{"items":{"$ref":"#/components/schemas/SimilarProblemOut"},"type":"array","title":"Similar Problem Rooms"},"solution_recommendations":{"items":{"$ref":"#/components/schemas/SolutionRecommendationOut"},"type":"array","title":"Solution Recommendations"}},"type":"object","required":["problem_room_id"],"title":"ProblemRoomRecommendationsOut"},"ProblemRoomReferenceNoteCreateIn":{"properties":{"content":{"type":"string","maxLength":20000,"minLength":1,"title":"Content"},"visibility":{"type":"string","title":"Visibility","default":"public"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["content"],"title":"ProblemRoomReferenceNoteCreateIn"},"ProblemRoomRelationOut":{"properties":{"id":{"type":"string","title":"Id"},"relation_id":{"type":"string","title":"Relation Id"},"parent_room_id":{"type":"string","title":"Parent Room Id"},"child_room_id":{"type":"string","title":"Child Room Id"},"parent_solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Solution Id"},"parent_step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Step Id"},"relation_type":{"type":"string","title":"Relation Type"},"created_by_user_id":{"type":"string","title":"Created By User Id"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","relation_id","parent_room_id","child_room_id","relation_type","created_by_user_id","created_at"],"title":"ProblemRoomRelationOut"},"ProblemRoomRelationsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProblemRoomRelationOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ProblemRoomRelationsOut"},"ProblemRoomUserOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["user_id"],"title":"ProblemRoomUserOut"},"ProblemRoomsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProblemRoomOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"ProblemRoomsOut"},"ProfileUpdateIn":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"}},"type":"object","title":"ProfileUpdateIn"},"ProfileUpdateOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"user":{"additionalProperties":true,"type":"object","title":"User"}},"type":"object","required":["ok","user"],"title":"ProfileUpdateOut"},"RatingAggregateOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"count":{"type":"integer","title":"Count"},"avg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg"}},"type":"object","required":["package_id","count"],"title":"RatingAggregateOut"},"RatingCreateIn":{"properties":{"package_id":{"type":"string","minLength":1,"title":"Package Id"},"rating":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Rating"},"comment":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Comment"}},"type":"object","required":["package_id","rating"],"title":"RatingCreateIn"},"RatingOut":{"properties":{"rating_id":{"type":"string","title":"Rating Id"},"package_id":{"type":"string","title":"Package Id"},"rating":{"type":"integer","title":"Rating"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"user":{"$ref":"#/components/schemas/RatingUserOut"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["rating_id","package_id","rating","user","created_at"],"title":"RatingOut"},"RatingUserOut":{"properties":{"user_id":{"type":"string","title":"User Id"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"}},"type":"object","required":["user_id"],"title":"RatingUserOut"},"RefundRequestIn":{"properties":{"order_id":{"type":"string","minLength":1,"title":"Order Id"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["order_id"],"title":"RefundRequestIn"},"ReportCreateIn":{"properties":{"case_type":{"type":"string","minLength":1,"title":"Case Type"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"},"order_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order Id"},"settlement_entry_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Entry Id"},"subscription_usage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Usage Id"},"accused_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accused User Id"},"evidence_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Json"},"access_event_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Access Event Ids"},"order_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Order Ids"},"delivery_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Delivery Ids"},"usage_report_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Usage Report Ids"},"settlement_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Settlement Ids"}},"type":"object","required":["case_type","title"],"title":"ReportCreateIn"},"RequestDeliveryIn":{"properties":{"package_id":{"type":"string","title":"Package Id"},"license_scope":{"type":"string","title":"License Scope","default":"personal"}},"type":"object","required":["package_id"],"title":"RequestDeliveryIn"},"RequestDeliveryOut":{"properties":{"delivery_id":{"type":"string","title":"Delivery Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["delivery_id","status"],"title":"RequestDeliveryOut"},"RequestOtpIn":{"properties":{"email":{"type":"string","minLength":3,"title":"Email"},"invite_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Invite Code"}},"type":"object","required":["email"],"title":"RequestOtpIn"},"RequestOtpOut":{"properties":{"ok":{"type":"boolean","title":"Ok"}},"type":"object","required":["ok"],"title":"RequestOtpOut"},"RiskFlagCreateIn":{"properties":{"target_type":{"type":"string","minLength":1,"title":"Target Type"},"target_id":{"type":"string","minLength":1,"title":"Target Id"},"risk_type":{"type":"string","title":"Risk Type","default":"other"},"severity":{"type":"string","title":"Severity","default":"medium"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["target_type","target_id"],"title":"RiskFlagCreateIn"},"RiskFlagPatchIn":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"RiskFlagPatchIn"},"RuntimeDeviceApproveIn":{"properties":{"user_code":{"type":"string","title":"User Code"},"selected_group_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Selected Group Options"},"allowed_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Allowed Requirement Ids"}},"type":"object","required":["user_code"],"title":"RuntimeDeviceApproveIn"},"RuntimeDeviceApproveOut":{"properties":{"status":{"type":"string","title":"Status"},"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"allowed_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Allowed Requirement Ids"},"selected_group_options":{"additionalProperties":{"type":"string"},"type":"object","title":"Selected Group Options"},"approved_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved At"}},"type":"object","required":["status","package_id"],"title":"RuntimeDeviceApproveOut"},"RuntimeDeviceDenyIn":{"properties":{"user_code":{"type":"string","title":"User Code"}},"type":"object","required":["user_code"],"title":"RuntimeDeviceDenyIn"},"RuntimeDeviceDenyOut":{"properties":{"status":{"type":"string","title":"Status"},"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"}},"type":"object","required":["status","package_id"],"title":"RuntimeDeviceDenyOut"},"RuntimeDevicePollIn":{"properties":{"device_code":{"type":"string","title":"Device Code"}},"type":"object","required":["device_code"],"title":"RuntimeDevicePollIn"},"RuntimeDevicePollOut":{"properties":{"status":{"type":"string","title":"Status"},"runtime_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Runtime Token"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"interval":{"type":"integer","title":"Interval"}},"type":"object","required":["status","interval"],"title":"RuntimeDevicePollOut"},"RuntimeDeviceStartIn":{"properties":{"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"requested_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Requested Requirement Ids"},"requested_group_ids":{"items":{"type":"string"},"type":"array","title":"Requested Group Ids"},"requirements":{"items":{"type":"string"},"type":"array","title":"Requirements"}},"type":"object","required":["package_id"],"title":"RuntimeDeviceStartIn"},"RuntimeDeviceStartOut":{"properties":{"device_code":{"type":"string","title":"Device Code"},"user_code":{"type":"string","title":"User Code"},"verification_url":{"type":"string","title":"Verification Url"},"expires_in":{"type":"integer","title":"Expires In"},"interval":{"type":"integer","title":"Interval"},"status":{"type":"string","title":"Status","default":"pending"}},"type":"object","required":["device_code","user_code","verification_url","expires_in","interval"],"title":"RuntimeDeviceStartOut"},"RuntimeRunResolveIn":{"properties":{"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"requested_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Requested Requirement Ids"},"requirements":{"items":{"type":"string"},"type":"array","title":"Requirements"}},"type":"object","required":["package_id"],"title":"RuntimeRunResolveIn"},"RuntimeRunResolveOut":{"properties":{"status":{"type":"string","title":"Status"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Id"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"secrets":{"items":{"$ref":"#/components/schemas/RuntimeSecretItemOut"},"type":"array","title":"Secrets"},"redaction":{"additionalProperties":true,"type":"object","title":"Redaction"},"configure_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configure Url"},"missing_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Missing Requirement Ids"},"ambiguous_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Ambiguous Requirement Ids"},"needs_group_selection":{"items":{"type":"string"},"type":"array","title":"Needs Group Selection"}},"type":"object","required":["status","package_id"],"title":"RuntimeRunResolveOut"},"RuntimeSecretItemOut":{"properties":{"requirement_id":{"type":"string","title":"Requirement Id"},"env":{"type":"string","title":"Env"},"value":{"type":"string","title":"Value"},"sensitive":{"type":"boolean","title":"Sensitive","default":true},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["requirement_id","env","value"],"title":"RuntimeSecretItemOut"},"RuntimeSecretsResolveIn":{"properties":{"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"requested_requirement_ids":{"items":{"type":"string"},"type":"array","title":"Requested Requirement Ids"},"requirements":{"items":{"type":"string"},"type":"array","title":"Requirements"}},"type":"object","required":["package_id"],"title":"RuntimeSecretsResolveIn"},"RuntimeSecretsResolveOut":{"properties":{"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"runtime_session_id":{"type":"string","title":"Runtime Session Id"},"expires_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires At"},"secrets":{"items":{"$ref":"#/components/schemas/RuntimeSecretItemOut"},"type":"array","title":"Secrets"},"redaction":{"additionalProperties":true,"type":"object","title":"Redaction"}},"type":"object","required":["package_id","runtime_session_id"],"title":"RuntimeSecretsResolveOut"},"ScoreBucketOut":{"properties":{"count":{"type":"integer","title":"Count"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"}},"type":"object","required":["count"],"title":"ScoreBucketOut"},"SecretAccessLogOut":{"properties":{"id":{"type":"string","title":"Id"},"package_id":{"type":"string","title":"Package Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"entitlement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entitlement Id"},"requirement_id":{"type":"string","title":"Requirement Id"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"},"option_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Option Id"},"status":{"type":"string","title":"Status"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","package_id","requirement_id","status","created_at"],"title":"SecretAccessLogOut"},"SecretAccessLogsOut":{"properties":{"logs":{"items":{"$ref":"#/components/schemas/SecretAccessLogOut"},"type":"array","title":"Logs"}},"type":"object","title":"SecretAccessLogsOut"},"SecretBindingIn":{"properties":{"requirement_id":{"type":"string","title":"Requirement Id"},"user_secret_id":{"type":"string","title":"User Secret Id"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"},"option_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Option Id"}},"type":"object","required":["requirement_id","user_secret_id"],"title":"SecretBindingIn"},"SecretBindingOut":{"properties":{"id":{"type":"string","title":"Id"},"package_id":{"type":"string","title":"Package Id"},"requirement_id":{"type":"string","title":"Requirement Id"},"user_secret_id":{"type":"string","title":"User Secret Id"},"group_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group Id"},"option_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Option Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","package_id","requirement_id","user_secret_id","created_at"],"title":"SecretBindingOut"},"SecretGroupSelectionIn":{"properties":{"group_id":{"type":"string","title":"Group Id"},"selected_option_id":{"type":"string","title":"Selected Option Id"}},"type":"object","required":["group_id","selected_option_id"],"title":"SecretGroupSelectionIn"},"SecretGroupSelectionOut":{"properties":{"id":{"type":"string","title":"Id"},"package_id":{"type":"string","title":"Package Id"},"group_id":{"type":"string","title":"Group Id"},"selected_option_id":{"type":"string","title":"Selected Option Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["id","package_id","group_id","selected_option_id","created_at"],"title":"SecretGroupSelectionOut"},"SetPasswordIn":{"properties":{"otp_token":{"type":"string","title":"Otp Token"},"invite_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Invite Code"},"username":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Username"},"display_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Display Name"},"password":{"type":"string","minLength":8,"title":"Password"}},"type":"object","required":["otp_token","password"],"title":"SetPasswordIn"},"SetPasswordOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"user_id":{"type":"string","title":"User Id"}},"type":"object","required":["ok","user_id"],"title":"SetPasswordOut"},"SimilarProblemCreateIn":{"properties":{"target_room_id":{"type":"string","minLength":1,"title":"Target Room Id"},"similarity_score":{"type":"integer","title":"Similarity Score","default":0},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"},"created_by_type":{"type":"string","title":"Created By Type","default":"human"},"created_by_agent_worker_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Created By Agent Worker Id"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["target_room_id"],"title":"SimilarProblemCreateIn"},"SimilarProblemFeedbackIn":{"properties":{"user_feedback":{"type":"string","title":"User Feedback"}},"type":"object","required":["user_feedback"],"title":"SimilarProblemFeedbackIn"},"SimilarProblemOut":{"properties":{"id":{"type":"string","title":"Id"},"edge_id":{"type":"string","title":"Edge Id"},"source_room_id":{"type":"string","title":"Source Room Id"},"target_room_id":{"type":"string","title":"Target Room Id"},"similarity_score":{"type":"integer","title":"Similarity Score"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"created_by_type":{"type":"string","title":"Created By Type"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_by_agent_worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Agent Worker Id"},"user_feedback":{"type":"string","title":"User Feedback"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"target_room":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Target Room"}},"type":"object","required":["id","edge_id","source_room_id","target_room_id","similarity_score","created_by_type","user_feedback","created_at","updated_at"],"title":"SimilarProblemOut"},"SolutionAdminPatchIn":{"properties":{"risk_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Risk Status"},"visibility_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility Status"},"admin_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Admin Status"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"SolutionAdminPatchIn"},"SolutionAssetFromCandidateIn":{"properties":{"subject_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Subject Type"},"subject_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Subject Id"},"document_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Document Id"},"listing_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Listing Id"},"package_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Package Id"},"step_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Step Id"},"component_role":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Component Role"},"asset_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Kind"},"price_mode":{"type":"string","title":"Price Mode","default":"separate"},"visibility":{"type":"string","title":"Visibility","default":"public_summary"},"entitlement_policy":{"type":"string","title":"Entitlement Policy","default":"buyer_unlocked"},"required":{"type":"boolean","title":"Required","default":true},"display_order":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Display Order","default":0},"revenue_weight_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Weight Bps","default":0},"price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Price Cents"},"currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Currency"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"SolutionAssetFromCandidateIn"},"SolutionAssetLinkCreateIn":{"properties":{"step_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Step Id"},"package_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Package Id"},"listing_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Listing Id"},"component_id":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Component Id"},"role":{"type":"string","title":"Role","default":"primary"},"asset_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Kind"},"component_kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Kind"},"component_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Role"},"required":{"type":"boolean","title":"Required","default":true},"visibility":{"type":"string","title":"Visibility","default":"public_summary"},"price_mode":{"type":"string","title":"Price Mode","default":"separate"},"entitlement_policy":{"type":"string","title":"Entitlement Policy","default":"buyer_unlocked"},"display_order":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Display Order","default":0},"revenue_weight_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Revenue Weight Bps","default":0},"price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Price Cents"},"currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Currency"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"SolutionAssetLinkCreateIn"},"SolutionAssetLinkOut":{"properties":{"id":{"type":"string","title":"Id"},"asset_link_id":{"type":"string","title":"Asset Link Id"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Id"},"package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"component_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Id"},"role":{"type":"string","title":"Role"},"asset_kind":{"type":"string","title":"Asset Kind"},"component_kind":{"type":"string","title":"Component Kind"},"component_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Component Role"},"required":{"type":"boolean","title":"Required"},"visibility":{"type":"string","title":"Visibility"},"price_mode":{"type":"string","title":"Price Mode"},"entitlement_policy":{"type":"string","title":"Entitlement Policy"},"package_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Version"},"package_manifest_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Manifest Hash"},"display_order":{"type":"integer","title":"Display Order"},"revenue_weight_bps":{"type":"integer","title":"Revenue Weight Bps"},"price_cents":{"type":"integer","title":"Price Cents"},"currency":{"type":"string","title":"Currency"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","asset_link_id","solution_id","problem_room_id","role","asset_kind","component_kind","required","visibility","price_mode","entitlement_policy","display_order","revenue_weight_bps","price_cents","currency","created_at"],"title":"SolutionAssetLinkOut"},"SolutionBountyAwardSummaryOut":{"properties":{"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"total_awarded_cents":{"type":"integer","title":"Total Awarded Cents"},"currency":{"type":"string","title":"Currency"},"origin_share_rate_bps":{"type":"integer","title":"Origin Share Rate Bps"},"latest_award_manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Award Manifest Revision Id"},"allocation_count":{"type":"integer","title":"Allocation Count"},"contributor_count":{"type":"integer","title":"Contributor Count"},"origin_allocations":{"items":{"$ref":"#/components/schemas/SolutionOriginShareAllocationOut"},"type":"array","title":"Origin Allocations"}},"type":"object","required":["solution_id","problem_room_id","total_awarded_cents","currency","origin_share_rate_bps","allocation_count","contributor_count"],"title":"SolutionBountyAwardSummaryOut"},"SolutionBountySummaryOut":{"properties":{"iqo_allocated_cents":{"type":"integer","title":"Iqo Allocated Cents","default":0},"iqo_awarded_cents":{"type":"integer","title":"Iqo Awarded Cents","default":0},"iqo_awarded_contributor_count":{"type":"integer","title":"Iqo Awarded Contributor Count","default":0},"iqo_awarded_allocation_count":{"type":"integer","title":"Iqo Awarded Allocation Count","default":0},"iqo_origin_share_rate_bps":{"type":"integer","title":"Iqo Origin Share Rate Bps","default":0},"normal_awarded_cents":{"type":"integer","title":"Normal Awarded Cents","default":0},"normal_award_count":{"type":"integer","title":"Normal Award Count","default":0},"total_awarded_cents":{"type":"integer","title":"Total Awarded Cents","default":0},"has_awards":{"type":"boolean","title":"Has Awards","default":false}},"type":"object","title":"SolutionBountySummaryOut"},"SolutionComponentCandidatesIn":{"properties":{"query":{"type":"string","maxLength":20000,"title":"Query","default":""},"locale":{"type":"string","maxLength":16,"title":"Locale","default":"mixed"},"component_roles":{"items":{"type":"string"},"type":"array","title":"Component Roles"},"asset_kinds":{"items":{"type":"string"},"type":"array","title":"Asset Kinds"},"use_embeddings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Use Embeddings"},"limit":{"type":"integer","maximum":25.0,"minimum":1.0,"title":"Limit","default":8}},"type":"object","title":"SolutionComponentCandidatesIn"},"SolutionComponentCandidatesOut":{"properties":{"solution_id":{"type":"string","title":"Solution Id"},"demand_profile":{"additionalProperties":true,"type":"object","title":"Demand Profile"},"existing_component_roles":{"items":{"type":"string"},"type":"array","title":"Existing Component Roles"},"inferred_component_roles":{"items":{"type":"string"},"type":"array","title":"Inferred Component Roles"},"missing_component_roles":{"items":{"type":"string"},"type":"array","title":"Missing Component Roles"},"asset_components":{"items":{"$ref":"#/components/schemas/DiscoveryResultItemOut"},"type":"array","title":"Asset Components"},"result_counts":{"additionalProperties":{"type":"integer"},"type":"object","title":"Result Counts"}},"type":"object","required":["solution_id","demand_profile"],"title":"SolutionComponentCandidatesOut"},"SolutionCreateIn":{"properties":{"problem_room_id":{"type":"string","minLength":1,"title":"Problem Room Id"},"title_zh":{"type":"string","maxLength":200,"title":"Title Zh","default":""},"title_en":{"type":"string","maxLength":200,"title":"Title En","default":""},"summary_zh":{"type":"string","maxLength":20000,"title":"Summary Zh","default":""},"summary_en":{"type":"string","maxLength":20000,"title":"Summary En","default":""},"proposal_type":{"type":"string","title":"Proposal Type","default":"direct"},"status":{"type":"string","title":"Status","default":"draft"},"base_price_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Base Price Cents","default":0},"currency":{"type":"string","maxLength":16,"minLength":1,"title":"Currency","default":"CNY"},"claims_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Claims Json"},"limitations_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limitations Json"},"coverage_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coverage Json"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["problem_room_id"],"title":"SolutionCreateIn"},"SolutionDeliverableBundleDownloadOut":{"properties":{"bundle_id":{"type":"string","title":"Bundle Id"},"filename":{"type":"string","title":"Filename"},"bucket":{"type":"string","title":"Bucket"},"object_key":{"type":"string","title":"Object Key"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"type":"string","title":"Sha256"},"get_url":{"type":"string","title":"Get Url"},"expires_in":{"type":"integer","title":"Expires In"},"manifest_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest Json"}},"type":"object","required":["bundle_id","filename","bucket","object_key","content_type","size_bytes","sha256","get_url","expires_in"],"title":"SolutionDeliverableBundleDownloadOut"},"SolutionDeliverableBundleOut":{"properties":{"id":{"type":"string","title":"Id"},"bundle_id":{"type":"string","title":"Bundle Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"work_item_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Work Item Id"},"agent_work_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Work Output Id"},"solution_proposal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Proposal Id"},"uploader_user_id":{"type":"string","title":"Uploader User Id"},"agent_token_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Token Id"},"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"type":"string","title":"Sha256"},"manifest_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Manifest Json"},"validation_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Validation Json"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","bundle_id","uploader_user_id","filename","content_type","size_bytes","sha256","status","created_at","updated_at"],"title":"SolutionDeliverableBundleOut"},"SolutionDeliverableCreateIn":{"properties":{"step_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Step Id"},"deliverable_type":{"type":"string","title":"Deliverable Type","default":"custom_result"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"artifact_path":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Artifact Path"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"status":{"type":"string","title":"Status","default":"draft"},"acceptance_criteria_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Acceptance Criteria Json"}},"type":"object","required":["title"],"title":"SolutionDeliverableCreateIn"},"SolutionDeliverableOut":{"properties":{"id":{"type":"string","title":"Id"},"deliverable_id":{"type":"string","title":"Deliverable Id"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Id"},"deliverable_type":{"type":"string","title":"Deliverable Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"artifact_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Path"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"status":{"type":"string","title":"Status"},"acceptance_criteria_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Acceptance Criteria Json"},"created_at":{"type":"string","title":"Created At"},"verified_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified At"}},"type":"object","required":["id","deliverable_id","solution_id","problem_room_id","deliverable_type","title","status","created_at"],"title":"SolutionDeliverableOut"},"SolutionDeliverablePatchIn":{"properties":{"deliverable_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deliverable Type"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"artifact_path":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Artifact Path"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"acceptance_criteria_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Acceptance Criteria Json"}},"type":"object","title":"SolutionDeliverablePatchIn"},"SolutionDeliverablesOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SolutionDeliverableOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SolutionDeliverablesOut"},"SolutionEvaluationCreateIn":{"properties":{"evaluator_type":{"type":"string","title":"Evaluator Type","default":"human"},"evaluator_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator Role"},"evaluator_agent_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Evaluator Agent Id"},"score_overall":{"type":"integer","maximum":5.0,"minimum":0.0,"title":"Score Overall"},"weight_bps":{"anyOf":[{"type":"integer","maximum":10000.0,"minimum":0.0},{"type":"null"}],"title":"Weight Bps"},"rubric_scores_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric Scores Json"},"evidence_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Json"},"comment":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Comment"},"verified_usage":{"type":"boolean","title":"Verified Usage","default":false},"model_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Model Name"},"model_version":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Model Version"},"prompt_version":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Prompt Version"},"run_count":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Run Count","default":1}},"type":"object","required":["score_overall"],"title":"SolutionEvaluationCreateIn"},"SolutionEvaluationOut":{"properties":{"id":{"type":"string","title":"Id"},"evaluation_id":{"type":"string","title":"Evaluation Id"},"solution_id":{"type":"string","title":"Solution Id"},"target_type":{"type":"string","title":"Target Type","default":"solution_proposal"},"source_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Output Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"evaluator_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator User Id"},"evaluator_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evaluator Agent Id"},"manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manifest Revision Id"},"evaluator_type":{"type":"string","title":"Evaluator Type"},"evaluator_role":{"type":"string","title":"Evaluator Role"},"score_overall":{"type":"integer","title":"Score Overall"},"weight_bps":{"type":"integer","title":"Weight Bps"},"rubric_scores_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Rubric Scores Json"},"evidence_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Json"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"verified_usage":{"type":"boolean","title":"Verified Usage"},"conflict_of_interest":{"type":"boolean","title":"Conflict Of Interest"},"evaluator_relation":{"type":"string","title":"Evaluator Relation"},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name"},"model_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Version"},"prompt_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Version"},"run_count":{"type":"integer","title":"Run Count"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","evaluation_id","solution_id","problem_room_id","evaluator_type","evaluator_role","score_overall","weight_bps","verified_usage","conflict_of_interest","evaluator_relation","run_count","status","created_at","updated_at"],"title":"SolutionEvaluationOut"},"SolutionEvaluationStatusPatchIn":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"SolutionEvaluationStatusPatchIn"},"SolutionEvaluationSummaryOut":{"properties":{"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"total_count":{"type":"integer","title":"Total Count"},"active_count":{"type":"integer","title":"Active Count"},"human":{"$ref":"#/components/schemas/ScoreBucketOut"},"agent":{"$ref":"#/components/schemas/ScoreBucketOut"},"machine":{"$ref":"#/components/schemas/ScoreBucketOut"},"human_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Human Score"},"agent_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Agent Score"},"machine_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Machine Score"},"trust_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Trust Score"},"trust_weights_bps":{"additionalProperties":{"type":"integer"},"type":"object","title":"Trust Weights Bps"}},"type":"object","required":["solution_id","problem_room_id","total_count","active_count","human","agent","machine"],"title":"SolutionEvaluationSummaryOut"},"SolutionEvaluationsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SolutionEvaluationOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SolutionEvaluationsOut"},"SolutionGeneratedAssetCreateIn":{"properties":{"step_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Step Id"},"package_id":{"type":"string","minLength":1,"title":"Package Id"},"asset_kind":{"type":"string","title":"Asset Kind","default":"capability_pack"},"generation_reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Generation Reason"},"status":{"type":"string","title":"Status","default":"candidate"}},"type":"object","required":["package_id"],"title":"SolutionGeneratedAssetCreateIn"},"SolutionGeneratedAssetOut":{"properties":{"id":{"type":"string","title":"Id"},"generated_asset_id":{"type":"string","title":"Generated Asset Id"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Id"},"package_id":{"type":"string","title":"Package Id"},"asset_kind":{"type":"string","title":"Asset Kind"},"generation_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Generation Reason"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","generated_asset_id","solution_id","problem_room_id","package_id","asset_kind","status","created_at"],"title":"SolutionGeneratedAssetOut"},"SolutionGeneratedAssetsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SolutionGeneratedAssetOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SolutionGeneratedAssetsOut"},"SolutionManifestOut":{"properties":{"solution_id":{"type":"string","title":"Solution Id"},"manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manifest Revision Id"},"manifest_hash":{"type":"string","title":"Manifest Hash"},"mode":{"type":"string","title":"Mode"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"}},"type":"object","required":["solution_id","manifest_hash","mode","manifest"],"title":"SolutionManifestOut"},"SolutionManifestValidateIn":{"properties":{"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"mode":{"type":"string","title":"Mode","default":"draft"}},"type":"object","title":"SolutionManifestValidateIn"},"SolutionOriginShareAllocationOut":{"properties":{"id":{"type":"string","title":"Id"},"user_id":{"type":"string","title":"User Id"},"total_awarded_cents":{"type":"integer","title":"Total Awarded Cents"},"share_bps":{"type":"integer","title":"Share Bps"},"currency":{"type":"string","title":"Currency"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","user_id","total_awarded_cents","share_bps","currency","updated_at"],"title":"SolutionOriginShareAllocationOut"},"SolutionOut":{"properties":{"id":{"type":"string","title":"Id"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"submitter_user_id":{"type":"string","title":"Submitter User Id"},"submitter_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitter Agent Id"},"title_zh":{"type":"string","title":"Title Zh"},"title_en":{"type":"string","title":"Title En"},"summary_zh":{"type":"string","title":"Summary Zh"},"summary_en":{"type":"string","title":"Summary En"},"proposal_type":{"type":"string","title":"Proposal Type"},"status":{"type":"string","title":"Status"},"base_price_cents":{"type":"integer","title":"Base Price Cents"},"currency":{"type":"string","title":"Currency"},"claims_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Claims Json"},"limitations_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Limitations Json"},"coverage_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Coverage Json"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"submitted_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted At"},"current_manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Manifest Revision Id"},"submitted_manifest_revision_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Submitted Manifest Revision Id"},"source_agent_output_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Agent Output Id"},"bounty_summary":{"$ref":"#/components/schemas/SolutionBountySummaryOut"},"assets":{"items":{"$ref":"#/components/schemas/SolutionAssetLinkOut"},"type":"array","title":"Assets"}},"type":"object","required":["id","solution_id","problem_room_id","submitter_user_id","title_zh","title_en","summary_zh","summary_en","proposal_type","status","base_price_cents","currency","created_at","updated_at"],"title":"SolutionOut"},"SolutionPurchaseSurfaceOut":{"properties":{"product_type":{"type":"string","title":"Product Type","default":"solution"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"status":{"type":"string","title":"Status"},"purchasable":{"type":"boolean","title":"Purchasable"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"primary_listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Listing Id"},"primary_package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Package Id"},"checkout_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Path"},"solution_surface":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Solution Surface"}},"type":"object","required":["solution_id","problem_room_id","status","purchasable"],"title":"SolutionPurchaseSurfaceOut"},"SolutionRecommendationCreateIn":{"properties":{"solution_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Solution Id"},"package_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Package Id"},"listing_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Listing Id"},"recommendation_type":{"type":"string","title":"Recommendation Type","default":"similar_solution"},"similarity_score":{"type":"integer","title":"Similarity Score","default":0},"fit_score":{"type":"integer","title":"Fit Score","default":0},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"},"status":{"type":"string","title":"Status","default":"suggested"},"created_by_type":{"type":"string","title":"Created By Type","default":"human"},"created_by_agent_worker_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Created By Agent Worker Id"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"SolutionRecommendationCreateIn"},"SolutionRecommendationFeedbackIn":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"SolutionRecommendationFeedbackIn"},"SolutionRecommendationOut":{"properties":{"id":{"type":"string","title":"Id"},"recommendation_id":{"type":"string","title":"Recommendation Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"recommendation_type":{"type":"string","title":"Recommendation Type"},"similarity_score":{"type":"integer","title":"Similarity Score"},"fit_score":{"type":"integer","title":"Fit Score"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"},"status":{"type":"string","title":"Status"},"created_by_type":{"type":"string","title":"Created By Type"},"created_by_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By User Id"},"created_by_agent_worker_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Agent Worker Id"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"},"solution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Solution"},"package":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Package"},"listing":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Listing"}},"type":"object","required":["id","recommendation_id","problem_room_id","recommendation_type","similarity_score","fit_score","status","created_by_type","created_at","updated_at"],"title":"SolutionRecommendationOut"},"SolutionRevenueSummaryOut":{"properties":{"solution_id":{"type":"string","title":"Solution Id"},"total_sales_cents":{"type":"integer","title":"Total Sales Cents","default":0},"total_subscription_usage_cents":{"type":"integer","title":"Total Subscription Usage Cents","default":0},"total_platform_fee_cents":{"type":"integer","title":"Total Platform Fee Cents","default":0},"total_solution_net_cents":{"type":"integer","title":"Total Solution Net Cents","default":0},"total_solver_revenue_cents":{"type":"integer","title":"Total Solver Revenue Cents","default":0},"total_origin_royalty_cents":{"type":"integer","title":"Total Origin Royalty Cents","default":0},"purchase_solver_revenue_cents":{"type":"integer","title":"Purchase Solver Revenue Cents","default":0},"purchase_origin_royalty_cents":{"type":"integer","title":"Purchase Origin Royalty Cents","default":0},"subscription_solver_revenue_cents":{"type":"integer","title":"Subscription Solver Revenue Cents","default":0},"subscription_origin_royalty_cents":{"type":"integer","title":"Subscription Origin Royalty Cents","default":0},"component_purchase_solver_revenue_cents":{"type":"integer","title":"Component Purchase Solver Revenue Cents","default":0},"component_purchase_origin_royalty_cents":{"type":"integer","title":"Component Purchase Origin Royalty Cents","default":0},"component_subscription_solver_revenue_cents":{"type":"integer","title":"Component Subscription Solver Revenue Cents","default":0},"component_subscription_origin_royalty_cents":{"type":"integer","title":"Component Subscription Origin Royalty Cents","default":0},"sale_count":{"type":"integer","title":"Sale Count","default":0},"subscription_usage_count":{"type":"integer","title":"Subscription Usage Count","default":0},"component_purchase_count":{"type":"integer","title":"Component Purchase Count","default":0},"component_subscription_usage_count":{"type":"integer","title":"Component Subscription Usage Count","default":0},"currency":{"type":"string","title":"Currency","default":"CNY"}},"type":"object","required":["solution_id"],"title":"SolutionRevenueSummaryOut"},"SolutionStatusPatchIn":{"properties":{"status":{"type":"string","title":"Status"}},"type":"object","required":["status"],"title":"SolutionStatusPatchIn"},"SolutionStepCreateIn":{"properties":{"step_order":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Step Order"},"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"step_type":{"type":"string","title":"Step Type","default":"text"},"status":{"type":"string","title":"Status","default":"planned"},"input_schema_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema Json"},"output_schema_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema Json"},"acceptance_criteria_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Acceptance Criteria Json"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"estimated_price_cents":{"type":"integer","maximum":2147483647.0,"minimum":0.0,"title":"Estimated Price Cents","default":0},"currency":{"type":"string","maxLength":16,"title":"Currency","default":"CNY"}},"type":"object","required":["title"],"title":"SolutionStepCreateIn"},"SolutionStepOut":{"properties":{"id":{"type":"string","title":"Id"},"step_id":{"type":"string","title":"Step Id"},"solution_id":{"type":"string","title":"Solution Id"},"problem_room_id":{"type":"string","title":"Problem Room Id"},"step_order":{"type":"integer","title":"Step Order"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"step_type":{"type":"string","title":"Step Type"},"status":{"type":"string","title":"Status"},"input_schema_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema Json"},"output_schema_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema Json"},"acceptance_criteria_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Acceptance Criteria Json"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"estimated_price_cents":{"type":"integer","title":"Estimated Price Cents"},"currency":{"type":"string","title":"Currency"},"child_problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Child Problem Room Id"},"linked_solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linked Solution Id"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","step_id","solution_id","problem_room_id","step_order","title","step_type","status","estimated_price_cents","currency","created_at","updated_at"],"title":"SolutionStepOut"},"SolutionStepPatchIn":{"properties":{"step_order":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Step Order"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"step_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Step Type"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"input_schema_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Input Schema Json"},"output_schema_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Output Schema Json"},"acceptance_criteria_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Acceptance Criteria Json"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"estimated_price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Estimated Price Cents"},"currency":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Currency"}},"type":"object","title":"SolutionStepPatchIn"},"SolutionStepsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SolutionStepOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SolutionStepsOut"},"SolutionSubmitOut":{"properties":{"solution":{"$ref":"#/components/schemas/SolutionOut"},"manifest_revision_id":{"type":"string","title":"Manifest Revision Id"},"manifest_hash":{"type":"string","title":"Manifest Hash"},"validation_report":{"additionalProperties":true,"type":"object","title":"Validation Report"}},"type":"object","required":["solution","manifest_revision_id","manifest_hash","validation_report"],"title":"SolutionSubmitOut"},"SolutionsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/SolutionOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"SolutionsOut"},"StepLinkSolutionIn":{"properties":{"child_solution_id":{"type":"string","minLength":1,"title":"Child Solution Id"},"child_listing_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Child Listing Id"},"price_cents":{"anyOf":[{"type":"integer","maximum":2147483647.0,"minimum":0.0},{"type":"null"}],"title":"Price Cents"},"note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Note"},"status":{"type":"string","title":"Status","default":"ready"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["child_solution_id"],"title":"StepLinkSolutionIn"},"SubscribeIn":{"properties":{"plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Id"}},"type":"object","title":"SubscribeIn"},"SubscriptionAuthorizeIn":{"properties":{"listing_id":{"type":"string","minLength":1,"title":"Listing Id"}},"type":"object","required":["listing_id"],"title":"SubscriptionAuthorizeIn"},"UploadContentOut":{"properties":{"bucket":{"type":"string","title":"Bucket"},"object_key":{"type":"string","title":"Object Key"}},"type":"object","required":["bucket","object_key"],"title":"UploadContentOut"},"UploadInitIn":{"properties":{"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"size_bytes":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Size Bytes"}},"type":"object","title":"UploadInitIn"},"UploadInitOut":{"properties":{"bucket":{"type":"string","title":"Bucket"},"object_key":{"type":"string","title":"Object Key"},"put_url":{"type":"string","title":"Put Url"},"put_headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Put Headers"},"put_content_type_policy":{"type":"string","title":"Put Content Type Policy","description":"Current presigned PUT contract: omit Content-Type unless put_headers explicitly contains it.","default":"omit"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["bucket","object_key","put_url","expires_in"],"title":"UploadInitOut"},"UsageReportAggregateOut":{"properties":{"total_reports":{"type":"integer","title":"Total Reports"},"success_count":{"type":"integer","title":"Success Count"},"failed_count":{"type":"integer","title":"Failed Count"},"partial_count":{"type":"integer","title":"Partial Count"},"top_tags":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Top Tags"}},"type":"object","required":["total_reports","success_count","failed_count","partial_count","top_tags"],"title":"UsageReportAggregateOut"},"UsageReportIn":{"properties":{"package_id":{"type":"string","maxLength":64,"minLength":1,"title":"Package Id"},"result":{"type":"string","title":"Result"},"listing_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Listing Id"},"entitlement_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Entitlement Id"},"delivery_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Delivery Id"},"package_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Package Version"},"license_scope":{"type":"string","maxLength":32,"title":"License Scope","default":"personal"},"access_type":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Access Type"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"}},"type":"object","required":["package_id","result"],"title":"UsageReportIn"},"UsageReportListOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/UsageReportPublic"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"type":"object","required":["items"],"title":"UsageReportListOut"},"UsageReportOut":{"properties":{"report_id":{"type":"string","title":"Report Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["report_id","created_at"],"title":"UsageReportOut"},"UsageReportPublic":{"properties":{"id":{"type":"string","title":"Id"},"package_id":{"type":"string","title":"Package Id"},"listing_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Listing Id"},"entitlement_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entitlement Id"},"delivery_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery Id"},"package_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Version"},"license_scope":{"type":"string","title":"License Scope","default":"personal"},"access_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Type"},"risk_flags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Risk Flags"},"result":{"type":"string","title":"Result"},"summary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Summary"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"payload":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload"},"occurred_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Occurred At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","package_id","package_version","result","summary","tags","payload","occurred_at","created_at"],"title":"UsageReportPublic"},"UserAdminActionIn":{"properties":{"reason":{"type":"string","maxLength":4000,"minLength":3,"title":"Reason"}},"type":"object","required":["reason"],"title":"UserAdminActionIn"},"UserNoteIn":{"properties":{"note":{"type":"string","maxLength":4000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"UserNoteIn"},"UserSecretCreateIn":{"properties":{"provider":{"type":"string","maxLength":64,"minLength":1,"title":"Provider","default":"custom"},"secret_key":{"type":"string","maxLength":128,"minLength":1,"title":"Secret Key","default":"custom"},"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label"},"env_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Env Name"},"sensitive":{"type":"boolean","title":"Sensitive","default":true},"value":{"type":"string","maxLength":20000,"minLength":1,"title":"Value"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","required":["value"],"title":"UserSecretCreateIn"},"UserSecretOut":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"type":"string","title":"Provider"},"secret_key":{"type":"string","title":"Secret Key"},"label":{"type":"string","title":"Label"},"env_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Env Name"},"sensitive":{"type":"boolean","title":"Sensitive"},"last4":{"type":"string","title":"Last4","default":""},"status":{"type":"string","title":"Status"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Updated At"},"last_used_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Used At"},"last_validated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Validated At"}},"type":"object","required":["id","provider","secret_key","label","sensitive","status","created_at"],"title":"UserSecretOut"},"UserSecretUpdateIn":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Label"},"env_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Env Name"},"sensitive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sensitive"},"value":{"anyOf":[{"type":"string","maxLength":20000,"minLength":1},{"type":"null"}],"title":"Value"},"status":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Status"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"UserSecretUpdateIn"},"UserSecretsOut":{"properties":{"secrets":{"items":{"$ref":"#/components/schemas/UserSecretOut"},"type":"array","title":"Secrets"}},"type":"object","required":["secrets"],"title":"UserSecretsOut"},"UsernameUpdateIn":{"properties":{"username":{"type":"string","maxLength":64,"title":"Username"}},"type":"object","required":["username"],"title":"UsernameUpdateIn"},"UsernameUpdateOut":{"properties":{"ok":{"type":"boolean","title":"Ok"},"user":{"additionalProperties":true,"type":"object","title":"User"}},"type":"object","required":["ok","user"],"title":"UsernameUpdateOut"},"ValidateSecretOut":{"properties":{"status":{"type":"string","title":"Status"},"message":{"type":"string","title":"Message"}},"type":"object","required":["status","message"],"title":"ValidateSecretOut"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VendorContactAdminPatchIn":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"verification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"},"reason":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"VendorContactAdminPatchIn"},"VendorContactCreateIn":{"properties":{"problem_room_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Solution Id"},"solution_step_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Solution Step Id"},"contact_type":{"type":"string","title":"Contact Type","default":"merchant"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"region":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Region"},"service_scope":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Service Scope"},"price_note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Price Note"},"contact_methods_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Contact Methods Json"},"website_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Website Url"},"visibility":{"type":"string","title":"Visibility","default":"logged_in_users"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","required":["name"],"title":"VendorContactCreateIn"},"VendorContactOut":{"properties":{"id":{"type":"string","title":"Id"},"vendor_contact_id":{"type":"string","title":"Vendor Contact Id"},"submitted_by_user_id":{"type":"string","title":"Submitted By User Id"},"problem_room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Problem Room Id"},"solution_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Id"},"solution_step_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Solution Step Id"},"contact_type":{"type":"string","title":"Contact Type"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"service_scope":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Scope"},"price_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Note"},"contact_methods_json":{"additionalProperties":true,"type":"object","title":"Contact Methods Json"},"website_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website Url"},"verification_status":{"type":"string","title":"Verification Status"},"visibility":{"type":"string","title":"Visibility"},"status":{"type":"string","title":"Status"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"},"created_at":{"type":"string","title":"Created At"},"updated_at":{"type":"string","title":"Updated At"}},"type":"object","required":["id","vendor_contact_id","submitted_by_user_id","contact_type","name","contact_methods_json","verification_status","visibility","status","created_at","updated_at"],"title":"VendorContactOut"},"VendorContactPatchIn":{"properties":{"contact_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Type"},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Description"},"region":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Region"},"service_scope":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Service Scope"},"price_note":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Price Note"},"contact_methods_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Contact Methods Json"},"website_url":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Website Url"},"visibility":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Visibility"},"payload_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Payload Json"}},"type":"object","title":"VendorContactPatchIn"},"VendorContactStatusPatchIn":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"verification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"}},"type":"object","title":"VendorContactStatusPatchIn"},"VendorContactsOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/VendorContactOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"VendorContactsOut"},"VerifyOtpIn":{"properties":{"email":{"type":"string","title":"Email"},"code":{"type":"string","maxLength":12,"minLength":4,"title":"Code"}},"type":"object","required":["email","code"],"title":"VerifyOtpIn"},"VerifyOtpOut":{"properties":{"otp_token":{"type":"string","title":"Otp Token"}},"type":"object","required":["otp_token"],"title":"VerifyOtpOut"},"VerifyPayoutAccountIn":{"properties":{"kyc_status":{"type":"string","title":"Kyc Status","default":"verified"}},"type":"object","title":"VerifyPayoutAccountIn"},"ViewerMeOut":{"properties":{"viewer_id":{"type":"string","title":"Viewer Id"}},"type":"object","required":["viewer_id"],"title":"ViewerMeOut"},"WalletLedgerEntryOut":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","title":"Type"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"reference_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Type"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"created_at":{"type":"string","title":"Created At"}},"type":"object","required":["id","type","amount_cents","currency","created_at"],"title":"WalletLedgerEntryOut"},"WalletLedgerOut":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WalletLedgerEntryOut"},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"WalletLedgerOut"},"WalletMeOut":{"properties":{"balance_cents":{"type":"integer","title":"Balance Cents"},"currency":{"type":"string","title":"Currency"}},"type":"object","required":["balance_cents","currency"],"title":"WalletMeOut"},"WalletTopupCreateIn":{"properties":{"amount_cents":{"type":"integer","minimum":1.0,"title":"Amount Cents","description":"Top-up amount in CNY cents (fen)"}},"type":"object","required":["amount_cents"],"title":"WalletTopupCreateIn"},"WalletTopupCreateOut":{"properties":{"topup_id":{"type":"string","title":"Topup Id"},"submit_url":{"type":"string","title":"Submit Url"}},"type":"object","required":["topup_id","submit_url"],"title":"WalletTopupCreateOut"}}}}