{"openapi":"3.1.0","info":{"title":"Wunel api","version":"0.0.1"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/auth/register":{"post":{"summary":"Register","operationId":"register_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/login":{"post":{"summary":"Login","operationId":"login_auth_login_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Login Start","description":"The single web sign-in entry point: redirect to WorkOS's hosted AuthKit UI\n(email + 6-digit code, sign-up included — managed by WorkOS).\n\nA native client passes native=1 plus a PKCE `challenge`; the challenge rides\nthrough WorkOS in the signed `state` and the callback then returns a code to\nthe app instead of setting a browser cookie (see /auth/native/exchange).","operationId":"login_start_auth_login_get","parameters":[{"name":"native","in":"query","required":false,"schema":{"type":"string","default":"","title":"Native"}},{"name":"challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Challenge"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/me":{"get":{"summary":"Me","operationId":"me_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}}}},"delete":{"summary":"Delete Me","operationId":"delete_me_auth_me_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Profile","operationId":"update_profile_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/me/assistants":{"get":{"summary":"My Assistants","description":"Is this person's assistant connected? `connected`: the assistants that have\nreached Wunel (name, client family, first/last seen), newest first.\n`authorized`: the latest connector sign-in on our screen (client, when, and\n`used`: whether an assistant has called since), or null. The app's first run\nand Assistants surface read this (agent_signals.connected_assistants).","operationId":"my_assistants_auth_me_assistants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/me/campaign":{"post":{"summary":"Late Campaign","description":"A signed-in account opened the app with campaign parameters in its address.\nA new account (≤ 24 h) that has no campaign yet and came in directly or\nthrough an assistant (not a share link or invite) is counted to it, once\n(service.apply_late_campaign). `conversion` is true only on the call that made\nit a paid-search account: the browser then reports the ad conversion (after\nAccept), so it fires once per account.","operationId":"late_campaign_auth_me_campaign_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LateCampaignRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify":{"post":{"summary":"Verify Email","operationId":"verify_email_auth_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/resend-verification":{"post":{"summary":"Resend Verification","operationId":"resend_verification_auth_resend_verification_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/forgot":{"post":{"summary":"Forgot Password","operationId":"forgot_password_auth_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/reset":{"post":{"summary":"Reset Password","operationId":"reset_password_auth_reset_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/login":{"get":{"summary":"Google Login","description":"Google sign-in is off (email + code only). Old bookmarks land on the normal\nsign-in instead of a 500. Relative on purpose: behind Caddy this route is\n/api/auth/google/login, locally /auth/google/login — both resolve to the\nsibling /auth/login.","operationId":"google_login_auth_google_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/callback":{"get":{"summary":"Auth Callback","description":"WorkOS returns here after sign-in. Exchange the code, then sign the user in —\ncreating/linking the local account by WorkOS id + verified email on first login.","operationId":"auth_callback_auth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/native/exchange":{"post":{"summary":"Native Exchange","description":"Trade a native sign-in code for a real session cookie on THIS connection.\nOnly the client that started the flow can redeem it: the code carries the\nPKCE challenge and the caller must present the matching verifier.","operationId":"native_exchange_auth_native_exchange_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NativeExchangeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/overview":{"get":{"summary":"Admin Overview","operationId":"admin_overview_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/admin/users":{"get":{"summary":"Admin Users","operationId":"admin_users_admin_users_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/growth":{"get":{"summary":"Admin Growth","operationId":"admin_growth_admin_growth_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","default":"14","title":"Days"}},{"name":"include_test","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/growth.csv":{"get":{"summary":"Admin Growth Csv","operationId":"admin_growth_csv_admin_growth_csv_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","default":"14","title":"Days"}},{"name":"include_test","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Test"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/traffic":{"get":{"summary":"Admin Traffic","operationId":"admin_traffic_admin_traffic_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"string","default":"14","title":"Days"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"delete":{"summary":"Admin Delete User","operationId":"admin_delete_user_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/lookup":{"get":{"summary":"Admin Lookup","operationId":"admin_lookup_admin_lookup_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/moderation":{"get":{"summary":"Admin Moderation Log","operationId":"admin_moderation_log_admin_moderation_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/comments/{comment_id}":{"delete":{"summary":"Admin Remove Comment","operationId":"admin_remove_comment_admin_comments__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationReason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/documents/{doc_id}":{"delete":{"summary":"Admin Remove Document","operationId":"admin_remove_document_admin_documents__doc_id__delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationReason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/test":{"post":{"summary":"Admin Mark Test","description":"Mark an account as a test account, or not (left out of every count).","operationId":"admin_mark_test_admin_users__user_id__test_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkTestBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/suspend":{"post":{"summary":"Admin Suspend User","operationId":"admin_suspend_user_admin_users__user_id__suspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModerationReason"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/unsuspend":{"post":{"summary":"Admin Unsuspend User","operationId":"admin_unsuspend_user_admin_users__user_id__unsuspend_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ModerationReason"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents":{"get":{"summary":"List Agents","operationId":"list_agents_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AgentOut"},"type":"array","title":"Response List Agents Agents Get"}}}}}},"post":{"summary":"Create Agent","operationId":"create_agent_agents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_id}":{"patch":{"summary":"Rename Agent","operationId":"rename_agent_agents__agent_id__patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Revoke Agent","operationId":"revoke_agent_agents__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tokens":{"get":{"summary":"List Tokens","operationId":"list_tokens_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Mint Token","operationId":"mint_token_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MintTokenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/me":{"get":{"summary":"Agent Me","operationId":"agent_me_agent_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/document":{"get":{"summary":"Agent Document","description":"The default document (markdown + blocks) in the principal's default\nworkspace — the entry point MCP clients use when no file is specified.","operationId":"agent_document_agent_document_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/workspaces":{"get":{"summary":"Agent Workspaces","description":"Every workspace the principal belongs to (id, name, role) so an AI client\ncan pick which one to browse/edit — not just its primary one.\n\n`campaign` is the agent guide's campaign reference: an assistant that signed\nits person up through a connector passes it on its first call, and a brand-new\naccount without a source is counted to that campaign (service.apply_campaign_ref;\nan invalid or late one is ignored).","operationId":"agent_workspaces_agent_workspaces_get","parameters":[{"name":"campaign","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Campaign"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Agent Create Workspace","description":"Create a workspace owned by the agent's principal (e.g. a dedicated\nmemory workspace). No seed doc — the agent scaffolds the content itself.","operationId":"agent_create_workspace_agent_workspaces_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/search":{"get":{"summary":"Agent Search","description":"Full-text search across the principal's workspaces (or one).","operationId":"agent_search_agent_search_get","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","title":"Query"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/tree":{"get":{"summary":"Agent Tree","description":"Folders + files for a workspace (the given workspace_id, membership-checked,\nor the principal's primary one) so an AI client can navigate and pick a file.","operationId":"agent_tree_agent_tree_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/document/{doc_id}":{"get":{"summary":"Agent Document By Id","description":"Read a document. Pass offset/limit (block indices) to page a large doc\ninstead of pulling the whole body.","operationId":"agent_document_by_id_agent_document__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/documents/batch":{"post":{"summary":"Agent Read Documents Batch","description":"Read several documents at once (e.g. a search's top hits). Each is\nmembership-checked; inaccessible ids are returned with an error, not raised.","operationId":"agent_read_documents_batch_agent_documents_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchReadRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/document/{doc_id}/backlinks":{"get":{"summary":"Agent Backlinks","operationId":"agent_backlinks_agent_document__doc_id__backlinks_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/index":{"get":{"summary":"Agent Index","description":"Generated workspace catalog (pages by type, freshness, inbound links) —\nreplaces hand-maintained index.md. Session cookie or Bearer.","operationId":"agent_index_agent_index_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/lint":{"get":{"summary":"Agent Lint","description":"Workspace health report. With file_task=true, findings are also filed as\nONE assigned comment on the root method doc (deduped) so the acting agent\npicks gardening up via list_assignments.","operationId":"agent_lint_agent_lint_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"file_task","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"File Task"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/document/{doc_id}/suggest-links":{"get":{"summary":"Agent Suggest Links","description":"Unlinked mentions: pages this page talks about but doesn't link to.","operationId":"agent_suggest_links_agent_document__doc_id__suggest_links_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/find":{"get":{"summary":"Agent Find","description":"Filter documents by frontmatter + epistemic callouts.","operationId":"agent_find_agent_find_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"tag","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag"}},{"name":"confidence","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Confidence"}},{"name":"last_verified_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Verified Before"}},{"name":"last_verified_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Verified After"}},{"name":"has_callout","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Has Callout"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/document/{doc_id}/frontmatter":{"put":{"summary":"Agent Set Frontmatter","operationId":"agent_set_frontmatter_agent_document__doc_id__frontmatter_put","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFrontmatterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/blocks/{block_id}/edit":{"post":{"summary":"Edit Block","operationId":"edit_block_documents__doc_id__blocks__block_id__edit_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditBlockRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/files":{"post":{"summary":"Agent Create File","operationId":"agent_create_file_agent_files_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateFileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/folders":{"post":{"summary":"Agent Create Folder","operationId":"agent_create_folder_agent_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateFileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/files/{doc_id}":{"patch":{"summary":"Agent Update File","description":"Rename and/or move a file. Only fields you send are applied.\n\n`workspace_id` moves the file to another workspace: the principal must be\nable to edit there too, and the page keeps its id, so its block-level\nauthorship, comments, share link and grants come with it.","operationId":"agent_update_file_agent_files__doc_id__patch","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Agent Delete File","operationId":"agent_delete_file_agent_files__doc_id__delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/folders/{folder_id}":{"patch":{"summary":"Agent Update Folder","description":"Rename and/or move a folder (and everything under it). Only fields you send.\n\n`workspace_id` moves the whole subtree to another workspace — how two spaces\nare merged. The principal must be able to edit on both sides.","operationId":"agent_update_folder_agent_folders__folder_id__patch","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Agent Delete Folder","operationId":"agent_delete_folder_agent_folders__folder_id__delete","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/assignments":{"get":{"summary":"Agent Assignments","operationId":"agent_assignments_agent_assignments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/comments":{"get":{"summary":"Agent Comments","description":"Every open comment across a workspace, not just ones assigned to the agent.","operationId":"agent_comments_agent_comments_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/assignments":{"get":{"summary":"My Assignments","description":"The current human's inbox: open comment-tasks assigned to them, anywhere.","operationId":"my_assignments_me_assignments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/workspaces":{"get":{"summary":"List Workspaces","operationId":"list_workspaces_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/WorkspaceOut"},"type":"array","title":"Response List Workspaces Workspaces Get"}}}}}},"post":{"summary":"Create Workspace","operationId":"create_workspace_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWorkspaceRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}":{"delete":{"summary":"Delete Workspace","description":"Permanently delete a workspace and everything in it. Owner-only.","operationId":"delete_workspace_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename Workspace","operationId":"rename_workspace_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/workspaces/{workspace_id}":{"delete":{"summary":"Agent Delete Workspace","description":"Agent-facing workspace delete — allowed only when the agent's PRINCIPAL\nowns the workspace. Irreversible; agents must confirm with their human.","operationId":"agent_delete_workspace_agent_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Agent Rename Workspace","description":"Agent-facing workspace rename — the twin of PATCH /workspaces/{id}, which\nonly a browser session can call. OWNER-ONLY: service.rename_workspace goes\nthrough require_owner, so a plain member (even an editor) gets a 403.\nRenames the space itself; nothing inside it moves and no link changes.","operationId":"agent_rename_workspace_agent_workspaces__workspace_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentCreateWorkspaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/workspaces/{workspace_id}/members":{"get":{"summary":"Agent Workspace Members","description":"Who has access to a workspace: owner, members (email + role) and pending\ninvitations, plus `private_to_owner`. Members only — the agent's principal\nmust already belong to the workspace to ask.","operationId":"agent_workspace_members_agent_workspaces__workspace_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/activity":{"get":{"summary":"Workspace Activity","description":"Recent activity across the workspace (audit feed with doc names, newest\nfirst) — powers the home-page 'what the agents did' digest.","operationId":"workspace_activity_workspaces__workspace_id__activity_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/recent":{"get":{"summary":"Recent Pages","description":"Pages touched most recently, across every workspace you belong to (or one\nof them). One row per page, newest first, with whoever last changed it.","operationId":"recent_pages_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":40,"title":"Limit"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/members":{"get":{"summary":"Workspace Members","operationId":"workspace_members_workspaces__workspace_id__members_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/doc-versions":{"get":{"summary":"Workspace Doc Versions","description":"Cheap change-detection poll for sync clients (e.g. the iOS app): every\ndocument's id + content hash in one indexed query, no CRDT loading. A hash\ndiffering from the client's last-seen version means 'refetch this doc';\nan empty hash (doc not yet reindexed) should be treated as changed.","operationId":"workspace_doc_versions_workspaces__workspace_id__doc_versions_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/members/{user_id}":{"patch":{"summary":"Set Member Role","operationId":"set_member_role_workspaces__workspace_id__members__user_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Remove Member","operationId":"remove_member_workspaces__workspace_id__members__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/invite":{"post":{"summary":"Invite To Workspace","operationId":"invite_to_workspace_workspaces__workspace_id__invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tree":{"get":{"summary":"Get Tree","operationId":"get_tree_tree_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/backups":{"get":{"summary":"List Backups","operationId":"list_backups_workspaces__workspace_id__backups_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Backup","operationId":"create_backup_workspaces__workspace_id__backups_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/backups/{backup_id}/restore":{"post":{"summary":"Restore Backup","operationId":"restore_backup_workspaces__workspace_id__backups__backup_id__restore_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"backup_id","in":"path","required":true,"schema":{"type":"string","title":"Backup Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folders":{"post":{"summary":"Create Folder","operationId":"create_folder_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFolderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folders/{folder_id}":{"patch":{"summary":"Rename Folder","operationId":"rename_folder_folders__folder_id__patch","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Folder","operationId":"delete_folder_folders__folder_id__delete","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/folders/{folder_id}/move":{"put":{"summary":"Move Folder","description":"Move a folder under another parent and/or into another workspace.\n\nCross-workspace moves the whole subtree — nested folders and every document\nin them — and needs edit rights on both sides. Moving the top folder across\nis how two workspaces are merged.","operationId":"move_folder_folders__folder_id__move_put","parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveFolderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents":{"get":{"summary":"List Documents","operationId":"list_documents_documents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DocumentOut"},"type":"array","title":"Response List Documents Documents Get"}}}}}},"post":{"summary":"Create Document","operationId":"create_document_documents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDocumentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}":{"get":{"summary":"Get Document","operationId":"get_document_documents__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename Document","operationId":"rename_document_documents__doc_id__patch","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Document","operationId":"delete_document_documents__doc_id__delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/frontmatter":{"put":{"summary":"Set Document Frontmatter","description":"Human-edited page metadata (type/status/confidence/last_verified/tags/…).\nReplaces the whole frontmatter map; membership + edit permission checked.","operationId":"set_document_frontmatter_documents__doc_id__frontmatter_put","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetFrontmatterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Patch Document Frontmatter","description":"Change only some frontmatter keys: `set` writes keys, `unset` removes them,\nevery other key stays as the server has it (merged server-side, row locked).\nWhat the web app's writers use, so an icon or purpose edit never reverts a\nstatus an agent or a Properties edit set meanwhile. Same checks as the PUT.","operationId":"patch_document_frontmatter_documents__doc_id__frontmatter_patch","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchFrontmatterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/resolve-link":{"get":{"summary":"Resolve Link","description":"Resolve an internal link (href from doc_id) to its target doc id, so the\neditor can navigate name/path links (e.g. topics/pricing.md) in-app.\n\nThe document's own workspace wins. Failing that we look in the caller's\nOTHER workspaces, so a link still opens after its target was moved across —\nthe one thing a cross-workspace move leaves behind. The returned\nworkspace_id tells the client which workspace to switch to.","operationId":"resolve_link_documents__doc_id__resolve_link_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"ref","in":"query","required":true,"schema":{"type":"string","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/backlinks":{"get":{"summary":"Document Backlinks","description":"The documents that link TO this one ('what links here'), for the editor.","operationId":"document_backlinks_documents__doc_id__backlinks_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/move":{"put":{"summary":"Move Document","description":"Move a page to another folder and/or another workspace.\n\nA cross-workspace move needs edit rights on BOTH sides: the page itself and\nthe target workspace (403 otherwise). The page keeps its id, so its\nblock-level provenance, comments, public share link and personal grants\ntravel with it — the client warns about the share before moving.","operationId":"move_document_documents__doc_id__move_put","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveDocumentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/seed":{"post":{"summary":"Seed Document","operationId":"seed_document_documents__doc_id__seed_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/author/append":{"post":{"summary":"Author Append","operationId":"author_append_documents__doc_id__author_append_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/author/set":{"put":{"summary":"Author Set","operationId":"author_set_documents__doc_id__author_set_put","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/blocks":{"get":{"summary":"Get Blocks","operationId":"get_blocks_documents__doc_id__blocks_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/pulse":{"get":{"summary":"Doc Pulse","operationId":"doc_pulse_documents__doc_id__pulse_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/export":{"get":{"summary":"Export Markdown","operationId":"export_markdown_documents__doc_id__export_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/export.docx":{"get":{"summary":"Export Docx","operationId":"export_docx_documents__doc_id__export_docx_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/import-docx":{"post":{"summary":"Import Docx","description":"Make a page from an uploaded .docx (upload it first with\n/agent/assets/upload-url + PUT): headings, lists, tables, pictures, links,\nits comments as threads; the file stays linked as the page's Word original\n(template + baseline for the tracked-changes export).","operationId":"import_docx_workspaces__workspace_id__import_docx_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportDocxRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/word-original":{"get":{"summary":"Word Original Status","description":"{has_original, asset_id, filename, imported_at}: whether the tracked-changes\nexport is available for this page.","operationId":"word_original_status_documents__doc_id__word_original_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Add Word Original","description":"\"Add the Word original\": a .docx uploaded with /agent/assets/upload-url +\nPUT becomes this page's Word original — the baseline the tracked-changes\nexport compares the page with. Returns the word-original status.","operationId":"add_word_original_documents__doc_id__word_original_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddWordOriginalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/export-tracked.docx":{"get":{"summary":"Export Tracked Docx","description":"The page as Word with every change since its Word original as tracked\nchanges and its open comments as Word comments. author_mode \"as_written\"\n(people by name, assistants as \"<assistant> (for <person>)\") or \"one_name\"\n(every change and comment as author_name; default the caller's name).","operationId":"export_tracked_docx_documents__doc_id__export_tracked_docx_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"author_mode","in":"query","required":false,"schema":{"type":"string","default":"one_name","title":"Author Mode"}},{"name":"author_name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/provenance":{"post":{"summary":"Report Provenance","operationId":"report_provenance_documents__doc_id__provenance_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProvenanceReport"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Provenance","operationId":"get_provenance_documents__doc_id__provenance_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BlockProvenance"},"title":"Response Get Provenance Documents  Doc Id  Provenance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/comments":{"post":{"summary":"Create Comment","operationId":"create_comment_documents__doc_id__comments_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Comments","operationId":"list_comments_documents__doc_id__comments_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentOut"},"title":"Response List Comments Documents  Doc Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/comments/{comment_id}/reply":{"post":{"summary":"Reply Comment","operationId":"reply_comment_comments__comment_id__reply_post","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/comments/{comment_id}/status":{"post":{"summary":"Set Comment Status","operationId":"set_comment_status_comments__comment_id__status_post","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentStatusRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/comments/{comment_id}":{"delete":{"summary":"Delete Comment","description":"Delete a comment (and its replies). The author, or the workspace owner.","operationId":"delete_comment_comments__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Assign Comment","description":"Hand a thread to one of your assistants (\"Ask Claude\"), or take it back\nwith null. Answers the thread's root comment as GET …/comments shows it.","operationId":"assign_comment_comments__comment_id__patch","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/governance":{"get":{"summary":"Get Governance","operationId":"get_governance_documents__doc_id__governance_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GovernanceOut"},"title":"Response Get Governance Documents  Doc Id  Governance Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Governance","operationId":"set_governance_documents__doc_id__governance_put","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GovernanceOut"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/audit":{"get":{"summary":"Get Audit","operationId":"get_audit_documents__doc_id__audit_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AuditOut"},"title":"Response Get Audit Documents  Doc Id  Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/audit/export":{"get":{"summary":"Export Audit","operationId":"export_audit_documents__doc_id__audit_export_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/share":{"get":{"summary":"Get Share","operationId":"get_share_documents__doc_id__share_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Share","operationId":"create_share_documents__doc_id__share_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ShareSettings"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Update Share","operationId":"update_share_documents__doc_id__share_patch","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Revoke Share","operationId":"revoke_share_documents__doc_id__share_delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/share/rotate":{"post":{"summary":"Rotate Share","operationId":"rotate_share_documents__doc_id__share_rotate_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/sharing":{"put":{"summary":"Set Workspace Sharing","description":"Owner kill switch: off = every public link in the workspace 404s.","operationId":"set_workspace_sharing_workspaces__workspace_id__sharing_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharingToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/keep":{"post":{"summary":"Keep Changes","operationId":"keep_changes_documents__doc_id__keep_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/revert":{"post":{"summary":"Revert Changes","operationId":"revert_changes_documents__doc_id__revert_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/shared":{"get":{"summary":"My Shared","operationId":"my_shared_me_shared_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/shared":{"get":{"summary":"Agent Shared","operationId":"agent_shared_agent_shared_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/me/shared/{document_id}/copy":{"post":{"summary":"Copy Shared","operationId":"copy_shared_me_shared__document_id__copy_post","parameters":[{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CopySharedRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/claim-guest":{"post":{"summary":"Claim Guest","description":"The SPA calls this once after sign-in; a no-op without a guest cookie.","operationId":"claim_guest_auth_claim_guest_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/public/{token}":{"get":{"summary":"Public Page","operationId":"public_page_public__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/guest":{"post":{"summary":"Public Guest","operationId":"public_guest_public__token__guest_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/GuestRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/append":{"post":{"summary":"Public Append","operationId":"public_append_public__token__append_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicAppendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/blocks/{block_id}/edit":{"post":{"summary":"Public Edit Block","operationId":"public_edit_block_public__token__blocks__block_id__edit_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"block_id","in":"path","required":true,"schema":{"type":"string","title":"Block Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicEditRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/comments":{"get":{"summary":"Public Comments","description":"Every comment thread on a Can-comment / Can-edit page (names follow the\nowner's \"show who wrote what\"; no account ids).","operationId":"public_comments_public__token__comments_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Public Comment","operationId":"public_comment_public__token__comments_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicCommentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/comments/{comment_id}/reply":{"post":{"summary":"Public Reply","operationId":"public_reply_public__token__comments__comment_id__reply_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","title":"Comment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/agent":{"get":{"summary":"Public Agent","operationId":"public_agent_public__token__agent_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/assets/{asset_id}":{"get":{"summary":"Public Asset","operationId":"public_asset_public__token__assets__asset_id__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"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"}}}}}}},"/pair":{"post":{"summary":"Issue Pair Code","operationId":"issue_pair_code_pair_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/PairRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pair/{code}":{"get":{"summary":"Pair Info","operationId":"pair_info_pair__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"}}}}}}},"/pair/{code}/exchange":{"post":{"summary":"Pair Exchange","operationId":"pair_exchange_pair__code__exchange_post","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","title":"Code"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExchangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/pair/{code}/claim":{"post":{"summary":"Pair Claim","operationId":"pair_claim_pair__code__claim_post","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"}}}}}}},"/public/{token}/preview":{"get":{"summary":"Public Preview","operationId":"public_preview_public__token__preview_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"summary":"Public Preview","operationId":"public_preview_public__token__preview_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/og.png":{"get":{"summary":"Public Og Image","operationId":"public_og_image_public__token__og_png_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"summary":"Public Og Image","operationId":"public_og_image_public__token__og_png_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/accounts/start":{"post":{"summary":"Accounts Start","operationId":"accounts_start_accounts_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/accounts/confirm":{"post":{"summary":"Accounts Confirm","operationId":"accounts_confirm_accounts_confirm_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountConfirmRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/code/start":{"post":{"summary":"Auth Code Start","operationId":"auth_code_start_auth_code_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeStartRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/code/verify":{"post":{"summary":"Auth Code Verify","description":"Check the code, set the session cookie, and make this browser's guest lines\n(the wunel_guest cookie) the account's, as /auth/claim-guest does.","operationId":"auth_code_verify_auth_code_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodeVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tokens/{token_id}":{"delete":{"summary":"Revoke Token","operationId":"revoke_token_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/agents":{"get":{"summary":"Agent List Agents","operationId":"agent_list_agents_agent_agents_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/agents/{agent_id}/revoke":{"post":{"summary":"Agent Revoke Agent","operationId":"agent_revoke_agent_agent_agents__agent_id__revoke_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/sign-out-everywhere":{"post":{"summary":"Sign Out Everywhere","operationId":"sign_out_everywhere_auth_sign_out_everywhere_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/sign-out-everywhere":{"post":{"summary":"Agent Sign Out Everywhere","operationId":"agent_sign_out_everywhere_agent_sign_out_everywhere_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/sign-in-link":{"post":{"summary":"Agent Sign In Link","operationId":"agent_sign_in_link_agent_sign_in_link_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SignInLinkRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/go/preview":{"post":{"summary":"Go Preview","description":"Who a sign-in link is for, without using it. POST so the token stays out of\nURLs and access logs; the SPA page GET /go/<token> never touches the link.","operationId":"go_preview_auth_go_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/go":{"post":{"summary":"Go Redeem","description":"Use a single-use sign-in link: sets a one-year session cookie on this device.","operationId":"go_redeem_auth_go_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/test/sign-in-link":{"post":{"summary":"Test Sign In Link","description":"TEST STACKS ONLY (PASSWORD_AUTH_ENABLED=true): a sign-in link for the\nsigned-in account itself, returned instead of emailed, so e2e can open /go/<token>\nwithout an inbox. 404 in production. It can't reach anyone else's account.","operationId":"test_sign_in_link_auth_test_sign_in_link_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/me/activity":{"get":{"summary":"My Activity","operationId":"my_activity_me_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/account/activity":{"get":{"summary":"Agent Account Activity","operationId":"agent_account_activity_agent_account_activity_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/account":{"delete":{"summary":"Agent Delete Account","operationId":"agent_delete_account_agent_account_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/pair":{"post":{"summary":"Agent Pair New Agent","operationId":"agent_pair_new_agent_agent_pair_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentPairRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/workspaces/{workspace_id}/invite":{"post":{"summary":"Agent Invite Member","operationId":"agent_invite_member_agent_workspaces__workspace_id__invite_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentInviteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Agent Revoke Invite","description":"Withdraw a pending invitation by its address (an assistant knows the address,\nnot an invite id). Same rule as the web: the workspace owner or whoever sent it.","operationId":"agent_revoke_invite_agent_workspaces__workspace_id__invite_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"email","in":"query","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/oauth-user/{sub}":{"get":{"summary":"Internal Oauth User","operationId":"internal_oauth_user_internal_oauth_user__sub__get","parameters":[{"name":"sub","in":"path","required":true,"schema":{"type":"string","title":"Sub"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/links/resolve":{"post":{"summary":"Public Resolve Link","operationId":"public_resolve_link_public__token__links_resolve_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/access-requests":{"post":{"summary":"Public Access Request","operationId":"public_access_request_public__token__access_requests_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/granted/{doc_id}":{"get":{"summary":"Granted Page","operationId":"granted_page_me_granted__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/granted/{doc_id}/assets/{asset_id}":{"get":{"summary":"Granted Asset","operationId":"granted_asset_me_granted__doc_id__assets__asset_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"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"}}}}}}},"/me/granted/{doc_id}/links/resolve":{"post":{"summary":"Granted Resolve Link","operationId":"granted_resolve_link_me_granted__doc_id__links_resolve_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/granted/{doc_id}/access-requests":{"post":{"summary":"Granted Access Request","operationId":"granted_access_request_me_granted__doc_id__access_requests_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access-requests":{"get":{"summary":"List Access Requests","operationId":"list_access_requests_access_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/access-requests/{request_id}":{"get":{"summary":"Get Access Request","operationId":"get_access_request_access_requests__request_id__get","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access-requests/{request_id}/approve":{"post":{"summary":"Approve Access Request","operationId":"approve_access_request_access_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/access-requests/{request_id}/decline":{"post":{"summary":"Decline Access Request","operationId":"decline_access_request_access_requests__request_id__decline_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/access-requests":{"get":{"summary":"Agent List Access Requests","operationId":"agent_list_access_requests_agent_access_requests_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Agent Request Access","operationId":"agent_request_access_agent_access_requests_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRequestBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/access-requests/{request_id}/approve":{"post":{"summary":"Agent Approve Access Request","operationId":"agent_approve_access_request_agent_access_requests__request_id__approve_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApproveBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/access-requests/{request_id}/decline":{"post":{"summary":"Agent Decline Access Request","operationId":"agent_decline_access_request_agent_access_requests__request_id__decline_post","parameters":[{"name":"request_id","in":"path","required":true,"schema":{"type":"string","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/grants":{"get":{"summary":"List Page Grants","operationId":"list_page_grants_documents__doc_id__grants_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/grants/{grant_id}":{"delete":{"summary":"Revoke Page Grant","operationId":"revoke_page_grant_documents__doc_id__grants__grant_id__delete","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connect/start":{"post":{"summary":"Connect Start","operationId":"connect_start_connect_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/connect/complete":{"post":{"summary":"Connect Complete","operationId":"connect_complete_connect_complete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agent/assets":{"post":{"summary":"Agent Upload Asset","description":"Store a file from base64 or an https URL. JSON body as UploadAssetRequest.\nReturns the asset JSON with `kind`, `embed_markdown`, `link_markdown`.","operationId":"agent_upload_asset_agent_assets_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"get":{"summary":"Agent List Assets","description":"Stored assets in a workspace. Each row carries `attached`, `document_name`,\n`used_in`, `kind` and ready-made markdown; filter by filename `query` or\n`kind`; unattached=true for only the ones that hang off no page.","operationId":"agent_list_assets_agent_assets_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"doc_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Id"}},{"name":"unattached","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unattached"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"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"}}}}}}},"/agent/assets/upload-url":{"post":{"summary":"Agent Asset Upload Url","description":"Reserve an asset + return a one-time URL to PUT the file bytes to directly\n(so big files never pass through an agent's context).","operationId":"agent_asset_upload_url_agent_assets_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/upload":{"put":{"summary":"Asset Upload Finalize","description":"Receive raw file bytes for a reserved asset. Auth is the one-time token in\nthe query (no session) — so a plain `curl -T file <url>` works. The token is\nchecked and the cap chosen (10 MB for a guest, 25 MB otherwise) BEFORE any\nof the body is read.","operationId":"asset_upload_finalize_assets_upload_put","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/assets/{asset_id}/move":{"put":{"summary":"Agent Move Asset","description":"Move one stored asset to another workspace and/or attach it to another\npage. A row change only — the stored bytes are never re-uploaded.\n\ndocument_id implies its own workspace; passing workspace_id alone moves the\nasset across and drops the attachment, since a page that stayed behind\ncannot hold an asset that left. Needs edit rights on BOTH sides.","operationId":"agent_move_asset_agent_assets__asset_id__move_put","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/assets/{asset_id}":{"get":{"summary":"Agent Read Asset","description":"Metadata + extracted text (paged by max_chars/page). include_image=true\nadds a downscaled copy of an image as base64 (`image`).","operationId":"agent_read_asset_agent_assets__asset_id__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"max_chars","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Chars"}},{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Page"}},{"name":"include_image","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Image"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Agent Delete Asset","operationId":"agent_delete_asset_agent_assets__asset_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/{asset_id}/raw":{"get":{"summary":"Asset Raw","description":"An asset's bytes for a member of its workspace (cookie or Bearer). Only a\nshort allow-list shows inline, and only when the bytes are what the type\nclaims; ?download=1 always downloads.","operationId":"asset_raw_assets__asset_id__raw_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Download"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/{asset_id}/preview":{"get":{"summary":"Asset Preview","description":"A browser-safe image for a member of the asset's workspace (cookie or\nBearer): HEIC/HEIF, AVIF and every other raster image as JPEG (PNG with\nalpha), `w` px wide (default 1600, 64..2400, never upscaled); a checked SVG\nas image/svg+xml. 404 for files that have no preview, 415 for an SVG that\nis too big or unsafe or an image that can't be decoded.","operationId":"asset_preview_assets__asset_id__preview_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/{asset_id}/html":{"get":{"summary":"Asset Html","description":"An HTML asset as a page, for a member of its workspace (cookie or Bearer):\nthe latest version, or version `v` from its history. The stable link.","operationId":"asset_html_assets__asset_id__html_get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"v","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"V"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/assets/{asset_id}/versions":{"get":{"summary":"Asset Versions","description":"Every version of a file, newest first (the first is what links show).","operationId":"asset_versions_assets__asset_id__versions_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"}}}}}}},"/assets/{asset_id}":{"patch":{"summary":"Rename Asset","operationId":"rename_asset_assets__asset_id__patch","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameAssetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Asset","operationId":"delete_asset_assets__asset_id__delete","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/files/{asset_id}":{"get":{"summary":"Public File","description":"Any file placed in this shared page (never one it doesn't reference, and\nnever one from another workspace). Non-images always download.","operationId":"public_file_public__token__files__asset_id__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"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"}}}}}}},"/me/granted/{doc_id}/files/{asset_id}":{"get":{"summary":"Granted File","operationId":"granted_file_me_granted__doc_id__files__asset_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"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"}}}}}}},"/public/{token}/files/{asset_id}/preview":{"get":{"summary":"Public File Preview","description":"The preview of a file placed in this shared page (same rule as /files/).","operationId":"public_file_preview_public__token__files__asset_id__preview_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/granted/{doc_id}/files/{asset_id}/preview":{"get":{"summary":"Granted File Preview","operationId":"granted_file_preview_me_granted__doc_id__files__asset_id__preview_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"w","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"W"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/public/{token}/files/{asset_id}/html":{"get":{"summary":"Public File Html","description":"An HTML page placed in this shared page, latest version, sandboxed (same\nrule as /files/: only a file the page places).","operationId":"public_file_html_public__token__files__asset_id__html_get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"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"}}}}}}},"/me/granted/{doc_id}/files/{asset_id}/html":{"get":{"summary":"Granted File Html","operationId":"granted_file_html_me_granted__doc_id__files__asset_id__html_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"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"}}}}}}},"/agent/documents/{doc_id}/attach":{"post":{"summary":"Attach To Page","description":"Upload (base64/url) or reuse (asset_id) a file and place it in the page as\none block — an embed for images, a file card otherwise (as_=\"auto\"). Returns\n{asset_id, block_id, markdown, kind, placed_as[, caption_block_id]}.","operationId":"attach_to_page_agent_documents__doc_id__attach_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/needs-you":{"get":{"summary":"Needs You","description":"Everything waiting for the signed-in person, newest first: pages with lines\nto review, comments/replies/mentions, tasks, access requests, pages shared\nwith them. `count` is what's not done; `by_document` feeds the tree dots.","operationId":"needs_you_me_needs_you_get","parameters":[{"name":"include_done","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Done"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/needs-you/count":{"get":{"summary":"Needs You Count","description":"Just the badge: `{count, by_document}`, for clients that poll (the phone).\nBoth needs-you routes send an ETag; If-None-Match with it answers 304 when\nnothing changed.","operationId":"needs_you_count_me_needs_you_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/me/needs-you/done":{"post":{"summary":"Mark Needs You","operationId":"mark_needs_you_me_needs_you_done_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/notifications":{"get":{"summary":"Get Notification Settings","operationId":"get_notification_settings_me_notifications_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Put Notification Settings","operationId":"put_notification_settings_me_notifications_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/notifications/unsubscribe":{"post":{"summary":"Unsubscribe","description":"The link in every notification mail (no sign-in needed): turns mail off.\nPOST only, so a mail scanner prefetching the page changes nothing.","operationId":"unsubscribe_notifications_unsubscribe_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnsubscribeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/invites/{invite_id}/resend":{"post":{"summary":"Resend Invite","operationId":"resend_invite_workspaces__workspace_id__invites__invite_id__resend_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/invites/{invite_id}":{"delete":{"summary":"Revoke Invite","operationId":"revoke_invite_workspaces__workspace_id__invites__invite_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/approval":{"get":{"summary":"Get Approval Mode","operationId":"get_approval_mode_workspaces__workspace_id__approval_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Set Approval Mode","description":"Owner-only. Switching back to auto leaves waiting proposals waiting.","operationId":"set_approval_mode_workspaces__workspace_id__approval_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalModeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/proposals":{"get":{"summary":"List Proposals","description":"Waiting changes on a page, in page order, each `ready` or `out_of_date`.\nEditors see all; an agent sees its own; viewers see none.","operationId":"list_proposals_documents__doc_id__proposals_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proposals/{change_id}/approve":{"post":{"summary":"Approve Change","operationId":"approve_change_proposals__change_id__approve_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApproveRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/proposals/{change_id}/reject":{"post":{"summary":"Reject Change","operationId":"reject_change_proposals__change_id__reject_post","parameters":[{"name":"change_id","in":"path","required":true,"schema":{"type":"string","title":"Change Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/proposals/approve-all":{"post":{"summary":"Approve All","description":"Apply every waiting change that still applies cleanly; out-of-date ones\nstay waiting and come back in `skipped`.","operationId":"approve_all_documents__doc_id__proposals_approve_all_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/proposals/reject-all":{"post":{"summary":"Reject All","operationId":"reject_all_documents__doc_id__proposals_reject_all_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agent/proposals":{"get":{"summary":"Agent Proposals","description":"The calling agent's own waiting proposals (one page, or all).","operationId":"agent_proposals_agent_proposals_get","parameters":[{"name":"file_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/feed":{"get":{"summary":"Get Feed","description":"Runs of changes by other people and assistants, newest first (ETag'd).","operationId":"get_feed_me_feed_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/changes":{"get":{"summary":"Get Changes","description":"Per-block before/after on one page, for the review cards.","operationId":"get_changes_documents__doc_id__changes_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}},{"name":"waiting_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Waiting Only"}},{"name":"agent_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/seen":{"get":{"summary":"Get Seen","operationId":"get_seen_me_seen_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"summary":"Put Seen","description":"Move the cursors forward (never back; a future time is clamped to now).","operationId":"put_seen_me_seen_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeenRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/documents/{doc_id}/lineage":{"get":{"summary":"Get Lineage","operationId":"get_lineage_documents__doc_id__lineage_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/me/captures":{"post":{"summary":"Post Capture","description":"Leave a note for your assistant: a page in the workspace's Inbox.","operationId":"post_capture_me_captures_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptureRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Captures","operationId":"list_captures_me_captures_get","parameters":[{"name":"workspace_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/workspaces/{workspace_id}/summary":{"get":{"summary":"Workspace Summary","operationId":"workspace_summary_workspaces__workspace_id__summary_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AccountConfirmRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"code":{"type":"string","maxLength":20,"title":"Code"},"client":{"type":"string","maxLength":60,"title":"Client","default":""},"label":{"type":"string","maxLength":120,"title":"Label","default":""},"name":{"type":"string","maxLength":120,"title":"Name","default":""},"guest_code":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Guest Code"},"share_token":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Share Token"},"campaign":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Campaign"}},"type":"object","required":["email","code"],"title":"AccountConfirmRequest"},"AccountStartRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"client":{"type":"string","maxLength":60,"title":"Client","default":""},"share_token":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Share Token"},"intent":{"type":"string","enum":["sign_in","delete"],"title":"Intent","default":"sign_in"}},"type":"object","required":["email"],"title":"AccountStartRequest"},"ActorKind":{"type":"string","enum":["human","agent"],"title":"ActorKind"},"ActorOut":{"properties":{"actor_kind":{"$ref":"#/components/schemas/ActorKind"},"user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Id"},"agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Id"},"principal_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal User Id"},"label":{"type":"string","title":"Label","default":""},"guest_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guest Id"},"kind_detail":{"type":"string","title":"Kind Detail","default":"human"},"via_share":{"type":"boolean","title":"Via Share","default":false}},"type":"object","required":["actor_kind"],"title":"ActorOut"},"AddWordOriginalRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"}},"type":"object","required":["asset_id"],"title":"AddWordOriginalRequest"},"AgentCreateFileRequest":{"properties":{"name":{"type":"string","title":"Name","default":"untitled.md"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","title":"AgentCreateFileRequest"},"AgentCreateWorkspaceRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"AgentCreateWorkspaceRequest"},"AgentInviteRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"role":{"type":"string","maxLength":12,"title":"Role","default":"editor"}},"type":"object","required":["email"],"title":"AgentInviteRequest"},"AgentOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"principal_user_id":{"type":"string","title":"Principal User Id"},"principal_name":{"type":"string","title":"Principal Name"},"color":{"type":"string","title":"Color"},"default_permission":{"type":"string","title":"Default Permission","default":"edit"}},"type":"object","required":["id","name","principal_user_id","principal_name","color"],"title":"AgentOut"},"AgentPairRequest":{"properties":{"client_hint":{"type":"string","maxLength":40,"title":"Client Hint","default":""},"share_token":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Share Token"}},"type":"object","title":"AgentPairRequest"},"AgentRequestBody":{"properties":{"share_token":{"type":"string","maxLength":64,"minLength":1,"title":"Share Token"},"href":{"type":"string","maxLength":500,"minLength":1,"title":"Href"}},"type":"object","required":["share_token","href"],"title":"AgentRequestBody"},"AgentUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"update_links":{"type":"boolean","title":"Update Links","default":false}},"type":"object","title":"AgentUpdateRequest"},"ApprovalModeRequest":{"properties":{"approval_mode":{"type":"string","maxLength":10,"title":"Approval Mode"}},"type":"object","required":["approval_mode"],"title":"ApprovalModeRequest"},"ApproveBody":{"properties":{"grant":{"type":"string","enum":["page","workspace"],"title":"Grant"},"access":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"title":"Access"}},"type":"object","required":["grant"],"title":"ApproveBody"},"ApproveRequest":{"properties":{"at_end":{"type":"boolean","title":"At End","default":false}},"type":"object","title":"ApproveRequest"},"AssetMoveRequest":{"properties":{"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"document_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Document Id"}},"type":"object","title":"AssetMoveRequest"},"AssignRequest":{"properties":{"assignee_agent_id":{"anyOf":[{"type":"string","maxLength":36},{"type":"null"}],"title":"Assignee Agent Id"}},"type":"object","title":"AssignRequest"},"AuditOut":{"properties":{"id":{"type":"integer","title":"Id"},"document_id":{"type":"string","title":"Document Id"},"action":{"type":"string","title":"Action"},"actor":{"$ref":"#/components/schemas/ActorOut"},"detail":{"type":"string","title":"Detail"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","document_id","action","actor","detail","created_at"],"title":"AuditOut"},"AuthorRequest":{"properties":{"markdown":{"type":"string","title":"Markdown"},"base_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Markdown"}},"type":"object","required":["markdown"],"title":"AuthorRequest"},"BackupRequest":{"properties":{"label":{"type":"string","title":"Label","default":""}},"type":"object","title":"BackupRequest"},"BatchReadRequest":{"properties":{"file_ids":{"items":{"type":"string"},"type":"array","title":"File Ids"}},"type":"object","required":["file_ids"],"title":"BatchReadRequest"},"BlockProvenance":{"properties":{"block_id":{"type":"string","title":"Block Id"},"latest":{"$ref":"#/components/schemas/ProvenanceEntry"},"history":{"items":{"$ref":"#/components/schemas/ProvenanceEntry"},"type":"array","title":"History"}},"type":"object","required":["block_id","latest","history"],"title":"BlockProvenance"},"CaptureRequest":{"properties":{"workspace_id":{"type":"string","maxLength":36,"minLength":1,"title":"Workspace Id"},"text":{"type":"string","maxLength":21000,"title":"Text"},"source_url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Source Url"},"source_title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Source Title"},"asset_ids":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Asset Ids"},"client_key":{"type":"string","maxLength":64,"title":"Client Key"}},"type":"object","required":["workspace_id","text","client_key"],"title":"CaptureRequest"},"CodeStartRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"}},"type":"object","required":["email"],"title":"CodeStartRequest"},"CodeVerifyRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"code":{"type":"string","maxLength":20,"title":"Code"},"name":{"type":"string","maxLength":120,"title":"Name","default":""},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source"}},"type":"object","required":["email","code"],"title":"CodeVerifyRequest"},"CommentOut":{"properties":{"id":{"type":"string","title":"Id"},"document_id":{"type":"string","title":"Document Id"},"block_id":{"type":"string","title":"Block Id"},"quote":{"type":"string","title":"Quote","default":""},"thread_parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thread Parent Id"},"body":{"type":"string","title":"Body"},"status":{"$ref":"#/components/schemas/CommentStatus"},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"},"author":{"$ref":"#/components/schemas/ActorOut"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"replies":{"items":{"$ref":"#/components/schemas/CommentOut"},"type":"array","title":"Replies","default":[]}},"type":"object","required":["id","document_id","block_id","thread_parent_id","body","status","assignee_user_id","assignee_agent_id","author","created_at"],"title":"CommentOut"},"CommentStatus":{"type":"string","enum":["open","in_progress","resolved"],"title":"CommentStatus"},"CommentStatusRequest":{"properties":{"status":{"$ref":"#/components/schemas/CommentStatus"}},"type":"object","required":["status"],"title":"CommentStatusRequest"},"ConnectStart":{"properties":{"external_auth_id":{"type":"string","maxLength":200,"title":"External Auth Id"},"referrer_host":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Referrer Host"}},"type":"object","required":["external_auth_id"],"title":"ConnectStart"},"CopySharedRequest":{"properties":{"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","title":"CopySharedRequest"},"CreateAgentRequest":{"properties":{"name":{"type":"string","title":"Name"},"principal_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Principal User Id"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"}},"type":"object","required":["name"],"title":"CreateAgentRequest"},"CreateCommentRequest":{"properties":{"block_id":{"type":"string","title":"Block Id"},"body":{"type":"string","title":"Body"},"quote":{"type":"string","title":"Quote","default":""},"assignee_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee User Id"},"assignee_agent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignee Agent Id"},"client_key":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$"},{"type":"null"}],"title":"Client Key"}},"type":"object","required":["block_id","body"],"title":"CreateCommentRequest"},"CreateDocumentRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name","default":"untitled.md"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["workspace_id"],"title":"CreateDocumentRequest"},"CreateFolderRequest":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"}},"type":"object","required":["workspace_id","name"],"title":"CreateFolderRequest"},"CreateWorkspaceRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"CreateWorkspaceRequest"},"DeleteAccountRequest":{"properties":{"code":{"type":"string","maxLength":20,"title":"Code"}},"type":"object","required":["code"],"title":"DeleteAccountRequest"},"DocumentOut":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"title":{"type":"string","title":"Title"},"name":{"type":"string","title":"Name","default":""},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"markdown":{"type":"string","title":"Markdown"},"frontmatter":{"additionalProperties":true,"type":"object","title":"Frontmatter","default":{}},"share_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Share Token"},"version":{"type":"string","title":"Version","default":""},"assets":{"additionalProperties":true,"type":"object","title":"Assets","default":{}}},"type":"object","required":["id","workspace_id","title","markdown"],"title":"DocumentOut"},"EditBlockRequest":{"properties":{"markdown":{"type":"string","title":"Markdown"},"base_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Version"},"base_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Markdown"}},"type":"object","required":["markdown"],"title":"EditBlockRequest"},"ExchangeRequest":{"properties":{"client":{"type":"string","maxLength":60,"title":"Client","default":""},"label":{"type":"string","maxLength":120,"title":"Label","default":""}},"type":"object","title":"ExchangeRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GoRequest":{"properties":{"token":{"type":"string","maxLength":128,"title":"Token"}},"type":"object","required":["token"],"title":"GoRequest"},"GovernanceOut":{"properties":{"document_id":{"type":"string","title":"Document Id"},"agent_id":{"type":"string","title":"Agent Id"},"agent_name":{"type":"string","title":"Agent Name"},"permission":{"$ref":"#/components/schemas/Permission"}},"type":"object","required":["document_id","agent_id","agent_name","permission"],"title":"GovernanceOut"},"GovernanceRequest":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"permission":{"$ref":"#/components/schemas/Permission"}},"type":"object","required":["agent_id","permission"],"title":"GovernanceRequest"},"GuestRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"}},"type":"object","title":"GuestRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImportDocxRequest":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["asset_id"],"title":"ImportDocxRequest"},"InviteRequest":{"properties":{"email":{"type":"string","maxLength":320,"title":"Email"},"role":{"type":"string","maxLength":12,"title":"Role","default":"editor"}},"type":"object","required":["email"],"title":"InviteRequest"},"LateCampaignRequest":{"properties":{"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source"}},"type":"object","title":"LateCampaignRequest"},"LinkBody":{"properties":{"href":{"type":"string","maxLength":500,"minLength":1,"title":"Href"}},"type":"object","required":["href"],"title":"LinkBody"},"LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"MarkRequest":{"properties":{"keys":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Keys"},"done":{"type":"boolean","title":"Done","default":true}},"type":"object","required":["keys"],"title":"MarkRequest"},"MarkTestBody":{"properties":{"test":{"type":"boolean","title":"Test"}},"type":"object","required":["test"],"title":"MarkTestBody"},"MintTokenRequest":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"label":{"type":"string","title":"Label","default":""}},"type":"object","required":["agent_id"],"title":"MintTokenRequest"},"ModerationReason":{"properties":{"reason":{"type":"string","maxLength":1000,"title":"Reason","default":""}},"type":"object","title":"ModerationReason"},"MoveDocumentRequest":{"properties":{"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","title":"MoveDocumentRequest"},"MoveFolderRequest":{"properties":{"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"}},"type":"object","title":"MoveFolderRequest"},"NativeExchangeRequest":{"properties":{"code":{"type":"string","title":"Code"},"verifier":{"type":"string","title":"Verifier"}},"type":"object","required":["code","verifier"],"title":"NativeExchangeRequest"},"NotificationSettings":{"properties":{"mode":{"type":"string","maxLength":12,"title":"Mode"}},"type":"object","required":["mode"],"title":"NotificationSettings"},"PairRequest":{"properties":{"client_hint":{"type":"string","maxLength":60,"title":"Client Hint","default":""},"share_token":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Share Token"}},"type":"object","title":"PairRequest"},"PatchFrontmatterRequest":{"properties":{"set":{"additionalProperties":true,"type":"object","title":"Set"},"unset":{"items":{"type":"string"},"type":"array","title":"Unset"}},"type":"object","title":"PatchFrontmatterRequest"},"Permission":{"type":"string","enum":["read","suggest","edit"],"title":"Permission"},"ProvenanceEntry":{"properties":{"block_id":{"type":"string","title":"Block Id"},"actor":{"$ref":"#/components/schemas/ActorOut"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"kept":{"type":"boolean","title":"Kept","default":false},"kept_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Kept At"},"kept_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kept By"},"revertable":{"type":"boolean","title":"Revertable","default":false},"inserted":{"type":"boolean","title":"Inserted","default":false},"sharer_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sharer User Id"}},"type":"object","required":["block_id","actor","created_at"],"title":"ProvenanceEntry"},"ProvenanceReport":{"properties":{"block_ids":{"items":{"type":"string"},"type":"array","title":"Block Ids"}},"type":"object","required":["block_ids"],"title":"ProvenanceReport"},"PublicAppendRequest":{"properties":{"markdown":{"type":"string","maxLength":20000,"title":"Markdown"},"base_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Base Version"}},"type":"object","required":["markdown"],"title":"PublicAppendRequest"},"PublicCommentRequest":{"properties":{"block_id":{"type":"string","maxLength":64,"minLength":1,"title":"Block Id"},"body":{"type":"string","maxLength":8000,"title":"Body"},"quote":{"type":"string","maxLength":1000,"title":"Quote","default":""}},"type":"object","required":["block_id","body"],"title":"PublicCommentRequest"},"PublicEditRequest":{"properties":{"markdown":{"type":"string","maxLength":10000,"title":"Markdown"},"base_version":{"type":"string","maxLength":64,"minLength":1,"title":"Base Version"},"base_markdown":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"title":"Base Markdown"}},"type":"object","required":["markdown","base_version"],"title":"PublicEditRequest"},"PublicReplyRequest":{"properties":{"body":{"type":"string","maxLength":8000,"title":"Body"}},"type":"object","required":["body"],"title":"PublicReplyRequest"},"RegisterRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"display_name":{"type":"string","title":"Display Name","default":""},"source":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Source"},"ask_name":{"type":"boolean","title":"Ask Name","default":false}},"type":"object","required":["email","password"],"title":"RegisterRequest"},"RenameAssetRequest":{"properties":{"filename":{"type":"string","title":"Filename"}},"type":"object","required":["filename"],"title":"RenameAssetRequest"},"RenameRequest":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"RenameRequest"},"ReplyRequest":{"properties":{"body":{"type":"string","title":"Body"},"client_key":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{8,64}$"},{"type":"null"}],"title":"Client Key"}},"type":"object","required":["body"],"title":"ReplyRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"}},"type":"object","required":["token","password"],"title":"ResetPasswordRequest"},"ReviewActor":{"properties":{"kind":{"type":"string","enum":["guest","agent","user"],"title":"Kind"},"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id"}},"type":"object","required":["kind","id"],"title":"ReviewActor"},"ReviewRequest":{"properties":{"block_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Block Id"},"actor":{"anyOf":[{"$ref":"#/components/schemas/ReviewActor"},{"type":"null"}]}},"type":"object","title":"ReviewRequest"},"RoleRequest":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"RoleRequest"},"SeedRequest":{"properties":{"markdown":{"type":"string","title":"Markdown"}},"type":"object","required":["markdown"],"title":"SeedRequest"},"SeenRequest":{"properties":{"feed":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feed"}},"type":"object","title":"SeenRequest"},"SetFrontmatterRequest":{"properties":{"frontmatter":{"additionalProperties":true,"type":"object","title":"Frontmatter"}},"type":"object","required":["frontmatter"],"title":"SetFrontmatterRequest"},"ShareSettings":{"properties":{"access":{"anyOf":[{"type":"string","enum":["view","comment","notes","edit"]},{"type":"null"}],"title":"Access"},"show_authors":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Authors"}},"type":"object","title":"ShareSettings"},"SharingToggle":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SharingToggle"},"SignInLinkRequest":{"properties":{"file_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"File Id"}},"type":"object","title":"SignInLinkRequest"},"TokenOut":{"properties":{"id":{"type":"string","title":"Id"},"agent_id":{"type":"string","title":"Agent Id"},"label":{"type":"string","title":"Label"},"token":{"type":"string","title":"Token"}},"type":"object","required":["id","agent_id","label","token"],"title":"TokenOut"},"UnsubscribeRequest":{"properties":{"token":{"type":"string","maxLength":400,"title":"Token"}},"type":"object","required":["token"],"title":"UnsubscribeRequest"},"UpdateProfileRequest":{"properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"share_nudge":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Share Nudge"}},"type":"object","title":"UpdateProfileRequest"},"UploadUrlRequest":{"properties":{"filename":{"type":"string","title":"Filename"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"doc_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doc Id"}},"type":"object","required":["filename"],"title":"UploadUrlRequest"},"UserOut":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"display_name":{"type":"string","title":"Display Name"},"color":{"type":"string","title":"Color"},"email_verified":{"type":"boolean","title":"Email Verified","default":true},"is_internal":{"type":"boolean","title":"Is Internal","default":false},"is_test":{"type":"boolean","title":"Is Test","default":false},"ask_name":{"type":"boolean","title":"Ask Name","default":false},"share_nudge":{"type":"boolean","title":"Share Nudge","default":false}},"type":"object","required":["id","email","display_name","color"],"title":"UserOut"},"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"},"VerifyEmailRequest":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"VerifyEmailRequest"},"WorkspaceOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"owner_user_id":{"type":"string","title":"Owner User Id"},"sharing_enabled":{"type":"boolean","title":"Sharing Enabled","default":true},"approval_mode":{"type":"string","title":"Approval Mode","default":"auto"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"last_activity":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity"},"doc_count":{"type":"integer","title":"Doc Count","default":0}},"type":"object","required":["id","name","role","owner_user_id"],"title":"WorkspaceOut"}}}}