{"openapi":"3.1.0","info":{"title":"Photo → Printable 3D","version":"0.1.0"},"paths":{"/api/admin/users":{"get":{"summary":"Admin Users","operationId":"admin_users_api_admin_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users/{uid}/tickets":{"post":{"summary":"Admin Grant Tickets","description":"이용권: given for each purchase (Smart Store orders are matched by hand).","operationId":"admin_grant_tickets_api_admin_users__uid__tickets_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TicketGrant"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ai":{"get":{"summary":"Admin Ai","description":"What Gemini cost the site today and this month (app/aiprep.py).","operationId":"admin_ai_api_admin_ai_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/users/{uid}":{"post":{"summary":"Admin Update User","operationId":"admin_update_user_api_admin_users__uid__post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/business":{"get":{"summary":"Business Info","operationId":"business_info_api_business_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/me":{"get":{"summary":"Auth Me","operationId":"auth_me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/login/{provider}":{"get":{"summary":"Auth Login","operationId":"auth_login_api_auth_login__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/callback/{provider}":{"get":{"summary":"Auth Callback","operationId":"auth_callback_api_auth_callback__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}},{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"error","in":"query","required":false,"schema":{"type":"string","default":"","title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/gemini_failures":{"get":{"summary":"Admin Gemini Failures","description":"Failed AI drawings with Gemini's ids and errors, to claim the cost back from Google.","operationId":"admin_gemini_failures_api_admin_gemini_failures_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":31,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/gemini_failures.csv":{"get":{"summary":"Admin Gemini Failures Csv","operationId":"admin_gemini_failures_csv_api_admin_gemini_failures_csv_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","default":31,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/gifts":{"get":{"summary":"Admin Gifts","description":"The monthly ticket runs so far, and who would get one if it ran now.","operationId":"admin_gifts_api_admin_gifts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/review":{"post":{"summary":"Auth Review","description":"ID/password sign-in for the PG and card companies' site review (REVIEW_LOGIN_*).","operationId":"auth_review_api_auth_review_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewLogin"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/dev":{"post":{"summary":"Auth Dev","description":"Test sign-in without Google/Kakao keys: only for requests made on this computer.","operationId":"auth_dev_api_auth_dev_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/me/email":{"post":{"summary":"Set Notify Email","description":"Send a confirmation link; notices go to the address once it is confirmed.","operationId":"set_notify_email_api_me_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/marketing":{"post":{"summary":"Set Marketing","description":"Agree to (or stop) news by mail. Agreeing with nothing left gives one ticket, once.","operationId":"set_marketing_api_me_marketing_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingChoice"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/unsubscribe":{"get":{"summary":"Unsubscribe","description":"The link at the end of every advertising mail: no sign-in needed.","operationId":"unsubscribe_api_unsubscribe_get","parameters":[{"name":"u","in":"query","required":false,"schema":{"type":"string","default":"","title":"U"}},{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/marketing_mail":{"post":{"summary":"Send Marketing Mail","description":"News to everyone who agreed (within two years). Not at night (21:00-08:00 Korea).","operationId":"send_marketing_mail_api_admin_marketing_mail_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingMail"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/email/verify":{"get":{"summary":"Verify Notify Email","operationId":"verify_notify_email_api_me_email_verify_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/worker/claim":{"post":{"summary":"Worker Claim","operationId":"worker_claim_api_worker_claim_post","parameters":[{"name":"lane","in":"query","required":false,"schema":{"type":"string","default":"gpu","title":"Lane"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/worker/jobs/{mid}/files/{name}":{"get":{"summary":"Worker File","operationId":"worker_file_api_worker_jobs__mid__files__name__get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"lease","in":"query","required":false,"schema":{"type":"string","default":"","title":"Lease"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/worker/jobs/{mid}/progress":{"post":{"summary":"Worker Progress","operationId":"worker_progress_api_worker_jobs__mid__progress_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerProgress"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/worker/jobs/{mid}/result":{"post":{"summary":"Worker Result","operationId":"worker_result_api_worker_jobs__mid__result_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/worker/jobs/{tid}/quote":{"post":{"summary":"Worker Quote","operationId":"worker_quote_api_worker_jobs__tid__quote_post","parameters":[{"name":"tid","in":"path","required":true,"schema":{"type":"string","title":"Tid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerQuote"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/worker/usage":{"post":{"summary":"Worker Usage","description":"The cloud GPU reports how long it ran, for the monthly budget (app/cloud.py).","operationId":"worker_usage_api_worker_usage_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkerUsage"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/worker":{"get":{"summary":"Admin Worker","operationId":"admin_worker_api_admin_worker_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/models/{mid}/ai_choice":{"post":{"summary":"Ai Choice","description":"The AI drawing failed and the model waits: go on from the photo, or cancel (ticket back).","operationId":"ai_choice_api_models__mid__ai_choice_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiChoice"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/cancel":{"post":{"summary":"Cancel Model","description":"Cancel a request that is still waiting; once its generation started it runs to the end.","operationId":"cancel_model_api_models__mid__cancel_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me":{"delete":{"summary":"Delete Account","description":"회원 탈퇴: the account, its cards, photos, models and sessions, now.\nNot while one of its models is being made (the PC is writing it).","operationId":"delete_account_api_me_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/logout":{"post":{"summary":"Auth Logout","operationId":"auth_logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/backends":{"get":{"summary":"Backends","operationId":"backends_api_backends_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/models":{"get":{"summary":"List Models","description":"The signed-in person's model cards, newest first (admins: everyone's).","operationId":"list_models_api_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Create Model","operationId":"create_model_api_models_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_create_model_api_models_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/rebuild":{"post":{"summary":"Rebuild From Photo","description":"The same photo again without Gemini's drawings, once per model: for when the drawn\nsides made the shape worse. It is a new model (the engine is paid for), so it takes the\naccount's free model or a ticket like any other.","operationId":"rebuild_from_photo_api_models__mid__rebuild_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/ai_grid.png":{"get":{"summary":"Ai Grid","operationId":"ai_grid_api_models__mid__ai_grid_png_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/segment":{"post":{"summary":"Segment Photo","description":"Step 1: separate the subject from the background, for review before generating.","operationId":"segment_photo_api_segment_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_segment_photo_api_segment_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/segment/{sid}/{name}":{"get":{"summary":"Segment File","operationId":"segment_file_api_segment__sid___name__get","parameters":[{"name":"sid","in":"path","required":true,"schema":{"type":"string","title":"Sid"}},{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}":{"patch":{"summary":"Rename Model","operationId":"rename_model_api_models__mid__patch","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CardUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Model","description":"Delete a card with its photos and models (not while it is being made).","operationId":"delete_model_api_models__mid__delete","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Model","operationId":"get_model_api_models__mid__get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/pose":{"get":{"summary":"Get Pose","operationId":"get_pose_api_models__mid__pose_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Set Pose","operationId":"set_pose_api_models__mid__pose_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PoseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/pose_model.stl":{"get":{"summary":"Pose Model","operationId":"pose_model_api_models__mid__pose_model_stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/edit":{"post":{"summary":"Edit Model","description":"A button of the 수정 tab → a new version (app/edits/buttons.py turns the parameters into ops).","operationId":"edit_model_api_models__mid__edit_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ButtonEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/edit_state":{"get":{"summary":"Edit State","operationId":"edit_state_api_models__mid__versions__n__edit_state_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"extents","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Extents"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/figure.stl":{"get":{"summary":"Version Figure","operationId":"version_figure_api_models__mid__versions__n__figure_stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/keyring/preview":{"post":{"summary":"Keyring Preview","operationId":"keyring_preview_api_models__mid__keyring_preview_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyringPreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/edit_preview":{"post":{"summary":"Edit Preview","description":"What a 받침대 / 글자 press would build, to draw over the figure before 「적용」 (same ops as /edit).","operationId":"edit_preview_api_models__mid__edit_preview_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ButtonEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/surface":{"post":{"summary":"Set Surface","description":"표면 마무리 as a new version (the same as asking for it in words).","operationId":"set_surface_api_models__mid__surface_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurfaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orders":{"get":{"summary":"Admin Orders","description":"Every print sign-up and quote request, newest first, with the customer's request.","operationId":"admin_orders_api_admin_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/models/{mid}/versions/{n}":{"delete":{"summary":"Delete Version","operationId":"delete_version_api_models__mid__versions__n__delete","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}.stl":{"get":{"summary":"Download Stl","description":"The version's STL; view=1: the lighter copy the 3D view loads (prints and downloads keep every face).","operationId":"download_stl_api_models__mid__versions__n__stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"view","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/generated.glb":{"get":{"summary":"Download Generated","operationId":"download_generated_api_models__mid__generated_glb_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/color.ply":{"get":{"summary":"Color Preview","description":"The generator's own colours, on its unrepaired mesh, at the size and\nposition of version 0 so it lines up with the print view. palette=1: each\nvertex in its palette colour (see /palette), for choosing filaments.","operationId":"color_preview_api_models__mid__color_ply_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"palette","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Palette"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/color_view.ply":{"get":{"summary":"Version Color View","description":"The colour view of version n: the shape that is printed, in the palette's colours (look=print) or the\ngenerator's own (look=orig). X-Color-Frame: the matrix from the figure's frame (where the brush work is\nsaved) to this mesh, and the marker colour of the parts the version adds. See pipeline.color_view.","operationId":"version_color_view_api_models__mid__versions__n__color_view_ply_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"look","in":"query","required":false,"schema":{"type":"string","default":"print","title":"Look"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/quote":{"get":{"summary":"Version Quote","description":"Filament weight (with supports), print time and price for the chosen infill %,\nwall count and height: the version is sliced once, other choices are instant.\ngrass_mm: with a grass base the figure and the grass are ONE model: grams, minutes and price_won are the\nsums' (same formula), `grass` holds its details (no price of its own), `includes_grass` is true.","operationId":"version_quote_api_models__mid__versions__n__quote_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"infill","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Infill"}},{"name":"walls","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Walls"}},{"name":"height_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"}},{"name":"grass_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Grass Mm"}},{"name":"blade_scale","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Blade Scale"}},{"name":"glued","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Glued"}},{"name":"shape","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shape"}},{"name":"margin_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Mm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/grass":{"post":{"summary":"Apply Grass","description":"「잔디 적용하기」: the settings on screen become the newest grass version of this model version (the same\nsettings as the newest one change nothing). The quote and the orders refer to it; so do the shop's downloads.","operationId":"apply_grass_api_models__mid__versions__n__grass_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrassApply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/grass.glb":{"get":{"summary":"Grass Preview","description":"The grass base for the 3D view, as one plain (not unioned) mesh at the figure's own size, so it lines up\nwith v{n}.stl; the numbers (size, blades, grams, price, how far the figure is lowered) are in X-Grass-Info.","operationId":"grass_preview_api_models__mid__versions__n__grass_glb_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"grass_mm","in":"query","required":false,"schema":{"type":"number","default":5.0,"title":"Grass Mm"}},{"name":"height_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"}},{"name":"blade_scale","in":"query","required":false,"schema":{"type":"number","default":1.0,"title":"Blade Scale"}},{"name":"shape","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shape"}},{"name":"margin_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Mm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/grass_files":{"get":{"summary":"Admin Grass Files","description":"For the shop's model view: the grass settings to download print files for (one per order with a grass base,\nelse the defaults), each with its single-colour grass STL and the figure's paint 3MF in the same coordinates.","operationId":"admin_grass_files_api_admin_models__mid__grass_files_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/versions/{n}/grass.stl":{"get":{"summary":"Admin Grass File","description":"The grass base as one single-colour printable solid (STL) at the print size of an order: shop only. It is\nnever merged with the figure (merged objects move together in Bambu Studio): the figure is its own paint 3MF\n(pet_with_grass.3mf), in the same coordinates. The union takes a few seconds the first time; later downloads\nare the cached file. (For a given order use /orders/{i}/grass.stl: its own settings.)","operationId":"admin_grass_file_api_admin_models__mid__versions__n__grass_stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"grass_mm","in":"query","required":false,"schema":{"type":"number","default":5.0,"title":"Grass Mm"}},{"name":"height_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"}},{"name":"blade_scale","in":"query","required":false,"schema":{"type":"number","default":1.0,"title":"Blade Scale"}},{"name":"shape","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shape"}},{"name":"margin_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Margin Mm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/versions/{n}/grass_versions/{g}/grass.stl":{"get":{"summary":"Admin Grass Version File","description":"The grass STL of one grass version: exactly the settings that were applied (never the page's current ones).","operationId":"admin_grass_version_file_api_admin_models__mid__versions__n__grass_versions__g__grass_stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"g","in":"path","required":true,"schema":{"type":"integer","title":"G"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/versions/{n}/grass_versions/{g}/pet.3mf":{"get":{"summary":"Admin Grass Version Pet","description":"The figure's paint 3MF in the coordinates of that grass version's STL (its print size).","operationId":"admin_grass_version_pet_api_admin_models__mid__versions__n__grass_versions__g__pet_3mf_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"g","in":"path","required":true,"schema":{"type":"integer","title":"G"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/versions/{n}/pet_with_grass.3mf":{"get":{"summary":"Admin Pet With Grass","description":"The figure's multi-colour paint 3MF for a print with a grass base: the same print scale and position as the\ngrass STL, lowered 0.4 mm into its pocket, so both dragged into Bambu Studio together sit as they are glued.\nTwo files, printed as separate objects. The model's current colours (an order has its own: /orders/{i}/pet.3mf).","operationId":"admin_pet_with_grass_api_admin_models__mid__versions__n__pet_with_grass_3mf_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"height_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/orders/{i}/pet.3mf":{"get":{"summary":"Admin Order Pet","description":"The paint 3MF of one order of the model (quote request or paid order) with the colours it was ordered with\n(frozen when it was placed: the customer painting on afterwards changes nothing). paired=1: in the grass STL's\ncoordinates. Orders from before the colours were frozen get the model's current ones (X-Colors: current).","operationId":"admin_order_pet_api_admin_models__mid__orders__i__pet_3mf_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"i","in":"path","required":true,"schema":{"type":"integer","title":"I"}},{"name":"paired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Paired"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/orders/{i}/grass.stl":{"get":{"summary":"Admin Order Grass","description":"The single-colour grass STL of one order, with the settings it was ordered with.","operationId":"admin_order_grass_api_admin_models__mid__orders__i__grass_stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"i","in":"path","required":true,"schema":{"type":"integer","title":"I"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pay/orders/{oid}/pet.3mf":{"get":{"summary":"Admin Pay Order Pet","description":"The paint 3MF of a paid print order (or a line of a cart order) in the colours it was ordered with.","operationId":"admin_pay_order_pet_api_admin_pay_orders__oid__pet_3mf_get","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}},{"name":"line","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Line"}},{"name":"paired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Paired"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pay/orders/{oid}/grass.stl":{"get":{"summary":"Admin Pay Order Grass","operationId":"admin_pay_order_grass_api_admin_pay_orders__oid__grass_stl_get","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}},{"name":"line","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Line"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/print_options":{"get":{"summary":"Print Options","operationId":"print_options_api_print_options_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/models/{mid}/versions/{n}/print_options":{"get":{"summary":"Version Print Options","description":"Infill / wall choices for this version: the floor rises for thin or key-ring models.","operationId":"version_print_options_api_models__mid__versions__n__print_options_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/parts":{"get":{"summary":"Version Parts","operationId":"version_parts_api_models__mid__versions__n__parts_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/parts.ply":{"get":{"summary":"Version Parts Ply","operationId":"version_parts_ply_api_models__mid__versions__n__parts_ply_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/filaments":{"get":{"summary":"List Filaments","operationId":"list_filaments_api_filaments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/models/{mid}/palette":{"get":{"summary":"Model Palette","operationId":"model_palette_api_models__mid__palette_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/palette_level":{"post":{"summary":"Change Palette Level","description":"Group the model's colours more simply or more finely; chosen filaments carry over.","operationId":"change_palette_level_api_models__mid__palette_level_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaletteLevel"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/color_map/auto":{"post":{"summary":"Auto Color Map","description":"「비슷한 색 한 번에 고르기」: the colours not chosen yet get the nearest spool.","operationId":"auto_color_map_api_models__mid__color_map_auto_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/color_requests":{"post":{"summary":"Request Color","description":"A colour the shop doesn't have yet; the admin sees which are asked for most.","operationId":"request_color_api_color_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorWish"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/color_requests":{"get":{"summary":"Admin Color Requests","description":"Asked-for colours, most wanted first (one vote per person per name).","operationId":"admin_color_requests_api_admin_color_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/models/{mid}/paint":{"put":{"summary":"Save Paint","description":"The owner's brush work (all of it, replaced each time). Like any colour\nchange it un-confirms the colours, so the print waits for a new look.","operationId":"save_paint_api_models__mid__paint_put","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Paint"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/color_map":{"post":{"summary":"Save Color Map","description":"Save the user's choices. Any change un-confirms; confirming needs every\ncolour chosen. An empty map resets.","operationId":"save_color_map_api_models__mid__color_map_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ColorMap"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/extras.stl":{"get":{"summary":"Version Extras","description":"The key ring loop / base / text version n adds, placed for the colour view.","operationId":"version_extras_api_models__mid__versions__n__extras_stl_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/use_colors":{"post":{"summary":"Use Version Colors","description":"Opening a version that has its own confirmed colours brings them back.","operationId":"use_version_colors_api_models__mid__versions__n__use_colors_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/colored.{fmt}":{"get":{"summary":"Colored Download","description":"Version n with each part in its chosen filament colour (OBJ / GLB with\nvertex colours, for multi-colour printers or as a painting guide). The\nshop's file: customers get the print, not the model.","operationId":"colored_download_api_models__mid__versions__n__colored__fmt__get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"fmt","in":"path","required":true,"schema":{"type":"string","title":"Fmt"}},{"name":"height_mm","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/order_request":{"post":{"summary":"Order Request","operationId":"order_request_api_models__mid__order_request_post","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}.png":{"get":{"summary":"Preview","operationId":"preview_api_models__mid__versions__n__png_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/models/{mid}/versions/{n}/thumb.png":{"get":{"summary":"Preview Thumb","operationId":"preview_thumb_api_models__mid__versions__n__thumb_png_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pay/config":{"get":{"summary":"Pay Config","operationId":"pay_config_api_pay_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/pay/orders":{"get":{"summary":"Pay My Orders","description":"The customer's orders, each with whether it can be (or was) reviewed.","operationId":"pay_my_orders_api_pay_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Pay New Order","description":"A pending order whose amount the server sets; the page then opens PortOne with its id.","operationId":"pay_new_order_api_pay_orders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewOrder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pay/orders/{oid}/confirm":{"post":{"summary":"Pay Confirm","operationId":"pay_confirm_api_pay_orders__oid__confirm_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pay/orders/{oid}/change":{"post":{"summary":"Ask Change","description":"The customer asks the admin to change the model of a paid order.","operationId":"ask_change_api_pay_orders__oid__change_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeAsk"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pay/orders/{oid}/received":{"post":{"summary":"Order Received","description":"The customer got the parcel (the review prompt shows next).","operationId":"order_received_api_pay_orders__oid__received_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/changes/{rid}/answer":{"post":{"summary":"Answer Change","description":"The customer accepts the admin's version, or asks again.","operationId":"answer_change_api_changes__rid__answer_post","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeAnswer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/orders/{oid}/propose":{"post":{"summary":"Admin Propose On Order","description":"The shop fixed something on a paid order's model by itself: ask the customer to confirm it.","operationId":"admin_propose_on_order_api_admin_orders__oid__propose_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrderPropose"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/changes/{rid}/propose":{"post":{"summary":"Admin Propose Change","operationId":"admin_propose_change_api_admin_changes__rid__propose_post","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePropose"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pay/preview":{"post":{"summary":"Pay Preview","description":"What a coupon and points take off (shown before ordering; the order is priced again).","operationId":"pay_preview_api_pay_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/me/points":{"get":{"summary":"My Points","operationId":"my_points_api_me_points_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/reviews":{"post":{"summary":"Write Review","operationId":"write_review_api_reviews_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_write_review_api_reviews_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shop/reviews":{"get":{"summary":"Public Reviews","operationId":"public_reviews_api_shop_reviews_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/shop/review_photos/{name}":{"get":{"summary":"Public Review Photo","operationId":"public_review_photo_api_shop_review_photos__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/coupons":{"get":{"summary":"Admin Coupons","operationId":"admin_coupons_api_admin_coupons_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Admin Make Coupons","operationId":"admin_make_coupons_api_admin_coupons_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponMake"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/coupons/{code}":{"post":{"summary":"Admin Coupon Active","operationId":"admin_coupon_active_api_admin_coupons__code__post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponActive"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reviews":{"get":{"summary":"Admin Reviews","operationId":"admin_reviews_api_admin_reviews_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/review_photos/{name}":{"get":{"summary":"Admin Review Photo","operationId":"admin_review_photo_api_admin_review_photos__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/reviews/{rid}":{"post":{"summary":"Admin Review Shown","operationId":"admin_review_shown_api_admin_reviews__rid__post","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewShown"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Admin Review Delete","operationId":"admin_review_delete_api_admin_reviews__rid__delete","parameters":[{"name":"rid","in":"path","required":true,"schema":{"type":"string","title":"Rid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/users/{uid}/points":{"post":{"summary":"Admin Grant Points","operationId":"admin_grant_points_api_admin_users__uid__points_post","parameters":[{"name":"uid","in":"path","required":true,"schema":{"type":"string","title":"Uid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PointsGrant"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/pay/webhook":{"post":{"summary":"Pay Webhook","description":"PortOne's server tells us about a payment (signed; the payment itself is fetched again).","operationId":"pay_webhook_api_pay_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/shop/products":{"get":{"summary":"Shop Products","description":"What can be bought ready-made (anyone may look; buying needs sign-in).","operationId":"shop_products_api_shop_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/shop/images/{name}":{"get":{"summary":"Shop Image","operationId":"shop_image_api_shop_images__name__get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/cart/price":{"post":{"summary":"Cart Price","description":"The cart priced by the server: every line, the bundle discount, shipping, the total.","operationId":"cart_price_api_cart_price_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/products":{"get":{"summary":"Admin Products","operationId":"admin_products_api_admin_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Admin Add Product","operationId":"admin_add_product_api_admin_products_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/products/{pid}":{"post":{"summary":"Admin Edit Product","operationId":"admin_edit_product_api_admin_products__pid__post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/products/{pid}/image":{"post":{"summary":"Admin Product Image","operationId":"admin_product_image_api_admin_products__pid__image_post","parameters":[{"name":"pid","in":"path","required":true,"schema":{"type":"string","title":"Pid"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_admin_product_image_api_admin_products__pid__image_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/ip_flags":{"get":{"summary":"Admin Ip Flags","description":"Models whose photo the AI took for a character / brand / celebrity (newest first).","operationId":"admin_ip_flags_api_admin_ip_flags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/models/{mid}/photo":{"get":{"summary":"Admin Model Photo","operationId":"admin_model_photo_api_admin_models__mid__photo_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/models/{mid}/ai_edit":{"get":{"summary":"Admin Ai Edit","description":"Gemini's edit of the photo by the customer's request: for the admin only (/api/admin/ is admin-only).","operationId":"admin_ai_edit_api_admin_models__mid__ai_edit_get","parameters":[{"name":"mid","in":"path","required":true,"schema":{"type":"string","title":"Mid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pay/orders/{oid}/refuse":{"post":{"summary":"Admin Refuse Order","description":"Someone else's work: the print isn't made, the payment is refunded, the tickets used on the model are not.","operationId":"admin_refuse_order_api_admin_pay_orders__oid__refuse_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pay/orders":{"get":{"summary":"Admin Pay Orders","operationId":"admin_pay_orders_api_admin_pay_orders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/admin/pay/orders/{oid}/status":{"post":{"summary":"Admin Pay Status","operationId":"admin_pay_status_api_admin_pay_orders__oid__status_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderStatus"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/admin/pay/orders/{oid}/refund":{"post":{"summary":"Admin Pay Refund","operationId":"admin_pay_refund_api_admin_pay_orders__oid__refund_post","parameters":[{"name":"oid","in":"path","required":true,"schema":{"type":"string","title":"Oid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRefund"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/terms":{"get":{"summary":"Legal Page","operationId":"legal_page_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"Legal Page","operationId":"legal_page_privacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AccountUpdate":{"properties":{"banned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Banned"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"AccountUpdate"},"AdminOrderPropose":{"properties":{"version":{"type":"integer","title":"Version"},"note":{"type":"string","title":"Note","default":""},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["version"],"title":"AdminOrderPropose"},"AiChoice":{"properties":{"choice":{"type":"string","title":"Choice"}},"type":"object","required":["choice"],"title":"AiChoice"},"Body_admin_product_image_api_admin_products__pid__image_post":{"properties":{"file":{"type":"string","format":"binary","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_admin_product_image_api_admin_products__pid__image_post"},"Body_create_model_api_models_post":{"properties":{"prompt":{"type":"string","title":"Prompt","default":""},"backend":{"type":"string","title":"Backend","default":"demo"},"height_mm":{"type":"number","title":"Height Mm","default":80.0},"image":{"anyOf":[{"type":"string","format":"binary","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Image"},"mesh":{"anyOf":[{"type":"string","format":"binary","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Mesh"},"segment_id":{"type":"string","title":"Segment Id","default":""},"email":{"type":"string","title":"Email","default":""},"resolution":{"type":"integer","title":"Resolution","default":0},"steps":{"type":"integer","title":"Steps","default":0},"inherit_from":{"type":"string","title":"Inherit From","default":""},"extra_views":{"type":"string","title":"Extra Views","default":""},"view_right":{"anyOf":[{"type":"string","format":"binary","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"View Right"},"view_back":{"anyOf":[{"type":"string","format":"binary","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"View Back"},"view_left":{"anyOf":[{"type":"string","format":"binary","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"View Left"},"wish":{"type":"string","title":"Wish","default":""},"rights_ok":{"type":"boolean","title":"Rights Ok","default":false},"ai_draw":{"type":"string","title":"Ai Draw","default":""},"mode":{"type":"string","title":"Mode","default":""}},"type":"object","title":"Body_create_model_api_models_post"},"Body_segment_photo_api_segment_post":{"properties":{"image":{"type":"string","format":"binary","contentMediaType":"application/octet-stream","title":"Image"}},"type":"object","required":["image"],"title":"Body_segment_photo_api_segment_post"},"Body_write_review_api_reviews_post":{"properties":{"order_id":{"type":"string","title":"Order Id"},"rating":{"type":"integer","title":"Rating"},"text":{"type":"string","title":"Text"},"public_ok":{"type":"boolean","title":"Public Ok","default":false},"photo":{"anyOf":[{"type":"string","format":"binary","contentMediaType":"application/octet-stream"},{"type":"null"}],"title":"Photo"}},"type":"object","required":["order_id","rating","text"],"title":"Body_write_review_api_reviews_post"},"ButtonEdit":{"properties":{"kind":{"type":"string","title":"Kind"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"params":{"additionalProperties":true,"type":"object","title":"Params","default":{}}},"type":"object","required":["kind"],"title":"ButtonEdit","description":"One press of a 수정 button: which feature, its parameters, and the version on screen to build on."},"CardUpdate":{"properties":{"title":{"type":"string","title":"Title"}},"type":"object","required":["title"],"title":"CardUpdate"},"CartBody":{"properties":{"items":{"items":{},"type":"array","title":"Items"}},"type":"object","required":["items"],"title":"CartBody"},"ChangeAnswer":{"properties":{"accept":{"type":"boolean","title":"Accept"},"text":{"type":"string","title":"Text","default":""}},"type":"object","required":["accept"],"title":"ChangeAnswer"},"ChangeAsk":{"properties":{"text":{"type":"string","title":"Text"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["text"],"title":"ChangeAsk"},"ChangePropose":{"properties":{"version":{"type":"integer","title":"Version"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["version"],"title":"ChangePropose"},"ColorMap":{"properties":{"map":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Map","default":{}},"confirm":{"type":"boolean","title":"Confirm","default":false},"fill":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fill"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","title":"ColorMap"},"ColorWish":{"properties":{"name":{"type":"string","title":"Name"},"hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hex"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["name"],"title":"ColorWish"},"CouponActive":{"properties":{"active":{"type":"boolean","title":"Active"}},"type":"object","required":["active"],"title":"CouponActive"},"CouponMake":{"properties":{"count":{"type":"integer","title":"Count","default":1},"kind":{"type":"string","title":"Kind","default":"percent"},"value":{"type":"integer","title":"Value","default":100},"include_ship":{"type":"boolean","title":"Include Ship","default":true},"max_won":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Won"},"scope":{"type":"string","title":"Scope","default":"print"},"max_uses":{"type":"integer","title":"Max Uses","default":1},"days":{"type":"integer","title":"Days","default":30},"memo":{"type":"string","title":"Memo","default":""}},"type":"object","title":"CouponMake"},"EmailRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"EmailRequest"},"GrassApply":{"properties":{"height_mm":{"type":"number","title":"Height Mm","default":5.0},"blade_scale":{"type":"number","title":"Blade Scale","default":1.0},"glued":{"type":"boolean","title":"Glued","default":true},"shape":{"type":"string","title":"Shape","default":"ellipse"},"margin_mm":{"type":"number","title":"Margin Mm","default":4.0},"print_height_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Print Height Mm"}},"type":"object","title":"GrassApply"},"GrassOption":{"properties":{"height_mm":{"type":"number","title":"Height Mm","default":5.0},"blade_scale":{"type":"number","title":"Blade Scale","default":1.0},"glued":{"type":"boolean","title":"Glued","default":true},"shape":{"type":"string","title":"Shape","default":"ellipse"},"margin_mm":{"type":"number","title":"Margin Mm","default":4.0},"g":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"G"}},"type":"object","title":"GrassOption","description":"잔디 받침: the tallest blade, the grass size (blade scale), the plate's shape and margin, and whether the shop glues\nthe figure on."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"KeyringPreviewRequest":{"properties":{"n":{"type":"integer","title":"N"},"point":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Point"},"roll_deg":{"type":"number","title":"Roll Deg","default":0.0},"hole_mm":{"type":"number","title":"Hole Mm","default":4.0},"width_mm":{"type":"number","title":"Width Mm","default":2.5},"thickness_mm":{"type":"number","title":"Thickness Mm","default":3.0}},"type":"object","required":["n"],"title":"KeyringPreviewRequest"},"MarketingChoice":{"properties":{"agree":{"type":"boolean","title":"Agree"}},"type":"object","required":["agree"],"title":"MarketingChoice"},"MarketingMail":{"properties":{"subject":{"type":"string","title":"Subject"},"body":{"type":"string","title":"Body"},"test":{"type":"boolean","title":"Test","default":true}},"type":"object","required":["subject","body"],"title":"MarketingMail"},"NewOrder":{"properties":{"kind":{"type":"string","title":"Kind"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"},"n":{"type":"integer","title":"N","default":0},"infill":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Infill"},"walls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Walls"},"height_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"},"grass":{"anyOf":[{"$ref":"#/components/schemas/GrassOption"},{"type":"null"}]},"note":{"type":"string","title":"Note","default":""},"ship":{"anyOf":[{"$ref":"#/components/schemas/ShipTo"},{"type":"null"}]},"qty":{"type":"integer","title":"Qty","default":1},"phone":{"type":"string","title":"Phone","default":""},"email":{"type":"string","title":"Email","default":""},"items":{"items":{},"type":"array","title":"Items","default":[]},"coupon":{"type":"string","title":"Coupon","default":""},"use_points":{"type":"boolean","title":"Use Points","default":false},"agree":{"type":"boolean","title":"Agree","default":false}},"type":"object","required":["kind"],"title":"NewOrder"},"OrderRefund":{"properties":{"reason":{"type":"string","title":"Reason"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["reason"],"title":"OrderRefund"},"OrderRequest":{"properties":{"n":{"type":"integer","title":"N"},"infill":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Infill"},"walls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Walls"},"note":{"type":"string","title":"Note","default":""},"height_mm":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Height Mm"},"grass":{"anyOf":[{"$ref":"#/components/schemas/GrassOption"},{"type":"null"}]}},"type":"object","required":["n"],"title":"OrderRequest"},"OrderStatus":{"properties":{"status":{"type":"string","title":"Status"},"tracking":{"type":"string","title":"Tracking","default":""},"courier":{"type":"string","title":"Courier","default":""},"hand":{"type":"boolean","title":"Hand","default":false}},"type":"object","required":["status"],"title":"OrderStatus"},"Paint":{"properties":{"dabs":{"items":{"$ref":"#/components/schemas/PaintDab"},"type":"array","title":"Dabs","default":[]}},"type":"object","title":"Paint"},"PaintDab":{"properties":{"p":{"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array","maxItems":3,"minItems":3,"title":"P"},"r":{"type":"number","title":"R"},"f":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"F"}},"type":"object","required":["p","r"],"title":"PaintDab"},"PaletteLevel":{"properties":{"level":{"type":"string","title":"Level"}},"type":"object","required":["level"],"title":"PaletteLevel"},"PointsGrant":{"properties":{"add":{"type":"integer","title":"Add"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["add"],"title":"PointsGrant"},"PoseRequest":{"properties":{"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"},"rotation":{"items":{"type":"number"},"type":"array","title":"Rotation"},"offset_mm":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Offset Mm"},"base":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Base"}},"type":"object","required":["rotation"],"title":"PoseRequest"},"PreviewBody":{"properties":{"kind":{"type":"string","title":"Kind"},"goods_won":{"type":"integer","title":"Goods Won"},"ship_won":{"type":"integer","title":"Ship Won"},"coupon":{"type":"string","title":"Coupon","default":""},"use_points":{"type":"boolean","title":"Use Points","default":false}},"type":"object","required":["kind","goods_won","ship_won"],"title":"PreviewBody"},"ProductBody":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"price_won":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Won"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"max_per_order":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Per Order"},"stock":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stock"},"stock_unlimited":{"type":"boolean","title":"Stock Unlimited","default":false},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"sort":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"}},"type":"object","title":"ProductBody"},"ReviewLogin":{"properties":{"id":{"type":"string","title":"Id"},"password":{"type":"string","title":"Password"}},"type":"object","required":["id","password"],"title":"ReviewLogin"},"ReviewShown":{"properties":{"shown":{"type":"boolean","title":"Shown"}},"type":"object","required":["shown"],"title":"ReviewShown"},"ShipTo":{"properties":{"name":{"type":"string","title":"Name","default":""},"phone":{"type":"string","title":"Phone","default":""},"zip":{"type":"string","title":"Zip","default":""},"addr1":{"type":"string","title":"Addr1","default":""},"addr2":{"type":"string","title":"Addr2","default":""},"memo":{"type":"string","title":"Memo","default":""}},"type":"object","title":"ShipTo"},"SurfaceRequest":{"properties":{"detail":{"type":"number","title":"Detail"},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N"}},"type":"object","required":["detail"],"title":"SurfaceRequest"},"TicketGrant":{"properties":{"add":{"type":"integer","title":"Add","default":2},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","title":"TicketGrant"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkerProgress":{"properties":{"lease":{"type":"string","title":"Lease"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"stage_elapsed":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Stage Elapsed"},"gen":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Gen"}},"type":"object","required":["lease"],"title":"WorkerProgress"},"WorkerQuote":{"properties":{"lease":{"type":"string","title":"Lease"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["lease"],"title":"WorkerQuote"},"WorkerUsage":{"properties":{"seconds":{"type":"number","title":"Seconds"},"session":{"type":"boolean","title":"Session","default":false}},"type":"object","required":["seconds"],"title":"WorkerUsage"}}}}