{"openapi":"3.1.0","info":{"title":"Markdrop","version":"0.1.0"},"paths":{"/api/v1/trash":{"get":{"tags":["trash"],"summary":"List Trash","operationId":"list_trash_api_v1_trash_get","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trash/lookup/{slug}":{"get":{"tags":["trash"],"summary":"Lookup","operationId":"lookup_api_v1_trash_lookup__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trash/{slug}/restore":{"post":{"tags":["trash"],"summary":"Restore","operationId":"restore_api_v1_trash__slug__restore_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/trash/{slug}":{"delete":{"tags":["trash"],"summary":"Delete Forever","operationId":"delete_forever_api_v1_trash__slug__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/delete-preview":{"get":{"tags":["trash"],"summary":"Delete Preview","description":"What a delete of ``slug`` would take, for the delete dialog: kind, title,\nlink, and how many sub-pages sit below it (direct, and in all).","operationId":"delete_preview_api_v1_documents__slug__delete_preview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents":{"post":{"tags":["documents"],"summary":"Create Document","operationId":"create_document_api_v1_documents_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}":{"get":{"tags":["documents"],"summary":"Get Document","description":"One document, through access.can(read).\n\nScope: a tenant token's workspace wins over ``X-Markdrop-Workspace`` (set by\nthe edge on a workspace's own domain; unsigned, so it can only narrow).\n\nRenamed documents (Q4): a slug that is in some document's ``old_slugs``\nanswers — only to a caller who can read that document — ``200\n{\"moved\": true, \"slug\": <current>, \"url\", \"workspace_url\", \"folder_path\"}``\nwith header ``X-Markdrop-Moved: <current>``; the page then 307s to the\ncanonical address. Anyone else gets exactly the denial the current slug\nwould give them (404 / 401 + gate), never the new slug.","operationId":"get_document_api_v1_documents__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}},{"name":"x-markdrop-path","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["documents"],"summary":"Update Document","operationId":"update_document_api_v1_documents__slug__put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["documents"],"summary":"Delete Document","description":"A page with sub-pages needs ``?children=delete`` (they go too) or\n``?children=lift`` (they move up a level); without it, 409\n``{code: \"has_children\", count}``.","operationId":"delete_document_api_v1_documents__slug__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"children","in":"query","required":false,"schema":{"anyOf":[{"enum":["delete","lift"],"type":"string"},{"type":"null"}],"title":"Children"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/edit-secret/rotate":{"post":{"tags":["documents"],"summary":"Rotate Edit Secret","description":"A9: the owner replaces a leaked edit secret. The old one stops working\nat once; the new one is returned once.","operationId":"rotate_edit_secret_api_v1_documents__slug__edit_secret_rotate_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/claim":{"post":{"tags":["documents"],"summary":"Claim Document","description":"Attach an anonymous document to the logged-in account (proven via secret).","operationId":"claim_document_api_v1_documents__slug__claim_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":true,"schema":{"type":"string","title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/copy":{"post":{"tags":["documents"],"summary":"Copy Document","description":"Import a copy of a readable document into the caller's account.\n\nOwned by the caller with a fresh slug, no password and no expiry; born\nprivate unless the source is plainly public (Q3). 404/401/403 exactly as a\nread of the source would answer.","operationId":"copy_document_api_v1_documents__slug__copy_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCopyRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/slug":{"patch":{"tags":["documents"],"summary":"Change Slug","operationId":"change_slug_api_v1_documents__slug__slug_patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SlugChangeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/slug-check":{"get":{"tags":["documents"],"summary":"Check Slug","description":"Could the document at ``slug`` move to ``new_slug``? For whoever may\nrename it (``PATCH …/slug``'s rule): ``{slug, current, available, code\n(null | same | invalid | reserved | taken | folder), detail, url,\nmarkdrop_url, workspace_url, redirects_from}`` — the links it would have\n(its workspace's domain with folders and parent pages, when it is filed)\nand the old slugs that already redirect to it.","operationId":"check_slug_api_v1_documents__slug__slug_check_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"new_slug","in":"query","required":true,"schema":{"type":"string","maxLength":100,"title":"New Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/settings":{"patch":{"tags":["documents"],"summary":"Update Settings","description":"A document's password and expiry, without its content (the share\ndialog's \"More options\"). can(edit_settings): the owner or the edit\nsecret. Same transition as ``PUT /{slug}`` with those fields: a new\npassword narrows (epoch bump, bytes closed first, cache purge awaited);\nremoving it widens; an expiry books its purge. A past date is 422.","operationId":"update_settings_api_v1_documents__slug__settings_patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/editor":{"put":{"tags":["documents"],"summary":"Switch Editor","description":"Open a document in the block editor (``blocks``) or the classic one.\nThe Markdown is unchanged. can(edit_content); refused for encrypted\ndocuments and files.","operationId":"switch_editor_api_v1_documents__slug__editor_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditorSwitchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/children":{"get":{"tags":["documents"],"summary":"List Children","description":"The page's sub-pages this caller can read: ``[{slug, title, editor,\nupdated_at, has_children, access_inherit}]``, oldest first.","operationId":"list_children_api_v1_documents__slug__children_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/backlinks":{"get":{"tags":["documents"],"summary":"List Backlinks","description":"Pages that mention, embed or link to this one — only those this caller\ncan read: ``[{slug, title, editor, updated_at, kinds}]``.","operationId":"list_backlinks_api_v1_documents__slug__backlinks_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/mentionable":{"get":{"tags":["documents"],"summary":"Mentionable People","description":"Who the page's editor can @-mention (``@`` and ``/person`` in the page\neditor): ``{state, people: [{id, name, email, avatar_url, you}]}``, the\nmembers of the page's workspace, sorted by name. can(edit_content).\n\n``state`` is ``ok``; ``signin`` for an edit-link editor with no account;\n``personal`` for a page in no workspace; ``not_member`` for someone who\nedits it (a grant, the edit link) but isn't a member of its workspace.\nOnly ``ok`` lists anyone. ``email`` is filled in for a signed-in member on\nmarkdrop.in only, never on the workspace's own domain (as ``/auth/me``).","operationId":"mentionable_people_api_v1_documents__slug__mentionable_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/parent":{"put":{"tags":["documents"],"summary":"Move Page","description":"Put the page under another page (``parent``: its slug) or at the top\n(null). 409 ``{code: \"access_change\", readers_before, readers_after}`` when\nthat changes who can read it, unless ``confirm_access_change``.","operationId":"move_page_api_v1_documents__slug__parent_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ParentMoveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/assets":{"post":{"tags":["documents"],"summary":"Upload Page Asset","description":"An image for the page (PNG, JPEG, GIF or WebP, up to 10 MB):\n``{id, mime, size, width, height}``; write it as ``![alt](asset:<id>)``.\ncan(edit_content).","operationId":"upload_page_asset_api_v1_documents__slug__assets_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_page_asset_api_v1_documents__slug__assets_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/assets/urls":{"get":{"tags":["documents"],"summary":"Page Asset Urls","description":"Fresh links for the page images its content references (signed ones\nexpire with an artifact link's lifetime): ``{assets: {id: {url, expires_at}}}``.","operationId":"page_asset_urls_api_v1_documents__slug__assets_urls_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/embeds":{"post":{"tags":["documents"],"summary":"Resolve Page Embeds","description":"What this viewer may see of each embedded item (``{embeds: {slug:\nResolved}}``). The caller must be able to read the page; each item is then\nresolved with the item's own access, for this caller. Anything not \"ok\"\ncarries no title, excerpt or link.","operationId":"resolve_page_embeds_api_v1_documents__slug__embeds_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbedsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/lock":{"post":{"tags":["documents"],"summary":"Take Page Lock","description":"Take, renew or take over the page's edit lock (services/pages.acquire_lock).\n\nThe block editor takes it with its first real change (``intent=edit``) and renews it every\n30 s (``intent=heartbeat`` with ``edited``: it changed something since, ``hidden``: its tab is\nhidden, ``dirty``: it has unsaved changes). It holds until 2 minutes after the last heartbeat,\n2 minutes after the last change or 60 seconds after the tab was hidden, whichever is first.\nAnswers ``{holder: {name}, expires_at, mine: true, rev, timers}``; a heartbeat for a lock that\nlapsed or was taken over answers ``{mine: false, released: true, reason}`` (it never takes it\nback). 423 ``{code: \"locked\", holder, idle_s, dirty, releases_in_s, can_take_over, …}`` while\nsomeone else holds it. ``take_over=true``: the page's owner or a workspace admin takes it (403\n``take_over_forbidden`` for anyone else); the other editor is told and keeps its unsaved text.","operationId":"take_page_lock_api_v1_documents__slug__lock_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"intent","in":"query","required":false,"schema":{"anyOf":[{"enum":["edit","heartbeat"],"type":"string"},{"type":"null"}],"title":"Intent"}},{"name":"edited","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Edited"}},{"name":"hidden","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"}},{"name":"dirty","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dirty"}},{"name":"take_over","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Take Over"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["documents"],"summary":"Page Lock Status","description":"Who holds the page's edit lock, without taking it (can(edit_content)): ``{holder: null}``\nwhen it's free, else the holder, ``idle_s``, ``dirty``, ``releases_in_s``, ``mine`` and\n``can_take_over``; ``taken_over`` when the caller's own lock was taken in the last hour.","operationId":"page_lock_status_api_v1_documents__slug__lock_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["documents"],"summary":"Release Page Lock","operationId":"release_page_lock_api_v1_documents__slug__lock_delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/lock/keep":{"post":{"tags":["documents"],"summary":"Keep Unsaved Page Text","description":"Keep an editor's unsaved text that it can't save (its lock was taken over, or someone else\nholds the page now) as a version in the page's history, labelled as such. The page itself is\nunchanged. ``{version, kept}`` (``kept: false`` when the text is already the page or its newest\nversion).","operationId":"keep_unsaved_page_text_api_v1_documents__slug__lock_keep_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LockKeepRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/lock/release":{"post":{"tags":["documents"],"summary":"Release Page Lock On Close","description":"``DELETE …/lock`` for a page that is closing. The browser sends it with\n``navigator.sendBeacon``: a keepalive DELETE needs a CORS preflight that\nbrowsers don't make while a page unloads, and a beacon can't carry an\nAuthorization header, so the text/plain body says who is leaving:\n\n* the ``release_token`` the lock's answers carry (services/tickets.py): it\n  lets go of that person's own lock on this one page and nothing else, on\n  markdrop.in and on a workspace's own domain alike (the editor sends this);\n* or, from editors loaded before release tokens, the session token itself: the\n  markdrop.in session, or a workspace domain's tenant token sent from that\n  domain (its Origin must be the token's host, the host must still be live,\n  and the page must be in the token's workspace — the same three checks as\n  any tenant request).\n\nAnything else (no token, an API token, a token for another page, someone\nelse's lock) is ignored; the answer is always 204.","operationId":"release_page_lock_on_close_api_v1_documents__slug__lock_release_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/report":{"post":{"tags":["documents"],"summary":"Report Document","description":"Flag a document for abuse (public, rate-limited). Always 202; stored\nonly when the slug exists.","operationId":"report_document_api_v1_documents__slug__report_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages":{"post":{"tags":["pages"],"summary":"Create Page","description":"A new page (``editor: \"blocks\"``). ``template`` fills it from a built-in\ntemplate (``{{date}}`` / ``{{title}}`` filled in); ``content`` gives its\nMarkdown instead. ``workspace`` (member+) and ``folder`` file it there;\n``parent`` (the slug of a page you can edit) puts it inside that page, in\nits workspace and folder, inheriting its access. ``slug`` gives it its link\n(publish's custom-slug rules; 409 when taken, nothing is created). Unless it\nhas a cover (or ``auto_cover`` is false, or its workspace turned Auto covers\noff), a cover is picked for it in the background: ``cover_pending``.","operationId":"create_page_api_v1_pages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages/{slug}/cover":{"get":{"tags":["pages"],"summary":"Cover Status","description":"The page's cover now, for an editor waiting on an auto cover: ``{cover, cover_auto,\ncover_pending, rev}`` (anyone who can read it).","operationId":"cover_status_api_v1_pages__slug__cover_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/pages/{slug}/cover/suggest":{"post":{"tags":["pages"],"summary":"Cover Suggest","description":"A cover for the page, picked like an auto cover, not written (the cover picker's \"Pick for\nme\"): ``{cover: \"gallery:<id>\", how}``. Editors only.","operationId":"cover_suggest_api_v1_pages__slug__cover_suggest_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/page-templates":{"get":{"tags":["pages"],"summary":"List Templates","description":"The built-in templates: ``[{id, name, description, icon, category, content}]``.","operationId":"list_templates_api_v1_page_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/documents/{slug}/save-as-template":{"post":{"tags":["pages"],"summary":"Save As Template","description":"Save a copy of the page (and, with ``include_subpages``, the sub-pages\nyou can open) as a template: the workspace's (members and up) or your own.\nIts images are copied with it.","operationId":"save_as_template_api_v1_documents__slug__save_as_template_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateSave"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/page-templates/all":{"get":{"tags":["pages"],"summary":"List All Templates","description":"The New page gallery: ``{builtin, workspace, personal, workspace_id,\nworkspace_name, workspace_role, can_save_workspace, can_reorder_workspace,\nfolder}``. ``workspace`` lists that workspace's templates when you're a\nmember (not a viewer) of it; ``folder`` (an id or path of it) adds\n``folder: {id, name, default_template, can_set_default}``. ``parent`` (a\npage's slug: Add a sub-page) reads both from that page instead, which you\nmust be able to read. On a workspace's own domain ``parent`` is required,\nand the gallery offers the built-ins and that workspace's templates.","operationId":"list_all_templates_api_v1_page_templates_all_get","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder"}},{"name":"parent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/page-templates/{template_id}":{"get":{"tags":["pages"],"summary":"Get Template","description":"One workspace or personal template with its Markdown and image links (the preview). On a\nworkspace's own domain: that workspace's templates only.","operationId":"get_template_api_v1_page_templates__template_id__get","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["pages"],"summary":"Update Template","description":"Rename it, or change its description or icon (an empty icon clears it).\nWorkspace templates: its admins and whoever saved it.","operationId":"update_template_api_v1_page_templates__template_id__patch","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["pages"],"summary":"Delete Template","description":"Delete a template and its sub-pages. Pages made from it stay as they are.","operationId":"delete_template_api_v1_page_templates__template_id__delete","parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/page-templates/order":{"put":{"tags":["pages"],"summary":"Reorder Templates","description":"Reorder a workspace's templates (admins) or your personal ones.","operationId":"reorder_templates_api_v1_page_templates_order_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateOrder"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/template":{"put":{"tags":["pages"],"summary":"Set Page Template","description":"Turn this page itself into a template (``true``: it leaves every list\nand search and shows in the New page gallery; its sub-pages come with it)\nor back into a page (``false``). Pages made from it never change.","operationId":"set_page_template_api_v1_documents__slug__template_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateToggle"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/default-template":{"put":{"tags":["pages"],"summary":"Set Folder Default Template","description":"What New page in this folder starts from (admins). The person making a\npage can still choose blank or another template.","operationId":"set_folder_default_template_api_v1_workspaces__workspace_id__folders__folder_id__default_template_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderDefaultTemplate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/status":{"get":{"tags":["page-ai"],"summary":"Status","description":"What the UI may offer: ``{enabled, reason, message, can_write, can_ask, vision, actions, tones,\nlanguages}``. ``reason``: signin | encrypted | off | not_configured | workspace_off | blocked |\ndaily | monthly.","operationId":"status_api_v1_ai_pages_status_get","parameters":[{"name":"slug","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Slug"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Workspace"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/notes":{"post":{"tags":["page-ai"],"summary":"Notes","operationId":"notes_api_v1_ai_pages_notes_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotesBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/transform":{"post":{"tags":["page-ai"],"summary":"Transform","operationId":"transform_api_v1_ai_pages__slug__transform_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransformBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/write":{"post":{"tags":["page-ai"],"summary":"Write","operationId":"write_api_v1_ai_pages__slug__write_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/action-items":{"post":{"tags":["page-ai"],"summary":"Action Items","operationId":"action_items_api_v1_ai_pages__slug__action_items_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ActionItemsBody"},{"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"}}}}}}},"/api/v1/ai/pages/{slug}/summary":{"post":{"tags":["page-ai"],"summary":"Summary","operationId":"summary_api_v1_ai_pages__slug__summary_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/meta":{"post":{"tags":["page-ai"],"summary":"Meta","operationId":"meta_api_v1_ai_pages__slug__meta_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/translate":{"post":{"tags":["page-ai"],"summary":"Translate","operationId":"translate_api_v1_ai_pages__slug__translate_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/alt-text":{"post":{"tags":["page-ai"],"summary":"Alt Text","operationId":"alt_text_api_v1_ai_pages__slug__alt_text_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AltTextBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/pages/{slug}/ask":{"post":{"tags":["page-ai"],"summary":"Ask","operationId":"ask_api_v1_ai_pages__slug__ask_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__pages_ai__AskBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs-sites/{site_id}/pages/{page_id}/ai/transform":{"post":{"tags":["page-ai"],"summary":"Guide Transform","operationId":"guide_transform_api_v1_docs_sites__site_id__pages__page_id__ai_transform_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransformBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs-sites/{site_id}/pages/{page_id}/ai/write":{"post":{"tags":["page-ai"],"summary":"Guide Write","operationId":"guide_write_api_v1_docs_sites__site_id__pages__page_id__ai_write_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WriteBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs-sites/{site_id}/pages/{page_id}/ai/action-items":{"post":{"tags":["page-ai"],"summary":"Guide Action Items","operationId":"guide_action_items_api_v1_docs_sites__site_id__pages__page_id__ai_action_items_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ActionItemsBody"},{"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"}}}}}}},"/api/v1/docs-sites/{site_id}/pages/{page_id}/ai/summary":{"post":{"tags":["page-ai"],"summary":"Guide Summary","operationId":"guide_summary_api_v1_docs_sites__site_id__pages__page_id__ai_summary_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs-sites/{site_id}/pages/{page_id}/ai/meta":{"post":{"tags":["page-ai"],"summary":"Guide Meta","operationId":"guide_meta_api_v1_docs_sites__site_id__pages__page_id__ai_meta_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs-sites/{site_id}/pages/{page_id}/ai/alt-text":{"post":{"tags":["page-ai"],"summary":"Guide Alt Text","operationId":"guide_alt_text_api_v1_docs_sites__site_id__pages__page_id__ai_alt_text_post","parameters":[{"name":"site_id","in":"path","required":true,"schema":{"type":"string","title":"Site Id"}},{"name":"page_id","in":"path","required":true,"schema":{"type":"string","title":"Page Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AltTextBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/versions":{"get":{"tags":["page history"],"summary":"List Versions","description":"``{versions: [{n, ts, author: {kind, id, name, client, label, picture},\ntitle, icon, bytes, restored_from, current}], next_cursor, available,\nreason}``, newest first; pass ``next_cursor`` back as ``cursor`` for older\nones. ``available: false`` (``reason: \"encrypted\"``) for an encrypted document.","operationId":"list_versions_api_v1_documents__slug__versions_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/versions/{n}":{"get":{"tags":["page history"],"summary":"Get Version","description":"One version: its Markdown and image links, plus ``current_doc`` (the\npage as it is now) to compare with.","operationId":"get_version_api_v1_documents__slug__versions__n__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/versions/{n}/restore":{"post":{"tags":["page history"],"summary":"Restore Version","description":"Make version ``n`` the page again, as a new version (the page as it was\nis kept first, so this can be undone). 423 ``{code: \"locked\", holder}``\nwhile someone else has the page open in the editor.","operationId":"restore_version_api_v1_documents__slug__versions__n__restore_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"n","in":"path","required":true,"schema":{"type":"integer","title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/signoffs":{"get":{"tags":["pages"],"summary":"List Signoffs","description":"The page's sign-off blocks for this viewer: ``{signoffs: [{block, label,\noptions, lock, person, option, tone, signed_at, signed_by, can_sign,\ncan_remove, history}]}``. Names (person, signer, history) only for people\ninside the page's circle, like ``:person`` mentions. The decision comes from\nthe server, never from the Markdown.","operationId":"list_signoffs_api_v1_documents__slug__signoffs_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/signoffs/{block}":{"post":{"tags":["pages"],"summary":"Sign Off","description":"The person the block names chooses an option (``{option: null}``\nclears it). 403 for anyone else, 404 for a block that isn't on the page, 422\nfor an option the block doesn't offer, 409 ``open_comments`` while comment\nthreads are open on the page unless ``acknowledge_open_comments``. Returns\nthe block as they see it.","operationId":"sign_off_api_v1_documents__slug__signoffs__block__post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"block","in":"path","required":true,"schema":{"type":"string","title":"Block"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/insights":{"get":{"tags":["comments"],"summary":"Comment analytics for an item","operationId":"insights_api_v1_documents__slug__comments_insights_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"enum":["7d","30d","90d","all"],"type":"string","default":"30d","title":"Range"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/export":{"get":{"tags":["comments"],"summary":"An item's comment threads for printing","operationId":"export_threads_api_v1_documents__slug__comments_export_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"status","in":"query","required":false,"schema":{"enum":["open","all"],"type":"string","default":"all","title":"Status"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/comments/digest/settings":{"get":{"tags":["comments"],"summary":"Your daily comments digest setting","operationId":"digest_settings_api_v1_comments_digest_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["comments"],"summary":"Turn the daily comments digest on or off","operationId":"set_digest_settings_api_v1_comments_digest_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments":{"get":{"tags":["comments"],"summary":"List Comments","operationId":"list_comments_api_v1_documents__slug__comments_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"status","in":"query","required":false,"schema":{"enum":["open","resolved","all"],"type":"string","default":"all","title":"Status"}},{"name":"mine","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mine"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["comments"],"summary":"Create Comment","operationId":"create_comment_api_v1_documents__slug__comments_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/people":{"get":{"tags":["comments"],"summary":"Comment People","operationId":"comment_people_api_v1_documents__slug__comments_people_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/settings":{"put":{"tags":["comments"],"summary":"Comment Settings","operationId":"comment_settings_api_v1_documents__slug__comments_settings_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentSettingsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}":{"get":{"tags":["comments"],"summary":"Get Comment Thread","operationId":"get_comment_thread_api_v1_documents__slug__comments__thread_id__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/replies":{"post":{"tags":["comments"],"summary":"Reply Comment","operationId":"reply_comment_api_v1_documents__slug__comments__thread_id__replies_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/messages/{message_id}":{"patch":{"tags":["comments"],"summary":"Edit Comment","operationId":"edit_comment_api_v1_documents__slug__comments__thread_id__messages__message_id__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Message Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["comments"],"summary":"Delete Comment","operationId":"delete_comment_api_v1_documents__slug__comments__thread_id__messages__message_id__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Message Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/messages/{message_id}/reactions":{"post":{"tags":["comments"],"summary":"React Comment","operationId":"react_comment_api_v1_documents__slug__comments__thread_id__messages__message_id__reactions_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"message_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Message Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReactionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/resolve":{"post":{"tags":["comments"],"summary":"Resolve Comment","operationId":"resolve_comment_api_v1_documents__slug__comments__thread_id__resolve_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/reopen":{"post":{"tags":["comments"],"summary":"Reopen Comment","operationId":"reopen_comment_api_v1_documents__slug__comments__thread_id__reopen_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/assignee":{"put":{"tags":["comments"],"summary":"Assign Comment","operationId":"assign_comment_api_v1_documents__slug__comments__thread_id__assignee_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__comments__AssigneeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/comments/mine":{"get":{"tags":["comments"],"summary":"My Comments","operationId":"my_comments_api_v1_comments_mine_get","parameters":[{"name":"view","in":"query","required":false,"schema":{"enum":["assigned","waiting","mentions"],"type":"string","default":"waiting","title":"View"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/ai/status":{"get":{"tags":["comments"],"summary":"Comments Ai Status","description":"``{\"enabled\", \"reason\", \"message\"}``: whether comment AI can run for you here now (nothing counted).","operationId":"comments_ai_status_api_v1_documents__slug__comments_ai_status_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/ai/summary":{"post":{"tags":["comments"],"summary":"Comments Ai Summary","description":"Summarize discussion: ``{\"decided\", \"open\", \"waiting\", \"counts\", \"generated_at\", \"cached\", \"empty\"}``;\neach line names its threads. Cached until the comments change (``refresh`` asks again).","operationId":"comments_ai_summary_api_v1_documents__slug__comments_ai_summary_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SummaryIn"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/ai/tone":{"post":{"tags":["comments"],"summary":"Comments Ai Tone","description":"A draft comment's tone and clarity: ``{\"ok\", \"issues\", \"rewrite\", \"ai\"}``. Only drafts that look harsh\nreach AI unless ``force`` (the composer's Check tone).","operationId":"comments_ai_tone_api_v1_documents__slug__comments_ai_tone_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToneIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/attachments":{"post":{"tags":["comments"],"summary":"Comment Attachment Upload","description":"A file for a comment you are writing (images, PDF, Office, zip, text; up to 10 MB):\n``{id, name, mime, size, width?, height?, url}``. Send its id in the comment's ``attachments``.","operationId":"comment_attachment_upload_api_v1_documents__slug__comments_attachments_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_comment_attachment_upload_api_v1_documents__slug__comments_attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/attachments/urls":{"post":{"tags":["comments"],"summary":"Comment Attachment Urls","description":"Signed links (expiring) for files in this item's comments, for someone who can see its comments:\n``{\"attachments\": {id: {url, expires_at, name, mime, size}}}``. Files of deleted comments aren't served.","operationId":"comment_attachment_urls_api_v1_documents__slug__comments_attachments_urls_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UrlsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/attachments/{attachment_id}":{"delete":{"tags":["comments"],"summary":"Comment Attachment Discard","description":"Remove a file you uploaded from a draft (before it is posted).","operationId":"comment_attachment_discard_api_v1_documents__slug__comments_attachments__attachment_id__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Attachment Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/suggestion":{"get":{"tags":["comments"],"summary":"Get Suggestion","description":"The thread's suggested edit for you: ``{suggestion, applies, reason, holder, offer, before, after, can}``.\n``reason``: why accepting wouldn't apply it now (``stale``, ``unappliable``, ``changed``, ``locked``).","operationId":"get_suggestion_api_v1_documents__slug__comments__thread_id__suggestion_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["comments"],"summary":"Put Suggestion","description":"Suggest replacement text for the thread's quote (replaces your own open suggestion). ThreadOut.","operationId":"put_suggestion_api_v1_documents__slug__comments__thread_id__suggestion_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuggestionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["comments"],"summary":"Delete Suggestion","description":"Withdraw your suggestion, or (an editor) reject it. ThreadOut.","operationId":"delete_suggestion_api_v1_documents__slug__comments__thread_id__suggestion_delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/suggestion/accept":{"post":{"tags":["comments"],"summary":"Accept Suggestion","description":"Accept the suggested edit (people who can edit). 200 ``{applied: true, version_id, rev, thread}``: the\npage now says it (a version in its history, the thread resolved unless ``resolve`` is false). 202\n``{applied: false, offered: true, holder}``: someone else is editing the page, so it waits for them.\n409 ``suggestion_stale`` / ``suggestion_unappliable``; 423 locked page or signed-off section.","operationId":"accept_suggestion_api_v1_documents__slug__comments__thread_id__suggestion_accept_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AcceptIn"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/ai/apply":{"post":{"tags":["comments"],"summary":"Ai Apply","description":"Apply with AI: replacement text for the thread's quote drafted from the discussion,\n``{\"text\", \"note\", \"quote\"}``. Nothing is saved: propose it with PUT …/suggestion (``ai: true``).","operationId":"ai_apply_api_v1_documents__slug__comments__thread_id__ai_apply_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ApplyIn"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/comments/{thread_id}/ai/ask":{"post":{"tags":["comments"],"summary":"Ai Ask","description":"Ask Markdrop AI in the thread: your question (\"@AI …\") and the answer are posted as replies everyone in\nthe thread sees\n(``{\"thread\", \"message\", \"answer\", \"sources\"}``). Grounded in the page, the thread and workspace items at\nleast as open as the page. Writing ``@AI`` in a comment does the same.","operationId":"ai_ask_api_v1_documents__slug__comments__thread_id__ai_ask_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/export":{"get":{"tags":["documents"],"summary":"Export Page","description":"The page as a file to download (see the module docstring).","operationId":"export_page_api_v1_documents__slug__export_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"format","in":"query","required":false,"schema":{"type":"string","pattern":"^(md|html|zip|docx)$","default":"md","title":"Format"}},{"name":"subpages","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Subpages"}},{"name":"comments","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(none|footnotes|margin)$"},{"type":"null"}],"description":"Include the comment threads: footnotes or margin (Word), an appendix in Markdown. Only for people who can see them.","title":"Comments"},"description":"Include the comment threads: footnotes or margin (Word), an appendix in Markdown. Only for people who can see them."},{"name":"comment_status","in":"query","required":false,"schema":{"type":"string","pattern":"^(open|all)$","default":"all","title":"Comment Status"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/export/download":{"get":{"tags":["documents"],"summary":"Export Download","description":"An export link from ``export_page`` (MCP), for the user it was made for. A browser that\nopens a link which no longer works gets a short page saying so (an API client, the JSON).","operationId":"export_download_api_v1_documents__slug__export_download_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"token","in":"query","required":true,"schema":{"type":"string","maxLength":2000,"title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/bookmarks/preview":{"post":{"tags":["pages"],"summary":"Preview","description":"``{url, title, description, site_name, favicon, image, fetched}`` for a\nbookmark block. Signed in only. 422 for an address that may not be fetched\n(private networks, other schemes or ports, credentials in the URL).","operationId":"preview_api_v1_bookmarks_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/web-embeds/providers":{"get":{"tags":["pages"],"summary":"Web Embed Providers","description":"The providers a page may embed: ``[{id, name, example}]``.","operationId":"web_embed_providers_api_v1_web_embeds_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/web-embeds/resolve":{"get":{"tags":["pages"],"summary":"Resolve Web Embed","description":"``{provider, name, embed_url, aspect_ratio, url}`` for an allowlisted\nlink (YouTube, Vimeo, Loom, Figma, Google Maps embed links, CodePen); 422\nfor anything else. Computed from the link alone: nothing is fetched.","operationId":"resolve_web_embed_api_v1_web_embeds_resolve_get","parameters":[{"name":"url","in":"query","required":false,"schema":{"type":"string","default":"","title":"Url"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/link-preview":{"post":{"tags":["pages"],"summary":"Link Preview","description":"The same as ``POST /api/v1/bookmarks/preview`` (one limit budget each).","operationId":"link_preview_api_v1_link_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/status":{"get":{"tags":["artifacts"],"summary":"Artifact Status","description":"Feature gate + quota for the UI. Safe to call when nothing is configured.","operationId":"artifact_status_api_v1_artifacts_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactStatusResponse"}}}}}}},"/api/v1/artifacts/upload-url":{"post":{"tags":["artifacts"],"summary":"Create Upload Url","operationId":"create_upload_url_api_v1_artifacts_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactUploadUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactUploadUrlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts":{"post":{"tags":["artifacts"],"summary":"Confirm Artifact","description":"Verify the uploaded blob, then publish it at a slug.","operationId":"confirm_artifact_api_v1_artifacts_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/paste":{"post":{"tags":["artifacts"],"summary":"Paste Html","description":"Publish pasted HTML directly — the most-requested flow.\n\nSmall enough that a presigned round trip would be pointless; anything larger\nshould go through the file-upload path.","operationId":"paste_html_api_v1_artifacts_paste_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactPasteRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/{slug}":{"patch":{"tags":["artifacts"],"summary":"Update Artifact Settings","description":"Edit an artifact's title (owner, editors, members on non-private files)\nor its password / expiry (owner only, A3).\n\nSeparate from the markdown update route because that one requires a\n`content` body, which an artifact doesn't have. Publicity, the access epoch,\ncache purges and live events follow from services/transitions.py.","operationId":"update_artifact_settings_api_v1_artifacts__slug__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactSettingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/{slug}/captions":{"put":{"tags":["artifacts"],"summary":"Set Video Captions","description":"Add or replace a video's captions (a .vtt or .srt file's text): the player shows them as\nsubtitles, and search and Ask read them by minute. can(edit_content) on the file.","operationId":"set_video_captions_api_v1_artifacts__slug__captions_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["artifacts"],"summary":"Remove Video Captions","description":"Remove a video's captions.","operationId":"remove_video_captions_api_v1_artifacts__slug__captions_delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/artifacts/{slug}/file":{"put":{"tags":["artifacts"],"summary":"Replace Artifact File","description":"Swap the file behind an artifact, keeping its URL and settings.\n\nSingle file → single file: can(replace_file) — the owner, editor grantees\nand workspace members on non-private files (Q6); counted against the\n**owner's** quota, and a non-owner whose upload would need the owner's old\nversions dropped gets 507 instead. Either side a zipped site:\ncan(replace_bundle) — owner only.\n\nSame verify-then-commit shape as creation: the object is HEADed for its real\nsize and type before anything is written, and the previous object (or bundle\nprefix) is freed only once the swap has succeeded.","operationId":"replace_artifact_file_api_v1_artifacts__slug__file_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactReplaceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArtifactResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/uploads":{"post":{"tags":["files"],"summary":"Create Upload","operationId":"create_upload_api_v1_files_uploads_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/uploads/{upload_id}/urls":{"post":{"tags":["files"],"summary":"Refresh Upload Urls","operationId":"refresh_upload_urls_api_v1_files_uploads__upload_id__urls_post","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UploadUrlsRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadSessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/uploads/{upload_id}":{"get":{"tags":["files"],"summary":"Upload Status","operationId":"upload_status_api_v1_files_uploads__upload_id__get","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["files"],"summary":"Cancel Upload","operationId":"cancel_upload_api_v1_files_uploads__upload_id__delete","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/uploads/{upload_id}/complete":{"post":{"tags":["files"],"summary":"Complete Upload","description":"200 with the result, or 202 ``{state: \"verifying\", upload_id}`` when the\nsha256 check outlasts the wait: poll ``GET /uploads/{id}`` until ``state``\nis \"done\" (``result``) or \"failed\" (``error``). Calling it again on a\nfinished upload returns the same result.","operationId":"complete_upload_api_v1_files_uploads__upload_id__complete_post","parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/UploadCompleteRequest"},{"type":"null"}],"title":"Data"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/{slug}":{"get":{"tags":["files"],"summary":"File Info","operationId":"file_info_api_v1_files__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/{slug}/versions":{"get":{"tags":["files"],"summary":"File Versions","operationId":"file_versions_api_v1_files__slug__versions_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileVersionsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/{slug}/versions/{version}/restore":{"post":{"tags":["files"],"summary":"Restore File Version","operationId":"restore_file_version_api_v1_files__slug__versions__version__restore_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/files/{slug}/versions/{version}":{"delete":{"tags":["files"],"summary":"Delete File Version","description":"Delete an old version to free its space. Owner only: editors may restore\na version but not destroy one, and the space is the owner's. Never the\ncurrent version (409).","operationId":"delete_file_version_api_v1_files__slug__versions__version__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","title":"Version"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google/diagram.png":{"get":{"tags":["google-docs"],"summary":"Diagram Image","description":"Render an ASCII/box-drawing diagram to PNG.\n\nPublic and unauthenticated by design: Google's markdown→Doc converter fetches\nthis URL anonymously while importing an exported document. The diagram text is\ncarried (compressed) in ``d`` — nothing is read from the database.","operationId":"diagram_image_api_v1_google_diagram_png_get","parameters":[{"name":"d","in":"query","required":true,"schema":{"type":"string","description":"encoded diagram","title":"D"},"description":"encoded diagram"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google/mermaid.png":{"get":{"tags":["google-docs"],"summary":"Mermaid Image","description":"Render a Mermaid diagram to PNG (public — Google's converter fetches it).\n\nDelegates to Kroki server-side; on any failure we fall back to rendering the\nMermaid source as a monospace image so the export never silently loses it.","operationId":"mermaid_image_api_v1_google_mermaid_png_get","parameters":[{"name":"d","in":"query","required":true,"schema":{"type":"string","description":"encoded mermaid source","title":"D"},"description":"encoded mermaid source"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google/math.png":{"get":{"tags":["google-docs"],"summary":"Math Image","description":"Render a LaTeX expression to PNG (public — Google's converter fetches it).","operationId":"math_image_api_v1_google_math_png_get","parameters":[{"name":"d","in":"query","required":true,"schema":{"type":"string","description":"encoded LaTeX","title":"D"},"description":"encoded LaTeX"},{"name":"display","in":"query","required":false,"schema":{"type":"integer","description":"1 for block/display math, 0 for inline","default":0,"title":"Display"},"description":"1 for block/display math, 0 for inline"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google/connect":{"get":{"tags":["google-docs"],"summary":"Connect","description":"Return the Google consent URL. The frontend redirects the browser to it.\n\nThe logged-in user id is signed into the OAuth ``state`` so the callback can\nattribute the returned refresh token without an Authorization header.","operationId":"connect_api_v1_google_connect_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleConnectResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google/callback":{"get":{"tags":["google-docs"],"summary":"Callback","description":"Handle Google's redirect: store the encrypted refresh token on the user.","operationId":"callback_api_v1_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/google/status":{"get":{"tags":["google-docs"],"summary":"Status","operationId":"status_api_v1_google_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleStatusResponse"}}}}}}},"/api/v1/google/disconnect":{"post":{"tags":["google-docs"],"summary":"Disconnect","description":"Revoke the grant at Google, then forget the stored token.\n\nWe revoke on Google's side first so the user is fully disconnected (the app\nloses all Drive access), then clear locally regardless of whether the revoke\ncall succeeded — a dead/network-failed token must not leave the account stuck\nin a \"connected\" state.","operationId":"disconnect_api_v1_google_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleStatusResponse"}}}}}}},"/api/v1/google/documents/{doc_id}/export":{"post":{"tags":["google-docs"],"summary":"Export Document","description":"Create the linked Google Doc, or refresh it from the current content.\n\nFirst call creates a Doc (Phase 1). Subsequent calls update the same Doc\nin place (Phase 2). Markdown stays the source of truth.","operationId":"export_document_api_v1_google_documents__doc_id__export_post","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/GoogleExportResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["auth"],"summary":"Get Me","operationId":"get_me_api_v1_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}}},"patch":{"tags":["auth"],"summary":"Update Me","description":"Set the display name (used for passwordless email accounts with no name).","operationId":"update_me_api_v1_auth_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NameUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","operationId":"logout_api_v1_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/google/login":{"get":{"tags":["auth"],"summary":"Google Login","description":"Redirect the browser to Google's consent screen.","operationId":"google_login_api_v1_auth_google_login_get","parameters":[{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/google/callback":{"get":{"tags":["auth"],"summary":"Google Callback","description":"Handle Google's redirect: exchange code, upsert user, issue our session.","operationId":"google_callback_api_v1_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/email/request":{"post":{"tags":["auth"],"summary":"Email Request","description":"Email the caller a login code + magic link. Always returns {status: sent}.","operationId":"email_request_api_v1_auth_email_request_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/email/verify":{"post":{"tags":["auth"],"summary":"Email Verify Otp","description":"Verify a 6-digit OTP and return a session token (used by the frontend form).","operationId":"email_verify_otp_api_v1_auth_email_verify_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["auth"],"summary":"Email Verify Link","description":"Consume a magic link and redirect to the frontend with a session token.","operationId":"email_verify_link_api_v1_auth_email_verify_get","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","title":"Token"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/unsubscribe":{"get":{"tags":["auth"],"summary":"Unsubscribe","description":"One-click opt-out of bulk email. Public by design.\n\nMail clients hit this unauthenticated via List-Unsubscribe, so authority\ncomes from the signed token (HMAC(AUTH_SECRET, \"unsub:{uid}\")) rather than a\nsession. It only ever stops mail, so there is nothing to escalate even if a\nlink leaks. Transactional mail (sign-in codes, invitations) is unaffected:\nthose are never bulk sends.\n\nAlso served at /api/v1/unsubscribe (``unsubscribe_alias_router`` below):\ncampaigns sent before the URL fix link there.","operationId":"unsubscribe_api_v1_auth_unsubscribe_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["auth"],"summary":"Unsubscribe Post","description":"RFC 8058 one-click: some clients POST rather than GET.","operationId":"unsubscribe_post_api_v1_auth_unsubscribe_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents":{"get":{"tags":["me"],"summary":"List My Documents","operationId":"list_my_documents_api_v1_me_documents_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"per_page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"title":"Per Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(markdown|document|artifact)$"},{"type":"null"}],"title":"Kind"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(document|pdf|video|image|sheet|slides|word|html|other)$"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyDocListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics":{"get":{"tags":["me"],"summary":"Document Analytics","description":"Aggregated analytics: can(view_stats) — the owner only. A reader who\nisn't the owner gets 403, anyone else the read denial (404).","operationId":"document_analytics_api_v1_me_documents__slug__analytics_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|all)$","default":"30d","title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/contacts":{"get":{"tags":["me"],"summary":"List Contacts","description":"Up to 50 people to suggest in the share dialog.\n\nOnly two sources, both people the caller already has a relationship with:\naddresses they have granted document access to themselves, and members of\nworkspaces they belong to (whom any member can already list). It is never a\nsearch over all users -- that would turn the share box into an oracle for\n\"does this address have an account here\". For the same reason a grant-only\ncontact carries no name: the share list never showed one either.\n\n`q` narrows by case-insensitive substring of email or name. Most recently\nshared-with first, then co-members by name. The caller is never included.","operationId":"list_contacts_api_v1_me_contacts_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/tokens":{"get":{"tags":["me"],"summary":"List Api Tokens","operationId":"list_api_tokens_api_v1_me_tokens_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTokenListResponse"}}}}}},"post":{"tags":["me"],"summary":"Create Api Token","description":"Create a personal API token (raw value returned once).","operationId":"create_api_token_api_v1_me_tokens_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTokenCreateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/tokens/{token_id}":{"delete":{"tags":["me"],"summary":"Revoke Api Token","operationId":"revoke_api_token_api_v1_me_tokens__token_id__delete","parameters":[{"name":"token_id","in":"path","required":true,"schema":{"type":"string","title":"Token Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/overview":{"get":{"tags":["creator-analytics"],"summary":"Analytics Overview","operationId":"analytics_overview_api_v1_me_documents__slug__analytics_overview_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/media":{"get":{"tags":["creator-analytics"],"summary":"Analytics Media","operationId":"analytics_media_api_v1_me_documents__slug__analytics_media_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"ver","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100000,"minimum":1},{"type":"null"}],"title":"Ver"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/frame":{"get":{"tags":["creator-analytics"],"summary":"Analytics Frame","description":"A frame of the owner's video at ``t`` seconds (rounded), as a JPEG.\n404 when it isn't a video, or frames can't be made here.","operationId":"analytics_frame_api_v1_me_documents__slug__analytics_frame_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"t","in":"query","required":true,"schema":{"type":"number","maximum":86400,"minimum":0,"title":"T"}},{"name":"ver","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100000,"minimum":1},{"type":"null"}],"title":"Ver"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/content":{"get":{"tags":["creator-analytics"],"summary":"Analytics Content","operationId":"analytics_content_api_v1_me_documents__slug__analytics_content_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/pages":{"get":{"tags":["creator-analytics"],"summary":"Analytics Pages","operationId":"analytics_pages_api_v1_me_documents__slug__analytics_pages_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/audience":{"get":{"tags":["creator-analytics"],"summary":"Analytics Audience","operationId":"analytics_audience_api_v1_me_documents__slug__analytics_audience_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/versions":{"get":{"tags":["creator-analytics"],"summary":"Analytics Versions","operationId":"analytics_versions_api_v1_me_documents__slug__analytics_versions_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics.csv":{"get":{"tags":["creator-analytics"],"summary":"Analytics Csv","operationId":"analytics_csv_api_v1_me_documents__slug__analytics_csv_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics":{"get":{"tags":["creator-analytics"],"summary":"Analytics Home","operationId":"analytics_home_api_v1_me_analytics_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics/live":{"get":{"tags":["creator-analytics"],"summary":"Analytics Live","operationId":"analytics_live_api_v1_me_analytics_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/me/analytics.csv":{"get":{"tags":["creator-analytics"],"summary":"Analytics Home Csv","operationId":"analytics_home_csv_api_v1_me_analytics_csv_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/viewers":{"get":{"tags":["creator-analytics"],"summary":"Analytics Viewers","description":"Every view in the range, newest first: who (a signed-in viewer's name and email, or an\nanonymous \"Visitor\"), when, active time, how much they got through, where from and on what;\nplus totals and breakdowns (country, city, device, OS, browser, source). ``own=1`` includes\nthe owner's own views (hidden by default). A viewer of a workspace item gets ``totals`` only.","operationId":"analytics_viewers_api_v1_me_documents__slug__analytics_viewers_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"who","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|signed_in|anonymous)$","default":"all","title":"Who"}},{"name":"completion","in":"query","required":false,"schema":{"type":"string","pattern":"^(any|low|mid|high|done)$","default":"any","title":"Completion"}},{"name":"own","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Own"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":1,"title":"Internal"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country"}},{"name":"device","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Device"}},{"name":"os","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Os"}},{"name":"browser","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Browser"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Source"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"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"}}}}}}},"/api/v1/me/documents/{slug}/analytics/viewers.csv":{"get":{"tags":["creator-analytics"],"summary":"Analytics Viewers Csv","operationId":"analytics_viewers_csv_api_v1_me_documents__slug__analytics_viewers_csv_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"who","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|signed_in|anonymous)$","default":"all","title":"Who"}},{"name":"completion","in":"query","required":false,"schema":{"type":"string","pattern":"^(any|low|mid|high|done)$","default":"any","title":"Completion"}},{"name":"own","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Own"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":1,"title":"Internal"}},{"name":"country","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country"}},{"name":"device","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Device"}},{"name":"os","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Os"}},{"name":"browser","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Browser"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/viewers/people":{"get":{"tags":["creator-analytics"],"summary":"Analytics Viewer People","description":"One row per person (or anonymous visitor): their views, total active time, best completion.","operationId":"analytics_viewer_people_api_v1_me_documents__slug__analytics_viewers_people_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"who","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|signed_in|anonymous)$","default":"all","title":"Who"}},{"name":"own","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Own"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":1,"title":"Internal"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/viewers/{view_id}":{"get":{"tags":["creator-analytics"],"summary":"Analytics View Timeline","description":"One view: its header (who, where from, on what, time, completion) and its activity\ntimeline as readable steps.","operationId":"analytics_view_timeline_api_v1_me_documents__slug__analytics_viewers__view_id__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"view_id","in":"path","required":true,"schema":{"type":"string","title":"View Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/view-history":{"get":{"tags":["creator-analytics"],"summary":"My View History","description":"The documents and files you viewed while signed in, as their owners see it (newest first).","operationId":"my_view_history_api_v1_me_view_history_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["creator-analytics"],"summary":"Forget My View History","description":"Take your name off every view you made: owners then see those views as anonymous ones.","operationId":"forget_my_view_history_api_v1_me_view_history_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/me/preferences":{"patch":{"tags":["creator-analytics"],"summary":"Update Preferences","description":"Account preferences: ``analytics_digest`` \"weekly\" | \"off\"; how often notification email\ncomes, per kind (``email_notify``: ``{mention, signoff_requested}`` → instant | hourly | daily |\noff; services/notifications.py); the old switch ``mention_emails`` (bool: off turns both off,\non brings back the defaults); ``tz`` (the browser's timezone, for the daily digest). Any of them.","operationId":"update_preferences_api_v1_me_preferences_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreferencesUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/digest/off":{"get":{"tags":["creator-analytics"],"summary":"Digest Off Page","description":"The \"Turn off weekly emails\" link. It asks before acting: mail scanners\nopen every link in an email, and a GET that acted would turn the email off\nfor people who never clicked. The button (and one-click) POSTs.","operationId":"digest_off_page_api_v1_me_digest_off_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creator-analytics"],"summary":"Digest Off","description":"The page's button, and RFC 8058 one-click from List-Unsubscribe-Post.","operationId":"digest_off_api_v1_me_digest_off_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics-settings":{"get":{"tags":["analytics-settings"],"summary":"Get My Settings","description":"Your defaults for the items you own (each type on unless you turned it off).","operationId":"get_my_settings_api_v1_me_analytics_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"put":{"tags":["analytics-settings"],"summary":"Put My Settings","description":"Change your defaults. ``delete``: also delete what was already collected for those types on\nyour items where they're now off (an item with its own setting turned on keeps its data).","operationId":"put_my_settings_api_v1_me_analytics_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/settings":{"get":{"tags":["analytics-settings"],"summary":"Get Item Settings","description":"What this item collects, each type with where its value comes from (this item, a folder,\nthe workspace, your defaults) and whether the workspace enforces it.","operationId":"get_item_settings_api_v1_me_documents__slug__analytics_settings_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["analytics-settings"],"summary":"Put Item Settings","description":"This item's own settings (``settings: null``: use the defaults). A type the workspace\nenforces off stays off. ``delete``: also delete its already collected data for those types.","operationId":"put_item_settings_api_v1_me_documents__slug__analytics_settings_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics-settings/items":{"post":{"tags":["analytics-settings"],"summary":"Put Many Items","description":"The same settings for several items at once (My files, a folder). Items you can't change\nare skipped and listed.","operationId":"put_many_items_api_v1_me_analytics_settings_items_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkSettings"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/analytics-settings":{"get":{"tags":["analytics-settings"],"summary":"Get Workspace Settings","description":"The workspace's defaults (types it doesn't set fall through to each owner's) and whether\nthey're enforced (a type it has off is off for every item in it).","operationId":"get_workspace_settings_api_v1_workspaces__workspace_id__analytics_settings_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":{"tags":["analytics-settings"],"summary":"Put Workspace Settings","description":"Owners and admins. ``settings`` replaces the workspace's defaults (omit a type to leave it\nto each owner); ``enforce`` locks the types it has off. ``delete``: also delete already\ncollected data of those types on the workspace's items where they're now off.","operationId":"put_workspace_settings_api_v1_workspaces__workspace_id__analytics_settings_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/WorkspaceSettings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/analytics-settings":{"get":{"tags":["analytics-settings"],"summary":"Get Folder Settings","operationId":"get_folder_settings_api_v1_workspaces__workspace_id__folders__folder_id__analytics_settings_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}},"put":{"tags":["analytics-settings"],"summary":"Put Folder Settings","description":"Owners and admins: defaults for the items in this folder and the folders inside it (an item's\nown settings still win; the workspace's enforced ones win over both). ``settings: null`` clears.","operationId":"put_folder_settings_api_v1_workspaces__workspace_id__folders__folder_id__analytics_settings_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics/ai/status":{"get":{"tags":["analytics-ai"],"summary":"Ai Status","description":"Can Analytics AI run for the caller now, and where they may see content gaps.","operationId":"ai_status_api_v1_me_analytics_ai_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/me/analytics/ai/story":{"get":{"tags":["analytics-ai"],"summary":"Ai Story","description":"What changed in the range and why, in 3-5 bullets (cached for the day; ``fresh=1`` refreshes).","operationId":"ai_story_api_v1_me_analytics_ai_story_get","parameters":[{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d)$","default":"7d","title":"Range"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Fresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics/ai/ask":{"post":{"tags":["analytics-ai"],"summary":"Ai Ask","description":"Ask your analytics (SSE). The model picks from a fixed set of queries; ours run them.","operationId":"ai_ask_api_v1_me_analytics_ai_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__analytics_ai_home__AskBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/analytics/ai/gaps":{"get":{"tags":["analytics-ai"],"summary":"Ai Gaps","description":"What people searched for or asked and didn't find, grouped into pages worth writing.","operationId":"ai_gaps_api_v1_me_analytics_ai_gaps_get","parameters":[{"name":"scope","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":80,"title":"Scope"}},{"name":"fresh","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Fresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/documents/{slug}/analytics/ai/{kind}":{"get":{"tags":["creator-analytics"],"summary":"Analytics Ai Get","description":"The cached analysis of this kind, or whether one can be made (never calls the model).","operationId":"analytics_ai_get_api_v1_me_documents__slug__analytics_ai__kind__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","pattern":"^(content|media|pages|versions)$","title":"Kind"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}},{"name":"ver","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100000,"minimum":1},{"type":"null"}],"title":"Ver"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["creator-analytics"],"summary":"Analytics Ai Run","description":"Analyse with AI unless a cached analysis exists; ``{\"refresh\": true}`` in the\nbody re-analyses. Below 20 sessions with data the model isn't called (``state: thin``).","operationId":"analytics_ai_run_api_v1_me_documents__slug__analytics_ai__kind__post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","pattern":"^(content|media|pages|versions)$","title":"Kind"}},{"name":"range","in":"query","required":false,"schema":{"type":"string","pattern":"^(7d|30d|90d|all)$","default":"30d","title":"Range"}},{"name":"internal","in":"query","required":false,"schema":{"type":"integer","maximum":1,"minimum":0,"default":0,"title":"Internal"}},{"name":"ver","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":100000,"minimum":1},{"type":"null"}],"title":"Ver"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_v1_notifications_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Unread Count","description":"The bell polls this only while a tab is visible: the person has seen what came before\n(no email about it), and ``tz`` (their IANA zone) times the daily digest.","operationId":"unread_count_api_v1_notifications_unread_count_get","parameters":[{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/read":{"post":{"tags":["notifications"],"summary":"Mark Read","operationId":"mark_read_api_v1_notifications_read_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkRead"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/open":{"post":{"tags":["notifications"],"summary":"Open Notification","operationId":"open_notification_api_v1_notifications__notification_id__open_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/mentions/off":{"get":{"tags":["notifications"],"summary":"Mentions Off Page","description":"Asks first: mail scanners open every link, and a GET that acted would\nturn the emails off for people who never clicked.","operationId":"mentions_off_page_api_v1_me_mentions_off_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notifications"],"summary":"Mentions Off","operationId":"mentions_off_api_v1_me_mentions_off_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/emails/less":{"get":{"tags":["notifications"],"summary":"Email Less Page","description":"Asks first, like the turn-off link: a mail scanner opening it changes nothing.","operationId":"email_less_page_api_v1_me_emails_less_get","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["notifications"],"summary":"Email Less","operationId":"email_less_api_v1_me_emails_less_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push":{"get":{"tags":["push"],"summary":"Push Status","description":"Whether push is set up here, the key a browser subscribes with, this person's devices\n(``endpoint``: this browser's own, marked ``this_device``) and which kinds they want.","operationId":"push_status_api_v1_push_get","parameters":[{"name":"endpoint","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push/subscriptions":{"post":{"tags":["push"],"summary":"Subscribe","operationId":"subscribe_api_v1_push_subscriptions_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push/subscriptions/remove":{"post":{"tags":["push"],"summary":"Unsubscribe","operationId":"unsubscribe_api_v1_push_subscriptions_remove_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Endpoint"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push/devices/{device_id}":{"delete":{"tags":["push"],"summary":"Remove Device","operationId":"remove_device_api_v1_push_devices__device_id__delete","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push/prefs":{"patch":{"tags":["push"],"summary":"Set Prefs","operationId":"set_prefs_api_v1_push_prefs_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prefs"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push/test":{"post":{"tags":["push"],"summary":"Test Push","operationId":"test_push_api_v1_push_test_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPush"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/push/read":{"post":{"tags":["push"],"summary":"Read From Click","description":"The service worker calls this when someone clicks a notification: the signed link (made\nfor that person and those notifications only) marks them read. No session: the worker has none.","operationId":"read_from_click_api_v1_push_read_post","parameters":[{"name":"t","in":"query","required":false,"schema":{"type":"string","default":"","title":"T"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sync":{"post":{"tags":["sync"],"summary":"Sync Create","description":"Create + link a document from the editor (owned by the caller).\n\nA markdown file becomes a markdown document; an .html (or other text\nartifact) file becomes an artifact, so it publishes as a rendered page\nrather than as escaped source. Both sync through the same endpoints below,\nso the editor needs no second protocol.","operationId":"sync_create_api_v1_sync_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncDocResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sync/{doc_id}":{"get":{"tags":["sync"],"summary":"Sync Pull","description":"Full pull of the current server content.","operationId":"sync_pull_api_v1_sync__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/SyncDocResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["sync"],"summary":"Sync Push","description":"Push local content. 409 (with current content) if base_rev is stale.","operationId":"sync_push_api_v1_sync__doc_id__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/SyncPushRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SyncDocResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sync/{doc_id}/rev":{"get":{"tags":["sync"],"summary":"Sync Rev","description":"Cheap revision check for polling.","operationId":"sync_rev_api_v1_sync__doc_id__rev_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/SyncRevResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/og/{slug}.png":{"get":{"tags":["og-image"],"summary":"Og Image","operationId":"og_image_api_v1_og__slug__png_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"host","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":253},{"type":"null"}],"title":"Host"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/og/w/{workspace_id}.png":{"get":{"tags":["og-image"],"summary":"Workspace Image","operationId":"workspace_image_api_v1_og_w__workspace_id__png_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"}}}}}},"head":{"tags":["og-image"],"summary":"Workspace Image","operationId":"workspace_image_api_v1_og_w__workspace_id__png_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"}}}}}}},"/api/v1/og/w/{workspace_id}/f/{folder_id}.png":{"get":{"tags":["og-image"],"summary":"Folder Image","operationId":"folder_image_api_v1_og_w__workspace_id__f__folder_id__png_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}},"head":{"tags":["og-image"],"summary":"Folder Image","operationId":"folder_image_api_v1_og_w__workspace_id__f__folder_id__png_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}}},"/api/v1/og/f/{share_id}.png":{"get":{"tags":["og-image"],"summary":"Shared Folder Image","operationId":"shared_folder_image_api_v1_og_f__share_id__png_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","maxLength":1000,"default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"head":{"tags":["og-image"],"summary":"Shared Folder Image","operationId":"shared_folder_image_api_v1_og_f__share_id__png_get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","maxLength":1000,"default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/feedback":{"post":{"tags":["feedback"],"summary":"Submit Feedback","description":"Record a bug report or feature request. Always returns {status: received}.","operationId":"submit_feedback_api_v1_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs/ask":{"post":{"tags":["docs"],"summary":"Ask","operationId":"ask_api_v1_docs_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__docs_ai__AskBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs/ask/feedback":{"post":{"tags":["docs"],"summary":"Ask Feedback","operationId":"ask_feedback_api_v1_docs_ask_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerFeedbackBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs/feedback":{"post":{"tags":["docs"],"summary":"Page Feedback","operationId":"page_feedback_api_v1_docs_feedback_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PageFeedbackBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/docs/ai/status":{"get":{"tags":["docs"],"summary":"Ai Status","operationId":"ai_status_api_v1_docs_ai_status_get","parameters":[{"name":"site","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","operationId":"list_workspaces_api_v1_workspaces_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceListResponse"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_v1_workspaces_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_v1_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["workspaces"],"summary":"Update Workspace","operationId":"update_workspace_api_v1_workspaces__workspace_id__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/WorkspaceUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","description":"Delete a workspace and everything that belongs to it.\n\nShared documents are released, not deleted -- they belong to their owners,\nnot to the workspace.","operationId":"delete_workspace_api_v1_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/members":{"get":{"tags":["workspaces"],"summary":"List Members","operationId":"list_members_api_v1_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":{"$ref":"#/components/schemas/MemberListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/members/search":{"get":{"tags":["workspaces"],"summary":"Search Members","description":"People to @-mention in a page (``:person[Name]{id=\"…\"}``): members whose\nname or address matches ``q``, as ``[{id, name, avatar}]`` (never the\naddress). Members of the workspace only; at most 20.","operationId":"search_members_api_v1_workspaces__workspace_id__members_search_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}}},"/api/v1/workspaces/{workspace_id}/invitations":{"get":{"tags":["workspaces"],"summary":"List Invitations","operationId":"list_invitations_api_v1_workspaces__workspace_id__invitations_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Invitation","description":"Invite someone by email.\n\nRate-limited by the hour rather than the minute, because the thing being\nspent here is not our CPU — it is someone else's inbox, and this endpoint\nwill happily send mail to an address its caller does not own.","operationId":"create_invitation_api_v1_workspaces__workspace_id__invitations_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/InviteCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/invitations/{invite_id}":{"delete":{"tags":["workspaces"],"summary":"Revoke Invitation","operationId":"revoke_invitation_api_v1_workspaces__workspace_id__invitations__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":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/branding/{kind}":{"post":{"tags":["workspaces"],"summary":"Upload Branding Asset","description":"Upload a favicon or logo.\n\nThe stored URL is returned but not saved onto the workspace here: the\nsettings form owns that, and saving a field the user hasn't confirmed would\nmake \"upload, change your mind, close the tab\" leave the wrong logo live.","operationId":"upload_branding_asset_api_v1_workspaces__workspace_id__branding__kind__post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"kind","in":"path","required":true,"schema":{"type":"string","title":"Kind"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_branding_asset_api_v1_workspaces__workspace_id__branding__kind__post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrandingAssetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/members/{member_user_id}":{"put":{"tags":["workspaces"],"summary":"Set Member Role","operationId":"set_member_role_api_v1_workspaces__workspace_id__members__member_user_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","title":"Member User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberRoleRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Remove Member","operationId":"remove_member_api_v1_workspaces__workspace_id__members__member_user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"member_user_id","in":"path","required":true,"schema":{"type":"string","title":"Member User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains":{"get":{"tags":["domains"],"summary":"List Domains","operationId":"list_domains_api_v1_workspaces__workspace_id__domains_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["domains"],"summary":"Add Domain","operationId":"add_domain_api_v1_workspaces__workspace_id__domains_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/DomainCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains/{domain_id}/verify":{"post":{"tags":["domains"],"summary":"Verify Domain","operationId":"verify_domain_api_v1_workspaces__workspace_id__domains__domain_id__verify_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains/{domain_id}/attach":{"post":{"tags":["domains"],"summary":"Attach Domain","description":"Attach a verified host so the edge will terminate TLS for it.\n\nReturns 501 rather than a 500 when no hosting credentials are configured:\nthat is a deployment that hasn't enabled the integration, not a fault, and\nthe caller should be told to finish the step by hand.","operationId":"attach_domain_api_v1_workspaces__workspace_id__domains__domain_id__attach_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains/{domain_id}/detach":{"post":{"tags":["domains"],"summary":"Detach Domain","description":"Take a verified domain off the air without discarding its verification.","operationId":"detach_domain_api_v1_workspaces__workspace_id__domains__domain_id__detach_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains/{domain_id}/provider":{"get":{"tags":["domains"],"summary":"Dns Provider Hint","description":"Which DNS panel this customer is about to open.\n\nA separate endpoint rather than a field on the domain list, because it costs\na live DNS lookup and the list is rendered on every visit to the tab. The UI\nasks for it only while the setup instructions are actually on screen, and\nonly admins see those.","operationId":"dns_provider_hint_api_v1_workspaces__workspace_id__domains__domain_id__provider_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DnsProviderHint"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains/{domain_id}/primary":{"put":{"tags":["domains"],"summary":"Set Primary Domain","description":"Choose the domain this workspace is addressed by.\n\nAdmin, because it changes the address printed on every preview card and\nhanded out by the library — the workspace's public face, not one person's\npreference.","operationId":"set_primary_domain_api_v1_workspaces__workspace_id__domains__domain_id__primary_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/domains/{domain_id}":{"delete":{"tags":["domains"],"summary":"Remove Domain","operationId":"remove_domain_api_v1_workspaces__workspace_id__domains__domain_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders":{"get":{"tags":["folders"],"summary":"List Folders","operationId":"list_folders_api_v1_workspaces__workspace_id__folders_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["folders"],"summary":"Create Folder","operationId":"create_folder_api_v1_workspaces__workspace_id__folders_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/FolderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}":{"put":{"tags":["folders"],"summary":"Update Folder","operationId":"update_folder_api_v1_workspaces__workspace_id__folders__folder_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["folders"],"summary":"Delete Folder","description":"``trash`` (the default): the folder, its folders and everything in them\ngo to the trash for 30 days (services/trash.py), restorable together.\n``unfile`` / ``move_up`` (the old behaviour): only the folder goes; what was\nin it moves to the top of the workspace / into the parent folder.","operationId":"delete_folder_api_v1_workspaces__workspace_id__folders__folder_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"mode","in":"query","required":false,"schema":{"type":"string","pattern":"^(trash|unfile|move_up)$","default":"trash","title":"Mode"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["workspace-items"],"summary":"Patch Folder","description":"Rename and/or move (``parent_id`` present; null = top level). Admin+\n(A10). The subtree's depth is validated, every document below gets its new\npath, and all of them are purged.","operationId":"patch_folder_api_v1_workspaces__workspace_id__folders__folder_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents/move":{"post":{"tags":["folders"],"summary":"Move Document","operationId":"move_document_api_v1_workspaces__workspace_id__documents_move_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/DocumentMoveRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/tree":{"get":{"tags":["workspace-items"],"summary":"Workspace Tree","operationId":"workspace_tree_api_v1_workspaces__workspace_id__tree_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"all | company | team:<id> | project:<id>","title":"Space"},"description":"all | company | team:<id> | project:<id>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/nav":{"get":{"tags":["workspace-items"],"summary":"Workspace Nav","description":"The app rail's outline: every readable top-level item, compact, grouped by folder\n(``{items: [{slug, title, kind: page|markdown|artifact, folder_id, has_children, icon,\nicon_url, renderer, mime, filename}], more: {<folder id>|root: n}}``). Viewer+.","operationId":"workspace_nav_api_v1_workspaces__workspace_id__nav_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"all | company | team:<id> | project:<id>","title":"Space"},"description":"all | company | team:<id> | project:<id>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/items":{"get":{"tags":["workspace-items"],"summary":"Workspace Items","operationId":"workspace_items_api_v1_workspaces__workspace_id__items_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"all","title":"Folder"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(markdown|document|artifact)$"},{"type":"null"}],"title":"Kind"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(document|pdf|video|image|sheet|slides|word|html|other)$"},{"type":"null"}],"title":"Type"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"all (default) | company | team:<id> | project:<id> (Teams)","title":"Space"},"description":"all (default) | company | team:<id> | project:<id> (Teams)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/items/previews":{"post":{"tags":["workspace-items"],"summary":"Items Previews","description":"What the Cards view shows of each item: ``{previews: {slug: preview}}``\n(services/card_preview.py). The app asks only for the cards on screen.\nViewer+, like the listing; each item answers ``locked`` unless the caller\ncan open it right now (no password, no sign-in, no refusal in the way),\n``encrypted`` for end-to-end encrypted documents, ``pending`` while a\npicture is being made, else ``ok`` with plain-text blocks, a sheet's first\ncells, a text file's first lines, a small WebP thumbnail (``src``, a data\nURI) or, for an HTML file, its signed ``live`` URL on the artifact origin.","operationId":"items_previews_api_v1_workspaces__workspace_id__items_previews_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/ItemsPreviews"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/preview":{"get":{"tags":["workspace-items"],"summary":"Workspace Preview","description":"\"Preview as\": what ``as`` would see in this folder, and what is hidden\nfrom them and why — among the items the caller can see (services/preview.py).\nMember+; ``as=email`` admin+ (it reveals that person's grants).","operationId":"workspace_preview_api_v1_workspaces__workspace_id__preview_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder","in":"query","required":false,"schema":{"type":"string","maxLength":64,"default":"root","title":"Folder"}},{"name":"as","in":"query","required":false,"schema":{"enum":["anyone","member","email"],"type":"string","default":"anyone","title":"As"}},{"name":"email","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/items/move":{"post":{"tags":["workspace-items"],"summary":"Items Move","description":"Batch refile (drag-and-drop): member+ for documents they can read. All\nare checked before any moves; one refusal refuses the batch.","operationId":"items_move_api_v1_workspaces__workspace_id__items_move_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/ItemsMove"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/items/add":{"post":{"tags":["workspace-items"],"summary":"Items Add","description":"The owner files their own documents (D1); level unchanged unless\n``access`` is given.","operationId":"items_add_api_v1_workspaces__workspace_id__items_add_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/ItemsAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/items/remove":{"post":{"tags":["workspace-items"],"summary":"Items Remove","description":"Unshare (D2/D4): the owner always (even after leaving), or an admin —\nincluding redacted rows, by ``handles`` (``id_token`` from /items).\n``workspace`` level becomes ``private``; a link document leaving a sign-in\nworkspace becomes private (Q2). Returns ``{items:[{slug, access_after}]}``\n(``slug`` is null for a handle the caller can't read).","operationId":"items_remove_api_v1_workspaces__workspace_id__items_remove_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/ItemsRemove"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/share":{"put":{"tags":["workspace-items"],"summary":"Share Folder","description":"D2: a folder link shows each visitor only what they could already open.\nIt never changes any document's access. ``hidden`` lists the items the\ncaller can read that the link's audience couldn't.","operationId":"share_folder_api_v1_workspaces__workspace_id__folders__folder_id__share_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderShare"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["workspace-items"],"summary":"Get Folder Share","description":"The folder's share (same shape as the PUT), or 404 when not shared.","operationId":"get_folder_share_api_v1_workspaces__workspace_id__folders__folder_id__share_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}},"delete":{"tags":["workspace-items"],"summary":"Unshare Folder","operationId":"unshare_folder_api_v1_workspaces__workspace_id__folders__folder_id__share_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/transfer":{"post":{"tags":["workspace-items"],"summary":"Transfer Ownership","description":"M5: owner → any existing member — viewers included: it is the owner's\nexplicit choice, and the new owner can change their own standing. The old\nowner becomes admin. Docs, grants and domains are unchanged.","operationId":"transfer_ownership_api_v1_workspaces__workspace_id__transfer_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/OwnershipTransfer"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/folders/shared/{share_id}":{"get":{"tags":["folder-pages"],"summary":"Shared Folder","description":"A shared folder: ``{workspace:{name, branding…}, folder:{name, path,\nbreadcrumbs:[{name, path}]}, subfolders:[{name, path, count}], items:[{slug,\ntitle, kind, mime, url, size_bytes?, updated_at, poster_url?}]}`` — paths\nrelative to the shared root; items filtered to what this caller can read.\nLevel ``workspace`` needs a member (else 401 signin / 404).","operationId":"shared_folder_api_v1_folders_shared__share_id__get","parameters":[{"name":"share_id","in":"path","required":true,"schema":{"type":"string","title":"Share Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","maxLength":1000,"default":"","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/database":{"get":{"tags":["page properties"],"summary":"Folder Database","description":"The folder as a database: ``{folder, properties, views, rev, rows, truncated,\npeople, links, can_edit_schema, role}``. Rows are the top-level pages filed\ndirectly in the folder that the caller can read (at most 500, newest first);\n``rows=false`` leaves them out (the views bar of the folder's list).","operationId":"folder_database_api_v1_workspaces__workspace_id__folders__folder_id__database_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}},{"name":"rows","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Rows"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/properties":{"put":{"tags":["page properties"],"summary":"Put Properties","description":"Replace the folder's property schema (members and admins). Values in\npages are never changed: a property left out keeps its values, hidden.","operationId":"put_properties_api_v1_workspaces__workspace_id__folders__folder_id__properties_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchemaPut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/views":{"put":{"tags":["page properties"],"summary":"Put Views","description":"Replace the folder's saved views (members and admins; at most 20).","operationId":"put_views_api_v1_workspaces__workspace_id__folders__folder_id__views_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ViewsPut"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/properties":{"get":{"tags":["page properties"],"summary":"Page Properties","description":"The page's properties panel for this reader (null: none).","operationId":"page_properties_api_v1_documents__slug__properties_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["page properties"],"summary":"Patch Properties","description":"Set some of the page's values (``null`` clears one), through the page's\nown save path: 423 while someone else is editing it or it's locked, 409 on\na stale ``base_rev``, 422 when a value doesn't fit its property.","operationId":"patch_properties_api_v1_documents__slug__properties_patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-edit-secret","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Edit-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValuesPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/{token}":{"get":{"tags":["invitations"],"summary":"Preview Invitation","description":"What this link is for — shown before anyone commits to anything.\n\nResolved invitations still return 200 rather than an error, because \"this was\nalready accepted\" and \"you were uninvited\" are answers the reader needs, and\na 4xx here would leave the page with nothing to say.","operationId":"preview_invitation_api_v1_invites__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePreview"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/{token}/accept":{"post":{"tags":["invitations"],"summary":"Accept Invitation","operationId":"accept_invitation_api_v1_invites__token__accept_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteAcceptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/invites/{token}/decline":{"post":{"tags":["invitations"],"summary":"Decline Invitation","operationId":"decline_invitation_api_v1_invites__token__decline_post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents":{"get":{"tags":["library"],"summary":"List Library","operationId":"list_library_api_v1_workspaces__workspace_id__documents_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"per_page","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":50,"minimum":1},{"type":"null"}],"title":"Per Page"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(markdown|document|artifact)$"},{"type":"null"}],"title":"Kind"}},{"name":"folder_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},{"name":"unfiled","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unfiled"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyDocListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["library"],"summary":"Add To Library","operationId":"add_to_library_api_v1_workspaces__workspace_id__documents_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/LibraryAddRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MyDocListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents/counts":{"get":{"tags":["library"],"summary":"Library Counts","operationId":"library_counts_api_v1_workspaces__workspace_id__documents_counts_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"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents/{document_id}":{"delete":{"tags":["library"],"summary":"Remove From Library","description":"Unshare, not delete. The document goes back to its owner untouched.","operationId":"remove_from_library_api_v1_workspaces__workspace_id__documents__document_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/documents/{document_id}/folder":{"put":{"tags":["library"],"summary":"File Document","operationId":"file_document_api_v1_workspaces__workspace_id__documents__document_id__folder_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"string","title":"Document Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibraryFolderRequest"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/access/level":{"post":{"tags":["access"],"summary":"Set Levels","description":"Batch level change (\"Open up the K you own\"): owner-only per document,\neach through the same rules as PUT /{slug}/access/level. Per-slug results\n``{results:[{slug, ok, error?}]}``.","operationId":"set_levels_api_v1_documents_access_level_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchLevelUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access":{"get":{"tags":["access"],"summary":"Get Access","description":"The sharing state, for anyone holding a role on the document (A6).\n\nA reader who merely has the link (no role) gets 404: the owner's address\nand the grantee list are not something a link exposes. Viewers see their\nown role and the owner's display name; the grantee list (and the owner's\naddress) is for the owner and editors.","operationId":"get_access_api_v1_documents__slug__access_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access/level":{"put":{"tags":["access"],"summary":"Set Level","operationId":"set_level_api_v1_documents__slug__access_level_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access/resharing":{"put":{"tags":["access"],"summary":"Set Resharing","operationId":"set_resharing_api_v1_documents__slug__access_resharing_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResharingUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access/presence":{"put":{"tags":["access"],"summary":"Set Presence","description":"Turn \"Show who's viewing\" on or off (the owner only, like re-sharing).\nOff: nobody on the page sees anyone, and pages stop saying where they are.","operationId":"set_presence_api_v1_documents__slug__access_presence_put","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresenceUpdate"}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access/people":{"post":{"tags":["access"],"summary":"Add Person","description":"Share with a named person, optionally telling them.\n\nA failed notification does **not** undo the grant: the access is real and\ncorrect, the email is a courtesy. The response says whether it went.","operationId":"add_person_api_v1_documents__slug__access_people_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access/people/{email}":{"delete":{"tags":["access"],"summary":"Remove Person","operationId":"remove_person_api_v1_documents__slug__access_people__email__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"email","in":"path","required":true,"schema":{"type":"string","title":"Email"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/shared":{"get":{"tags":["personal"],"summary":"Shared With Me","operationId":"shared_with_me_api_v1_me_shared_get","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(document|pdf|video|image|sheet|slides|word|html|other)$"},{"type":"null"}],"title":"Type"}},{"name":"counts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Counts"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/recent":{"get":{"tags":["personal"],"summary":"Recent","operationId":"recent_api_v1_me_recent_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(document|pdf|video|image|sheet|slides|word|html|other)$"},{"type":"null"}],"title":"Type"}},{"name":"counts","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Counts"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search/quick":{"get":{"tags":["personal"],"summary":"Quick Search","operationId":"quick_search_api_v1_search_quick_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access-requests":{"post":{"tags":["personal"],"summary":"Request Access","operationId":"request_access_api_v1_documents__slug__access_requests_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessRequestCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/documents/{slug}/access-requests/mine":{"get":{"tags":["personal"],"summary":"My Access Request","operationId":"my_access_request_api_v1_documents__slug__access_requests_mine_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"role","in":"query","required":false,"schema":{"enum":["viewer","editor"],"type":"string","default":"viewer","title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/access-requests":{"get":{"tags":["personal"],"summary":"Access Requests For Me","operationId":"access_requests_for_me_api_v1_me_access_requests_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["pending","approved","declined","all"],"type":"string","default":"pending","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/access-requests/{request_id}":{"get":{"tags":["personal"],"summary":"Get Access Request","operationId":"get_access_request_api_v1_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"}}}}}}},"/api/v1/access-requests/{request_id}/decision":{"post":{"tags":["personal"],"summary":"Decide Access Request","operationId":"decide_access_request_api_v1_access_requests__request_id__decision_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/AccessRequestDecision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search":{"get":{"tags":["search"],"summary":"Search Everything","operationId":"search_everything_api_v1_search_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}},{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Scope"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Kind"}},{"name":"owner","in":"query","required":false,"schema":{"type":"string","pattern":"^(anyone|me)$","default":"anyone","title":"Owner"}},{"name":"updated","in":"query","required":false,"schema":{"type":"string","pattern":"^(any|week|month)$","default":"any","title":"Updated"}},{"name":"current","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Current"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}},{"name":"trash","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Trash"}},{"name":"sid","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Sid"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"all | company | team:<id> | project:<id> (Teams)","title":"Space"},"description":"all | company | team:<id> | project:<id> (Teams)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search/click":{"post":{"tags":["search"],"summary":"Search Click","description":"A result was opened from the search ``log_id`` (no content: nothing to learn from it).","operationId":"search_click_api_v1_search_click_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClickBody"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search/ai-status":{"get":{"tags":["search"],"summary":"Ai Status","operationId":"ai_status_api_v1_search_ai_status_get","parameters":[{"name":"scope","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Scope"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/search/ask":{"post":{"tags":["search"],"summary":"Ask","operationId":"ask_api_v1_search_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__search__AskBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill":{"get":{"tags":["meetings"],"summary":"List Jobs","operationId":"list_jobs_api_v1_meetings_backfill_get","parameters":[{"name":"workspace","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["meetings"],"summary":"Create Job","operationId":"create_job_api_v1_meetings_backfill_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}":{"get":{"tags":["meetings"],"summary":"Get Job","operationId":"get_job_api_v1_meetings_backfill__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["meetings"],"summary":"Edit Job","operationId":"edit_job_api_v1_meetings_backfill__job_id__patch","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["meetings"],"summary":"Discard Job","operationId":"discard_job_api_v1_meetings_backfill__job_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}/sources":{"post":{"tags":["meetings"],"summary":"Add Sources","operationId":"add_sources_api_v1_meetings_backfill__job_id__sources_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}/rows/{row_id}":{"delete":{"tags":["meetings"],"summary":"Remove Row","operationId":"remove_row_api_v1_meetings_backfill__job_id__rows__row_id__delete","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}/start":{"post":{"tags":["meetings"],"summary":"Start Job","operationId":"start_job_api_v1_meetings_backfill__job_id__start_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}/pause":{"post":{"tags":["meetings"],"summary":"Pause Job","operationId":"pause_job_api_v1_meetings_backfill__job_id__pause_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}/resume":{"post":{"tags":["meetings"],"summary":"Resume Job","operationId":"resume_job_api_v1_meetings_backfill__job_id__resume_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/backfill/{job_id}/rows/{row_id}/retry":{"post":{"tags":["meetings"],"summary":"Retry Row","operationId":"retry_row_api_v1_meetings_backfill__job_id__rows__row_id__retry_post","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"row_id","in":"path","required":true,"schema":{"type":"string","title":"Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/series":{"get":{"tags":["meetings"],"summary":"List Series","description":"{series: [{name, count, last}], total, one_offs}: the Meetings hub's chips, in one pass.","operationId":"list_series_api_v1_meetings_series_get","parameters":[{"name":"workspace","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/organize":{"get":{"tags":["meetings"],"summary":"Organize Status","description":"What \"Organize meetings\" would do now, and the current (or last) run: admins.","operationId":"organize_status_api_v1_meetings_organize_get","parameters":[{"name":"workspace","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["meetings"],"summary":"Organize","description":"Start \"Organize meetings\" (admins): a background job, so this answers at once (202) with the\nrun; a click while one is running joins it. Poll GET /organize/{run} for progress.","operationId":"organize_api_v1_meetings_organize_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizeBody"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/organize/{run}":{"get":{"tags":["meetings"],"summary":"Organize Progress","description":"A run's progress {done, total, filed, folders, series, covers, errors}: the workspace's admins.","operationId":"organize_progress_api_v1_meetings_organize__run__get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/status":{"get":{"tags":["meetings"],"summary":"Status","operationId":"status_api_v1_meetings_status_get","parameters":[{"name":"workspace","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/preview":{"post":{"tags":["meetings"],"summary":"Preview","operationId":"preview_api_v1_meetings_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/import":{"post":{"tags":["meetings"],"summary":"Import Meeting","operationId":"import_meeting_api_v1_meetings_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/import-link":{"post":{"tags":["meetings"],"summary":"Import Link","description":"Google Docs / Drive links → one result each: imported | attached | duplicate (a meeting), queued\n(the Doc isn't public: your Google Meet script fetches it on its next run) or needs_access (with what\nto do). Only docs.google.com / drive.google.com links; Markdrop fetches Google's export itself.","operationId":"import_link_api_v1_meetings_import_link_post","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"}}}}}},"get":{"tags":["meetings"],"summary":"Link Requests","description":"Your recent link requests in a workspace (queued for your script, sent, failed).","operationId":"link_requests_api_v1_meetings_import_link_get","parameters":[{"name":"workspace","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/google/token":{"post":{"tags":["meetings"],"summary":"Google Token","operationId":"google_token_api_v1_meetings_google_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/meetings/connection":{"get":{"tags":["meetings"],"summary":"Get Connection","description":"Mine (wherever it sends meetings), and the others sending to ``workspace`` (a member's view).","operationId":"get_connection_api_v1_meetings_connection_get","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["meetings"],"summary":"Connect","description":"A new token for the Google Meet script, shown once, inside the script. Replaces an earlier one.","operationId":"connect_api_v1_meetings_connection_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["meetings"],"summary":"Disconnect","operationId":"disconnect_api_v1_meetings_connection_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/meetings/connection/check-now":{"put":{"tags":["meetings"],"summary":"Set Check Now","description":"Turn \"Check for new meetings\" on for your connection: the Web app URL of your script (it's never\nshown to anyone else), or null to turn it off.","operationId":"set_check_now_api_v1_meetings_connection_check_now_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebAppBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/check-now":{"post":{"tags":["meetings"],"summary":"Check Now","description":"\"Check for new meetings\": the Google Meet scripts connected to the workspace (with Check now on)\nrun now instead of at their next scheduled run; waits for them (up to about 50 s) →\n{ok, message, imported, attached, writing, remaining, checked, failed, connections}. Members; once a\nminute per workspace (429 + retry_after).","operationId":"check_now_api_v1_meetings_check_now_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckNowBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/inbox":{"post":{"tags":["meetings"],"summary":"Inbox","description":"One Google Doc from the Google Meet script (Bearer: a ``meetings:import`` token, which works\nhere and nowhere else). Idempotent on the Doc's id: → {status: imported | attached | duplicate |\nignored, meeting_id?, url?}.","operationId":"inbox_api_v1_meetings_inbox_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"source":{"type":"string","const":"google-meet-script","title":"Source","default":"google-meet-script"},"file_id":{"type":"string","maxLength":200,"minLength":1,"title":"File Id"},"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Title"},"created":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created"},"kind_hint":{"anyOf":[{"type":"string","enum":["transcript","notes","unknown"]},{"type":"null"}],"title":"Kind Hint"},"text":{"type":"string","title":"Text"},"doc_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Doc Url"},"backfill":{"type":"boolean","title":"Backfill","default":false},"version":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":1.0},{"type":"null"}],"title":"Version"},"owner":{"anyOf":[{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string","maxLength":320},{"type":"null"}],"title":"Email"},"me":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Me"}},"type":"object","title":"DriveOwner"},{"type":"null"}]},"requested":{"type":"boolean","title":"Requested","default":false}},"type":"object","required":["file_id","text"],"title":"InboxBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-markdrop":{"auth":"token"}}},"/api/v1/meetings/inbox/status":{"post":{"tags":["meetings"],"summary":"Inbox Status","description":"How a run of the Google Meet script went (Bearer: its ``meetings:import`` token): 'start' →\n{queue: the Docs asked for by link, to fetch first; latest_version}; 'done' → counts (found, sent,\nskipped by reason), errors. Shown on the Meetings page.","operationId":"inbox_status_api_v1_meetings_inbox_status_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__meetings__StatusBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-markdrop":{"auth":"token"}}},"/api/v1/meetings":{"get":{"tags":["meetings"],"summary":"List Meetings","description":"A page of the meetings the caller can open (cards: no transcript, notes or AI sections). Pass the\nanswer's ``next_cursor`` back as ``cursor`` (same filters and sort) for the next page; ``total`` and\n``hidden`` come with the first page only.","operationId":"list_meetings_api_v1_meetings_get","parameters":[{"name":"workspace","in":"query","required":true,"schema":{"type":"string","maxLength":40,"title":"Workspace"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Cursor"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["date_desc","date_asc","title","imported"],"type":"string","default":"date_desc","title":"Sort"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Q"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"enum":["manual","auto","mcp"],"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Until"}},{"name":"series","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Series"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"all | company | team:<id> | project:<id> (Teams)","title":"Space"},"description":"all | company | team:<id> | project:<id> (Teams)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/ask":{"post":{"tags":["meetings"],"summary":"Ask All","operationId":"ask_all_api_v1_meetings_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskAllBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/{meeting_id}":{"get":{"tags":["meetings"],"summary":"Get Meeting","operationId":"get_meeting_api_v1_meetings__meeting_id__get","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["meetings"],"summary":"Patch Meeting","operationId":"patch_meeting_api_v1_meetings__meeting_id__patch","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["meetings"],"summary":"Delete Meeting","operationId":"delete_meeting_api_v1_meetings__meeting_id__delete","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/{meeting_id}/regenerate":{"post":{"tags":["meetings"],"summary":"Regenerate","operationId":"regenerate_api_v1_meetings__meeting_id__regenerate_post","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/{meeting_id}/ask":{"post":{"tags":["meetings"],"summary":"Ask One","operationId":"ask_one_api_v1_meetings__meeting_id__ask_post","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__meetings__AskBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meeting-memory/related":{"post":{"tags":["meeting-memory"],"summary":"Related","description":"Decisions, action items, open questions and topics from the workspace's meetings related to what\nis being written, best first, each with its date, meeting, series, a link to the moment and the\ncited line to insert; ``hints``: a related decision the section seems to leave out (clear matches\nonly).","operationId":"related_api_v1_meeting_memory_related_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RelatedBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meeting-memory/check":{"post":{"tags":["meeting-memory"],"summary":"Check","description":"AI's verdict on the section against these decisions: ``contradicts`` / ``omits`` /\n``consistent`` with a one-line note. Never edits the page.","operationId":"check_api_v1_meeting_memory_check_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meeting-memory/prefs":{"get":{"tags":["meeting-memory"],"summary":"Get Prefs","description":"Your switches: ``panel`` (the \"From meetings\" panel shows by itself) and ``hints`` (suggestions\nwhen a section seems to leave out a decision). Both on by default.","operationId":"get_prefs_api_v1_meeting_memory_prefs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"patch":{"tags":["meeting-memory"],"summary":"Set Prefs","operationId":"set_prefs_api_v1_meeting_memory_prefs_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}":{"get":{"tags":["team"],"summary":"Board","description":"The Team board for you: each member's status, focus, targets, open items and recent activity;\nblockers; projects × people; groups; the \"This week\" summary. ``{enabled: false, can_enable}`` when\nTeam memory is off.","operationId":"board_api_v1_team__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Teams: all | company | team:<id> | project:<id>","title":"Space"},"description":"Teams: all | company | team:<id> | project:<id>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/people/{user_id}":{"get":{"tags":["team"],"summary":"Person","operationId":"person_api_v1_team__workspace_id__people__user_id__get","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"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Teams: all | company | team:<id> | project:<id>","title":"Space"},"description":"Teams: all | company | team:<id> | project:<id>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/projects/{key}":{"get":{"tags":["team"],"summary":"Project","operationId":"project_api_v1_team__workspace_id__projects__key__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"space","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Teams: all | company | team:<id> | project:<id>","title":"Space"},"description":"Teams: all | company | team:<id> | project:<id>"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/me/focus":{"put":{"tags":["team"],"summary":"Put Focus","operationId":"put_focus_api_v1_team__workspace_id__me_focus_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/FocusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/me/status":{"put":{"tags":["team"],"summary":"Put Status","operationId":"put_status_api_v1_team__workspace_id__me_status_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/app__routers__team__StatusBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/facts/{fact_id}/hide":{"post":{"tags":["team"],"summary":"Hide","operationId":"hide_api_v1_team__workspace_id__facts__fact_id__hide_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["team"],"summary":"Unhide","operationId":"unhide_api_v1_team__workspace_id__facts__fact_id__hide_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/facts/{fact_id}/done":{"post":{"tags":["team"],"summary":"Mark Done","description":"Mark one of your action items or targets done: it leaves your open items, the board and \"This week\".","operationId":"mark_done_api_v1_team__workspace_id__facts__fact_id__done_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["team"],"summary":"Unmark Done","description":"Undo \"Mark done\".","operationId":"unmark_done_api_v1_team__workspace_id__facts__fact_id__done_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/facts/{fact_id}/correct":{"post":{"tags":["team"],"summary":"Correct","operationId":"correct_api_v1_team__workspace_id__facts__fact_id__correct_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorrectBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["team"],"summary":"Uncorrect","operationId":"uncorrect_api_v1_team__workspace_id__facts__fact_id__correct_delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"fact_id","in":"path","required":true,"schema":{"type":"string","title":"Fact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/groups":{"get":{"tags":["team"],"summary":"Groups","description":"The workspace's Team groups; for admins also ``suggestions``: a group per meeting series, of the\nmembers at half or more of its meetings in the last 60 days.","operationId":"groups_api_v1_team__workspace_id__groups_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":{"tags":["team"],"summary":"Create Group","operationId":"create_group_api_v1_team__workspace_id__groups_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/GroupBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/groups/{group_id}":{"put":{"tags":["team"],"summary":"Update Group","operationId":"update_group_api_v1_team__workspace_id__groups__group_id__put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupBody"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["team"],"summary":"Remove Group","operationId":"remove_group_api_v1_team__workspace_id__groups__group_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/team/{workspace_id}/weekly/send":{"post":{"tags":["team"],"summary":"Send Weekly","description":"The weekly summary now (it goes out on its own on Mondays at 9 am, workspace time): last week's\nhighlights and this week's due items, posted to the Slack meetings channel when Slack is connected and\nemailed to the admins.","operationId":"send_weekly_api_v1_team__workspace_id__weekly_send_post","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"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams":{"get":{"tags":["teams"],"summary":"Teams: the sidebar","description":"``{my_role, can_create, teams (mine), projects (readable), browse {open, private}, suggested (admins), review}``.","operationId":"sidebar_api_v1_workspaces__workspace_id__teams_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":{"tags":["teams"],"summary":"Teams: create (admins)","operationId":"create_api_v1_workspaces__workspace_id__teams_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/TeamCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/browse":{"get":{"tags":["teams"],"summary":"Teams: browse","operationId":"browse_api_v1_workspaces__workspace_id__teams_browse_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"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams-review":{"get":{"tags":["teams"],"summary":"Teams: the guided review (admins)","operationId":"review_api_v1_workspaces__workspace_id__teams_review_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"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams-review/apply":{"post":{"tags":["teams"],"summary":"Teams: apply the review's moves (admins)","operationId":"review_apply_api_v1_workspaces__workspace_id__teams_review_apply_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/Apply"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams-review/done":{"post":{"tags":["teams"],"summary":"Teams: finish the review (admins)","operationId":"review_done_api_v1_workspaces__workspace_id__teams_review_done_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/suggested/{group_id}/accept":{"post":{"tags":["teams"],"summary":"Teams: accept a suggested team","operationId":"accept_api_v1_workspaces__workspace_id__teams_suggested__group_id__accept_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Accept"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/suggested/{group_id}":{"delete":{"tags":["teams"],"summary":"Teams: dismiss a suggested team","operationId":"dismiss_api_v1_workspaces__workspace_id__teams_suggested__group_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"group_id","in":"path","required":true,"schema":{"type":"string","title":"Group Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}":{"get":{"tags":["teams"],"summary":"Teams: a team's home","operationId":"get_team_api_v1_workspaces__workspace_id__teams__team__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["teams"],"summary":"Teams: settings","operationId":"patch_team_api_v1_workspaces__workspace_id__teams__team__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["teams"],"summary":"Teams: delete (admins)","operationId":"delete_team_api_v1_workspaces__workspace_id__teams__team__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/members":{"post":{"tags":["teams"],"summary":"Teams: add members","operationId":"add_members_api_v1_workspaces__workspace_id__teams__team__members_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Members"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/members/{user_id}":{"delete":{"tags":["teams"],"summary":"Teams: remove a member (or leave)","operationId":"remove_member_api_v1_workspaces__workspace_id__teams__team__members__user_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"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"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/leads":{"put":{"tags":["teams"],"summary":"Teams: pick leads (admins)","operationId":"put_leads_api_v1_workspaces__workspace_id__teams__team__leads_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Leads"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/briefs":{"get":{"tags":["teams"],"summary":"Teams: a team's briefs","operationId":"list_briefs_api_v1_workspaces__workspace_id__teams__team__briefs_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":8,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/briefs/draft":{"post":{"tags":["teams"],"summary":"Teams: re-draft this week's brief (leads)","operationId":"draft_brief_api_v1_workspaces__workspace_id__teams__team__briefs_draft_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/briefs/{brief}":{"get":{"tags":["teams"],"summary":"Teams: one brief","operationId":"get_brief_api_v1_workspaces__workspace_id__teams__team__briefs__brief__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"brief","in":"path","required":true,"schema":{"type":"string","title":"Brief"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/briefs/{brief}/lines/{line_id}":{"patch":{"tags":["teams"],"summary":"Teams: edit or hide a brief line","operationId":"edit_line_api_v1_workspaces__workspace_id__teams__team__briefs__brief__lines__line_id__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"brief","in":"path","required":true,"schema":{"type":"string","title":"Brief"}},{"name":"line_id","in":"path","required":true,"schema":{"type":"string","title":"Line Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/teams/{team}/briefs/{brief}/lines":{"post":{"tags":["teams"],"summary":"Teams: add a brief line","operationId":"add_line_api_v1_workspaces__workspace_id__teams__team__briefs__brief__lines_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"path","required":true,"schema":{"type":"string","title":"Team"}},{"name":"brief","in":"path","required":true,"schema":{"type":"string","title":"Brief"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/items/{doc_id}/teams":{"get":{"tags":["teams"],"summary":"Teams: an item's teams","operationId":"get_item_teams_api_v1_workspaces__workspace_id__items__doc_id__teams_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}},"put":{"tags":["teams"],"summary":"Teams: move / share an item to teams","operationId":"put_item_teams_api_v1_workspaces__workspace_id__items__doc_id__teams_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"doc_id","in":"path","required":true,"schema":{"type":"string","title":"Doc Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemTeams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/folders/{folder_id}/teams":{"put":{"tags":["teams"],"summary":"Teams: a folder's teams","operationId":"put_folder_teams_api_v1_workspaces__workspace_id__folders__folder_id__teams_put","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FolderTeams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/projects":{"get":{"tags":["teams"],"summary":"Teams: projects","operationId":"list_projects_api_v1_workspaces__workspace_id__projects_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"team","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["teams"],"summary":"Teams: create a project","operationId":"create_project_api_v1_workspaces__workspace_id__projects_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/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/projects/{project}":{"get":{"tags":["teams"],"summary":"Teams: a project's home","operationId":"get_project_api_v1_workspaces__workspace_id__projects__project__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["teams"],"summary":"Teams: change a project","operationId":"patch_project_api_v1_workspaces__workspace_id__projects__project__patch","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPatch"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["teams"],"summary":"Teams: delete a project (admins)","operationId":"delete_project_api_v1_workspaces__workspace_id__projects__project__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"name":"project","in":"path","required":true,"schema":{"type":"string","title":"Project"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workspaces/{workspace_id}/favorites":{"get":{"tags":["teams"],"summary":"Favorites: your starred pages, files, projects and teams","operationId":"get_favorites_api_v1_workspaces__workspace_id__favorites_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":{"tags":["teams"],"summary":"Favorites: star or unstar","operationId":"put_favorite_api_v1_workspaces__workspace_id__favorites_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/Favorite"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meetings/{meeting_id}/teams":{"get":{"tags":["teams"],"summary":"Teams: a meeting's teams","operationId":"get_meeting_teams_api_v1_meetings__meeting_id__teams_get","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["teams"],"summary":"Teams: route a meeting to teams","operationId":"put_meeting_teams_api_v1_meetings__meeting_id__teams_put","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemTeams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/status":{"get":{"tags":["slack"],"summary":"Slack connection status","operationId":"status_api_v1_slack_status_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/install":{"post":{"tags":["slack"],"summary":"Start Add to Slack","operationId":"install_api_v1_slack_install_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["slack"],"summary":"Disconnect Slack","operationId":"disconnect_api_v1_slack_install_delete","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/connect":{"post":{"tags":["slack"],"summary":"Finish Add to Slack","operationId":"connect_api_v1_slack_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__slack__CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/channels":{"get":{"tags":["slack"],"summary":"Slack channels for meeting posts","operationId":"channels_api_v1_slack_channels_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/settings":{"patch":{"tags":["slack"],"summary":"Choose the meetings channel","operationId":"settings_api_v1_slack_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/action-items/preview":{"get":{"tags":["slack"],"summary":"Preview the action-items messages","description":"Admins: from the newest meeting you can open that has action items with a person, who would get\na direct message with their own items after it (and how Markdrop finds them in Slack), and what\nthe first one would read. Nothing is sent, and Slack isn't asked.","operationId":"action_items_preview_api_v1_slack_action_items_preview_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/link/start":{"post":{"tags":["slack"],"summary":"Start linking my Slack account","operationId":"link_start_api_v1_slack_link_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkStartIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/link/info":{"get":{"tags":["slack"],"summary":"The Slack workspace a link page is for","operationId":"link_info_api_v1_slack_link_info_get","parameters":[{"name":"team_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Z0-9]{3,20}$","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/link/finish":{"post":{"tags":["slack"],"summary":"Finish linking my Slack account","operationId":"link_finish_api_v1_slack_link_finish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__slack__CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/link":{"delete":{"tags":["slack"],"summary":"Unlink my Slack account","operationId":"unlink_api_v1_slack_link_delete","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/me":{"get":{"tags":["slack"],"summary":"My Slack notifications","description":"Off by default. ``teams``: the Slack workspaces connected to Markdrop workspaces you belong to,\nand whether Markdrop found you there.","operationId":"me_api_v1_slack_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/slack/me/notifications":{"put":{"tags":["slack"],"summary":"Turn my Slack notifications on or off","description":"On: Markdrop looks you up by your own sign-in email in each connected Slack workspace\n(``results`` says what it found per team; nothing about any other address). Only you can turn\nyours on.","operationId":"me_notifications_api_v1_slack_me_notifications_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/me/prefs":{"patch":{"tags":["slack"],"summary":"My Slack notifications per kind","operationId":"prefs_api_v1_slack_me_prefs_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrefsIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/slack/meetings/{meeting_id}/post":{"post":{"tags":["slack"],"summary":"Post a meeting to Slack","description":"Who can edit the meeting's page may post it (again) to the workspace's meetings channel. The\nchannel rule still applies: a meeting the whole channel may not see is never posted.","operationId":"post_meeting_api_v1_slack_meetings__meeting_id__post_post","parameters":[{"name":"meeting_id","in":"path","required":true,"schema":{"type":"string","title":"Meeting Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/status":{"get":{"tags":["jira"],"summary":"Jira connection status","operationId":"status_api_v1_jira_status_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/connect/start":{"post":{"tags":["jira"],"summary":"Start connecting Jira","operationId":"connect_start_api_v1_jira_connect_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__jira__StartIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/connect/finish":{"post":{"tags":["jira"],"summary":"Finish connecting Jira","operationId":"connect_finish_api_v1_jira_connect_finish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__jira__CodeIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/sites":{"get":{"tags":["jira"],"summary":"Jira sites my connection reaches","operationId":"sites_api_v1_jira_sites_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/projects":{"get":{"tags":["jira"],"summary":"Jira projects","operationId":"projects_api_v1_jira_projects_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Cloud Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue-types":{"get":{"tags":["jira"],"summary":"Jira issue types of a project","operationId":"issue_types_api_v1_jira_issue_types_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}},{"name":"project","in":"query","required":true,"schema":{"type":"string","maxLength":20,"title":"Project"}},{"name":"cloud_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Cloud Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/site":{"put":{"tags":["jira"],"summary":"Connect the workspace's Jira site","operationId":"set_site_api_v1_jira_site_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["jira"],"summary":"Disconnect the workspace's Jira site","operationId":"delete_site_api_v1_jira_site_delete","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/me":{"get":{"tags":["jira"],"summary":"My Atlassian connection","operationId":"me_api_v1_jira_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["jira"],"summary":"Disconnect my Atlassian account","operationId":"me_delete_api_v1_jira_me_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/jira/page":{"get":{"tags":["jira"],"summary":"Jira chips on a page","operationId":"page_api_v1_jira_page_get","parameters":[{"name":"slug","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/draft":{"post":{"tags":["jira"],"summary":"Draft a Jira issue from an item","operationId":"draft_api_v1_jira_draft_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/draft/all":{"post":{"tags":["jira"],"summary":"Draft Jira issues for a page's open action items","operationId":"draft_all_api_v1_jira_draft_all_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issues":{"post":{"tags":["jira"],"summary":"Create a Jira issue from an item","operationId":"create_api_v1_jira_issues_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issues/bulk":{"post":{"tags":["jira"],"summary":"Create several Jira issues from a page's items","operationId":"create_bulk_api_v1_jira_issues_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/links":{"post":{"tags":["jira"],"summary":"Link an existing Jira issue to an item","operationId":"link_api_v1_jira_links_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LinkIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/links/{link_id}":{"delete":{"tags":["jira"],"summary":"Unlink a Jira issue","operationId":"unlink_api_v1_jira_links__link_id__delete","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/links/{link_id}/retry":{"post":{"tags":["jira"],"summary":"Sync a linked to-do to Jira again","operationId":"retry_api_v1_jira_links__link_id__retry_post","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","title":"Link Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/lookup":{"post":{"tags":["jira"],"summary":"Live chips for pasted Jira links","operationId":"lookup_api_v1_jira_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookupIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/team/{workspace_id}":{"get":{"tags":["jira"],"summary":"Jira on the Team board","operationId":"team_api_v1_jira_team__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","title":"Workspace Id"}},{"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"}}}}}}},"/api/v1/jira/team/{workspace_id}/people/{user_id}":{"get":{"tags":["jira"],"summary":"A person's Jira issues","operationId":"team_person_api_v1_jira_team__workspace_id__people__user_id__get","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"}}}}}}},"/api/v1/jira/pages/{slug}/items":{"get":{"tags":["jira"],"summary":"Jira chips and cards on a page, for this viewer","operationId":"page_items_api_v1_jira_pages__slug__items_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/pages/{slug}/list":{"post":{"tags":["jira"],"summary":"One page of a Jira list block (as you)","operationId":"page_list_api_v1_jira_pages__slug__list_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/pages/{slug}/remember":{"post":{"tags":["jira"],"summary":"Remember an issue put on a page (its snapshot)","operationId":"page_remember_api_v1_jira_pages__slug__remember_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RememberIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/pages/{slug}/threads":{"get":{"tags":["jira"],"summary":"Discussions on a page linked to Jira issues","operationId":"page_threads_api_v1_jira_pages__slug__threads_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/pages/{slug}/threads/{thread_id}/draft":{"post":{"tags":["jira"],"summary":"Draft a Jira issue from a discussion","operationId":"thread_draft_api_v1_jira_pages__slug__threads__thread_id__draft_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadDraftIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/pages/{slug}/threads/{thread_id}/issue":{"post":{"tags":["jira"],"summary":"Create a Jira issue from a discussion","operationId":"thread_issue_api_v1_jira_pages__slug__threads__thread_id__issue_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadIssueIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/pages/{slug}/threads/{thread_id}/link":{"post":{"tags":["jira"],"summary":"Link a discussion to a Jira issue","operationId":"thread_link_api_v1_jira_pages__slug__threads__thread_id__link_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ThreadLinkIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["jira"],"summary":"Unlink a discussion from its Jira issue","operationId":"thread_unlink_api_v1_jira_pages__slug__threads__thread_id__link_delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}},{"name":"x-read-password","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Read-Password"}},{"name":"x-markdrop-workspace","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Markdrop-Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/search":{"get":{"tags":["jira"],"summary":"Find Jira issues (the editor's picker)","operationId":"search_api_v1_jira_search_get","parameters":[{"name":"site","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$","title":"Site"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/priorities":{"get":{"tags":["jira"],"summary":"A Jira site's priorities","operationId":"priorities_api_v1_jira_priorities_get","parameters":[{"name":"site","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue/{key}":{"get":{"tags":["jira"],"summary":"A Jira issue, fresh (as you)","operationId":"issue_api_v1_jira_issue__key__get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"site","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["jira"],"summary":"Edit an issue's title, priority or due date (as you)","operationId":"edit_api_v1_jira_issue__key__patch","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EditIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue/{key}/transitions":{"get":{"tags":["jira"],"summary":"The workflow steps you can take on an issue","operationId":"transitions_api_v1_jira_issue__key__transitions_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"site","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$","title":"Site"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue/{key}/transition":{"post":{"tags":["jira"],"summary":"Move an issue (as you)","operationId":"transition_api_v1_jira_issue__key__transition_post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransitionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue/{key}/assignable":{"get":{"tags":["jira"],"summary":"People an issue can be assigned to","operationId":"assignable_api_v1_jira_issue__key__assignable_get","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"site","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$","title":"Site"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":100,"default":"","title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue/{key}/assignee":{"put":{"tags":["jira"],"summary":"Assign an issue (as you)","operationId":"assignee_api_v1_jira_issue__key__assignee_put","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__jira_pages__AssigneeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/jira/issue/{key}/comment":{"post":{"tags":["jira"],"summary":"Comment on an issue in Jira (as you)","operationId":"comment_api_v1_jira_issue__key__comment_post","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/status":{"get":{"tags":["zoom"],"summary":"Zoom connection status","operationId":"status_api_v1_zoom_status_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/connection":{"put":{"tags":["zoom"],"summary":"Connect Zoom (a Server-to-Server OAuth app)","operationId":"put_connection_api_v1_zoom_connection_put","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["zoom"],"summary":"Disconnect Zoom","operationId":"delete_connection_api_v1_zoom_connection_delete","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}},{"name":"delete_meetings","in":"query","required":false,"schema":{"type":"boolean","description":"Also delete the meetings imported from Zoom (to the Trash).","default":false,"title":"Delete Meetings"},"description":"Also delete the meetings imported from Zoom (to the Trash)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/connect/start":{"post":{"tags":["zoom"],"summary":"Start connecting Zoom (Markdrop's Marketplace app)","operationId":"connect_start_api_v1_zoom_connect_start_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__zoom__StartIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/connect/finish":{"post":{"tags":["zoom"],"summary":"Finish connecting Zoom (Markdrop's Marketplace app)","operationId":"connect_finish_api_v1_zoom_connect_finish_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FinishIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/team":{"put":{"tags":["zoom"],"summary":"The team Zoom meetings go to","operationId":"put_team_api_v1_zoom_team_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/recordings":{"get":{"tags":["zoom"],"summary":"Recorded Zoom meetings to import","operationId":"recordings_api_v1_zoom_recordings_get","parameters":[{"name":"workspace_id","in":"query","required":true,"schema":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":366,"minimum":1},{"type":"null"}],"default":30,"title":"Days"}},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"From"}},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/zoom/import":{"post":{"tags":["zoom"],"summary":"Import recorded Zoom meetings","operationId":"import__api_v1_zoom_import_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImportIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ask/home":{"get":{"tags":["ask"],"summary":"Ask Home","description":"What the home's Ask box needs: whether AI can answer now, suggested questions, recent ones.","operationId":"ask_home_api_v1_ask_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/ask":{"post":{"tags":["ask"],"summary":"Ask","description":"Ask a question (a follow-up with ``thread_id``); the answer streams as Server-Sent Events.","operationId":"ask_api_v1_ask_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__routers__ask__AskBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ask/context":{"get":{"tags":["ask"],"summary":"Ask Context","description":"What the assistant offers where you are: its scopes (This doc, Meetings, This folder, Workspace,\nEverything) for things you can open, the default one, the workspace's meeting series, whether you\ncan insert answers into the doc, and whether AI can answer now (for meetings and for everything else).","operationId":"ask_context_api_v1_ask_context_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Workspace"}},{"name":"folder","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Folder"}},{"name":"meeting","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Meeting"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ask/suggestions":{"get":{"tags":["ask"],"summary":"Suggestions","description":"Suggested questions for Ask. With ``workspace``: its team questions, refreshed from what happened\nthere in the last 7 days (meetings and pages every member can read; one list for all members), and\nyours (your action items, your latest meeting). Without: yours, across your workspaces.","operationId":"suggestions_api_v1_ask_suggestions_get","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Workspace"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ask/threads":{"get":{"tags":["ask"],"summary":"List Threads","description":"Your recent questions, newest first.","operationId":"list_threads_api_v1_ask_threads_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ask"],"summary":"Clear Threads","operationId":"clear_threads_api_v1_ask_threads_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/ask/threads/{thread_id}":{"get":{"tags":["ask"],"summary":"Get Thread","description":"One conversation, its sources decided again for you now.","operationId":"get_thread_api_v1_ask_threads__thread_id__get","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["ask"],"summary":"Delete Thread","operationId":"delete_thread_api_v1_ask_threads__thread_id__delete","parameters":[{"name":"thread_id","in":"path","required":true,"schema":{"type":"string","title":"Thread Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/home":{"get":{"tags":["home"],"summary":"Get Home","description":"What the home shows, decided for you: unread notifications and access requests waiting on you\n(``attention``), the open to-dos that mention you in pages you can read (``actions``; ``can_tick``\nwhen you may edit the page), the latest meetings across your workspaces (``meetings``), your\nworkspaces with people, item and meeting counts (``workspaces``) and whether Google Meet is\nconnected (``meet``). No AI.","operationId":"get_home_api_v1_home_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/home/actions/tick":{"post":{"tags":["home"],"summary":"Tick Action","description":"Mark one of your to-dos done (``- [ ]`` → ``- [x]``, found by its block id) through the normal\nsave path; ``done: false`` opens it again. 404: the page or to-do is gone (or you can't open it);\n403: you can't edit the page, or the to-do doesn't mention you; 409: already that way; 423: someone\nis editing the page.","operationId":"tick_action_api_v1_home_actions_tick_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TickBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/previews":{"post":{"tags":["home"],"summary":"My Previews","description":"Card previews (as ``POST /workspaces/{id}/items/previews``) for items anywhere: your own, shared\nwith you, in any workspace. Each answers ``locked`` unless you can open it right now.","operationId":"my_previews_api_v1_me_previews_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewsBody"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/oauth/requests/{request_id}":{"get":{"tags":["oauth"],"summary":"Get Authorization Request","operationId":"get_authorization_request_api_v1_oauth_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"}}}}}}},"/api/v1/oauth/requests/{request_id}/decision":{"post":{"tags":["oauth"],"summary":"Decide Authorization Request","operationId":"decide_authorization_request_api_v1_oauth_requests__request_id__decision_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/Decision"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/me/connections":{"get":{"tags":["oauth"],"summary":"List Connections","operationId":"list_connections_api_v1_me_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/me/connections/{client_id}":{"delete":{"tags":["oauth"],"summary":"Disconnect","operationId":"disconnect_api_v1_me_connections__client_id__delete","parameters":[{"name":"client_id","in":"path","required":true,"schema":{"type":"string","title":"Client Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/mcp":{"get":{"tags":["mcp"],"summary":"Mcp Get","operationId":"mcp_get_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["mcp"],"summary":"Mcp Post","operationId":"mcp_post_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"tags":["mcp"],"summary":"Mcp Delete","operationId":"mcp_delete_mcp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Accept":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name"},"visibility":{"type":"string","enum":["open","private"],"title":"Visibility","default":"open"},"lead_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Lead Ids"},"icon":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","enum":["blue","green","amber","red","violet","pink","teal","gray"]},{"type":"null"}],"title":"Color"}},"type":"object","title":"Accept"},"AcceptIn":{"properties":{"resolve":{"type":"boolean","title":"Resolve","default":true}},"type":"object","title":"AcceptIn"},"AccessRequestCreate":{"properties":{"message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Message"},"role":{"type":"string","enum":["viewer","editor"],"title":"Role","default":"viewer"}},"type":"object","title":"AccessRequestCreate"},"AccessRequestDecision":{"properties":{"decision":{"type":"string","enum":["view","edit","decline"],"title":"Decision"}},"type":"object","required":["decision"],"title":"AccessRequestDecision"},"AccessResponse":{"properties":{"level":{"type":"string","enum":["private","link","workspace"],"title":"Level"},"allow_resharing":{"type":"boolean","title":"Allow Resharing"},"is_password_protected":{"type":"boolean","title":"Is Password Protected"},"encrypted":{"type":"boolean","title":"Encrypted"},"in_workspace":{"type":"boolean","title":"In Workspace"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"workspace_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Name"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"can":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Can"},"your_role":{"type":"string","enum":["owner","editor","viewer"],"title":"Your Role"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"your_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Your Email"},"your_grant":{"anyOf":[{"type":"string","enum":["editor","viewer"]},{"type":"null"}],"title":"Your Grant"},"can_manage":{"type":"boolean","title":"Can Manage"},"can_share":{"type":"boolean","title":"Can Share"},"grants":{"items":{"$ref":"#/components/schemas/GrantResponse"},"type":"array","title":"Grants"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"show_presence":{"type":"boolean","title":"Show Presence","default":true},"comments_eligible":{"type":"boolean","title":"Comments Eligible","default":false},"comments_enabled":{"type":"boolean","title":"Comments Enabled","default":true},"comments_public":{"type":"boolean","title":"Comments Public","default":false}},"type":"object","required":["level","allow_resharing","is_password_protected","encrypted","in_workspace","your_role","can_manage","can_share","grants"],"title":"AccessResponse"},"AccessSync":{"properties":{"state":{"type":"string","enum":["applying","done"],"title":"State"},"pending":{"type":"integer","title":"Pending","default":0},"total":{"type":"integer","title":"Total","default":0},"want":{"type":"boolean","title":"Want","default":false}},"type":"object","required":["state"],"title":"AccessSync","description":"A sign-in change (Team/Open ⇄ Locked) still being carried through to\nstored files, page images and cached pages. The gate itself holds from the\nmoment the setting is saved; this is what the settings page shows as\n\"Applying to N items…\"."},"ActionItemsBody":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":14000},{"type":"null"}],"title":"Text"}},"type":"object","title":"ActionItemsBody"},"AddBody":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/BackfillSource"},"type":"array","maxItems":25,"minItems":1,"title":"Sources"},"tz_offset_min":{"type":"integer","maximum":840.0,"minimum":-840.0,"title":"Tz Offset Min","default":0}},"type":"object","required":["sources"],"title":"AddBody"},"AltTextBody":{"properties":{"asset_id":{"type":"string","maxLength":300,"title":"Asset Id"}},"type":"object","required":["asset_id"],"title":"AltTextBody"},"AnchorIn":{"properties":{"type":{"type":"string","enum":["text","block","page"],"title":"Type"},"block_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Block Id"},"block_text":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Block Text"},"quote":{"anyOf":[{"$ref":"#/components/schemas/QuoteIn"},{"type":"null"}]},"start":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Start"}},"type":"object","required":["type"],"title":"AnchorIn"},"AnswerFeedbackBody":{"properties":{"request_id":{"type":"string","pattern":"^[a-f0-9]{32}$","title":"Request Id"},"helpful":{"type":"boolean","title":"Helpful"},"comment":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Comment"},"site":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Site"}},"type":"object","required":["request_id","helpful"],"title":"AnswerFeedbackBody"},"ApiTokenCreateResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"token":{"type":"string","title":"Token"}},"type":"object","required":["id","name","prefix","created_at","token"],"title":"ApiTokenCreateResponse"},"ApiTokenItem":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"prefix":{"type":"string","title":"Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"}},"type":"object","required":["id","name","prefix","created_at"],"title":"ApiTokenItem"},"ApiTokenListResponse":{"properties":{"tokens":{"items":{"$ref":"#/components/schemas/ApiTokenItem"},"type":"array","title":"Tokens"}},"type":"object","required":["tokens"],"title":"ApiTokenListResponse"},"Apply":{"properties":{"moves":{"items":{"$ref":"#/components/schemas/Move"},"type":"array","maxItems":1000,"title":"Moves"}},"type":"object","required":["moves"],"title":"Apply"},"ApplyIn":{"properties":{"instruction":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Instruction"}},"type":"object","title":"ApplyIn"},"ArtifactCreateRequest":{"properties":{"blob_key":{"type":"string","maxLength":300,"minLength":1,"title":"Blob Key"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Filename"},"custom_slug":{"anyOf":[{"type":"string","maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}],"title":"Custom Slug"},"expires_in":{"type":"string","enum":["never","1d","7d","30d","custom"],"title":"Expires In","default":"never"},"custom_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Expires At"},"read_password":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Read Password"},"access_level":{"type":"string","enum":["private","link","workspace"],"title":"Access Level","default":"link"},"workspace":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Workspace"},"folder":{"anyOf":[{"type":"string","maxLength":400,"minLength":1},{"type":"null"}],"title":"Folder"}},"type":"object","required":["blob_key"],"title":"ArtifactCreateRequest","description":"Step 2: confirm an uploaded blob and mint the shareable document."},"ArtifactCreateResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"kind":{"type":"string","title":"Kind","default":"artifact"},"mime":{"type":"string","title":"Mime"},"renderer":{"type":"string","title":"Renderer"},"type_label":{"type":"string","title":"Type Label"},"size_bytes":{"type":"integer","title":"Size Bytes"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"artifact_url":{"type":"string","title":"Artifact Url"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"markdrop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdrop Url"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"download_url":{"type":"string","title":"Download Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"captions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Url"},"captions_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Name"},"media":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Media"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"views":{"type":"integer","title":"Views","default":0},"is_password_protected":{"type":"boolean","title":"Is Password Protected","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"edit_secret":{"type":"string","title":"Edit Secret"},"workspace_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Error"}},"type":"object","required":["slug","url","title","mime","renderer","type_label","size_bytes","artifact_url","download_url","created_at","updated_at","edit_secret"],"title":"ArtifactCreateResponse"},"ArtifactPasteRequest":{"properties":{"content":{"type":"string","minLength":1,"title":"Content"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"custom_slug":{"anyOf":[{"type":"string","maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}],"title":"Custom Slug"},"expires_in":{"type":"string","enum":["never","1d","7d","30d","custom"],"title":"Expires In","default":"never"},"custom_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Expires At"},"read_password":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Read Password"},"access_level":{"type":"string","enum":["private","link"],"title":"Access Level","default":"link"}},"type":"object","required":["content"],"title":"ArtifactPasteRequest","description":"Paste-an-HTML-page shortcut — no presigned round trip for small pages."},"ArtifactReplaceRequest":{"properties":{"blob_key":{"type":"string","maxLength":300,"minLength":1,"title":"Blob Key"},"filename":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Filename"}},"type":"object","required":["blob_key"],"title":"ArtifactReplaceRequest","description":"Swap the underlying file while keeping the slug, password and expiry."},"ArtifactResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"kind":{"type":"string","title":"Kind","default":"artifact"},"mime":{"type":"string","title":"Mime"},"renderer":{"type":"string","title":"Renderer"},"type_label":{"type":"string","title":"Type Label"},"size_bytes":{"type":"integer","title":"Size Bytes"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"artifact_url":{"type":"string","title":"Artifact Url"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"markdrop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdrop Url"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"download_url":{"type":"string","title":"Download Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"captions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Url"},"captions_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Name"},"media":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Media"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"views":{"type":"integer","title":"Views","default":0},"is_password_protected":{"type":"boolean","title":"Is Password Protected","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false}},"type":"object","required":["slug","url","title","mime","renderer","type_label","size_bytes","artifact_url","download_url","created_at","updated_at"],"title":"ArtifactResponse"},"ArtifactSettingsRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"read_password":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Read Password"},"remove_password":{"type":"boolean","title":"Remove Password","default":false},"expires_in":{"anyOf":[{"type":"string","enum":["never","1h","1d","7d","30d","custom"]},{"type":"null"}],"title":"Expires In"},"custom_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Expires At"}},"type":"object","title":"ArtifactSettingsRequest","description":"Owner-editable settings. Every field is optional — omitted means unchanged.\n\nSeparate from ``DocumentUpdate`` because that schema requires ``content``,\nwhich an artifact doesn't have (its bytes live in R2)."},"ArtifactStatusResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"origin_isolated":{"type":"boolean","title":"Origin Isolated"},"origin_separate_site":{"type":"boolean","title":"Origin Separate Site","default":false},"max_file_bytes":{"type":"integer","title":"Max File Bytes"},"max_video_bytes":{"type":"integer","title":"Max Video Bytes","default":0},"quota_bytes":{"type":"integer","title":"Quota Bytes"},"used_bytes":{"type":"integer","title":"Used Bytes","default":0},"accepted_types":{"items":{"type":"string"},"type":"array","title":"Accepted Types","default":[]}},"type":"object","required":["configured","origin_isolated","max_file_bytes","quota_bytes"],"title":"ArtifactStatusResponse","description":"Drives UI gating — the feature stays hidden until R2 is wired up."},"ArtifactUploadUrlRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_type":{"type":"string","maxLength":255,"title":"Content Type"},"size_bytes":{"type":"integer","minimum":1.0,"title":"Size Bytes"},"target_slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Target Slug"}},"type":"object","required":["filename","content_type","size_bytes"],"title":"ArtifactUploadUrlRequest","description":"Step 1 of the upload: ask for a presigned PUT."},"ArtifactUploadUrlResponse":{"properties":{"upload_url":{"type":"string","title":"Upload Url"},"blob_key":{"type":"string","title":"Blob Key"},"mime":{"type":"string","title":"Mime"},"required_content_type":{"type":"string","title":"Required Content Type"},"expires_in":{"type":"integer","title":"Expires In"}},"type":"object","required":["upload_url","blob_key","mime","required_content_type","expires_in"],"title":"ArtifactUploadUrlResponse"},"AskAllBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"},"question":{"type":"string","maxLength":600,"minLength":1,"title":"Question"},"series":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Series"},"since":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Since"},"until":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Until"},"history":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":6},{"type":"null"}],"title":"History"},"thread_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["workspace","question"],"title":"AskAllBody"},"AskIn":{"properties":{"question":{"type":"string","maxLength":1000,"minLength":1,"title":"Question"}},"type":"object","required":["question"],"title":"AskIn"},"BackfillSource":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"text":{"anyOf":[{"type":"string","maxLength":1500000},{"type":"null"}],"title":"Text"},"data_b64":{"anyOf":[{"type":"string","maxLength":5333349},{"type":"null"}],"title":"Data B64"},"google_file_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Google File Id"},"origin":{"anyOf":[{"type":"string","enum":["paste","upload"]},{"type":"null"}],"title":"Origin"},"created":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Created"}},"type":"object","title":"BackfillSource"},"BatchLevelUpdate":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Slugs"},"level":{"type":"string","enum":["private","link","workspace"],"title":"Level"}},"type":"object","required":["slugs","level"],"title":"BatchLevelUpdate"},"Body_comment_attachment_upload_api_v1_documents__slug__comments_attachments_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_comment_attachment_upload_api_v1_documents__slug__comments_attachments_post"},"Body_upload_branding_asset_api_v1_workspaces__workspace_id__branding__kind__post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_branding_asset_api_v1_workspaces__workspace_id__branding__kind__post"},"Body_upload_page_asset_api_v1_documents__slug__assets_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_page_asset_api_v1_documents__slug__assets_post"},"BrandingAssetResponse":{"properties":{"url":{"type":"string","title":"Url"},"kind":{"type":"string","enum":["favicon","logo"],"title":"Kind"}},"type":"object","required":["url","kind"],"title":"BrandingAssetResponse"},"BrandingPayload":{"properties":{"site_name":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Site Name"},"favicon_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Favicon Url"},"logo_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Logo Url"},"accent_color":{"anyOf":[{"type":"string","pattern":"^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$"},{"type":"null"}],"title":"Accent Color"},"hide_markdrop_branding":{"type":"boolean","title":"Hide Markdrop Branding","default":false},"logo_well":{"anyOf":[{"type":"string","enum":["light","dark","checker"]},{"type":"null"}],"title":"Logo Well"}},"type":"object","title":"BrandingPayload","description":"Every field optional — an unset workspace looks exactly like Markdrop."},"BulkIn":{"properties":{"slug":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","title":"Slug"},"items":{"items":{"$ref":"#/components/schemas/BulkItem"},"type":"array","maxItems":25,"minItems":1,"title":"Items"}},"type":"object","required":["slug","items"],"title":"BulkIn"},"BulkItem":{"properties":{"block":{"type":"string","pattern":"^b-[0-9A-Za-z_-]{1,40}$","title":"Block"},"fields":{"$ref":"#/components/schemas/Fields"}},"type":"object","required":["block","fields"],"title":"BulkItem"},"BulkSettings":{"properties":{"settings":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Settings"},"delete":{"items":{"type":"string"},"type":"array","maxItems":9,"title":"Delete"},"slugs":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Slugs"},"use_defaults":{"type":"boolean","title":"Use Defaults","default":false}},"type":"object","required":["slugs"],"title":"BulkSettings"},"CaptionsRequest":{"properties":{"file_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"File Name"},"content":{"type":"string","maxLength":2200000,"minLength":1,"title":"Content"}},"type":"object","required":["content"],"title":"CaptionsRequest","description":"A video's captions: the text of a .vtt or .srt file (services/captions.py)."},"CheckBody":{"properties":{"page":{"type":"string","maxLength":200,"title":"Page"},"heading":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Heading"},"section":{"type":"string","maxLength":8000,"title":"Section"},"facts":{"items":{"type":"string"},"type":"array","maxItems":6,"minItems":1,"title":"Facts"}},"type":"object","required":["page","section","facts"],"title":"CheckBody"},"CheckNowBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"}},"type":"object","required":["workspace"],"title":"CheckNowBody"},"ClickBody":{"properties":{"log_id":{"type":"string","maxLength":40,"minLength":1,"title":"Log Id"}},"type":"object","required":["log_id"],"title":"ClickBody"},"CommentIn":{"properties":{"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"},"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"}},"type":"object","required":["body"],"title":"CommentIn"},"CommentSettingsIn":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"public":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public"}},"type":"object","title":"CommentSettingsIn"},"ConnectBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"},"restricted":{"type":"boolean","title":"Restricted","default":false},"backfill_days":{"type":"integer","enum":[0,7,30,90],"title":"Backfill Days","default":0},"tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"},"include_shared":{"type":"boolean","title":"Include Shared","default":true}},"type":"object","required":["workspace"],"title":"ConnectBody"},"ConnectionIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"},"account_id":{"type":"string","maxLength":128,"minLength":1,"title":"Account Id"},"client_id":{"type":"string","maxLength":128,"minLength":1,"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Client Secret","description":"Blank: keep the saved one."},"secret_token":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Secret Token","description":"The event subscription's Secret Token. Blank: keep the saved one."},"team_id":{"anyOf":[{"type":"string","pattern":"^([0-9a-f]{24})?$"},{"type":"null"}],"title":"Team Id"}},"type":"object","required":["workspace_id","account_id","client_id"],"title":"ConnectionIn"},"ContactItem":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"source":{"type":"string","enum":["shared","workspace"],"title":"Source"}},"type":"object","required":["email","source"],"title":"ContactItem","description":"Someone the signed-in user may be offered as a share suggestion.\n\nOnly ever drawn from people the user already has a relationship with — see\n`routers.me.list_contacts`. Never a global user search."},"ContactListResponse":{"properties":{"contacts":{"items":{"$ref":"#/components/schemas/ContactItem"},"type":"array","title":"Contacts"}},"type":"object","required":["contacts"],"title":"ContactListResponse"},"ContextBody":{"properties":{"heading":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Heading"},"selection":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Selection"}},"type":"object","title":"ContextBody"},"CorrectBody":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Text","description":"The right version (optional): shown instead of the line."}},"type":"object","title":"CorrectBody"},"CreateBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"},"quiet":{"type":"boolean","title":"Quiet","default":true},"restricted":{"type":"boolean","title":"Restricted","default":false}},"type":"object","required":["workspace"],"title":"CreateBody"},"CreateIn":{"properties":{"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"block":{"anyOf":[{"type":"string","pattern":"^b-[0-9A-Za-z_-]{1,40}$"},{"type":"null"}],"title":"Block"},"offset":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Offset"},"selection":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Selection"},"fact_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Fact Id"},"project":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Project"},"fields":{"$ref":"#/components/schemas/Fields"}},"type":"object","required":["fields"],"title":"CreateIn"},"Decision":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"type":"object","required":["approve"],"title":"Decision"},"Digest":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":true},"email":{"type":"boolean","title":"Email","default":true},"slack":{"type":"boolean","title":"Slack","default":true}},"type":"object","title":"Digest"},"DigestIn":{"properties":{"on":{"type":"boolean","title":"On"}},"type":"object","required":["on"],"title":"DigestIn"},"DnsProviderHint":{"properties":{"detected":{"type":"boolean","title":"Detected","default":false},"provider_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Id"},"provider_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Name"},"panel_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Panel Url"},"host_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Host Field"},"value_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Field"},"extras":{"items":{"additionalProperties":{"type":"string"},"type":"object"},"type":"array","title":"Extras","default":[]},"record_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Record Host"},"target_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Host"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"nameservers":{"items":{"type":"string"},"type":"array","title":"Nameservers","default":[]}},"type":"object","title":"DnsProviderHint","description":"Who runs this domain's DNS, so the instructions can use their words.\n\nEverything is optional: an unrecognised provider falls back to the generic\ninstructions, which is what every customer sees today."},"DnsRecord":{"properties":{"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"}},"type":"object","required":["type","name","value"],"title":"DnsRecord"},"DocumentCopyRequest":{"properties":{"read_password":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Read Password"}},"type":"object","title":"DocumentCopyRequest"},"DocumentCreate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"content":{"type":"string","maxLength":500000,"minLength":1,"title":"Content"},"custom_slug":{"anyOf":[{"type":"string","maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}],"title":"Custom Slug"},"expires_in":{"type":"string","enum":["never","1d","7d","30d","custom"],"title":"Expires In","default":"never"},"custom_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Expires At"},"read_password":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Read Password"},"encrypted":{"type":"boolean","title":"Encrypted","default":false},"access_level":{"type":"string","enum":["private","link","workspace"],"title":"Access Level","default":"link"},"workspace":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Workspace"},"folder":{"anyOf":[{"type":"string","maxLength":400,"minLength":1},{"type":"null"}],"title":"Folder"}},"type":"object","required":["content"],"title":"DocumentCreate"},"DocumentCreateResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"folder_path":{"items":{"type":"string"},"type":"array","title":"Folder Path","default":[]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"views":{"type":"integer","title":"Views","default":0},"rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rev"},"is_password_protected":{"type":"boolean","title":"Is Password Protected","default":false},"is_owned":{"type":"boolean","title":"Is Owned","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"},"google_doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Url"},"google_doc_stale":{"type":"boolean","title":"Google Doc Stale","default":false},"vscode_synced":{"type":"boolean","title":"Vscode Synced","default":false},"encrypted":{"type":"boolean","title":"Encrypted","default":false},"kind":{"type":"string","title":"Kind","default":"markdown"},"mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime"},"renderer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renderer"},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"artifact_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"captions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Url"},"captions_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Name"},"media":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Media"},"file_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Version"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"markdrop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdrop Url"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"access_level":{"type":"string","title":"Access Level","default":"link"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"can":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Can"},"read_ticket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Ticket"},"access_epoch":{"type":"integer","title":"Access Epoch","default":0},"presence_ticket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Presence Ticket"},"show_presence":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Presence"},"comments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Comments"},"editor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Editor"},"parent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parent"},"breadcrumbs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Breadcrumbs","default":[]},"children_count":{"type":"integer","title":"Children Count","default":0},"access_inherit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Access Inherit"},"page_path":{"items":{"type":"string"},"type":"array","title":"Page Path","default":[]},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"template":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Template"},"page":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page"},"page_properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page Properties"},"assets":{"additionalProperties":true,"type":"object","title":"Assets","default":{}},"cover_auto":{"type":"boolean","title":"Cover Auto","default":false},"cover_pending":{"type":"boolean","title":"Cover Pending","default":false},"meeting":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meeting"},"track":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Track"},"edit_secret":{"type":"string","title":"Edit Secret"},"workspace_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Error"}},"type":"object","required":["slug","url","title","content","created_at","updated_at","edit_secret"],"title":"DocumentCreateResponse"},"DocumentMoveRequest":{"properties":{"slug":{"type":"string","maxLength":50,"minLength":1,"title":"Slug"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["slug"],"title":"DocumentMoveRequest"},"DocumentResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"folder_path":{"items":{"type":"string"},"type":"array","title":"Folder Path","default":[]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"views":{"type":"integer","title":"Views","default":0},"rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Rev"},"is_password_protected":{"type":"boolean","title":"Is Password Protected","default":false},"is_owned":{"type":"boolean","title":"Is Owned","default":false},"is_owner":{"type":"boolean","title":"Is Owner","default":false},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref"},"google_doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Url"},"google_doc_stale":{"type":"boolean","title":"Google Doc Stale","default":false},"vscode_synced":{"type":"boolean","title":"Vscode Synced","default":false},"encrypted":{"type":"boolean","title":"Encrypted","default":false},"kind":{"type":"string","title":"Kind","default":"markdown"},"mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime"},"renderer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renderer"},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"artifact_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"captions_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Url"},"captions_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Captions Name"},"media":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Media"},"file_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Version"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"markdrop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdrop Url"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"access_level":{"type":"string","title":"Access Level","default":"link"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"can":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Can"},"read_ticket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Read Ticket"},"access_epoch":{"type":"integer","title":"Access Epoch","default":0},"presence_ticket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Presence Ticket"},"show_presence":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Presence"},"comments":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Comments"},"editor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Editor"},"parent":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Parent"},"breadcrumbs":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Breadcrumbs","default":[]},"children_count":{"type":"integer","title":"Children Count","default":0},"access_inherit":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Access Inherit"},"page_path":{"items":{"type":"string"},"type":"array","title":"Page Path","default":[]},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"},"template":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Template"},"page":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page"},"page_properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Page Properties"},"assets":{"additionalProperties":true,"type":"object","title":"Assets","default":{}},"cover_auto":{"type":"boolean","title":"Cover Auto","default":false},"cover_pending":{"type":"boolean","title":"Cover Pending","default":false},"meeting":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meeting"},"track":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Track"}},"type":"object","required":["slug","url","title","content","created_at","updated_at"],"title":"DocumentResponse"},"DocumentSettingsRequest":{"properties":{"read_password":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Read Password"},"remove_password":{"type":"boolean","title":"Remove Password","default":false},"expires_in":{"anyOf":[{"type":"string","enum":["never","1h","1d","7d","30d","custom"]},{"type":"null"}],"title":"Expires In"},"custom_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Expires At"}},"type":"object","title":"DocumentSettingsRequest","description":"``PATCH /documents/{slug}/settings``: a document's password and expiry\nwithout resending its content (the share dialog's \"More options\"). Every\nfield is optional; omitted means unchanged. ``read_password: \"\"`` removes\nthe password, like ``remove_password: true``."},"DocumentUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"content":{"type":"string","maxLength":500000,"minLength":1,"title":"Content"},"read_password":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Read Password"},"remove_password":{"type":"boolean","title":"Remove Password","default":false},"expires_in":{"anyOf":[{"type":"string","enum":["never","1h","1d","7d","30d","custom"]},{"type":"null"}],"title":"Expires In"},"custom_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Custom Expires At"},"base_rev":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Base Rev"}},"type":"object","required":["content"],"title":"DocumentUpdate"},"DomainCreate":{"properties":{"host":{"type":"string","maxLength":253,"minLength":3,"title":"Host"},"kind":{"type":"string","enum":["app","cdn"],"title":"Kind"}},"type":"object","required":["host","kind"],"title":"DomainCreate"},"DomainListResponse":{"properties":{"domains":{"items":{"$ref":"#/components/schemas/DomainResponse"},"type":"array","title":"Domains"}},"type":"object","required":["domains"],"title":"DomainListResponse"},"DomainResponse":{"properties":{"id":{"type":"string","title":"Id"},"host":{"type":"string","title":"Host"},"kind":{"type":"string","enum":["app","cdn"],"title":"Kind"},"status":{"type":"string","enum":["pending","verified","failed","lapsed"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"attached":{"type":"boolean","title":"Attached","default":false},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"dns_record_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Record Name"},"dns_record_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Record Type","default":"TXT"},"dns_record_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Record Value"},"dns_target_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Target Name"},"dns_target_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Target Type"},"dns_target_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dns Target Value"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"},"live":{"type":"boolean","title":"Live","default":false},"routing_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Routing Ok"},"txt_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Txt Ok"},"failures":{"type":"integer","title":"Failures","default":0},"first_failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Failed At"},"lapsed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Lapsed At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"apex_certain":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Apex Certain","default":true},"dns_routing_options":{"items":{"$ref":"#/components/schemas/DnsRecord"},"type":"array","title":"Dns Routing Options","default":[]},"hosting_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Provider"},"hosting_ready":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hosting Ready"},"hosting_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosting Message"},"hosting_records":{"items":{"$ref":"#/components/schemas/HostingRecord"},"type":"array","title":"Hosting Records","default":[]}},"type":"object","required":["id","host","kind","status","created_at"],"title":"DomainResponse"},"DomainSummary":{"properties":{"host":{"type":"string","title":"Host"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"status":{"type":"string","title":"Status","default":"pending"},"verified":{"type":"boolean","title":"Verified"},"primary":{"type":"boolean","title":"Primary"},"live":{"type":"boolean","title":"Live"},"txt_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Txt Ok"},"routing_ok":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Routing Ok"},"failures":{"type":"integer","title":"Failures","default":0}},"type":"object","required":["host","verified","primary","live"],"title":"DomainSummary"},"EditBody":{"properties":{"quiet":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Quiet"},"restricted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted"},"rows":{"anyOf":[{"items":{"$ref":"#/components/schemas/EditRow"},"type":"array","maxItems":200},{"type":"null"}],"title":"Rows"}},"type":"object","title":"EditBody"},"EditIn":{"properties":{"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"},"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"summary":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Summary"},"priority":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Priority"},"due":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Due"}},"type":"object","title":"EditIn"},"EditRow":{"properties":{"id":{"type":"string","maxLength":20,"title":"Id"},"title":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Title"},"date":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Date"},"series":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Series"},"include":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include"},"restricted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted"}},"type":"object","required":["id"],"title":"EditRow"},"EditorSwitchRequest":{"properties":{"editor":{"type":"string","enum":["blocks","classic"],"title":"Editor"}},"type":"object","required":["editor"],"title":"EditorSwitchRequest"},"EmailNotifyUpdate":{"properties":{"mention":{"anyOf":[{"type":"string","enum":["instant","hourly","daily","off"]},{"type":"null"}],"title":"Mention"},"signoff_requested":{"anyOf":[{"type":"string","enum":["instant","hourly","daily","off"]},{"type":"null"}],"title":"Signoff Requested"},"comment_mention":{"anyOf":[{"type":"string","enum":["instant","hourly","daily","off"]},{"type":"null"}],"title":"Comment Mention"},"comment_activity":{"anyOf":[{"type":"string","enum":["instant","hourly","daily","off"]},{"type":"null"}],"title":"Comment Activity"}},"type":"object","title":"EmailNotifyUpdate"},"EmailRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"EmailRequest"},"EmailVerifyRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"code":{"type":"string","title":"Code"}},"type":"object","required":["email","code"],"title":"EmailVerifyRequest"},"EmbedsRequest":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Slugs"}},"type":"object","required":["slugs"],"title":"EmbedsRequest"},"Endpoint":{"properties":{"endpoint":{"type":"string","maxLength":1024,"title":"Endpoint"}},"type":"object","required":["endpoint"],"title":"Endpoint"},"Favorite":{"properties":{"kind":{"type":"string","enum":["doc","project","team"],"title":"Kind"},"ref":{"type":"string","maxLength":80,"minLength":1,"title":"Ref"},"on":{"type":"boolean","title":"On","default":true}},"type":"object","required":["kind","ref"],"title":"Favorite"},"FeedbackCreate":{"properties":{"type":{"type":"string","enum":["bug","feature"],"title":"Type"},"message":{"type":"string","maxLength":4000,"minLength":3,"title":"Message"},"email":{"anyOf":[{"type":"string","maxLength":254},{"type":"null"}],"title":"Email"},"page_url":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Page Url"}},"type":"object","required":["type","message"],"title":"FeedbackCreate"},"Fields":{"properties":{"project":{"type":"string","maxLength":20,"minLength":1,"title":"Project"},"issue_type":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Issue Type"},"summary":{"type":"string","maxLength":400,"minLength":1,"title":"Summary"},"description":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Description","default":""},"priority":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Priority"},"assignee_user_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Assignee User Id"},"assignee_account_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Assignee Account Id"},"due":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Due"},"labels":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Labels"}},"type":"object","required":["project","summary"],"title":"Fields"},"FileInfoResponse":{"properties":{"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"markdrop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdrop Url"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"version":{"type":"integer","title":"Version"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"media":{"anyOf":[{"$ref":"#/components/schemas/MediaInfo"},{"type":"null"}]},"poster_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Poster Url"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"access":{"type":"string","title":"Access"}},"type":"object","required":["slug","url","content_type","size_bytes","version","updated_at","created_at","access"],"title":"FileInfoResponse"},"FileVersion":{"properties":{"version":{"type":"integer","title":"Version"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"content_type":{"type":"string","title":"Content Type"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"current":{"type":"boolean","title":"Current"},"media":{"anyOf":[{"$ref":"#/components/schemas/MediaInfo"},{"type":"null"}]},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"type":"object","required":["version","size_bytes","content_type","current"],"title":"FileVersion"},"FileVersionsResponse":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/FileVersion"},"type":"array","title":"Versions"}},"type":"object","required":["versions"],"title":"FileVersionsResponse"},"FinishIn":{"properties":{"code":{"type":"string","maxLength":2000,"minLength":1,"title":"Code"},"state":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"State","description":"From Markdrop's Connect Zoom; absent for installs started in the Zoom App Marketplace."},"workspace_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Workspace Id","description":"Without a state: the workspace to connect (admins)."},"team_id":{"anyOf":[{"type":"string","pattern":"^([0-9a-f]{24})?$"},{"type":"null"}],"title":"Team Id"}},"type":"object","required":["code"],"title":"FinishIn"},"FocusBody":{"properties":{"text":{"type":"string","maxLength":480,"title":"Text","default":""}},"type":"object","title":"FocusBody"},"FolderCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"on_conflict":{"type":"string","enum":["error","suffix"],"title":"On Conflict","description":"When the folder's address is already taken where it goes: `error` (default) returns 409 saying what holds it; `suffix` takes the next free address (name-2, name-3…).","default":"error"}},"type":"object","required":["name"],"title":"FolderCreate"},"FolderDefaultTemplate":{"properties":{"template":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Template"}},"type":"object","title":"FolderDefaultTemplate"},"FolderDeleteResponse":{"properties":{"unfiled_documents":{"type":"integer","title":"Unfiled Documents"},"trashed":{"type":"boolean","title":"Trashed","default":false},"trashed_documents":{"type":"integer","title":"Trashed Documents","default":0},"trashed_folders":{"type":"integer","title":"Trashed Folders","default":0}},"type":"object","required":["unfiled_documents"],"title":"FolderDeleteResponse"},"FolderListResponse":{"properties":{"folders":{"items":{"$ref":"#/components/schemas/FolderResponse"},"type":"array","title":"Folders"}},"type":"object","required":["folders"],"title":"FolderListResponse"},"FolderPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Slug"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"default_access":{"anyOf":[{"type":"string","enum":["private","workspace","link"]},{"type":"null"}],"title":"Default Access"},"on_conflict":{"type":"string","enum":["error","suffix"],"title":"On Conflict","description":"When the folder's address is already taken where it goes: `error` (default) returns 409 saying what holds it; `suffix` takes the next free address (name-2, name-3…).","default":"error"}},"type":"object","title":"FolderPatch"},"FolderResponse":{"properties":{"id":{"type":"string","title":"Id"},"workspace_id":{"type":"string","title":"Workspace Id"},"name":{"type":"string","title":"Name"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"slug":{"type":"string","title":"Slug","default":""},"path":{"items":{"type":"string"},"type":"array","title":"Path","default":[]}},"type":"object","required":["id","workspace_id","name","created_at","updated_at"],"title":"FolderResponse"},"FolderShare":{"properties":{"level":{"type":"string","enum":["link","workspace"],"title":"Level"}},"type":"object","required":["level"],"title":"FolderShare"},"FolderTeams":{"properties":{"team_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Team Ids"},"project_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Project Ids"},"apply_to_items":{"type":"boolean","title":"Apply To Items","default":true}},"type":"object","title":"FolderTeams"},"FolderUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"parent_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Id"},"reparent":{"type":"boolean","title":"Reparent","default":false},"on_conflict":{"type":"string","enum":["error","suffix"],"title":"On Conflict","description":"When the folder's address is already taken where it goes: `error` (default) returns 409 saying what holds it; `suffix` takes the next free address (name-2, name-3…).","default":"error"}},"type":"object","title":"FolderUpdate"},"GoogleConnectResponse":{"properties":{"auth_url":{"type":"string","title":"Auth Url"}},"type":"object","required":["auth_url"],"title":"GoogleConnectResponse"},"GoogleExportResponse":{"properties":{"google_doc_id":{"type":"string","title":"Google Doc Id"},"google_doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Url"},"synced_rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Synced Rev"},"rev":{"type":"integer","title":"Rev"}},"type":"object","required":["google_doc_id","google_doc_url","synced_rev","rev"],"title":"GoogleExportResponse"},"GoogleStatusResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"configured":{"type":"boolean","title":"Configured"}},"type":"object","required":["connected","configured"],"title":"GoogleStatusResponse"},"GrantCreate":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","enum":["viewer","editor"],"title":"Role","default":"viewer"},"notify":{"type":"boolean","title":"Notify","default":true},"message":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Message"}},"type":"object","required":["email"],"title":"GrantCreate"},"GrantResponse":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["viewer","editor"],"title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"granted_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Granted By Email"},"notified":{"type":"boolean","title":"Notified","default":false},"active":{"type":"boolean","title":"Active","default":true},"effective_role":{"anyOf":[{"type":"string","enum":["viewer","editor"]},{"type":"null"}],"title":"Effective Role"}},"type":"object","required":["email","role","created_at"],"title":"GrantResponse"},"GroupBody":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"member_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Member Ids"}},"type":"object","required":["name"],"title":"GroupBody"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HostingRecord":{"properties":{"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"value":{"type":"string","title":"Value"},"purpose":{"type":"string","enum":["certificate","ownership"],"title":"Purpose"},"needed":{"type":"boolean","title":"Needed","default":true}},"type":"object","required":["type","name","value","purpose"],"title":"HostingRecord","description":"A record the hosting provider validates by (Cloudflare for SaaS pre-validation)."},"ImportBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"},"sources":{"items":{"$ref":"#/components/schemas/SourceIn"},"type":"array","maxItems":6,"minItems":1,"title":"Sources"},"title":{"anyOf":[{"type":"string","maxLength":150},{"type":"null"}],"title":"Title"},"date":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Date"},"type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Type"},"restricted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted"},"wait":{"type":"boolean","title":"Wait","default":false},"team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Team Ids"},"project_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Project Ids"}},"type":"object","required":["workspace","sources"],"title":"ImportBody"},"ImportIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"},"uuids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Uuids"}},"type":"object","required":["workspace_id","uuids"],"title":"ImportIn"},"InviteAcceptResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"title":"Role"}},"type":"object","required":["workspace_id","workspace_name","role"],"title":"InviteAcceptResponse"},"InviteCreateRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"type":"string","enum":["admin","member","viewer"],"title":"Role","default":"member"}},"type":"object","required":["email"],"title":"InviteCreateRequest"},"InviteListResponse":{"properties":{"invitations":{"items":{"$ref":"#/components/schemas/InviteResponse"},"type":"array","title":"Invitations"}},"type":"object","required":["invitations"],"title":"InviteListResponse"},"InvitePreview":{"properties":{"workspace_name":{"type":"string","title":"Workspace Name"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"title":"Role"},"email":{"type":"string","title":"Email"},"invited_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By Name"},"status":{"type":"string","enum":["pending","accepted","declined","revoked","expired"],"title":"Status"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"signed_in_as":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Signed In As"},"email_matches":{"type":"boolean","title":"Email Matches","default":false},"already_member":{"type":"boolean","title":"Already Member","default":false},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"accent_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accent Color"},"logo_well":{"anyOf":[{"type":"string","enum":["light","dark","checker"]},{"type":"null"}],"title":"Logo Well"}},"type":"object","required":["workspace_name","role","email","status","expires_at"],"title":"InvitePreview","description":"What the person holding the link is shown before deciding.\n\nNames the workspace, the inviter and the address it was sent to, and nothing\nelse — in particular not who else is a member. The recipient already knows\ntheir own address; everything here was in the email they were sent."},"InviteResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"title":"Role"},"status":{"type":"string","enum":["pending","accepted","declined","revoked","expired"],"title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"invited_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Invited By Name"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"}},"type":"object","required":["id","email","role","status","created_at","expires_at"],"title":"InviteResponse","description":"The admin-facing view of an invitation. Deliberately has no token field:\nthe raw token exists for exactly as long as it takes to compose the email,\nand putting it in an API response would turn any workspace admin into a\ncredential oracle for an address they do not control."},"ItemIn":{"properties":{"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"block":{"anyOf":[{"type":"string","pattern":"^b-[0-9A-Za-z_-]{1,40}$"},{"type":"null"}],"title":"Block"},"offset":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Offset"},"selection":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Selection"},"fact_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Fact Id"},"project":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Project"}},"type":"object","title":"ItemIn"},"ItemTeams":{"properties":{"team_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Team Ids"},"project_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Project Ids"}},"type":"object","title":"ItemTeams"},"ItemsAdd":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Slugs"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"access":{"anyOf":[{"type":"string","enum":["link","private","workspace"]},{"type":"null"}],"title":"Access"}},"type":"object","required":["slugs"],"title":"ItemsAdd"},"ItemsMove":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":200,"minItems":1,"title":"Slugs"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["slugs"],"title":"ItemsMove"},"ItemsPreviews":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":12,"minItems":1,"title":"Slugs"}},"type":"object","required":["slugs"],"title":"ItemsPreviews"},"ItemsRemove":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Slugs"},"handles":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Handles"}},"type":"object","title":"ItemsRemove"},"Keys":{"properties":{"p256dh":{"type":"string","maxLength":200,"title":"P256Dh"},"auth":{"type":"string","maxLength":100,"title":"Auth"}},"type":"object","required":["p256dh","auth"],"title":"Keys"},"Leads":{"properties":{"lead_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Lead Ids"}},"type":"object","required":["lead_ids"],"title":"Leads"},"LevelUpdate":{"properties":{"level":{"type":"string","enum":["private","link","workspace"],"title":"Level"}},"type":"object","required":["level"],"title":"LevelUpdate"},"LibraryAddRequest":{"properties":{"document_id":{"type":"string","title":"Document Id"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","required":["document_id"],"title":"LibraryAddRequest"},"LibraryFolderRequest":{"properties":{"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"}},"type":"object","title":"LibraryFolderRequest"},"LineAdd":{"properties":{"text":{"type":"string","maxLength":600,"minLength":1,"title":"Text"},"kind":{"anyOf":[{"type":"string","enum":["shipped","decision","update","blocker","focus","note"]},{"type":"null"}],"title":"Kind"}},"type":"object","required":["text"],"title":"LineAdd"},"LineEdit":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Text"},"hidden":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hidden"}},"type":"object","title":"LineEdit"},"LinkBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"},"urls":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Urls"},"restricted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted"},"wait":{"type":"boolean","title":"Wait","default":false}},"type":"object","required":["workspace","urls"],"title":"LinkBody"},"LinkIn":{"properties":{"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"block":{"anyOf":[{"type":"string","pattern":"^b-[0-9A-Za-z_-]{1,40}$"},{"type":"null"}],"title":"Block"},"offset":{"anyOf":[{"type":"integer","maximum":5000000.0,"minimum":0.0},{"type":"null"}],"title":"Offset"},"selection":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Selection"},"fact_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Fact Id"},"project":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Project"},"key":{"type":"string","maxLength":300,"minLength":3,"title":"Key"}},"type":"object","required":["key"],"title":"LinkIn"},"LinkStartIn":{"properties":{"workspace_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Workspace Id"},"team_id":{"anyOf":[{"type":"string","pattern":"^[A-Z0-9]{3,20}$"},{"type":"null"}],"title":"Team Id"}},"type":"object","title":"LinkStartIn"},"ListIn":{"properties":{"jql":{"anyOf":[{"type":"string","maxLength":1500},{"type":"null"}],"title":"Jql"},"project":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Project"},"filter":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Filter"},"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"},"cols":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Cols"},"limit":{"anyOf":[{"type":"integer","maximum":100.0,"minimum":1.0},{"type":"null"}],"title":"Limit"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"page_token":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Page Token"}},"type":"object","title":"ListIn"},"LockKeepRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Title"},"content":{"type":"string","maxLength":2000000,"title":"Content"},"base_rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Rev"},"reason":{"type":"string","enum":["taken_over","lost","conflict"],"title":"Reason","default":"taken_over"}},"type":"object","required":["content"],"title":"LockKeepRequest","description":"An editor's unsaved text it can't save (its lock was taken over, or someone else holds the\npage now): kept as a version in the page's history (services/pages.keep_unsaved)."},"LookupIn":{"properties":{"urls":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Urls"}},"type":"object","title":"LookupIn"},"MarkRead":{"properties":{"ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Ids"},"all":{"type":"boolean","title":"All","default":false}},"type":"object","title":"MarkRead"},"MediaInfo":{"properties":{"duration_s":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Duration S"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"video_codec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Video Codec"},"audio_codec":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Codec"}},"type":"object","title":"MediaInfo"},"MemberListResponse":{"properties":{"members":{"items":{"$ref":"#/components/schemas/MemberResponse"},"type":"array","title":"Members"}},"type":"object","required":["members"],"title":"MemberListResponse"},"MemberResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"title":"Role"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["user_id","role","created_at"],"title":"MemberResponse"},"MemberRoleRequest":{"properties":{"role":{"type":"string","enum":["admin","member","viewer"],"title":"Role"}},"type":"object","required":["role"],"title":"MemberRoleRequest"},"Members":{"properties":{"user_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"minItems":1,"title":"User Ids"}},"type":"object","required":["user_ids"],"title":"Members"},"MessageEdit":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Mentions"}},"type":"object","required":["body"],"title":"MessageEdit"},"Move":{"properties":{"kind":{"type":"string","enum":["meeting","page","folder"],"title":"Kind"},"id":{"type":"string","maxLength":40,"minLength":1,"title":"Id"},"team_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Team Ids"}},"type":"object","required":["kind","id"],"title":"Move"},"MyDocListItem":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content_preview":{"type":"string","title":"Content Preview"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"views":{"type":"integer","title":"Views","default":0},"export_pdf_count":{"type":"integer","title":"Export Pdf Count","default":0},"copy_url_count":{"type":"integer","title":"Copy Url Count","default":0},"is_password_protected":{"type":"boolean","title":"Is Password Protected","default":false},"google_doc_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Google Doc Url"},"google_doc_stale":{"type":"boolean","title":"Google Doc Stale","default":false},"vscode_synced":{"type":"boolean","title":"Vscode Synced","default":false},"encrypted":{"type":"boolean","title":"Encrypted","default":false},"kind":{"type":"string","title":"Kind","default":"markdown"},"editor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Editor"},"mime":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime"},"renderer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renderer"},"type_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type Label"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"workspace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Id"},"folder_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Folder Id"},"folder_path":{"items":{"type":"string"},"type":"array","title":"Folder Path","default":[]},"access_level":{"type":"string","title":"Access Level","default":"link"},"shared_with_count":{"type":"integer","title":"Shared With Count","default":0},"shared_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By Name"},"shared_by_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shared By Email"},"is_mine":{"type":"boolean","title":"Is Mine","default":true}},"type":"object","required":["slug","url","title","content_preview","created_at","updated_at"],"title":"MyDocListItem"},"MyDocListResponse":{"properties":{"documents":{"items":{"$ref":"#/components/schemas/MyDocListItem"},"type":"array","title":"Documents"},"total":{"type":"integer","title":"Total"},"page":{"type":"integer","title":"Page"},"pages":{"type":"integer","title":"Pages"},"per_page":{"type":"integer","title":"Per Page","default":20},"count_all":{"type":"integer","title":"Count All","default":0},"count_markdown":{"type":"integer","title":"Count Markdown","default":0},"count_artifact":{"type":"integer","title":"Count Artifact","default":0},"count_by_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"Count By Type"}},"type":"object","required":["documents","total","page","pages"],"title":"MyDocListResponse"},"NameUpdateRequest":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"NameUpdateRequest"},"NotesBody":{"properties":{"notes":{"type":"string","maxLength":42000,"title":"Notes"},"template":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Template"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"workspace":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Workspace"}},"type":"object","required":["notes"],"title":"NotesBody"},"NotificationsIn":{"properties":{"on":{"type":"boolean","title":"On"}},"type":"object","required":["on"],"title":"NotificationsIn"},"OrganizeBody":{"properties":{"workspace":{"type":"string","maxLength":40,"title":"Workspace"}},"type":"object","required":["workspace"],"title":"OrganizeBody"},"OwnershipTransfer":{"properties":{"user_id":{"type":"string","maxLength":64,"minLength":1,"title":"User Id"}},"type":"object","required":["user_id"],"title":"OwnershipTransfer"},"PageCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title"},"workspace":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Workspace"},"folder":{"anyOf":[{"type":"string","maxLength":400,"minLength":1},{"type":"null"}],"title":"Folder"},"parent":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Parent"},"template":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Template"},"content":{"anyOf":[{"type":"string","maxLength":500000},{"type":"null"}],"title":"Content"},"slug":{"anyOf":[{"type":"string","maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}],"title":"Slug"},"auto_cover":{"type":"boolean","title":"Auto Cover","default":true}},"type":"object","required":["title"],"title":"PageCreate"},"PageCreateResponse":{"properties":{"document":{"$ref":"#/components/schemas/DocumentResponse"},"edit_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Edit Secret"},"workspace_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Error"}},"type":"object","required":["document"],"title":"PageCreateResponse"},"PageFeedbackBody":{"properties":{"path":{"type":"string","maxLength":400,"title":"Path"},"helpful":{"type":"boolean","title":"Helpful"},"comment":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Comment"},"site":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Site"}},"type":"object","required":["path","helpful"],"title":"PageFeedbackBody"},"ParentMoveRequest":{"properties":{"parent":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Parent"},"confirm_access_change":{"type":"boolean","title":"Confirm Access Change","default":false}},"type":"object","title":"ParentMoveRequest"},"PatchBody":{"properties":{"restricted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Restricted"},"type":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Type"},"series":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Series"}},"type":"object","title":"PatchBody"},"PreferencesUpdate":{"properties":{"analytics_digest":{"anyOf":[{"type":"string","enum":["weekly","off"]},{"type":"null"}],"title":"Analytics Digest"},"mention_emails":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mention Emails"},"email_notify":{"anyOf":[{"$ref":"#/components/schemas/EmailNotifyUpdate"},{"type":"null"}]},"tz":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Tz"}},"type":"object","title":"PreferencesUpdate","description":"Any of these; what's left out is unchanged. ``tz``: the browser's IANA timezone (the daily\ndigest goes at 08:00 there)."},"Prefs":{"properties":{"mention":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mention"},"signoff_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Signoff Requested"},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shared"},"access_request":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Access Request"},"comment_mention":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Comment Mention"},"comment_assigned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Comment Assigned"}},"type":"object","title":"Prefs"},"PrefsBody":{"properties":{"panel":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Panel"},"hints":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hints"}},"type":"object","title":"PrefsBody"},"PrefsIn":{"properties":{"mention":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mention"},"signoff_requested":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Signoff Requested"},"shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shared"},"access_request":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Access Request"},"action_items":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Action Items"},"comment_mention":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Comment Mention"},"comment_assigned":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Comment Assigned"}},"type":"object","title":"PrefsIn"},"PresenceUpdate":{"properties":{"show":{"type":"boolean","title":"Show"}},"type":"object","required":["show"],"title":"PresenceUpdate","description":"The owner's \"Show who's viewing\" switch (services/viewers.py)."},"PreviewBody":{"properties":{"sources":{"items":{"$ref":"#/components/schemas/SourceIn"},"type":"array","maxItems":6,"minItems":1,"title":"Sources"},"workspace":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Workspace","description":"Teams: with it, each meeting's team_suggestions"}},"type":"object","required":["sources"],"title":"PreviewBody"},"PreviewRequest":{"properties":{"url":{"type":"string","maxLength":2048,"minLength":1,"title":"Url"}},"type":"object","required":["url"],"title":"PreviewRequest"},"PreviewsBody":{"properties":{"slugs":{"items":{"type":"string"},"type":"array","maxItems":12,"minItems":1,"title":"Slugs"}},"type":"object","required":["slugs"],"title":"PreviewsBody"},"ProjectCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"team_ids":{"items":{"type":"string"},"type":"array","maxItems":20,"minItems":1,"title":"Team Ids"},"icon":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","enum":["blue","green","amber","red","violet","pink","teal","gray"]},{"type":"null"}],"title":"Color"},"description":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Description"},"member_ids":{"items":{"type":"string"},"type":"array","maxItems":500,"title":"Member Ids"},"visibility":{"anyOf":[{"type":"string","enum":["open","private"]},{"type":"null"}],"title":"Visibility"}},"type":"object","required":["name","team_ids"],"title":"ProjectCreate"},"ProjectPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"team_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Team Ids"},"icon":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","enum":["blue","green","amber","red","violet","pink","teal","gray"]},{"type":"null"}],"title":"Color"},"description":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Description"},"member_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":500},{"type":"null"}],"title":"Member Ids"},"visibility":{"anyOf":[{"type":"string","enum":["open","private"]},{"type":"null"}],"title":"Visibility"},"status":{"anyOf":[{"type":"string","enum":["active","archived"]},{"type":"null"}],"title":"Status"}},"type":"object","title":"ProjectPatch"},"QuoteIn":{"properties":{"exact":{"type":"string","maxLength":1000,"minLength":1,"title":"Exact"},"prefix":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Prefix"},"suffix":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Suffix"}},"type":"object","required":["exact"],"title":"QuoteIn"},"ReactionIn":{"properties":{"emoji":{"type":"string","maxLength":16,"minLength":1,"title":"Emoji"},"on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"On"}},"type":"object","required":["emoji"],"title":"ReactionIn"},"RelatedBody":{"properties":{"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page","description":"The page being written (its slug): its workspace, and its own meeting left out."},"workspace":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Workspace","description":"A workspace id, when there is no page."},"title":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Title"},"heading":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Heading","description":"The heading of the section under the caret."},"selection":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Selection"},"section":{"anyOf":[{"type":"string","maxLength":6000},{"type":"null"}],"title":"Section","description":"The section's text (Markdown)."},"q":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q","description":"A typed search."},"kinds":{"anyOf":[{"items":{"type":"string","enum":["decision","action_item","open_question","topic"]},"type":"array","maxItems":4},{"type":"null"}],"title":"Kinds"},"limit":{"type":"integer","maximum":40.0,"minimum":1.0,"title":"Limit","default":12}},"type":"object","title":"RelatedBody"},"RememberIn":{"properties":{"key":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,19}-[1-9][0-9]{0,8}$","title":"Key"},"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"}},"type":"object","required":["key"],"title":"RememberIn"},"ReplyCreate":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Mentions"},"attachments":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Attachments"},"suggestion":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Suggestion"}},"type":"object","required":["body"],"title":"ReplyCreate"},"ReportRequest":{"properties":{"reason":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Reason"}},"type":"object","title":"ReportRequest"},"ResharingUpdate":{"properties":{"allow":{"type":"boolean","title":"Allow"}},"type":"object","required":["allow"],"title":"ResharingUpdate"},"SchemaPut":{"properties":{"properties":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":30,"title":"Properties"},"views":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":20},{"type":"null"}],"title":"Views"},"base_rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Rev"}},"type":"object","required":["properties"],"title":"SchemaPut"},"ScopeBody":{"properties":{"kind":{"type":"string","enum":["doc","meetings","folder","workspace","mine","everything","team","project"],"title":"Kind","default":"everything"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page","description":"doc: the document or page (its slug)"},"workspace":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Workspace","description":"meetings / folder / workspace: the workspace id"},"folder":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Folder","description":"folder: the folder id (its sub-folders too)"},"meeting":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Meeting","description":"meetings: one meeting (its id)"},"series":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Series","description":"meetings: only this series"},"since":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Since","description":"meetings: from this day (YYYY-MM-DD)"},"until":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Until","description":"meetings: to this day (YYYY-MM-DD)"},"team":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Team","description":"team: the team id (with workspace)"},"project":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Project","description":"project: the project id (with workspace)"},"space":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Space","description":"Teams: all | company | team:<id> | project:<id> — narrows any kind"}},"type":"object","title":"ScopeBody"},"Settings":{"properties":{"settings":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Settings"},"delete":{"items":{"type":"string"},"type":"array","maxItems":9,"title":"Delete"}},"type":"object","title":"Settings","description":"Per-type switches; types left out fall through to the level below. ``null`` (item, folder)\ngoes back to inheriting everything."},"SettingsIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"},"meetings_channel_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Meetings Channel Id"},"clear_channel":{"type":"boolean","title":"Clear Channel","default":false},"post_meetings":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Post Meetings"},"action_item_dms":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Action Item Dms"}},"type":"object","required":["workspace_id"],"title":"SettingsIn"},"SettingsPayload":{"properties":{"viewer_chrome":{"type":"string","enum":["full","minimal","none"],"title":"Viewer Chrome","default":"full"},"require_auth_to_view":{"type":"boolean","title":"Require Auth To View","default":false},"members_can_share_folders":{"type":"boolean","title":"Members Can Share Folders","default":true},"default_access":{"type":"string","enum":["link","workspace","private"],"title":"Default Access","default":"workspace"},"ai_enabled":{"type":"boolean","title":"Ai Enabled","default":true},"auto_covers":{"type":"boolean","title":"Auto Covers","default":true},"team_memory":{"type":"boolean","title":"Team Memory","default":false},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"comments_enabled":{"type":"boolean","title":"Comments Enabled","default":true},"allow_resharing":{"type":"boolean","title":"Allow Resharing","default":true}},"type":"object","title":"SettingsPayload"},"SignRequest":{"properties":{"option":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Option"},"acknowledge_open_comments":{"type":"boolean","title":"Acknowledge Open Comments","default":false}},"type":"object","title":"SignRequest","description":"``option``: one of the block's options; null clears the decision."},"SiteIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"},"cloud_id":{"type":"string","maxLength":80,"minLength":1,"title":"Cloud Id"},"projects":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Projects"},"default_project":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Default Project"},"default_issue_type":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Default Issue Type"}},"type":"object","required":["workspace_id","cloud_id"],"title":"SiteIn"},"SlackChannel":{"properties":{"id":{"type":"string","maxLength":40,"minLength":1,"title":"Id"},"name":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Name"}},"type":"object","required":["id"],"title":"SlackChannel"},"SlugChangeRequest":{"properties":{"new_slug":{"type":"string","maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$","title":"New Slug"}},"type":"object","required":["new_slug"],"title":"SlugChangeRequest"},"SourceIn":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"text":{"anyOf":[{"type":"string","maxLength":1500000},{"type":"null"}],"title":"Text"},"data_b64":{"anyOf":[{"type":"string","maxLength":5333349},{"type":"null"}],"title":"Data B64"},"google_file_id":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Google File Id"},"origin":{"anyOf":[{"type":"string","enum":["paste","upload"]},{"type":"null"}],"title":"Origin"}},"type":"object","title":"SourceIn"},"Subscription":{"properties":{"endpoint":{"type":"string","maxLength":1024,"title":"Endpoint"},"keys":{"$ref":"#/components/schemas/Keys"},"expirationTime":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expirationtime"},"standalone":{"type":"boolean","title":"Standalone","default":false},"refresh":{"type":"boolean","title":"Refresh","default":false}},"type":"object","required":["endpoint","keys"],"title":"Subscription"},"SuggestionIn":{"properties":{"text":{"type":"string","maxLength":5000,"minLength":1,"title":"Text"},"ai":{"type":"boolean","title":"Ai","default":false}},"type":"object","required":["text"],"title":"SuggestionIn"},"SummaryIn":{"properties":{"refresh":{"type":"boolean","title":"Refresh","default":false}},"type":"object","title":"SummaryIn"},"SyncCreateRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"content":{"type":"string","maxLength":33554432,"minLength":1,"title":"Content"},"desired_slug":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Desired Slug"}},"type":"object","required":["content"],"title":"SyncCreateRequest"},"SyncDocResponse":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"url":{"type":"string","title":"Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"content":{"type":"string","title":"Content"},"rev":{"type":"integer","title":"Rev"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","slug","url","title","content","rev","updated_at"],"title":"SyncDocResponse"},"SyncPushRequest":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"content":{"type":"string","maxLength":33554432,"minLength":1,"title":"Content"},"base_rev":{"type":"integer","minimum":0.0,"title":"Base Rev"}},"type":"object","required":["content","base_rev"],"title":"SyncPushRequest"},"SyncRevResponse":{"properties":{"id":{"type":"string","title":"Id"},"rev":{"type":"integer","title":"Rev"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","rev","updated_at"],"title":"SyncRevResponse"},"TeamCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"icon":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","enum":["blue","green","amber","red","violet","pink","teal","gray"]},{"type":"null"}],"title":"Color"},"description":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Description"},"visibility":{"type":"string","enum":["open","private"],"title":"Visibility","default":"open"},"lead_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"title":"Lead Ids"},"member_ids":{"items":{"type":"string"},"type":"array","maxItems":1000,"title":"Member Ids"}},"type":"object","required":["name"],"title":"TeamCreate"},"TeamIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"},"team_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Team Id"}},"type":"object","required":["workspace_id","team_id"],"title":"TeamIn"},"TeamPatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"icon":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Icon"},"color":{"anyOf":[{"type":"string","enum":["blue","green","amber","red","violet","pink","teal","gray"]},{"type":"null"}],"title":"Color"},"description":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Description"},"visibility":{"anyOf":[{"type":"string","enum":["open","private"]},{"type":"null"}],"title":"Visibility"},"slack_channel":{"anyOf":[{"$ref":"#/components/schemas/SlackChannel"},{"type":"null"}]},"slack_comments":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Slack Comments","description":"Post new and resolved comments on the team's items to its Slack channel (default on)."},"jira_projects":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Jira Projects"},"digest":{"anyOf":[{"$ref":"#/components/schemas/Digest"},{"type":"null"}]}},"type":"object","title":"TeamPatch"},"TemplateOrder":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Workspace"},"ids":{"items":{"type":"string"},"type":"array","maxItems":200,"title":"Ids"}},"type":"object","required":["ids"],"title":"TemplateOrder"},"TemplatePatch":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Icon"}},"type":"object","title":"TemplatePatch"},"TemplateSave":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":600},{"type":"null"}],"title":"Description"},"icon":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Icon"},"include_subpages":{"type":"boolean","title":"Include Subpages","default":false},"scope":{"anyOf":[{"type":"string","enum":["workspace","personal"]},{"type":"null"}],"title":"Scope"},"workspace":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Workspace"}},"type":"object","title":"TemplateSave"},"TemplateToggle":{"properties":{"template":{"type":"boolean","title":"Template"}},"type":"object","required":["template"],"title":"TemplateToggle"},"TestPush":{"properties":{"device_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Device Id"}},"type":"object","title":"TestPush"},"ThreadCreate":{"properties":{"anchor":{"$ref":"#/components/schemas/AnchorIn"},"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"mentions":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Mentions"},"assignee":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Assignee"},"attachments":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":10},{"type":"null"}],"title":"Attachments"},"suggestion":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}],"title":"Suggestion"}},"type":"object","required":["anchor","body"],"title":"ThreadCreate"},"ThreadDraftIn":{"properties":{"project":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Project"}},"type":"object","title":"ThreadDraftIn"},"ThreadIssueIn":{"properties":{"fields":{"$ref":"#/components/schemas/Fields"}},"type":"object","required":["fields"],"title":"ThreadIssueIn"},"ThreadLinkIn":{"properties":{"key":{"type":"string","maxLength":300,"minLength":3,"title":"Key"},"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"}},"type":"object","required":["key"],"title":"ThreadLinkIn"},"TickBody":{"properties":{"slug":{"type":"string","maxLength":200,"minLength":1,"title":"Slug"},"block":{"type":"string","pattern":"^b-[0-9A-Za-z_-]{1,40}$","title":"Block"},"done":{"type":"boolean","title":"Done","description":"false: open it again (Undo)","default":true}},"type":"object","required":["slug","block"],"title":"TickBody"},"TokenCreateRequest":{"properties":{"name":{"type":"string","maxLength":80,"title":"Name","default":"API token"}},"type":"object","title":"TokenCreateRequest"},"TokenResponse":{"properties":{"token":{"type":"string","title":"Token"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"user":{"$ref":"#/components/schemas/UserResponse"}},"type":"object","required":["token","expires_at","user"],"title":"TokenResponse"},"ToneIn":{"properties":{"body":{"type":"string","maxLength":5000,"minLength":1,"title":"Body"},"force":{"type":"boolean","title":"Force","default":false}},"type":"object","required":["body"],"title":"ToneIn"},"TransformBody":{"properties":{"action":{"type":"string","maxLength":20,"title":"Action"},"text":{"type":"string","maxLength":14000,"title":"Text"},"tone":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Tone"},"lang":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Lang"},"before":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"After"}},"type":"object","required":["action","text"],"title":"TransformBody"},"TransitionIn":{"properties":{"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"},"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"transition":{"type":"string","maxLength":80,"minLength":1,"title":"Transition"},"fields":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Fields"}},"type":"object","required":["transition"],"title":"TransitionIn"},"TranslateBody":{"properties":{"lang":{"type":"string","maxLength":40,"title":"Lang"}},"type":"object","required":["lang"],"title":"TranslateBody"},"UploadCompleteRequest":{"properties":{"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/UploadedPart"},"type":"array","maxItems":10000},{"type":"null"}],"title":"Parts"}},"type":"object","title":"UploadCompleteRequest"},"UploadCreateRequest":{"properties":{"file_name":{"type":"string","maxLength":255,"minLength":1,"title":"File Name"},"size_bytes":{"type":"integer","minimum":1.0,"title":"Size Bytes"},"content_type":{"type":"string","maxLength":255,"title":"Content Type","default":""},"sha256":{"type":"string","pattern":"^[0-9a-fA-F]{64}$","title":"Sha256"},"target_slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Target Slug"},"title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Title"},"access":{"anyOf":[{"type":"string","enum":["link","private","password","workspace"]},{"type":"null"}],"title":"Access"},"password":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Password"},"workspace":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Workspace"},"folder":{"anyOf":[{"type":"string","maxLength":400,"minLength":1},{"type":"null"}],"title":"Folder"},"slug":{"anyOf":[{"type":"string","maxLength":50,"minLength":3,"pattern":"^[a-zA-Z0-9_-]+$"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["file_name","size_bytes","sha256"],"title":"UploadCreateRequest"},"UploadPartStatus":{"properties":{"part_number":{"type":"integer","title":"Part Number"},"etag":{"type":"string","title":"Etag"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["part_number","etag","size"],"title":"UploadPartStatus"},"UploadPartUrl":{"properties":{"part_number":{"type":"integer","title":"Part Number"},"url":{"type":"string","title":"Url"}},"type":"object","required":["part_number","url"],"title":"UploadPartUrl"},"UploadResult":{"properties":{"url":{"type":"string","title":"Url"},"markdrop_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdrop Url"},"workspace_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Url"},"domain_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain Url"},"workspace_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Error"},"slug":{"type":"string","title":"Slug"},"version":{"type":"integer","title":"Version"},"size_bytes":{"type":"integer","title":"Size Bytes"},"content_type":{"type":"string","title":"Content Type"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["url","slug","version","size_bytes","content_type","sha256"],"title":"UploadResult"},"UploadSessionResponse":{"properties":{"upload_id":{"type":"string","title":"Upload Id"},"part_size":{"type":"integer","title":"Part Size"},"parts":{"items":{"$ref":"#/components/schemas/UploadPartUrl"},"type":"array","title":"Parts"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["upload_id","part_size","parts","expires_at"],"title":"UploadSessionResponse"},"UploadStatusResponse":{"properties":{"upload_id":{"type":"string","title":"Upload Id"},"state":{"type":"string","title":"State"},"file_name":{"type":"string","title":"File Name"},"content_type":{"type":"string","title":"Content Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"sha256":{"type":"string","title":"Sha256"},"part_size":{"type":"integer","title":"Part Size"},"part_count":{"type":"integer","title":"Part Count"},"parts_uploaded":{"items":{"$ref":"#/components/schemas/UploadPartStatus"},"type":"array","title":"Parts Uploaded"},"target_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Slug"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"verified_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Verified Bytes"},"result":{"anyOf":[{"$ref":"#/components/schemas/UploadResult"},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["upload_id","state","file_name","content_type","size_bytes","sha256","part_size","part_count","parts_uploaded","expires_at"],"title":"UploadStatusResponse"},"UploadUrlsRequest":{"properties":{"part_numbers":{"anyOf":[{"items":{"type":"integer"},"type":"array","maxItems":10000},{"type":"null"}],"title":"Part Numbers"}},"type":"object","title":"UploadUrlsRequest"},"UploadedPart":{"properties":{"part_number":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Part Number"},"etag":{"type":"string","maxLength":200,"minLength":1,"title":"Etag"}},"type":"object","required":["part_number","etag"],"title":"UploadedPart"},"UrlsIn":{"properties":{"ids":{"items":{"type":"string"},"type":"array","maxItems":100,"title":"Ids"}},"type":"object","title":"UrlsIn"},"UserResponse":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"providers":{"items":{"type":"string"},"type":"array","title":"Providers","default":[]},"created_at":{"type":"string","format":"date-time","title":"Created At"},"analytics_digest":{"type":"string","enum":["weekly","off"],"title":"Analytics Digest","default":"weekly"},"mention_emails":{"type":"boolean","title":"Mention Emails","default":true},"email_notify":{"additionalProperties":{"type":"string","enum":["instant","hourly","daily","off"]},"type":"object","title":"Email Notify"}},"type":"object","required":["id","email","created_at"],"title":"UserResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ValuesPatch":{"properties":{"values":{"additionalProperties":true,"type":"object","maxProperties":30,"title":"Values"},"base_rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Rev"}},"type":"object","required":["values"],"title":"ValuesPatch"},"ViewsPut":{"properties":{"views":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":20,"title":"Views"},"base_rev":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Base Rev"}},"type":"object","required":["views"],"title":"ViewsPut"},"WebAppBody":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":400},{"type":"null"}],"title":"Url"}},"type":"object","title":"WebAppBody"},"WorkspaceCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"}},"type":"object","required":["name"],"title":"WorkspaceCreate"},"WorkspaceDeleteRequest":{"properties":{"confirm_name":{"type":"string","maxLength":80,"minLength":1,"title":"Confirm Name"}},"type":"object","required":["confirm_name"],"title":"WorkspaceDeleteRequest","description":"The workspace's own name, typed back. See `services.workspace.delete_workspace`."},"WorkspaceDeleteResponse":{"properties":{"documents_released":{"type":"integer","title":"Documents Released"},"domains_removed":{"type":"integer","title":"Domains Removed"},"members_removed":{"type":"integer","title":"Members Removed"},"docs_sites_deleted":{"type":"integer","title":"Docs Sites Deleted","default":0}},"type":"object","required":["documents_released","domains_removed","members_removed"],"title":"WorkspaceDeleteResponse"},"WorkspaceIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"}},"type":"object","required":["workspace_id"],"title":"WorkspaceIn"},"WorkspaceListResponse":{"properties":{"workspaces":{"items":{"$ref":"#/components/schemas/WorkspaceResponse"},"type":"array","title":"Workspaces"}},"type":"object","required":["workspaces"],"title":"WorkspaceListResponse"},"WorkspaceResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"owner_id":{"type":"string","title":"Owner Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"branding":{"$ref":"#/components/schemas/BrandingPayload"},"settings":{"$ref":"#/components/schemas/SettingsPayload"},"role":{"type":"string","enum":["owner","admin","member","viewer"],"title":"Role"},"primary_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Primary Host"},"domains":{"items":{"$ref":"#/components/schemas/DomainSummary"},"type":"array","title":"Domains","default":[]},"default_access":{"type":"string","title":"Default Access","default":"workspace"},"privacy":{"type":"string","title":"Privacy","default":"custom"},"member_count":{"type":"integer","title":"Member Count","default":0},"pending_invite_count":{"type":"integer","title":"Pending Invite Count","default":0},"domain_count":{"type":"integer","title":"Domain Count","default":0},"access_sync":{"anyOf":[{"$ref":"#/components/schemas/AccessSync"},{"type":"null"}]}},"type":"object","required":["id","name","owner_id","created_at","updated_at","branding","settings","role"],"title":"WorkspaceResponse"},"WorkspaceSettings":{"properties":{"settings":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Settings"},"delete":{"items":{"type":"string"},"type":"array","maxItems":9,"title":"Delete"},"enforce":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enforce"}},"type":"object","title":"WorkspaceSettings"},"WorkspaceUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"branding":{"anyOf":[{"$ref":"#/components/schemas/BrandingPayload"},{"type":"null"}]},"settings":{"anyOf":[{"$ref":"#/components/schemas/SettingsPayload"},{"type":"null"}]}},"type":"object","title":"WorkspaceUpdate"},"WriteBody":{"properties":{"prompt":{"type":"string","maxLength":2500,"title":"Prompt"},"before":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Before"},"after":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"After"}},"type":"object","required":["prompt"],"title":"WriteBody"},"app__routers__analytics_ai_home__AskBody":{"properties":{"question":{"type":"string","maxLength":500,"minLength":1,"title":"Question"},"range":{"anyOf":[{"type":"string","pattern":"^(7d|30d|90d|all)$"},{"type":"null"}],"title":"Range"},"fresh":{"type":"boolean","title":"Fresh","default":false}},"type":"object","required":["question"],"title":"AskBody"},"app__routers__ask__AskBody":{"properties":{"question":{"type":"string","maxLength":2000,"title":"Question","default":""},"thread_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Thread Id"},"intent":{"anyOf":[{"type":"string","enum":["ask","catch_up","my_actions","page"]},{"type":"null"}],"title":"Intent"},"page":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Page","description":"Ask AI in this page (its slug): the page, then its workspace's meetings (recorded decisions first) and documents. Implies intent \"page\"."},"scope":{"anyOf":[{"$ref":"#/components/schemas/ScopeBody"},{"type":"null"}],"description":"What to answer from (the assistant). Without it: everything (or `page`)."},"context":{"anyOf":[{"$ref":"#/components/schemas/ContextBody"},{"type":"null"}],"description":"Where the reader is in the doc (scope doc)."}},"type":"object","title":"AskBody"},"app__routers__comments__AssigneeIn":{"properties":{"user_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"User Id"}},"type":"object","title":"AssigneeIn"},"app__routers__docs_ai__AskBody":{"properties":{"question":{"type":"string","maxLength":10000,"title":"Question"},"history":{"items":{},"type":"array","maxItems":60,"title":"History"},"page_path":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Page Path"},"conversation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Conversation Id"},"site":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Site"},"access_token":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Access Token"}},"type":"object","required":["question"],"title":"AskBody"},"app__routers__jira__CodeIn":{"properties":{"code":{"type":"string","maxLength":2000,"minLength":1,"title":"Code"},"state":{"type":"string","maxLength":1000,"minLength":1,"title":"State"}},"type":"object","required":["code","state"],"title":"CodeIn"},"app__routers__jira__StartIn":{"properties":{"kind":{"type":"string","pattern":"^(site|me)$","title":"Kind"},"workspace_id":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{24}$"},{"type":"null"}],"title":"Workspace Id"},"back":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Back"}},"type":"object","required":["kind"],"title":"StartIn"},"app__routers__jira_pages__AssigneeIn":{"properties":{"site":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9:/._-]{3,200}$"},{"type":"null"}],"title":"Site"},"slug":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"},{"type":"null"}],"title":"Slug"},"account_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Account Id"}},"type":"object","title":"AssigneeIn"},"app__routers__meetings__AskBody":{"properties":{"question":{"type":"string","maxLength":600,"minLength":1,"title":"Question"},"history":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":6},{"type":"null"}],"title":"History"},"thread_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Thread Id"}},"type":"object","required":["question"],"title":"AskBody"},"app__routers__meetings__StatusBody":{"properties":{"phase":{"type":"string","enum":["start","done"],"title":"Phase","default":"done"},"version":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Version","default":1},"mode":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Mode"},"include_shared":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Include Shared"},"lookback_hours":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lookback Hours"},"found":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Found"},"sent":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sent"},"results":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Results"},"skipped":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Skipped"},"errors":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":20},{"type":"null"}],"title":"Errors"},"search":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Search"},"remaining":{"anyOf":[{"type":"integer","maximum":1000000.0,"minimum":0.0},{"type":"null"}],"title":"Remaining"},"shared_drives":{"anyOf":[{"type":"string","enum":["on","off"]},{"type":"null"}],"title":"Shared Drives"},"drive_project":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Drive Project"},"queue_done":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":100},{"type":"null"}],"title":"Queue Done"},"queue_failed":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":100},{"type":"null"}],"title":"Queue Failed"}},"type":"object","title":"StatusBody"},"app__routers__pages_ai__AskBody":{"properties":{"question":{"type":"string","maxLength":4000,"title":"Question"},"history":{"items":{},"type":"array","maxItems":40,"title":"History"}},"type":"object","required":["question"],"title":"AskBody"},"app__routers__search__AskBody":{"properties":{"question":{"type":"string","maxLength":500,"minLength":1,"title":"Question"},"scope":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Scope"},"current":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Current"}},"type":"object","required":["question"],"title":"AskBody"},"app__routers__slack__CodeIn":{"properties":{"code":{"type":"string","maxLength":500,"minLength":1,"title":"Code"},"state":{"type":"string","maxLength":1000,"minLength":1,"title":"State"}},"type":"object","required":["code","state"],"title":"CodeIn"},"app__routers__team__StatusBody":{"properties":{"text":{"type":"string","maxLength":180,"title":"Text","default":""},"emoji":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Emoji"},"until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until","description":"When it stops applying (ISO time); none: until cleared."}},"type":"object","title":"StatusBody"},"app__routers__zoom__StartIn":{"properties":{"workspace_id":{"type":"string","pattern":"^[0-9a-f]{24}$","title":"Workspace Id"},"team_id":{"anyOf":[{"type":"string","pattern":"^([0-9a-f]{24})?$"},{"type":"null"}],"title":"Team Id"}},"type":"object","required":["workspace_id"],"title":"StartIn"}}}}