diff --git a/essentials/v2/connectors.mdx b/essentials/v2/connectors.mdx index efbb8d6c..cf69dcb9 100644 --- a/essentials/v2/connectors.mdx +++ b/essentials/v2/connectors.mdx @@ -312,6 +312,40 @@ The documents go to the connector's collection; add `collection` to route them e +### Notion page streams, relations and metadata + +The compatible Notion connector accepts both `pages` and `database_pages` as page sources. A database row remains a Notion page, normalized as a `knowledge_base` document with its page title, body and page id, not a new row object kind. Archived pages and tombstones are skipped. New compatible syncs include both streams; existing syncs can retain their earlier pages-only coverage. This is not an automatic historical replay or backfill of previously omitted rows. + +Notion relation properties supply candidate page UUIDs, not proof that their targets exist in HydraDB. Supported ingestion paths verify candidates against stored sources before emitting a `linked_to` relation. A link requires an **exact, uniquely verified, completed Notion page target in the same collection**. The target must match the connector/account identity and a live resource route; being accessible in Notion, appearing in the same response, or having a matching title is not enough. Verified links reuse the stored target source id; they do not fetch or create a target page. + +Unknown, incomplete, ambiguous, differently routed or otherwise unverified targets create **no placeholder and no edge**. Bounded canonical UUID context is retained in `notion_relation_ids` metadata (at most 100 ids), with `notion_relation_warning` when some targets cannot be verified. This metadata is not a graph target or a promise of a link. Proof lookup failures, missing required index coverage and exhausted proof budgets suppress candidate links rather than guessing. More than 100 distinct valid candidate targets suppresses all candidate relation edges for that source; retained UUID context remains capped at 100. + +**Targets arriving later are not linked automatically.** An unchanged referring page is not rewritten when its target finishes ingestion. Establishing a previously missed link requires explicit reprocessing of the referring source after the target is eligible; this documentation does not initiate or authorize replay. Existing rows with insufficient identity metadata can remain unlinked until they are reprocessed. Lowercase hyphenated UUIDs remain stable; compact or uppercase UUID spellings are canonicalized for new processing, without migrating existing stored rows. + +#### Page references, parents and database metadata + +The compatible page-reference changes also read typed page/database references from rich text and blocks. Page-reference `mentions` and parent-page `child_of` candidates still require exact completed same-collection page proof. A raw parent-page UUID is retained as `notion_parent_page_id` metadata when supplied; `parent_id` is cleared until that parent is verified, so it cannot create a placeholder through a typed field. Metadata and enrichment records alone do not prove a target. Unresolved references remain context and do not acquire links automatically when a target arrives later. + +Supported internal Notion URL references can supply `linked_to` candidates after their canonical page UUID is decoded and matching page metadata is validated. That provider validation is still not completed-ingestion proof: the same exact-target collection/account/live-route checks apply before a graph link survives. Arbitrary external URLs, malformed ids and unsupported host/path forms cannot invent targets. Missing or forbidden page metadata leaves the URL unlinked; authentication/transient errors are not empty success. Large-page provider-validation cost is not bounded by the final 100-target graph-proof cap, and oversized candidate sets can suppress every candidate edge. No unproved fixed provider-request budget or automatic late-target repair is promised. + +Where the existing approved database-container foundation and its compatible consumers are available, authenticated matching database metadata can supply the separate `notion::container_hub` representation: its database UUID, title, URL, last-edited time and `container_type=database`. `notion_database_id` records that emitted database identity; it is not independent relation-target proof. A database does not become a page-shaped child target. Database metadata is not a request to fetch rows from an unselected database. + +Database-row ownership uses the authoritative `parent.database_id`, including when a parent has a data-source shape; it does not guess a database UUID from `data_source_id`. `notion_parent_database_id` preserves this canonical UUID as context. Only matching authenticated database metadata can supply the existing owner representation and `row_of` binding. Missing or forbidden metadata keeps the row without an invented owner; authentication/transient errors retain error propagation rather than proving an empty result. Classic metadata requests can recur per page; no cross-page cache or fixed metadata-request budget is promised here. + +These database-container descriptions require a compatible connector version and ingestion support; they do not authorize creating additional kinds or enabling unsupported capture. Availability is not established by this page. Existing unchanged rows can require a new in-window update or separately authorized reprocessing after owner recovery; no automatic migration, cleanup or late-target repair is added. + +#### Page discussions and copied synced blocks + +Compatible connector versions can expose unresolved page-level discussion comments as separate searchable comment objects through the `comments` stream. They retain the canonical comment and owning-page ids, plain text, and available `sender`, `sent_at` and `updated_at` fields. Resolved discussions and block-level comments are not captured by this page-discussion path; it does not promise complete discussion history or threaded block-comment coverage. + +Notion's **Read comments** capability is required and is **disabled by default**. Enable it for the Notion integration in the [Developer portal](https://developers.notion.com/reference/capabilities); ordinary Read content access is not enough. A public integration can require reauthorization after capability changes. Without Read comments, Notion returns 403 and discussion content can be omitted even when pages sync successfully. See Notion's [List comments reference](https://developers.notion.com/reference/list-comments). This is a permission prerequisite, not a request to widen the pages or resources selected for HydraDB. + +For a copied synced block, compatible versions can inspect the original block's ancestry to identify its **original owning page**, using at most 20 block-metadata steps. This does not fetch the original content or children, or copy the original page into the selected resource. The resulting `linked_to` candidate still needs an exact, uniquely verified, completed same-collection Notion page target with matching connector/account identity and a live resource route. Missing, forbidden, malformed, cyclic or unresolved ancestry yields no invented target; a provider metadata match alone is not completed-ingestion proof. Unknown owners stay unlinked until separately authorized reprocessing; there is no automatic historical replay or late-target repair. + + +Complete relation-property pagination for both page streams, discussion capture, synced-block owner resolution and exact stored-target verification require compatible connector versions. Do not enable changed capture until that support is available. This page confirms neither release availability nor successful end-to-end indexing and does not initiate connector activation or reprocessing. + + ## 2. Check that it is syncing Data usually appears within a few minutes of configure. [`GET /connectors/{id}/status`](/api-reference/v2/endpoint/get-connector-status) reports the connector and each resource in one call.