{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/auth/register":{"post":{"tags":["Auth"],"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"tags":["Auth"],"summary":"Login","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["Auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/refresh":{"get":{"tags":["Auth"],"summary":"Refresh","operationId":"refresh_auth_refresh_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/email/verify/{code}":{"get":{"tags":["Auth"],"summary":"Verify Email","operationId":"verify_email_auth_email_verify__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password/forgot":{"post":{"tags":["Auth"],"summary":"Forgot Password","operationId":"forgot_password_auth_password_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/password/reset":{"post":{"tags":["Auth"],"summary":"Reset Password","operationId":"reset_password_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/":{"get":{"tags":["User"],"summary":"Get User","operationId":"get_user_user__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sessions/":{"get":{"tags":["Sessions"],"summary":"Get Sessions","operationId":"get_sessions_sessions__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sessions/{session_id}":{"delete":{"tags":["Sessions"],"summary":"Delete Session","operationId":"delete_session_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories":{"post":{"tags":["Weave"],"summary":"Create Story","operationId":"create_story_weave_stories_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStoryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Weave"],"summary":"List Stories","operationId":"list_stories_weave_stories_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}":{"get":{"tags":["Weave"],"summary":"Get Story","operationId":"get_story_weave_stories__story_id__get","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Weave"],"summary":"Update Story","operationId":"update_story_weave_stories__story_id__patch","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Weave"],"summary":"Delete Story","operationId":"delete_story_weave_stories__story_id__delete","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/archive":{"patch":{"tags":["Weave"],"summary":"Archive Story","operationId":"archive_story_weave_stories__story_id__archive_patch","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/setup/randomize":{"post":{"tags":["Weave"],"summary":"Randomize Context","operationId":"randomize_context_weave_setup_randomize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RandomizeContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RandomizeContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/setup/randomize":{"post":{"tags":["Weave"],"summary":"Randomize Setup","operationId":"randomize_setup_weave_stories__story_id__setup_randomize_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RandomSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/setup/finalize":{"post":{"tags":["Weave"],"summary":"Finalize Setup","operationId":"finalize_setup_weave_stories__story_id__setup_finalize_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/play/start":{"post":{"tags":["Weave"],"summary":"Start Play","operationId":"start_play_weave_stories__story_id__play_start_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/play/advance":{"post":{"tags":["Weave"],"summary":"Advance Play","operationId":"advance_play_weave_stories__story_id__play_advance_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvanceStoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/play/pause":{"post":{"tags":["Weave"],"summary":"Pause Play","operationId":"pause_play_weave_stories__story_id__play_pause_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/play/resume":{"post":{"tags":["Weave"],"summary":"Resume Play","operationId":"resume_play_weave_stories__story_id__play_resume_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/weave/stories/{story_id}/events":{"get":{"tags":["Weave"],"summary":"Get Events","operationId":"get_events_weave_stories__story_id__events_get","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"before_sequence","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before Sequence"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/library/tags":{"get":{"tags":["Library"],"summary":"List My Tags","description":"Tags on the caller's own items, most used first.","operationId":"list_my_tags_library_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/library/items":{"post":{"tags":["Library"],"summary":"Create Item","operationId":"create_item_library_items_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateItemRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Library"],"summary":"List Items","description":"The caller's own items: a container's contents, the top level, or all.","operationId":"list_items_library_items_get","parameters":[{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},{"name":"top_level","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Top Level"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ItemKind"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/library/items/{item_id}":{"get":{"tags":["Library"],"summary":"Get Item","description":"An item with its breadcrumb, public path, and the contents you may see.","operationId":"get_item_library_items__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Library"],"summary":"Update Item","operationId":"update_item_library_items__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Library"],"summary":"Delete Item","operationId":"delete_item_library_items__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/library/items/{item_id}/parent":{"put":{"tags":["Library"],"summary":"Move Item","description":"Move an item into a container, or to the top level with null.","operationId":"move_item_library_items__item_id__parent_put","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/library/items/{item_id}/children/order":{"put":{"tags":["Library"],"summary":"Reorder Children","operationId":"reorder_children_library_items__item_id__children_order_put","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderChildrenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media/presign":{"post":{"tags":["Media"],"summary":"Presign Upload","operationId":"presign_upload_media_presign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media/{asset_id}/confirm":{"post":{"tags":["Media"],"summary":"Confirm Upload","operationId":"confirm_upload_media__asset_id__confirm_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media/{asset_id}":{"get":{"tags":["Media"],"summary":"Get Media","operationId":"get_media_media__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/media/cleanup":{"post":{"tags":["Media"],"summary":"Cleanup Orphaned Assets","operationId":"cleanup_orphaned_assets_media_cleanup_post","parameters":[{"name":"x-cleanup-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cleanup-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profiles/me":{"get":{"tags":["Profiles"],"summary":"Get My Profile","operationId":"get_my_profile_profiles_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Profiles"],"summary":"Create My Profile","operationId":"create_my_profile_profiles_me_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Profiles"],"summary":"Update My Profile","operationId":"update_my_profile_profiles_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profiles/me/featured/{section}":{"put":{"tags":["Profiles"],"summary":"Set Featured","description":"Replace a section's featured list: `projects` or `writing`.","operationId":"set_featured_profiles_me_featured__section__put","parameters":[{"name":"section","in":"path","required":true,"schema":{"type":"string","title":"Section"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeaturedIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profiles/{slug}":{"get":{"tags":["Profiles"],"summary":"Get Profile","operationId":"get_profile_profiles__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/profiles/{slug}/content":{"get":{"tags":["Profiles"],"summary":"Get Profile Content","description":"All series and articles on a profile that the viewer may read.","operationId":"get_profile_content_profiles__slug__content_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/content/resolve":{"get":{"tags":["Content"],"summary":"Resolve","description":"Resolve a public path to the series or article it names.\n\nOne call per page view. The reader doesn't need to know whether a path is a\nseries or an article before asking — the `kind` field in the response says\nwhich, and an article carries its series breadcrumb and prev/next links.","operationId":"resolve_content_resolve_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"Public path, e.g. /async-python/generators","title":"Path"},"description":"Public path, e.g. /async-python/generators"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/content/recent":{"get":{"tags":["Content"],"summary":"Recent","description":"The newest public work across the site. Needs no login.","operationId":"recent_content_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/register":{"post":{"tags":["Auth"],"summary":"Register","operationId":"register_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/login":{"post":{"tags":["Auth"],"summary":"Login","operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/logout":{"post":{"tags":["Auth"],"summary":"Logout","operationId":"logout_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/refresh":{"get":{"tags":["Auth"],"summary":"Refresh","operationId":"refresh_v1_auth_refresh_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/auth/email/verify/{code}":{"get":{"tags":["Auth"],"summary":"Verify Email","operationId":"verify_email_v1_auth_email_verify__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password/forgot":{"post":{"tags":["Auth"],"summary":"Forgot Password","operationId":"forgot_password_v1_auth_password_forgot_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/auth/password/reset":{"post":{"tags":["Auth"],"summary":"Reset Password","operationId":"reset_password_v1_auth_password_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/user/":{"get":{"tags":["User"],"summary":"Get User","operationId":"get_user_v1_user__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sessions/":{"get":{"tags":["Sessions"],"summary":"Get Sessions","operationId":"get_sessions_v1_sessions__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sessions/{session_id}":{"delete":{"tags":["Sessions"],"summary":"Delete Session","operationId":"delete_session_v1_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories":{"post":{"tags":["Weave"],"summary":"Create Story","operationId":"create_story_v1_weave_stories_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStoryRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Weave"],"summary":"List Stories","operationId":"list_stories_v1_weave_stories_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}":{"get":{"tags":["Weave"],"summary":"Get Story","operationId":"get_story_v1_weave_stories__story_id__get","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Weave"],"summary":"Update Story","operationId":"update_story_v1_weave_stories__story_id__patch","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Weave"],"summary":"Delete Story","operationId":"delete_story_v1_weave_stories__story_id__delete","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/archive":{"patch":{"tags":["Weave"],"summary":"Archive Story","operationId":"archive_story_v1_weave_stories__story_id__archive_patch","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/setup/randomize":{"post":{"tags":["Weave"],"summary":"Randomize Context","operationId":"randomize_context_v1_weave_setup_randomize_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RandomizeContextRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RandomizeContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/setup/randomize":{"post":{"tags":["Weave"],"summary":"Randomize Setup","operationId":"randomize_setup_v1_weave_stories__story_id__setup_randomize_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RandomSetupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/setup/finalize":{"post":{"tags":["Weave"],"summary":"Finalize Setup","operationId":"finalize_setup_v1_weave_stories__story_id__setup_finalize_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/play/start":{"post":{"tags":["Weave"],"summary":"Start Play","operationId":"start_play_v1_weave_stories__story_id__play_start_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/play/advance":{"post":{"tags":["Weave"],"summary":"Advance Play","operationId":"advance_play_v1_weave_stories__story_id__play_advance_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvanceStoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/play/pause":{"post":{"tags":["Weave"],"summary":"Pause Play","operationId":"pause_play_v1_weave_stories__story_id__play_pause_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/play/resume":{"post":{"tags":["Weave"],"summary":"Resume Play","operationId":"resume_play_v1_weave_stories__story_id__play_resume_post","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/weave/stories/{story_id}/events":{"get":{"tags":["Weave"],"summary":"Get Events","operationId":"get_events_v1_weave_stories__story_id__events_get","parameters":[{"name":"story_id","in":"path","required":true,"schema":{"type":"string","title":"Story Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"before_sequence","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Before Sequence"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/tags":{"get":{"tags":["Library"],"summary":"List My Tags","description":"Tags on the caller's own items, most used first.","operationId":"list_my_tags_v1_library_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/library/items":{"post":{"tags":["Library"],"summary":"Create Item","operationId":"create_item_v1_library_items_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateItemRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Library"],"summary":"List Items","description":"The caller's own items: a container's contents, the top level, or all.","operationId":"list_items_v1_library_items_get","parameters":[{"name":"parent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},{"name":"top_level","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Top Level"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ItemKind"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/items/{item_id}":{"get":{"tags":["Library"],"summary":"Get Item","description":"An item with its breadcrumb, public path, and the contents you may see.","operationId":"get_item_v1_library_items__item_id__get","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Library"],"summary":"Update Item","operationId":"update_item_v1_library_items__item_id__patch","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Library"],"summary":"Delete Item","operationId":"delete_item_v1_library_items__item_id__delete","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/items/{item_id}/parent":{"put":{"tags":["Library"],"summary":"Move Item","description":"Move an item into a container, or to the top level with null.","operationId":"move_item_v1_library_items__item_id__parent_put","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveItemRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/library/items/{item_id}/children/order":{"put":{"tags":["Library"],"summary":"Reorder Children","operationId":"reorder_children_v1_library_items__item_id__children_order_put","parameters":[{"name":"item_id","in":"path","required":true,"schema":{"type":"string","title":"Item Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderChildrenRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/presign":{"post":{"tags":["Media"],"summary":"Presign Upload","operationId":"presign_upload_v1_media_presign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignUploadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresignUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/{asset_id}/confirm":{"post":{"tags":["Media"],"summary":"Confirm Upload","operationId":"confirm_upload_v1_media__asset_id__confirm_post","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/{asset_id}":{"get":{"tags":["Media"],"summary":"Get Media","operationId":"get_media_v1_media__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/media/cleanup":{"post":{"tags":["Media"],"summary":"Cleanup Orphaned Assets","operationId":"cleanup_orphaned_assets_v1_media_cleanup_post","parameters":[{"name":"x-cleanup-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Cleanup-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/profiles/me":{"get":{"tags":["Profiles"],"summary":"Get My Profile","operationId":"get_my_profile_v1_profiles_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["Profiles"],"summary":"Create My Profile","operationId":"create_my_profile_v1_profiles_me_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfileRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Profiles"],"summary":"Update My Profile","operationId":"update_my_profile_v1_profiles_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/profiles/me/featured/{section}":{"put":{"tags":["Profiles"],"summary":"Set Featured","description":"Replace a section's featured list: `projects` or `writing`.","operationId":"set_featured_v1_profiles_me_featured__section__put","parameters":[{"name":"section","in":"path","required":true,"schema":{"type":"string","title":"Section"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeaturedIdsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/profiles/{slug}":{"get":{"tags":["Profiles"],"summary":"Get Profile","operationId":"get_profile_v1_profiles__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/profiles/{slug}/content":{"get":{"tags":["Profiles"],"summary":"Get Profile Content","description":"All series and articles on a profile that the viewer may read.","operationId":"get_profile_content_v1_profiles__slug__content_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/content/resolve":{"get":{"tags":["Content"],"summary":"Resolve","description":"Resolve a public path to the series or article it names.\n\nOne call per page view. The reader doesn't need to know whether a path is a\nseries or an article before asking — the `kind` field in the response says\nwhich, and an article carries its series breadcrumb and prev/next links.","operationId":"resolve_v1_content_resolve_get","parameters":[{"name":"path","in":"query","required":true,"schema":{"type":"string","description":"Public path, e.g. /async-python/generators","title":"Path"},"description":"Public path, e.g. /async-python/generators"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/content/recent":{"get":{"tags":["Content"],"summary":"Recent","description":"The newest public work across the site. Needs no login.","operationId":"recent_v1_content_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AdvanceStoryRequest":{"properties":{"choice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Choice Id"},"weaver_action":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weaver Action"}},"type":"object","title":"AdvanceStoryRequest"},"ConfirmUploadResponse":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"size_bytes":{"type":"integer","title":"Size Bytes"}},"type":"object","required":["asset_id","size_bytes"],"title":"ConfirmUploadResponse"},"ContentVisibility":{"type":"string","enum":["public","members_only","private"],"title":"ContentVisibility","description":"Who may read a library item, whatever its kind."},"CreateItemRequest":{"properties":{"kind":{"$ref":"#/components/schemas/ItemKind"},"title":{"type":"string","maxLength":255,"minLength":1,"title":"Title"},"slug":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Slug"},"summary":{"type":"string","maxLength":2000,"title":"Summary","default":""},"content":{"type":"string","title":"Content","default":""},"visibility":{"$ref":"#/components/schemas/ContentVisibility","default":"private"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"tags":{"items":{"type":"string","maxLength":32,"minLength":1},"type":"array","maxItems":5,"title":"Tags","default":[]},"code_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Code Url"},"demo_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Demo Url"},"work_started_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Work Started On"},"work_ended_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Work Ended On"},"work_ongoing":{"type":"boolean","title":"Work Ongoing","default":false}},"additionalProperties":false,"type":"object","required":["kind","title"],"title":"CreateItemRequest","description":"Create an article, series or project, optionally straight into a container.\n\nWhich fields apply depends on `kind` (content for articles, links for\nprojects); the service refuses the ones that don't, and which kinds may go\ninside which."},"CreateProfileRequest":{"properties":{"display_name":{"type":"string","maxLength":120,"minLength":1,"title":"Display Name"}},"additionalProperties":false,"type":"object","required":["display_name"],"title":"CreateProfileRequest"},"CreateStoryRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"},"context":{"anyOf":[{"$ref":"#/components/schemas/StoryContextData"},{"type":"null"}]}},"type":"object","required":["title","genre"],"title":"CreateStoryRequest"},"FeaturedIdsRequest":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":6,"title":"Ids"}},"additionalProperties":false,"type":"object","required":["ids"],"title":"FeaturedIdsRequest","description":"The complete featured list, in display order. Replaces the old one."},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ItemKind":{"type":"string","enum":["article","series","project"],"title":"ItemKind","description":"What a library item is. Stored on `library_items.kind`."},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":255,"minLength":6,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MoveItemRequest":{"properties":{"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}},"additionalProperties":false,"type":"object","title":"MoveItemRequest","description":"Put an item into a container, or take it to the top level with null."},"PartialStoryContextData":{"properties":{"character_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Character Name"},"character_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Character Role"},"character_trait":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Character Trait"},"world_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"World Description"},"tone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tone"}},"type":"object","title":"PartialStoryContextData"},"PresignUploadRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","exclusiveMinimum":0.0,"title":"Size Bytes"}},"type":"object","required":["filename","content_type","size_bytes"],"title":"PresignUploadRequest"},"PresignUploadResponse":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"upload_url":{"type":"string","title":"Upload Url"},"method":{"type":"string","const":"PUT","title":"Method","default":"PUT"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"}},"type":"object","required":["asset_id","upload_url","headers"],"title":"PresignUploadResponse"},"RandomSetupRequest":{"properties":{"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"}},"type":"object","title":"RandomSetupRequest"},"RandomizeContextRequest":{"properties":{"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"context":{"anyOf":[{"$ref":"#/components/schemas/PartialStoryContextData"},{"type":"null"}]}},"type":"object","title":"RandomizeContextRequest"},"RandomizeContextResponse":{"properties":{"title":{"type":"string","title":"Title"},"genre":{"type":"string","title":"Genre"},"context":{"$ref":"#/components/schemas/StoryContextData"}},"type":"object","required":["title","genre","context"],"title":"RandomizeContextResponse"},"RegisterRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":255,"minLength":6,"title":"Password"},"confirm_password":{"type":"string","maxLength":255,"minLength":6,"title":"Confirm Password"}},"type":"object","required":["email","password","confirm_password"],"title":"RegisterRequest"},"ReorderChildrenRequest":{"properties":{"ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Ids"}},"additionalProperties":false,"type":"object","required":["ids"],"title":"ReorderChildrenRequest","description":"A container's contents in their new order.\n\nMust be the exact set, every item and no extras, so a stale client can't\nsilently drop a chapter."},"ResetPasswordRequest":{"properties":{"password":{"type":"string","maxLength":255,"minLength":6,"title":"Password"},"verification_code":{"type":"string","maxLength":36,"minLength":1,"title":"Verification Code"}},"type":"object","required":["password","verification_code"],"title":"ResetPasswordRequest"},"StoryContextData":{"properties":{"character_name":{"type":"string","title":"Character Name"},"character_role":{"type":"string","title":"Character Role"},"character_trait":{"type":"string","title":"Character Trait"},"world_description":{"type":"string","title":"World Description"},"tone":{"type":"string","title":"Tone"}},"type":"object","required":["character_name","character_role","character_trait","world_description","tone"],"title":"StoryContextData"},"UpdateItemRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Title"},"slug":{"anyOf":[{"type":"string","maxLength":160,"minLength":1},{"type":"null"}],"title":"Slug"},"summary":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Summary"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"visibility":{"anyOf":[{"$ref":"#/components/schemas/ContentVisibility"},{"type":"null"}]},"tags":{"anyOf":[{"items":{"type":"string","maxLength":32,"minLength":1},"type":"array","maxItems":5},{"type":"null"}],"title":"Tags"},"code_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Code Url"},"demo_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Demo Url"},"work_started_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Work Started On"},"work_ended_on":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Work Ended On"},"work_ongoing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Work Ongoing"}},"additionalProperties":false,"type":"object","title":"UpdateItemRequest","description":"Fields a PATCH may change. Omitted fields stay as they are.\n\n`parent_id` and `position` are absent on purpose: moving an item between\ncontainers and reordering it go through their own endpoints, which assign\na position and re-check the slug in the target scope. The router reads the\nfields that were sent, so a link can be cleared with null."},"UpdateProfileRequest":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Display Name"},"slug":{"anyOf":[{"type":"string","maxLength":60,"minLength":3,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},{"type":"null"}],"title":"Slug"},"headline":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Headline"},"about":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"About"},"avatar_asset_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Avatar Asset Id"},"visibility":{"anyOf":[{"$ref":"#/components/schemas/ContentVisibility"},{"type":"null"}]},"linkedin_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Linkedin Handle"},"github_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Github Handle"}},"additionalProperties":false,"type":"object","title":"UpdateProfileRequest","description":"Fields a PATCH may change. Omitted fields stay as they are.\n\n`avatar_asset_id: null` removes the photo, which is why the router reads\n`model_fields_set` rather than dropping None values."},"UpdateStoryRequest":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"genre":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Genre"},"context":{"anyOf":[{"$ref":"#/components/schemas/StoryContextData"},{"type":"null"}]}},"type":"object","title":"UpdateStoryRequest"},"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"}}}}