{"openapi":"3.1.0","info":{"title":"Marrow API","version":"0.1.0"},"paths":{"/api/auth/login":{"get":{"tags":["auth"],"summary":"Login","description":"Redirect the browser to the OIDC provider's authorize endpoint.","operationId":"login_api_auth_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/callback":{"get":{"tags":["auth"],"summary":"Callback","description":"Handle the OIDC callback: exchange code, upsert user, set session cookie.","operationId":"callback_api_auth_callback_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/auth/me":{"get":{"tags":["auth"],"summary":"Me","description":"Return the current authentication status.\n\nChecks the session cookie manually (this endpoint is not behind the\nglobal auth dependency).","operationId":"me_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthStatus"}}}}}}},"/api/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Clear the session cookie and return the IdP logout URL if OIDC is active.","operationId":"logout_api_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/orgs":{"get":{"tags":["organizations"],"summary":"List Orgs","description":"List orgs the current user belongs to (all orgs for API key/anonymous).","operationId":"list_orgs_api_orgs_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationRead"},"title":"Response List Orgs Api Orgs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organizations"],"summary":"Create Org","description":"Create an org. The creating user becomes the owner.\n\nExplicitly created orgs are named by the user already, so they skip the\nfirst-run /onboarding step (unlike the auto-created personal org).","operationId":"create_org_api_orgs_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/orgs/{org_id}":{"get":{"tags":["organizations"],"summary":"Get Org","operationId":"get_org_api_orgs__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organizations"],"summary":"Update Org","description":"Update org-level settings. Requires owner role.","operationId":"update_org_api_orgs__org_id__patch","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/orgs/{org_id}/onboard":{"post":{"tags":["organizations"],"summary":"Onboard Org","description":"Complete first-run onboarding: name the org and stamp ``onboarded_at``.","operationId":"onboard_org_api_orgs__org_id__onboard_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationOnboard"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/orgs/{org_id}/members":{"get":{"tags":["organizations"],"summary":"List Members","operationId":"list_members_api_orgs__org_id__members_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgMembershipRead"},"title":"Response List Members Api Orgs  Org Id  Members Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organizations"],"summary":"Invite Member","description":"Invite a user by email. Creates a pending membership if the user has no account yet.","operationId":"invite_member_api_orgs__org_id__members_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMembershipCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMembershipRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/orgs/{org_id}/members/{membership_id}":{"patch":{"tags":["organizations"],"summary":"Update Member Role","operationId":"update_member_role_api_orgs__org_id__members__membership_id__patch","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMembershipUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgMembershipRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Remove Member","operationId":"remove_member_api_orgs__org_id__members__membership_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/{org_id}/checkout":{"post":{"tags":["billing"],"summary":"Create Checkout Session","description":"Create a Stripe Checkout session (with a 14-day trial) for a plan.","operationId":"create_checkout_session_api_billing__org_id__checkout_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/{org_id}/portal":{"post":{"tags":["billing"],"summary":"Create Portal Session","description":"Create a Stripe Customer Portal session for managing the subscription.","operationId":"create_portal_session_api_billing__org_id__portal_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/{org_id}/reconcile":{"post":{"tags":["billing"],"summary":"Reconcile Subscription","description":"Pull the org's subscription truth from Stripe and persist it.\n\nWebhook-independent self-heal: makes a completed Checkout land even when\nthe `checkout.session.completed` webhook never arrives.","operationId":"reconcile_subscription_api_billing__org_id__reconcile_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Org Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces":{"get":{"tags":["workspaces"],"summary":"List Workspaces","description":"List workspaces. Session users see only workspaces in their orgs.","operationId":"list_workspaces_api_workspaces_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkspaceRead"},"title":"Response List Workspaces Api Workspaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["workspaces"],"summary":"Create Workspace","operationId":"create_workspace_api_workspaces_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/restore":{"post":{"tags":["workspaces"],"summary":"Restore Workspace Endpoint","description":"Restore a workspace from an uploaded export bundle zip.","operationId":"restore_workspace_endpoint_api_workspaces_restore_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_restore_workspace_endpoint_api_workspaces_restore_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}":{"get":{"tags":["workspaces"],"summary":"Get Workspace","operationId":"get_workspace_api_workspaces__workspace_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["workspaces"],"summary":"Delete Workspace","operationId":"delete_workspace_api_workspaces__workspace_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/tree":{"get":{"tags":["workspaces"],"summary":"Get Workspace Tree","operationId":"get_workspace_tree_api_workspaces__workspace_id__tree_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceTree"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/home":{"get":{"tags":["workspaces"],"summary":"Get Workspace Home","description":"Data backing the Home / For You landing page.\n\nReturns lightweight workspace stats plus the most recently edited pages\n(ordered by the node's own ``updated_at``, which bumps on every save).\nThe frontend uses ``space_count``/``page_count`` to choose between the\npopulated layout and the brand-new-workspace empty state.","operationId":"get_workspace_home_api_workspaces__workspace_id__home_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceHome"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/search":{"get":{"tags":["workspaces"],"summary":"Search Workspace","operationId":"search_workspace_api_workspaces__workspace_id__search_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/export/estimate":{"get":{"tags":["workspaces"],"summary":"Estimate Workspace Export","description":"Return pre-compression byte estimates for full and slim export bundles.","operationId":"estimate_workspace_export_api_workspaces__workspace_id__export_estimate_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/export":{"get":{"tags":["workspaces"],"summary":"Export Workspace Endpoint","description":"Download a workspace export bundle as a zip file.","operationId":"export_workspace_endpoint_api_workspaces__workspace_id__export_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"slim","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Slim"}},{"name":"include_trash","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Trash"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/spaces":{"get":{"tags":["spaces"],"summary":"List Spaces","operationId":"list_spaces_api_workspaces__workspace_id__spaces_get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SpaceRead"},"title":"Response List Spaces Api Workspaces  Workspace Id  Spaces Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["spaces"],"summary":"Create Space","operationId":"create_space_api_workspaces__workspace_id__spaces_post","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/workspaces/{workspace_id}/spaces/{space_id}":{"get":{"tags":["spaces"],"summary":"Get Space","operationId":"get_space_api_workspaces__workspace_id__spaces__space_id__get","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"space_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpaceRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["spaces"],"summary":"Delete Space","operationId":"delete_space_api_workspaces__workspace_id__spaces__space_id__delete","parameters":[{"name":"workspace_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workspace Id"}},{"name":"space_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/spaces/{space_id}/nodes":{"post":{"tags":["nodes"],"summary":"Create Node","operationId":"create_node_api_spaces__space_id__nodes_post","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["nodes"],"summary":"List Space Root Nodes","operationId":"list_space_root_nodes_api_spaces__space_id__nodes_get","parameters":[{"name":"space_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Space Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeRead"},"title":"Response List Space Root Nodes Api Spaces  Space Id  Nodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}":{"get":{"tags":["nodes"],"summary":"Get Node","operationId":"get_node_api_nodes__node_id__get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeReadWithContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["nodes"],"summary":"Update Node","operationId":"update_node_api_nodes__node_id__patch","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeReadWithContent"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["nodes"],"summary":"Delete Node","description":"Soft-delete a node and all descendants in a single transaction.","operationId":"delete_node_api_nodes__node_id__delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/restore":{"post":{"tags":["nodes"],"summary":"Restore Node","description":"Restore a soft-deleted node and its trashed subtree.\n\n422 if the node's parent is itself trashed (no live ancestor to attach to).","operationId":"restore_node_api_nodes__node_id__restore_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/purge":{"delete":{"tags":["nodes"],"summary":"Purge Node","description":"Hard-delete a trashed node and its subtree (owners only).","operationId":"purge_node_api_nodes__node_id__purge_delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/star":{"post":{"tags":["nodes"],"summary":"Star Node","operationId":"star_node_api_nodes__node_id__star_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["nodes"],"summary":"Unstar Node","operationId":"unstar_node_api_nodes__node_id__star_delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/children":{"get":{"tags":["nodes"],"summary":"List Children","operationId":"list_children_api_nodes__node_id__children_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeRead"},"title":"Response List Children Api Nodes  Node Id  Children Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/backlinks":{"get":{"tags":["nodes"],"summary":"List Backlinks","description":"Nodes that link to this node. Trashed source nodes are excluded.","operationId":"list_backlinks_api_nodes__node_id__backlinks_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeRead"},"title":"Response List Backlinks Api Nodes  Node Id  Backlinks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/revisions":{"get":{"tags":["nodes"],"summary":"List Revisions","operationId":"list_revisions_api_nodes__node_id__revisions_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RevisionRead"},"title":"Response List Revisions Api Nodes  Node Id  Revisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/revisions/{revision_id}":{"get":{"tags":["nodes"],"summary":"Get Revision","operationId":"get_revision_api_nodes__node_id__revisions__revision_id__get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/attachments":{"post":{"tags":["nodes"],"summary":"Upload Attachment","operationId":"upload_attachment_api_nodes__node_id__attachments_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_attachment_api_nodes__node_id__attachments_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["nodes"],"summary":"List Attachments","operationId":"list_attachments_api_nodes__node_id__attachments_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttachmentRead"},"title":"Response List Attachments Api Nodes  Node Id  Attachments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/attachments/{attachment_id}/file":{"get":{"tags":["nodes"],"summary":"Download Attachment","operationId":"download_attachment_api_nodes__node_id__attachments__attachment_id__file_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Attachment Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/watching":{"get":{"tags":["nodes"],"summary":"Get Watch Status","operationId":"get_watch_status_api_nodes__node_id__watching_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/watch":{"post":{"tags":["nodes"],"summary":"Watch Node","operationId":"watch_node_api_nodes__node_id__watch_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["nodes"],"summary":"Unwatch Node","operationId":"unwatch_node_api_nodes__node_id__watch_delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/comments":{"get":{"tags":["comments"],"summary":"List Comments","operationId":"list_comments_api_nodes__node_id__comments_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CommentRead"},"title":"Response List Comments Api Nodes  Node Id  Comments Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["comments"],"summary":"Create Comment","operationId":"create_comment_api_nodes__node_id__comments_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/comments/{comment_id}":{"patch":{"tags":["comments"],"summary":"Update Comment","operationId":"update_comment_api_comments__comment_id__patch","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["comments"],"summary":"Delete Comment","operationId":"delete_comment_api_comments__comment_id__delete","parameters":[{"name":"comment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Comment Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me/starred":{"get":{"tags":["users"],"summary":"List Starred","description":"List the current user's starred nodes (trashed nodes excluded).","operationId":"list_starred_api_users_me_starred_get","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StarredNodeRead"},"title":"Response List Starred Api Users Me Starred Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me/recent":{"get":{"tags":["users"],"summary":"List Recent","description":"Recently-edited pages across every workspace the current user can access.","operationId":"list_recent_api_users_me_recent_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":12,"title":"Limit"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MyRecentItem"},"title":"Response List Recent Api Users Me Recent Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_users_me_notifications_get","parameters":[{"name":"unread_only","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unread Only"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationList"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{nid}":{"patch":{"tags":["notifications"],"summary":"Mark Notification Read","operationId":"mark_notification_read_api_notifications__nid__patch","parameters":[{"name":"nid","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Nid"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/users/me/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Notifications Read","operationId":"mark_all_notifications_read_api_users_me_notifications_read_all_post","parameters":[{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/property-schema":{"get":{"tags":["properties"],"summary":"List Property Schema","operationId":"list_property_schema_api_nodes__node_id__property_schema_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PropertySchemaRead"},"title":"Response List Property Schema Api Nodes  Node Id  Property Schema Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/property-schema/{key}":{"put":{"tags":["properties"],"summary":"Upsert Property Schema","operationId":"upsert_property_schema_api_nodes__node_id__property_schema__key__put","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertySchemaUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertySchemaRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["properties"],"summary":"Delete Property Schema","operationId":"delete_property_schema_api_nodes__node_id__property_schema__key__delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/properties":{"get":{"tags":["properties"],"summary":"Get Effective Properties","operationId":"get_effective_properties_api_nodes__node_id__properties_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EffectivePropertiesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/properties/{key}":{"put":{"tags":["properties"],"summary":"Set Property Value","operationId":"set_property_value_api_nodes__node_id__properties__key__put","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropertyValueUpsert"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EffectiveProperty"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["properties"],"summary":"Delete Property Value","operationId":"delete_property_value_api_nodes__node_id__properties__key__delete","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"key","in":"path","required":true,"schema":{"type":"string","title":"Key"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/views":{"post":{"tags":["views"],"summary":"Create View","operationId":"create_view_api_nodes__node_id__views_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeViewCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeViewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["views"],"summary":"List Views","operationId":"list_views_api_nodes__node_id__views_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NodeViewRead"},"title":"Response List Views Api Nodes  Node Id  Views Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/views/{view_id}":{"get":{"tags":["views"],"summary":"Get View","operationId":"get_view_api_views__view_id__get","parameters":[{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeViewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["views"],"summary":"Update View","operationId":"update_view_api_views__view_id__patch","parameters":[{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeViewUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeViewRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["views"],"summary":"Delete View","operationId":"delete_view_api_views__view_id__delete","parameters":[{"name":"view_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"View Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/nodes/{node_id}/share-links":{"post":{"tags":["share-links"],"summary":"Create Share Link","operationId":"create_share_link_api_nodes__node_id__share_links_post","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShareLinkRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["share-links"],"summary":"List Share Links","operationId":"list_share_links_api_nodes__node_id__share_links_get","parameters":[{"name":"node_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Node Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ShareLinkRead"},"title":"Response List Share Links Api Nodes  Node Id  Share Links Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/share-links/{link_id}":{"delete":{"tags":["share-links"],"summary":"Revoke Share Link","operationId":"revoke_share_link_api_share_links__link_id__delete","parameters":[{"name":"link_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Link Id"}},{"name":"x-api-key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Api-Key"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shared/{token}":{"get":{"tags":["share-links"],"summary":"View Shared","description":"Return read-only rendered content for a share token. No auth required.","operationId":"view_shared_shared__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/SharedNode"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AttachmentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"node_id":{"type":"string","format":"uuid","title":"Node Id"},"filename":{"type":"string","title":"Filename"},"hash":{"type":"string","title":"Hash"},"size_bytes":{"type":"integer","title":"Size Bytes"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","node_id","filename","hash","size_bytes","created_at"],"title":"AttachmentRead"},"AuthStatus":{"properties":{"authenticated":{"type":"boolean","title":"Authenticated"},"user":{"anyOf":[{"$ref":"#/components/schemas/UserRead"},{"type":"null"}]},"method":{"type":"string","title":"Method"},"oidc_enabled":{"type":"boolean","title":"Oidc Enabled"},"has_payable_unsubscribed_org":{"type":"boolean","title":"Has Payable Unsubscribed Org","default":false},"needs_onboarding":{"type":"boolean","title":"Needs Onboarding","default":false}},"type":"object","required":["authenticated","method","oidc_enabled"],"title":"AuthStatus"},"Body_restore_workspace_endpoint_api_workspaces_restore_post":{"properties":{"bundle":{"type":"string","contentMediaType":"application/octet-stream","title":"Bundle"}},"type":"object","required":["bundle"],"title":"Body_restore_workspace_endpoint_api_workspaces_restore_post"},"Body_upload_attachment_api_nodes__node_id__attachments_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_attachment_api_nodes__node_id__attachments_post"},"CheckoutRequest":{"properties":{"tier":{"type":"string","title":"Tier"},"interval":{"type":"string","title":"Interval","default":"monthly"},"quantity":{"type":"integer","title":"Quantity","default":1}},"type":"object","required":["tier"],"title":"CheckoutRequest"},"CommentCreate":{"properties":{"body":{"type":"string","title":"Body"},"parent_comment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Comment Id"}},"type":"object","required":["body"],"title":"CommentCreate"},"CommentRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"node_id":{"type":"string","format":"uuid","title":"Node Id"},"author_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author User Id"},"author_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Author Name"},"parent_comment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Comment Id"},"body":{"type":"string","title":"Body"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","node_id","author_user_id","parent_comment_id","body","resolved_at","created_at","updated_at"],"title":"CommentRead"},"CommentUpdate":{"properties":{"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"resolved":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resolved"}},"type":"object","title":"CommentUpdate","description":"All fields optional — used for editing the body and/or resolve toggle."},"EffectivePropertiesResponse":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"properties":{"items":{"$ref":"#/components/schemas/EffectiveProperty"},"type":"array","title":"Properties"}},"type":"object","required":["node_id","properties"],"title":"EffectivePropertiesResponse"},"EffectiveProperty":{"properties":{"key":{"type":"string","title":"Key"},"value_type":{"type":"string","enum":["text","number","date","select","multi-select","checkbox"],"title":"Value Type"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"inherited":{"type":"boolean","title":"Inherited","default":false},"defined_on":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Defined On"}},"type":"object","required":["key","value_type"],"title":"EffectiveProperty","description":"A property as seen on a page: its type/options (possibly inherited from\nan ancestor folder schema) plus the page's own value when set."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"MyRecentItem":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"name":{"type":"string","title":"Name"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"space_name":{"type":"string","title":"Space Name"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"node_path":{"items":{"type":"string"},"type":"array","title":"Node Path"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["node_id","name","space_id","space_name","workspace_id","workspace_name","node_path","updated_at"],"title":"MyRecentItem","description":"A recently-edited page, carrying its workspace for cross-workspace linking."},"NodeCreate":{"properties":{"type":{"type":"string","enum":["folder","page"],"title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"content_format":{"type":"string","enum":["markdown","json"],"title":"Content Format","default":"markdown"}},"type":"object","required":["type","name"],"title":"NodeCreate"},"NodeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"type":{"type":"string","enum":["folder","page"],"title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"position":{"type":"string","title":"Position"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"current_revision_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Revision Id"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","space_id","parent_id","type","name","slug","position","description","current_revision_id","deleted_at","created_at","updated_at"],"title":"NodeRead"},"NodeReadWithContent":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"type":{"type":"string","enum":["folder","page"],"title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"position":{"type":"string","title":"Position"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"current_revision_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Current Revision Id"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"content_format":{"anyOf":[{"type":"string","enum":["markdown","json"]},{"type":"null"}],"title":"Content Format"}},"type":"object","required":["id","space_id","parent_id","type","name","slug","position","description","current_revision_id","deleted_at","created_at","updated_at"],"title":"NodeReadWithContent"},"NodeTreeItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"type":{"type":"string","enum":["folder","page"],"title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"position":{"type":"string","title":"Position"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"children":{"items":{"$ref":"#/components/schemas/NodeTreeItem"},"type":"array","title":"Children","default":[]}},"type":"object","required":["id","parent_id","type","name","slug","position","description"],"title":"NodeTreeItem"},"NodeUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"content_format":{"anyOf":[{"type":"string","enum":["markdown","json"]},{"type":"null"}],"title":"Content Format"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"}},"type":"object","title":"NodeUpdate"},"NodeViewConfig":{"properties":{"sorts":{"items":{"$ref":"#/components/schemas/ViewSort"},"type":"array","title":"Sorts","default":[]},"filters":{"items":{"$ref":"#/components/schemas/ViewFilter"},"type":"array","title":"Filters","default":[]},"group_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group By"},"visible_properties":{"items":{"type":"string"},"type":"array","title":"Visible Properties","default":[]}},"type":"object","title":"NodeViewConfig","description":"Opaque-ish render directives shared by all three view types.\n\n- ``sorts`` / ``filters`` apply to every view type.\n- ``group_by`` names the (select) property whose distinct values become\n  board columns; ignored by table/list.\n- ``visible_properties`` orders/limits columns in table view; an empty\n  list means \"show all\"."},"NodeViewCreate":{"properties":{"name":{"type":"string","title":"Name"},"view_type":{"type":"string","enum":["table","board","list"],"title":"View Type","default":"list"},"config":{"$ref":"#/components/schemas/NodeViewConfig","default":{"sorts":[],"filters":[],"visible_properties":[]}}},"type":"object","required":["name"],"title":"NodeViewCreate"},"NodeViewRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"folder_node_id":{"type":"string","format":"uuid","title":"Folder Node Id"},"name":{"type":"string","title":"Name"},"view_type":{"type":"string","enum":["table","board","list"],"title":"View Type"},"position":{"type":"string","title":"Position"},"config":{"$ref":"#/components/schemas/NodeViewConfig"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","folder_node_id","name","view_type","position","config","created_at","updated_at"],"title":"NodeViewRead"},"NodeViewUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"view_type":{"anyOf":[{"type":"string","enum":["table","board","list"]},{"type":"null"}],"title":"View Type"},"position":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Position"},"config":{"anyOf":[{"$ref":"#/components/schemas/NodeViewConfig"},{"type":"null"}]}},"type":"object","title":"NodeViewUpdate"},"NotificationList":{"properties":{"notifications":{"items":{"$ref":"#/components/schemas/NotificationRead"},"type":"array","title":"Notifications"},"unread_count":{"type":"integer","title":"Unread Count"}},"type":"object","required":["notifications","unread_count"],"title":"NotificationList"},"NotificationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","enum":["mention","comment_reply","share_request","watch_event"],"title":"Kind"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","payload","read_at","created_at"],"title":"NotificationRead"},"OrgMembershipCreate":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["email","role"],"title":"OrgMembershipCreate"},"OrgMembershipRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","org_id","user_id","email","role","created_at"],"title":"OrgMembershipRead"},"OrgMembershipUpdate":{"properties":{"role":{"type":"string","title":"Role"}},"type":"object","required":["role"],"title":"OrgMembershipUpdate"},"OrganizationCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"}},"type":"object","required":["slug","name"],"title":"OrganizationCreate"},"OrganizationOnboard":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"OrganizationOnboard","description":"First-run onboarding: name the org (sets ``onboarded_at``)."},"OrganizationRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"onboarded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Onboarded At"},"members_can_create_spaces":{"type":"boolean","title":"Members Can Create Spaces","default":true},"tier":{"type":"string","title":"Tier","default":"starter"},"subscription_status":{"type":"string","title":"Subscription Status","default":"none"},"has_active_subscription":{"type":"boolean","title":"Has Active Subscription","readOnly":true}},"type":"object","required":["id","slug","name","created_at","has_active_subscription"],"title":"OrganizationRead"},"OrganizationUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"members_can_create_spaces":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Members Can Create Spaces"}},"type":"object","title":"OrganizationUpdate"},"PropertySchemaRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"node_id":{"type":"string","format":"uuid","title":"Node Id"},"key":{"type":"string","title":"Key"},"value_type":{"type":"string","enum":["text","number","date","select","multi-select","checkbox"],"title":"Value Type"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["id","node_id","key","value_type"],"title":"PropertySchemaRead"},"PropertySchemaUpsert":{"properties":{"value_type":{"type":"string","enum":["text","number","date","select","multi-select","checkbox"],"title":"Value Type"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"}},"type":"object","required":["value_type"],"title":"PropertySchemaUpsert","description":"Define or update a property in a folder's schema."},"PropertyValueUpsert":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"value_type":{"type":"string","enum":["text","number","date","select","multi-select","checkbox"],"title":"Value Type"}},"type":"object","required":["value_type"],"title":"PropertyValueUpsert","description":"Set a property value on a page node."},"RecentNodeItem":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"name":{"type":"string","title":"Name"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"space_name":{"type":"string","title":"Space Name"},"node_path":{"items":{"type":"string"},"type":"array","title":"Node Path"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["node_id","name","space_id","space_name","node_path","updated_at"],"title":"RecentNodeItem"},"RevisionRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"node_id":{"type":"string","format":"uuid","title":"Node Id"},"content":{"type":"string","title":"Content"},"content_format":{"type":"string","enum":["markdown","json"],"title":"Content Format"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","node_id","content","content_format","created_at"],"title":"RevisionRead"},"SearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"results":{"items":{"$ref":"#/components/schemas/SearchResultItem"},"type":"array","title":"Results"}},"type":"object","required":["query","results"],"title":"SearchResponse"},"SearchResultItem":{"properties":{"node_id":{"type":"string","format":"uuid","title":"Node Id"},"name":{"type":"string","title":"Name"},"snippet":{"type":"string","title":"Snippet"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"space_name":{"type":"string","title":"Space Name"},"node_path":{"items":{"type":"string"},"type":"array","title":"Node Path"},"rank":{"type":"number","title":"Rank"}},"type":"object","required":["node_id","name","snippet","space_id","space_name","node_path","rank"],"title":"SearchResultItem"},"ShareLinkCreate":{"properties":{"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"}},"type":"object","title":"ShareLinkCreate"},"ShareLinkRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"node_id":{"type":"string","format":"uuid","title":"Node Id"},"token":{"type":"string","title":"Token"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","node_id","token","created_by","expires_at","created_at"],"title":"ShareLinkRead"},"SharedNode":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","enum":["folder","page"],"title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"content_format":{"anyOf":[{"type":"string","enum":["markdown","json"]},{"type":"null"}],"title":"Content Format"},"children":{"items":{"$ref":"#/components/schemas/SharedNode"},"type":"array","title":"Children","default":[]}},"type":"object","required":["id","type","name","slug"],"title":"SharedNode","description":"A node rendered for a public viewer (no account required).\n\nFor pages, ``content`` / ``content_format`` carry the current revision.\nFor folders, ``children`` carries the visible (non-trashed) subtree."},"SpaceCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"}},"type":"object","required":["slug","name"],"title":"SpaceCreate"},"SpaceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","workspace_id","slug","name","created_at"],"title":"SpaceRead"},"SpaceTreeItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"nodes":{"items":{"$ref":"#/components/schemas/NodeTreeItem"},"type":"array","title":"Nodes","default":[]}},"type":"object","required":["id","slug","name"],"title":"SpaceTreeItem"},"StarredNodeRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"space_id":{"type":"string","format":"uuid","title":"Space Id"},"parent_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Id"},"type":{"type":"string","enum":["folder","page"],"title":"Type"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"starred_at":{"type":"string","format":"date-time","title":"Starred At"}},"type":"object","required":["id","space_id","parent_id","type","name","slug","starred_at"],"title":"StarredNodeRead","description":"A starred node, surfaced in the Starred rail panel."},"UserRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","email","name"],"title":"UserRead"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"ViewFilter":{"properties":{"property":{"type":"string","title":"Property"},"operator":{"type":"string","enum":["eq","neq","contains","is_empty","is_not_empty"],"title":"Operator","default":"eq"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"}},"type":"object","required":["property"],"title":"ViewFilter"},"ViewSort":{"properties":{"property":{"type":"string","title":"Property"},"direction":{"type":"string","enum":["asc","desc"],"title":"Direction","default":"asc"}},"type":"object","required":["property"],"title":"ViewSort"},"WatchStatus":{"properties":{"watching":{"type":"boolean","title":"Watching"}},"type":"object","required":["watching"],"title":"WatchStatus","description":"Whether the current user is watching a given node."},"WorkspaceCreate":{"properties":{"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"org_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Org Id"}},"type":"object","required":["slug","name"],"title":"WorkspaceCreate"},"WorkspaceHome":{"properties":{"workspace_id":{"type":"string","format":"uuid","title":"Workspace Id"},"workspace_name":{"type":"string","title":"Workspace Name"},"space_count":{"type":"integer","title":"Space Count"},"page_count":{"type":"integer","title":"Page Count"},"recent":{"items":{"$ref":"#/components/schemas/RecentNodeItem"},"type":"array","title":"Recent","default":[]}},"type":"object","required":["workspace_id","workspace_name","space_count","page_count"],"title":"WorkspaceHome"},"WorkspaceRead":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","org_id","slug","name","created_at"],"title":"WorkspaceRead"},"WorkspaceTree":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"org_id":{"type":"string","format":"uuid","title":"Org Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"spaces":{"items":{"$ref":"#/components/schemas/SpaceTreeItem"},"type":"array","title":"Spaces","default":[]}},"type":"object","required":["id","org_id","slug","name"],"title":"WorkspaceTree"}}}}